-
Notifications
You must be signed in to change notification settings - Fork 522
/
steal.production.js
6 lines (6 loc) · 77 KB
/
steal.production.js
1
2
3
4
5
6
/*
* steal v2.2.4
*
* Copyright (c) 2022 Bitovi; Licensed MIT
*/
!function(__global){var isWorker="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,isBrowser="undefined"!=typeof window&&!isWorker,$__Object$defineProperty;__global.$__Object$getPrototypeOf=Object.getPrototypeOf||function(e){return e.__proto__};try{Object.defineProperty({},"a",{})&&($__Object$defineProperty=Object.defineProperty)}catch(b){$__Object$defineProperty=function(e,t,n){try{e[t]=n.value||n.get.call(e)}catch(e){}}}__global.$__Object$create=Object.create||function(e,t){function n(){}if(n.prototype=e,"object"==typeof t)for(prop in t)t.hasOwnProperty(prop)&&(n[prop]=t[prop]);return new n};var $__Object$defineProperties=Object.defineProperties,$__Object$defineProperty0=Object.defineProperty,$__Object$create=Object.create,$__Object$getPrototypeOf=Object.getPrototypeOf;function __eval(__source,__global,__load){try{eval('(function() { var __moduleName = "'+(__load.name||"").replace('"','"')+'"; '+__source+" \n }).call(__global);")}catch(e){throw"SyntaxError"!=e.name&&"TypeError"!=e.name||(e.message="Evaluating "+(__load.name||load.address)+"\n\t"+e.message),e}}!function(){var p,e,o,m=__global.Promise||require("when/es6-shim/Promise"),f=(__global.console?(p=__global.console).assert=p.assert||function(){}:p={assert:function(){}},isBrowser&&(e=document.getElementsByTagName("script"),o=document.currentScript||e[e.length-1]),Array.prototype.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1}),i=$__Object$defineProperty,d=[];function h(e){return{status:"loading",name:e,linkSets:[],dependencies:[],metadata:{}}}function s(e,t,n){return new m(a({step:n.address?"fetch":"locate",loader:e,moduleName:t,moduleMetadata:n&&n.metadata||{},moduleSource:n.source,moduleAddress:n.address}))}function g(e,t){v(e,t,m.resolve().then(function(){return e.loaderObj.locate({name:t.name,metadata:t.metadata})}))}function v(t,n,e){b(t,n,e.then(function(e){if("loading"==n.status)return n.address=e,t.loaderObj.fetch({name:n.name,metadata:n.metadata,address:e})}))}var n=0;function b(l,u,e){function o(){return u.pass<<0!==t}var t=u.pass||0;e.then(function(e){if("loading"==u.status)return m.resolve(l.loaderObj.translate({name:u.name,metadata:u.metadata,address:u.address,source:e})).then(function(e){if("loading"==u.status&&!o())return u.source=e,l.loaderObj.instantiate({name:u.name,metadata:u.metadata,address:u.address,source:e})}).then(function(e){if("loading"==u.status&&!o()){if(void 0===e)return u.address=u.address||"<Anonymous Module "+ ++n+">",u.isDeclarative=!0,l.loaderObj.transpile(u).then(function(e){var t=__global.System,n=t.register;t.register=function(e,t,n){var a=t;"string"!=typeof e&&(n=t,a=e),u.declare=n,u.depsList=a},__eval(e,__global,u),t.register=n});if("object"!=typeof e)throw TypeError("Invalid instantiate return value");u.depsList=e.deps||[],u.execute=e.execute,u.isDeclarative=!1}}).then(function(){if("loading"==u.status&&!o()){u.dependencies=[];for(var e=u.depsList,t=[],n=0,a=e.length;n<a;n++)r(e[n],n);return m.all(t)}function r(r,o){var i,n,a,s;t.push((i=l,n=r,a=u.name,s=u.address,new m(function(e,t){e(i.loaderObj.normalize(n,a,s))}).then(function(e){return m.resolve(i.loaderObj.notifyLoad(n,e,a)).then(function(){return e})}).then(function(e){var t;if(i.modules[e])return(t=h(e)).status="linked",t.module=i.modules[e],t;for(var n=0,a=i.loads.length;n<a;n++)if((t=i.loads[n]).name==e)return p.assert("loading"==t.status||"loaded"==t.status,"loading or loaded"),t;for(var r=i.loaderObj.failed||d,n=0,a=r.length;n<a;n++)if((t=r[n]).name===e)return m.reject("The load "+e+" already failed.");return t=h(e),i.loads.push(t),g(i,t),t}).then(function(e){if(u.dependencies[o]={key:r,value:e.name},"linked"!=e.status)for(var t=u.linkSets.concat([]),n=0,a=t.length;n<a;n++)c(t[n],e)})))}}).then(function(){if("loading"==u.status&&!o()){p.assert("loading"==u.status,"is loading"),u.status="loaded";for(var e=u.linkSets.concat([]),t=0,n=e.length;t<n;t++)!function(e,t){if(p.assert("loaded"==t.status||"linked"==t.status,"loaded or linked"),e.loadingCount--,!(0<e.loadingCount)){var n=e.startingLoad;if(!1===e.loader.loaderObj.execute){for(var a=[].concat(e.loads),r=0,o=a.length;r<o;r++)(t=a[r]).module=t.isDeclarative?{name:t.name,module:P({}),evaluated:!0}:{module:P({})},t.status="linked",_(e.loader,t);return e.resolve(n)}(function(n){var a=!1;try{!function(e,t){var n=e.loader;if(e.loads.length)for(var a=[],r=e.loads[0],o=(r.groupIndex=0,!function e(t,n,a){a[t.groupIndex]=a[t.groupIndex]||[];if(-1!=f.call(a[t.groupIndex],t))return;a[t.groupIndex].push(t);for(var r=0,o=n.length;r<o;r++)for(var i=n[r],s=0;s<t.dependencies.length;s++)if(i.name==t.dependencies[s].value){p.assert("loaded"==i.status,"Load in linkSet not loaded!");var l=t.groupIndex+(i.isDeclarative!=t.isDeclarative);if(void 0===i.groupIndex||i.groupIndex<l){if(void 0!==i.groupIndex&&(a[i.groupIndex].splice(f.call(a[i.groupIndex],i),1),0==a[i.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");i.groupIndex=l}e(i,n,a)}}(r,e.loads,a),r.isDeclarative==a.length%2),i=a.length-1;0<=i;i--){for(var s=a[i],l=0;l<s.length;l++){var u=s[l];if(o)!function e(t,n,a){if(t.module)return;var s=t.module=w(t.name,a);var l=t.module.module;var r=t.declare.call(__global,function(e,t){if(s.locked=!0,"object"==typeof e)for(var n in e)l[n]=e[n];else l[e]=t;for(var a=0,r=s.importers.length;a<r;a++){var o,i=s.importers[a];i.locked||(o=f.call(i.dependencies,s),i.setters[o](l))}return s.locked=!1,t});s.setters=r.setters;s.execute=r.execute;for(var o=0,i=t.dependencies.length;o<i;o++){var u=t.dependencies[o].value,d=a.modules[u];if(!d)for(var c=0;c<n.length;c++)n[c].name==u&&(d=n[c].module?w(u,a):(e(n[c],n,a),n[c].module));d.importers?(s.dependencies.push(d),d.importers.push(s)):s.dependencies.push(null),s.setters[o]&&s.setters[o](d.module)}t.status="linked"}(u,e.loads,n);else{var d=function(t,n){try{var e=t.execute()}catch(e){return void n(t,e)}{if(e&&e instanceof E)return e;n(t,new TypeError("Execution must define a Module instance"))}}(u,t);if(!d)return;u.module={name:u.name,module:d},u.status="linked"}_(n,u)}o=!o}}(n,function(e,t){x(n,e,t),a=!0})}catch(e){x(n,null,e),a=!0}return a})(e)||(p.assert(0==e.loads.length,"loads cleared"),e.resolve(n))}}(e[t],u)}})}).catch(function(e){u.status="failed",u.exception=e;for(var t=u.linkSets.concat([]),n=0,a=t.length;n<a;n++)x(t[n],u,e);p.assert(0==u.linkSets.length,"linkSets not removed")})}function a(f){return function(e,t){var n,a,r=f.loader,o=f.moduleName,i=f.step,s=f.moduleMetadata.importingModuleName;if(r.modules[o])throw new TypeError('"'+o+'" already exists in the module table');for(var l,u=0,d=r.loads.length;u<d;u++)if(r.loads[u].name==o&&(n=r.loads[u],"translate"!=i||n.source||(n.address=f.moduleAddress,b(r,n,m.resolve(f.moduleSource))),a=n.linkSets[0],!s||!a.loads[s]))return a.done.then(function(){e(n)});n?l=n:(l=h(o)).metadata=f.moduleMetadata;var c=y(r,l);n||r.loads.push(l),e(c.done),"locate"==i?g(r,l):"fetch"==i?v(r,l,m.resolve(f.moduleAddress)):(p.assert("translate"==i,"translate step"),l.address=f.moduleAddress,b(r,l,m.resolve(f.moduleSource)))}}function y(e,t){var n={loader:e,loads:[],startingLoad:t,loadingCount:0};return n.done=new m(function(e,t){n.resolve=e,n.reject=t}),c(n,t),n}function c(e,t){p.assert("loading"==t.status||"loaded"==t.status||"failed"===t.status,"loading or loaded on link set");for(var n=0,a=e.loads.length;n<a;n++)if(e.loads[n]==t)return;e.loads.push(t),e.loads[t.name]=!0,t.linkSets.push(e),"loaded"!=t.status&&e.loadingCount++;for(var r=e.loader,n=0,a=t.dependencies.length;n<a;n++){var o=t.dependencies[n].value;if(!r.modules[o])for(var i=0,s=r.loads.length;i<s;i++)if(r.loads[i].name==o){c(e,r.loads[i]);break}}}function x(e,t,n){for(var a=e.loader,r=e.loads.concat([]),o=0,i=r.length;o<i;o++){var t=r[o],s=(a.loaderObj.failed=a.loaderObj.failed||[],"failed"===t.status&&-1==f.call(a.loaderObj.failed,t)?a.loaderObj.failed.push(t):a.loaderObj._pendingState&&a.loaderObj._pendingState(t),f.call(t.linkSets,e));p.assert(-1!=s,"link not present"),t.linkSets.splice(s,1),0!=t.linkSets.length||-1!=(s=f.call(e.loader.loads,t))&&e.loader.loads.splice(s,1)}e.reject(n)}function _(e,t){e.loaderObj.trace&&(e.loaderObj.loads||(e.loaderObj.loads={}),n={},t.dependencies.forEach(function(e){n[e.key]=e.value}),e.loaderObj.loads[t.name]={name:t.name,deps:t.dependencies.map(function(e){return e.key}),depMap:n,address:t.address,metadata:t.metadata,source:t.source,kind:t.isDeclarative?"declarative":"dynamic"}),t.name&&(p.assert(!e.modules[t.name],"load not in module table"),e.modules[t.name]=t.module);var n,a=f.call(e.loads,t);-1!=a&&e.loads.splice(a,1);for(var r=0,o=t.linkSets.length;r<o;r++)-1!=(a=f.call(t.linkSets[r].loads,t))&&t.linkSets[r].loads.splice(a,1);t.linkSets.splice(0,t.linkSets.length)}function w(e,t){t=t.moduleRecords;return t[e]||(t[e]={name:e,dependencies:[],module:new E,importers:[]})}function l(e,t){return p.assert("linked"==t.status,"is linked "+t.name),S(t.module,[],e),t.module.module}function u(t){try{t.execute.call(__global)}catch(e){e.onModuleExecution=!0;t=e;if(!t.originalErr){for(var n=(t.stack||t.message||t).toString().split("\n"),a=[],r=0;r<n.length;r++)void 0!==o&&-1!=n[r].indexOf(o.src)||a.push(n[r]);a.length&&(t.stack=a.join("\n\t"))}return e}}function S(e,t,n){e=function e(t,n,a){if(t.evaluated||!t.dependencies)return;n.push(t);var r=t.dependencies;var o;for(var i=0,s=r.length;i<s;i++){var l=r[i];if(l&&(-1==f.call(n,l)&&(o=e(l,n,a))))return o=j(o,"Error evaluating "+l.name+"\n")}if(t.failed)return new Error("Module failed execution.");if(t.evaluated)return;t.evaluated=!0;o=u(t);o?t.failed=!0:Object.preventExtensions&&Object.preventExtensions(t.module);t.execute=void 0;return o}(e,t,n);if(e)throw e}function j(e,t){return e instanceof Error?e.message=t+e.message:e=t+e,e}function t(e){if("object"!=typeof e)throw new TypeError("Options must be an object");e.normalize&&(this.normalize=e.normalize),e.locate&&(this.locate=e.locate),e.fetch&&(this.fetch=e.fetch),e.translate&&(this.translate=e.translate),e.instantiate&&(this.instantiate=e.instantiate),this._loader={loaderObj:this,loads:[],modules:{},importPromises:{},moduleRecords:{}},i(this,"global",{get:function(){return __global}})}function E(){}function O(e,t,n){var a=e._loader.importPromises;return a[t]=n.then(function(e){return a[t]=void 0,e},function(e){throw a[t]=void 0,e})}var P=(t.prototype={constructor:t,anonymousCount:0,define:function(e,t,n){if(this._loader.importPromises[e])throw new TypeError("Module is already loading.");return O(this,e,new m(a({step:"translate",loader:this._loader,moduleName:e,moduleMetadata:n&&n.metadata||{},moduleSource:t,moduleAddress:n&&n.address})))},delete:function(e){var t=this._loader;if(delete t.importPromises[e],delete t.moduleRecords[e],this.failed)for(var n=0;n<this.failed.length;n++)if(this.failed[n].name===e){this.failed.splice(n,1);break}return!!t.modules[e]&&delete t.modules[e]},get:function(e){if(this._loader.modules[e])return S(this._loader.modules[e],[],this),this._loader.modules[e].module},has:function(e){return!!this._loader.modules[e]},import:function(e,a){var r=this;return m.resolve(r.normalize(e,a&&a.name,a&&a.address)).then(function(n){var t=r._loader;return t.modules[n]?(S(t.modules[n],[],t._loader),t.modules[n].module):t.importPromises[n]||O(r,n,s(t,n,a||{}).then(function(e){return delete t.importPromises[n],l(t,e)}).then(null,function(e){if(r.defined&&(r.defined[n]=void 0),e.onModuleExecution&&r.getModuleLoad){var t=r.getModuleLoad(n);if(t)return r.rejectWithCodeFrame(e,t)}else if(e.promise)return e.promise;return m.reject(e)}))})},load:function(e,t){return this._loader.modules[e]?(S(this._loader.modules[e],[],this._loader),m.resolve(this._loader.modules[e].module)):this._loader.importPromises[e]||O(this,e,s(this._loader,e,{}))},module:function(e,t){var n=h("<Anonymous"+ ++this.anonymousCount+">"),t=(n.address=t&&t.address,y(this._loader,n)),e=m.resolve(e),a=this._loader,t=t.done.then(function(){return l(a,n)});return b(a,n,e),t},newModule:function(t){if("object"!=typeof t)throw new TypeError("Expected object");var e,n=new E;if(Object.getOwnPropertyNames&&null!=t)e=Object.getOwnPropertyNames(t);else for(var a in e=[],t)e.push(a);for(var r=0;r<e.length;r++)!function(e){i(n,e,{configurable:!1,enumerable:!0,get:function(){return t[e]}})}(e[r]);return Object.preventExtensions&&Object.preventExtensions(n),n},set:function(e,t){if(!(t instanceof E))throw new TypeError("Loader.set("+e+", module) must be a module");this._loader.modules[e]={module:t}},normalize:function(e,t,n){return e},locate:function(e){return e.name},fetch:function(e){throw new TypeError("Fetch not implemented")},translate:function(e){return e.source},instantiate:function(e){},notifyLoad:function(e,t,n){},provide:function(e,t,n){for(var a,r,o,i,s=0;s<this._loader.loads.length;s++)if(this._loader.loads[s].name===e){a=this._loader.loads[s];break}return a?((i=a).pass=null!=i.pass?i.pass+1:1,i="loading",o=(r=a).status,(r.status=i)!==o&&"loaded"===o&&r.linkSets.forEach(function(e){e.loadingCount++}),b(this._loader,a,m.resolve(t))):(this.delete(e),this.define(e,t,n))}}).newModule;"object"==typeof exports&&(module.exports=t),__global.Reflect=__global.Reflect||{},__global.Reflect.Loader=__global.Reflect.Loader||t,__global.Reflect.global=__global.Reflect.global||__global,__global.LoaderPolyfill=t}(),!function(e){var r=__global,n="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process);function o(e,t){return e.newModule({__useDefault:!0,default:r[t]})}function s(){var e="development",t="function"==typeof this.getEnv&&this.getEnv();return n?process.env.BABEL_ENV||process.env.NODE_ENV||t||e:t||e}function i(e){return l(e)?"string"==typeof e?e:e[0]:null}function l(e){return"string"==typeof e||e.length&&"string"==typeof e[0]}e.prototype.transpiler="babel",e.prototype.transpile=function(t){var n=this;return n.transpilerHasRun||(r.traceur&&!n.has("traceur")&&n.set("traceur",o(n,"traceur")),r.Babel&&!n.has("babel")&&n.set("babel",o(n,"Babel")),n.transpilerHasRun=!0),n.import(n.transpiler).then(function(e){return((e=e.__useDefault?e.default:e).Compiler?function(e,t){var n=this.traceurOptions||{},t=(n.modules="instantiate",n.script=!1,n.sourceMaps="inline",n.filename=e.address,n.inputSourceMap=e.metadata.sourceMap,n.moduleName=!1,new t.Compiler(n)),e=function(e,t,n){try{return t.compile(e,n)}catch(e){throw e[0]}}(e.source,t,n.filename);return e+="!eval"}:function(a,e){var r=this,o=e.Babel||e.babel||e,i=p(o),s=function(e,t){var n=function(e){e=e.metadata.npmPackage;if(e){e=e.steal||e.system;if(e&&e.babelOptions)return e.babelOptions}return this.babelOptions||{}}.call(this,e);n.sourceMap="inline",n.filename=e.address,n.code=!0,n.ast=!1,6<=p(t)?(delete n.optional,delete n.whitelist,delete n.blacklist,n.presets=function(e,t){var e=e||[],t=!1!==t.forceES5,n=t?[f,"react","stage-0"]:["react"];e.length&&t&&-1!=e.indexOf(f)&&e.unshift(f);return e.length?e:n}(n.presets,this),n.plugins=function(e){var e=e||[],t="transform-es2015-modules-systemjs";-1===e.indexOf(t)&&e.unshift(t);return e}(n.plugins)):(n.modules="system",n.blacklist||(n.blacklist=["react"]));return n}.call(r,a,o);return Promise.all([u.call(this,o,s),m.call(this,o,s)]).then(function(t){6<=i&&(s.plugins=[v.bind(null,a),function(e){var n=e.types;return{visitor:{Program:function(e,t){e.unshiftContainer("body",[n.exportNamedDeclaration(null,[n.exportSpecifier(n.identifier("true"),n.identifier("__esModule"))])])}}}}].concat(t[0]),s.presets=t[1]);try{return o.transform(a.source,s).code+"\n//# sourceURL="+a.address+"!eval"}catch(e){var n;return e instanceof SyntaxError?(t=new SyntaxError(e.message),n=new r.StackTrace(e.message,[r.StackTrace.item("",a.address,e.loc.line,e.loc.column)]),t.stack=n.toString(),Promise.reject(t)):Promise.reject(e)}})}).call(n,t,e)}).then(function(e){return'var __moduleAddress = "'+t.address+'";'+e})},e.prototype.instantiate=function(n){var a=this;return Promise.resolve(a.normalize(a.transpiler)).then(function(e){if(n.name===e)return{deps:[],execute:function(){var e=r.System,t=r.Reflect.Loader;return __eval("(function(require,exports,module){"+n.source+"})();",r,n),r.System=e,r.Reflect.Loader=t,o(a,"babel"===(e=n.name)?"Babel":e)}}})};var u=function(e,t){var n,a,r=s.call(this),o=t.env||{},i=[d.call(this,e,t.plugins)];for(n in o)r===n&&(a=o[n].plugins||[],i.push(d.call(this,e,a)));return Promise.all(i).then(function(e){var t=[];return e.forEach(function(e){t=t.concat(e)}),t})};function d(a,e){var r=[];return(e||[]).forEach(function(t){var e,n=i(t);!l(t)||c(a,n)?r.push(t):c(a,n)||(e=this.configMain||"package.json!npm",n=/\//.test(n=n)||/^(?:babel-plugin-)/.test(n)?n:"babel-plugin-"+n,r.push(this.import(n,{name:e}).then(function(e){e=e.__esModule?e.default:e;return"string"==typeof t?e:[e,t[1]]})))},this),Promise.all(r)}function c(e,t){return(e.availablePlugins||{})[/^(?:babel-plugin-)/.test(t)?t.replace("babel-plugin-",""):t]}var f="es2015-no-commonjs";function p(e){return(e.version?+e.version.split(".")[0]:6)||6}var m=function(e,t){var n,a,r=s.call(this),o=t.env||{},i=[h.call(this,e,t.presets)];for(n in o)r===n&&(a=o[n].presets||[],i.push(h.call(this,e,a)));return Promise.all(i).then(function(e){var t=[];return e.forEach(function(e){t=t.concat(e)}),t})};function h(a,e){var r=[];return(e||[]).forEach(function(t){var e,n=i(t);!l(t)||g(a,n)?r.push(t):g(a,n)||(e=this.configMain||"package.json!npm",n=/\//.test(n=n)||/^(?:babel-preset-)/.test(n)?n:"babel-preset-"+n,r.push(this.import(n,{name:e}).then(function(e){e=e.__esModule?e.default:e;return"string"==typeof t?e:[e,t[1]]})))},this),Promise.all(r)}function g(e,t){return(e.availablePresets||{})[/^(?:babel-preset-)/.test(t)?t.replace("babel-preset-",""):t]}function v(r){return r.metadata.importSpecifiers=Object.create(null),r.metadata.importNames=Object.create(null),r.metadata.exportNames=Object.create(null),{visitor:{ImportDeclaration:function(e,t){var e=e.node,n=e.source.value,a=e.source.loc,a=(r.metadata.importSpecifiers[n]=a,r.metadata.importNames[n]);(a=a||(r.metadata.importNames[n]=[])).push.apply(a,(e.specifiers||[]).map(function(e){return"ImportDefaultSpecifier"===e.type?"default":e.imported&&e.imported.name}))},ExportDeclaration:function(e,t){var n,a,e=e.node;e.source&&(n=e.source.value,a=r.metadata.exportNames[n],"ExportNamedDeclaration"===e.type?(a=a||(r.metadata.exportNames[n]=new Map),e.specifiers.forEach(function(e){a.set(e.exported.name,e.local.name)})):"ExportAllDeclaration"===e.type&&(r.metadata.exportNames[n]=1))}}}}e.prototype._getImportSpecifierPositionsPlugin=v}(__global.LoaderPolyfill),!function(){var o="undefined"!=typeof process&&!!process.platform.match(/^win/),n=__global.Promise||require("when/es6-shim/Promise");function r(e){e=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/?#]*(?::[^:@\/?#]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return e?{href:e[0]||"",protocol:e[1]||"",authority:e[2]||"",host:e[3]||"",hostname:e[4]||"",port:e[5]||"",pathname:e[6]||"",search:e[7]||"",hash:e[8]||""}:null}var i=/^\/\//;function s(e,t){var n,a=t;return i.test(t)?"http:"+t:(a=r((a=o?a.replace(/\\/g,"/"):a)||""),e=r(e||""),a&&e?(a.protocol||e.protocol)+(a.protocol||a.authority?a:e).authority+(t=a.protocol||a.authority||"/"===a.pathname.charAt(0)?a.pathname:a.pathname?(e.authority&&!e.pathname?"/":"")+e.pathname.slice(0,e.pathname.lastIndexOf("/")+1)+a.pathname:e.pathname,n=[],t.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?n.pop():n.push(e)}),n.join("").replace(/^\//,"/"===t.charAt(0)?"/":""))+(a.protocol||a.authority||a.pathname?a.search:a.search||e.search)+a.hash:null)}if("undefined"!=typeof XMLHttpRequest)c=function(n,e,a){var t,r=new XMLHttpRequest,o=!0,i=!1;function s(){e(r.responseText)}function l(){var e=r.status,t=e+" "+r.statusText+": "+n+"\n"||"XHR error",t=new Error(t);t.url=n,t.statusCode=e,a(t)}"withCredentials"in r||(t=/^(\w+:)?\/\/([^\/]+)/.exec(n))&&(o=t[2]===window.location.host,t[1]&&(o&=t[1]===window.location.protocol)),o||"undefined"==typeof XDomainRequest||((r=new XDomainRequest).onload=s,r.onerror=l,r.ontimeout=l,r.onprogress=function(){},i=!(r.timeout=0)),r.onreadystatechange=function(){4===r.readyState&&(200===r.status||0==r.status&&r.responseText?s:l)()},r.open("GET",n,!0),i&&setTimeout(function(){r.send()},0),r.send(null)};else if("undefined"!=typeof require)var t,l,u,d=/ENOENT/,c=function(n,a,r){var e;return"file:"===n.substr(0,5)?(t=t||require("fs"),e=n.substr(5),o&&(e=e.replace(/\//g,"\\")),t.readFile(e,function(e,t){if(e)return d.test(e.message)&&(e.statusCode=404,e.url=n),r(e);a(t+"")})):"http"===n.substr(0,4)?("https:"===n.substr(0,6)?u=u||require("https"):l=l||require("http")).get(n,function(e){var t;200!==e.statusCode?r(new Error("Request failed. Status: "+e.statusCode)):(t="",e.setEncoding("utf8"),e.on("data",function(e){t+=e}),e.on("end",function(){a(t)}))}):void 0};else{if("function"!=typeof fetch)throw new TypeError("No environment fetch API available.");c=function(e,t,n){fetch(e).then(function(e){return e.text()}).then(function(e){t(e)}).then(null,function(e){n(e)})}}function f(r,o,i){if(void 0===i.getDependants)return n.resolve();var s,l,u=i.getDependants(o.name);return Array.isArray(u)&&u.length?(s=i.StackTrace,l=i.isEnv("production"),n.resolve().then(function(){return l?n.resolve():i.import("@@babel-code-frame")}).then(function(e){var t=i.getModuleLoad(u[0]),n=i.getImportSpecifier(o.name,t)||{line:1,column:0},a="The module ["+i.prettyName(o)+"] couldn't be fetched.\nClicking the link in the stack trace below takes you to the import.\nSee https://stealjs.com/docs/StealJS.error-messages.html#404-not-found for more information.\n",a=r.message+"\n"+a,e=(l||(a+="\n"+e(t.metadata.originalSource||t.source,n.line,n.column)+"\n"),r.message=a,new s(a,[s.item(null,t.address,n.line,n.column)]));r.stack=e.toString()})):n.resolve()}var e=new(function(t){"use strict";function e(e){if(t.call(this,e||{}),"undefined"!=typeof location&&location.href){e=__global.location.href.split("#")[0].split("?")[0];this.baseURL=e.substring(0,e.lastIndexOf("/")+1)}else{if("undefined"==typeof process||!process.cwd)throw new TypeError("No environment baseURL");this.baseURL="file:"+process.cwd()+"/",o&&(this.baseURL=this.baseURL.replace(/\\/g,"/"))}this.paths={"*":"*.js"}}return e.__proto__=null!==t?t:Function.prototype,e.prototype=$__Object$create(null!==t?t.prototype:null),$__Object$defineProperty0(e.prototype,"constructor",{value:e}),$__Object$defineProperties(e.prototype,{global:{get:function(){return isBrowser?window:isWorker?self:__global},enumerable:!0,configurable:!0},strict:{get:function(){return!0},enumerable:!0,configurable:!0},normalize:{value:function(e,t,n){if("string"!=typeof e)throw new TypeError("Module name must be a string");var a=e.split("/");if(0==a.length)throw new TypeError("No module name provided");var r=0,o=!1,i=0;if("."==a[0]){if(++r==a.length)throw new TypeError('Illegal module name "'+e+'"');o=!0}else{for(;".."==a[r];)if(++r==a.length)throw new TypeError('Illegal module name "'+e+'"');r&&(o=!0),i=r}if(!o)return e;o=[],t=(t||"").split("/");t.length;return(o=(o=o.concat(t.splice(0,t.length-1-i))).concat(a.splice(r,a.length-r))).join("/")},enumerable:!1,writable:!0},locate:{value:function(e){var t,n,a=e.name,r="";for(n in this.paths){var o=n.split("*");if(2<o.length)throw new TypeError("Only one wildcard in a path is permitted");if(1==o.length){if(a==n&&n.length>r.length){r=n;break}}else a.substr(0,o[0].length)==o[0]&&a.substr(a.length-o[1].length)==o[1]&&(r=n,t=a.substr(o[0].length,a.length-o[1].length-o[0].length))}e=this.paths[r];return t&&(e=e.replace("*",t)),isBrowser&&(e=e.replace(/#/g,"%23")),s(this.baseURL,e)},enumerable:!1,writable:!0},fetch:{value:function(a){var r=this;return new n(function(t,n){c(s(r.baseURL,a.address),function(e){t(e)},function(e){var t=n.bind(null,e);f(e,a,r).then(t,t)})})},enumerable:!1,writable:!0}}),e}(__global.LoaderPolyfill));"object"==typeof exports&&(module.exports=e),__global.System=e}()}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:global),!function(c){var a,x,o,t,i,r,e,l,n,s,u,d,f;function p(e,t){for(var n=0;n<e.length;n++)void 0!==a&&-1!=e[n].indexOf(a.src)||t.push(e[n])}c.upgradeSystemLoader=function(){c.upgradeSystemLoader=void 0;var v,e,w=Array.prototype.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},s="undefined"!=typeof process&&!!process.platform.match(/^win/);function r(e){e=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/?#]*(?::[^:@\/?#]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return e?{href:e[0]||"",protocol:e[1]||"",authority:e[2]||"",host:e[3]||"",hostname:e[4]||"",port:e[5]||"",pathname:e[6]||"",search:e[7]||"",hash:e[8]||""}:null}function b(e,t){var n,a;return t=r((t=s?t.replace(/\\/g,"/"):t)||""),e=r(e||""),t&&e?(t.protocol||e.protocol)+(t.protocol||t.authority?t:e).authority+(n=t.protocol||t.authority||"/"===t.pathname.charAt(0)?t.pathname:t.pathname?(e.authority&&!e.pathname?"/":"")+e.pathname.slice(0,e.pathname.lastIndexOf("/")+1)+t.pathname:e.pathname,a=[],n.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?a.pop():a.push(e)}),a.join("").replace(/^\//,"/"===n.charAt(0)?"/":""))+(t.protocol||t.authority||t.pathname?t.search:t.search||e.search)+t.hash:null}e=c.System,(v=c.System=new LoaderPolyfill(e)).baseURL=e.baseURL,v.paths={"*":"*.js"},v.originalSystem=e,v.noConflict=function(){c.SystemJS=v,c.System=v.originalSystem};var l,u=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(e){u=!1}try{Object.defineProperty({},"a",{})&&(l=Object.defineProperty)}catch(e){l=function(e,t,n){try{e[t]=n.value||n.get.call(e)}catch(e){}}}function y(e){var t={};if(("object"==typeof e||"function"==typeof e)&&e!==c)if(u)for(var n in e)"default"!==n&&!function(t,n,a){try{var e;(e=Object.getOwnPropertyDescriptor(n,a))&&l(t,a,e)}catch(e){return t[a]=n[a]}}(t,e,n);else{var a,r=t,o=e,i=void 0,s=o&&o.hasOwnProperty;for(a in o)s&&!o.hasOwnProperty(a)||i&&a in r||(r[a]=o[a])}return t.default=e,l(t,"__useDefault",{value:!0}),t}var d=c.System.originalSystem;function S(e){function t(c){var f,p,m,h;c.has("@@global-helpers")||(f=c.global.hasOwnProperty,p={},c.set("@@global-helpers",c.newModule({prepareGlobal:function(e,t,n){var a,r,o=t,t=n;if("object"==typeof e&&(o=(n=e).deps,a=n.globals,t=n.exportName,n.moduleName,r=n.require),o)for(var i=0;i<o.length;i++){var s=p[o[i]];if(s)for(var l in s)c.global[l]=s[l]}if(a&&r)for(var u in a)c.global[u]=r(a[u]);if(!t&&!1!==t&&!1!==c.inferGlobals)for(var d in m={},h=function(e){for(var t={},n=0,a=e.length;n<a;n++)t[e[n]]=!0;return t}(["indexedDB","sessionStorage","localStorage","clipboardData","frames","webkitStorageInfo","toolbar","statusbar","scrollbars","personalbar","menubar","locationbar","webkitIndexedDB","screenTop","screenLeft"]),c.global)if(!h[d]&&(!f||c.global.hasOwnProperty(d)))try{m[d]=c.global[d]}catch(e){h[d]=!0}},retrieveGlobal:function(e,t,n){var a,r={};if(n)o=n.call(c.global);else if(t){var n=t.split(".")[0],o=function(e,t){for(var n=e.split("."),a=t;n.length;)a=a[n.shift()];return a}(t,c.global);r[n]=c.global[n]}else if(!1!==t&&!1!==c.inferGlobals)for(var i in c.global)h[i]||f&&!c.global.hasOwnProperty(i)||i==c.global||m[i]==c.global[i]||(r[i]=c.global[i],o?o!==c.global[i]&&(a=!0):void 0===o&&(o=c.global[i]));return p[e]=r,a?r:o}})))}e._extensions.push(S),t(e);var n=e.instantiate;e.instantiate=function(r){var o=this,i=(t(o),r.metadata.exports);if(r.metadata.format||(r.metadata.format="global"),r.metadata.globals)for(var e in r.metadata.globals)r.metadata.deps.push(r.metadata.globals[e]);return"global"==r.metadata.format&&(r.metadata.execute=function(e,t,n){o.get("@@global-helpers").prepareGlobal({require:e,moduleName:n.id,exportName:i,deps:r.metadata.deps,globals:r.metadata.globals}),i&&(r.source+='\nthis["'+i+'"] = '+i+";");var a=o.global.define,e=o.global.require;return o.global.define=void 0,o.global.module=void 0,o.global.exports=void 0,o.__exec(r,o.global),o.global.require=e,o.global.define=a,o.get("@@global-helpers").retrieveGlobal(n.id,i,r.metadata.init)}),n.call(o,r)}}!function e(t){var n,a,r=t.import,o=(t.import=function(e,t){return r.call(this,e,t).then(function(e){return e.__useDefault?e.default:e})},{}),i=(Object.defineProperty(o,"__esModule",{enumerable:!1,configurable:!0,writable:!1,value:!0}),t.set("@empty",t.newModule(o)),"undefined"!=typeof require&&(t._nodeRequire=require),t.config=function(e){for(var t in e){var n=e[t];if("object"!=typeof n||n instanceof Array)this[t]=n;else for(var a in this[t]=this[t]||{},n)this[t][a]=n[a]}},"undefined"==typeof window&&"undefined"==typeof WorkerGlobalScope?(n="file:"+process.cwd()+"/",s&&(n=n.replace(/\\/g,"/"))):"undefined"==typeof window?n=t.global.location.href:(n=document.baseURI)||(o=document.getElementsByTagName("base"),n=o[0]&&o[0].href||window.location.href),t.locate);t.locate=function(e){return this.baseURL!=a&&("/"!=(a=b(n,this.baseURL)).substr(a.length-1,1)&&(a+="/"),this.baseURL=a),Promise.resolve(i.call(this,e))},t._getLineAndColumnFromPosition=function(e,t){for(var n,a=(t||0)+1,r=0,o=1,i=0,s=e.length;a&&r<s&&(n=e[r],a!==r);)"\n"===n?(r++,o++,i=0):(i++,r++);return{line:o,column:i}},t._extensions=t._extensions||[],t._extensions.push(e),t.clone=function(){var e=new LoaderPolyfill(d),t=(e.baseURL=this.baseURL,e.paths={"*":"*.js"},this._extensions),n=e;n._extensions=[];for(var a=0,r=t.length;a<r;a++)t[a](n);return e}}(v),function e(t){var i=/^(\s*\/\*.*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)+/,s=/\/\*.*\*\/|\/\/[^\n]*|"[^"]+"\s*;?|'[^']+'\s*;?/g;function l(e,t){var n=e.meta&&e.meta[t.name];if(n)for(var a in n)t.metadata[a]=t.metadata[a]||n[a]}t.meta={},t._extensions=t._extensions||[],t._extensions.push(e);var n=t.locate,u=(t.locate=function(e){return l(this,e),n.call(this,e)},t.translate);t.translate=function(e){var t=e.source.match(i);if(t)for(var n=t[0].match(s),a=0;a<n.length;a++){var r=n[a].length,o=n[a].substr(0,1);n[a].substr(r-1,1),'"'!=o&&"'"!=o||(o=(r=n[a].substr(1,n[a].length-3)).substr(0,r.indexOf(" ")))&&(r=r.substr(o.length+1,r.length-o.length-1),e.metadata[o]instanceof Array?e.metadata[o].push(r):e.metadata[o]||(e.metadata[o]=r))}return l(this,e),u.call(this,e)}}(v),function e(r){var s,l;function n(e,t){-1!=(a=e.source.lastIndexOf("\n"))&&"//# sourceMappingURL="==e.source.substr(a+1,21)&&(n=e.source.substr(a+22,e.source.length-a-22),n=b(e.address,n));var n,a=e.metadata&&e.metadata.eval,t=t||this.global;x(e.source,e.address,t,n,a)}function a(e,t,n,a){if("string"!=typeof e&&(a=n,n=t,t=e,e=null),l=!0,a="boolean"==typeof n?{declarative:!1,deps:t,execute:a,executingRequire:n}:{declarative:!0,deps:t,declare:n},e)(a.name=e)in r.defined||(r.defined[e]=a);else if(a.declarative){if(s)throw new TypeError("Multiple anonymous System.register calls in the same module file.");s=a}}function t(e){var t;e.register||(e.register=a,e.defined||(e.defined={}),t=e.onScriptLoad,e.onScriptLoad=function(e){t(e),s&&(e.metadata.entry=s),l&&(e.metadata.format=e.metadata.format||"register",e.metadata.registered=!0)})}function u(e,t){if(!(e=t.defined[e]).module){e.groupIndex=0;for(var n=[],a=(function e(t,n,a){if(a[t.groupIndex]=a[t.groupIndex]||[],-1==w.call(a[t.groupIndex],t)){a[t.groupIndex].push(t);for(var r=0,o=t.normalizedDeps.length;r<o;r++){var i=t.normalizedDeps[r],i=n.defined[i];if(i&&!i.evaluated){var s=t.groupIndex+(i.declarative!=t.declarative);if(void 0===i.groupIndex||i.groupIndex<s){if(void 0!==i.groupIndex&&(a[i.groupIndex].splice(w.call(a[i.groupIndex],i),1),0==a[i.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");i.groupIndex=s}e(i,n,a)}}}}(e,t,n),!!e.declarative==n.length%2),r=n.length-1;0<=r;r--){for(var o=n[r],i=0;i<o.length;i++){var s=o[i];(a?function e(t,n){if(!t.module){var i=t.module=f(t.name),s=t.module.exports,a=t.declare.call(n.global,function(e,t){i.locked=!0,s[e]=t;for(var n=0,a=i.importers.length;n<a;n++){var r,o=i.importers[n];o.locked||(r=w.call(o.dependencies,i),o.setters[r](s))}return i.locked=!1,t});if(i.setters=a.setters,i.execute=a.execute,!i.setters||!i.execute)throw new TypeError("Invalid System.register form for "+t.name);for(var r=0,o=t.normalizedDeps.length;r<o;r++){var l=t.normalizedDeps[r],u=n.defined[l],d=c[l];u=d?d.exports:u&&!u.declarative?u.module.exports&&u.module.exports.__esModule?u.module.exports:u.esModule:u?(e(u,n),(d=u.module).exports):n.get(l),d&&d.importers?(d.importers.push(i),i.dependencies.push(d)):i.dependencies.push(null),i.setters[r]&&i.setters[r](u)}}}:d)(s,t)}a=!a}}}void 0===w&&(w=Array.prototype.indexOf),void 0!==x&&("undefined"==typeof document||document.addEventListener)||(x=eval),r._extensions=r._extensions||[],r._extensions.push(e),r.__exec=n,t(r);var c={};function f(e){return c[e]||(c[e]={name:e,dependencies:[],exports:{},importers:[]})}function d(s,l){if(!s.module){var e={},t=(s.isESModule&&Object.defineProperty(e,"__esModule",{value:!0}),s.module={exports:e,id:s.name});if(!s.executingRequire)for(var n=0,a=s.normalizedDeps.length;n<a;n++){var r=s.normalizedDeps[n];(r=l.defined[r])&&d(r,l)}s.evaluated=!0;var o=s.execute.call(l.global,function(e){for(var t=0,n=s.deps.length;t<n;t++)if(s.deps[t]==e){var a,r=s.normalizedDeps[t],o=l,i=o.defined[r];if(i)i.declarative?p(r,[],o):i.evaluated||d(i,o),a=i.module.exports;else if(!(a=o.get(r)))throw new Error("Unable to load dependency "+r+".");return(!i||i.declarative)&&a&&a.__useDefault?a.default:a}throw new TypeError("Module "+e+" not declared as a dependency.")},e,t);o&&(t.exports=o),(e=t.exports)&&(e.__esModule||e instanceof i)?s.esModule=e:s.esmExports?e===l.global?s.esModule={default:e,__useDefault:!0}:s.esModule=y(e):s.esModule={default:e}}}function p(e,t,n){var a=n.defined[e];if(a&&!a.evaluated&&a.declarative){t.push(e);for(var r=0,o=a.normalizedDeps.length;r<o;r++){var i=a.normalizedDeps[r];-1==w.call(t,i)&&(n.defined[i]?p(i,t,n):n.get(i))}a.evaluated||(a.evaluated=!0,a.module.execute.call(n.global))}}var i=r.newModule({}).constructor,o=/\bSystem\.register\b/,m=r.fetch,h=(r.fetch=function(e){return t(this),this.defined[e.name]?(e.metadata.format="defined",""):(s=null,l=!1,m.call(this,e))},r.translate),g=(r.translate=function(t){return this.register=a,this.__exec=n,t.metadata.deps=t.metadata.deps||[],Promise.resolve(h.call(this,t)).then(function(e){return(t.metadata.init||t.metadata.exports)&&(t.metadata.format=t.metadata.format||"global"),("register"==t.metadata.format||!t.metadata.format&&t.source.match(o))&&(t.metadata.format="register"),e})},r.instantiate);r.instantiate=function(t){var n,a=this;if(a.defined[t.name])(n=a.defined[t.name]).deps=n.deps.concat(t.metadata.deps);else if(t.metadata.entry)n=t.metadata.entry;else if(t.metadata.execute)n={declarative:!1,deps:t.metadata.deps||[],esModule:null,execute:t.metadata.execute,executingRequire:t.metadata.executingRequire};else if("register"==t.metadata.format){s=null,l=!1;var e=a.global.System;if((a.global.System=a).__exec(t),a.global.System=e,!(n=s||n)&&v.defined[t.name]&&(n=v.defined[t.name]),!l&&!t.metadata.registered)throw new TypeError(t.name+" detected as System.register but didn't execute.")}if(!n&&"es6"!=t.metadata.format)return{deps:t.metadata.deps,execute:function(){return a.newModule({})}};if(!n)return g.call(this,t);(a.defined[t.name]=n).deps=function(e){for(var t=[],n=0,a=e.length;n<a;n++)-1==w.call(t,e[n])&&t.push(e[n]);return t}(n.deps),n.name=t.name,n.esmExports=!1!==t.metadata.esmExports;for(var r=[],o=0,i=n.deps.length;o<i;o++)r.push(Promise.resolve(a.normalize(n.deps[o],t.name)));return Promise.all(r).then(function(e){return n.normalizedDeps=e,{deps:n.deps,execute:function(){u(t.name,a),p(t.name,[],a),a.defined[t.name]=void 0;var e=n.module.exports;return n.declarative||(e=n.esModule),a.newModule(e)}}})}}(v),function e(t){t._extensions.push(e);var a,r,o=/(^\s*|[}\);\n]\s*)(import\s+(['"]|(\*\s+as\s+)?[^"'\(\)\n;]+\s+from\s+['"]|\{)|export\s+\*\s+from\s+["']|export\s+(\{|default|function|class|var|const|let|async\s+function))/,i=/["'].*["']/g,s=/\/\*[\s\S]*?\*\/|([^:]|^)\/\/.*$/gm,l=/\$traceurRuntime\s*\./,u=/babelHelpers\s*\./,n=!0,d="undefined"!=typeof process&&"undefined"!=typeof require&&require.resolve;function c(e,t,n){if(e.meta[t]={format:"global"},d&&!e.paths[t])try{e.paths[t]=require.resolve(n||t)}catch(e){}}var f=t.locate;t.locate=function(e){var t=this;return n&&("traceur"==t.transpiler?(c(t,"traceur","traceur/bin/traceur.js"),t.meta.traceur.exports="traceur",c(t,"traceur-runtime","traceur/bin/traceur-runtime.js")):"babel"==t.transpiler&&c(t,"babel","babel-standalone/babel.js"),n=!1),f.call(t,e)};var p=t.translate;t.translate=function(n){var e=this;return p.call(e,n).then(function(t){if("es6"==n.metadata.format||!n.metadata.format&&t.replace(i,'""').replace(s,"$1").match(o))return n.metadata.format="es6",t;if("register"==n.metadata.format){if(!e.global.$traceurRuntime&&n.source.match(l))return e.import("traceur-runtime").then(function(){return t});if(!e.global.babelHelpers&&n.source.match(u))return e.import("babel/external-helpers").then(function(){return t})}return"traceur"==e.transpiler?Promise.all([a=a||e.normalize(e.transpiler),r=r||e.normalize(e.transpiler+"-runtime")]).then(function(e){return n.name==e[0]||n.name==e[1]?"(function() { var curSystem = System; "+t+"\nSystem = curSystem; })();":t}):t})}}(v),S(v),function e(o){o._extensions.push(e),o._determineFormat=Function.prototype;var t=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])(exports\s*(\[['"]|\.)|module(\.exports|\['exports'\]|\["exports"\])\s*(\[['"]|[=,\.])|Object.defineProperty\(\s*module\s*,\s*(?:'|")exports(?:'|"))/,l=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF."'])require\s*\(\s*("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')\s*\)/g,u=/(^|[^\\])(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,d=/("[^"\\\n\r]*(\\.[^"\\\n\r]*)*"|'[^'\\\n\r]*(\\.[^'\\\n\r]*)*')/g;var n=o.instantiate;o.instantiate=function(r){var e;return r.metadata.format||(t.lastIndex=0,l.lastIndex=0,(l.exec(r.source)||t.exec(r.source))&&(r.metadata.format="cjs",this._determineFormat(r))),"cjs"==r.metadata.format&&(e=function(e){l.lastIndex=u.lastIndex=d.lastIndex=0;var t,n,a=[],r={},o=[],i=[];function s(e,t){for(var n=0;n<e.length;n++)if(e[n][0]<t.index&&e[n][1]>t.index)return 1}if(e.length/e.split("\n").length<200){for(;t=d.exec(e);)o.push([t.index,t.index+t[0].length]);for(;t=u.exec(e);)s(o,t)||i.push([t.index,t.index+t[0].length])}for(;t=l.exec(e);)s(o,t)||s(i,t)||(n=t[1].substr(1,t[1].length-2)).match(/"|'/)||(a.push(n),r[n]=t.index);return{deps:a,info:r}}(r.source),r.metadata.deps=r.metadata.deps?r.metadata.deps.concat(e.deps):e.deps,r.metadata.getImportPosition=function(t,n){var a=this;return function(e){return e=n[e],a._getLineAndColumnFromPosition(t.source,e)}}.call(this,r,e.info),r.metadata.executingRequire=!0,r.metadata.execute=function(e,t,n){var a=(r.address||"").split("/"),t=(a.pop(),a=a.join("/"),v._nodeRequire&&(a=a.substr(5)),o.global._g={global:o.global,exports:t,module:n,require:e,__filename:v._nodeRequire?r.address.substr(5):r.address,__dirname:a},o.global.define),n=(o.global.define=void 0,{name:r.name,source:"(function() {\n(function(global, exports, module, require, __filename, __dirname){\n"+r.source+"\n}).call(_g.exports, _g.global, _g.exports, _g.module, _g.require, _g.__filename, _g.__dirname);})();",address:r.address});try{o.__exec(n)}catch(e){throw o.StackTrace&&!o.StackTrace.parse(e)&&(e.stack=new o.StackTrace(e.message,[o.StackTrace.item("<anonymous>",r.address,1,0)]).toString()),e}o.global.define=t,o.global._g=void 0}),n.call(this,r)}}(v),function e(t){var o,i,s,r,l,u,n,d="undefined"!=typeof module&&module.exports,c=(t._extensions.push(e),/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*(("[^"]+"|'[^']+')\s*,|\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*(\s*("[^"]+"|'[^']+')\s*,?)?(\s*(\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*\s*\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/),f=/\/\*[\s\S]*?\*\/|([^:]|^)\/\/.*$/gm,p=/(function|var|let|const|return|export|\"|\'|\(|\=)$/i,m=/\(([^\)]*)\)/,h=/^\s+|\s+$/g,g={},v={"/*":/[\s\S]*?\*\//g,"//":/[^\r\n]+(?:\r?\n|$)/g,'"':/(?:\\[\s\S]|[^\\])*?"/g,"'":/(?:\\[\s\S]|[^\\])*?'/g,"`":/(?:\\[\s\S]|[^\\])*?`/g,require:/\s*\(\s*(['"`])((?:\\[\s\S]|(?!\1)[^\\])*?)\1\s*\)/g,"/regexp/":/\/(?:(?:\\.|[^\/\r\n])+?)\//g},b=/Object\.defineProperty\([A-Za-z]+, ?['"]__esModule['"], ?{ ?value: ?(!0|true) ?}\)/;function y(e,t,n,a){var r,o=this;if("object"==typeof e&&!(e instanceof Array))return y.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if(!(e instanceof Array)){if("string"==typeof e)return(r=o.get(e)).__useDefault?r.default:r;throw new TypeError("Invalid require")}Promise.all(e.map(function(e){return o.import(e,a)})).then(function(e){t&&t.apply(null,e)},n)}function a(p){var t=p.onScriptLoad;function e(e,t,n){var a,l,u,d,c=t,f=n,t=!1,n=("string"!=typeof e&&(f=c,c=e,e=null),c instanceof Array||(f=c,c=["require","exports","module"]),"function"!=typeof f&&(a=f,f=function(){return a}),void 0===c[c.length-1]&&c.pop(),-1!=(l=w.call(c,"require"))&&(c.splice(l,1),r=f.toString(),c=c.concat(function(e,t){var n,a=[],t=(e.match(m)[1].split(",")[t]||"require").replace(h,""),r=g[t]||(g[t]=new RegExp("/\\*|//|\"|'|`|(?:^|\\breturn\\b|[([=,;:?><&|^*%~+-])\\s*(?=/)|\\b"+t+"(?=\\s*\\()","g"));for(r.lastIndex=0,v[t]=v.require;o=r.exec(e);){var o,i=o[0];(i=(i=v[i])||v["/regexp/"]).lastIndex=r.lastIndex,(n=i.exec(e))&&n.index===r.lastIndex&&(r.lastIndex=i.lastIndex,-1<(o=o.index-1)&&"."===e.charAt(o)||i!==v.require||n[2]&&a.push(n[2]))}return a}(r,l))),-1!=(u=w.call(c,"exports"))&&(c.splice(u,1),r||(r=f.toString(),t=b.test(r))),-1!=(d=w.call(c,"module"))&&c.splice(d,1),{deps:c,execute:function(e,t,n){for(var a,r,o,i=[],s=0;s<c.length;s++)i.push(e(c[s]));if(n.uri=p.baseURL+n.id,n.config=function(){},-1!=d&&i.splice(d,0,n),-1!=u&&i.splice(u,0,t),-1!=l&&i.splice(l,0,(a=n.id,r=e,o=p,function(e,t,n){return"string"==typeof e?r(e):y.call(o,e,t,n,{name:a})})),void 0!==(t=void 0===(t=f.apply(S,i))&&n?n.exports:t))return t}});if(e){var r=s&&s.metadata&&s.metadata.parsedModuleName;r&&r.version&&(r.modulePath===e||r.packageName===e)&&p.register(r.moduleName,n.deps,!1,n.execute),o=0!=c.length||o||i?null:n,i=!0,p.register(e,n.deps,!1,n.execute)}else{if(o)throw new TypeError("Multiple defines for anonymous module");o=n}p.defined[e]&&(p.defined[e].isESModule=t)}p.onScriptLoad=function(e){t(e),(o||i)&&(e.metadata.format="defined",e.metadata.registered=!0),o&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(o.deps):o.deps,e.metadata.execute=o.execute)},e.amd={},p.amdDefine=e}function x(e,t){e.amdDefine||a(e),i=o=null,s=t,t=e.global,r=t.module,l=t.exports,u=t.define,t.module=void 0,t.exports=void 0,t.define&&t.define===e.amdDefine||(t.define=e.amdDefine)}t.amdRequire=function(){return y.apply(this,arguments)},a(t),t.scriptLoader&&(n=t.fetch,t.fetch=function(e){return x(this,e),n.call(this,e)});var _=t.instantiate;t.instantiate=function(e){var t=this,n=e.source.replace(f,"$1"),a=n.match(c);if(("amd"==e.metadata.format||!e.metadata.format&&a)&&(n=n.substring(0,n.indexOf(a[0])).replace(h,""),!p.test(n))){if(!(e.metadata.format="amd")!==t.execute&&(x(t,e),t.__exec(e),(a=(a=t).global).define=u,a.module=r,a.exports=l,s=void 0,!o&&!i&&!d))throw new TypeError("AMD module "+e.name+" did not define");o&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(o.deps):o.deps,e.metadata.execute=o.execute)}return _.call(t,e)}}(v),function e(t){function f(e,t){return!(e.length<t.length||e.substr(0,t.length)!=t||e[t.length]&&"/"!=e[t.length])}function p(e){for(var t=1,n=0,a=e.length;n<a;n++)"/"===e[n]&&t++;return t}function m(e,t,n){return n+e.substr(t)}t.map=t.map||{},t._extensions.push(e);var n=t.normalize;t.normalize=function(e,a,t){var r=this,o=(r.map||(r.map={}),!1);return"/"==e.substr(e.length-1,1)&&(o=!0,e+="#"),Promise.resolve(n.call(r,e,a,t)).then(function(e){var t,n,e=function(e,t,n){var a,r,o,i,s=0,l=0;if(t)for(var u in n.map){var d=n.map[u];if("object"==typeof d&&f(t,u)&&!((o=p(u))<=l))for(var c in d)!f(e,c)||(i=p(c))<=s||(a=c,s=i,r=u,l=o)}if(a)return m(e,a.length,n.map[r][a]);for(u in n.map)"string"!=typeof(d=n.map[u])||!f(e,u)||(i=p(u))<=s||(a=u,s=i);return a?m(e,a.length,n.map[a]):e}(e,a,r);return o&&((t=e.split("/")).pop(),n=t.pop(),t.push(n),t.push(n),e=t.join("/")),e})}}(v),function e(t){void 0===w&&(w=Array.prototype.indexOf),t._extensions.push(e);var n=t.normalize,i=(t.normalize=function(e,t,r){var o=this,i=t;return i&&-1!=(t=i.indexOf("!"))&&(i=i.substr(0,t)),Promise.resolve(n.call(o,e,i,r)).then(function(e){var t,n,a=e.lastIndexOf("!");return-1!=a?(t=e.substr(0,a),n=e.substr(a+1)||t.substr(t.lastIndexOf(".")+1),new Promise(function(e){e(o.normalize(n,i,r))}).then(function(e){return n=e,o.normalize(t,i,r,!0)}).then(function(e){return e+"!"+n})):e})},t.locate),a=(t.locate=function(t){var n=this,e=t.name;if(this.defined&&this.defined[e])return i.call(this,t);var a,r,o=e.lastIndexOf("!");return-1!=o?(a=e.substr(o+1),t.name=e.substr(0,o),(r=n.pluginLoader||n).import(a,{metadata:{importingModuleName:e}}).then(function(){var e=r.get(a);return!1===(e=e.default||e).build&&n.pluginLoader&&(t.metadata.build=!1),t.metadata.plugin=e,t.metadata.pluginName=a,t.metadata.pluginArgument=t.name,t.metadata.buildType=e.buildType||"js",e.locate?e.locate.call(n,t):Promise.resolve(n.locate(t)).then(function(e){return e.replace(/\.js$/,"")})})):i.call(this,t)},t.fetch),r=(t.fetch=function(e){return!1===e.metadata.build&&this.pluginLoader?"":e.metadata.plugin&&e.metadata.plugin.fetch&&!e.metadata.pluginFetchCalled?(e.metadata.pluginFetchCalled=!0,e.metadata.plugin.fetch.call(this,e,a)):a.call(this,e)},t.translate),o=(t.translate=function(t){var n=this;return t.metadata.plugin&&t.metadata.plugin.translate?Promise.resolve(t.metadata.plugin.translate.call(n,t)).then(function(e){return"string"==typeof e&&(t.metadata.originalSource||(t.metadata.originalSource=t.source),t.source=e),r.call(n,t)}):r.call(n,t)},t.instantiate);t.instantiate=function(t){var n=this;return t.metadata.plugin&&t.metadata.plugin.instantiate?Promise.resolve(t.metadata.plugin.instantiate.call(n,t)).then(function(e){return e||o.call(n,t)}):(t.metadata.plugin&&!1===t.metadata.plugin.build&&(t.metadata.format="defined",t.metadata.deps.push(t.metadata.pluginName),t.metadata.execute=function(){return n.newModule({})}),o.call(n,t))}}(v),function e(t){void 0===w&&(w=Array.prototype.indexOf),t._extensions.push(e),t.bundles=t.bundles||{};var a=t.fetch;t.fetch=function(e){var t,n=this;if(n.trace)return a.call(this,e);for(t in n.bundles||(n.bundles={}),n.bundles)if(-1!=w.call(n.bundles[t],e.name))return Promise.resolve(n.normalize(t)).then(function(e){return n.bundles[e]=n.bundles[e]||n.bundles[t],n.meta=n.meta||{},n.meta[e]=n.meta[e]||{},n.meta[e].bundle=!0,n.load(e)}).then(function(){return n.defined[e.name]&&!e.metadata.format&&(e.metadata.format="defined"),""});return a.call(this,e)}}(v),function e(t){t.depCache=t.depCache||{},t._extensions.push(e);var r=t.locate;t.locate=function(e){var t=this,n=(t.depCache||(t.depCache={}),t.depCache[e.name]);if(n)for(var a=0;a<n.length;a++)t.load(n[a]);return r.call(t,e)}}(v)},e="undefined"==typeof window&&"undefined"!=typeof self&&"undefined"!=typeof importScripts,l="undefined"!=typeof window&&"undefined"!=typeof document,n="object"==typeof process&&"[object process]"==={}.toString.call(process),s=!!(n&&global.nw&&global.nw.process),u=l&&!s&&window.chrome&&window.chrome.extension,d="undefined"!=typeof process&&!!process.platform.match(/^win/),i=function(t,n,e){try{new Function(t).call(e)}catch(e){throw function(e,t,n){var a=[];e.originalErr||p((e.stack||e.message||e).toString().split("\n"),a);e.originalErr&&!a.length&&p(e.originalErr.stack.toString().split("\n"),a);var r=e instanceof SyntaxError;if(n&&r&&!e.originalErr&&a.length&&-1===e.stack.indexOf(n))for(var o=0;o<a.length;o++)if(/( at )|(@http)/.test(a[o])){a.splice(o,1," at eval ("+n+":1:1)"),e.stack=a.join("\n\t");break}var i=e.message;l||(i=i.replace(d?/file:\/\/\//g:/file:\/\//g,""));var s=e.constructor||Error,s=f?new s(i,e.fileName,e.lineNumber):new s(i);(!l||a)&&(s.stack=a.join("\n\t"));if(s.originalErr=e.originalErr||e,s.firstErr=e.firstErr||s,s.onModuleExecution=!0,r)return s.onlyIncludeCodeFrameIfRootModule=!0,function(e,t){if("function"!=typeof Error.captureStackTrace)return e;t=e.firstErr&&e.firstErr.logError||function(e,t){setTimeout(function(){new Function(e)})}.bind(null,t);return Object.defineProperty(e,"logError",{enumerable:!1,value:t})}(s,t);return s}(e,t,n)}},e?c.upgradeSystemLoader():!l&&!s||u?n&&(e=require("./src/loader"),c.System=e.System,c.Loader=e.Loader,c.upgradeSystemLoader(),module.exports=c.System,t=require("vm"),i=function(e){t.runInThisContext(e)}):(s=document.getElementsByTagName("script"),a=s[s.length-1],o=function(e){r=r||document.head||document.body||document.documentElement;var t,n=document.createElement("script"),e=(n.text=e,window.onerror);if(window.onerror=function(e){t=e},r.appendChild(n),r.removeChild(n),window.onerror=e,t)throw t},c.upgradeSystemLoader()),f="_"==new Error(0,"_").fileName,x=function(e,t,n,a,r){e+="\n//# sourceURL="+t+(a?"\n//# sourceMappingURL="+a:""),"script"===r&&"function"==typeof o?o(e):i(e,t,n)}}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:global),!function(e){function O(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})}function P(n,e){return R(e,function(e,t){n[t]=e}),n}function M(e){return e[e.length-1]}function k(e,t){return t=T(t||""),e=T(e||""),t&&e?(t.protocol||e.protocol)+(t.protocol||t.authority?t:e).authority+(n=t.protocol||t.authority||"/"===t.pathname.charAt(0)?t.pathname:t.pathname?(e.authority&&!e.pathname?"/":"")+e.pathname.slice(0,e.pathname.lastIndexOf("/")+1)+t.pathname:e.pathname,a=[],n.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?a.pop():a.push(e)}),a.join("").replace(/^\//,"/"===n.charAt(0)?"/":""))+(t.protocol||t.authority||t.pathname?t.search:t.search||e.search)+t.hash:null;var n,a}function L(e,t){for(var n=t.split("/"),a=e.split("/"),r=[];n.length&&a.length&&n[0]==a[0];)n.shift(),a.shift();for(var o=0;o<a.length-1;o++)r.push("../");return"./"+r.join("")+n.join("/")}function I(){if(C||r||o){if(document.currentScript)return document.currentScript;var e=document.scripts;return e.length?e[e.length-1]:void 0}}function D(e,t){var n=e.lastIndexOf("!"),a="",n=(-1!=n&&(r=e.substr(0,n),a="!"+e.substr(n+1),e=r),B(e)),r=i(e);return"/"===e[e.length-1]?e+B(e.substr(0,e.length-1))+a:/^(\w+(?:s)?:\/\/|\.|file|\/)/.test(e)||-1!==n.indexOf(".")?"js"===r?e.substr(0,e.lastIndexOf("."))+a:e+a:e+"/"+n+a}function t(e){return e=e||this.System,(e=n(e.clone())).loader.set("@steal",e.loader.newModule({default:e,__useDefault:!0})),e.clone=t,e}function n(o){function e(e){var t;void 0!==o&&(t=e)&&t.constructor&&t.call&&t.apply&&(o._extensions&&o._extensions.push(e),e(o,r))}function r(){function e(){var t,n=[],e=(R(a,function(e){"string"==typeof e?n.push(r.System.import(D(e))):"function"==typeof e&&(t=e)}),Promise.all(n));return t?e.then(function(e){return t&&t.apply(null,e)}):e}var a=arguments;return o.isEnv("production")?e():l.then(e,e)}function i(e,t,n){e[t]||(e[t]=n)}o.set("@loader",o.newModule({default:o,__useDefault:!0})),o.set("less",o.newModule({__useDefault:!0,default:{fetch:function(){throw new Error(["steal-less plugin must be installed and configured properly","See https://stealjs.com/docs/steal-less.html"].join("\n"))}}})),o.config({map:{"@loader/@loader":"@loader","@steal/@steal":"@steal"}}),o.set("@steal",o.newModule({default:r,__useDefault:!0})),o.Set=N;var l,t,n=o.clone,a=(o.clone=function(){var e=n.apply(this,arguments);return e.set("@loader",e.newModule({default:e,__useDefault:!0})),e.set("@steal",e.newModule({default:r,__useDefault:!0})),e.Set=N,e},r.System=r.loader=o,r.parseURI=T,r.joinURIs=k,r.normalize=D,r.relativeURI=L,(r.addExtension=e)(function(l){l.ext={};var u=l.normalize,d=/\.(\w+)!?$/;l.normalize=function(e,t,n,a){if(a)return u.apply(this,arguments);var r,o,i=e.match(d),s=e;return i&&(r="!"===e[e.length-1],o=i[1],t&&l.configMain!==e&&".js"===i[0]?s=e.substr(0,e.lastIndexOf(".")):l.ext[o]&&(s=e+(r?"":"!")+l.ext[o])),u.call(this,s,t,n)}}),e(function(e){var s=e.normalize,l=/@.+#.+/;e.normalize=function(e,t,n,a){var r,o=e.length-1,i=e;return"/"===e[o]&&(r=e.substring(0,o).lastIndexOf("/"),e=e.substring(r+1,o),i+=e=l.test(e)?e.substr(e.lastIndexOf("#")+1):e),s.call(this,i,t,n,a)}}),e(function(e){function u(e,t){var n=this;return Promise.resolve(n.normalize(e,t)).then(function(e){return n.locate({name:e,metadata:{}})}).then(function(e){var t=e;return t=".js"===e.substr(e.length-3)?e.substr(0,e.length-3):t})}var d=function(e,t){for(var n=t.split("/"),a=e.split("/"),r=[];n.length&&a.length&&n[0]==a[0];)n.shift(),a.shift();for(var o=0;o<a.length-1;o++)r.push("../");return r.join("")+n.join("/")},c=/(locate):\/\/([a-z0-9/._@-]*)/gi,f=e.translate;e.translate=function(n){var a=this;if(!n.metadata.plugin)return f.call(this,n);if(!n.metadata.plugin.locateScheme)return f.call(this,n);e=n.source,r=n.address,o=[],e.replace(c,function(e,t,n,a){o.push({start:a,end:a+e.length,name:n,postLocate:function(e){return d(r,e)}})});var e,r,o,i=o;if(!i.length)return f.call(this,n);for(var t=[],s=0,l=i.length;s<l;s++)t.push(u.call(this,i[s].name,n.name));return Promise.all(t).then(function(e){for(var t=i.length-1;0<=t;t--)n.source=n.source.substr(0,i[t].start)+i[t].postLocate(e[t])+n.source.substr(i[t].end,n.source.length);return f.call(a,n)})}}),e(function(e){e._contextualModules={},e.setContextual=function(e,t){this._contextualModules[e]=t};var i=e.normalize;e.normalize=function(e,t){var n=this,a=n.pluginLoader||n;if(t){var r,o=this._contextualModules[e];if(o)return n.has(r=e+"/"+t)?Promise.resolve(r):("string"==typeof o&&(o=a.import(o)),Promise.resolve(o).then(function(e){return e.default&&(e=e.default),Promise.resolve(e.call(n,t))}).then(function(e){return n.set(r,n.newModule(e)),r}))}return i.apply(this,arguments)}}),e(function(a){function e(){document.removeEventListener("DOMContentLoaded",e,!1),window.removeEventListener("load",e,!1),t()}function t(){for(var e=document.getElementsByTagName("script"),t=0;t<e.length;t++){var n=e[t];"steal-module"!=n.type&&"text/steal-module"!=n.type||(n=n.innerHTML,/\S/.test(n)&&a.module(n).catch(function(e){setTimeout(function(){throw e})}))}}a.loadScriptModules=function(){C&&("complete"===document.readyState?setTimeout(t):document.addEventListener&&(document.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",e,!1)))}}),e(function(e){var a,r=/(?:^\s*|[}{\(\);,\n\?\&]\s*)steal\s*\(\s*((?:"[^"]+"\s*,|'[^']+'\s*,\s*)*)/;function o(l){a=null,l.global.module=void 0,l.global.exports=void 0,l.global.steal=function(){for(var i,e,s=[],t=0;t<arguments.length;t++)"string"==typeof arguments[t]?s.push(D(arguments[t])):i=arguments[t];"function"!=typeof i&&(e=i,i=function(){return e}),a={deps:s,execute:function(e,t,n){for(var a=[],r=0;r<s.length;r++)a.push(e(s[r]));var o=i.apply(l.global,a);if(void 0!==o)return o}}}}var i=e.instantiate;e.instantiate=function(e){var t=this;if("steal"===e.metadata.format||!e.metadata.format&&e.source.match(r)){e.metadata.format="steal";var n=t.global.steal;if(o(t),t.__exec(e),t.global.steal=n,!a)throw"Steal module "+e.name+" did not call steal";a&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(a.deps):a.deps,e.metadata.execute=a.execute)}return i.call(t,e)}}),e(function(t){var s=t.instantiate,l="object"==typeof console?Function.prototype.bind.call(console.warn,console):null,a=(t._instantiatedModules||Object.defineProperty(t,"_instantiatedModules",{value:Object.create(null),writable:!1}),t._pendingState=function(e){delete t._instantiatedModules[e.address]},t.instantiate=function(e){var t=e.address,n=this,a=n._instantiatedModules;if(l&&t&&a[t]){var r=n._traceData&&n._traceData.loads||{},o=n._traceData&&n._traceData.parentMap||{},i=a[e.address];if(1===i.length&&i[0]===e.name)return s.apply(n,arguments);i=i.concat(e.name).map(function(e){return"\t"+e+"\n"+(o[e]?Object.keys(o[e]):[]).map(function(e){return"\t\t - "+r[e].address}).join("\n")}).join("\n\n");l(["The module with address "+e.address+" is being instantiated twice.","This happens when module identifiers normalize to different module names.\n","Modules:\n"+(i||"")+"\n","HINT: Import the module using the ~/[modulePath] identifier.\nLearn more at https://stealjs.com/docs/moduleName.html and https://stealjs.com/docs/tilde.html"].join("\n"))}else n._configLoaded&&t&&(a[e.address]=[e.name]);return s.apply(n,arguments)},t.delete);t.delete=function(e){var t=a.apply(this,arguments),n=this.getModuleLoad(e);return n&&(this._instantiatedModules[n.address]=void 0),t}}),e(function(e){e._warnNoMain=function(e){var t=this;this._noMainTimeoutId=setTimeout(function(){t.import=n},e)};var t={"package.json!npm":!0,npm:!0,"@empty":!0,"@dev":!0},n=e.import,a=(e.import=function(e){return void 0===t[e]&&e!==this.configMain&&(this.import=n,this._warnNoMain=Function.prototype,clearTimeout(this._noMainTimeoutId)),n.apply(this,arguments)},e.module);e.module=function(){var e=a.apply(this,arguments);return this.module=a,clearTimeout(this._noMainTimeoutId),e}}),e(function(e){var t=e.transpile,n=e._determineFormat;function a(e,t,n){var e=e.meta[t.name];e&&e.deps&&e.deps.length&&(e=e.deps.map(n).join("\n"),t.source=e+"\n"+t.source)}function r(e){return'import "'+e+'";'}function o(e){return'require("'+e+'");'}e.transpile=function(e){return a(this,e,r),t.apply(this,arguments)},e._determineFormat=function(e){return"cjs"===e.metadata.format&&a(this,e,o),n.apply(this,arguments)}}),e(function(e){function l(e,t){this.message=e,this.items=t}l.prototype.toString=function(){for(var e,t,n=["Error: "+this.message],a=0,r=this.items.length;a<r;a++)t=" at ",(e=this.items[a]).fnName&&(t+=e.fnName+" "),t+=l.positionLink(e),n.push(t);return n.join("\n")},l.positionLink=function(e){var t=e.line||0,n=e.column||0;return"("+e.url+":"+t+":"+n+")"},l.item=function(e,t,n,a){return{method:e,fnName:e,url:t,line:n,column:a}};var n=/^(?:([^@]*)@)?(.*?):(\d+)(?::(\d+))?$/;function a(e){e=e.match(n);if(!e)return null;var t=e[1]||"";return{method:t,fnName:t,url:e[2]||"",line:parseInt(e[3])||0,column:parseInt(e[4])||0}}var r=/^\s*(eval )?at (.*) \((.*)\)$/,o=/^\s*at()() (\S+)$/,i=/^\(?([^\(]+):(\d+):(\d+)\)?$/;function s(e){e=e.match(r)||e.match(o);if(!e)return null;var t=e[3].match(i);if(!t)return null;var n=e[2]||"";return{method:n=e[1]?"eval at "+n:n,fnName:n,url:t[1]||"",line:parseInt(t[2])||0,column:parseInt(t[3])||0}}function u(e){var t=[];return e.forEach(function(e){e&&t.push(e)}),t}l.parse=function(e){try{var t=function(e){var t=e.split("\n"),n=u(t.map(s));if(0<n.length)return n;if(0<(n=u(t.map(a))).length)return n;throw new Error("Unknown stack format: "+e)}(e.stack||e);if(t.length)return new l(e.message,t)}catch(e){return}},e.StackTrace=l,e.loadCodeFrame=function(){this.global.process||(this.global.process={argv:"",env:{}});var e=this.pluginLoader||this;return e.isEnv("production")?Promise.resolve():e.import("@@babel-code-frame")},e._parseJSONError=function(e,t){e=function(e){if((e=/at position ([0-9]+)/.exec(e))&&1<e.length)return Number(e[1])}(e.message);return e?this._getLineAndColumnFromPosition(t,e):{line:0,column:0}};var d=/at position( |:)([0-9]+)/,c=/at line ([0-9]+) column ([0-9]+)/;e._parseSyntaxErrorLocation=function(e,t){var n,a=d.exec(e.message);return a&&3===a.length?(n=Number(a[2]),this._getLineAndColumnFromPosition(t.source,n)):(a=c.exec(e.message))&&3===a.length?{line:Number(a[1]),column:Number(a[2])}:void 0},e._addSourceInfoToError=function(t,n,a,r){return this.loadCodeFrame().then(function(e){e&&(e=e(a.metadata.originalSource||a.source,n.line,n.column),t.message+="\n\n"+e+"\n");e=new l(t.message,[l.item(r,a.address,n.line,n.column)]);return t.stack=e.toString(),Promise.reject(t)})},e.rejectWithCodeFrame=function(r,o){var i=l.parse(r),s=r.onlyIncludeCodeFrameIfRootModule?i&&i.items[0]&&i.items[0].url===o.address&&i.items[0]:function(e,t){for(var n=0;n<e.items.length;n++)if(e.items[n].url===t)return e.items[n]}(i,o.address);return s?this.loadCodeFrame().then(function(e){var t,n,a;return e?(t=new Error(r.message),n=s.line,a=s.column,"cjs"===o.metadata.format&&(n-=3),(e=e(o.metadata.originalSource||o.source,n,a))?(t.message+="\n\n"+e+"\n",i.message=t.message,t.stack=i.toString(),Promise.reject(t)):Promise.reject(r)):Promise.reject(r)}):Promise.reject(r)}}),e(function(e){e.prettyName=function(e){var t=e.metadata.parsedModuleName;return t?t.packageName+"/"+t.modulePath:e.name}}),e(function(r){function i(t){var n=this,e=function(e){var t=[],n=this.getDependants(e.name),a=e.metadata.shakenParents;if(a)for(var r=0;r<n.length;r++)-1===a.indexOf(n[r])&&t.push(n[r]);else t=n;return t}.call(this,t),a=new n.Set,r=!1;return e.forEach(function(e){e=n.getModuleLoad(e);n.moduleSpecifierFromName(e,t.name);"es6"!==e.metadata.format&&(r=!0)}),r=r||s.call(n,t,function(e){e.forEach(function(e){a.add(e)})}),t.metadata.usedExports&&t.metadata.usedExports.forEach(function(e){a.add(e)}),n.treeShakeConfig[t.name]||(n.treeShakeConfig[t.name]=Object.create(null)),t.metadata.usedExports=n.treeShakeConfig[t.name].usedExports=a,{all:t.metadata.allExportsUsed=n.treeShakeConfig[t.name].allExportsUsed=r,used:a}}function s(e,t){var n=e.name,a=new this.Set,r=[n].concat(this.getDependants(n)),o=null,i=0,s=!0;if(1===r.length)return!0;var l=Object.create(null);r.forEach(function(e){l[e]=!0});do{var u=r[++i];if(null==u)n=r[++i],s=i<r.length-1;else if(!a.has(u)){a.add(u);var d=this.getModuleLoad(u),c=this.moduleSpecifierFromName(d,n),f="es6"===d.metadata.format,p=d.metadata.importNames,d=d.metadata.exportNames;if(!f&&l[u])return!0;if(p&&p[c]&&(m=p[c],o&&(f=m,m=[],f.forEach(function(e){o.has(e)&&m.push(o.get(e))})),s=!1!==t(m)),d&&d[c]){var m=d[c],p=this.getDependants(u);if(isNaN(m))o=m;else if(!p.length)return!0;r.push(null),r.push(u),r.push.apply(r,p)}s=!1!==s&&i<r.length-1}}while(s);return!1}var o=r.notifyLoad;r.notifyLoad=function(e,t,n){var a=r.getModuleLoad(t);return a&&a.metadata.treeShakable?function(e,t){var n=[],a=s.call(this,e,function(e){n.push.apply(n,e)}),r=a;if(!a&&e.metadata.usedExports)for(var o=0;o<n.length;o++)if(!e.metadata.usedExports.has(n[o])){r=!0;break}return r&&(a=e.metadata.originalSource||e.source,this.provide(e.name,a,e)),Promise.resolve()}.call(this,a,n):o.apply(this,arguments)};var n,l=function(e){if(!n)for(var t in n=[],e.availablePlugins)0===t.indexOf("syntax-")&&n.push(e.availablePlugins[t]);return n};function e(r){var o=this;return(o.pluginLoader||o).import("babel").then(function(e){var t,e=e.__useDefault?e.default:e,e=e.Babel||e.babel||e;try{var n=[].concat(l(e)),a=(n.push(o._getImportSpecifierPositionsPlugin.bind(null,r)),(t=o).noTreeShaking||!1===t.treeShaking||n.push(function(n,r){var e,t={exit:function(e,t){t.treeShakable=!1}},a={ImportDeclaration:{exit:function(e,t){t.treeShakable=0===e.node.specifiers.length}},FunctionDeclaration:t,VariableDeclaration:t};function o(){return e=e||i.call(n,r)}return{visitor:{Program:{enter:function(e){var t={};e.traverse(a,t),r.metadata.treeShakable=!1!==t.treeShakable,n.treeShakeConfig[r.name]||(n.treeShakeConfig[r.name]=Object.create(null)),n.treeShakeConfig[r.name].treeShakable=r.metadata.treeShakable}},ExportNamedDeclaration:function(e,t){var n,a;r.metadata.treeShakable&&(n=o(),a=n.used,n.all||(e.get("specifiers").forEach(function(e){var t=e.get("exported.name").node;a.has(t)||"__esModule"===t||e.remove()}),0===e.get("specifiers").length&&e.remove()))},ExportAllDeclaration:function(e,t){r.metadata.treeShakable&&o()}}}}.bind(null,o,r)),e.transform(r.source,{plugins:n,compact:!1,filename:r&&r.address}).code);return""===a?'"format es6";':a}catch(e){return e instanceof SyntaxError?Promise.resolve():Promise.reject(e)}})}var a=r.translate,u=/(^\s*|[}\);\n]\s*)(import\s+(['"]|(\*\s+as\s+)?[^"'\(\)\n;]+\s+from\s+['"]|\{)|export\s+\*\s+from\s+["']|export\s+(\{|default|function|class|var|const|let|async\s+function))/;r.translate=function(t){var n=this;return Promise.resolve().then(function(){if(u.test(t.source))return t.metadata.originalSource||(t.metadata.originalSource=t.source),e.call(n,t)}).then(function(e){return e&&(t.source=e),a.call(n,t)})},r.treeShakeConfig=Object.create(null),r._newLoader||Function.prototype;r._newLoader=function(e){var t,n=this.treeShakeConfig;for(t in e.treeShakeConfig=this.treeShakeConfig,n){var a=n[t],r=Object.create(null),a=(r.treeShakable=a.treeShakable,r.usedExports=new this.Set(a.usedExports),r.allExportsUsed=a.allExportsUsed,{meta:{}});a.meta[t]=r,e.config(a)}}}),e(function(e){var a=/\.mjs$/,r=/\.js$/,o=e.locate;e.locate=function(e){var t=a.test(e.name),n=o.apply(this,arguments);return t?Promise.resolve(n).then(function(e){return r.test(e)?e.substr(0,e.length-3):e}):n}}),e(function(e){function o(e,t){for(var n in e)t(n,e[n])}e._traceData={loads:{},parentMap:{}},e.getDependencies=function(e){e=this.getModuleLoad(e);return e?e.metadata.dependencies:void 0},e.getDependants=function(e){var t=[];return o(this._traceData.parentMap[e]||{},function(e){t.push(e)}),t},e.getModuleLoad=function(e){return this._traceData.loads[e]},e.getBundles=function(e,t){var n=t||{},a=(n[e]=!0,this),t=a._traceData.parentMap[e];if(!t)return[e];var r=[];return o(t,function(e,t){n[e]||(r=r.concat(a.getBundles(e,n)))}),r},e.getImportSpecifier=function(e,t){for(var n,a=0;a<t.metadata.dependencies.length;){if(t.metadata.dependencies[a]===e){n=t.metadata.deps[a];break}a++}if(n)return t.metadata.importSpecifiers?(t.metadata.importSpecifiers[n]||{}).start:t.metadata.getImportPosition?t.metadata.getImportPosition(n):void 0},e.moduleSpecifierFromName=function(e,t){var n=e.metadata.dependencies;if(n)return n=n.indexOf(t),e.metadata.deps[n]},e._allowModuleExecution={},e.allowModuleExecution=function(e){var t=this;return t.normalize(e).then(function(e){t._allowModuleExecution[e]=!0})};function s(){return e.newModule({})}var r=e.normalize,l=(e.normalize=function(e,t){var n,a=r.apply(this,arguments);return t?(n=this._traceData.parentMap,a.then(function(e){return n[e]||(n[e]={}),n[e][t]=!0,e})):a},{traceur:!0,babel:!0}),u=[].map||function(e){for(var t=[],n=0,a=this.length;n<a;n++)t.push(e(this[n]));return t},i=/import [\s\S]*?["'](.+)["']/g,d=/export .+ from ["'](.+)["']/g,c=/(?:(?:^|\s)\/\/(.+?)$)|(?:\/\*([\S\s]*?)\*\/)/gm,f=/(?:("|')[^\1\\\n\r]*(?:\\.[^\1\\\n\r]*)*\1|`[^`]*`)/g;function a(e){var n,a=e.replace(c,""),r=(i.lastIndex=c.lastIndex=d.lastIndex=f.lastIndex=0,[]),o=[];function t(e){for(;n=e.exec(a);){var t;!function(e,t){for(var n=0;n<e.length;n++)if(e[n][0]<t.index&&e[n][1]>t.index)return 1}(o,n)&&(t=n[1],r.push(t))}}if(e.length/e.split("\n").length<200)for(;n=f.exec(a);)o.push([n.index,n.index+n[0].length]);return t(i),t(d),r}var t=e.instantiate,n=(e.instantiate=function(o){this._traceData.loads[o.name]=o;var i=this;function n(t){var n=i.preventModuleExecution&&!function(e){return l[e.name]||this._allowModuleExecution[e.name]}.call(i,o),a=(t||o.metadata).deps,r=i.normalizeSpecifier||i.normalize;return Promise.all(u.call(a,function(e){return r.call(i,e,o.name)})).then(function(e){return o.metadata.deps=a,o.metadata.dependencies=e,n?{deps:a,execute:s}:t})}return Promise.resolve(t.apply(this,arguments)).then(function(e){var t;return e||(t=a(o.source),o.metadata.deps=t),n(e)})},e.transpile);e.transpile=function(e){var t=e.metadata.transpiledSource;return t?(delete e.metadata.transpiledSource,Promise.resolve(t)):n.apply(this,arguments)},e.eachModule=function(e){for(var t in this._loader.modules)e.call(this,t,this.get(t))}}),e(function(e){var o=/\.json$/i,n=/\.js$/i;function a(e,t,n){var a=e.jsonOptions&&e.jsonOptions.transform;return a?a.call(e,t,n):n}var r,i=e.locate;e.locate=function(t){return i.apply(this,arguments).then(function(e){return o.test(t.name)?e.replace(n,""):e})};if(A)return r=e.translate,void(e.translate=function(e){var t=e.metadata.address||e.address;if(o.test(t)&&-1===e.name.indexOf("!")){t=l.call(this,e);if(t)return t=a(this,e,t),"define([], function(){\n\treturn "+JSON.stringify(t)+"\n});"}return r.call(this,e)});var s=e.instantiate;return e.instantiate=function(e){var t=l.call(this,e);return t&&(t=a(this,e,t),e.metadata.format="json",e.metadata.execute=function(){return t}),s.call(this,e)},e;function l(t){if(("json"===t.metadata.format||!t.metadata.format)&&((r=t.source)&&(r=(r=(r=r.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@")).replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]")).replace(/(?:^|:|,)(?:\s*\[)+/g,""),/^[\],:{}\s]*$/.test(r))||o.test(t.name)))try{return JSON.parse(t.source)}catch(e){r=void 0;if(e instanceof SyntaxError){var n,a=this._parseSyntaxErrorLocation(e,t);if(a)throw n="Unable to parse "+t.address,(n=new SyntaxError(n)).promise=this._addSourceInfoToError(n,a,t,"JSON.parse"),n}return r("Error parsing "+t.address+":",e),{}}var r}}),e(function(e){var n=e.fetch;e.fetch=function(e){var t;return this.isEnv("production")&&this.cacheVersion&&(t=this.cacheVersion,t=(this.cacheKey||"version")+"="+t,e.address=e.address+(-1===e.address.indexOf("?")?"?":"&")+t),n.call(this,e)}}),o.configMain="@config",o.devBundle="@empty",o.depsBundle="@empty",o.paths[o.configMain]="stealconfig.js",o.env=(F?"worker":"window")+"-development",o.ext=Object.create(null),o.logLevel=0,o.forceES5=!0,"bundles/*.css"),s="bundles/*";function u(e){return{order:e,set:function(e){var t,n=B(e),a=-1!==(a=-1===(a=(t=e).lastIndexOf("/"))?t.lastIndexOf("\\"):a)?t.substr(0,a):t;A||(o.configPath=k(location.href,e)),o.configMain=n,o.paths[n]=n,this.config({baseURL:(a===e?".":a)+"/"})}}}function d(t,e){return{order:e,set:function(e){this[t]=e}}}function c(t,e){return{order:e,set:function(e){this[t]=!!e&&"false"!==e}}}function f(e){return A&&!/^file:/.test(e)&&(e="."===e[0]&&("/"===e[1]||"."===e[1]&&"/"===e[2])?require("path").join(process.cwd(),e):e)?"file:"+e:e}function p(e){var t=e.lastIndexOf("!");if(-1!==t)return e.substr(t+1)}function m(){var e,t,n,a,r;this.loadBundles&&this.main&&!this.stealBundled&&(r=this.main,e=this.bundlesName||"bundles/",i(this.meta,t=e+r,{format:"amd"}),n=p(o.configMain),a=[r,o.configMain],n&&o.set(n,o.newModule({})),(n=p(r))&&(r=function(e){var t=e.lastIndexOf("!");if(-1!==t)return e.substr(0,t)}(r),a.push(n),a.push(r),t=e+r.substr(0,r.indexOf("."))),this.bundles[t]=a)}function h(){var e;this.envs&&(e=this.envs[this.env])&&this.config(e)}function g(){var i=this;return new Promise(function(e,t){var n,a,r,o;F?e(P({loadMainOnStartup:!0,stealURL:location.href},E(location.href))):z?(i.script=q||I(),e((n=i.script,r=/Url$/,(a={}).stealURL=n.src,R(n.attributes,function(e){var t=e.nodeName||e.name,t=(t=O(0===t.indexOf("data-")?t.replace("data-",""):t)).replace(r,"URL");a[t]=""===e.value||e.value}),o=n.innerHTML,/\S/.test(o)&&(a.mainSource=o),(o=P(E(n.src),a)).main&&("boolean"==typeof o.main&&delete o.main,o.loadMainOnStartup=!0),o))):e({loadMainOnStartup:!0,stealPath:__dirname})})}i(o.paths,a,"dist/bundles/*css"),i(o.paths,s,"dist/bundles/*.js"),(o.global.less||(o.global.less={})).async=!0;var v,b,y,x,_,w=[],S={map:!0,paths:!0,meta:!0},j={instantiated:{order:1,set:function(e){var n=this;R(e||{},function(e,t){n.set(t,n.newModule(e))})}},envs:{order:2,set:function(e){var a=(a=this.envs)||(this.envs={});R(e,function(e,t){var n=(n=a[t])||(a[t]={});R(e,function(e,t){S[t]&&n[t]?P(n[t],e):n[t]=e})})}},env:{order:3,set:function(e){this.env=e,this.isEnv("production")&&(this.loadBundles=!0)}},loadBundles:c("loadBundles",4),stealBundled:c("stealBundled",5),bundle:{order:6,set:function(e){o.bundle=e}},bundlesPath:{order:7,set:function(e){return this.paths[a]=e+"/*css",this.paths[s]=e+"/*.js",e}},meta:{order:8,set:function(e){var a=this;R(e||{},function(e,t){var n;"object"==typeof e&&(t=a.meta[t])&&t.format===e.format&&(n=e.deps,P(e,t),n&&(e.deps=n))}),P(this.meta,e)}},configMain:d("configMain",9),config:u(10),configPath:u(11),baseURL:(v="baseURL",{order:12,set:function(e){this[v]=f(e)}}),main:d("main",13),stealPath:{order:14,set:function(e,t){var e=f(e),n=e.split("/");i(this.paths,"@dev",e+"/ext/dev.js"),i(this.paths,"npm",e+"/ext/npm.js"),i(this.paths,"npm-extension",e+"/ext/npm-extension.js"),i(this.paths,"npm-utils",e+"/ext/npm-utils.js"),i(this.paths,"npm-crawl",e+"/ext/npm-crawl.js"),i(this.paths,"npm-load",e+"/ext/npm-load.js"),i(this.paths,"npm-convert",e+"/ext/npm-convert.js"),i(this.paths,"semver",e+"/ext/semver.js"),i(this.paths,"live-reload",e+"/ext/live-reload.js"),i(this.paths,"steal-clone",e+"/ext/steal-clone.js"),this.paths.traceur=e+"/ext/traceur.js",this.paths["traceur-runtime"]=e+"/ext/traceur-runtime.js",this.paths.babel=e+"/ext/babel.js",this.paths["babel-runtime"]=e+"/ext/babel-runtime.js",this.paths["@@babel-code-frame"]=e+"/ext/babel-code-frame.js",i(this.meta,"traceur",{exports:"traceur"}),i(this.meta,"@@babel-code-frame",{format:"global",exports:"BabelCodeFrame"}),this.setContextual("steal-clone","steal-clone"),A?("@config"===this.configMain&&"steal"===M(n)&&(n.pop(),"node_modules"===M(n)&&(this.configMain="package.json!npm",n.pop())),(this.isEnv("production")||this.loadBundles)&&m.call(this)):t.baseURL||t.config||t.configPath||("steal"===M(n)&&(n.pop(),t=!1,"node_modules"===M(n)&&(o.configMain="package.json!npm",m.call(this),n.pop(),t=!0),t||n.push("steal")),this.config({baseURL:n.join("/")+"/"})),o.stealPath=e}},stealURL:{order:15,set:function(e,t){var e=e.split("?").shift(),n=e.split("/"),a=n.pop(),n=n.join("/"),r=this.getPlatform()||(F?"worker":"window");o.stealURL=e,(this.stealBundled&&!0===this.stealBundled||-1<a.indexOf("steal.production")||-1<a.indexOf("steal-with-promises.production")&&!t.env)&&this.config({env:r+"-production"}),(this.isEnv("production")||this.loadBundles)&&m.call(this),j.stealPath.set.call(this,n,t)}},devBundle:{order:16,set:function(e,t){e=!0===e?"dev-bundle":e;e&&(this.devBundle=e)}},depsBundle:{order:17,set:function(e,t){e=!0===e?"dev-bundle":e;e&&(this.depsBundle=e)}}},E=(R(j,function(e,t){e.order?w.splice(e.order,0,t):w.push(t)}),y=w,x=j,_=(b=o).config,b.config=function(n){var a=P({},n);R(y,function(e){var t=x[e];t.set&&a[e]&&(void 0!==(t=t.set.call(b,a[e],n))&&(b[e]=t),delete a[e])}),_.call(this,a)},r.config=function(e){if("string"==typeof e)return this.loader[e];this.loader.config(e)},e(function(e){e.getEnv=function(){return(this.env||"").split("-")[1]||this.env},e.getPlatform=function(){var e=(this.env||"").split("-");return 2===e.length?e[0]:void 0},e.isEnv=function(e){return this.getEnv()===e},e.isPlatform=function(e){return this.getPlatform()===e}}),function(e){var t={},n=/Url$/,e=e.split("?"),a=e.shift(),r=e.join("?").split("&"),e=a.split("/");e.pop(),e.join("/");if(r.length&&r[0].length)for(var o=0;o<r.length;o++){var i=r[o].split("=");1<i.length&&(t[O(i[0]).replace(n,"URL")]=i.slice(1).join("="))}return t});return r.startup=function(a){var r,o,i=this,s=this.loader;return l=new Promise(function(e,t){r=e,o=t}),t=g.call(this).then(function(e){var t;function n(e){var t;return 404===e.statusCode&&i.script?(t="This page has "+((s.devBundle?"dev-":"deps-")+"bundle")+" enabled but "+e.url+" could not be retrieved.\nDid you forget to generate the bundle first?\nSee https://stealjs.com/docs/StealJS.development-bundles.html for more information.",(t=new Error(t)).stack=null,Promise.reject(t)):Promise.reject(e)}return t="object"==typeof a?P(a,e):e,s.config(t),h.call(s),s.loadBundles?(s.main||!s.isEnv("production")||s.stealBundled||U("Attribute 'main' is required in production environment. Please add it to the script tag."),s.import(s.configMain).then(r,o),l.then(function(e){return h.call(s),s._configLoaded=!0,s.main&&t.loadMainOnStartup?s.import(s.main):e})):(s.import(s.devBundle).then(function(){return s.import(s.configMain)},n).then(function(){return s.import(s.depsBundle).then(null,n)}).then(r,o),l.then(function(){return h.call(s),function(){var t;this.liveReloadInstalled&&(t=this).import("live-reload",{name:"@@steal"}).then(function(e){e(t.configMain,function(){h.call(t)})})}.call(s),s._configLoaded=!0,t&&s.config(t),s.import("@dev")}).then(function(){return!s.main||s.localLoader?l:t.loadMainOnStartup?("string"==typeof(e=s.main)&&(e=[e]),Promise.all((n=function(e){return s.import(e)},a=[],R(e,function(e,t){a[t]=n(e,t)}),a))):void s._warnNoMain(i._mainWarnMs||2e3);var e,n,a}))}).then(function(e){return s.mainSource?s.module(s.mainSource):(s.loadScriptModules(),e)})},r.done=function(){return t},r.import=function(){var e=arguments,n=this.System;return l||(n.main||(n.main="@empty"),r.startup()),l.then(function(){var t=[];return R(e,function(e){t.push(n.import(e))}),1<t.length?Promise.all(t):t[0]})},r.setContextual=$.call(o.setContextual,o),r.isEnv=$.call(o.isEnv,o),r.isPlatform=$.call(o.isPlatform,o),r}var N,a,R=function(e,t){var n,a;if("number"==typeof e.length&&e.length-1 in e)for(n=0,a=e.length;n<a;n++)t.call(e[n],e[n],n,e);else for(n in e)e.hasOwnProperty(n)&&t.call(e[n],e[n],n,e);return e},T=function(e){e=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/]*(?::[^:@\/]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return e?{href:e[0]||"",protocol:e[1]||"",authority:e[2]||"",host:e[3]||"",hostname:e[4]||"",port:e[5]||"",pathname:e[6]||"",search:e[7]||"",hash:e[8]||""}:null},$=Function.prototype.bind,F="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,C=!(A="object"==typeof process&&"[object process]"==={}.toString.call(process))&&"undefined"!=typeof window,r=A&&function(){try{return"undefined"!==require("nw.gui")}catch(e){return!1}}(),o=A&&!!process.versions.electron,A=A&&!r&&!o,z=C||r||o,q=I(),U="object"==typeof console?$.call(console.warn,console):function(){},B=function(e){var t=e.lastIndexOf("/"),e=(-1==(t=-1===t?e.lastIndexOf("\\"):t)?e:e.substr(t+1)).match(/^[\w-\s\.!]+/);return e?e[0]:""},i=function(e){var e=B(e),t=e.lastIndexOf(".");return-1!==t?e.substr(t+1):""};"function"==typeof Set?N=Set:((N=function(){this._items=[]}).prototype.has=function(e){return-1!==this._items.indexOf(e)},N.prototype.add=function(e){this.has(e)||this._items.push(e)});!A||r||o?(a=e.steal,e.steal=n(System),e.steal.startup(a&&"object"==typeof a&&a).then(null,function(e){{var t,n;"undefined"!=typeof console&&(t=console,"function"==typeof e.logError?e.logError(t):(n=t.error?"error":"log",t[n](e)))}}),e.steal.clone=t):(e.steal=n(System),e.steal.System=System,e.steal.dev=require("./ext/dev.js"),steal.clone=t,module.exports=e.steal)}("undefined"==typeof window?"undefined"==typeof global?this:global:window);