diff --git a/jspm_packages/.loaderversions b/jspm_packages/.loaderversions deleted file mode 100644 index c97788d..0000000 --- a/jspm_packages/.loaderversions +++ /dev/null @@ -1 +0,0 @@ -^0.16.5,^0.16.9 \ No newline at end of file diff --git a/jspm_packages/es6-module-loader.js b/jspm_packages/es6-module-loader.js deleted file mode 100644 index 667a308..0000000 --- a/jspm_packages/es6-module-loader.js +++ /dev/null @@ -1,8 +0,0 @@ -/* - * es6-module-loader v0.16.6 - * https://github.com/ModuleLoader/es6-module-loader - * Copyright (c) 2015 Guy Bedford, Luke Hoban, Addy Osmani; Licensed MIT - */ - -!function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.Promise=a():"undefined"!=typeof global?global.Promise=a():"undefined"!=typeof self&&(self.Promise=a())}(function(){var a;return function b(a,c,d){function e(g,h){if(!c[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};a[g][0].call(j.exports,function(b){var c=a[g][1][b];return e(c?c:b)},j,j.exports,b,a,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g=0&&(n.splice(b,1),l("Handled previous rejection ["+a.id+"] "+e.formatObject(a.value)))}function h(a,b){m.push(a,b),null===o&&(o=d(i,0))}function i(){for(o=null;m.length>0;)m.shift()(m.shift())}var j,k=c,l=c;"undefined"!=typeof console&&(j=console,k="undefined"!=typeof j.error?function(a){j.error(a)}:function(a){j.log(a)},l="undefined"!=typeof j.info?function(a){j.info(a)}:function(a){j.log(a)}),a.onPotentiallyUnhandledRejection=function(a){h(f,a)},a.onPotentiallyUnhandledRejectionHandled=function(a){h(g,a)},a.onFatalRejection=function(a){h(b,a.value)};var m=[],n=[],o=null;return a}})}("function"==typeof a&&a.amd?a:function(a){c.exports=a(b)})},{"../env":5,"../format":6}],5:[function(b,c){!function(a){"use strict";a(function(a){function b(){return"undefined"!=typeof process&&null!==process&&"function"==typeof process.nextTick}function c(){return"function"==typeof MutationObserver&&MutationObserver||"function"==typeof WebKitMutationObserver&&WebKitMutationObserver}function d(a){function b(){var a=c;c=void 0,a()}var c,d=document.createTextNode(""),e=new a(b);e.observe(d,{characterData:!0});var f=0;return function(a){c=a,d.data=f^=1}}var e,f="undefined"!=typeof setTimeout&&setTimeout,g=function(a,b){return setTimeout(a,b)},h=function(a){return clearTimeout(a)},i=function(a){return f(a,0)};if(b())i=function(a){return process.nextTick(a)};else if(e=c())i=d(e);else if(!f){var j=a,k=j("vertx");g=function(a,b){return k.setTimer(b,a)},h=k.cancelTimer,i=k.runOnLoop||k.runOnContext}return{setTimer:g,clearTimer:h,asap:i}})}("function"==typeof a&&a.amd?a:function(a){c.exports=a(b)})},{}],6:[function(b,c){!function(a){"use strict";a(function(){function a(a){var c="object"==typeof a&&null!==a&&a.stack?a.stack:b(a);return a instanceof Error?c:c+" (WARNING: non-Error used)"}function b(a){var b=String(a);return"[object Object]"===b&&"undefined"!=typeof JSON&&(b=c(a,b)),b}function c(a,b){try{return JSON.stringify(a)}catch(c){return b}}return{formatError:a,formatObject:b,tryStringify:c}})}("function"==typeof a&&a.amd?a:function(a){c.exports=a()})},{}],7:[function(b,c){!function(a){"use strict";a(function(){return function(a){function b(a,b){this._handler=a===t?b:c(a)}function c(a){function b(a){e.resolve(a)}function c(a){e.reject(a)}function d(a){e.notify(a)}var e=new v;try{a(b,c,d)}catch(f){c(f)}return e}function d(a){return I(a)?a:new b(t,new w(q(a)))}function e(a){return new b(t,new w(new z(a)))}function f(){return _}function g(){return new b(t,new v)}function h(a,b){var c=new v(a.receiver,a.join().context);return new b(t,c)}function i(a){return k(S,null,a)}function j(a,b){return k(N,a,b)}function k(a,c,d){function e(b,e,g){g.resolved||l(d,f,b,a(c,e,b),g)}function f(a,b,c){k[a]=b,0===--j&&c.become(new y(k))}for(var g,h="function"==typeof c?e:f,i=new v,j=d.length>>>0,k=new Array(j),m=0;m0?b(c,f.value,e):(e.become(f),m(a,c+1,f))}else b(c,d,e)}function m(a,b,c){for(var d=b;dc&&a._unreport()}}function o(a){return"object"!=typeof a||null===a?e(new TypeError("non-iterable passed to race()")):0===a.length?f():1===a.length?d(a[0]):p(a)}function p(a){var c,d,e,f=new v;for(c=0;c0||"function"!=typeof b&&0>e)return new this.constructor(t,d);var f=this._beget(),g=f._handler;return d.chain(g,d.receiver,a,b,c),f},b.prototype["catch"]=function(a){return this.then(void 0,a)},b.prototype._beget=function(){return h(this._handler,this.constructor)},b.all=i,b.race=o,b._traverse=j,b._visitRemaining=m,t.prototype.when=t.prototype.become=t.prototype.notify=t.prototype.fail=t.prototype._unreport=t.prototype._report=T,t.prototype._state=0,t.prototype.state=function(){return this._state},t.prototype.join=function(){for(var a=this;void 0!==a.handler;)a=a.handler;return a},t.prototype.chain=function(a,b,c,d,e){this.when({resolver:a,receiver:b,fulfilled:c,rejected:d,progress:e})},t.prototype.visit=function(a,b,c,d){this.chain(Y,a,b,c,d)},t.prototype.fold=function(a,b,c,d){this.when(new H(a,b,c,d))},R(t,u),u.prototype.become=function(a){a.fail()};var Y=new u;R(t,v),v.prototype._state=0,v.prototype.resolve=function(a){this.become(q(a))},v.prototype.reject=function(a){this.resolved||this.become(new z(a))},v.prototype.join=function(){if(!this.resolved)return this;for(var a=this;void 0!==a.handler;)if(a=a.handler,a===this)return this.handler=C();return a},v.prototype.run=function(){var a=this.consumers,b=this.handler;this.handler=this.handler.join(),this.consumers=void 0;for(var c=0;cf;f++)if(e=b.loads[f],e.name==c)return e;return e=a(c),b.loads.push(e),d(b,e),e})}function d(a,b){e(a,b,A.resolve().then(function(){return a.loaderObj.locate({name:b.name,metadata:b.metadata})}))}function e(a,b,c){f(a,b,c.then(function(c){return"loading"==b.status?(b.address=c,a.loaderObj.fetch({name:b.name,metadata:b.metadata,address:c})):void 0}))}function f(a,b,d){d.then(function(d){return"loading"==b.status?A.resolve(a.loaderObj.translate({name:b.name,metadata:b.metadata,address:b.address,source:d})).then(function(c){return b.source=c,a.loaderObj.instantiate({name:b.name,metadata:b.metadata,address:b.address,source:c})}).then(function(c){if(void 0===c)return b.address=b.address||"",b.isDeclarative=!0,a.loaderObj.transpile(b).then(function(a){var c=__global.System,d=c.register;c.register=function(a,c,d){"string"!=typeof a&&(d=c,c=a),b.declare=d,b.depsList=c},__eval(a,__global,b),c.register=d});if("object"!=typeof c)throw TypeError("Invalid instantiate return value");b.depsList=c.deps||[],b.execute=c.execute,b.isDeclarative=!1}).then(function(){b.dependencies=[];for(var d=b.depsList,e=[],f=0,g=d.length;g>f;f++)(function(d,f){e.push(c(a,d,b.name,b.address).then(function(a){if(b.dependencies[f]={key:d,value:a.name},"linked"!=a.status)for(var c=b.linkSets.concat([]),e=0,g=c.length;g>e;e++)i(c[e],a)}))})(d[f],f);return A.all(e)}).then(function(){b.status="loaded";for(var a=b.linkSets.concat([]),c=0,d=a.length;d>c;c++)k(a[c],b)}):void 0})["catch"](function(a){b.status="failed",b.exception=a;for(var c=b.linkSets.concat([]),d=0,e=c.length;e>d;d++)l(c[d],b,a)})}function g(b){return function(c){var g=b.loader,i=b.moduleName,j=b.step;if(g.modules[i])throw new TypeError('"'+i+'" already exists in the module table');for(var k,l=0,m=g.loads.length;m>l;l++)if(g.loads[l].name==i)return k=g.loads[l],"translate"!=j||k.source||(k.address=b.moduleAddress,f(g,k,A.resolve(b.moduleSource))),k.linkSets[0].done.then(function(){c(k)});var n=a(i);n.metadata=b.moduleMetadata;var o=h(g,n);g.loads.push(n),c(o.done),"locate"==j?d(g,n):"fetch"==j?e(g,n,A.resolve(b.moduleAddress)):(n.address=b.moduleAddress,f(g,n,A.resolve(b.moduleSource)))}}function h(a,b){var c={loader:a,loads:[],startingLoad:b,loadingCount:0};return c.done=new A(function(a,b){c.resolve=a,c.reject=b}),i(c,b),c}function i(a,b){for(var c=0,d=a.loads.length;d>c;c++)if(a.loads[c]==b)return;a.loads.push(b),b.linkSets.push(a),"loaded"!=b.status&&a.loadingCount++;for(var e=a.loader,c=0,d=b.dependencies.length;d>c;c++){var f=b.dependencies[c].value;if(!e.modules[f])for(var g=0,h=e.loads.length;h>g;g++)if(e.loads[g].name==f){i(a,e.loads[g]);break}}}function j(a){var b=!1;try{p(a,function(c,d){l(a,c,d),b=!0})}catch(c){l(a,null,c),b=!0}return b}function k(a,b){if(a.loadingCount--,!(a.loadingCount>0)){var c=a.startingLoad;if(a.loader.loaderObj.execute===!1){for(var d=[].concat(a.loads),e=0,f=d.length;f>e;e++){var b=d[e];b.module=b.isDeclarative?{name:b.name,module:E({}),evaluated:!0}:{module:E({})},b.status="linked",m(a.loader,b)}return a.resolve(c)}var g=j(a);g||a.resolve(c)}}function l(a,b,c){var d=a.loader;b&&a.loads[0].name!=b.name&&(c=w(c,'Error loading "'+b.name+'" from "'+a.loads[0].name+'" at '+(a.loads[0].address||"")+"\n")),b&&(c=w(c,'Error loading "'+b.name+'" at '+(b.address||"")+"\n"));for(var e=a.loads.concat([]),f=0,g=e.length;g>f;f++){var b=e[f];d.loaderObj.failed=d.loaderObj.failed||[],-1==B.call(d.loaderObj.failed,b)&&d.loaderObj.failed.push(b);var h=B.call(b.linkSets,a);if(b.linkSets.splice(h,1),0==b.linkSets.length){var i=B.call(a.loader.loads,b);-1!=i&&a.loader.loads.splice(i,1)}}a.reject(c)}function m(a,b){if(a.loaderObj.trace){a.loaderObj.loads||(a.loaderObj.loads={});var c={};b.dependencies.forEach(function(a){c[a.key]=a.value}),a.loaderObj.loads[b.name]={name:b.name,deps:b.dependencies.map(function(a){return a.key}),depMap:c,address:b.address,metadata:b.metadata,source:b.source,kind:b.isDeclarative?"declarative":"dynamic"}}b.name&&(a.modules[b.name]=b.module);var d=B.call(a.loads,b);-1!=d&&a.loads.splice(d,1);for(var e=0,f=b.linkSets.length;f>e;e++)d=B.call(b.linkSets[e].loads,b),-1!=d&&b.linkSets[e].loads.splice(d,1);b.linkSets.splice(0,b.linkSets.length)}function n(a,b,c){if(c[a.groupIndex]=c[a.groupIndex]||[],-1==B.call(c[a.groupIndex],a)){c[a.groupIndex].push(a);for(var d=0,e=b.length;e>d;d++)for(var f=b[d],g=0;g=0;g--){for(var h=d[g],i=0;ic;c++){var g=d.importers[c];if(!g.locked){var h=B.call(g.dependencies,d);g.setters[h](e)}}return d.locked=!1,b});d.setters=f.setters,d.execute=f.execute;for(var g=0,h=a.dependencies.length;h>g;g++){var i=a.dependencies[g].value,j=c.modules[i];if(!j)for(var k=0;kf;f++){var h=e[f];if(h&&-1==B.call(b,h)&&(d=v(h,b,c)))return d=w(d,"Error evaluating "+h.name+"\n")}if(a.failed)return new Error("Module failed execution.");if(!a.evaluated)return a.evaluated=!0,d=t(a),d?a.failed=!0:Object.preventExtensions&&Object.preventExtensions(a.module),a.execute=void 0,d}}function w(a,b){return a instanceof Error?a.message=b+a.message:a=b+a,a}function x(a){if("object"!=typeof a)throw new TypeError("Options must be an object");a.normalize&&(this.normalize=a.normalize),a.locate&&(this.locate=a.locate),a.fetch&&(this.fetch=a.fetch),a.translate&&(this.translate=a.translate),a.instantiate&&(this.instantiate=a.instantiate),this._loader={loaderObj:this,loads:[],modules:{},importPromises:{},moduleRecords:{}},C(this,"global",{get:function(){return __global}})}function y(){}function z(a,b,c){var d=a._loader.importPromises;return d[b]=c.then(function(a){return d[b]=void 0,a},function(a){throw d[b]=void 0,a})}var A=__global.Promise||require("when/es6-shim/Promise");__global.console&&(console.assert=console.assert||function(){});var B=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},C=$__Object$defineProperty,D=0;x.prototype={constructor:x,define:function(a,b,c){if(this._loader.importPromises[a])throw new TypeError("Module is already loading.");return z(this,a,new A(g({step:"translate",loader:this._loader,moduleName:a,moduleMetadata:c&&c.metadata||{},moduleSource:b,moduleAddress:c&&c.address})))},"delete":function(a){var b=this._loader;return delete b.importPromises[a],delete b.moduleRecords[a],b.modules[a]?delete b.modules[a]:!1},get:function(a){return this._loader.modules[a]?(u(this._loader.modules[a],[],this),this._loader.modules[a].module):void 0},has:function(a){return!!this._loader.modules[a]},"import":function(a,c){var d=this;return A.resolve(d.normalize(a,c&&c.name,c&&c.address)).then(function(a){var e=d._loader;return e.modules[a]?(u(e.modules[a],[],e._loader),e.modules[a].module):e.importPromises[a]||z(d,a,b(e,a,c||{}).then(function(b){return delete e.importPromises[a],s(e,b)}))})},load:function(a){return this._loader.modules[a]?(u(this._loader.modules[a],[],this._loader),A.resolve(this._loader.modules[a].module)):this._loader.importPromises[a]||z(this,a,b(this._loader,a,{}))},module:function(b,c){var d=a();d.address=c&&c.address;var e=h(this._loader,d),g=A.resolve(b),i=this._loader,j=e.done.then(function(){return s(i,d)});return f(i,d,g),j},newModule:function(a){if("object"!=typeof a)throw new TypeError("Expected object");var b,c=new y;if(Object.getOwnPropertyNames&&null!=a)b=Object.getOwnPropertyNames(a);else{b=[];for(var d in a)b.push(d)}for(var e=0;e2)throw new TypeError("Only one wildcard in a path is permitted");if(1==h.length){if(d==f&&f.length>e.length){e=f;break}}else d.substr(0,h[0].length)==h[0]&&d.substr(d.length-h[1].length)==h[1]&&(e=f,b=d.substr(h[0].length,d.length-h[1].length-h[0].length))}var i=this.paths[e];return b&&(i=i.replace("*",b)),g&&(i=i.replace(/#/g,"%23")),c(this.baseURL,i)},enumerable:!1,writable:!0}),$__Object$defineProperty(b.prototype,"fetch",{value:function(a){var b=this;return new i(function(d,e){f(c(b.baseURL,a.address),function(a){d(a)},e)})},enumerable:!1,writable:!0}),b}(__global.LoaderPolyfill),l=new k;if("object"==typeof exports&&(module.exports=l),__global.System=l,g&&document.getElementsByTagName){var m=document.getElementsByTagName("script");m=m[m.length-1],"complete"===document.readyState?setTimeout(e):document.addEventListener&&(document.addEventListener("DOMContentLoaded",d,!1),window.addEventListener("load",d,!1)),m.getAttribute("data-init")&&window[m.getAttribute("data-init")]()}}()}("undefined"!=typeof window?window:"undefined"!=typeof global?global:self); -//# sourceMappingURL=es6-module-loader.js.map \ No newline at end of file diff --git a/jspm_packages/es6-module-loader.js.map b/jspm_packages/es6-module-loader.js.map deleted file mode 100644 index f157808..0000000 --- a/jspm_packages/es6-module-loader.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es6-module-loader.js","sources":["es6-module-loader.src.js"],"names":["e","exports","module","define","amd","window","Promise","global","self","t","n","r","s","o","u","a","require","i","Error","f","call","length",1,"unhandledRejections","PromiseConstructor","../lib/Promise","../lib/decorators/unhandledRejection",2,"makePromise","Scheduler","async","asap","scheduler","factory","./Scheduler","./env","./makePromise",3,"this","_async","_running","_queue","_queueLen","_afterQueue","_afterQueueLen","drain","_drain","prototype","enqueue","task","run","afterQueue",4,"throwit","noop","setTimer","format","report","handled","reported","push","logError","id","formatError","value","unreport","indexOf","splice","logInfo","formatObject","x","tasks","running","flush","shift","localConsole","console","error","log","info","onPotentiallyUnhandledRejection","rejection","onPotentiallyUnhandledRejectionHandled","onFatalRejection","../env","../format",5,"isNode","process","nextTick","hasMutationObserver","MutationObserver","WebKitMutationObserver","initMutationObserver","scheduled","node","document","createTextNode","observe","characterData","data","MutationObs","capturedSetTimeout","setTimeout","ms","clearTimer","clearTimeout","vertxRequire","vertx","cancelTimer","runOnLoop","runOnContext",6,"stack","String","JSON","tryStringify","defaultValue","stringify",7,"environment","resolver","handler","_handler","Handler","init","promiseResolve","resolve","promiseReject","reason","reject","promiseNotify","notify","Pending","isPromise","Async","getHandler","Rejected","never","foreverPendingPromise","defer","begetFrom","parent","child","receiver","join","context","all","promises","traverseWith","snd","traverse","tryCatch2","tryMap","mapAt","resolved","traverseAt","settleAt","results","pending","become","Fulfilled","Array","maybeThenable","h","getHandlerMaybeThenable","state","fold","visitRemaining","start","markAsHandled","visit","_unreport","race","TypeError","runRace","getHandlerUntrusted","untrustedThen","then","Thenable","FailIfRejected","inheritedContext","createContext","consumers","thenable","AssimilateTask","errorId","_report","ReportTask","UnreportTask","cycle","ContinuationTask","continuation","ProgressTask","_then","tryAssimilate","Fold","z","c","to","failIfRejected","runContinuation1","next","enterContext","tryCatchReject","exitContext","runContinuation3","tryCatchReject3","runNotify","tryCatchReturn","b","thisArg","y","inherit","Parent","Child","objectCreate","constructor","initEmitRejection","emit","type","CustomEvent","hasCustomEvent","ev","detail","key","bubbles","cancelable","dispatchEvent","emitRejection","Object","create","proto","_defer","onFulfilled","onRejected","onProgress","p","_beget","chain","_traverse","_visitRemaining","when","fail","_state","fulfilled","rejected","progress","q","cont","foreverPendingHandler","_resolve","_reject","_notify","__global","__eval","__source","__load","eval","name","replace","message","load","address","$__Object$getPrototypeOf","getPrototypeOf","obj","__proto__","$__Object$defineProperty","defineProperty","prop","opt","get","$__Object$create","props","F","hasOwnProperty","createLoad","status","linkSets","dependencies","metadata","loadModule","loader","options","asyncStartLoadPartwayThrough","step","moduleName","moduleMetadata","moduleSource","source","moduleAddress","requestLoad","request","refererName","refererAddress","loaderObj","normalize","modules","l","loads","proceedToLocate","proceedToFetch","locate","proceedToTranslate","fetch","translate","instantiate","instantiateResult","undefined","anonCnt","isDeclarative","transpile","transpiled","curSystem","System","curRegister","register","deps","declare","depsList","execute","loadPromises","index","depLoad","concat","addLoadToLinkSet","updateLinkSetOnLoad","exc","exception","linkSetFailed","stepState","existingLoad","done","linkSet","createLinkSet","startingLoad","loadingCount","j","d","doLink","link","_newModule","evaluated","finishLoad","abrupt","addToError","failed","linkIndex","globalLoadsIndex","trace","depMap","forEach","dep","map","kind","loadIndex","buildLinkageGroups","groups","groupIndex","loadDep","loadDepGroupIndex","doDynamicExecute","linkError","Module","curGroupDeclarative","group","linkDeclarativeModule","getOrCreateModuleRecord","moduleRecords","importers","moduleObj","registryEntry","locked","importerModule","importerIndex","setters","depName","depModule","evaluateLoadedModule","doEnsureEvaluated","doExecute","seen","err","ensureEvaluated","preventExtensions","msg","Loader","_loader","importPromises","createImportPromise","promise","m","assert","item","thisLen","delete","has","import","sourcePromise","newModule","pNames","getOwnPropertyNames","configurable","enumerable","set","Reflect","LoaderPolyfill","getTranspilerModule","globalName","default","g","__useDefault","traceurTranspile","traceur","traceurOptions","script","sourceMaps","filename","inputSourceMap","sourceMap","compiler","Compiler","doTraceurCompile","compile","babelTranspile","babel","babelOptions","code","ast","blacklist","transform","transpiler","transpilerHasRun","transpilerNormalized","curLoader","parseURI","url","match","href","protocol","authority","host","hostname","port","pathname","search","hash","removeDotSegments","input","output","pop","charAt","toAbsoluteURL","base","isWindows","slice","lastIndexOf","completed","removeEventListener","ready","scripts","getElementsByTagName","innerHTML","substr","fetchTextFromURL","isBrowser","platform","XMLHttpRequest","fulfill","xhr","responseText","statusText","sameDomain","doTimeout","domainCheck","exec","location","XDomainRequest","onload","onerror","ontimeout","onprogress","timeout","onreadystatechange","readyState","open","send","fs","readFile","SystemLoader","$__super","split","baseURL","substring","cwd","paths","*","Function","parentName","segments","rel","dotdots","segment","normalizedParts","parentParts","writable","wildcard","pathMatch","pathParts","outPath","curScript","addEventListener","getAttribute"],"mappings":";;;;;;CAAC,SAASA,GAAG,gBAAiBC,SAAQC,OAAOD,QAAQD,IAAI,kBAAmBG,SAAQA,OAAOC,IAAID,OAAOH,GAAG,mBAAoBK,QAAOA,OAAOC,QAAQN,IAAI,mBAAoBO,QAAOA,OAAOD,QAAQN,IAAI,mBAAoBQ,QAAOA,KAAKF,QAAQN,MAAM,WAAW,GAAIG,EAAsB,OAAO,SAAUH,GAAES,EAAEC,EAAEC,GAAG,QAASC,GAAEC,EAAEC,GAAG,IAAIJ,EAAEG,GAAG,CAAC,IAAIJ,EAAEI,GAAG,CAAC,GAAIE,GAAkB,kBAATC,UAAqBA,OAAQ,KAAIF,GAAGC,EAAE,MAAOA,GAAEF,GAAE,EAAI,IAAGI,EAAE,MAAOA,GAAEJ,GAAE,EAAI,MAAM,IAAIK,OAAM,uBAAuBL,EAAE,KAAK,GAAIM,GAAET,EAAEG,IAAIZ,WAAYQ,GAAEI,GAAG,GAAGO,KAAKD,EAAElB,QAAQ,SAASD,GAAG,GAAIU,GAAED,EAAEI,GAAG,GAAGb,EAAG,O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A,EAAU1e,OAAS,GAuBb,aAAxB2E,SAASqY,WACX9X,WAAWqW,GAEJ5W,SAASga,mBAChBha,SAASga,iBAAiB,mBAAoBtD,GAAW,GACzDrc,OAAO2f,iBAAiB,OAAQtD,GAAW,IAIzCqD,EAAUE,aAAa,cACzB5f,OAAO0f,EAAUE,aAAa,qBAkBhB,mBAAV5f,QAAwBA,OAA2B,mBAAVE,QAAwBA,OAASC"} \ No newline at end of file diff --git a/jspm_packages/es6-module-loader.src.js b/jspm_packages/es6-module-loader.src.js deleted file mode 100644 index 25ecac7..0000000 --- a/jspm_packages/es6-module-loader.src.js +++ /dev/null @@ -1,2863 +0,0 @@ -!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.Promise=e():"undefined"!=typeof global?global.Promise=e():"undefined"!=typeof self&&(self.Promise=e())}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o= 0) { - reported.splice(i, 1); - logInfo('Handled previous rejection [' + r.id + '] ' + format.formatObject(r.value)); - } - } - - function enqueue(f, x) { - tasks.push(f, x); - if(running === null) { - running = setTimer(flush, 0); - } - } - - function flush() { - running = null; - while(tasks.length > 0) { - tasks.shift()(tasks.shift()); - } - } - - return Promise; - }; - - function throwit(e) { - throw e; - } - - function noop() {} - -}); -}(typeof define === 'function' && define.amd ? define : function(factory) { module.exports = factory(require); })); - -},{"../env":5,"../format":6}],5:[function(require,module,exports){ -/** @license MIT License (c) copyright 2010-2014 original author or authors */ -/** @author Brian Cavalier */ -/** @author John Hann */ - -/*global process,document,setTimeout,clearTimeout,MutationObserver,WebKitMutationObserver*/ -(function(define) { 'use strict'; -define(function(require) { - /*jshint maxcomplexity:6*/ - - // Sniff "best" async scheduling option - // Prefer process.nextTick or MutationObserver, then check for - // setTimeout, and finally vertx, since its the only env that doesn't - // have setTimeout - - var MutationObs; - var capturedSetTimeout = typeof setTimeout !== 'undefined' && setTimeout; - - // Default env - var setTimer = function(f, ms) { return setTimeout(f, ms); }; - var clearTimer = function(t) { return clearTimeout(t); }; - var asap = function (f) { return capturedSetTimeout(f, 0); }; - - // Detect specific env - if (isNode()) { // Node - asap = function (f) { return process.nextTick(f); }; - - } else if (MutationObs = hasMutationObserver()) { // Modern browser - asap = initMutationObserver(MutationObs); - - } else if (!capturedSetTimeout) { // vert.x - var vertxRequire = require; - var vertx = vertxRequire('vertx'); - setTimer = function (f, ms) { return vertx.setTimer(ms, f); }; - clearTimer = vertx.cancelTimer; - asap = vertx.runOnLoop || vertx.runOnContext; - } - - return { - setTimer: setTimer, - clearTimer: clearTimer, - asap: asap - }; - - function isNode () { - return typeof process !== 'undefined' && process !== null && - typeof process.nextTick === 'function'; - } - - function hasMutationObserver () { - return (typeof MutationObserver === 'function' && MutationObserver) || - (typeof WebKitMutationObserver === 'function' && WebKitMutationObserver); - } - - function initMutationObserver(MutationObserver) { - var scheduled; - var node = document.createTextNode(''); - var o = new MutationObserver(run); - o.observe(node, { characterData: true }); - - function run() { - var f = scheduled; - scheduled = void 0; - f(); - } - - var i = 0; - return function (f) { - scheduled = f; - node.data = (i ^= 1); - }; - } -}); -}(typeof define === 'function' && define.amd ? define : function(factory) { module.exports = factory(require); })); - -},{}],6:[function(require,module,exports){ -/** @license MIT License (c) copyright 2010-2014 original author or authors */ -/** @author Brian Cavalier */ -/** @author John Hann */ - -(function(define) { 'use strict'; -define(function() { - - return { - formatError: formatError, - formatObject: formatObject, - tryStringify: tryStringify - }; - - /** - * Format an error into a string. If e is an Error and has a stack property, - * it's returned. Otherwise, e is formatted using formatObject, with a - * warning added about e not being a proper Error. - * @param {*} e - * @returns {String} formatted string, suitable for output to developers - */ - function formatError(e) { - var s = typeof e === 'object' && e !== null && e.stack ? e.stack : formatObject(e); - return e instanceof Error ? s : s + ' (WARNING: non-Error used)'; - } - - /** - * Format an object, detecting "plain" objects and running them through - * JSON.stringify if possible. - * @param {Object} o - * @returns {string} - */ - function formatObject(o) { - var s = String(o); - if(s === '[object Object]' && typeof JSON !== 'undefined') { - s = tryStringify(o, s); - } - return s; - } - - /** - * Try to return the result of JSON.stringify(x). If that fails, return - * defaultValue - * @param {*} x - * @param {*} defaultValue - * @returns {String|*} JSON.stringify(x) or defaultValue - */ - function tryStringify(x, defaultValue) { - try { - return JSON.stringify(x); - } catch(e) { - return defaultValue; - } - } - -}); -}(typeof define === 'function' && define.amd ? define : function(factory) { module.exports = factory(); })); - -},{}],7:[function(require,module,exports){ -/** @license MIT License (c) copyright 2010-2014 original author or authors */ -/** @author Brian Cavalier */ -/** @author John Hann */ - -(function(define) { 'use strict'; -define(function() { - - return function makePromise(environment) { - - var tasks = environment.scheduler; - var emitRejection = initEmitRejection(); - - var objectCreate = Object.create || - function(proto) { - function Child() {} - Child.prototype = proto; - return new Child(); - }; - - /** - * Create a promise whose fate is determined by resolver - * @constructor - * @returns {Promise} promise - * @name Promise - */ - function Promise(resolver, handler) { - this._handler = resolver === Handler ? handler : init(resolver); - } - - /** - * Run the supplied resolver - * @param resolver - * @returns {Pending} - */ - function init(resolver) { - var handler = new Pending(); - - try { - resolver(promiseResolve, promiseReject, promiseNotify); - } catch (e) { - promiseReject(e); - } - - return handler; - - /** - * Transition from pre-resolution state to post-resolution state, notifying - * all listeners of the ultimate fulfillment or rejection - * @param {*} x resolution value - */ - function promiseResolve (x) { - handler.resolve(x); - } - /** - * Reject this promise with reason, which will be used verbatim - * @param {Error|*} reason rejection reason, strongly suggested - * to be an Error type - */ - function promiseReject (reason) { - handler.reject(reason); - } - - /** - * @deprecated - * Issue a progress event, notifying all progress listeners - * @param {*} x progress event payload to pass to all listeners - */ - function promiseNotify (x) { - handler.notify(x); - } - } - - // Creation - - Promise.resolve = resolve; - Promise.reject = reject; - Promise.never = never; - - Promise._defer = defer; - Promise._handler = getHandler; - - /** - * Returns a trusted promise. If x is already a trusted promise, it is - * returned, otherwise returns a new trusted Promise which follows x. - * @param {*} x - * @return {Promise} promise - */ - function resolve(x) { - return isPromise(x) ? x - : new Promise(Handler, new Async(getHandler(x))); - } - - /** - * Return a reject promise with x as its reason (x is used verbatim) - * @param {*} x - * @returns {Promise} rejected promise - */ - function reject(x) { - return new Promise(Handler, new Async(new Rejected(x))); - } - - /** - * Return a promise that remains pending forever - * @returns {Promise} forever-pending promise. - */ - function never() { - return foreverPendingPromise; // Should be frozen - } - - /** - * Creates an internal {promise, resolver} pair - * @private - * @returns {Promise} - */ - function defer() { - return new Promise(Handler, new Pending()); - } - - // Transformation and flow control - - /** - * Transform this promise's fulfillment value, returning a new Promise - * for the transformed result. If the promise cannot be fulfilled, onRejected - * is called with the reason. onProgress *may* be called with updates toward - * this promise's fulfillment. - * @param {function=} onFulfilled fulfillment handler - * @param {function=} onRejected rejection handler - * @param {function=} onProgress @deprecated progress handler - * @return {Promise} new promise - */ - Promise.prototype.then = function(onFulfilled, onRejected, onProgress) { - var parent = this._handler; - var state = parent.join().state(); - - if ((typeof onFulfilled !== 'function' && state > 0) || - (typeof onRejected !== 'function' && state < 0)) { - // Short circuit: value will not change, simply share handler - return new this.constructor(Handler, parent); - } - - var p = this._beget(); - var child = p._handler; - - parent.chain(child, parent.receiver, onFulfilled, onRejected, onProgress); - - return p; - }; - - /** - * If this promise cannot be fulfilled due to an error, call onRejected to - * handle the error. Shortcut for .then(undefined, onRejected) - * @param {function?} onRejected - * @return {Promise} - */ - Promise.prototype['catch'] = function(onRejected) { - return this.then(void 0, onRejected); - }; - - /** - * Creates a new, pending promise of the same type as this promise - * @private - * @returns {Promise} - */ - Promise.prototype._beget = function() { - return begetFrom(this._handler, this.constructor); - }; - - function begetFrom(parent, Promise) { - var child = new Pending(parent.receiver, parent.join().context); - return new Promise(Handler, child); - } - - // Array combinators - - Promise.all = all; - Promise.race = race; - Promise._traverse = traverse; - - /** - * Return a promise that will fulfill when all promises in the - * input array have fulfilled, or will reject when one of the - * promises rejects. - * @param {array} promises array of promises - * @returns {Promise} promise for array of fulfillment values - */ - function all(promises) { - return traverseWith(snd, null, promises); - } - - /** - * Array> -> Promise> - * @private - * @param {function} f function to apply to each promise's value - * @param {Array} promises array of promises - * @returns {Promise} promise for transformed values - */ - function traverse(f, promises) { - return traverseWith(tryCatch2, f, promises); - } - - function traverseWith(tryMap, f, promises) { - var handler = typeof f === 'function' ? mapAt : settleAt; - - var resolver = new Pending(); - var pending = promises.length >>> 0; - var results = new Array(pending); - - for (var i = 0, x; i < promises.length && !resolver.resolved; ++i) { - x = promises[i]; - - if (x === void 0 && !(i in promises)) { - --pending; - continue; - } - - traverseAt(promises, handler, i, x, resolver); - } - - if(pending === 0) { - resolver.become(new Fulfilled(results)); - } - - return new Promise(Handler, resolver); - - function mapAt(i, x, resolver) { - if(!resolver.resolved) { - traverseAt(promises, settleAt, i, tryMap(f, x, i), resolver); - } - } - - function settleAt(i, x, resolver) { - results[i] = x; - if(--pending === 0) { - resolver.become(new Fulfilled(results)); - } - } - } - - function traverseAt(promises, handler, i, x, resolver) { - if (maybeThenable(x)) { - var h = getHandlerMaybeThenable(x); - var s = h.state(); - - if (s === 0) { - h.fold(handler, i, void 0, resolver); - } else if (s > 0) { - handler(i, h.value, resolver); - } else { - resolver.become(h); - visitRemaining(promises, i+1, h); - } - } else { - handler(i, x, resolver); - } - } - - Promise._visitRemaining = visitRemaining; - function visitRemaining(promises, start, handler) { - for(var i=start; i load contains linkSet'); - - if (load.linkSets.indexOf(linkSet) != -1) - console.assert(linkSet.loads.indexOf(load) != -1, 'load contains linkSet -> linkSet contains load'); - } - } - - for (var i = 0; i < linkSets.length; i++) { - var linkSet = linkSets[i]; - for (var j = 0; j < linkSet.loads.length; j++) { - var load = linkSet.loads[j]; - - for (var k = 0; k < load.dependencies.length; k++) { - var depName = load.dependencies[k].value; - var depLoad; - for (var l = 0; l < loads.length; l++) { - if (loads[l].name != depName) - continue; - depLoad = loads[l]; - break; - } - - // loading records are allowed not to have their dependencies yet - // if (load.status != 'loading') - // console.assert(depLoad, 'depLoad found'); - - // console.assert(linkSet.loads.indexOf(depLoad) != -1, 'linkset contains all dependencies'); - } - } - } -} */ - - -(function() { - var Promise = __global.Promise || require('when/es6-shim/Promise'); - if (__global.console) - console.assert = console.assert || function() {}; - - // IE8 support - var indexOf = Array.prototype.indexOf || function(item) { - for (var i = 0, thisLen = this.length; i < thisLen; i++) { - if (this[i] === item) { - return i; - } - } - return -1; - }; - var defineProperty = $__Object$defineProperty; - - // 15.2.3 - Runtime Semantics: Loader State - - // 15.2.3.11 - function createLoaderLoad(object) { - return { - // modules is an object for ES5 implementation - modules: {}, - loads: [], - loaderObj: object - }; - } - - // 15.2.3.2 Load Records and LoadRequest Objects - - // 15.2.3.2.1 - function createLoad(name) { - return { - status: 'loading', - name: name, - linkSets: [], - dependencies: [], - metadata: {} - }; - } - - // 15.2.3.2.2 createLoadRequestObject, absorbed into calling functions - - // 15.2.4 - - // 15.2.4.1 - function loadModule(loader, name, options) { - return new Promise(asyncStartLoadPartwayThrough({ - step: options.address ? 'fetch' : 'locate', - loader: loader, - moduleName: name, - // allow metadata for import https://bugs.ecmascript.org/show_bug.cgi?id=3091 - moduleMetadata: options && options.metadata || {}, - moduleSource: options.source, - moduleAddress: options.address - })); - } - - // 15.2.4.2 - function requestLoad(loader, request, refererName, refererAddress) { - // 15.2.4.2.1 CallNormalize - return new Promise(function(resolve, reject) { - resolve(loader.loaderObj.normalize(request, refererName, refererAddress)); - }) - // 15.2.4.2.2 GetOrCreateLoad - .then(function(name) { - var load; - if (loader.modules[name]) { - load = createLoad(name); - load.status = 'linked'; - // https://bugs.ecmascript.org/show_bug.cgi?id=2795 - load.module = loader.modules[name]; - return load; - } - - for (var i = 0, l = loader.loads.length; i < l; i++) { - load = loader.loads[i]; - if (load.name != name) - continue; - console.assert(load.status == 'loading' || load.status == 'loaded', 'loading or loaded'); - return load; - } - - load = createLoad(name); - loader.loads.push(load); - - proceedToLocate(loader, load); - - return load; - }); - } - - // 15.2.4.3 - function proceedToLocate(loader, load) { - proceedToFetch(loader, load, - Promise.resolve() - // 15.2.4.3.1 CallLocate - .then(function() { - return loader.loaderObj.locate({ name: load.name, metadata: load.metadata }); - }) - ); - } - - // 15.2.4.4 - function proceedToFetch(loader, load, p) { - proceedToTranslate(loader, load, - p - // 15.2.4.4.1 CallFetch - .then(function(address) { - // adjusted, see https://bugs.ecmascript.org/show_bug.cgi?id=2602 - if (load.status != 'loading') - return; - load.address = address; - - return loader.loaderObj.fetch({ name: load.name, metadata: load.metadata, address: address }); - }) - ); - } - - var anonCnt = 0; - - // 15.2.4.5 - function proceedToTranslate(loader, load, p) { - p - // 15.2.4.5.1 CallTranslate - .then(function(source) { - if (load.status != 'loading') - return; - - return Promise.resolve(loader.loaderObj.translate({ name: load.name, metadata: load.metadata, address: load.address, source: source })) - - // 15.2.4.5.2 CallInstantiate - .then(function(source) { - load.source = source; - return loader.loaderObj.instantiate({ name: load.name, metadata: load.metadata, address: load.address, source: source }); - }) - - // 15.2.4.5.3 InstantiateSucceeded - .then(function(instantiateResult) { - if (instantiateResult === undefined) { - load.address = load.address || ''; - - // instead of load.kind, use load.isDeclarative - load.isDeclarative = true; - return loader.loaderObj.transpile(load) - .then(function(transpiled) { - // Hijack System.register to set declare function - var curSystem = __global.System; - var curRegister = curSystem.register; - curSystem.register = function(name, deps, declare) { - if (typeof name != 'string') { - declare = deps; - deps = name; - } - // store the registered declaration as load.declare - // store the deps as load.deps - load.declare = declare; - load.depsList = deps; - } - __eval(transpiled, __global, load); - curSystem.register = curRegister; - }); - } - else if (typeof instantiateResult == 'object') { - load.depsList = instantiateResult.deps || []; - load.execute = instantiateResult.execute; - load.isDeclarative = false; - } - else - throw TypeError('Invalid instantiate return value'); - }) - // 15.2.4.6 ProcessLoadDependencies - .then(function() { - load.dependencies = []; - var depsList = load.depsList; - - var loadPromises = []; - for (var i = 0, l = depsList.length; i < l; i++) (function(request, index) { - loadPromises.push( - requestLoad(loader, request, load.name, load.address) - - // 15.2.4.6.1 AddDependencyLoad (load is parentLoad) - .then(function(depLoad) { - - // adjusted from spec to maintain dependency order - // this is due to the System.register internal implementation needs - load.dependencies[index] = { - key: request, - value: depLoad.name - }; - - if (depLoad.status != 'linked') { - var linkSets = load.linkSets.concat([]); - for (var i = 0, l = linkSets.length; i < l; i++) - addLoadToLinkSet(linkSets[i], depLoad); - } - - // console.log('AddDependencyLoad ' + depLoad.name + ' for ' + load.name); - // snapshot(loader); - }) - ); - })(depsList[i], i); - - return Promise.all(loadPromises); - }) - - // 15.2.4.6.2 LoadSucceeded - .then(function() { - // console.log('LoadSucceeded ' + load.name); - // snapshot(loader); - - console.assert(load.status == 'loading', 'is loading'); - - load.status = 'loaded'; - - var linkSets = load.linkSets.concat([]); - for (var i = 0, l = linkSets.length; i < l; i++) - updateLinkSetOnLoad(linkSets[i], load); - }); - }) - // 15.2.4.5.4 LoadFailed - ['catch'](function(exc) { - load.status = 'failed'; - load.exception = exc; - - var linkSets = load.linkSets.concat([]); - for (var i = 0, l = linkSets.length; i < l; i++) { - linkSetFailed(linkSets[i], load, exc); - } - - console.assert(load.linkSets.length == 0, 'linkSets not removed'); - }); - } - - // 15.2.4.7 PromiseOfStartLoadPartwayThrough absorbed into calling functions - - // 15.2.4.7.1 - function asyncStartLoadPartwayThrough(stepState) { - return function(resolve, reject) { - var loader = stepState.loader; - var name = stepState.moduleName; - var step = stepState.step; - - if (loader.modules[name]) - throw new TypeError('"' + name + '" already exists in the module table'); - - // adjusted to pick up existing loads - var existingLoad; - for (var i = 0, l = loader.loads.length; i < l; i++) { - if (loader.loads[i].name == name) { - existingLoad = loader.loads[i]; - - if(step == 'translate' && !existingLoad.source) { - existingLoad.address = stepState.moduleAddress; - proceedToTranslate(loader, existingLoad, Promise.resolve(stepState.moduleSource)); - } - - return existingLoad.linkSets[0].done.then(function() { - resolve(existingLoad); - }); - } - } - - var load = createLoad(name); - - load.metadata = stepState.moduleMetadata; - - var linkSet = createLinkSet(loader, load); - - loader.loads.push(load); - - resolve(linkSet.done); - - if (step == 'locate') - proceedToLocate(loader, load); - - else if (step == 'fetch') - proceedToFetch(loader, load, Promise.resolve(stepState.moduleAddress)); - - else { - console.assert(step == 'translate', 'translate step'); - load.address = stepState.moduleAddress; - proceedToTranslate(loader, load, Promise.resolve(stepState.moduleSource)); - } - } - } - - // Declarative linking functions run through alternative implementation: - // 15.2.5.1.1 CreateModuleLinkageRecord not implemented - // 15.2.5.1.2 LookupExport not implemented - // 15.2.5.1.3 LookupModuleDependency not implemented - - // 15.2.5.2.1 - function createLinkSet(loader, startingLoad) { - var linkSet = { - loader: loader, - loads: [], - startingLoad: startingLoad, // added see spec bug https://bugs.ecmascript.org/show_bug.cgi?id=2995 - loadingCount: 0 - }; - linkSet.done = new Promise(function(resolve, reject) { - linkSet.resolve = resolve; - linkSet.reject = reject; - }); - addLoadToLinkSet(linkSet, startingLoad); - return linkSet; - } - // 15.2.5.2.2 - function addLoadToLinkSet(linkSet, load) { - console.assert(load.status == 'loading' || load.status == 'loaded', 'loading or loaded on link set'); - - for (var i = 0, l = linkSet.loads.length; i < l; i++) - if (linkSet.loads[i] == load) - return; - - linkSet.loads.push(load); - load.linkSets.push(linkSet); - - // adjustment, see https://bugs.ecmascript.org/show_bug.cgi?id=2603 - if (load.status != 'loaded') { - linkSet.loadingCount++; - } - - var loader = linkSet.loader; - - for (var i = 0, l = load.dependencies.length; i < l; i++) { - var name = load.dependencies[i].value; - - if (loader.modules[name]) - continue; - - for (var j = 0, d = loader.loads.length; j < d; j++) { - if (loader.loads[j].name != name) - continue; - - addLoadToLinkSet(linkSet, loader.loads[j]); - break; - } - } - // console.log('add to linkset ' + load.name); - // snapshot(linkSet.loader); - } - - // linking errors can be generic or load-specific - // this is necessary for debugging info - function doLink(linkSet) { - var error = false; - try { - link(linkSet, function(load, exc) { - linkSetFailed(linkSet, load, exc); - error = true; - }); - } - catch(e) { - linkSetFailed(linkSet, null, e); - error = true; - } - return error; - } - - // 15.2.5.2.3 - function updateLinkSetOnLoad(linkSet, load) { - // console.log('update linkset on load ' + load.name); - // snapshot(linkSet.loader); - - console.assert(load.status == 'loaded' || load.status == 'linked', 'loaded or linked'); - - linkSet.loadingCount--; - - if (linkSet.loadingCount > 0) - return; - - // adjusted for spec bug https://bugs.ecmascript.org/show_bug.cgi?id=2995 - var startingLoad = linkSet.startingLoad; - - // non-executing link variation for loader tracing - // on the server. Not in spec. - /***/ - if (linkSet.loader.loaderObj.execute === false) { - var loads = [].concat(linkSet.loads); - for (var i = 0, l = loads.length; i < l; i++) { - var load = loads[i]; - load.module = !load.isDeclarative ? { - module: _newModule({}) - } : { - name: load.name, - module: _newModule({}), - evaluated: true - }; - load.status = 'linked'; - finishLoad(linkSet.loader, load); - } - return linkSet.resolve(startingLoad); - } - /***/ - - var abrupt = doLink(linkSet); - - if (abrupt) - return; - - console.assert(linkSet.loads.length == 0, 'loads cleared'); - - linkSet.resolve(startingLoad); - } - - // 15.2.5.2.4 - function linkSetFailed(linkSet, load, exc) { - var loader = linkSet.loader; - - if (load && linkSet.loads[0].name != load.name) - exc = addToError(exc, 'Error loading "' + load.name + '" from "' + linkSet.loads[0].name + '" at ' + (linkSet.loads[0].address || '') + '\n'); - - if (load) - exc = addToError(exc, 'Error loading "' + load.name + '" at ' + (load.address || '') + '\n'); - - var loads = linkSet.loads.concat([]); - for (var i = 0, l = loads.length; i < l; i++) { - var load = loads[i]; - - // store all failed load records - loader.loaderObj.failed = loader.loaderObj.failed || []; - if (indexOf.call(loader.loaderObj.failed, load) == -1) - loader.loaderObj.failed.push(load); - - var linkIndex = indexOf.call(load.linkSets, linkSet); - console.assert(linkIndex != -1, 'link not present'); - load.linkSets.splice(linkIndex, 1); - if (load.linkSets.length == 0) { - var globalLoadsIndex = indexOf.call(linkSet.loader.loads, load); - if (globalLoadsIndex != -1) - linkSet.loader.loads.splice(globalLoadsIndex, 1); - } - } - linkSet.reject(exc); - } - - // 15.2.5.2.5 - function finishLoad(loader, load) { - // add to global trace if tracing - if (loader.loaderObj.trace) { - if (!loader.loaderObj.loads) - loader.loaderObj.loads = {}; - var depMap = {}; - load.dependencies.forEach(function(dep) { - depMap[dep.key] = dep.value; - }); - loader.loaderObj.loads[load.name] = { - name: load.name, - deps: load.dependencies.map(function(dep){ return dep.key }), - depMap: depMap, - address: load.address, - metadata: load.metadata, - source: load.source, - kind: load.isDeclarative ? 'declarative' : 'dynamic' - }; - } - // if not anonymous, add to the module table - if (load.name) { - console.assert(!loader.modules[load.name], 'load not in module table'); - loader.modules[load.name] = load.module; - } - var loadIndex = indexOf.call(loader.loads, load); - if (loadIndex != -1) - loader.loads.splice(loadIndex, 1); - for (var i = 0, l = load.linkSets.length; i < l; i++) { - loadIndex = indexOf.call(load.linkSets[i].loads, load); - if (loadIndex != -1) - load.linkSets[i].loads.splice(loadIndex, 1); - } - load.linkSets.splice(0, load.linkSets.length); - } - - // 15.2.5.3 Module Linking Groups - - // 15.2.5.3.2 BuildLinkageGroups alternative implementation - // Adjustments (also see https://bugs.ecmascript.org/show_bug.cgi?id=2755) - // 1. groups is an already-interleaved array of group kinds - // 2. load.groupIndex is set when this function runs - // 3. load.groupIndex is the interleaved index ie 0 declarative, 1 dynamic, 2 declarative, ... (or starting with dynamic) - function buildLinkageGroups(load, loads, groups) { - groups[load.groupIndex] = groups[load.groupIndex] || []; - - // if the load already has a group index and its in its group, its already been done - // this logic naturally handles cycles - if (indexOf.call(groups[load.groupIndex], load) != -1) - return; - - // now add it to the group to indicate its been seen - groups[load.groupIndex].push(load); - - for (var i = 0, l = loads.length; i < l; i++) { - var loadDep = loads[i]; - - // dependencies not found are already linked - for (var j = 0; j < load.dependencies.length; j++) { - if (loadDep.name == load.dependencies[j].value) { - // by definition all loads in linkset are loaded, not linked - console.assert(loadDep.status == 'loaded', 'Load in linkSet not loaded!'); - - // if it is a group transition, the index of the dependency has gone up - // otherwise it is the same as the parent - var loadDepGroupIndex = load.groupIndex + (loadDep.isDeclarative != load.isDeclarative); - - // the group index of an entry is always the maximum - if (loadDep.groupIndex === undefined || loadDep.groupIndex < loadDepGroupIndex) { - - // if already in a group, remove from the old group - if (loadDep.groupIndex !== undefined) { - groups[loadDep.groupIndex].splice(indexOf.call(groups[loadDep.groupIndex], loadDep), 1); - - // if the old group is empty, then we have a mixed depndency cycle - if (groups[loadDep.groupIndex].length == 0) - throw new TypeError("Mixed dependency cycle detected"); - } - - loadDep.groupIndex = loadDepGroupIndex; - } - - buildLinkageGroups(loadDep, loads, groups); - } - } - } - } - - function doDynamicExecute(linkSet, load, linkError) { - try { - var module = load.execute(); - } - catch(e) { - linkError(load, e); - return; - } - if (!module || !(module instanceof Module)) - linkError(load, new TypeError('Execution must define a Module instance')); - else - return module; - } - - // 15.2.5.4 - function link(linkSet, linkError) { - - var loader = linkSet.loader; - - if (!linkSet.loads.length) - return; - - // console.log('linking {' + logloads(linkSet.loads) + '}'); - // snapshot(loader); - - // 15.2.5.3.1 LinkageGroups alternative implementation - - // build all the groups - // because the first load represents the top of the tree - // for a given linkset, we can work down from there - var groups = []; - var startingLoad = linkSet.loads[0]; - startingLoad.groupIndex = 0; - buildLinkageGroups(startingLoad, linkSet.loads, groups); - - // determine the kind of the bottom group - var curGroupDeclarative = startingLoad.isDeclarative == groups.length % 2; - - // run through the groups from bottom to top - for (var i = groups.length - 1; i >= 0; i--) { - var group = groups[i]; - for (var j = 0; j < group.length; j++) { - var load = group[j]; - - // 15.2.5.5 LinkDeclarativeModules adjusted - if (curGroupDeclarative) { - linkDeclarativeModule(load, linkSet.loads, loader); - } - // 15.2.5.6 LinkDynamicModules adjusted - else { - var module = doDynamicExecute(linkSet, load, linkError); - if (!module) - return; - load.module = { - name: load.name, - module: module - }; - load.status = 'linked'; - } - finishLoad(loader, load); - } - - // alternative current kind for next loop - curGroupDeclarative = !curGroupDeclarative; - } - } - - - // custom module records for binding graph - // store linking module records in a separate table - function getOrCreateModuleRecord(name, loader) { - var moduleRecords = loader.moduleRecords; - return moduleRecords[name] || (moduleRecords[name] = { - name: name, - dependencies: [], - module: new Module(), // start from an empty module and extend - importers: [] - }); - } - - // custom declarative linking function - function linkDeclarativeModule(load, loads, loader) { - if (load.module) - return; - - var module = load.module = getOrCreateModuleRecord(load.name, loader); - var moduleObj = load.module.module; - - var registryEntry = load.declare.call(__global, function(name, value) { - // NB This should be an Object.defineProperty, but that is very slow. - // By disaling this module write-protection we gain performance. - // It could be useful to allow an option to enable or disable this. - module.locked = true; - moduleObj[name] = value; - - for (var i = 0, l = module.importers.length; i < l; i++) { - var importerModule = module.importers[i]; - if (!importerModule.locked) { - var importerIndex = indexOf.call(importerModule.dependencies, module); - importerModule.setters[importerIndex](moduleObj); - } - } - - module.locked = false; - return value; - }); - - // setup our setters and execution function - module.setters = registryEntry.setters; - module.execute = registryEntry.execute; - - // now link all the module dependencies - // amending the depMap as we go - for (var i = 0, l = load.dependencies.length; i < l; i++) { - var depName = load.dependencies[i].value; - var depModule = loader.modules[depName]; - - // if dependency not already in the module registry - // then try and link it now - if (!depModule) { - // get the dependency load record - for (var j = 0; j < loads.length; j++) { - if (loads[j].name != depName) - continue; - - // only link if already not already started linking (stops at circular / dynamic) - if (!loads[j].module) { - linkDeclarativeModule(loads[j], loads, loader); - depModule = loads[j].module; - } - // if circular, create the module record - else { - depModule = getOrCreateModuleRecord(depName, loader); - } - } - } - - // only declarative modules have dynamic bindings - if (depModule.importers) { - module.dependencies.push(depModule); - depModule.importers.push(module); - } - else { - // track dynamic records as null module records as already linked - module.dependencies.push(null); - } - - // run the setter for this dependency - if (module.setters[i]) - module.setters[i](depModule.module); - } - - load.status = 'linked'; - } - - - - // 15.2.5.5.1 LinkImports not implemented - // 15.2.5.7 ResolveExportEntries not implemented - // 15.2.5.8 ResolveExports not implemented - // 15.2.5.9 ResolveExport not implemented - // 15.2.5.10 ResolveImportEntries not implemented - - // 15.2.6.1 - function evaluateLoadedModule(loader, load) { - console.assert(load.status == 'linked', 'is linked ' + load.name); - - doEnsureEvaluated(load.module, [], loader); - return load.module.module; - } - - /* - * Module Object non-exotic for ES5: - * - * module.module bound module object - * module.execute execution function for module - * module.dependencies list of module objects for dependencies - * See getOrCreateModuleRecord for all properties - * - */ - function doExecute(module) { - try { - module.execute.call(__global); - } - catch(e) { - return e; - } - } - - // propogate execution errors - // see https://bugs.ecmascript.org/show_bug.cgi?id=2993 - function doEnsureEvaluated(module, seen, loader) { - var err = ensureEvaluated(module, seen, loader); - if (err) - throw err; - } - // 15.2.6.2 EnsureEvaluated adjusted - function ensureEvaluated(module, seen, loader) { - if (module.evaluated || !module.dependencies) - return; - - seen.push(module); - - var deps = module.dependencies; - var err; - - for (var i = 0, l = deps.length; i < l; i++) { - var dep = deps[i]; - // dynamic dependencies are empty in module.dependencies - // as they are already linked - if (!dep) - continue; - if (indexOf.call(seen, dep) == -1) { - err = ensureEvaluated(dep, seen, loader); - // stop on error, see https://bugs.ecmascript.org/show_bug.cgi?id=2996 - if (err) { - err = addToError(err, 'Error evaluating ' + dep.name + '\n'); - return err; - } - } - } - - if (module.failed) - return new Error('Module failed execution.'); - - if (module.evaluated) - return; - - module.evaluated = true; - err = doExecute(module); - if (err) { - module.failed = true; - } - else if (Object.preventExtensions) { - // spec variation - // we don't create a new module here because it was created and ammended - // we just disable further extensions instead - Object.preventExtensions(module.module); - } - - module.execute = undefined; - return err; - } - - function addToError(err, msg) { - if (err instanceof Error) - err.message = msg + err.message; - else - err = msg + err; - return err; - } - - // 26.3 Loader - - // 26.3.1.1 - function Loader(options) { - if (typeof options != 'object') - throw new TypeError('Options must be an object'); - - if (options.normalize) - this.normalize = options.normalize; - if (options.locate) - this.locate = options.locate; - if (options.fetch) - this.fetch = options.fetch; - if (options.translate) - this.translate = options.translate; - if (options.instantiate) - this.instantiate = options.instantiate; - - this._loader = { - loaderObj: this, - loads: [], - modules: {}, - importPromises: {}, - moduleRecords: {} - }; - - // 26.3.3.6 - defineProperty(this, 'global', { - get: function() { - return __global; - } - }); - - // 26.3.3.13 realm not implemented - } - - function Module() {} - - // importPromises adds ability to import a module twice without error - https://bugs.ecmascript.org/show_bug.cgi?id=2601 - function createImportPromise(loader, name, promise) { - var importPromises = loader._loader.importPromises; - return importPromises[name] = promise.then(function(m) { - importPromises[name] = undefined; - return m; - }, function(e) { - importPromises[name] = undefined; - throw e; - }); - } - - Loader.prototype = { - // 26.3.3.1 - constructor: Loader, - // 26.3.3.2 - define: function(name, source, options) { - // check if already defined - if (this._loader.importPromises[name]) - throw new TypeError('Module is already loading.'); - return createImportPromise(this, name, new Promise(asyncStartLoadPartwayThrough({ - step: 'translate', - loader: this._loader, - moduleName: name, - moduleMetadata: options && options.metadata || {}, - moduleSource: source, - moduleAddress: options && options.address - }))); - }, - // 26.3.3.3 - 'delete': function(name) { - var loader = this._loader; - delete loader.importPromises[name]; - delete loader.moduleRecords[name]; - return loader.modules[name] ? delete loader.modules[name] : false; - }, - // 26.3.3.4 entries not implemented - // 26.3.3.5 - get: function(key) { - if (!this._loader.modules[key]) - return; - doEnsureEvaluated(this._loader.modules[key], [], this); - return this._loader.modules[key].module; - }, - // 26.3.3.7 - has: function(name) { - return !!this._loader.modules[name]; - }, - // 26.3.3.8 - 'import': function(name, options) { - // run normalize first - var loaderObj = this; - - // added, see https://bugs.ecmascript.org/show_bug.cgi?id=2659 - return Promise.resolve(loaderObj.normalize(name, options && options.name, options && options.address)) - .then(function(name) { - var loader = loaderObj._loader; - - if (loader.modules[name]) { - doEnsureEvaluated(loader.modules[name], [], loader._loader); - return loader.modules[name].module; - } - - return loader.importPromises[name] || createImportPromise(loaderObj, name, - loadModule(loader, name, options || {}) - .then(function(load) { - delete loader.importPromises[name]; - return evaluateLoadedModule(loader, load); - })); - }); - }, - // 26.3.3.9 keys not implemented - // 26.3.3.10 - load: function(name, options) { - if (this._loader.modules[name]) { - doEnsureEvaluated(this._loader.modules[name], [], this._loader); - return Promise.resolve(this._loader.modules[name].module); - } - return this._loader.importPromises[name] || createImportPromise(this, name, loadModule(this._loader, name, {})); - }, - // 26.3.3.11 - module: function(source, options) { - var load = createLoad(); - load.address = options && options.address; - var linkSet = createLinkSet(this._loader, load); - var sourcePromise = Promise.resolve(source); - var loader = this._loader; - var p = linkSet.done.then(function() { - return evaluateLoadedModule(loader, load); - }); - proceedToTranslate(loader, load, sourcePromise); - return p; - }, - // 26.3.3.12 - newModule: function (obj) { - if (typeof obj != 'object') - throw new TypeError('Expected object'); - - // we do this to be able to tell if a module is a module privately in ES5 - // by doing m instanceof Module - var m = new Module(); - - var pNames; - if (Object.getOwnPropertyNames && obj != null) { - pNames = Object.getOwnPropertyNames(obj); - } - else { - pNames = []; - for (var key in obj) - pNames.push(key); - } - - for (var i = 0; i < pNames.length; i++) (function(key) { - defineProperty(m, key, { - configurable: false, - enumerable: true, - get: function () { - return obj[key]; - } - }); - })(pNames[i]); - - if (Object.preventExtensions) - Object.preventExtensions(m); - - return m; - }, - // 26.3.3.14 - set: function(name, module) { - if (!(module instanceof Module)) - throw new TypeError('Loader.set(' + name + ', module) must be a module'); - this._loader.modules[name] = { - module: module - }; - }, - // 26.3.3.15 values not implemented - // 26.3.3.16 @@iterator not implemented - // 26.3.3.17 @@toStringTag not implemented - - // 26.3.3.18.1 - normalize: function(name, referrerName, referrerAddress) { - return name; - }, - // 26.3.3.18.2 - locate: function(load) { - return load.name; - }, - // 26.3.3.18.3 - fetch: function(load) { - throw new TypeError('Fetch not implemented'); - }, - // 26.3.3.18.4 - translate: function(load) { - return load.source; - }, - // 26.3.3.18.5 - instantiate: function(load) { - } - }; - - var _newModule = Loader.prototype.newModule; - - if (typeof exports === 'object') - module.exports = Loader; - - __global.Reflect = __global.Reflect || {}; - __global.Reflect.Loader = __global.Reflect.Loader || Loader; - __global.Reflect.global = __global.Reflect.global || __global; - __global.LoaderPolyfill = Loader; - -})(); - -/* - * Traceur and Babel transpile hook for Loader - */ -(function(Loader) { - var g = __global; - - function getTranspilerModule(loader, globalName) { - return loader.newModule({ 'default': g[globalName], __useDefault: true }); - } - - // use Traceur by default - Loader.prototype.transpiler = 'traceur'; - - Loader.prototype.transpile = function(load) { - var self = this; - - // pick up Transpiler modules from existing globals on first run if set - if (!self.transpilerHasRun) { - if (g.traceur && !self.has('traceur')) - self.set('traceur', getTranspilerModule(self, 'traceur')); - if (g.babel && !self.has('babel')) - self.set('babel', getTranspilerModule(self, 'babel')); - self.transpilerHasRun = true; - } - - return self['import'](self.transpiler).then(function(transpiler) { - if (transpiler.__useDefault) - transpiler = transpiler['default']; - return 'var __moduleAddress = "' + load.address + '";' + (transpiler.Compiler ? traceurTranspile : babelTranspile).call(self, load, transpiler); - }); - }; - - Loader.prototype.instantiate = function(load) { - var self = this; - return Promise.resolve(self.normalize(self.transpiler)) - .then(function(transpilerNormalized) { - // load transpiler as a global (avoiding System clobbering) - if (load.name === transpilerNormalized) { - return { - deps: [], - execute: function() { - var curSystem = g.System; - var curLoader = g.Reflect.Loader; - // ensure not detected as CommonJS - __eval('(function(require,exports,module){' + load.source + '})();', g, load); - g.System = curSystem; - g.Reflect.Loader = curLoader; - return getTranspilerModule(self, load.name); - } - }; - } - }); - }; - - function traceurTranspile(load, traceur) { - var options = this.traceurOptions || {}; - options.modules = 'instantiate'; - options.script = false; - options.sourceMaps = 'inline'; - options.filename = load.address; - options.inputSourceMap = load.metadata.sourceMap; - options.moduleName = false; - - var compiler = new traceur.Compiler(options); - var source = doTraceurCompile(load.source, compiler, options.filename); - - // add "!eval" to end of Traceur sourceURL - // I believe this does something? - return source + '\n//# sourceURL=' + load.address + '!eval'; - } - function doTraceurCompile(source, compiler, filename) { - try { - return compiler.compile(source, filename); - } - catch(e) { - // traceur throws an error array - throw e[0]; - } - } - - function babelTranspile(load, babel) { - var options = this.babelOptions || {}; - options.modules = 'system'; - options.sourceMap = 'inline'; - options.filename = load.address; - options.code = true; - options.ast = false; - - if (!options.blacklist) - options.blacklist = ['react']; - - var source = babel.transform(load.source, options).code; - - // add "!eval" to end of Babel sourceURL - // I believe this does something? - return source + '\n//# sourceURL=' + load.address + '!eval'; - } - - -})(__global.LoaderPolyfill); -/* -********************************************************************************************* - - System Loader Implementation - - - Implemented to https://github.com/jorendorff/js-loaders/blob/master/browser-loader.js - - - - - \ No newline at end of file diff --git a/jspm_packages/npm/babel-core@5.6.20.js b/jspm_packages/npm/babel-core@5.6.20.js deleted file mode 100644 index 67834dc..0000000 --- a/jspm_packages/npm/babel-core@5.6.20.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("npm:babel-core@5.6.20/browser"); \ No newline at end of file diff --git a/jspm_packages/npm/babel-core@5.6.20/.jspm-hash b/jspm_packages/npm/babel-core@5.6.20/.jspm-hash deleted file mode 100644 index 6bc6442..0000000 --- a/jspm_packages/npm/babel-core@5.6.20/.jspm-hash +++ /dev/null @@ -1 +0,0 @@ -d82d01487ecc8ed3134b28710afd8aabf2b597362615f3cffc60555b3aeaacf1dd14b06ejspm-npm@0.210.15 \ No newline at end of file diff --git a/jspm_packages/npm/babel-core@5.6.20/.jspm.json b/jspm_packages/npm/babel-core@5.6.20/.jspm.json deleted file mode 100644 index d3bbfe6..0000000 --- a/jspm_packages/npm/babel-core@5.6.20/.jspm.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "name": "babel-core", - "description": "A compiler for writing next generation JavaScript", - "version": "5.6.20", - "author": { - "name": "Sebastian McKenzie", - "email": "sebmck@gmail.com" - }, - "homepage": "https://babeljs.io/", - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel" - }, - "browser": { - "./lib/babel/api/register/node.js": "./lib/babel/api/register/browser.js" - }, - "keywords": [ - "6to5", - "babel", - "classes", - "const", - "es6", - "harmony", - "let", - "modules", - "transpile", - "transpiler", - "var" - ], - "scripts": { - "bench": "make bench", - "test": "make test" - }, - "devDependencies": { - "babel": "5.6.10", - "babel-eslint": "^3.1.19", - "browserify": "^9.0.8", - "chai": "^2.2.0", - "eslint": "^0.21.2", - "esvalid": "^1.1.0", - "istanbul": "^0.3.5", - "matcha": "^0.6.0", - "mocha": "2.2.0", - "rimraf": "^2.3.2", - "uglify-js": "^2.4.16" - }, - "gitHead": "d28716cf9377c331b40205d1be8119c6591d2403", - "bugs": { - "url": "https://github.com/babel/babel/issues" - }, - "_id": "babel-core@5.6.20", - "_shasum": "d82d01487ecc8ed3134b28710afd8aabf2b59736", - "_from": ".", - "_npmVersion": "1.4.28", - "_npmUser": { - "name": "sebmck", - "email": "sebmck@gmail.com" - }, - "maintainers": [ - { - "name": "sebmck", - "email": "sebmck@gmail.com" - } - ], - "dist": { - "shasum": "d82d01487ecc8ed3134b28710afd8aabf2b59736", - "tarball": "http://registry.npmjs.org/babel-core/-/babel-core-5.6.20.tgz" - }, - "directories": {}, - "jspm": { - "main": "browser.js", - "dependencies": {}, - "jspmNodeConversion": false, - "shim": { - "browser": { - "exports": "babel" - } - }, - "map": { - "regenerator/runtime": "babel-runtime/regenerator/runtime" - } - }, - "main": "browser.js", - "jspmNodeConversion": false, - "shim": { - "browser": { - "exports": "babel" - } - }, - "map": { - "regenerator/runtime": "babel-runtime/regenerator/runtime" - }, - "registry": "npm", - "dependencies": {} -} \ No newline at end of file diff --git a/jspm_packages/npm/babel-core@5.6.20/CHANGELOG-6to5.md b/jspm_packages/npm/babel-core@5.6.20/CHANGELOG-6to5.md deleted file mode 100644 index 6005a2d..0000000 --- a/jspm_packages/npm/babel-core@5.6.20/CHANGELOG-6to5.md +++ /dev/null @@ -1,1093 +0,0 @@ -# 6to5 Changelog - -## 3.6.6 - - * **Internal** - * Upgrade `core-js`. - * **Bug Fix** - * Fix temp variables not being properly pushed inside of `while` loops. - * **New Feature** - * Add `auxiliaryComment`/`--auxiliary-comment` option that prepends comments to auxiliary helpers. - -## 3.6.5 - - * **Internal** - * Upgrade `core-js`. - * **Bug Fix** - * Fix block scoping leaking variables in IIFE mode. - * Fix tail call transformer exploding on return statements as the consequent of an if statement. - * **New Feature** - * Add `validation.react` transformer. - -## 3.6.4 - - * **New Feature** - * Add support for flow type casts and module types. - -## 3.6.3 - - * **Internal** - * Upgrade `acorn-6to5`. - * Use `default` property on `6to5-runtime`. - -## 3.6.2 - - * **Polish** - * Use better iterator detection in `slicedToArray` helper and add support for it to the `selfContained` transformer. - -## 3.6.1 - - * **Bug Fix** - * Multiline JSX string literals are now supported. - * Fix scope tracking import specifiers incorrectly. - * Fix templates incorrectly recursing into their replacements. - * **Internal** - * Type inferrence now extends to function return types. - * Upgrade `acorn-6to5`. - -## 3.6.0 - - * **New Feature** - * Add playground class property initializers. - * **Polish** - * Completely reimplemented scope tracking, can now track types and optimise certain helpers based on it. - * Extremely fast tail recursion optimisation implementation. Thanks [@RReverser](https://github.com/RReverser)! - * **Internal** - * `kexec` has been removed as an optional dependency and must be user installed. - * Upgrade `regenerator-6to5`. - * Upgrade `acorn-6to5`. - * Upgrade `core-js`. - -## 3.5.3 - - * Enable `es6.tailCall` transformer with the first implementation that only works with self referencing calls until we can implement nested tail calls elegantly. - -## 3.5.2 - - * Disable `es6.tailCall` temporairly after reports of it breaking. - -## 3.5.1 - - * **Polish** - * Allow tail calls to work across files without the runtime. - * **Internal** - * Upgrade `acorn-6to5`. - -## 3.5.0 - - * **Bug Fix** - * Destructuring patterns as the left operator in `ForInStatement`/`ForOfStatement`. - * **Polish** - * Make default parameter IIFE invocation smarter. - * Make `__esModule` flag non-enumerable. Thanks [@daliwali](https://github.com/daliwali)! - * **Internal** - * More performance improvements. - * Parsing is now ~30% faster thanks to [marijnh/acorn@7264bc0178e7e6af7cfe02e9e0c6b26ee0e6007f](https://github.com/marijnh/acorn/commit/7264bc0178e7e6af7cfe02e9e0c6b26ee0e6007f). - * **New Feature** - * Optional `es6.blockScopingTDZ` is now completely functional and handles all edgecases. - * `super` in object literals. - * Tail call optimisation. Thanks [@RReverser](https://github.com/RReverser)! - -## 3.4.1 - - * **Bug Fix** - * Fix conflicting `--module-ids` shorthand arg in `$ 6to5`. - * Add require hook options to cache key. - * Fix strict module formatter. - -## 3.4.0 - - * **New Feature** - * Add `commonStandard` module formatter. - * **Bug Fix** - * Fix conflicting `--module-ids` shorthand arg in `$ 6to5`. - * **Internal** - * Lots of internal refactoring with scope tracking and traversal. - * **Polish** - * Don't return `map` in the API result if `sourceMap` was set to `"inline"`. - -## 3.3.12 - - * **Bug Fix** - * Don't override `MemberExpression`s with `core-js` in `selfContained` if a local binding exists. - -## 3.3.11 - - * **Bug Fix** - * Fix the require cache. - -## 3.3.10 - - * **Internal** - * Restructure transformers so they're only ran if the AST contains nodes that they need to worry about. Improves transpilation speed significantly. - * **Bug Fix** - * Fix source maps not tracking end of node locations. - * **Spec Compliancy** - * Use static super references as the home object is actually done at definition time. - * **Polish** - * Force the `es6.destructuring` transformer to be whitelisted when the `es7.objectSpread` transformer is. - * Join sibling string literals when creating JSX. - -## 3.3.9 - - * **Bug Fix** - * Fix super inside of functions. - * Fix super constructor inheritance. - -## 3.3.7 - - * **Bug Fix** - * Add `--use-strict` to valid node flags in `6to5-node`. - * Fix booleans not being properly stripped from the arguments in `6to5-node`. - * Force `.js` extension when writing files to directories with `6to5`. - -## 3.3.5 - - * **Bug Fix** - * Fix block scoping inside of while loops. - * Make module name regex more conservative. Thanks [@johlrich](https://github.com/johlrich)! - * Fix block scoping of constants. - * Fix istanbul interop. - * Make JSX transforming more inline with the official transformer with spaces after non-empty last lines. - * **Polish** - * Make it illegal to export a property called `__esModule`. - -## 3.3.4 - - * **Polish** - * Add istanbul `require` interop. - * **Bug Fix** - * Fix incorrect source map column tracking in specific scenarios. - -## 3.3.3 - - * **Polish** - * Remap top level `this` to `undefined` instead of throwing an error. - * **Bug Fix** - * Run `selfContained` transformer over the regenerator runtime when building `6to5-runtime`. - * Fix `t.isReferenced` not properly allowing `value` nodes. - -## 3.3.1 - - * **Bug Fix** - * Block hoist assignment pattern destructuring. - -## 3.3.0 - - * **Bug Fix** - * Do all transforms before the regenerator transform is ran. - * **New Feature** - * Added back the 2.x optional runtime. - -## 3.2.1 - - * **Bug Fix** - * Fix block scoping transformer rewriting breaks and continues to inner labels. - -## 3.2.0 - - * **Bug Fix** - * Fixed scope tracking for default parameters IIFE. - * Fixed block scoped functions. - * Improved `bin/6to5` path resolution. - * **New Feature** - * You can now trigger super setters in classes. Thanks [@kruppel](https://github.com/kruppel)! - * Add `resolveSourceMap` option. - * Better support and output for block scoping loops with labels. - -## 3.1.1 - - * **Polish** - * Drop `enumerable: false` clause from class method definitions as `enumerable` already defaults to `false`. - * **Bug Fix** - * Properly transform `XJSIdentifier` nodes referencing `this` into a `ThisExpression`. - -## 3.1.0 - - * **Breaking Change** - * [Make class methods unenumerable](https://esdiscuss.org/topic/classes-and-enumerability#content-61). - -## 3.0.16 - - * **Bug Fix** - * Don't ignore dynamic import specifiers. - * **Internal** - * Upgrade `regenerator-6to5`. - * **Polish** - * Use `Object.assign` in place of extends helper if it exists. - * Require individual `lodash` methods. Thanks [@stefanpenner](https://github.com/stefanpenner)! - -## 3.0.15 - - * **Bug Fix** - * Use `debug/node` instead of `debug` to avoid browserify using the browser version that references `window`. - -## 3.0.14 - - * **New Feature** - * Add `--optional` argument to `6to5-node`. - * **Bug Fix** - * Fix bug in `asyncToGenerator` helper where it was incorrectly calling generator iterator functions. - -## 3.0.13 - - * **Bug Fix** - * Fix modules loose mode using `modules` instead of `es6.modules`. - -## 3.0.12 - - * **Internal** - * Add internal debug messages. - * **Bug Fix** - * Add `noScope` option to `traverse.clearProperties`. - -## 3.0.11 - - * **Bug Fix** - * Fix `ast-types` `RestElement` definition. - * Make `es6.forOf` loose mode more versatile and support destructuring. - -## 3.0.10 - - * **Bug Fix** - * In `types.getIds` make sure the `declaration` inside of `ExportDeclaration` is actually a `Declaration`. - -## 3.0.9 - - * **Bug Fix** - * Make `t.isReferenced` more powerful, actually take into consideration all contexts were identifier nodes aren't actually references. - * Don't camelcase underscores when converting a string to a valid identifier. - -## 3.0.8 - - * **Bug Fix** - * Split up default function declaration exports due to regenerator destroying the parent export declaration. - -## 3.0.7 - - * **Internal** - * Upgrade `core-js` to `0.4.9`. - * **Bug Fix** - * Add id to function express scope tracking. - -## 3.0.6 - - * **Bug Fix** - * Fix block scope variable tracking stopping whenever it hits a new scope. - * Fix block scope variable tracking breaking on all block statement scopes that have a for loop parent. - -## 3.0.5 - - * **Internal** - * More reliable default parameter scope. - -## 3.0.4 - - * **Bug Fix** - * Remove traversal stops from block scope tracking. - -## 3.0.3 - - * **Internal** - * Ignore options starting with `_`. - -## 3.0.2 - - * **Internal** - * Add common plugin options to valid options list. - -## 3.0.1 - - * **Internal** - * Downgrade `kexec` as `1.1.0` throws compilation errors. - -## 3.0.0 - - * **Polish** - * Generated code autoindentation. - * Moved global uid registry to a scope registry resulting in nicer uids. - * `this` is now illegal in the top level scope when using the default `useStrict` transformer. - * New `asyncToGenerator` helper that's much more compact. - * Throw errors on unknown options. - * More reliable default parameter scope. - * Helpers are now compact and have no newlines. - * **Internal** - * Rewritten a lot of the internals to much simpler. - * Removed TDZ from default parameters as it was very wonky and unreliable. - * Upgrade `core-js` to `0.4.6`. - * Upgrade `acorn-6to5`. - * JSX support is now on-par with react-tools/esprima. - * Shorthand destructuring. - * **Bug Fix** - * Generators now work flawlessly with any parameter transformers. - * Optional async function transformers should not name their functions. - * Remove `unlink` event watching in `bin/6to5`. - * Fix regenerator variable declarations being incorrectly hoisted breaking scope. - * Transformers that attempted to simplify expressions that had no consequence now take into account whether it's one of the last statements/expressions in the script. - * **New Feature** - * New `selfContained` transformer. - * New `undeclaredVariableCheck` optional transformer. - * Added `--blacklist` and `--whitelist` options to `6to5-node`. - * **Breaking Change** - * Caching is now always enabled for the require hook. It also now no longer caches require resolutions. - * Bare `super();` only works inside of constructors. - * Removed the optional runtime in favor of the `selfContained` transformer. - * This shorthand has been removed from the playground. - * `6to5/polyfill` can now only be required **once**. - * **CLI** - * `--indent` option has been removed. - * `--include-regenerator` option has been removed. - * `--amd-modules-id` option has been removed, use `--module-ids` instead. - * **Options** - * `amdModuleIds` option has been removed, use `moduleIds` instead. - * `includeRegenerator` has been removed. - * `ignoreRegex` fallback has now been dropped from the require hook. `register(/foo/);`, `register({ ignoreRegex: /foo/ })` -> `register({ ignore: /foo/ })`. - * **Modules** - * Module interop now only collapses to `module.exports` when there's a **single** export that's default. - * Imports and exports are now illegal anywhere except the root level by default. Set `modules` to [loose mode](http://6to5.org/docs/usage/loose) to allow them everywhere. - * **Transformers** - * Optional fast transformer backwards compatibility support has been removed. Use [loose mode](https://6to5.org/docs/usage/loose). - * Removed the `coreAliasing` transformer in favor of `selfContained`. - * Renamed transformers: - * `specNoForInOfAssignment` -> `validation.noForInOfAssignment` - * `specSetters` -> `validation.setters` - * `specBlockScopedFunctions` -> `spec.blockScopedFunctions` - * `malletOperator` -> `playground.malletOperator` - * `methodBinding` -> `playground.methodBinding` - * `memoizationOperator` -> `playground.memoizationOperator` - * `objectGetterMemoization` -> `playground.objectGetterMemoization` - * `modules` -> `es6.modules` - * `propertyNameShorthand` -> `es6.properties.shorthand` - * `arrayComprehension` -> `es7.comprehensions` - * `generatorComprehension` -> `es7.comprehensions` - * `arrowFunctions` -> `es6.arrowFunctions` - * `classes` -> `es6.classes` - * `objectSpread` -> `es7.objectSpread` - * `exponentiationOperator` -> `es7.exponentiationOperator` - * `spread` -> `es6.spread` - * `templateLiterals` -> `es6.templateLiterals` - * `propertyMethodAssignment` -> `es6.properties.shorthand` - * `computedPropertyNames` -> `es6.properties.computed` - * `defaultParameters` -> `es6.parameters.default` - * `restParameters` -> `es6.parameters.rest` - * `destructuring` -> `es6.destructuring` - * `forOf` -> `es6.forOf` - * `unicodeRegex` -> `es6.unicodeRegex` - * `abstractReferences` -> `es7.abstractReferences` - * `constants` -> `es6.constants` - * `letScoping` -> `es6.blockScoping` - * `blockScopingTDZ` -> `es6.blockScopingTDZ` - * `generators` -> `regenerator` - * `protoToAssign` -> `spec.protoToAssign` - * `typeofSymbol` -> `spec.typeofSymbol` - * `coreAliasing` -> `selfContained` - * `undefinedToVoid` -> `spec.undefinedToVoid` - * `undeclaredVariableCheck` -> `validation.undeclaredVariableCheck` - * `specPropertyLiterals` -> `minification.propertyLiterals` - * `specMemberExpressionLiterals` -> `minification.memberExpressionLiterals` - -## 2.13.7 - - * **Bug Fix** - * Don't realias variables that are already declared in optional `coreAliasing` transformer. - -## 2.13.6 - - * **Bug Fix** - * Add `NewExpression` as a valid parent for parentheses insertion for `ConditionalExpression`. - -## 2.13.5 - - * **Bug Fix** - * Allow rest parameters to be destructuring patterns. - * **Internal** - * Upgrade `kexec` to `1.1.0`. - -## 2.13.4 - - * **Bug Fix** - * Fix ordering of destructuring and default params. - * Fix loop body scope. - * Fix `for...of` transformation not retaining it's scope. - * Add destructuring assignment support to scope tracking. - * **Polish** - * More reliable newlines for pretty printing variable declarations. - -## 2.13.3 - - * **Internal** - * Add `coverage` and `vendor` to npmignore. - -## 2.13.2 - - * **Bug Fix** - * Fix `super` inside of nested functions. - * **Internal** - * Move let scoping TDZ into a separate transformer until it's more solid. - * Use `process.stdin.write` instead of `console.log` in `bin` to avoid sprintfification. - -## 2.13.1 - - * **New Feature** - * Temporal dead zone for block binding. - -## 2.13.0 - - * **New Feature** - * Block scoped functions. - * Add `--loose all` option. - * Add playground mallet operator thanks to [@jridgewell](https://github.com/jridgewell). - * **Bug Fix** - * Rewrote large parts of the let scoping transformer. Now passes all known tests. - * **Internal** - * Even more optimisations thanks to the awesome [@gaearon](https://github.com/gaearon). - * Upgrade `acorn-6to5`. - * Fixes exponentation operator thanks to [@charliesome](https://github.com/charliesome). - * Fix flow optional parameters with types. - * Upgrade `chokidar` to `0.12.6`. - * Upgrade `commander` to `2.6.0`. - * Upgrade `core-js` to `0.4.5`. - * Upgrade `estraverse` to `1.9.1`. - * Upgrade `jshint` to `2.5.11`. - * Upgrade `regenerator` to `0.8.9`. - * Upgrade `regexpu` to `1.0.0`. - * Upgrade `source-map` to `0.1.43`. - * Upgrade `source-map-support` to `0.2.9`. - * Upgrade `browserify` to `8.1.1`. - * Upgrade `chai` to `1.10.0`. - * Upgrade `istanbul` to `0.3.5`. - * Upgrade `mocha` to `2.1.0`. - * Upgrade `uglify-js` to `2.4.16`. - -## 2.12.6 - - * **Bug Fix** - * Add missing flow type traversal keys. - -## 2.12.5 - - * **Internal** - * Fix incorrect `for...in` loop still causing `ember-script` issues. - -## 2.12.4 - - * **Polish** - * Rest parameters now allocate the array before populating. - * **Internal** - * `for...in` loops have been changed to optimized `for` loops - better performance and no enumeration of protoype keys. - * Parts of the code generator have now been optimized thanks to [gaearon](https://github.com/gaearon). - -## 2.12.3 - - * **Spec Compliancy** - * Optional `typeof` transformer checks for `undefined` before passing it to the helper. - * Class methods are now named. - -## 2.12.2 - - * **Internal** - * Exclude nodes in function parameters and catch clauses from `isReferenced` check. - -## 2.12.1 - - * **Internal** - * Add `.jsx` to list of allowed extensions. - -## 2.12.0 - - * **Bug Fix** - * Support non-string JSX literals. - * **New Feature** - * Loose mode for some transformers that enables non-spec behavior. - * **Internal** - * Uglify `--mangle sort` has been added to the build script, cutting minified scripts in half. - -## 2.11.4 - - * **Internal** - * Make all dependency versions fixed. - -## 2.11.3 - - * **Bug Fix** - * Allow a string to be passed as the `optional` option. - -## 2.11.2 - - * **Bug Fix** - * Support esprima-style catch clause handlers. - * **Polish** - * Don't print a stacktrace for syntax errors in the CLI. - -## 2.11.1 - - * **Bug Fix** - * Remove stray `console.log` outputting debug code. - * Remove `Dict` from `coreAliasing`. - -## 2.11.0 - - * **Bug Fix** - * Fix unnecessary IIFE in default parameters on method calls. - * Add support for supers inside of closures. - * **New Feature** - * Add `--keep-module-id-extensions`/`keepModuleIdExtensions` option to keep extensions in module ids. - * **Polish** - * Special case single argument spread properties in `super` inside classes. - * Don't use a variable declaration for class declaration IFFE. - * Rename `inherits` helper parameters. - * `coreAliasing` transformer now aliases `Promise`, `Set`, `Map` and more. Thanks [@AluisioASG](https://github.com/AluisioASG). - -## 2.10.1 - - * **Internal** - * Upgrade `core-js` to `0.4.4`. - * **New Feature** - * Added `--include-regenerator` option to CLI and `includeRegenerator` option to API that includes the regenerator runtime if necessary. - -## 2.10.0 - - * **New Feature** - * Add `classesFastSuper` optional transformer that doesn't support parent getters and prototype changing. - * Add `forOfFast` transformer that speeds up `for...of` on arrays but produces more code. - * Add `--react-compat` to `bin/6to5`. - * **Spec Compliancy** - * Disallow setters without a single parameter. - * Add `configurable` and `writable` to defined properties. - * Use define instead of assignment for class methods. - * **Polish** - * Fix bin name in `6to5-node --help`. - * Fix shorthand `--whitelist` name in `bin/6to5`. - * **Internal** - * Hot code optimisation of traversal etc thanks to [gaearon](https://github.com/gaearon). - -## 2.9.4 - - * **Bug Fix** - * Support `UpdateExpression`s as `MemberExpression` objects. - -## 2.9.3 - - * **Bug Fix** - * Remove `exportsWildcard` helper in favor of `defaults`. - -## 2.9.2 - - * **Bug Fix** - * Pass `exports` to `exportWildcard` helper to allow for use inside the optional runtime. - -## 2.9.1 - - * **Bug Fix** - * Fix runtime generator breaking the helper inclusion loop. - -## 2.9.0 - - * **Internal** - * Upgrade `acorn-6to5`. - * Now supports destructuring shorthand properties. - -## 2.8.1 - - * **Bug Fix** - * Fix computed accessors on object literals. - -## 2.8.0 - - * **New Feature** - * Add `commonStrict`, `amdStrict` and `umdStrict` module formatters that remove `module.exports` interop assignment. - * Add `--indent` option to the 6to5 CLI. - -## 2.7.4 - - * **Polish** - * Inherit assignments from their declaration in destructuring. - * Properly align multi-declarator variable declarations. - -## 2.7.3 - - * **Polish** - * Indent and add newlines to `React.createElement` calls in `react` transformer. - * Remove `Object.assign` calls and replace it with an `extends` helper. - -## 2.7.1 - - * **New Feature** - * Expose `version` on browser and node API. - * **Internal** - * Upgrade `core-js` to 0.4.1 - -## 2.7.0 - - * **Spec Compliancy** - * Disallow reassignments of imports. - * **New Feature** - * `reactCompat` option to enable pre-v0.12 react components. - -## 2.6.3 - - * **Bug Fix** - * Fix 2.6.0 regression caused by faulty export default from a source handling. - -## 2.6.2 - - * **Bug Fix** - * Fix rest parameter keys when on functions with params. - -## 2.6.1 - - * **Bug Fix** - * Fix rest parameter arguments key. - -## 2.6.0 - - * **Bug Fix** - * Better handling of number literal property keys. - * Handle `NewExpression` paren insertion edegcases better. - * **Internal** - * Fix incorrect AST node `identifier("this")`. - * Better `toIdentifier` method that handles reserved words. - * Upgrade `acorn-6to5`. - * Fix exponentiation operator precedence. - * Fix line terminators after async contextual keywords. - * Add semicolons as class elements inside of a class body. - * Upgrade to `core-js` 4.0.0. - * Upgrade to `regenerator` 0.8.3. - * Fix non-loop labeled statements. - * **New Feature** - * Basic destructuring defaults - * Add `.es` to list of supported extensions. - * Add optional `typeofSymbol` transformer. - * Use a `for` loop for rest parameters instead of `Array.prototype.slice`. - * **Polish** - * Move `"use strict";` to inside module bodies instead of at the top of the file. - * Better handling of dynamic imports. - * **Spec Compliancy** - * Class inheritance now has a `function` or `null` type check. - * Add `interopRequireWildcard` around wildcard imports and exports to handle non-object exports. - -## 2.5.0 - - * Remove `noDuplicateProperties` transformer. - * Better generated UIDs based on nodes. - * Default parameters now use `arguments[i]`, conditionals and variable declarations instead of using long-form if statements. - -## 2.4.10 - - * Upgrade `acorn-6to5`. - -## 2.4.9 - - * Upgrade `acorn-6to5`. - * Add optional `protoToAssign` transformer. - * Fix missing properties from computed property keys. - * Make ES7 comprehensions `let` variables. - -## 2.4.8 - - * Make `require("6to5/register")` work with browserify - [#370](https://github.com/6to5/6to5/pull/370). Thanks [@hughsk](https://github.com/hughsk)! - -## 2.4.7 - - * Upgrade `acorn-6to5`. - -## 2.4.6 - - * Move `coreAliasing` and `undefinedToVoid` transformers down to catch `moduleFormatter` transforms. - -## 2.4.5 - - * Avoid printing comments if they've already been output. - -## 2.4.4 - - * Add `module` type to browser build `