unageanu/container-js

View on GitHub
minified/container.js

Summary

Maintainability
A
0 mins
Test Coverage
define("containerjs/utils/deferred",[],function(){var e={};e.then=function(){},e.always=function(){},e.done=function(){},e.fail=function(){},e.pipe=function(){},e.fixed=function(){},e.rejected=function(){},e.resolved=function(){};var t=function(){this.state=c.unresolved,this.result=null,this.successCallbacks=[],this.failCallbacks=[],Object.seal(this)};t.prototype.then=function(e,n){var r=new t;return this.state.done.call(this,e,r),this.state.fail.call(this,n,r),r},t.prototype.always=function(e){return this.then(e,e)},t.prototype.done=function(e){var n=new t;return this.state.done.call(this,e,n),n},t.prototype.fail=function(e){var n=new t;return this.state.fail.call(this,e,n),n},t.prototype.resolve=function(e){return this.state.resolve.call(this,e),this},t.prototype.reject=function(e){return this.state.reject.call(this,e),this},t.prototype.fixed=function(){return this.rejected()||this.resolved()},t.prototype.rejected=function(){return this.state===c.rejected},t.prototype.resolved=function(){return this.state===c.resolved},t.prototype.promise=function(){return Object.freeze({then:this.then.bind(this),done:this.done.bind(this),fail:this.fail.bind(this),always:this.always.bind(this),pipe:this.pipe.bind(this),fixed:this.fixed.bind(this),rejected:this.rejected.bind(this),resolved:this.resolved.bind(this)})},t.prototype.pipe=function(e,n){var r=new t;return this.then(function(t){try{r.resolve(e?e(t):t)}catch(i){r.reject(n?n(i):i)}},function(e){try{e=n?n(e):e}catch(t){}r.reject(e)}),r.promise()},t.valueOf=function(e){var n=new t;return n.resolve(e),n.promise()},t.errorOf=function(e){var n=new t;return n.reject(e),n.promise()},t.when=function(e){var n=new t,r=[];if(0===e.length)n.resolve(r);else{var i=e.length,o=function(e){n.fixed()||n.reject(e)};e.forEach(function(e,t){e.then(function(e){r[t]=e,0!==--i||n.fixed()||n.resolve(r)},o)})}return n.promise()},t.isPromise=function(t){for(var n in e)if(!t[n])return!1;return!0},t.pack=function(e,n,r){var i=new t;try{var o=e.apply(n,r);if(t.isPromise(o))return o;i.resolve(o)}catch(c){i.reject(c)}return i.promise()},t.unpack=function(e){var t=null,n=null;if(e.then(function(e){t=e},function(e){n=e}),n)throw n;return t},t.defer=function(e){return function(){return t.pack(e,this,arguments)}},t.lazy=function(e,n,r){var i=new t,o=function(){try{var o=e.apply(n,r);t.isPromise(o)?o.then(function(e){i.resolve(e)},function(e){i.reject(e)}):i.resolve(o)}catch(c){i.reject(c)}};return i.state={done:function(){c.unresolved.done.apply(this,arguments),this.state=c.unresolved,o()},fail:function(){c.unresolved.fail.apply(this,arguments),this.state=c.unresolved,o()},resolve:c.unresolved.resolve,reject:c.unresolved.reject},i};var n=function(){throw new Error("already resolved or rejected.")},r=function(e,t){e.call(null,t)},i=function(e,t){var n,i;for(n=0,i=e.length;i>n;n++)r(e[n],t)},o=function(e,t){return function(n){try{var r=e(n);t.resolve(r)}catch(i){t.reject(i)}}},c={unresolved:{done:function(e,t){return this.successCallbacks.push(o(e,t)),t},fail:function(e,t){return this.failCallbacks.push(o(e,t)),t},resolve:function(e){this.result=e,this.state=c.resolved,i(this.successCallbacks,e),this.successCallbacks=void 0},reject:function(e){this.result=e,this.state=c.rejected,i(this.failCallbacks,e),this.failCallbacks=void 0}},resolved:{done:function(e,t){o(e,t)(this.result)},fail:function(){},resolve:n,reject:n},rejected:{done:function(){},fail:function(e,t){o(e,t)(this.result)},resolve:n,reject:n}};return t}),define("containerjs/loaders",["containerjs/utils/deferred"],function(e){var t={};t.load=function(){};var n={load:function(t){var n=new e;try{require([t],function(e){n.resolve(e)},function(e){n.reject(e)})}catch(r){n.reject(r)}return n}},r={load:function(t){var n=new e;try{n.resolve(require(t))}catch(r){n.reject(r)}return n}};return Object.freeze({COMMON_JS:r,AMD:n})}),define("containerjs/scope",["containerjs/utils/deferred"],function(e){var t={forSingleton:function(e,t,n){return e.singletonComponents[t.id]||(e.singletonComponents[t.id]=e.createComponent(t,n))},forPrototype:function(e,t,n){return e.createComponent(t,n)}},n={destroyIfComponentExist:function(t,n){var r=t.singletonComponents[n.id];r&&e.unpack(r.then(function(e){n.destroy(e,t)}))},nothingToDo:function(){}},r={SINGLETON:Object.freeze({retrievingStrategy:t.forSingleton,destructionStrategy:n.destroyIfComponentExist,createOnStartUp:!1}),EAGER_SINGLETON:Object.freeze({retrievingStrategy:t.forSingleton,destructionStrategy:n.destroyIfComponentExist,createOnStartUp:!0}),PROTOTYPE:Object.freeze({retrievingStrategy:t.forPrototype,destructionStrategy:n.nothingToDo,createOnStartUp:!1})};return Object.freeze(r)}),define("containerjs/key",["containerjs/utils/deferred"],function(e){var t={get:function(){}};return t.create=function(n,r,i){return Object.freeze(Object.create(t,{get:{value:function(t,o){o=i?null:o;var c=r?t.gets(n,o):t.get(n,o);return i?e.valueOf(c):c}}}))},Object.freeze(t),t}),define("containerjs/inject",["containerjs/key"],function(e){var t=function(t){return e.create(t,!1,!1)};return t.lazily=function(t){return e.create(t,!1,!0)},t.all=function(t){return e.create(t,!0,!1)},t.all.lazily=function(t){return e.create(t,!0,!0)},Object.freeze(t),t}),define("containerjs/utils/asserts",[],function(){var e={assertNotNull:function(e,t){if(null==e)throw new Error(t+" is null or undefined.")},assertNotEmpty:function(t,n){if(e.assertNotNull(t,n),""===t)throw new Error(n+" is empty string.")},assertValueIsFunction:function(t,n){if(e.assertNotNull(t,n),"function"!=typeof t)throw new Error(n+" is not function.")}};return Object.freeze(e)}),define("containerjs/bindings/binding",["containerjs/inject","containerjs/key","containerjs/scope","containerjs/utils/asserts","containerjs/utils/deferred"],function(e,t,n,r,i){var o=function(e){r.assertNotNull(e.id,"id"),r.assertNotEmpty(e.name,"name"),this.id=e.id,this.name=e.name,this.scope=e.scope||n.SINGLETON,this.injectionProperties=e.injectionProperties||{},this.initializer=void 0,this.destructor=void 0};return o.prototype.getInstance=function(){},o.prototype.initialize=function(e,t){this.initializer&&this.initializer(e,t)},o.prototype.destroy=function(e,t){this.destructor&&this.destructor(e,t)},o.prototype.injectProperties=function(e,t,n){var r=this.collectInjectionProperties(e);return this.resolveProperties(r,t,null,n).pipe(function(t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e})},o.prototype.collectInjectionProperties=function(e){var t={};return this.collectFromModuleDefinition(t,this.injectionProperties),this.collectFromComponent(t,e),t},o.prototype.collectFromModuleDefinition=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o.prototype.collectFromComponent=function(e,t){for(var n in t){var r=t[n];this.isInjectionProperty(r)&&(e[n]=r)}},o.prototype.isInjectionProperty=function(n){return n&&t.isPrototypeOf(n)?!0:n===e||n===e.all||n===e.lazily||n===e.all.lazily?!0:!1},o.prototype.resolveProperty=function(n,o,c,s){return n&&t.isPrototypeOf(n)?n.get(o,s):n===e||n===e.all||n===e.lazily||n===e.all.lazily?(r.assertNotNull(c,"name"),n(c).get(o,s)):i.valueOf(n)},o.prototype.resolveProperties=function(e,t,n,r){var o=[];if(!e)return i.valueOf(e);if(e.forEach)return e.forEach(function(e){o.push(this.resolveProperty(e,t,r))}),i.wait(o);var c=[];for(var s in e)if(e.hasOwnProperty(s)){c.push(s);var a=n?e[s][n]:e[s];o.push(this.resolveProperty(a,t,s,r))}return i.when(o).pipe(function(t){for(var r={},i=0;i<c.length;i++){var o=c[i];n?(e[o][n]=t[i],r[o]=e[o]):r[o]=t[i]}return r})},Object.seal(o.prototype),o}),define("containerjs/packaging-policy",["containerjs/utils/asserts","containerjs/utils/deferred"],function(e,t){var n={retrieve:t.defer(function(t,n,r){return e.assertNotEmpty(n,"componentName"),r=r||this.resolveModuleFor(n),e.assertNotEmpty(r,"moduleName"),t.load(r).pipe(function(e){return e&&this.findComponent(e,n)||o(n,r)}.bind(this))})},r={};r.MODULE_PER_PACKAGE=Object.freeze(Object.create(n,function(){var e=function(e){return r(e),e.substring(e.lastIndexOf(".")+1)},t=function(e){return r(e),n(e),e.substring(0,e.lastIndexOf("."))},n=function(e){var t=e.lastIndexOf(".");if(-1===t||t+1>=e.length)throw new Error("componentName does not contain a package.")},r=function(e){if(/^\\.+$/.test(e))throw new Error("invalid component name. componentName="+String(e))};return{resolveModuleFor:{value:function(e){return i(t(e))}},findComponent:{value:function(t,n){return t[e(n)]}}}}())),r.MODULE_PER_CLASS=Object.freeze(Object.create(n,{resolveModuleFor:{value:function(e){return i(e)}},findComponent:{value:function(e){return e}}})),r.SINGLE_FILE=Object.freeze(Object.create(n,{resolveModuleFor:{value:function(e){return i(e.split(".")[0])}},findComponent:{value:function(e,t){for(var n=t.split("."),r=e,i=1;i<n.length&&r;i++)r=r[n[i]];return r}}})),r.COMMON_JS_MODULE_PER_CLASS=Object.freeze(Object.create(r.MODULE_PER_CLASS,{resolveModuleFor:{value:function(e){return"./"+r.MODULE_PER_CLASS.resolveModuleFor(e)}}})),r.DEFAULT=r.MODULE_PER_CLASS;var i=function(e){return e.replace(/\./g,"/").replace(/([a-z])(?=[A-Z])/g,"$1-").toLowerCase()},o=function(e,t){throw new Error("componenet '"+e+"' is not found in module '"+t+"'.")};return Object.freeze(r)}),define("containerjs/bindings/module-binding",["containerjs/bindings/binding","containerjs/packaging-policy"],function(e,t){var n=function(e){this.module=e.module||void 0,this.packagingPolicy=e.packagingPolicy||t.DEFAULT};return n.prototype=Object.create(e.prototype),n.prototype.load=function(e){return this.packagingPolicy.retrieve(e,this.componentName(),this.module)},n.prototype.componentName=function(){},Object.seal(n.prototype),n}),define("containerjs/bindings/prototype-binding",["containerjs/bindings/binding","containerjs/bindings/module-binding","containerjs/utils/asserts","containerjs/utils/deferred"],function(e,t,n,r){var i=function(r){n.assertNotNull(r.prototype,"prototype"),e.call(this,r),t.call(this,r),this.prototype=r.prototype,this.prototypeProperties=r.prototypeProperties||void 0};return i.prototype=Object.create(t.prototype),i.prototype.getInstance=function(e,t){var n=new r,i=function(e){n.reject(e)};return this.load(e.loader).then(function(r){this.resolveProperties(this.prototypeProperties,e,"value",t).then(function(o){var c=Object.create(r,o);this.injectProperties(c,e,t).then(function(){n.resolve(c)},i).fail(i)}.bind(this),i).fail(i)}.bind(this),i).fail(i),n},i.prototype.componentName=function(){return this.prototype},i.prototype.resolvePrototypeProperties=function(e,t){var n={};for(var r in e)n[r]=this.resolve(e[r].value,t,r);return n},Object.freeze(i.prototype),i}),define("containerjs/bindings/constructor-binding",["containerjs/bindings/binding","containerjs/bindings/module-binding","containerjs/utils/asserts","containerjs/utils/deferred"],function(e,t,n,r){var i=function(r){n.assertNotNull(r.constructor,"constructor"),e.call(this,r),t.call(this,r),this.constructor=r.constructor,this.constructorArgument=r.constructorArgument||void 0};return i.prototype=Object.create(t.prototype),i.prototype.getInstance=function(e,t){var n=new r,i=function(e){n.reject(e)};return this.load(e.loader).then(function(r){this.resolveProperties(this.constructorArgument,e,null,t).then(function(o){var c=new r(o);this.injectProperties(c,e,t).then(function(){n.resolve(c)},i).fail(i)}.bind(this),i).fail(i)}.bind(this),i).fail(i),n},i.prototype.componentName=function(){return this.constructor},Object.freeze(i.prototype),i}),define("containerjs/bindings/object-binding",["containerjs/bindings/binding","containerjs/bindings/module-binding","containerjs/utils/asserts","containerjs/utils/deferred"],function(e,t,n,r){var i=function(r){n.assertNotNull(r.object,"object"),e.call(this,r),t.call(this,r),this.object=r.object};return i.prototype=Object.create(t.prototype),i.prototype.getInstance=function(e,t){var n=new r,i=function(e){n.reject(e)};return this.load(e.loader).then(function(r){this.injectProperties(r,e,t).then(function(){n.resolve(r)},i).fail(i)}.bind(this),i).fail(i),n},i.prototype.componentName=function(){return this.object},Object.freeze(i.prototype),i}),define("containerjs/bindings/instance-binding",["containerjs/bindings/binding","containerjs/utils/deferred"],function(e){var t=function(t){e.call(this,t),this.instance=t.instance};return t.prototype=Object.create(e.prototype),t.prototype.getInstance=function(e,t){return this.injectProperties(this.instance,e,t)},Object.freeze(t.prototype),t}),define("containerjs/bindings/provider-binding",["containerjs/bindings/binding","containerjs/utils/deferred","containerjs/utils/asserts"],function(e,t,n){var r=function(t){n.assertValueIsFunction(t.provider,"provider"),e.call(this,t),this.provider=t.provider};return r.prototype=Object.create(e.prototype),r.prototype.getInstance=function(e){return this.injectProperties(this.provider(e),e)},Object.freeze(r.prototype),r}),define("containerjs/bindings/binding-factory",["containerjs/bindings/prototype-binding","containerjs/bindings/constructor-binding","containerjs/bindings/object-binding","containerjs/bindings/instance-binding","containerjs/bindings/provider-binding"],function(e,t,n,r,i){var o={createPrototypeBinding:function(){},createConstructorBinding:function(){},createObjectBinding:function(){},createInstanceBinding:function(){},createPrvoiderBinding:function(){}},c=function(e){return{value:function(t){return t.id=this.serial++,Object.seal(new e(t))}}},s=Object.seal(Object.create(o,{createPrototypeBinding:c(e),createConstructorBinding:c(t),createObjectBinding:c(n),createInstanceBinding:c(r),createProviderBinding:c(i),serial:{value:0,writable:!0}}));return s}),define("containerjs/binding-builders",["containerjs/bindings/binding-factory"],function(e){var t={to:function(t){return this.reference.set(e.createConstructorBinding({name:this.reference.get().name,constructor:t,packagingPolicy:this.reference.get().packagingPolicy})),c(u,this.reference)},toPrototype:function(t,n){return this.reference.set(e.createPrototypeBinding({name:this.reference.get().name,prototype:t,prototypeProperties:n,packagingPolicy:this.reference.get().packagingPolicy})),c(a,this.reference)},asPrototype:function(t){return this.reference.set(e.createPrototypeBinding({name:this.reference.get().name,prototype:this.reference.get().name,prototypeProperties:t,packagingPolicy:this.reference.get().packagingPolicy})),c(a,this.reference)},toObject:function(t){return this.reference.set(e.createObjectBinding({name:this.reference.get().name,object:t,packagingPolicy:this.reference.get().packagingPolicy})),c(a,this.reference)},asObject:function(){return this.reference.set(e.createObjectBinding({name:this.reference.get().name,object:this.reference.get().name,packagingPolicy:this.reference.get().packagingPolicy})),c(a,this.reference)},toInstance:function(t){return this.reference.set(e.createInstanceBinding({name:this.reference.get().name,instance:t})),c(i,this.reference)},toProvider:function(t){return this.reference.set(e.createProviderBinding({name:this.reference.get().name,provider:t})),c(i,this.reference)}},n={withConstructorArgument:function(e){return this.reference.get().constructorArgument=e,c(a,this.reference)}},r={loadFrom:function(e){return this.reference.get().module=e,this},assign:function(e){return e&&(this.reference.get().packagingPolicy=e),this}},i={withProperties:function(e){return this.reference.get().injectionProperties=e,this},onInitialize:function(e){return this.reference.get().initializer=o(e),this},onDestroy:function(e){return this.reference.get().destructor=o(e),this},inScope:function(e){return this.reference.get().scope=e,this}},o=function(e){return"string"==typeof e?function(t){t[e](t)}:function(t){e.call(null,t)}},c=function(e,t){return Object.freeze(Object.create(e,{reference:{value:t}}))},s=function(){for(var e={},t=0,n=arguments.length;n>t;t++){var r=arguments[t];for(var i in r)e[i]=r[i]}return e},a=s(i,r),u=s(n,a),f=s(t,u);return Object.freeze(t),Object.freeze(n),Object.freeze(i),Object.freeze(r),Object.freeze(f),Object.freeze(u),Object.freeze(a),{RootBuilder:f}}),define("containerjs/aspect",[],function(){var e=function(e,t){this.interceptor=e,this.matcher=t,Object.freeze(this)},t=e.prototype;t.weave=function(e,t){var n=this.isEnhancedObject(t)?Object.getPrototypeOf(t):t,i={};return this.collectAndCreateEnhancedMethod(e,t,n,i)?(i[r]={value:!0},Object.create(t,i)):t},t.collectAndCreateEnhancedMethod=function(e,t,n,r){var i=this.collectFromEnumerableProperties(e,t,n,r);return this.collectFromNonEnumerableProperties(e,t,n,r)||i},t.collectFromEnumerableProperties=function(e,t,n,r){var i=!1;for(var o in n)i=this.checkAndCreateEnhancedMethod(e,t,r,o)||i;return i},t.collectFromNonEnumerableProperties=function(e,t,n,r){var i=!1;Object.getOwnPropertyNames(n).forEach(function(o){Object.getOwnPropertyDescriptor(n,o).enumerable||(i=this.checkAndCreateEnhancedMethod(e,t,r,o)||i)}.bind(this));var o=Object.getPrototypeOf(n);return o&&(i=this.collectFromNonEnumerableProperties(e,t,o,r)||i),i},t.checkAndCreateEnhancedMethod=function(e,t,r,i){if("function"!=typeof t[i]||this.matcher&&!this.matcher(e,t,i))return!1;var o=t[i];return this.isEnhancedMethod(o)?(o[n].push(this.interceptor),!1):this.isEnhancedObject(t)?(Object.defineProperty(t,i,this.createEnhancedMethod(t,i)),!1):(r[i]=this.createEnhancedMethod(t,i),!0)},t.createEnhancedMethod=function(e,t){var r=e[t],i=[this.interceptor],o=function(){var e=0,n=function(){return e<i.length?i[e++].call(null,c):r.apply(c.self,c.arguments)},o=[];o.push.apply(o,arguments);var c=Object.freeze({self:this,methodName:t,proceed:n,arguments:o,context:{}});return c.proceed()};return o[n]=i,{value:o}},t.isEnhancedMethod=function(e){return!!e[n]},t.isEnhancedObject=function(e){return!!e[r]};var n="$ContainerJS.interceptors",r="$ContainerJS.enhanced";return e}),define("containerjs/binder",["containerjs/scope","containerjs/bindings/binding-factory","containerjs/binding-builders","containerjs/packaging-policy","containerjs/aspect"],function(e,t,n,r,i){var o,c=function(e){this.bindings={},this.aspects=[],this.defaultPackagingPolicy=e||r.DEFAULT,Object.freeze(this)},s=c.prototype;return s.bind=function(e){var r=this.getBindingsFor(e),i=Object.freeze(Object.create(o,{bindings:{value:r},index:{value:r.length}}));return i.set(t.createConstructorBinding({name:e,constructor:e,packagingPolicy:this.defaultPackagingPolicy})),Object.freeze(Object.create(n.RootBuilder,{reference:{value:i}}))},s.bindInterceptor=function(e,t){this.aspects.push(new i(e,t))},s.setDefaultPackagingPolicy=function(e){return this.defaultPackagingPolicy=e,this},s.buildBindings=function(){var e,t,n;for(t in this.bindings)if(this.bindings.hasOwnProperty(t)){var r=this.bindings[t];for(e=0,n=r.length;n>e;e++)Object.freeze(r[e])}return this.bindings},s.buildAspects=function(){return this.aspects},s.getBindingsFor=function(e){return this.bindings[e]||(this.bindings[e]=[])},o={index:-1,bindings:[],set:function(e){this.bindings[this.index]=e},get:function(){return this.bindings[this.index]}},Object.freeze(c.prototype),c}),define("containerjs/container",["containerjs/loaders","containerjs/binder","containerjs/scope","containerjs/utils/deferred"],function(e,t,n,r){var i=function(t,n,r){this.bindings=null,this.aspects=null,this.creating={},this.singletonComponents={},this.chainedContainer=null,this.createRequestSerial=1,this.load(t,n),this.loader=r||e.AMD,this.onEagerSingletonConponentsInitialized=this.createEagerSingletonConponents(this),Object.seal(this)},o=i.prototype;o.get=function(){return r.lazy(c,this,arguments)};var c=function(e,t){var n=null;try{n=this.getBinding(e)}catch(i){return this.chainedContainer?this.chainedContainer.get(e):r.errorOf(i)}try{this.checkCyclicDependency(n,t)}catch(i){return r.errorOf(i)}return n.scope.retrievingStrategy(this,n,t)};o.gets=function(){return r.lazy(s,this,arguments)};var s=function(e,t){var n=null;try{n=this.getBindings(e)}catch(i){return this.chainedContainer?this.chainedContainer.gets(e):r.errorOf(i)}var o=null;try{o=n.map(function(e){return this.checkCyclicDependency(e,t),e.scope.retrievingStrategy(this,e,t)}.bind(this))}catch(i){return r.errorOf(i)}if(this.chainedContainer&&this.chainedContainer.hasBindings(e)){var c=new r,s=function(e){c.reject(e)};return r.when(o).then(function(t){this.chainedContainer.gets(e).then(function(e){c.resolve(t.concat(e))},s)}.bind(this),s),c}return r.when(o)};return o.getBinding=function(e){return this.getBindings(e)[0]},o.getBindings=function(e){if(this.hasBindings(e))return this.bindings[e];throw new Error("component is not binded. name="+e)},o.hasBindings=function(e){var t=this.bindings[e];return t&&t.length>0},o.destroy=function(){var e=function(e){e.scope.destructionStrategy(this,e)}.bind(this);for(var t in this.bindings)this.bindings[t].forEach(e),delete this.singletonComponents[t]},o.chain=function(e){this.chainedContainer=e},o.createComponent=r.defer(function(e,t){var n=this.createRequestSerial++;return this.creating[n]={id:e.id,name:e.name,parentId:t},e.getInstance(this,n).pipe(function(t){try{return this.aspects.forEach(function(n){t=n.weave(e,t)}),e.initialize(t,this),t}finally{delete this.creating[n]}}.bind(this),function(e){return delete this.creating[n],e}.bind(this))}),o.checkCyclicDependency=function(e,t){for(var n=[e.name];t;){if(n.unshift(this.creating[t].name),this.creating[t].id===e.id)throw new Error("detect cyclic dependency.\n  -> "+n.join("\n  -> "));t=this.creating[t].parentId}},o.load=function(e,n){var r=new t(n);e.call(null,r),this.bindings=r.buildBindings(),this.aspects=r.buildAspects()},o.createEagerSingletonConponents=function(){var e=function(e){return e.scope.createOnStartUp?e.scope.retrievingStrategy(this,e):null}.bind(this),t=[],n=function(e){return null!=e};for(var i in this.bindings)t=t.concat(this.bindings[i].map(e).filter(n));return r.when(t)},Object.freeze(o),i}),define("container",["containerjs/container","containerjs/scope","containerjs/inject","containerjs/packaging-policy","containerjs/loaders","containerjs/utils/deferred"],function(e,t,n,r,i,o){var c={VERSION:"1.0.5",Container:e,Scope:t,Inject:n,PackagingPolicy:r,Loaders:i,utils:Object.freeze({Deferred:o})};return Object.freeze(c),c});