diff --git a/bower.json b/bower.json index 8732eebbc9..ad1f577755 100644 --- a/bower.json +++ b/bower.json @@ -3,7 +3,7 @@ "description" : "Make your Backbone.js apps dance with a composite application architecture!", "homepage" : "http://marionettejs.org", "main" : ["./lib/backbone.marionette.js", "./lib/core/amd/backbone.marionette.js"], - "version" : "1.5.1", + "version" : "1.6.0", "keywords" : [ "backbone", diff --git a/changelog.md b/changelog.md index 7ea259bd59..11f74adb22 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,22 @@ +### v1.6.0 [view commit logs](https://github.com/marionettejs/backbone.marionette/compare/v1.5.1...v1.6.0) + * CompositeView + * add a `composite:collection:before:render` event + + * CollectionView + * `checkEmpty` can now be overridden + + * Modules + * `Modules` can now be created using the extend method, and then attached to an [Application](https://github.com/marionettejs/backbone.marionette/blob/master/docs/marionette.application.module.md#extending-modules). + + * General + * add a component.json file + * update bower.json + * add AMD build in bower.json + + * Tests + * general clean up + * add sinon.js for test spys + ### v1.5.1 [view commit logs](https://github.com/marionettejs/backbone.marionette/compare/v1.5.0...v1.5.1) * CollectionView/CompositeView * Fix bug where `show` and `onDomRefresh` was not called on `itemViews` in certain [conditions](https://github.com/marionettejs/backbone.marionette/pull/866) diff --git a/lib/backbone.marionette.js b/lib/backbone.marionette.js index abb05349fe..18bfada416 100644 --- a/lib/backbone.marionette.js +++ b/lib/backbone.marionette.js @@ -1,6 +1,6 @@ // MarionetteJS (Backbone.Marionette) // ---------------------------------- -// v1.5.1 +// v1.6.0 // // Copyright (c)2014 Derick Bailey, Muted Solutions, LLC. // Distributed under MIT license @@ -752,7 +752,6 @@ _.extend(Marionette.Controller.prototype, Backbone.Events, { Marionette.Region = function(options){ this.options = options || {}; - this.el = Marionette.getOption(this, "el"); if (!this.el){ @@ -788,7 +787,6 @@ _.extend(Marionette.Region, { // ``` // buildRegion: function(regionConfig, defaultRegionType){ - var regionIsString = (typeof regionConfig === "string"); var regionSelectorIsString = (typeof regionConfig.selector === "string"); var regionTypeIsUndefined = (typeof regionConfig.regionType === "undefined"); @@ -842,7 +840,6 @@ _.extend(Marionette.Region, { // literal to build the region, the element will not be // guaranteed to be in the DOM already, and will cause problems if (regionConfig.parentEl){ - region.getEl = function(selector) { var parentEl = regionConfig.parentEl; if (_.isFunction(parentEl)){ @@ -868,11 +865,9 @@ _.extend(Marionette.Region.prototype, Backbone.Events, { // `onShow` and `close` method on your view, just after showing // or just before closing the view, respectively. show: function(view){ - this.ensureEl(); var isViewClosed = view.isClosed || _.isUndefined(view.$el); - var isDifferentView = view !== this.currentView; if (isDifferentView) { @@ -1605,7 +1600,7 @@ Marionette.CollectionView = Marionette.View.extend({ this.closeEmptyView(); this.closeChildren(); - if (this.collection && this.collection.length > 0) { + if (!this.isEmpty(this.collection)) { this.showCollection(); } else { this.showEmptyView(); @@ -1772,11 +1767,15 @@ Marionette.CollectionView = Marionette.View.extend({ this.triggerMethod("item:removed", view); }, - // helper to show the empty view if the collection is empty - checkEmpty: function() { - // check if we're empty now, and if we are, show the - // empty view - if (!this.collection || this.collection.length === 0){ + // helper to check if the collection is empty + isEmpty: function(collection){ + // check if we're empty now + return !this.collection || this.collection.length === 0; + }, + + // If empty, show the empty view + checkEmpty: function (){ + if (this.isEmpty(this.collection)){ this.showEmptyView(); } }, @@ -1917,6 +1916,7 @@ Marionette.CompositeView = Marionette.CollectionView.extend({ _renderChildren: function(){ if (this.isRendered){ + this.triggerMethod("composite:collection:before:render"); Marionette.CollectionView.prototype._renderChildren.call(this); this.triggerMethod("composite:collection:rendered"); } @@ -2269,13 +2269,20 @@ _.extend(Marionette.Application.prototype, Backbone.Events, { // Create a module, attached to the application module: function(moduleNames, moduleDefinition){ + var ModuleClass = Marionette.Module; + + // Overwrite the module class if the user specifies one + if (moduleDefinition) { + ModuleClass = moduleDefinition.moduleClass || ModuleClass; + } + // slice the args, and add this application object as the // first argument of the array var args = slice(arguments); args.unshift(this); // see the Marionette.Module object for more information - return Marionette.Module.create.apply(Marionette.Module, args); + return ModuleClass.create.apply(ModuleClass, args); }, // Internal method to set up the region manager @@ -2300,8 +2307,10 @@ Marionette.Application.extend = Marionette.extend; // A simple module system, used to create privacy and encapsulation in // Marionette applications -Marionette.Module = function(moduleName, app){ +Marionette.Module = function(moduleName, app, options){ this.moduleName = moduleName; + this.options = _.extend({}, this.options, options); + this.initialize = options.initialize || this.initialize; // store sub-modules this.submodules = {}; @@ -2313,12 +2322,22 @@ Marionette.Module = function(moduleName, app){ this.startWithParent = true; this.triggerMethod = Marionette.triggerMethod; + + if (_.isFunction(this.initialize)){ + this.initialize(this.options); + } }; +Marionette.Module.extend = Marionette.extend; + // Extend the Module prototype with events / listenTo, so that the module // can be used as an event aggregator or pub/sub. _.extend(Marionette.Module.prototype, Backbone.Events, { + // Initialize is an empty function by default. Override it with your own + // initialization logic when extending Marionette.Module. + initialize: function(){}, + // Initializer for a specific module. Initializers are run when the // module's `start` method is called. addInitializer: function(callback){ @@ -2433,7 +2452,7 @@ _.extend(Marionette.Module, { // Loop through all the parts of the module definition _.each(moduleNames, function(moduleName, i){ var parentModule = module; - module = this._getModule(parentModule, moduleName, app); + module = this._getModule(parentModule, moduleName, app, moduleDefinition); this._addModuleDefinition(parentModule, module, moduleDefinitions[i], customArgs); }, this); @@ -2442,12 +2461,18 @@ _.extend(Marionette.Module, { }, _getModule: function(parentModule, moduleName, app, def, args){ + var ModuleClass = Marionette.Module; + var options = _.extend({}, def); + if (def) { + ModuleClass = def.moduleClass || ModuleClass; + } + // Get an existing module of this name if we have one var module = parentModule[moduleName]; if (!module){ // Create a new module if we don't have one - module = new Marionette.Module(moduleName, app); + module = new ModuleClass(moduleName, app, options); parentModule[moduleName] = module; // store the module on the parent parentModule.submodules[moduleName] = module; diff --git a/lib/backbone.marionette.map b/lib/backbone.marionette.map index 6fcc249750..34ea1a2b15 100644 --- a/lib/backbone.marionette.map +++ b/lib/backbone.marionette.map @@ -1 +1 @@ -{"version":3,"file":"lib/backbone.marionette.min.js","sources":["backbone.marionette.js"],"names":["Backbone","ChildViewContainer","_","Container","views","this","_views","_indexByModel","_indexByCustom","_updateLength","each","add","extend","prototype","view","customIndex","viewCid","cid","model","findByModel","findByModelCid","modelCid","findByCid","findByCustom","index","findByIndex","values","remove","any","key","call","method","apply","tail","arguments","args","isFunction","length","size","methods","concat","toArray","Wreqr","Marionette","Handlers","options","_wreqrHandlers","initialize","Model","Events","setHandlers","handlers","handler","name","context","isObject","callback","setHandler","config","trigger","hasHandler","getHandler","Error","Array","slice","removeHandler","removeAllHandlers","CommandStorage","_commands","getCommands","commandName","commands","command","instances","addCommand","push","clearCommands","Commands","storageType","constructor","_initializeStorage","on","_executeCommands","execute","storage","StorageType","RequestResponse","request","EventAggregator","EA","global","protoSlice","throwError","message","error","$","getOption","target","optionName","value","undefined","triggerMethod","getEventName","match","prefix","eventName","toUpperCase","splitter","event","methodName","replace","MonitorDOMRefresh","documentElement","handleShow","_isShown","triggerDOMRefresh","handleRender","_isRendered","isInDOM","contains","el","listenTo","document","bindFromStrings","entity","evt","methodNames","split","bindToFunction","unbindFromStrings","stopListening","unbindToFunction","iterateEvents","bindings","functionCallback","stringCallback","bindEntityEvents","unbindEntityEvents","Callbacks","_deferred","Deferred","_callbacks","contextOverride","cb","ctx","done","run","resolve","reset","callbacks","Controller","close","unbind","Region","err","buildRegion","regionConfig","defaultRegionType","regionIsString","regionSelectorIsString","selector","regionTypeIsUndefined","regionType","regionIsType","RegionType","region","parentEl","getEl","find","show","ensureEl","isViewClosed","isClosed","isUndefined","$el","isDifferentView","currentView","render","open","empty","append","attachView","RegionManager","_regions","addRegions","regionDefinitions","defaults","regions","definition","addRegion","isString","hasSelector","_store","get","removeRegion","_remove","removeRegions","closeRegions","_setLength","TemplateCache","templateId","templateCaches","cachedTemplate","load","clear","i","compiledTemplate","template","loadTemplate","compileTemplate","html","rawTemplate","Renderer","data","templateFunc","View","bindAll","result","events","normalizeUIKeys","onShowCalled","getTemplate","mixinTemplateHelpers","templateHelpers","hash","keys","v","ui","configureTriggers","triggers","triggerEvents","hasOptions","e","prevent","preventDefault","stop","stopPropagation","shouldPrevent","shouldStop","collection","delegateEvents","_delegateDOMEvents","combinedEvents","undelegateEvents","shouldClose","unbindUIElements","bindUIElements","_uiBindings","ItemView","serializeData","toJSON","items","CollectionView","itemViewEventPrefix","_initChildViewStorage","_initialEvents","initRenderBuffer","elBuffer","createDocumentFragment","_bufferedChildren","startBuffering","isBuffering","endBuffering","appendBuffer","_triggerShowBufferedChildren","child","addChildView","removeItemView","item","closeEmptyView","getItemView","indexOf","addItemView","children","triggerBeforeRender","triggerRendered","_renderChildren","closeChildren","showCollection","showEmptyView","EmptyView","getEmptyView","_showingEmptyView","itemView","itemViewOptions","buildItemView","addChildViewEventForwarding","renderItemView","rootEvent","itemEvents","getItemEvents","splice","appendHtml","ItemViewType","removeChildView","checkEmpty","collectionView","buffer","appendChild","CompositeView","once","isRendered","resetItemViewContainer","renderModel","compositeView","$container","getItemViewContainer","containerView","$itemViewContainer","container","itemViewContainer","Layout","_firstRender","_initializeRegions","_reInitializeRegions","regionManager","_buildRegions","that","_initRegionManager","AppRouter","Router","appRoutes","controller","_getController","processAppRoutes","appRoute","route","_addAppRoute","routeNames","reverse","bind","Application","_initCallbacks","vent","reqres","submodules","addInitializer","initializer","start","_regionManager","getRegion","module","unshift","Module","create","moduleName","app","_setupInitializersAndFinalizers","startWithParent","_initializerCallbacks","addFinalizer","_finalizerCallbacks","_isInitialized","mod","addDefinition","moduleDefinition","customArgs","_runModuleDefinition","flatten","moduleNames","moduleDefinitions","parentModule","_getModule","_addModuleDefinition","def","fn","define","startWithParentIsConfigured"],"mappings":"AAkCAA,SAASC,mBAAqB,SAAUD,EAAUE,GAKhD,GAAIC,GAAY,SAASC,GACvBC,KAAKC,UACLD,KAAKE,iBACLF,KAAKG,kBACLH,KAAKI,gBAELP,EAAEQ,KAAKN,EAAOC,KAAKM,IAAKN,MAM1BH,GAAEU,OAAOT,EAAUU,WAMjBF,IAAK,SAASG,EAAMC,GAClB,GAAI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U,IAWJ,OAVAA,GAAkBnU,EAAO,GAAK8T,EAG9BjW,EAAEQ,KAAK6V,EAAa,SAASd,EAAY5I,GACvC,GAAI4J,GAAepB,CACnBA,GAAShV,KAAKqW,WAAWD,EAAchB,EAAYC,GACnDrV,KAAKsW,qBAAqBF,EAAcpB,EAAQmB,EAAkB3J,GAAIuJ,IACrE/V,MAGIgV,GAGTqB,WAAY,SAASD,EAAchB,EAAYC,GAE7C,GAAIL,GAASoB,EAAahB,EAU1B,OARKJ,KAEHA,EAAS,GAAI1S,GAAW4S,OAAOE,EAAYC,GAC3Ce,EAAahB,GAAcJ,EAE3BoB,EAAa1B,WAAWU,GAAcJ,GAGjCA,GAGTsB,qBAAsB,SAASF,EAAcpB,EAAQuB,EAAKzU,GACxD,GAAI0U,GACAjB,CAEA1V,GAAEkC,WAAWwU,IAEfC,EAAKD,EACLhB,GAAkB,GAET1V,EAAEqD,SAASqT,IAEpBC,EAAKD,EAAIE,OACTlB,EAAkBgB,EAAIhB,iBAItBA,GAAkB,EAIhBiB,GACFxB,EAAOa,cAAcW,EAAI1U,GAK3BkT,EAAOO,gBAAkBP,EAAOO,iBAAmBA,EAG/CP,EAAOO,kBAAoBP,EAAO0B,8BAGpC1B,EAAO0B,6BAA8B,EAGrCN,EAAazB,eAAe,SAASnS,GAC/BwS,EAAOO,iBACTP,EAAOH,MAAMrS,SAWdF,GACNtC,KAAML,SAAUE"} \ No newline at end of file +{"version":3,"file":"lib/backbone.marionette.min.js","sources":["backbone.marionette.js"],"names":["Backbone","ChildViewContainer","_","Container","views","this","_views","_indexByModel","_indexByCustom","_updateLength","each","add","extend","prototype","view","customIndex","viewCid","cid","model","findByModel","findByModelCid","modelCid","findByCid","findByCustom","index","findByIndex","values","remove","any","key","call","method","apply","tail","arguments","args","isFunction","length","size","methods","concat","toArray","Wreqr","Marionette","Handlers","options","_wreqrHandlers","initialize","Model","Events","setHandlers","handlers","handler","name","context","isObject","callback","setHandler","config","trigger","hasHandler","getHandler","Error","Array","slice","removeHandler","removeAllHandlers","CommandStorage","_commands","getCommands","commandName","commands","command","instances","addCommand","push","clearCommands","Commands","storageType","constructor","_initializeStorage","on","_executeCommands","execute","storage","StorageType","RequestResponse","request","EventAggregator","EA","global","protoSlice","throwError","message","error","$","getOption","target","optionName","value","undefined","triggerMethod","getEventName","match","prefix","eventName","toUpperCase","splitter","event","methodName","replace","MonitorDOMRefresh","documentElement","handleShow","_isShown","triggerDOMRefresh","handleRender","_isRendered","isInDOM","contains","el","listenTo","document","bindFromStrings","entity","evt","methodNames","split","bindToFunction","unbindFromStrings","stopListening","unbindToFunction","iterateEvents","bindings","functionCallback","stringCallback","bindEntityEvents","unbindEntityEvents","Callbacks","_deferred","Deferred","_callbacks","contextOverride","cb","ctx","done","run","resolve","reset","callbacks","Controller","close","unbind","Region","err","buildRegion","regionConfig","defaultRegionType","regionIsString","regionSelectorIsString","selector","regionTypeIsUndefined","regionType","regionIsType","RegionType","region","parentEl","getEl","find","show","ensureEl","isViewClosed","isClosed","isUndefined","$el","isDifferentView","currentView","render","open","empty","append","attachView","RegionManager","_regions","addRegions","regionDefinitions","defaults","regions","definition","addRegion","isString","hasSelector","_store","get","removeRegion","_remove","removeRegions","closeRegions","_setLength","TemplateCache","templateId","templateCaches","cachedTemplate","load","clear","i","compiledTemplate","template","loadTemplate","compileTemplate","html","rawTemplate","Renderer","data","templateFunc","View","bindAll","result","events","normalizeUIKeys","onShowCalled","getTemplate","mixinTemplateHelpers","templateHelpers","hash","keys","v","ui","configureTriggers","triggers","triggerEvents","hasOptions","e","prevent","preventDefault","stop","stopPropagation","shouldPrevent","shouldStop","collection","delegateEvents","_delegateDOMEvents","combinedEvents","undelegateEvents","shouldClose","unbindUIElements","bindUIElements","_uiBindings","ItemView","serializeData","toJSON","items","CollectionView","itemViewEventPrefix","_initChildViewStorage","_initialEvents","initRenderBuffer","elBuffer","createDocumentFragment","_bufferedChildren","startBuffering","isBuffering","endBuffering","appendBuffer","_triggerShowBufferedChildren","child","addChildView","removeItemView","item","closeEmptyView","getItemView","indexOf","addItemView","children","triggerBeforeRender","triggerRendered","_renderChildren","closeChildren","isEmpty","showEmptyView","showCollection","EmptyView","getEmptyView","_showingEmptyView","itemView","itemViewOptions","buildItemView","addChildViewEventForwarding","renderItemView","rootEvent","itemEvents","getItemEvents","splice","appendHtml","ItemViewType","removeChildView","checkEmpty","collectionView","buffer","appendChild","CompositeView","once","isRendered","resetItemViewContainer","renderModel","compositeView","$container","getItemViewContainer","containerView","$itemViewContainer","container","itemViewContainer","Layout","_firstRender","_initializeRegions","_reInitializeRegions","regionManager","_buildRegions","that","_initRegionManager","AppRouter","Router","appRoutes","controller","_getController","processAppRoutes","appRoute","route","_addAppRoute","routeNames","reverse","bind","Application","_initCallbacks","vent","reqres","submodules","addInitializer","initializer","start","_regionManager","getRegion","module","moduleNames","moduleDefinition","ModuleClass","Module","moduleClass","unshift","create","moduleName","app","_setupInitializersAndFinalizers","startWithParent","_initializerCallbacks","addFinalizer","_finalizerCallbacks","_isInitialized","mod","addDefinition","customArgs","_runModuleDefinition","flatten","moduleDefinitions","parentModule","_getModule","_addModuleDefinition","def","fn","define","startWithParentIsConfigured"],"mappings":"AAkCAA,SAASC,mBAAqB,SAAUD,EAAUE,GAKhD,GAAIC,GAAY,SAASC,GACvBC,KAAKC,UACLD,KAAKE,iBACLF,KAAKG,kBACLH,KAAKI,gBAELP,EAAEQ,KAAKN,EAAOC,KAAKM,IAAKN,MAM1BH,GAAEU,OAAOT,EAAUU,WAMjBF,IAAK,SAASG,EAAMC,GAClB,GAAIC,GAAUF,EAAKG,GAGnBZ,MAAKC,OAAOU,GAAWF,EAGnBA,EAAKI,QACPb,KAAKE,cAAcO,EAAKI,MAAMD,KAAOD,GAInCD,IACFV,KAAKG,eAAeO,GAAeC,GAGrCX,KAAKI,iBAKPU,YAAa,SAASD,GACpB,MAAOb,MAAKe,eAAeF,EAAMD,MAMnCG,eAAgB,SAASC,GACvB,GAAIL,GAAUX,KAAKE,cAA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xS,EAAM9B,UACvBsU,GAAWpE,OAAO,EAAG,GAGrBmD,EAAcA,EAAYxN,MAAM,IAChC,IAAI1F,GAASkT,EAAYlT,OAGrBsU,IAWJ,OAVAA,GAAkBtU,EAAO,GAAKmT,EAG9BtV,EAAEQ,KAAK6U,EAAa,SAASO,EAAYjJ,GACvC,GAAI+J,GAAetB,CACnBA,GAASjV,KAAKwW,WAAWD,EAAcd,EAAYC,EAAKP,GACxDnV,KAAKyW,qBAAqBF,EAActB,EAAQqB,EAAkB9J,GAAI2J,IACrEnW,MAGIiV,GAGTuB,WAAY,SAASD,EAAcd,EAAYC,EAAKgB,GAClD,GAAItB,GAAc9S,EAAW+S,OACzB7S,EAAU3C,EAAEU,UAAWmW,EACvBA,KACFtB,EAAcsB,EAAIpB,aAAeF,EAInC,IAAIH,GAASsB,EAAad,EAU1B,OARKR,KAEHA,EAAS,GAAIG,GAAYK,EAAYC,EAAKlT,GAC1C+T,EAAad,GAAcR,EAE3BsB,EAAa5B,WAAWc,GAAcR,GAGjCA,GAGTwB,qBAAsB,SAASF,EAActB,EAAQyB,EAAK5U,GACxD,GAAI6U,GACAf,CAEA/V,GAAEkC,WAAW2U,IAEfC,EAAKD,EACLd,GAAkB,GAET/V,EAAEqD,SAASwT,IAEpBC,EAAKD,EAAIE,OACThB,EAAkBc,EAAId,iBAItBA,GAAkB,EAIhBe,GACF1B,EAAOiB,cAAcS,EAAI7U,GAK3BmT,EAAOW,gBAAkBX,EAAOW,iBAAmBA,EAG/CX,EAAOW,kBAAoBX,EAAO4B,8BAGpC5B,EAAO4B,6BAA8B,EAGrCN,EAAa3B,eAAe,SAASpS,GAC/ByS,EAAOW,iBACTX,EAAOH,MAAMtS,SAWdF,GACNtC,KAAML,SAAUE"} \ No newline at end of file diff --git a/lib/backbone.marionette.min.js b/lib/backbone.marionette.min.js index 69528d0dbc..12d0aa37e3 100644 --- a/lib/backbone.marionette.min.js +++ b/lib/backbone.marionette.min.js @@ -1,6 +1,6 @@ // MarionetteJS (Backbone.Marionette) // ---------------------------------- -// v1.5.1 +// v1.6.0 // // Copyright (c)2014 Derick Bailey, Muted Solutions, LLC. // Distributed under MIT license @@ -17,5 +17,5 @@ * https://github.com/marionettejs/backbone.wreqr/ */ -Backbone.ChildViewContainer=function(a,b){var c=function(a){this._views={},this._indexByModel={},this._indexByCustom={},this._updateLength(),b.each(a,this.add,this)};b.extend(c.prototype,{add:function(a,b){var c=a.cid;this._views[c]=a,a.model&&(this._indexByModel[a.model.cid]=c),b&&(this._indexByCustom[b]=c),this._updateLength()},findByModel:function(a){return this.findByModelCid(a.cid)},findByModelCid:function(a){var b=this._indexByModel[a];return this.findByCid(b)},findByCustom:function(a){var b=this._indexByCustom[a];return this.findByCid(b)},findByIndex:function(a){return b.values(this._views)[a]},findByCid:function(a){return this._views[a]},remove:function(a){var c=a.cid;a.model&&delete this._indexByModel[a.model.cid],b.any(this._indexByCustom,function(a,b){return a===c?(delete this._indexByCustom[b],!0):void 0},this),delete this._views[c],this._updateLength()},call:function(a){this.apply(a,b.tail(arguments))},apply:function(a,c){b.each(this._views,function(d){b.isFunction(d[a])&&d[a].apply(d,c||[])})},_updateLength:function(){this.length=b.size(this._views)}});var d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return b.each(d,function(a){c.prototype[a]=function(){var c=b.values(this._views),d=[c].concat(b.toArray(arguments));return b[a].apply(b,d)}}),c}(Backbone,_),Backbone.Wreqr=function(a,b,c){"use strict";var d={};return d.Handlers=function(a,b){var c=function(a){this.options=a,this._wreqrHandlers={},b.isFunction(this.initialize)&&this.initialize(a)};return c.extend=a.Model.extend,b.extend(c.prototype,a.Events,{setHandlers:function(a){b.each(a,function(a,c){var d=null;b.isObject(a)&&!b.isFunction(a)&&(d=a.context,a=a.callback),this.setHandler(c,a,d)},this)},setHandler:function(a,b,c){var d={callback:b,context:c};this._wreqrHandlers[a]=d,this.trigger("handler:add",a,b,c)},hasHandler:function(a){return!!this._wreqrHandlers[a]},getHandler:function(a){var b=this._wreqrHandlers[a];if(!b)throw new Error("Handler not found for '"+a+"'");return function(){var a=Array.prototype.slice.apply(arguments);return b.callback.apply(b.context,a)}},removeHandler:function(a){delete this._wreqrHandlers[a]},removeAllHandlers:function(){this._wreqrHandlers={}}}),c}(a,c),d.CommandStorage=function(){var b=function(a){this.options=a,this._commands={},c.isFunction(this.initialize)&&this.initialize(a)};return c.extend(b.prototype,a.Events,{getCommands:function(a){var b=this._commands[a];return b||(b={command:a,instances:[]},this._commands[a]=b),b},addCommand:function(a,b){var c=this.getCommands(a);c.instances.push(b)},clearCommands:function(a){var b=this.getCommands(a);b.instances=[]}}),b}(),d.Commands=function(a){return a.Handlers.extend({storageType:a.CommandStorage,constructor:function(b){this.options=b||{},this._initializeStorage(this.options),this.on("handler:add",this._executeCommands,this);var c=Array.prototype.slice.call(arguments);a.Handlers.prototype.constructor.apply(this,c)},execute:function(a,b){a=arguments[0],b=Array.prototype.slice.call(arguments,1),this.hasHandler(a)?this.getHandler(a).apply(this,b):this.storage.addCommand(a,b)},_executeCommands:function(a,b,d){var e=this.storage.getCommands(a);c.each(e.instances,function(a){b.apply(d,a)}),this.storage.clearCommands(a)},_initializeStorage:function(a){var b,d=a.storageType||this.storageType;b=c.isFunction(d)?new d:d,this.storage=b}})}(d),d.RequestResponse=function(a){return a.Handlers.extend({request:function(){var a=arguments[0],b=Array.prototype.slice.call(arguments,1);return this.getHandler(a).apply(this,b)}})}(d),d.EventAggregator=function(a,b){var c=function(){};return c.extend=a.Model.extend,b.extend(c.prototype,a.Events),c}(a,c),d}(Backbone,Backbone.Marionette,_);var Marionette=function(a,b,c){"use strict";function d(a){return g.call(a)}function e(a,b){var c=new Error(a);throw c.name=b||"Error",c}var f={};b.Marionette=f,f.$=b.$;var g=Array.prototype.slice;return f.extend=b.Model.extend,f.getOption=function(a,b){if(a&&b){var c;return c=a.options&&b in a.options&&void 0!==a.options[b]?a.options[b]:a[b]}},f.triggerMethod=function(){function a(a,b,c){return c.toUpperCase()}var b=/(^|:)(\w)/gi,d=function(d){var e="on"+d.replace(b,a),f=this[e];return c.isFunction(this.trigger)&&this.trigger.apply(this,arguments),c.isFunction(f)?f.apply(this,c.tail(arguments)):void 0};return d}(),f.MonitorDOMRefresh=function(a){function b(a){a._isShown=!0,e(a)}function d(a){a._isRendered=!0,e(a)}function e(a){a._isShown&&a._isRendered&&f(a)&&c.isFunction(a.triggerMethod)&&a.triggerMethod("dom:refresh")}function f(b){return a.contains(b.el)}return function(a){a.listenTo(a,"show",function(){b(a)}),a.listenTo(a,"render",function(){d(a)})}}(document.documentElement),function(a){function b(a,b,d,f){var g=f.split(/\s+/);c.each(g,function(c){var f=a[c];f||e("Method '"+c+"' was configured as an event handler, but does not exist."),a.listenTo(b,d,f,a)})}function d(a,b,c,d){a.listenTo(b,c,d,a)}function f(a,b,d,e){var f=e.split(/\s+/);c.each(f,function(c){var e=a[c];a.stopListening(b,d,e,a)})}function g(a,b,c,d){a.stopListening(b,c,d,a)}function h(a,b,d,e,f){b&&d&&(c.isFunction(d)&&(d=d.call(a)),c.each(d,function(d,g){c.isFunction(d)?e(a,b,g,d):f(a,b,g,d)}))}a.bindEntityEvents=function(a,c,e){h(a,c,e,d,b)},a.unbindEntityEvents=function(a,b,c){h(a,b,c,g,f)}}(f),f.Callbacks=function(){this._deferred=f.$.Deferred(),this._callbacks=[]},c.extend(f.Callbacks.prototype,{add:function(a,b){this._callbacks.push({cb:a,ctx:b}),this._deferred.done(function(c,d){b&&(c=b),a.call(c,d)})},run:function(a,b){this._deferred.resolve(b,a)},reset:function(){var a=this._callbacks;this._deferred=f.$.Deferred(),this._callbacks=[],c.each(a,function(a){this.add(a.cb,a.ctx)},this)}}),f.Controller=function(a){this.triggerMethod=f.triggerMethod,this.options=a||{},c.isFunction(this.initialize)&&this.initialize(this.options)},f.Controller.extend=f.extend,c.extend(f.Controller.prototype,b.Events,{close:function(){this.stopListening(),this.triggerMethod("close"),this.unbind()}}),f.Region=function(a){if(this.options=a||{},this.el=f.getOption(this,"el"),!this.el){var b=new Error("An 'el' must be specified for a region.");throw b.name="NoElError",b}if(this.initialize){var c=Array.prototype.slice.apply(arguments);this.initialize.apply(this,c)}},c.extend(f.Region,{buildRegion:function(a,b){var d="string"==typeof a,e="string"==typeof a.selector,f="undefined"==typeof a.regionType,g="function"==typeof a;if(!g&&!d&&!e)throw new Error("Region must be specified as a Region type, a selector string or an object with selector property");var h,i;d&&(h=a),a.selector&&(h=a.selector,delete a.selector),g&&(i=a),!g&&f&&(i=b),a.regionType&&(i=a.regionType,delete a.regionType),(d||g)&&(a={}),a.el=h;var j=new i(a);return a.parentEl&&(j.getEl=function(b){var d=a.parentEl;return c.isFunction(d)&&(d=d()),d.find(b)}),j}}),c.extend(f.Region.prototype,b.Events,{show:function(a){this.ensureEl();var b=a.isClosed||c.isUndefined(a.$el),d=a!==this.currentView;d&&this.close(),a.render(),(d||b)&&this.open(a),this.currentView=a,f.triggerMethod.call(this,"show",a),f.triggerMethod.call(a,"show")},ensureEl:function(){this.$el&&0!==this.$el.length||(this.$el=this.getEl(this.el))},getEl:function(a){return f.$(a)},open:function(a){this.$el.empty().append(a.el)},close:function(){var a=this.currentView;a&&!a.isClosed&&(a.close?a.close():a.remove&&a.remove(),f.triggerMethod.call(this,"close",a),delete this.currentView)},attachView:function(a){this.currentView=a},reset:function(){this.close(),delete this.$el}}),f.Region.extend=f.extend,f.RegionManager=function(a){var b=a.Controller.extend({constructor:function(b){this._regions={},a.Controller.prototype.constructor.call(this,b)},addRegions:function(a,b){var d={};return c.each(a,function(a,e){"string"==typeof a&&(a={selector:a}),a.selector&&(a=c.defaults({},a,b));var f=this.addRegion(e,a);d[e]=f},this),d},addRegion:function(b,d){var e,f=c.isObject(d),g=c.isString(d),h=!!d.selector;return e=g||f&&h?a.Region.buildRegion(d,a.Region):c.isFunction(d)?a.Region.buildRegion(d,a.Region):d,this._store(b,e),this.triggerMethod("region:add",b,e),e},get:function(a){return this._regions[a]},removeRegion:function(a){var b=this._regions[a];this._remove(a,b)},removeRegions:function(){c.each(this._regions,function(a,b){this._remove(b,a)},this)},closeRegions:function(){c.each(this._regions,function(a){a.close()},this)},close:function(){this.removeRegions();var b=Array.prototype.slice.call(arguments);a.Controller.prototype.close.apply(this,b)},_store:function(a,b){this._regions[a]=b,this._setLength()},_remove:function(a,b){b.close(),delete this._regions[a],this._setLength(),this.triggerMethod("region:remove",a,b)},_setLength:function(){this.length=c.size(this._regions)}}),d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return c.each(d,function(a){b.prototype[a]=function(){var b=c.values(this._regions),d=[b].concat(c.toArray(arguments));return c[a].apply(c,d)}}),b}(f),f.TemplateCache=function(a){this.templateId=a},c.extend(f.TemplateCache,{templateCaches:{},get:function(a){var b=this.templateCaches[a];return b||(b=new f.TemplateCache(a),this.templateCaches[a]=b),b.load()},clear:function(){var a,b=d(arguments),c=b.length;if(c>0)for(a=0;c>a;a++)delete this.templateCaches[b[a]];else this.templateCaches={}}}),c.extend(f.TemplateCache.prototype,{load:function(){if(this.compiledTemplate)return this.compiledTemplate;var a=this.loadTemplate(this.templateId);return this.compiledTemplate=this.compileTemplate(a),this.compiledTemplate},loadTemplate:function(a){var b=f.$(a).html();return b&&0!==b.length||e("Could not find template: '"+a+"'","NoTemplateError"),b},compileTemplate:function(a){return c.template(a)}}),f.Renderer={render:function(a,b){if(!a){var c=new Error("Cannot render the template since it's false, null or undefined.");throw c.name="TemplateNotFoundError",c}var d;return d="function"==typeof a?a:f.TemplateCache.get(a),d(b)}},f.View=b.View.extend({constructor:function(a){c.bindAll(this,"render");var d=Array.prototype.slice.apply(arguments);this.options=c.extend({},c.result(this,"options"),c.isFunction(a)?a.call(this):a),this.events=this.normalizeUIKeys(c.result(this,"events")),b.View.prototype.constructor.apply(this,d),f.MonitorDOMRefresh(this),this.listenTo(this,"show",this.onShowCalled,this)},triggerMethod:f.triggerMethod,getTemplate:function(){return f.getOption(this,"template")},mixinTemplateHelpers:function(a){a=a||{};var b=f.getOption(this,"templateHelpers");return c.isFunction(b)&&(b=b.call(this)),c.extend(a,b)},normalizeUIKeys:function(a){return"undefined"!=typeof a?(c.each(c.keys(a),function(b){var c=b.split("@ui.");2===c.length&&(a[c[0]+this.ui[c[1]]]=a[b],delete a[b])},this),a):void 0},configureTriggers:function(){if(this.triggers){var a={},b=this.normalizeUIKeys(c.result(this,"triggers"));return c.each(b,function(b,d){var e=c.isObject(b),f=e?b.event:b;a[d]=function(a){if(a){var c=a.preventDefault,d=a.stopPropagation,g=e?b.preventDefault:c,h=e?b.stopPropagation:d;g&&c&&c.apply(a),h&&d&&d.apply(a)}var i={view:this,model:this.model,collection:this.collection};this.triggerMethod(f,i)}},this),a}},delegateEvents:function(a){this._delegateDOMEvents(a),f.bindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.bindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},_delegateDOMEvents:function(a){a=a||this.events,c.isFunction(a)&&(a=a.call(this));var d={},e=this.configureTriggers();c.extend(d,a,e),b.View.prototype.delegateEvents.call(this,d)},undelegateEvents:function(){var a=Array.prototype.slice.call(arguments);b.View.prototype.undelegateEvents.apply(this,a),f.unbindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.unbindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},onShowCalled:function(){},close:function(){if(!this.isClosed){var a=this.triggerMethod("before:close");a!==!1&&(this.isClosed=!0,this.triggerMethod("close"),this.unbindUIElements(),this.remove())}},bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var a=c.result(this,"_uiBindings");this.ui={},c.each(c.keys(a),function(b){var c=a[b];this.ui[b]=this.$(c)},this)}},unbindUIElements:function(){this.ui&&this._uiBindings&&(c.each(this.ui,function(a,b){delete this.ui[b]},this),this.ui=this._uiBindings,delete this._uiBindings)}}),f.ItemView=f.View.extend({constructor:function(){f.View.prototype.constructor.apply(this,d(arguments))},serializeData:function(){var a={};return this.model?a=this.model.toJSON():this.collection&&(a={items:this.collection.toJSON()}),a},render:function(){this.isClosed=!1,this.triggerMethod("before:render",this),this.triggerMethod("item:before:render",this);var a=this.serializeData();a=this.mixinTemplateHelpers(a);var b=this.getTemplate(),c=f.Renderer.render(b,a);return this.$el.html(c),this.bindUIElements(),this.triggerMethod("render",this),this.triggerMethod("item:rendered",this),this},close:function(){this.isClosed||(this.triggerMethod("item:before:close"),f.View.prototype.close.apply(this,d(arguments)),this.triggerMethod("item:closed"))}}),f.CollectionView=f.View.extend({itemViewEventPrefix:"itemview",constructor:function(){this._initChildViewStorage(),f.View.prototype.constructor.apply(this,d(arguments)),this._initialEvents(),this.initRenderBuffer()},initRenderBuffer:function(){this.elBuffer=document.createDocumentFragment(),this._bufferedChildren=[]},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){this.isBuffering=!1,this.appendBuffer(this,this.elBuffer),this._triggerShowBufferedChildren(),this.initRenderBuffer()},_triggerShowBufferedChildren:function(){this._isShown&&(c.each(this._bufferedChildren,function(a){f.triggerMethod.call(a,"show")}),this._bufferedChildren=[])},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this.render,this))},addChildView:function(a){this.closeEmptyView();var b=this.getItemView(a),c=this.collection.indexOf(a);this.addItemView(a,b,c)},onShowCalled:function(){this.children.each(function(a){f.triggerMethod.call(a,"show")})},triggerBeforeRender:function(){this.triggerMethod("before:render",this),this.triggerMethod("collection:before:render",this)},triggerRendered:function(){this.triggerMethod("render",this),this.triggerMethod("collection:rendered",this)},render:function(){return this.isClosed=!1,this.triggerBeforeRender(),this._renderChildren(),this.triggerRendered(),this},_renderChildren:function(){this.startBuffering(),this.closeEmptyView(),this.closeChildren(),this.collection&&this.collection.length>0?this.showCollection():this.showEmptyView(),this.endBuffering()},showCollection:function(){var a;this.collection.each(function(b,c){a=this.getItemView(b),this.addItemView(b,a,c)},this)},showEmptyView:function(){var a=this.getEmptyView();if(a&&!this._showingEmptyView){this._showingEmptyView=!0;var c=new b.Model;this.addItemView(c,a,0)}},closeEmptyView:function(){this._showingEmptyView&&(this.closeChildren(),delete this._showingEmptyView)},getEmptyView:function(){return f.getOption(this,"emptyView")},getItemView:function(){var a=f.getOption(this,"itemView");return a||e("An `itemView` must be specified","NoItemViewError"),a},addItemView:function(a,b,d){var e=f.getOption(this,"itemViewOptions");c.isFunction(e)&&(e=e.call(this,a,d));var g=this.buildItemView(a,b,e);return this.addChildViewEventForwarding(g),this.triggerMethod("before:item:added",g),this.children.add(g),this.renderItemView(g,d),this._isShown&&!this.isBuffering&&f.triggerMethod.call(g,"show"),this.triggerMethod("after:item:added",g),g},addChildViewEventForwarding:function(a){var b=f.getOption(this,"itemViewEventPrefix");this.listenTo(a,"all",function(){var e=d(arguments),g=e[0],h=this.getItemEvents();e[0]=b+":"+g,e.splice(1,0,a),"undefined"!=typeof h&&c.isFunction(h[g])&&h[g].apply(this,e),f.triggerMethod.apply(this,e)},this)},getItemEvents:function(){return c.isFunction(this.itemEvents)?this.itemEvents.call(this):this.itemEvents},renderItemView:function(a,b){a.render(),this.appendHtml(this,a,b)},buildItemView:function(a,b,d){var e=c.extend({model:a},d);return new b(e)},removeItemView:function(a){var b=this.children.findByModel(a);this.removeChildView(b),this.checkEmpty()},removeChildView:function(a){a&&(this.stopListening(a),a.close?a.close():a.remove&&a.remove(),this.children.remove(a)),this.triggerMethod("item:removed",a)},checkEmpty:function(){this.collection&&0!==this.collection.length||this.showEmptyView()},appendBuffer:function(a,b){a.$el.append(b)},appendHtml:function(a,b){a.isBuffering?(a.elBuffer.appendChild(b.el),a._bufferedChildren.push(b)):a.$el.append(b.el)},_initChildViewStorage:function(){this.children=new b.ChildViewContainer},close:function(){this.isClosed||(this.triggerMethod("collection:before:close"),this.closeChildren(),this.triggerMethod("collection:closed"),f.View.prototype.close.apply(this,d(arguments)))},closeChildren:function(){this.children.each(function(a){this.removeChildView(a)},this),this.checkEmpty()}}),f.CompositeView=f.CollectionView.extend({constructor:function(){f.CollectionView.prototype.constructor.apply(this,d(arguments))},_initialEvents:function(){this.once("render",function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this._renderChildren,this))})},getItemView:function(){var a=f.getOption(this,"itemView")||this.constructor;return a||e("An `itemView` must be specified","NoItemViewError"),a},serializeData:function(){var a={};return this.model&&(a=this.model.toJSON()),a},render:function(){this.isRendered=!0,this.isClosed=!1,this.resetItemViewContainer(),this.triggerBeforeRender();var a=this.renderModel();return this.$el.html(a),this.bindUIElements(),this.triggerMethod("composite:model:rendered"),this._renderChildren(),this.triggerMethod("composite:rendered"),this.triggerRendered(),this},_renderChildren:function(){this.isRendered&&(f.CollectionView.prototype._renderChildren.call(this),this.triggerMethod("composite:collection:rendered"))},renderModel:function(){var a={};a=this.serializeData(),a=this.mixinTemplateHelpers(a);var b=this.getTemplate();return f.Renderer.render(b,a)},appendBuffer:function(a,b){var c=this.getItemViewContainer(a);c.append(b)},appendHtml:function(a,b){if(a.isBuffering)a.elBuffer.appendChild(b.el),a._bufferedChildren.push(b);else{var c=this.getItemViewContainer(a);c.append(b.el)}},getItemViewContainer:function(a){if("$itemViewContainer"in a)return a.$itemViewContainer;var b,d=f.getOption(a,"itemViewContainer");if(d){var g=c.isFunction(d)?d.call(this):d;b=a.$(g),b.length<=0&&e("The specified `itemViewContainer` was not found: "+a.itemViewContainer,"ItemViewContainerMissingError")}else b=a.$el;return a.$itemViewContainer=b,b},resetItemViewContainer:function(){this.$itemViewContainer&&delete this.$itemViewContainer}}),f.Layout=f.ItemView.extend({regionType:f.Region,constructor:function(a){a=a||{},this._firstRender=!0,this._initializeRegions(a),f.ItemView.prototype.constructor.call(this,a)},render:function(){this.isClosed&&this._initializeRegions(),this._firstRender?this._firstRender=!1:this.isClosed||this._reInitializeRegions();var a=Array.prototype.slice.apply(arguments),b=f.ItemView.prototype.render.apply(this,a);return b},close:function(){if(!this.isClosed){this.regionManager.close();var a=Array.prototype.slice.apply(arguments);f.ItemView.prototype.close.apply(this,a)}},addRegion:function(a,b){var c={};return c[a]=b,this._buildRegions(c)[a]},addRegions:function(a){return this.regions=c.extend({},this.regions,a),this._buildRegions(a)},removeRegion:function(a){return delete this.regions[a],this.regionManager.removeRegion(a)},_buildRegions:function(a){var b=this,c={regionType:f.getOption(this,"regionType"),parentEl:function(){return b.$el}};return this.regionManager.addRegions(a,c)},_initializeRegions:function(a){var b;this._initRegionManager(),b=c.isFunction(this.regions)?this.regions(a):this.regions||{},this.addRegions(b)},_reInitializeRegions:function(){this.regionManager.closeRegions(),this.regionManager.each(function(a){a.reset()})},_initRegionManager:function(){this.regionManager=new f.RegionManager,this.listenTo(this.regionManager,"region:add",function(a,b){this[a]=b,this.trigger("region:add",a,b)}),this.listenTo(this.regionManager,"region:remove",function(a,b){delete this[a],this.trigger("region:remove",a,b)})}}),f.AppRouter=b.Router.extend({constructor:function(a){b.Router.prototype.constructor.apply(this,d(arguments)),this.options=a||{};var c=f.getOption(this,"appRoutes"),e=this._getController();this.processAppRoutes(e,c)},appRoute:function(a,b){var c=this._getController();this._addAppRoute(c,a,b)},processAppRoutes:function(a,b){if(b){var d=c.keys(b).reverse();c.each(d,function(c){this._addAppRoute(a,c,b[c])},this)}},_getController:function(){return f.getOption(this,"controller")},_addAppRoute:function(a,b,d){var e=a[d];if(!e)throw new Error("Method '"+d+"' was not found on the controller");this.route(b,d,c.bind(e,a))}}),f.Application=function(a){this._initRegionManager(),this._initCallbacks=new f.Callbacks,this.vent=new b.Wreqr.EventAggregator,this.commands=new b.Wreqr.Commands,this.reqres=new b.Wreqr.RequestResponse,this.submodules={},c.extend(this,a),this.triggerMethod=f.triggerMethod},c.extend(f.Application.prototype,b.Events,{execute:function(){var a=Array.prototype.slice.apply(arguments);this.commands.execute.apply(this.commands,a)},request:function(){var a=Array.prototype.slice.apply(arguments);return this.reqres.request.apply(this.reqres,a)},addInitializer:function(a){this._initCallbacks.add(a)},start:function(a){this.triggerMethod("initialize:before",a),this._initCallbacks.run(a,this),this.triggerMethod("initialize:after",a),this.triggerMethod("start",a)},addRegions:function(a){return this._regionManager.addRegions(a)},closeRegions:function(){this._regionManager.closeRegions()},removeRegion:function(a){this._regionManager.removeRegion(a)},getRegion:function(a){return this._regionManager.get(a)},module:function(){var a=d(arguments);return a.unshift(this),f.Module.create.apply(f.Module,a)},_initRegionManager:function(){this._regionManager=new f.RegionManager,this.listenTo(this._regionManager,"region:add",function(a,b){this[a]=b}),this.listenTo(this._regionManager,"region:remove",function(a){delete this[a]})}}),f.Application.extend=f.extend,f.Module=function(a,b){this.moduleName=a,this.submodules={},this._setupInitializersAndFinalizers(),this.app=b,this.startWithParent=!0,this.triggerMethod=f.triggerMethod},c.extend(f.Module.prototype,b.Events,{addInitializer:function(a){this._initializerCallbacks.add(a)},addFinalizer:function(a){this._finalizerCallbacks.add(a)},start:function(a){this._isInitialized||(c.each(this.submodules,function(b){b.startWithParent&&b.start(a)}),this.triggerMethod("before:start",a),this._initializerCallbacks.run(a,this),this._isInitialized=!0,this.triggerMethod("start",a))},stop:function(){this._isInitialized&&(this._isInitialized=!1,f.triggerMethod.call(this,"before:stop"),c.each(this.submodules,function(a){a.stop()}),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),f.triggerMethod.call(this,"stop"))},addDefinition:function(a,b){this._runModuleDefinition(a,b)},_runModuleDefinition:function(a,d){if(a){var e=c.flatten([this,this.app,b,f,f.$,c,d]);a.apply(this,e)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new f.Callbacks,this._finalizerCallbacks=new f.Callbacks}}),c.extend(f.Module,{create:function(a,b,e){var f=a,g=d(arguments);g.splice(0,3),b=b.split(".");var h=b.length,i=[];return i[h-1]=e,c.each(b,function(b,c){var d=f;f=this._getModule(d,b,a),this._addModuleDefinition(d,f,i[c],g)},this),f},_getModule:function(a,b,c){var d=a[b];return d||(d=new f.Module(b,c),a[b]=d,a.submodules[b]=d),d},_addModuleDefinition:function(a,b,d,e){var f,g;c.isFunction(d)?(f=d,g=!0):c.isObject(d)?(f=d.define,g=d.startWithParent):g=!0,f&&b.addDefinition(f,e),b.startWithParent=b.startWithParent&&g,b.startWithParent&&!b.startWithParentIsConfigured&&(b.startWithParentIsConfigured=!0,a.addInitializer(function(a){b.startWithParent&&b.start(a)}))}}),f}(this,Backbone,_); +Backbone.ChildViewContainer=function(a,b){var c=function(a){this._views={},this._indexByModel={},this._indexByCustom={},this._updateLength(),b.each(a,this.add,this)};b.extend(c.prototype,{add:function(a,b){var c=a.cid;this._views[c]=a,a.model&&(this._indexByModel[a.model.cid]=c),b&&(this._indexByCustom[b]=c),this._updateLength()},findByModel:function(a){return this.findByModelCid(a.cid)},findByModelCid:function(a){var b=this._indexByModel[a];return this.findByCid(b)},findByCustom:function(a){var b=this._indexByCustom[a];return this.findByCid(b)},findByIndex:function(a){return b.values(this._views)[a]},findByCid:function(a){return this._views[a]},remove:function(a){var c=a.cid;a.model&&delete this._indexByModel[a.model.cid],b.any(this._indexByCustom,function(a,b){return a===c?(delete this._indexByCustom[b],!0):void 0},this),delete this._views[c],this._updateLength()},call:function(a){this.apply(a,b.tail(arguments))},apply:function(a,c){b.each(this._views,function(d){b.isFunction(d[a])&&d[a].apply(d,c||[])})},_updateLength:function(){this.length=b.size(this._views)}});var d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return b.each(d,function(a){c.prototype[a]=function(){var c=b.values(this._views),d=[c].concat(b.toArray(arguments));return b[a].apply(b,d)}}),c}(Backbone,_),Backbone.Wreqr=function(a,b,c){"use strict";var d={};return d.Handlers=function(a,b){var c=function(a){this.options=a,this._wreqrHandlers={},b.isFunction(this.initialize)&&this.initialize(a)};return c.extend=a.Model.extend,b.extend(c.prototype,a.Events,{setHandlers:function(a){b.each(a,function(a,c){var d=null;b.isObject(a)&&!b.isFunction(a)&&(d=a.context,a=a.callback),this.setHandler(c,a,d)},this)},setHandler:function(a,b,c){var d={callback:b,context:c};this._wreqrHandlers[a]=d,this.trigger("handler:add",a,b,c)},hasHandler:function(a){return!!this._wreqrHandlers[a]},getHandler:function(a){var b=this._wreqrHandlers[a];if(!b)throw new Error("Handler not found for '"+a+"'");return function(){var a=Array.prototype.slice.apply(arguments);return b.callback.apply(b.context,a)}},removeHandler:function(a){delete this._wreqrHandlers[a]},removeAllHandlers:function(){this._wreqrHandlers={}}}),c}(a,c),d.CommandStorage=function(){var b=function(a){this.options=a,this._commands={},c.isFunction(this.initialize)&&this.initialize(a)};return c.extend(b.prototype,a.Events,{getCommands:function(a){var b=this._commands[a];return b||(b={command:a,instances:[]},this._commands[a]=b),b},addCommand:function(a,b){var c=this.getCommands(a);c.instances.push(b)},clearCommands:function(a){var b=this.getCommands(a);b.instances=[]}}),b}(),d.Commands=function(a){return a.Handlers.extend({storageType:a.CommandStorage,constructor:function(b){this.options=b||{},this._initializeStorage(this.options),this.on("handler:add",this._executeCommands,this);var c=Array.prototype.slice.call(arguments);a.Handlers.prototype.constructor.apply(this,c)},execute:function(a,b){a=arguments[0],b=Array.prototype.slice.call(arguments,1),this.hasHandler(a)?this.getHandler(a).apply(this,b):this.storage.addCommand(a,b)},_executeCommands:function(a,b,d){var e=this.storage.getCommands(a);c.each(e.instances,function(a){b.apply(d,a)}),this.storage.clearCommands(a)},_initializeStorage:function(a){var b,d=a.storageType||this.storageType;b=c.isFunction(d)?new d:d,this.storage=b}})}(d),d.RequestResponse=function(a){return a.Handlers.extend({request:function(){var a=arguments[0],b=Array.prototype.slice.call(arguments,1);return this.getHandler(a).apply(this,b)}})}(d),d.EventAggregator=function(a,b){var c=function(){};return c.extend=a.Model.extend,b.extend(c.prototype,a.Events),c}(a,c),d}(Backbone,Backbone.Marionette,_);var Marionette=function(a,b,c){"use strict";function d(a){return g.call(a)}function e(a,b){var c=new Error(a);throw c.name=b||"Error",c}var f={};b.Marionette=f,f.$=b.$;var g=Array.prototype.slice;return f.extend=b.Model.extend,f.getOption=function(a,b){if(a&&b){var c;return c=a.options&&b in a.options&&void 0!==a.options[b]?a.options[b]:a[b]}},f.triggerMethod=function(){function a(a,b,c){return c.toUpperCase()}var b=/(^|:)(\w)/gi,d=function(d){var e="on"+d.replace(b,a),f=this[e];return c.isFunction(this.trigger)&&this.trigger.apply(this,arguments),c.isFunction(f)?f.apply(this,c.tail(arguments)):void 0};return d}(),f.MonitorDOMRefresh=function(a){function b(a){a._isShown=!0,e(a)}function d(a){a._isRendered=!0,e(a)}function e(a){a._isShown&&a._isRendered&&f(a)&&c.isFunction(a.triggerMethod)&&a.triggerMethod("dom:refresh")}function f(b){return a.contains(b.el)}return function(a){a.listenTo(a,"show",function(){b(a)}),a.listenTo(a,"render",function(){d(a)})}}(document.documentElement),function(a){function b(a,b,d,f){var g=f.split(/\s+/);c.each(g,function(c){var f=a[c];f||e("Method '"+c+"' was configured as an event handler, but does not exist."),a.listenTo(b,d,f,a)})}function d(a,b,c,d){a.listenTo(b,c,d,a)}function f(a,b,d,e){var f=e.split(/\s+/);c.each(f,function(c){var e=a[c];a.stopListening(b,d,e,a)})}function g(a,b,c,d){a.stopListening(b,c,d,a)}function h(a,b,d,e,f){b&&d&&(c.isFunction(d)&&(d=d.call(a)),c.each(d,function(d,g){c.isFunction(d)?e(a,b,g,d):f(a,b,g,d)}))}a.bindEntityEvents=function(a,c,e){h(a,c,e,d,b)},a.unbindEntityEvents=function(a,b,c){h(a,b,c,g,f)}}(f),f.Callbacks=function(){this._deferred=f.$.Deferred(),this._callbacks=[]},c.extend(f.Callbacks.prototype,{add:function(a,b){this._callbacks.push({cb:a,ctx:b}),this._deferred.done(function(c,d){b&&(c=b),a.call(c,d)})},run:function(a,b){this._deferred.resolve(b,a)},reset:function(){var a=this._callbacks;this._deferred=f.$.Deferred(),this._callbacks=[],c.each(a,function(a){this.add(a.cb,a.ctx)},this)}}),f.Controller=function(a){this.triggerMethod=f.triggerMethod,this.options=a||{},c.isFunction(this.initialize)&&this.initialize(this.options)},f.Controller.extend=f.extend,c.extend(f.Controller.prototype,b.Events,{close:function(){this.stopListening(),this.triggerMethod("close"),this.unbind()}}),f.Region=function(a){if(this.options=a||{},this.el=f.getOption(this,"el"),!this.el){var b=new Error("An 'el' must be specified for a region.");throw b.name="NoElError",b}if(this.initialize){var c=Array.prototype.slice.apply(arguments);this.initialize.apply(this,c)}},c.extend(f.Region,{buildRegion:function(a,b){var d="string"==typeof a,e="string"==typeof a.selector,f="undefined"==typeof a.regionType,g="function"==typeof a;if(!g&&!d&&!e)throw new Error("Region must be specified as a Region type, a selector string or an object with selector property");var h,i;d&&(h=a),a.selector&&(h=a.selector,delete a.selector),g&&(i=a),!g&&f&&(i=b),a.regionType&&(i=a.regionType,delete a.regionType),(d||g)&&(a={}),a.el=h;var j=new i(a);return a.parentEl&&(j.getEl=function(b){var d=a.parentEl;return c.isFunction(d)&&(d=d()),d.find(b)}),j}}),c.extend(f.Region.prototype,b.Events,{show:function(a){this.ensureEl();var b=a.isClosed||c.isUndefined(a.$el),d=a!==this.currentView;d&&this.close(),a.render(),(d||b)&&this.open(a),this.currentView=a,f.triggerMethod.call(this,"show",a),f.triggerMethod.call(a,"show")},ensureEl:function(){this.$el&&0!==this.$el.length||(this.$el=this.getEl(this.el))},getEl:function(a){return f.$(a)},open:function(a){this.$el.empty().append(a.el)},close:function(){var a=this.currentView;a&&!a.isClosed&&(a.close?a.close():a.remove&&a.remove(),f.triggerMethod.call(this,"close",a),delete this.currentView)},attachView:function(a){this.currentView=a},reset:function(){this.close(),delete this.$el}}),f.Region.extend=f.extend,f.RegionManager=function(a){var b=a.Controller.extend({constructor:function(b){this._regions={},a.Controller.prototype.constructor.call(this,b)},addRegions:function(a,b){var d={};return c.each(a,function(a,e){"string"==typeof a&&(a={selector:a}),a.selector&&(a=c.defaults({},a,b));var f=this.addRegion(e,a);d[e]=f},this),d},addRegion:function(b,d){var e,f=c.isObject(d),g=c.isString(d),h=!!d.selector;return e=g||f&&h?a.Region.buildRegion(d,a.Region):c.isFunction(d)?a.Region.buildRegion(d,a.Region):d,this._store(b,e),this.triggerMethod("region:add",b,e),e},get:function(a){return this._regions[a]},removeRegion:function(a){var b=this._regions[a];this._remove(a,b)},removeRegions:function(){c.each(this._regions,function(a,b){this._remove(b,a)},this)},closeRegions:function(){c.each(this._regions,function(a){a.close()},this)},close:function(){this.removeRegions();var b=Array.prototype.slice.call(arguments);a.Controller.prototype.close.apply(this,b)},_store:function(a,b){this._regions[a]=b,this._setLength()},_remove:function(a,b){b.close(),delete this._regions[a],this._setLength(),this.triggerMethod("region:remove",a,b)},_setLength:function(){this.length=c.size(this._regions)}}),d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return c.each(d,function(a){b.prototype[a]=function(){var b=c.values(this._regions),d=[b].concat(c.toArray(arguments));return c[a].apply(c,d)}}),b}(f),f.TemplateCache=function(a){this.templateId=a},c.extend(f.TemplateCache,{templateCaches:{},get:function(a){var b=this.templateCaches[a];return b||(b=new f.TemplateCache(a),this.templateCaches[a]=b),b.load()},clear:function(){var a,b=d(arguments),c=b.length;if(c>0)for(a=0;c>a;a++)delete this.templateCaches[b[a]];else this.templateCaches={}}}),c.extend(f.TemplateCache.prototype,{load:function(){if(this.compiledTemplate)return this.compiledTemplate;var a=this.loadTemplate(this.templateId);return this.compiledTemplate=this.compileTemplate(a),this.compiledTemplate},loadTemplate:function(a){var b=f.$(a).html();return b&&0!==b.length||e("Could not find template: '"+a+"'","NoTemplateError"),b},compileTemplate:function(a){return c.template(a)}}),f.Renderer={render:function(a,b){if(!a){var c=new Error("Cannot render the template since it's false, null or undefined.");throw c.name="TemplateNotFoundError",c}var d;return d="function"==typeof a?a:f.TemplateCache.get(a),d(b)}},f.View=b.View.extend({constructor:function(a){c.bindAll(this,"render");var d=Array.prototype.slice.apply(arguments);this.options=c.extend({},c.result(this,"options"),c.isFunction(a)?a.call(this):a),this.events=this.normalizeUIKeys(c.result(this,"events")),b.View.prototype.constructor.apply(this,d),f.MonitorDOMRefresh(this),this.listenTo(this,"show",this.onShowCalled,this)},triggerMethod:f.triggerMethod,getTemplate:function(){return f.getOption(this,"template")},mixinTemplateHelpers:function(a){a=a||{};var b=f.getOption(this,"templateHelpers");return c.isFunction(b)&&(b=b.call(this)),c.extend(a,b)},normalizeUIKeys:function(a){return"undefined"!=typeof a?(c.each(c.keys(a),function(b){var c=b.split("@ui.");2===c.length&&(a[c[0]+this.ui[c[1]]]=a[b],delete a[b])},this),a):void 0},configureTriggers:function(){if(this.triggers){var a={},b=this.normalizeUIKeys(c.result(this,"triggers"));return c.each(b,function(b,d){var e=c.isObject(b),f=e?b.event:b;a[d]=function(a){if(a){var c=a.preventDefault,d=a.stopPropagation,g=e?b.preventDefault:c,h=e?b.stopPropagation:d;g&&c&&c.apply(a),h&&d&&d.apply(a)}var i={view:this,model:this.model,collection:this.collection};this.triggerMethod(f,i)}},this),a}},delegateEvents:function(a){this._delegateDOMEvents(a),f.bindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.bindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},_delegateDOMEvents:function(a){a=a||this.events,c.isFunction(a)&&(a=a.call(this));var d={},e=this.configureTriggers();c.extend(d,a,e),b.View.prototype.delegateEvents.call(this,d)},undelegateEvents:function(){var a=Array.prototype.slice.call(arguments);b.View.prototype.undelegateEvents.apply(this,a),f.unbindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.unbindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},onShowCalled:function(){},close:function(){if(!this.isClosed){var a=this.triggerMethod("before:close");a!==!1&&(this.isClosed=!0,this.triggerMethod("close"),this.unbindUIElements(),this.remove())}},bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var a=c.result(this,"_uiBindings");this.ui={},c.each(c.keys(a),function(b){var c=a[b];this.ui[b]=this.$(c)},this)}},unbindUIElements:function(){this.ui&&this._uiBindings&&(c.each(this.ui,function(a,b){delete this.ui[b]},this),this.ui=this._uiBindings,delete this._uiBindings)}}),f.ItemView=f.View.extend({constructor:function(){f.View.prototype.constructor.apply(this,d(arguments))},serializeData:function(){var a={};return this.model?a=this.model.toJSON():this.collection&&(a={items:this.collection.toJSON()}),a},render:function(){this.isClosed=!1,this.triggerMethod("before:render",this),this.triggerMethod("item:before:render",this);var a=this.serializeData();a=this.mixinTemplateHelpers(a);var b=this.getTemplate(),c=f.Renderer.render(b,a);return this.$el.html(c),this.bindUIElements(),this.triggerMethod("render",this),this.triggerMethod("item:rendered",this),this},close:function(){this.isClosed||(this.triggerMethod("item:before:close"),f.View.prototype.close.apply(this,d(arguments)),this.triggerMethod("item:closed"))}}),f.CollectionView=f.View.extend({itemViewEventPrefix:"itemview",constructor:function(){this._initChildViewStorage(),f.View.prototype.constructor.apply(this,d(arguments)),this._initialEvents(),this.initRenderBuffer()},initRenderBuffer:function(){this.elBuffer=document.createDocumentFragment(),this._bufferedChildren=[]},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){this.isBuffering=!1,this.appendBuffer(this,this.elBuffer),this._triggerShowBufferedChildren(),this.initRenderBuffer()},_triggerShowBufferedChildren:function(){this._isShown&&(c.each(this._bufferedChildren,function(a){f.triggerMethod.call(a,"show")}),this._bufferedChildren=[])},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this.render,this))},addChildView:function(a){this.closeEmptyView();var b=this.getItemView(a),c=this.collection.indexOf(a);this.addItemView(a,b,c)},onShowCalled:function(){this.children.each(function(a){f.triggerMethod.call(a,"show")})},triggerBeforeRender:function(){this.triggerMethod("before:render",this),this.triggerMethod("collection:before:render",this)},triggerRendered:function(){this.triggerMethod("render",this),this.triggerMethod("collection:rendered",this)},render:function(){return this.isClosed=!1,this.triggerBeforeRender(),this._renderChildren(),this.triggerRendered(),this},_renderChildren:function(){this.startBuffering(),this.closeEmptyView(),this.closeChildren(),this.isEmpty(this.collection)?this.showEmptyView():this.showCollection(),this.endBuffering()},showCollection:function(){var a;this.collection.each(function(b,c){a=this.getItemView(b),this.addItemView(b,a,c)},this)},showEmptyView:function(){var a=this.getEmptyView();if(a&&!this._showingEmptyView){this._showingEmptyView=!0;var c=new b.Model;this.addItemView(c,a,0)}},closeEmptyView:function(){this._showingEmptyView&&(this.closeChildren(),delete this._showingEmptyView)},getEmptyView:function(){return f.getOption(this,"emptyView")},getItemView:function(){var a=f.getOption(this,"itemView");return a||e("An `itemView` must be specified","NoItemViewError"),a},addItemView:function(a,b,d){var e=f.getOption(this,"itemViewOptions");c.isFunction(e)&&(e=e.call(this,a,d));var g=this.buildItemView(a,b,e);return this.addChildViewEventForwarding(g),this.triggerMethod("before:item:added",g),this.children.add(g),this.renderItemView(g,d),this._isShown&&!this.isBuffering&&f.triggerMethod.call(g,"show"),this.triggerMethod("after:item:added",g),g},addChildViewEventForwarding:function(a){var b=f.getOption(this,"itemViewEventPrefix");this.listenTo(a,"all",function(){var e=d(arguments),g=e[0],h=this.getItemEvents();e[0]=b+":"+g,e.splice(1,0,a),"undefined"!=typeof h&&c.isFunction(h[g])&&h[g].apply(this,e),f.triggerMethod.apply(this,e)},this)},getItemEvents:function(){return c.isFunction(this.itemEvents)?this.itemEvents.call(this):this.itemEvents},renderItemView:function(a,b){a.render(),this.appendHtml(this,a,b)},buildItemView:function(a,b,d){var e=c.extend({model:a},d);return new b(e)},removeItemView:function(a){var b=this.children.findByModel(a);this.removeChildView(b),this.checkEmpty()},removeChildView:function(a){a&&(this.stopListening(a),a.close?a.close():a.remove&&a.remove(),this.children.remove(a)),this.triggerMethod("item:removed",a)},isEmpty:function(){return!this.collection||0===this.collection.length},checkEmpty:function(){this.isEmpty(this.collection)&&this.showEmptyView()},appendBuffer:function(a,b){a.$el.append(b)},appendHtml:function(a,b){a.isBuffering?(a.elBuffer.appendChild(b.el),a._bufferedChildren.push(b)):a.$el.append(b.el)},_initChildViewStorage:function(){this.children=new b.ChildViewContainer},close:function(){this.isClosed||(this.triggerMethod("collection:before:close"),this.closeChildren(),this.triggerMethod("collection:closed"),f.View.prototype.close.apply(this,d(arguments)))},closeChildren:function(){this.children.each(function(a){this.removeChildView(a)},this),this.checkEmpty()}}),f.CompositeView=f.CollectionView.extend({constructor:function(){f.CollectionView.prototype.constructor.apply(this,d(arguments))},_initialEvents:function(){this.once("render",function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this._renderChildren,this))})},getItemView:function(){var a=f.getOption(this,"itemView")||this.constructor;return a||e("An `itemView` must be specified","NoItemViewError"),a},serializeData:function(){var a={};return this.model&&(a=this.model.toJSON()),a},render:function(){this.isRendered=!0,this.isClosed=!1,this.resetItemViewContainer(),this.triggerBeforeRender();var a=this.renderModel();return this.$el.html(a),this.bindUIElements(),this.triggerMethod("composite:model:rendered"),this._renderChildren(),this.triggerMethod("composite:rendered"),this.triggerRendered(),this},_renderChildren:function(){this.isRendered&&(this.triggerMethod("composite:collection:before:render"),f.CollectionView.prototype._renderChildren.call(this),this.triggerMethod("composite:collection:rendered"))},renderModel:function(){var a={};a=this.serializeData(),a=this.mixinTemplateHelpers(a);var b=this.getTemplate();return f.Renderer.render(b,a)},appendBuffer:function(a,b){var c=this.getItemViewContainer(a);c.append(b)},appendHtml:function(a,b){if(a.isBuffering)a.elBuffer.appendChild(b.el),a._bufferedChildren.push(b);else{var c=this.getItemViewContainer(a);c.append(b.el)}},getItemViewContainer:function(a){if("$itemViewContainer"in a)return a.$itemViewContainer;var b,d=f.getOption(a,"itemViewContainer");if(d){var g=c.isFunction(d)?d.call(this):d;b=a.$(g),b.length<=0&&e("The specified `itemViewContainer` was not found: "+a.itemViewContainer,"ItemViewContainerMissingError")}else b=a.$el;return a.$itemViewContainer=b,b},resetItemViewContainer:function(){this.$itemViewContainer&&delete this.$itemViewContainer}}),f.Layout=f.ItemView.extend({regionType:f.Region,constructor:function(a){a=a||{},this._firstRender=!0,this._initializeRegions(a),f.ItemView.prototype.constructor.call(this,a)},render:function(){this.isClosed&&this._initializeRegions(),this._firstRender?this._firstRender=!1:this.isClosed||this._reInitializeRegions();var a=Array.prototype.slice.apply(arguments),b=f.ItemView.prototype.render.apply(this,a);return b},close:function(){if(!this.isClosed){this.regionManager.close();var a=Array.prototype.slice.apply(arguments);f.ItemView.prototype.close.apply(this,a)}},addRegion:function(a,b){var c={};return c[a]=b,this._buildRegions(c)[a]},addRegions:function(a){return this.regions=c.extend({},this.regions,a),this._buildRegions(a)},removeRegion:function(a){return delete this.regions[a],this.regionManager.removeRegion(a)},_buildRegions:function(a){var b=this,c={regionType:f.getOption(this,"regionType"),parentEl:function(){return b.$el}};return this.regionManager.addRegions(a,c)},_initializeRegions:function(a){var b;this._initRegionManager(),b=c.isFunction(this.regions)?this.regions(a):this.regions||{},this.addRegions(b)},_reInitializeRegions:function(){this.regionManager.closeRegions(),this.regionManager.each(function(a){a.reset()})},_initRegionManager:function(){this.regionManager=new f.RegionManager,this.listenTo(this.regionManager,"region:add",function(a,b){this[a]=b,this.trigger("region:add",a,b)}),this.listenTo(this.regionManager,"region:remove",function(a,b){delete this[a],this.trigger("region:remove",a,b)})}}),f.AppRouter=b.Router.extend({constructor:function(a){b.Router.prototype.constructor.apply(this,d(arguments)),this.options=a||{};var c=f.getOption(this,"appRoutes"),e=this._getController();this.processAppRoutes(e,c)},appRoute:function(a,b){var c=this._getController();this._addAppRoute(c,a,b)},processAppRoutes:function(a,b){if(b){var d=c.keys(b).reverse();c.each(d,function(c){this._addAppRoute(a,c,b[c])},this)}},_getController:function(){return f.getOption(this,"controller")},_addAppRoute:function(a,b,d){var e=a[d];if(!e)throw new Error("Method '"+d+"' was not found on the controller");this.route(b,d,c.bind(e,a))}}),f.Application=function(a){this._initRegionManager(),this._initCallbacks=new f.Callbacks,this.vent=new b.Wreqr.EventAggregator,this.commands=new b.Wreqr.Commands,this.reqres=new b.Wreqr.RequestResponse,this.submodules={},c.extend(this,a),this.triggerMethod=f.triggerMethod},c.extend(f.Application.prototype,b.Events,{execute:function(){var a=Array.prototype.slice.apply(arguments);this.commands.execute.apply(this.commands,a)},request:function(){var a=Array.prototype.slice.apply(arguments);return this.reqres.request.apply(this.reqres,a)},addInitializer:function(a){this._initCallbacks.add(a)},start:function(a){this.triggerMethod("initialize:before",a),this._initCallbacks.run(a,this),this.triggerMethod("initialize:after",a),this.triggerMethod("start",a)},addRegions:function(a){return this._regionManager.addRegions(a)},closeRegions:function(){this._regionManager.closeRegions()},removeRegion:function(a){this._regionManager.removeRegion(a)},getRegion:function(a){return this._regionManager.get(a)},module:function(a,b){var c=f.Module;b&&(c=b.moduleClass||c);var e=d(arguments);return e.unshift(this),c.create.apply(c,e)},_initRegionManager:function(){this._regionManager=new f.RegionManager,this.listenTo(this._regionManager,"region:add",function(a,b){this[a]=b}),this.listenTo(this._regionManager,"region:remove",function(a){delete this[a]})}}),f.Application.extend=f.extend,f.Module=function(a,b,d){this.moduleName=a,this.options=c.extend({},this.options,d),this.initialize=d.initialize||this.initialize,this.submodules={},this._setupInitializersAndFinalizers(),this.app=b,this.startWithParent=!0,this.triggerMethod=f.triggerMethod,c.isFunction(this.initialize)&&this.initialize(this.options)},f.Module.extend=f.extend,c.extend(f.Module.prototype,b.Events,{initialize:function(){},addInitializer:function(a){this._initializerCallbacks.add(a)},addFinalizer:function(a){this._finalizerCallbacks.add(a)},start:function(a){this._isInitialized||(c.each(this.submodules,function(b){b.startWithParent&&b.start(a)}),this.triggerMethod("before:start",a),this._initializerCallbacks.run(a,this),this._isInitialized=!0,this.triggerMethod("start",a))},stop:function(){this._isInitialized&&(this._isInitialized=!1,f.triggerMethod.call(this,"before:stop"),c.each(this.submodules,function(a){a.stop()}),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),f.triggerMethod.call(this,"stop"))},addDefinition:function(a,b){this._runModuleDefinition(a,b)},_runModuleDefinition:function(a,d){if(a){var e=c.flatten([this,this.app,b,f,f.$,c,d]);a.apply(this,e)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new f.Callbacks,this._finalizerCallbacks=new f.Callbacks}}),c.extend(f.Module,{create:function(a,b,e){var f=a,g=d(arguments);g.splice(0,3),b=b.split(".");var h=b.length,i=[];return i[h-1]=e,c.each(b,function(b,c){var d=f;f=this._getModule(d,b,a,e),this._addModuleDefinition(d,f,i[c],g)},this),f},_getModule:function(a,b,d,e){var g=f.Module,h=c.extend({},e);e&&(g=e.moduleClass||g);var i=a[b];return i||(i=new g(b,d,h),a[b]=i,a.submodules[b]=i),i},_addModuleDefinition:function(a,b,d,e){var f,g;c.isFunction(d)?(f=d,g=!0):c.isObject(d)?(f=d.define,g=d.startWithParent):g=!0,f&&b.addDefinition(f,e),b.startWithParent=b.startWithParent&&g,b.startWithParent&&!b.startWithParentIsConfigured&&(b.startWithParentIsConfigured=!0,a.addInitializer(function(a){b.startWithParent&&b.start(a)}))}}),f}(this,Backbone,_); //# sourceMappingURL=backbone.marionette.map \ No newline at end of file diff --git a/lib/core/amd/backbone.marionette.js b/lib/core/amd/backbone.marionette.js index b0a86c52ef..217581f2b1 100644 --- a/lib/core/amd/backbone.marionette.js +++ b/lib/core/amd/backbone.marionette.js @@ -1,6 +1,6 @@ // MarionetteJS (Backbone.Marionette) // ---------------------------------- -// v1.5.1 +// v1.6.0 // // Copyright (c)2014 Derick Bailey, Muted Solutions, LLC. // Distributed under MIT license @@ -344,7 +344,6 @@ _.extend(Marionette.Controller.prototype, Backbone.Events, { Marionette.Region = function(options){ this.options = options || {}; - this.el = Marionette.getOption(this, "el"); if (!this.el){ @@ -380,7 +379,6 @@ _.extend(Marionette.Region, { // ``` // buildRegion: function(regionConfig, defaultRegionType){ - var regionIsString = (typeof regionConfig === "string"); var regionSelectorIsString = (typeof regionConfig.selector === "string"); var regionTypeIsUndefined = (typeof regionConfig.regionType === "undefined"); @@ -434,7 +432,6 @@ _.extend(Marionette.Region, { // literal to build the region, the element will not be // guaranteed to be in the DOM already, and will cause problems if (regionConfig.parentEl){ - region.getEl = function(selector) { var parentEl = regionConfig.parentEl; if (_.isFunction(parentEl)){ @@ -460,11 +457,9 @@ _.extend(Marionette.Region.prototype, Backbone.Events, { // `onShow` and `close` method on your view, just after showing // or just before closing the view, respectively. show: function(view){ - this.ensureEl(); var isViewClosed = view.isClosed || _.isUndefined(view.$el); - var isDifferentView = view !== this.currentView; if (isDifferentView) { @@ -1197,7 +1192,7 @@ Marionette.CollectionView = Marionette.View.extend({ this.closeEmptyView(); this.closeChildren(); - if (this.collection && this.collection.length > 0) { + if (!this.isEmpty(this.collection)) { this.showCollection(); } else { this.showEmptyView(); @@ -1364,11 +1359,15 @@ Marionette.CollectionView = Marionette.View.extend({ this.triggerMethod("item:removed", view); }, - // helper to show the empty view if the collection is empty - checkEmpty: function() { - // check if we're empty now, and if we are, show the - // empty view - if (!this.collection || this.collection.length === 0){ + // helper to check if the collection is empty + isEmpty: function(collection){ + // check if we're empty now + return !this.collection || this.collection.length === 0; + }, + + // If empty, show the empty view + checkEmpty: function (){ + if (this.isEmpty(this.collection)){ this.showEmptyView(); } }, @@ -1509,6 +1508,7 @@ Marionette.CompositeView = Marionette.CollectionView.extend({ _renderChildren: function(){ if (this.isRendered){ + this.triggerMethod("composite:collection:before:render"); Marionette.CollectionView.prototype._renderChildren.call(this); this.triggerMethod("composite:collection:rendered"); } @@ -1861,13 +1861,20 @@ _.extend(Marionette.Application.prototype, Backbone.Events, { // Create a module, attached to the application module: function(moduleNames, moduleDefinition){ + var ModuleClass = Marionette.Module; + + // Overwrite the module class if the user specifies one + if (moduleDefinition) { + ModuleClass = moduleDefinition.moduleClass || ModuleClass; + } + // slice the args, and add this application object as the // first argument of the array var args = slice(arguments); args.unshift(this); // see the Marionette.Module object for more information - return Marionette.Module.create.apply(Marionette.Module, args); + return ModuleClass.create.apply(ModuleClass, args); }, // Internal method to set up the region manager @@ -1892,8 +1899,10 @@ Marionette.Application.extend = Marionette.extend; // A simple module system, used to create privacy and encapsulation in // Marionette applications -Marionette.Module = function(moduleName, app){ +Marionette.Module = function(moduleName, app, options){ this.moduleName = moduleName; + this.options = _.extend({}, this.options, options); + this.initialize = options.initialize || this.initialize; // store sub-modules this.submodules = {}; @@ -1905,12 +1914,22 @@ Marionette.Module = function(moduleName, app){ this.startWithParent = true; this.triggerMethod = Marionette.triggerMethod; + + if (_.isFunction(this.initialize)){ + this.initialize(this.options); + } }; +Marionette.Module.extend = Marionette.extend; + // Extend the Module prototype with events / listenTo, so that the module // can be used as an event aggregator or pub/sub. _.extend(Marionette.Module.prototype, Backbone.Events, { + // Initialize is an empty function by default. Override it with your own + // initialization logic when extending Marionette.Module. + initialize: function(){}, + // Initializer for a specific module. Initializers are run when the // module's `start` method is called. addInitializer: function(callback){ @@ -2025,7 +2044,7 @@ _.extend(Marionette.Module, { // Loop through all the parts of the module definition _.each(moduleNames, function(moduleName, i){ var parentModule = module; - module = this._getModule(parentModule, moduleName, app); + module = this._getModule(parentModule, moduleName, app, moduleDefinition); this._addModuleDefinition(parentModule, module, moduleDefinitions[i], customArgs); }, this); @@ -2034,12 +2053,18 @@ _.extend(Marionette.Module, { }, _getModule: function(parentModule, moduleName, app, def, args){ + var ModuleClass = Marionette.Module; + var options = _.extend({}, def); + if (def) { + ModuleClass = def.moduleClass || ModuleClass; + } + // Get an existing module of this name if we have one var module = parentModule[moduleName]; if (!module){ // Create a new module if we don't have one - module = new Marionette.Module(moduleName, app); + module = new ModuleClass(moduleName, app, options); parentModule[moduleName] = module; // store the module on the parent parentModule.submodules[moduleName] = module; diff --git a/lib/core/amd/backbone.marionette.min.js b/lib/core/amd/backbone.marionette.min.js index f458ad61b2..46420084ce 100644 --- a/lib/core/amd/backbone.marionette.min.js +++ b/lib/core/amd/backbone.marionette.min.js @@ -1,6 +1,6 @@ // MarionetteJS (Backbone.Marionette) // ---------------------------------- -// v1.5.1 +// v1.6.0 // // Copyright (c)2014 Derick Bailey, Muted Solutions, LLC. // Distributed under MIT license @@ -17,4 +17,4 @@ * https://github.com/marionettejs/backbone.wreqr/ */ -!function(a,b){if("object"==typeof exports){var c=require("underscore"),d=require("backbone"),e=require("backbone.wreqr"),f=require("backbone.babysitter");module.exports=b(c,d,e,f)}else"function"==typeof define&&define.amd&&define(["underscore","backbone","backbone.wreqr","backbone.babysitter"],b)}(this,function(a,b){return!function(a,b,c){"use strict";function d(a){return g.call(a)}function e(a,b){var c=new Error(a);throw c.name=b||"Error",c}var f={};b.Marionette=f,f.$=b.$;var g=Array.prototype.slice;return f.extend=b.Model.extend,f.getOption=function(a,b){if(a&&b){var c;return c=a.options&&b in a.options&&void 0!==a.options[b]?a.options[b]:a[b]}},f.triggerMethod=function(){function a(a,b,c){return c.toUpperCase()}var b=/(^|:)(\w)/gi,d=function(d){var e="on"+d.replace(b,a),f=this[e];return c.isFunction(this.trigger)&&this.trigger.apply(this,arguments),c.isFunction(f)?f.apply(this,c.tail(arguments)):void 0};return d}(),f.MonitorDOMRefresh=function(a){function b(a){a._isShown=!0,e(a)}function d(a){a._isRendered=!0,e(a)}function e(a){a._isShown&&a._isRendered&&f(a)&&c.isFunction(a.triggerMethod)&&a.triggerMethod("dom:refresh")}function f(b){return a.contains(b.el)}return function(a){a.listenTo(a,"show",function(){b(a)}),a.listenTo(a,"render",function(){d(a)})}}(document.documentElement),function(a){function b(a,b,d,f){var g=f.split(/\s+/);c.each(g,function(c){var f=a[c];f||e("Method '"+c+"' was configured as an event handler, but does not exist."),a.listenTo(b,d,f,a)})}function d(a,b,c,d){a.listenTo(b,c,d,a)}function f(a,b,d,e){var f=e.split(/\s+/);c.each(f,function(c){var e=a[c];a.stopListening(b,d,e,a)})}function g(a,b,c,d){a.stopListening(b,c,d,a)}function h(a,b,d,e,f){b&&d&&(c.isFunction(d)&&(d=d.call(a)),c.each(d,function(d,g){c.isFunction(d)?e(a,b,g,d):f(a,b,g,d)}))}a.bindEntityEvents=function(a,c,e){h(a,c,e,d,b)},a.unbindEntityEvents=function(a,b,c){h(a,b,c,g,f)}}(f),f.Callbacks=function(){this._deferred=f.$.Deferred(),this._callbacks=[]},c.extend(f.Callbacks.prototype,{add:function(a,b){this._callbacks.push({cb:a,ctx:b}),this._deferred.done(function(c,d){b&&(c=b),a.call(c,d)})},run:function(a,b){this._deferred.resolve(b,a)},reset:function(){var a=this._callbacks;this._deferred=f.$.Deferred(),this._callbacks=[],c.each(a,function(a){this.add(a.cb,a.ctx)},this)}}),f.Controller=function(a){this.triggerMethod=f.triggerMethod,this.options=a||{},c.isFunction(this.initialize)&&this.initialize(this.options)},f.Controller.extend=f.extend,c.extend(f.Controller.prototype,b.Events,{close:function(){this.stopListening(),this.triggerMethod("close"),this.unbind()}}),f.Region=function(a){if(this.options=a||{},this.el=f.getOption(this,"el"),!this.el){var b=new Error("An 'el' must be specified for a region.");throw b.name="NoElError",b}if(this.initialize){var c=Array.prototype.slice.apply(arguments);this.initialize.apply(this,c)}},c.extend(f.Region,{buildRegion:function(a,b){var d="string"==typeof a,e="string"==typeof a.selector,f="undefined"==typeof a.regionType,g="function"==typeof a;if(!g&&!d&&!e)throw new Error("Region must be specified as a Region type, a selector string or an object with selector property");var h,i;d&&(h=a),a.selector&&(h=a.selector,delete a.selector),g&&(i=a),!g&&f&&(i=b),a.regionType&&(i=a.regionType,delete a.regionType),(d||g)&&(a={}),a.el=h;var j=new i(a);return a.parentEl&&(j.getEl=function(b){var d=a.parentEl;return c.isFunction(d)&&(d=d()),d.find(b)}),j}}),c.extend(f.Region.prototype,b.Events,{show:function(a){this.ensureEl();var b=a.isClosed||c.isUndefined(a.$el),d=a!==this.currentView;d&&this.close(),a.render(),(d||b)&&this.open(a),this.currentView=a,f.triggerMethod.call(this,"show",a),f.triggerMethod.call(a,"show")},ensureEl:function(){this.$el&&0!==this.$el.length||(this.$el=this.getEl(this.el))},getEl:function(a){return f.$(a)},open:function(a){this.$el.empty().append(a.el)},close:function(){var a=this.currentView;a&&!a.isClosed&&(a.close?a.close():a.remove&&a.remove(),f.triggerMethod.call(this,"close",a),delete this.currentView)},attachView:function(a){this.currentView=a},reset:function(){this.close(),delete this.$el}}),f.Region.extend=f.extend,f.RegionManager=function(a){var b=a.Controller.extend({constructor:function(b){this._regions={},a.Controller.prototype.constructor.call(this,b)},addRegions:function(a,b){var d={};return c.each(a,function(a,e){"string"==typeof a&&(a={selector:a}),a.selector&&(a=c.defaults({},a,b));var f=this.addRegion(e,a);d[e]=f},this),d},addRegion:function(b,d){var e,f=c.isObject(d),g=c.isString(d),h=!!d.selector;return e=g||f&&h?a.Region.buildRegion(d,a.Region):c.isFunction(d)?a.Region.buildRegion(d,a.Region):d,this._store(b,e),this.triggerMethod("region:add",b,e),e},get:function(a){return this._regions[a]},removeRegion:function(a){var b=this._regions[a];this._remove(a,b)},removeRegions:function(){c.each(this._regions,function(a,b){this._remove(b,a)},this)},closeRegions:function(){c.each(this._regions,function(a){a.close()},this)},close:function(){this.removeRegions();var b=Array.prototype.slice.call(arguments);a.Controller.prototype.close.apply(this,b)},_store:function(a,b){this._regions[a]=b,this._setLength()},_remove:function(a,b){b.close(),delete this._regions[a],this._setLength(),this.triggerMethod("region:remove",a,b)},_setLength:function(){this.length=c.size(this._regions)}}),d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return c.each(d,function(a){b.prototype[a]=function(){var b=c.values(this._regions),d=[b].concat(c.toArray(arguments));return c[a].apply(c,d)}}),b}(f),f.TemplateCache=function(a){this.templateId=a},c.extend(f.TemplateCache,{templateCaches:{},get:function(a){var b=this.templateCaches[a];return b||(b=new f.TemplateCache(a),this.templateCaches[a]=b),b.load()},clear:function(){var a,b=d(arguments),c=b.length;if(c>0)for(a=0;c>a;a++)delete this.templateCaches[b[a]];else this.templateCaches={}}}),c.extend(f.TemplateCache.prototype,{load:function(){if(this.compiledTemplate)return this.compiledTemplate;var a=this.loadTemplate(this.templateId);return this.compiledTemplate=this.compileTemplate(a),this.compiledTemplate},loadTemplate:function(a){var b=f.$(a).html();return b&&0!==b.length||e("Could not find template: '"+a+"'","NoTemplateError"),b},compileTemplate:function(a){return c.template(a)}}),f.Renderer={render:function(a,b){if(!a){var c=new Error("Cannot render the template since it's false, null or undefined.");throw c.name="TemplateNotFoundError",c}var d;return d="function"==typeof a?a:f.TemplateCache.get(a),d(b)}},f.View=b.View.extend({constructor:function(a){c.bindAll(this,"render");var d=Array.prototype.slice.apply(arguments);this.options=c.extend({},c.result(this,"options"),c.isFunction(a)?a.call(this):a),this.events=this.normalizeUIKeys(c.result(this,"events")),b.View.prototype.constructor.apply(this,d),f.MonitorDOMRefresh(this),this.listenTo(this,"show",this.onShowCalled,this)},triggerMethod:f.triggerMethod,getTemplate:function(){return f.getOption(this,"template")},mixinTemplateHelpers:function(a){a=a||{};var b=f.getOption(this,"templateHelpers");return c.isFunction(b)&&(b=b.call(this)),c.extend(a,b)},normalizeUIKeys:function(a){return"undefined"!=typeof a?(c.each(c.keys(a),function(b){var c=b.split("@ui.");2===c.length&&(a[c[0]+this.ui[c[1]]]=a[b],delete a[b])},this),a):void 0},configureTriggers:function(){if(this.triggers){var a={},b=this.normalizeUIKeys(c.result(this,"triggers"));return c.each(b,function(b,d){var e=c.isObject(b),f=e?b.event:b;a[d]=function(a){if(a){var c=a.preventDefault,d=a.stopPropagation,g=e?b.preventDefault:c,h=e?b.stopPropagation:d;g&&c&&c.apply(a),h&&d&&d.apply(a)}var i={view:this,model:this.model,collection:this.collection};this.triggerMethod(f,i)}},this),a}},delegateEvents:function(a){this._delegateDOMEvents(a),f.bindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.bindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},_delegateDOMEvents:function(a){a=a||this.events,c.isFunction(a)&&(a=a.call(this));var d={},e=this.configureTriggers();c.extend(d,a,e),b.View.prototype.delegateEvents.call(this,d)},undelegateEvents:function(){var a=Array.prototype.slice.call(arguments);b.View.prototype.undelegateEvents.apply(this,a),f.unbindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.unbindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},onShowCalled:function(){},close:function(){if(!this.isClosed){var a=this.triggerMethod("before:close");a!==!1&&(this.isClosed=!0,this.triggerMethod("close"),this.unbindUIElements(),this.remove())}},bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var a=c.result(this,"_uiBindings");this.ui={},c.each(c.keys(a),function(b){var c=a[b];this.ui[b]=this.$(c)},this)}},unbindUIElements:function(){this.ui&&this._uiBindings&&(c.each(this.ui,function(a,b){delete this.ui[b]},this),this.ui=this._uiBindings,delete this._uiBindings)}}),f.ItemView=f.View.extend({constructor:function(){f.View.prototype.constructor.apply(this,d(arguments))},serializeData:function(){var a={};return this.model?a=this.model.toJSON():this.collection&&(a={items:this.collection.toJSON()}),a},render:function(){this.isClosed=!1,this.triggerMethod("before:render",this),this.triggerMethod("item:before:render",this);var a=this.serializeData();a=this.mixinTemplateHelpers(a);var b=this.getTemplate(),c=f.Renderer.render(b,a);return this.$el.html(c),this.bindUIElements(),this.triggerMethod("render",this),this.triggerMethod("item:rendered",this),this},close:function(){this.isClosed||(this.triggerMethod("item:before:close"),f.View.prototype.close.apply(this,d(arguments)),this.triggerMethod("item:closed"))}}),f.CollectionView=f.View.extend({itemViewEventPrefix:"itemview",constructor:function(){this._initChildViewStorage(),f.View.prototype.constructor.apply(this,d(arguments)),this._initialEvents(),this.initRenderBuffer()},initRenderBuffer:function(){this.elBuffer=document.createDocumentFragment(),this._bufferedChildren=[]},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){this.isBuffering=!1,this.appendBuffer(this,this.elBuffer),this._triggerShowBufferedChildren(),this.initRenderBuffer()},_triggerShowBufferedChildren:function(){this._isShown&&(c.each(this._bufferedChildren,function(a){f.triggerMethod.call(a,"show")}),this._bufferedChildren=[])},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this.render,this))},addChildView:function(a){this.closeEmptyView();var b=this.getItemView(a),c=this.collection.indexOf(a);this.addItemView(a,b,c)},onShowCalled:function(){this.children.each(function(a){f.triggerMethod.call(a,"show")})},triggerBeforeRender:function(){this.triggerMethod("before:render",this),this.triggerMethod("collection:before:render",this)},triggerRendered:function(){this.triggerMethod("render",this),this.triggerMethod("collection:rendered",this)},render:function(){return this.isClosed=!1,this.triggerBeforeRender(),this._renderChildren(),this.triggerRendered(),this},_renderChildren:function(){this.startBuffering(),this.closeEmptyView(),this.closeChildren(),this.collection&&this.collection.length>0?this.showCollection():this.showEmptyView(),this.endBuffering()},showCollection:function(){var a;this.collection.each(function(b,c){a=this.getItemView(b),this.addItemView(b,a,c)},this)},showEmptyView:function(){var a=this.getEmptyView();if(a&&!this._showingEmptyView){this._showingEmptyView=!0;var c=new b.Model;this.addItemView(c,a,0)}},closeEmptyView:function(){this._showingEmptyView&&(this.closeChildren(),delete this._showingEmptyView)},getEmptyView:function(){return f.getOption(this,"emptyView")},getItemView:function(){var a=f.getOption(this,"itemView");return a||e("An `itemView` must be specified","NoItemViewError"),a},addItemView:function(a,b,d){var e=f.getOption(this,"itemViewOptions");c.isFunction(e)&&(e=e.call(this,a,d));var g=this.buildItemView(a,b,e);return this.addChildViewEventForwarding(g),this.triggerMethod("before:item:added",g),this.children.add(g),this.renderItemView(g,d),this._isShown&&!this.isBuffering&&f.triggerMethod.call(g,"show"),this.triggerMethod("after:item:added",g),g},addChildViewEventForwarding:function(a){var b=f.getOption(this,"itemViewEventPrefix");this.listenTo(a,"all",function(){var e=d(arguments),g=e[0],h=this.getItemEvents();e[0]=b+":"+g,e.splice(1,0,a),"undefined"!=typeof h&&c.isFunction(h[g])&&h[g].apply(this,e),f.triggerMethod.apply(this,e)},this)},getItemEvents:function(){return c.isFunction(this.itemEvents)?this.itemEvents.call(this):this.itemEvents},renderItemView:function(a,b){a.render(),this.appendHtml(this,a,b)},buildItemView:function(a,b,d){var e=c.extend({model:a},d);return new b(e)},removeItemView:function(a){var b=this.children.findByModel(a);this.removeChildView(b),this.checkEmpty()},removeChildView:function(a){a&&(this.stopListening(a),a.close?a.close():a.remove&&a.remove(),this.children.remove(a)),this.triggerMethod("item:removed",a)},checkEmpty:function(){this.collection&&0!==this.collection.length||this.showEmptyView()},appendBuffer:function(a,b){a.$el.append(b)},appendHtml:function(a,b){a.isBuffering?(a.elBuffer.appendChild(b.el),a._bufferedChildren.push(b)):a.$el.append(b.el)},_initChildViewStorage:function(){this.children=new b.ChildViewContainer},close:function(){this.isClosed||(this.triggerMethod("collection:before:close"),this.closeChildren(),this.triggerMethod("collection:closed"),f.View.prototype.close.apply(this,d(arguments)))},closeChildren:function(){this.children.each(function(a){this.removeChildView(a)},this),this.checkEmpty()}}),f.CompositeView=f.CollectionView.extend({constructor:function(){f.CollectionView.prototype.constructor.apply(this,d(arguments))},_initialEvents:function(){this.once("render",function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this._renderChildren,this))})},getItemView:function(){var a=f.getOption(this,"itemView")||this.constructor;return a||e("An `itemView` must be specified","NoItemViewError"),a},serializeData:function(){var a={};return this.model&&(a=this.model.toJSON()),a},render:function(){this.isRendered=!0,this.isClosed=!1,this.resetItemViewContainer(),this.triggerBeforeRender();var a=this.renderModel();return this.$el.html(a),this.bindUIElements(),this.triggerMethod("composite:model:rendered"),this._renderChildren(),this.triggerMethod("composite:rendered"),this.triggerRendered(),this},_renderChildren:function(){this.isRendered&&(f.CollectionView.prototype._renderChildren.call(this),this.triggerMethod("composite:collection:rendered"))},renderModel:function(){var a={};a=this.serializeData(),a=this.mixinTemplateHelpers(a);var b=this.getTemplate();return f.Renderer.render(b,a)},appendBuffer:function(a,b){var c=this.getItemViewContainer(a);c.append(b)},appendHtml:function(a,b){if(a.isBuffering)a.elBuffer.appendChild(b.el),a._bufferedChildren.push(b);else{var c=this.getItemViewContainer(a);c.append(b.el)}},getItemViewContainer:function(a){if("$itemViewContainer"in a)return a.$itemViewContainer;var b,d=f.getOption(a,"itemViewContainer");if(d){var g=c.isFunction(d)?d.call(this):d;b=a.$(g),b.length<=0&&e("The specified `itemViewContainer` was not found: "+a.itemViewContainer,"ItemViewContainerMissingError")}else b=a.$el;return a.$itemViewContainer=b,b},resetItemViewContainer:function(){this.$itemViewContainer&&delete this.$itemViewContainer}}),f.Layout=f.ItemView.extend({regionType:f.Region,constructor:function(a){a=a||{},this._firstRender=!0,this._initializeRegions(a),f.ItemView.prototype.constructor.call(this,a)},render:function(){this.isClosed&&this._initializeRegions(),this._firstRender?this._firstRender=!1:this.isClosed||this._reInitializeRegions();var a=Array.prototype.slice.apply(arguments),b=f.ItemView.prototype.render.apply(this,a);return b},close:function(){if(!this.isClosed){this.regionManager.close();var a=Array.prototype.slice.apply(arguments);f.ItemView.prototype.close.apply(this,a)}},addRegion:function(a,b){var c={};return c[a]=b,this._buildRegions(c)[a]},addRegions:function(a){return this.regions=c.extend({},this.regions,a),this._buildRegions(a)},removeRegion:function(a){return delete this.regions[a],this.regionManager.removeRegion(a)},_buildRegions:function(a){var b=this,c={regionType:f.getOption(this,"regionType"),parentEl:function(){return b.$el}};return this.regionManager.addRegions(a,c)},_initializeRegions:function(a){var b;this._initRegionManager(),b=c.isFunction(this.regions)?this.regions(a):this.regions||{},this.addRegions(b)},_reInitializeRegions:function(){this.regionManager.closeRegions(),this.regionManager.each(function(a){a.reset()})},_initRegionManager:function(){this.regionManager=new f.RegionManager,this.listenTo(this.regionManager,"region:add",function(a,b){this[a]=b,this.trigger("region:add",a,b)}),this.listenTo(this.regionManager,"region:remove",function(a,b){delete this[a],this.trigger("region:remove",a,b)})}}),f.AppRouter=b.Router.extend({constructor:function(a){b.Router.prototype.constructor.apply(this,d(arguments)),this.options=a||{};var c=f.getOption(this,"appRoutes"),e=this._getController();this.processAppRoutes(e,c)},appRoute:function(a,b){var c=this._getController();this._addAppRoute(c,a,b)},processAppRoutes:function(a,b){if(b){var d=c.keys(b).reverse();c.each(d,function(c){this._addAppRoute(a,c,b[c])},this)}},_getController:function(){return f.getOption(this,"controller")},_addAppRoute:function(a,b,d){var e=a[d];if(!e)throw new Error("Method '"+d+"' was not found on the controller");this.route(b,d,c.bind(e,a))}}),f.Application=function(a){this._initRegionManager(),this._initCallbacks=new f.Callbacks,this.vent=new b.Wreqr.EventAggregator,this.commands=new b.Wreqr.Commands,this.reqres=new b.Wreqr.RequestResponse,this.submodules={},c.extend(this,a),this.triggerMethod=f.triggerMethod},c.extend(f.Application.prototype,b.Events,{execute:function(){var a=Array.prototype.slice.apply(arguments);this.commands.execute.apply(this.commands,a)},request:function(){var a=Array.prototype.slice.apply(arguments);return this.reqres.request.apply(this.reqres,a)},addInitializer:function(a){this._initCallbacks.add(a)},start:function(a){this.triggerMethod("initialize:before",a),this._initCallbacks.run(a,this),this.triggerMethod("initialize:after",a),this.triggerMethod("start",a)},addRegions:function(a){return this._regionManager.addRegions(a)},closeRegions:function(){this._regionManager.closeRegions()},removeRegion:function(a){this._regionManager.removeRegion(a)},getRegion:function(a){return this._regionManager.get(a)},module:function(){var a=d(arguments);return a.unshift(this),f.Module.create.apply(f.Module,a)},_initRegionManager:function(){this._regionManager=new f.RegionManager,this.listenTo(this._regionManager,"region:add",function(a,b){this[a]=b}),this.listenTo(this._regionManager,"region:remove",function(a){delete this[a]})}}),f.Application.extend=f.extend,f.Module=function(a,b){this.moduleName=a,this.submodules={},this._setupInitializersAndFinalizers(),this.app=b,this.startWithParent=!0,this.triggerMethod=f.triggerMethod},c.extend(f.Module.prototype,b.Events,{addInitializer:function(a){this._initializerCallbacks.add(a)},addFinalizer:function(a){this._finalizerCallbacks.add(a)},start:function(a){this._isInitialized||(c.each(this.submodules,function(b){b.startWithParent&&b.start(a)}),this.triggerMethod("before:start",a),this._initializerCallbacks.run(a,this),this._isInitialized=!0,this.triggerMethod("start",a))},stop:function(){this._isInitialized&&(this._isInitialized=!1,f.triggerMethod.call(this,"before:stop"),c.each(this.submodules,function(a){a.stop()}),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),f.triggerMethod.call(this,"stop"))},addDefinition:function(a,b){this._runModuleDefinition(a,b)},_runModuleDefinition:function(a,d){if(a){var e=c.flatten([this,this.app,b,f,f.$,c,d]);a.apply(this,e)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new f.Callbacks,this._finalizerCallbacks=new f.Callbacks}}),c.extend(f.Module,{create:function(a,b,e){var f=a,g=d(arguments);g.splice(0,3),b=b.split(".");var h=b.length,i=[];return i[h-1]=e,c.each(b,function(b,c){var d=f;f=this._getModule(d,b,a),this._addModuleDefinition(d,f,i[c],g)},this),f},_getModule:function(a,b,c){var d=a[b];return d||(d=new f.Module(b,c),a[b]=d,a.submodules[b]=d),d},_addModuleDefinition:function(a,b,d,e){var f,g;c.isFunction(d)?(f=d,g=!0):c.isObject(d)?(f=d.define,g=d.startWithParent):g=!0,f&&b.addDefinition(f,e),b.startWithParent=b.startWithParent&&g,b.startWithParent&&!b.startWithParentIsConfigured&&(b.startWithParentIsConfigured=!0,a.addInitializer(function(a){b.startWithParent&&b.start(a)}))}}),f}(this,b,a),b.Marionette}); \ No newline at end of file +!function(a,b){if("object"==typeof exports){var c=require("underscore"),d=require("backbone"),e=require("backbone.wreqr"),f=require("backbone.babysitter");module.exports=b(c,d,e,f)}else"function"==typeof define&&define.amd&&define(["underscore","backbone","backbone.wreqr","backbone.babysitter"],b)}(this,function(a,b){return!function(a,b,c){"use strict";function d(a){return g.call(a)}function e(a,b){var c=new Error(a);throw c.name=b||"Error",c}var f={};b.Marionette=f,f.$=b.$;var g=Array.prototype.slice;return f.extend=b.Model.extend,f.getOption=function(a,b){if(a&&b){var c;return c=a.options&&b in a.options&&void 0!==a.options[b]?a.options[b]:a[b]}},f.triggerMethod=function(){function a(a,b,c){return c.toUpperCase()}var b=/(^|:)(\w)/gi,d=function(d){var e="on"+d.replace(b,a),f=this[e];return c.isFunction(this.trigger)&&this.trigger.apply(this,arguments),c.isFunction(f)?f.apply(this,c.tail(arguments)):void 0};return d}(),f.MonitorDOMRefresh=function(a){function b(a){a._isShown=!0,e(a)}function d(a){a._isRendered=!0,e(a)}function e(a){a._isShown&&a._isRendered&&f(a)&&c.isFunction(a.triggerMethod)&&a.triggerMethod("dom:refresh")}function f(b){return a.contains(b.el)}return function(a){a.listenTo(a,"show",function(){b(a)}),a.listenTo(a,"render",function(){d(a)})}}(document.documentElement),function(a){function b(a,b,d,f){var g=f.split(/\s+/);c.each(g,function(c){var f=a[c];f||e("Method '"+c+"' was configured as an event handler, but does not exist."),a.listenTo(b,d,f,a)})}function d(a,b,c,d){a.listenTo(b,c,d,a)}function f(a,b,d,e){var f=e.split(/\s+/);c.each(f,function(c){var e=a[c];a.stopListening(b,d,e,a)})}function g(a,b,c,d){a.stopListening(b,c,d,a)}function h(a,b,d,e,f){b&&d&&(c.isFunction(d)&&(d=d.call(a)),c.each(d,function(d,g){c.isFunction(d)?e(a,b,g,d):f(a,b,g,d)}))}a.bindEntityEvents=function(a,c,e){h(a,c,e,d,b)},a.unbindEntityEvents=function(a,b,c){h(a,b,c,g,f)}}(f),f.Callbacks=function(){this._deferred=f.$.Deferred(),this._callbacks=[]},c.extend(f.Callbacks.prototype,{add:function(a,b){this._callbacks.push({cb:a,ctx:b}),this._deferred.done(function(c,d){b&&(c=b),a.call(c,d)})},run:function(a,b){this._deferred.resolve(b,a)},reset:function(){var a=this._callbacks;this._deferred=f.$.Deferred(),this._callbacks=[],c.each(a,function(a){this.add(a.cb,a.ctx)},this)}}),f.Controller=function(a){this.triggerMethod=f.triggerMethod,this.options=a||{},c.isFunction(this.initialize)&&this.initialize(this.options)},f.Controller.extend=f.extend,c.extend(f.Controller.prototype,b.Events,{close:function(){this.stopListening(),this.triggerMethod("close"),this.unbind()}}),f.Region=function(a){if(this.options=a||{},this.el=f.getOption(this,"el"),!this.el){var b=new Error("An 'el' must be specified for a region.");throw b.name="NoElError",b}if(this.initialize){var c=Array.prototype.slice.apply(arguments);this.initialize.apply(this,c)}},c.extend(f.Region,{buildRegion:function(a,b){var d="string"==typeof a,e="string"==typeof a.selector,f="undefined"==typeof a.regionType,g="function"==typeof a;if(!g&&!d&&!e)throw new Error("Region must be specified as a Region type, a selector string or an object with selector property");var h,i;d&&(h=a),a.selector&&(h=a.selector,delete a.selector),g&&(i=a),!g&&f&&(i=b),a.regionType&&(i=a.regionType,delete a.regionType),(d||g)&&(a={}),a.el=h;var j=new i(a);return a.parentEl&&(j.getEl=function(b){var d=a.parentEl;return c.isFunction(d)&&(d=d()),d.find(b)}),j}}),c.extend(f.Region.prototype,b.Events,{show:function(a){this.ensureEl();var b=a.isClosed||c.isUndefined(a.$el),d=a!==this.currentView;d&&this.close(),a.render(),(d||b)&&this.open(a),this.currentView=a,f.triggerMethod.call(this,"show",a),f.triggerMethod.call(a,"show")},ensureEl:function(){this.$el&&0!==this.$el.length||(this.$el=this.getEl(this.el))},getEl:function(a){return f.$(a)},open:function(a){this.$el.empty().append(a.el)},close:function(){var a=this.currentView;a&&!a.isClosed&&(a.close?a.close():a.remove&&a.remove(),f.triggerMethod.call(this,"close",a),delete this.currentView)},attachView:function(a){this.currentView=a},reset:function(){this.close(),delete this.$el}}),f.Region.extend=f.extend,f.RegionManager=function(a){var b=a.Controller.extend({constructor:function(b){this._regions={},a.Controller.prototype.constructor.call(this,b)},addRegions:function(a,b){var d={};return c.each(a,function(a,e){"string"==typeof a&&(a={selector:a}),a.selector&&(a=c.defaults({},a,b));var f=this.addRegion(e,a);d[e]=f},this),d},addRegion:function(b,d){var e,f=c.isObject(d),g=c.isString(d),h=!!d.selector;return e=g||f&&h?a.Region.buildRegion(d,a.Region):c.isFunction(d)?a.Region.buildRegion(d,a.Region):d,this._store(b,e),this.triggerMethod("region:add",b,e),e},get:function(a){return this._regions[a]},removeRegion:function(a){var b=this._regions[a];this._remove(a,b)},removeRegions:function(){c.each(this._regions,function(a,b){this._remove(b,a)},this)},closeRegions:function(){c.each(this._regions,function(a){a.close()},this)},close:function(){this.removeRegions();var b=Array.prototype.slice.call(arguments);a.Controller.prototype.close.apply(this,b)},_store:function(a,b){this._regions[a]=b,this._setLength()},_remove:function(a,b){b.close(),delete this._regions[a],this._setLength(),this.triggerMethod("region:remove",a,b)},_setLength:function(){this.length=c.size(this._regions)}}),d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return c.each(d,function(a){b.prototype[a]=function(){var b=c.values(this._regions),d=[b].concat(c.toArray(arguments));return c[a].apply(c,d)}}),b}(f),f.TemplateCache=function(a){this.templateId=a},c.extend(f.TemplateCache,{templateCaches:{},get:function(a){var b=this.templateCaches[a];return b||(b=new f.TemplateCache(a),this.templateCaches[a]=b),b.load()},clear:function(){var a,b=d(arguments),c=b.length;if(c>0)for(a=0;c>a;a++)delete this.templateCaches[b[a]];else this.templateCaches={}}}),c.extend(f.TemplateCache.prototype,{load:function(){if(this.compiledTemplate)return this.compiledTemplate;var a=this.loadTemplate(this.templateId);return this.compiledTemplate=this.compileTemplate(a),this.compiledTemplate},loadTemplate:function(a){var b=f.$(a).html();return b&&0!==b.length||e("Could not find template: '"+a+"'","NoTemplateError"),b},compileTemplate:function(a){return c.template(a)}}),f.Renderer={render:function(a,b){if(!a){var c=new Error("Cannot render the template since it's false, null or undefined.");throw c.name="TemplateNotFoundError",c}var d;return d="function"==typeof a?a:f.TemplateCache.get(a),d(b)}},f.View=b.View.extend({constructor:function(a){c.bindAll(this,"render");var d=Array.prototype.slice.apply(arguments);this.options=c.extend({},c.result(this,"options"),c.isFunction(a)?a.call(this):a),this.events=this.normalizeUIKeys(c.result(this,"events")),b.View.prototype.constructor.apply(this,d),f.MonitorDOMRefresh(this),this.listenTo(this,"show",this.onShowCalled,this)},triggerMethod:f.triggerMethod,getTemplate:function(){return f.getOption(this,"template")},mixinTemplateHelpers:function(a){a=a||{};var b=f.getOption(this,"templateHelpers");return c.isFunction(b)&&(b=b.call(this)),c.extend(a,b)},normalizeUIKeys:function(a){return"undefined"!=typeof a?(c.each(c.keys(a),function(b){var c=b.split("@ui.");2===c.length&&(a[c[0]+this.ui[c[1]]]=a[b],delete a[b])},this),a):void 0},configureTriggers:function(){if(this.triggers){var a={},b=this.normalizeUIKeys(c.result(this,"triggers"));return c.each(b,function(b,d){var e=c.isObject(b),f=e?b.event:b;a[d]=function(a){if(a){var c=a.preventDefault,d=a.stopPropagation,g=e?b.preventDefault:c,h=e?b.stopPropagation:d;g&&c&&c.apply(a),h&&d&&d.apply(a)}var i={view:this,model:this.model,collection:this.collection};this.triggerMethod(f,i)}},this),a}},delegateEvents:function(a){this._delegateDOMEvents(a),f.bindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.bindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},_delegateDOMEvents:function(a){a=a||this.events,c.isFunction(a)&&(a=a.call(this));var d={},e=this.configureTriggers();c.extend(d,a,e),b.View.prototype.delegateEvents.call(this,d)},undelegateEvents:function(){var a=Array.prototype.slice.call(arguments);b.View.prototype.undelegateEvents.apply(this,a),f.unbindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.unbindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},onShowCalled:function(){},close:function(){if(!this.isClosed){var a=this.triggerMethod("before:close");a!==!1&&(this.isClosed=!0,this.triggerMethod("close"),this.unbindUIElements(),this.remove())}},bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var a=c.result(this,"_uiBindings");this.ui={},c.each(c.keys(a),function(b){var c=a[b];this.ui[b]=this.$(c)},this)}},unbindUIElements:function(){this.ui&&this._uiBindings&&(c.each(this.ui,function(a,b){delete this.ui[b]},this),this.ui=this._uiBindings,delete this._uiBindings)}}),f.ItemView=f.View.extend({constructor:function(){f.View.prototype.constructor.apply(this,d(arguments))},serializeData:function(){var a={};return this.model?a=this.model.toJSON():this.collection&&(a={items:this.collection.toJSON()}),a},render:function(){this.isClosed=!1,this.triggerMethod("before:render",this),this.triggerMethod("item:before:render",this);var a=this.serializeData();a=this.mixinTemplateHelpers(a);var b=this.getTemplate(),c=f.Renderer.render(b,a);return this.$el.html(c),this.bindUIElements(),this.triggerMethod("render",this),this.triggerMethod("item:rendered",this),this},close:function(){this.isClosed||(this.triggerMethod("item:before:close"),f.View.prototype.close.apply(this,d(arguments)),this.triggerMethod("item:closed"))}}),f.CollectionView=f.View.extend({itemViewEventPrefix:"itemview",constructor:function(){this._initChildViewStorage(),f.View.prototype.constructor.apply(this,d(arguments)),this._initialEvents(),this.initRenderBuffer()},initRenderBuffer:function(){this.elBuffer=document.createDocumentFragment(),this._bufferedChildren=[]},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){this.isBuffering=!1,this.appendBuffer(this,this.elBuffer),this._triggerShowBufferedChildren(),this.initRenderBuffer()},_triggerShowBufferedChildren:function(){this._isShown&&(c.each(this._bufferedChildren,function(a){f.triggerMethod.call(a,"show")}),this._bufferedChildren=[])},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this.render,this))},addChildView:function(a){this.closeEmptyView();var b=this.getItemView(a),c=this.collection.indexOf(a);this.addItemView(a,b,c)},onShowCalled:function(){this.children.each(function(a){f.triggerMethod.call(a,"show")})},triggerBeforeRender:function(){this.triggerMethod("before:render",this),this.triggerMethod("collection:before:render",this)},triggerRendered:function(){this.triggerMethod("render",this),this.triggerMethod("collection:rendered",this)},render:function(){return this.isClosed=!1,this.triggerBeforeRender(),this._renderChildren(),this.triggerRendered(),this},_renderChildren:function(){this.startBuffering(),this.closeEmptyView(),this.closeChildren(),this.isEmpty(this.collection)?this.showEmptyView():this.showCollection(),this.endBuffering()},showCollection:function(){var a;this.collection.each(function(b,c){a=this.getItemView(b),this.addItemView(b,a,c)},this)},showEmptyView:function(){var a=this.getEmptyView();if(a&&!this._showingEmptyView){this._showingEmptyView=!0;var c=new b.Model;this.addItemView(c,a,0)}},closeEmptyView:function(){this._showingEmptyView&&(this.closeChildren(),delete this._showingEmptyView)},getEmptyView:function(){return f.getOption(this,"emptyView")},getItemView:function(){var a=f.getOption(this,"itemView");return a||e("An `itemView` must be specified","NoItemViewError"),a},addItemView:function(a,b,d){var e=f.getOption(this,"itemViewOptions");c.isFunction(e)&&(e=e.call(this,a,d));var g=this.buildItemView(a,b,e);return this.addChildViewEventForwarding(g),this.triggerMethod("before:item:added",g),this.children.add(g),this.renderItemView(g,d),this._isShown&&!this.isBuffering&&f.triggerMethod.call(g,"show"),this.triggerMethod("after:item:added",g),g},addChildViewEventForwarding:function(a){var b=f.getOption(this,"itemViewEventPrefix");this.listenTo(a,"all",function(){var e=d(arguments),g=e[0],h=this.getItemEvents();e[0]=b+":"+g,e.splice(1,0,a),"undefined"!=typeof h&&c.isFunction(h[g])&&h[g].apply(this,e),f.triggerMethod.apply(this,e)},this)},getItemEvents:function(){return c.isFunction(this.itemEvents)?this.itemEvents.call(this):this.itemEvents},renderItemView:function(a,b){a.render(),this.appendHtml(this,a,b)},buildItemView:function(a,b,d){var e=c.extend({model:a},d);return new b(e)},removeItemView:function(a){var b=this.children.findByModel(a);this.removeChildView(b),this.checkEmpty()},removeChildView:function(a){a&&(this.stopListening(a),a.close?a.close():a.remove&&a.remove(),this.children.remove(a)),this.triggerMethod("item:removed",a)},isEmpty:function(){return!this.collection||0===this.collection.length},checkEmpty:function(){this.isEmpty(this.collection)&&this.showEmptyView()},appendBuffer:function(a,b){a.$el.append(b)},appendHtml:function(a,b){a.isBuffering?(a.elBuffer.appendChild(b.el),a._bufferedChildren.push(b)):a.$el.append(b.el)},_initChildViewStorage:function(){this.children=new b.ChildViewContainer},close:function(){this.isClosed||(this.triggerMethod("collection:before:close"),this.closeChildren(),this.triggerMethod("collection:closed"),f.View.prototype.close.apply(this,d(arguments)))},closeChildren:function(){this.children.each(function(a){this.removeChildView(a)},this),this.checkEmpty()}}),f.CompositeView=f.CollectionView.extend({constructor:function(){f.CollectionView.prototype.constructor.apply(this,d(arguments))},_initialEvents:function(){this.once("render",function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this._renderChildren,this))})},getItemView:function(){var a=f.getOption(this,"itemView")||this.constructor;return a||e("An `itemView` must be specified","NoItemViewError"),a},serializeData:function(){var a={};return this.model&&(a=this.model.toJSON()),a},render:function(){this.isRendered=!0,this.isClosed=!1,this.resetItemViewContainer(),this.triggerBeforeRender();var a=this.renderModel();return this.$el.html(a),this.bindUIElements(),this.triggerMethod("composite:model:rendered"),this._renderChildren(),this.triggerMethod("composite:rendered"),this.triggerRendered(),this},_renderChildren:function(){this.isRendered&&(this.triggerMethod("composite:collection:before:render"),f.CollectionView.prototype._renderChildren.call(this),this.triggerMethod("composite:collection:rendered"))},renderModel:function(){var a={};a=this.serializeData(),a=this.mixinTemplateHelpers(a);var b=this.getTemplate();return f.Renderer.render(b,a)},appendBuffer:function(a,b){var c=this.getItemViewContainer(a);c.append(b)},appendHtml:function(a,b){if(a.isBuffering)a.elBuffer.appendChild(b.el),a._bufferedChildren.push(b);else{var c=this.getItemViewContainer(a);c.append(b.el)}},getItemViewContainer:function(a){if("$itemViewContainer"in a)return a.$itemViewContainer;var b,d=f.getOption(a,"itemViewContainer");if(d){var g=c.isFunction(d)?d.call(this):d;b=a.$(g),b.length<=0&&e("The specified `itemViewContainer` was not found: "+a.itemViewContainer,"ItemViewContainerMissingError")}else b=a.$el;return a.$itemViewContainer=b,b},resetItemViewContainer:function(){this.$itemViewContainer&&delete this.$itemViewContainer}}),f.Layout=f.ItemView.extend({regionType:f.Region,constructor:function(a){a=a||{},this._firstRender=!0,this._initializeRegions(a),f.ItemView.prototype.constructor.call(this,a)},render:function(){this.isClosed&&this._initializeRegions(),this._firstRender?this._firstRender=!1:this.isClosed||this._reInitializeRegions();var a=Array.prototype.slice.apply(arguments),b=f.ItemView.prototype.render.apply(this,a);return b},close:function(){if(!this.isClosed){this.regionManager.close();var a=Array.prototype.slice.apply(arguments);f.ItemView.prototype.close.apply(this,a)}},addRegion:function(a,b){var c={};return c[a]=b,this._buildRegions(c)[a]},addRegions:function(a){return this.regions=c.extend({},this.regions,a),this._buildRegions(a)},removeRegion:function(a){return delete this.regions[a],this.regionManager.removeRegion(a)},_buildRegions:function(a){var b=this,c={regionType:f.getOption(this,"regionType"),parentEl:function(){return b.$el}};return this.regionManager.addRegions(a,c)},_initializeRegions:function(a){var b;this._initRegionManager(),b=c.isFunction(this.regions)?this.regions(a):this.regions||{},this.addRegions(b)},_reInitializeRegions:function(){this.regionManager.closeRegions(),this.regionManager.each(function(a){a.reset()})},_initRegionManager:function(){this.regionManager=new f.RegionManager,this.listenTo(this.regionManager,"region:add",function(a,b){this[a]=b,this.trigger("region:add",a,b)}),this.listenTo(this.regionManager,"region:remove",function(a,b){delete this[a],this.trigger("region:remove",a,b)})}}),f.AppRouter=b.Router.extend({constructor:function(a){b.Router.prototype.constructor.apply(this,d(arguments)),this.options=a||{};var c=f.getOption(this,"appRoutes"),e=this._getController();this.processAppRoutes(e,c)},appRoute:function(a,b){var c=this._getController();this._addAppRoute(c,a,b)},processAppRoutes:function(a,b){if(b){var d=c.keys(b).reverse();c.each(d,function(c){this._addAppRoute(a,c,b[c])},this)}},_getController:function(){return f.getOption(this,"controller")},_addAppRoute:function(a,b,d){var e=a[d];if(!e)throw new Error("Method '"+d+"' was not found on the controller");this.route(b,d,c.bind(e,a))}}),f.Application=function(a){this._initRegionManager(),this._initCallbacks=new f.Callbacks,this.vent=new b.Wreqr.EventAggregator,this.commands=new b.Wreqr.Commands,this.reqres=new b.Wreqr.RequestResponse,this.submodules={},c.extend(this,a),this.triggerMethod=f.triggerMethod},c.extend(f.Application.prototype,b.Events,{execute:function(){var a=Array.prototype.slice.apply(arguments);this.commands.execute.apply(this.commands,a)},request:function(){var a=Array.prototype.slice.apply(arguments);return this.reqres.request.apply(this.reqres,a)},addInitializer:function(a){this._initCallbacks.add(a)},start:function(a){this.triggerMethod("initialize:before",a),this._initCallbacks.run(a,this),this.triggerMethod("initialize:after",a),this.triggerMethod("start",a)},addRegions:function(a){return this._regionManager.addRegions(a)},closeRegions:function(){this._regionManager.closeRegions()},removeRegion:function(a){this._regionManager.removeRegion(a)},getRegion:function(a){return this._regionManager.get(a)},module:function(a,b){var c=f.Module;b&&(c=b.moduleClass||c);var e=d(arguments);return e.unshift(this),c.create.apply(c,e)},_initRegionManager:function(){this._regionManager=new f.RegionManager,this.listenTo(this._regionManager,"region:add",function(a,b){this[a]=b}),this.listenTo(this._regionManager,"region:remove",function(a){delete this[a]})}}),f.Application.extend=f.extend,f.Module=function(a,b,d){this.moduleName=a,this.options=c.extend({},this.options,d),this.initialize=d.initialize||this.initialize,this.submodules={},this._setupInitializersAndFinalizers(),this.app=b,this.startWithParent=!0,this.triggerMethod=f.triggerMethod,c.isFunction(this.initialize)&&this.initialize(this.options)},f.Module.extend=f.extend,c.extend(f.Module.prototype,b.Events,{initialize:function(){},addInitializer:function(a){this._initializerCallbacks.add(a)},addFinalizer:function(a){this._finalizerCallbacks.add(a)},start:function(a){this._isInitialized||(c.each(this.submodules,function(b){b.startWithParent&&b.start(a)}),this.triggerMethod("before:start",a),this._initializerCallbacks.run(a,this),this._isInitialized=!0,this.triggerMethod("start",a))},stop:function(){this._isInitialized&&(this._isInitialized=!1,f.triggerMethod.call(this,"before:stop"),c.each(this.submodules,function(a){a.stop()}),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),f.triggerMethod.call(this,"stop"))},addDefinition:function(a,b){this._runModuleDefinition(a,b)},_runModuleDefinition:function(a,d){if(a){var e=c.flatten([this,this.app,b,f,f.$,c,d]);a.apply(this,e)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new f.Callbacks,this._finalizerCallbacks=new f.Callbacks}}),c.extend(f.Module,{create:function(a,b,e){var f=a,g=d(arguments);g.splice(0,3),b=b.split(".");var h=b.length,i=[];return i[h-1]=e,c.each(b,function(b,c){var d=f;f=this._getModule(d,b,a,e),this._addModuleDefinition(d,f,i[c],g)},this),f},_getModule:function(a,b,d,e){var g=f.Module,h=c.extend({},e);e&&(g=e.moduleClass||g);var i=a[b];return i||(i=new g(b,d,h),a[b]=i,a.submodules[b]=i),i},_addModuleDefinition:function(a,b,d,e){var f,g;c.isFunction(d)?(f=d,g=!0):c.isObject(d)?(f=d.define,g=d.startWithParent):g=!0,f&&b.addDefinition(f,e),b.startWithParent=b.startWithParent&&g,b.startWithParent&&!b.startWithParentIsConfigured&&(b.startWithParentIsConfigured=!0,a.addInitializer(function(a){b.startWithParent&&b.start(a)}))}}),f}(this,b,a),b.Marionette}); \ No newline at end of file diff --git a/lib/core/backbone.marionette.js b/lib/core/backbone.marionette.js index 2403440046..304223f3df 100644 --- a/lib/core/backbone.marionette.js +++ b/lib/core/backbone.marionette.js @@ -308,7 +308,6 @@ _.extend(Marionette.Controller.prototype, Backbone.Events, { Marionette.Region = function(options){ this.options = options || {}; - this.el = Marionette.getOption(this, "el"); if (!this.el){ @@ -344,7 +343,6 @@ _.extend(Marionette.Region, { // ``` // buildRegion: function(regionConfig, defaultRegionType){ - var regionIsString = (typeof regionConfig === "string"); var regionSelectorIsString = (typeof regionConfig.selector === "string"); var regionTypeIsUndefined = (typeof regionConfig.regionType === "undefined"); @@ -398,7 +396,6 @@ _.extend(Marionette.Region, { // literal to build the region, the element will not be // guaranteed to be in the DOM already, and will cause problems if (regionConfig.parentEl){ - region.getEl = function(selector) { var parentEl = regionConfig.parentEl; if (_.isFunction(parentEl)){ @@ -424,11 +421,9 @@ _.extend(Marionette.Region.prototype, Backbone.Events, { // `onShow` and `close` method on your view, just after showing // or just before closing the view, respectively. show: function(view){ - this.ensureEl(); var isViewClosed = view.isClosed || _.isUndefined(view.$el); - var isDifferentView = view !== this.currentView; if (isDifferentView) { @@ -1161,7 +1156,7 @@ Marionette.CollectionView = Marionette.View.extend({ this.closeEmptyView(); this.closeChildren(); - if (this.collection && this.collection.length > 0) { + if (!this.isEmpty(this.collection)) { this.showCollection(); } else { this.showEmptyView(); @@ -1328,11 +1323,15 @@ Marionette.CollectionView = Marionette.View.extend({ this.triggerMethod("item:removed", view); }, - // helper to show the empty view if the collection is empty - checkEmpty: function() { - // check if we're empty now, and if we are, show the - // empty view - if (!this.collection || this.collection.length === 0){ + // helper to check if the collection is empty + isEmpty: function(collection){ + // check if we're empty now + return !this.collection || this.collection.length === 0; + }, + + // If empty, show the empty view + checkEmpty: function (){ + if (this.isEmpty(this.collection)){ this.showEmptyView(); } }, @@ -1473,6 +1472,7 @@ Marionette.CompositeView = Marionette.CollectionView.extend({ _renderChildren: function(){ if (this.isRendered){ + this.triggerMethod("composite:collection:before:render"); Marionette.CollectionView.prototype._renderChildren.call(this); this.triggerMethod("composite:collection:rendered"); } @@ -1825,13 +1825,20 @@ _.extend(Marionette.Application.prototype, Backbone.Events, { // Create a module, attached to the application module: function(moduleNames, moduleDefinition){ + var ModuleClass = Marionette.Module; + + // Overwrite the module class if the user specifies one + if (moduleDefinition) { + ModuleClass = moduleDefinition.moduleClass || ModuleClass; + } + // slice the args, and add this application object as the // first argument of the array var args = slice(arguments); args.unshift(this); // see the Marionette.Module object for more information - return Marionette.Module.create.apply(Marionette.Module, args); + return ModuleClass.create.apply(ModuleClass, args); }, // Internal method to set up the region manager @@ -1856,8 +1863,10 @@ Marionette.Application.extend = Marionette.extend; // A simple module system, used to create privacy and encapsulation in // Marionette applications -Marionette.Module = function(moduleName, app){ +Marionette.Module = function(moduleName, app, options){ this.moduleName = moduleName; + this.options = _.extend({}, this.options, options); + this.initialize = options.initialize || this.initialize; // store sub-modules this.submodules = {}; @@ -1869,12 +1878,22 @@ Marionette.Module = function(moduleName, app){ this.startWithParent = true; this.triggerMethod = Marionette.triggerMethod; + + if (_.isFunction(this.initialize)){ + this.initialize(this.options); + } }; +Marionette.Module.extend = Marionette.extend; + // Extend the Module prototype with events / listenTo, so that the module // can be used as an event aggregator or pub/sub. _.extend(Marionette.Module.prototype, Backbone.Events, { + // Initialize is an empty function by default. Override it with your own + // initialization logic when extending Marionette.Module. + initialize: function(){}, + // Initializer for a specific module. Initializers are run when the // module's `start` method is called. addInitializer: function(callback){ @@ -1989,7 +2008,7 @@ _.extend(Marionette.Module, { // Loop through all the parts of the module definition _.each(moduleNames, function(moduleName, i){ var parentModule = module; - module = this._getModule(parentModule, moduleName, app); + module = this._getModule(parentModule, moduleName, app, moduleDefinition); this._addModuleDefinition(parentModule, module, moduleDefinitions[i], customArgs); }, this); @@ -1998,12 +2017,18 @@ _.extend(Marionette.Module, { }, _getModule: function(parentModule, moduleName, app, def, args){ + var ModuleClass = Marionette.Module; + var options = _.extend({}, def); + if (def) { + ModuleClass = def.moduleClass || ModuleClass; + } + // Get an existing module of this name if we have one var module = parentModule[moduleName]; if (!module){ // Create a new module if we don't have one - module = new Marionette.Module(moduleName, app); + module = new ModuleClass(moduleName, app, options); parentModule[moduleName] = module; // store the module on the parent parentModule.submodules[moduleName] = module; diff --git a/lib/core/backbone.marionette.map b/lib/core/backbone.marionette.map index 2f561d623d..d64d507460 100644 --- a/lib/core/backbone.marionette.map +++ b/lib/core/backbone.marionette.map @@ -1 +1 @@ -{"version":3,"file":"lib/core/backbone.marionette.min.js","sources":["backbone.marionette.js"],"names":["Marionette","global","Backbone","_","slice","args","protoSlice","call","throwError","message","name","error","Error","$","Array","prototype","extend","Model","getOption","target","optionName","value","options","undefined","triggerMethod","getEventName","match","prefix","eventName","toUpperCase","splitter","event","methodName","replace","method","this","isFunction","trigger","apply","arguments","tail","MonitorDOMRefresh","documentElement","handleShow","view","_isShown","triggerDOMRefresh","handleRender","_isRendered","isInDOM","contains","el","listenTo","document","bindFromStrings","entity","evt","methods","methodNames","split","each","bindToFunction","unbindFromStrings","stopListening","unbindToFunction","iterateEvents","bindings","functionCallback","stringCallback","bindEntityEvents","unbindEntityEvents","Callbacks","_deferred","Deferred","_callbacks","add","callback","contextOverride","push","cb","ctx","done","context","run","resolve","reset","callbacks","Controller","initialize","Events","close","unbind","Region","err","buildRegion","regionConfig","defaultRegionType","regionIsString","regionSelectorIsString","selector","regionTypeIsUndefined","regionType","regionIsType","RegionType","region","parentEl","getEl","find","show","ensureEl","isViewClosed","isClosed","isUndefined","$el","isDifferentView","currentView","render","open","length","empty","append","remove","attachView","RegionManager","constructor","_regions","addRegions","regionDefinitions","defaults","regions","definition","addRegion","isObject","isString","hasSelector","_store","get","removeRegion","_remove","removeRegions","closeRegions","_setLength","size","values","concat","toArray","TemplateCache","templateId","templateCaches","cachedTemplate","load","clear","i","compiledTemplate","template","loadTemplate","compileTemplate","html","rawTemplate","Renderer","data","templateFunc","View","bindAll","result","events","normalizeUIKeys","onShowCalled","getTemplate","mixinTemplateHelpers","templateHelpers","hash","keys","v","ui","configureTriggers","triggers","triggerEvents","key","hasOptions","e","prevent","preventDefault","stop","stopPropagation","shouldPrevent","shouldStop","model","collection","delegateEvents","_delegateDOMEvents","combinedEvents","undelegateEvents","shouldClose","unbindUIElements","bindUIElements","_uiBindings","ItemView","serializeData","toJSON","items","CollectionView","itemViewEventPrefix","_initChildViewStorage","_initialEvents","initRenderBuffer","elBuffer","createDocumentFragment","_bufferedChildren","startBuffering","isBuffering","endBuffering","appendBuffer","_triggerShowBufferedChildren","child","addChildView","removeItemView","item","closeEmptyView","getItemView","index","indexOf","addItemView","children","triggerBeforeRender","triggerRendered","_renderChildren","closeChildren","showCollection","showEmptyView","EmptyView","getEmptyView","_showingEmptyView","itemView","itemViewOptions","buildItemView","addChildViewEventForwarding","renderItemView","rootEvent","itemEvents","getItemEvents","splice","appendHtml","ItemViewType","findByModel","removeChildView","checkEmpty","collectionView","buffer","appendChild","ChildViewContainer","CompositeView","once","isRendered","resetItemViewContainer","renderModel","compositeView","$container","getItemViewContainer","containerView","$itemViewContainer","container","itemViewContainer","Layout","_firstRender","_initializeRegions","_reInitializeRegions","regionManager","_buildRegions","that","_initRegionManager","AppRouter","Router","appRoutes","controller","_getController","processAppRoutes","appRoute","route","_addAppRoute","routeNames","reverse","bind","Application","_initCallbacks","vent","Wreqr","EventAggregator","commands","Commands","reqres","RequestResponse","submodules","execute","request","addInitializer","initializer","start","_regionManager","getRegion","module","unshift","Module","create","moduleName","app","_setupInitializersAndFinalizers","startWithParent","_initializerCallbacks","addFinalizer","_finalizerCallbacks","_isInitialized","mod","addDefinition","moduleDefinition","customArgs","_runModuleDefinition","flatten","moduleNames","moduleDefinitions","parentModule","_getModule","_addModuleDefinition","def","fn","define","startWithParentIsConfigured"],"mappings":"AAAA,GAAIA,YAAa,SAAUC,EAAQC,EAAUC,GAC3C,YAcF,SAASC,GAAMC,GACb,MAAOC,GAAWC,KAAKF,GAGzB,QAASG,GAAWC,EAASC,GAC3B,GAAIC,GAAQ,GAAIC,OAAMH,EAEtB,MADAE,GAAMD,KAAOA,GAAQ,QACfC,EAlBN,GAAIX,KACJE,GAASF,WAAaA,EAGtBA,EAAWa,EAAIX,EAASW,CAM1B,IAAIP,GAAaQ,MAAMC,UAAUX,KAggE/B,OAj/DFJ,GAAWgB,OAASd,EAASe,MAAMD,OAOnChB,EAAWkB,UAAY,SAASC,EAAQC,GACtC,GAAKD,GAAWC,EAAhB,CACA,GAAIC,EAQJ,OALEA,GADEF,EAAOG,SAAYF,IAAcD,GAAOG,SAA4CC,SAA/BJ,EAAOG,QAAQF,GAC9DD,EAAOG,QAAQF,GAEfD,EAAOC,KAanBpB,EAAWwB,cAAgB,WAOzB,QAASC,GAAaC,EAAOC,EAAQC,GACnC,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B,GAAcJ,EAE3BoB,EAAa5B,WAAWY,GAAcJ,GAGjCA,GAGTsB,qBAAsB,SAASF,EAAcpB,EAAQuB,EAAK9T,GACxD,GAAI+T,GACAjB,CAEAhT,GAAEiC,WAAW+R,IAEfC,EAAKD,EACLhB,GAAkB,GAEThT,EAAEiI,SAAS+L,IAEpBC,EAAKD,EAAIE,OACTlB,EAAkBgB,EAAIhB,iBAItBA,GAAkB,EAIhBiB,GACFxB,EAAOa,cAAcW,EAAI/T,GAK3BuS,EAAOO,gBAAkBP,EAAOO,iBAAmBA,EAG/CP,EAAOO,kBAAoBP,EAAO0B,8BAGpC1B,EAAO0B,6BAA8B,EAGrCN,EAAazB,eAAe,SAASjR,GAC/BsR,EAAOO,iBACTP,EAAOH,MAAMnR,SAWdtB,GACNmC,KAAMjC,SAAUC"} \ No newline at end of file +{"version":3,"file":"lib/core/backbone.marionette.min.js","sources":["backbone.marionette.js"],"names":["Marionette","global","Backbone","_","slice","args","protoSlice","call","throwError","message","name","error","Error","$","Array","prototype","extend","Model","getOption","target","optionName","value","options","undefined","triggerMethod","getEventName","match","prefix","eventName","toUpperCase","splitter","event","methodName","replace","method","this","isFunction","trigger","apply","arguments","tail","MonitorDOMRefresh","documentElement","handleShow","view","_isShown","triggerDOMRefresh","handleRender","_isRendered","isInDOM","contains","el","listenTo","document","bindFromStrings","entity","evt","methods","methodNames","split","each","bindToFunction","unbindFromStrings","stopListening","unbindToFunction","iterateEvents","bindings","functionCallback","stringCallback","bindEntityEvents","unbindEntityEvents","Callbacks","_deferred","Deferred","_callbacks","add","callback","contextOverride","push","cb","ctx","done","context","run","resolve","reset","callbacks","Controller","initialize","Events","close","unbind","Region","err","buildRegion","regionConfig","defaultRegionType","regionIsString","regionSelectorIsString","selector","regionTypeIsUndefined","regionType","regionIsType","RegionType","region","parentEl","getEl","find","show","ensureEl","isViewClosed","isClosed","isUndefined","$el","isDifferentView","currentView","render","open","length","empty","append","remove","attachView","RegionManager","constructor","_regions","addRegions","regionDefinitions","defaults","regions","definition","addRegion","isObject","isString","hasSelector","_store","get","removeRegion","_remove","removeRegions","closeRegions","_setLength","size","values","concat","toArray","TemplateCache","templateId","templateCaches","cachedTemplate","load","clear","i","compiledTemplate","template","loadTemplate","compileTemplate","html","rawTemplate","Renderer","data","templateFunc","View","bindAll","result","events","normalizeUIKeys","onShowCalled","getTemplate","mixinTemplateHelpers","templateHelpers","hash","keys","v","ui","configureTriggers","triggers","triggerEvents","key","hasOptions","e","prevent","preventDefault","stop","stopPropagation","shouldPrevent","shouldStop","model","collection","delegateEvents","_delegateDOMEvents","combinedEvents","undelegateEvents","shouldClose","unbindUIElements","bindUIElements","_uiBindings","ItemView","serializeData","toJSON","items","CollectionView","itemViewEventPrefix","_initChildViewStorage","_initialEvents","initRenderBuffer","elBuffer","createDocumentFragment","_bufferedChildren","startBuffering","isBuffering","endBuffering","appendBuffer","_triggerShowBufferedChildren","child","addChildView","removeItemView","item","closeEmptyView","getItemView","index","indexOf","addItemView","children","triggerBeforeRender","triggerRendered","_renderChildren","closeChildren","isEmpty","showEmptyView","showCollection","EmptyView","getEmptyView","_showingEmptyView","itemView","itemViewOptions","buildItemView","addChildViewEventForwarding","renderItemView","rootEvent","itemEvents","getItemEvents","splice","appendHtml","ItemViewType","findByModel","removeChildView","checkEmpty","collectionView","buffer","appendChild","ChildViewContainer","CompositeView","once","isRendered","resetItemViewContainer","renderModel","compositeView","$container","getItemViewContainer","containerView","$itemViewContainer","container","itemViewContainer","Layout","_firstRender","_initializeRegions","_reInitializeRegions","regionManager","_buildRegions","that","_initRegionManager","AppRouter","Router","appRoutes","controller","_getController","processAppRoutes","appRoute","route","_addAppRoute","routeNames","reverse","bind","Application","_initCallbacks","vent","Wreqr","EventAggregator","commands","Commands","reqres","RequestResponse","submodules","execute","request","addInitializer","initializer","start","_regionManager","getRegion","module","moduleNames","moduleDefinition","ModuleClass","Module","moduleClass","unshift","create","moduleName","app","_setupInitializersAndFinalizers","startWithParent","_initializerCallbacks","addFinalizer","_finalizerCallbacks","_isInitialized","mod","addDefinition","customArgs","_runModuleDefinition","flatten","moduleDefinitions","parentModule","_getModule","_addModuleDefinition","def","fn","define","startWithParentIsConfigured"],"mappings":"AAAA,GAAIA,YAAa,SAAUC,EAAQC,EAAUC,GAC3C,YAcF,SAASC,GAAMC,GACb,MAAOC,GAAWC,KAAKF,GAGzB,QAASG,GAAWC,EAASC,GAC3B,GAAIC,GAAQ,GAAIC,OAAMH,EAEtB,MADAE,GAAMD,KAAOA,GAAQ,QACfC,EAlBN,GAAIX,KACJE,GAASF,WAAaA,EAGtBA,EAAWa,EAAIX,EAASW,CAM1B,IAAIP,GAAaQ,MAAMC,UAAUX,KAyhE/B,OA1gEFJ,GAAWgB,OAASd,EAASe,MAAMD,OAOnChB,EAAWkB,UAAY,SAASC,EAAQC,GACtC,GAAKD,GAAWC,EAAhB,CACA,GAAIC,EAQJ,OALEA,GADEF,EAAOG,SAAYF,IAAcD,GAAOG,SAA4CC,SAA/BJ,EAAOG,QAAQF,GAC9DD,EAAOG,QAAQF,GAEfD,EAAOC,KAanBpB,EAAWwB,cAAgB,WAOzB,QAASC,GAAaC,EAAOC,EAAQC,GACnC,MAAOA,GAAUC,cALnB,GAAIC,GAAW,cASXN,EAAgB,SAASO,GAE3B,GAAIC,GAAa,KAAOD,EAAME,QAAQH,EAAUL,GAC5CS,EAASC,KAAKH,EAQlB,OALG7B,GAAEiC,WAAWD,KAAKE,UACnBF,KAAKE,QAAQC,MAAMH,KAAMI,WAIvBpC,EAAEiC,WAAWF,GAERA,EAAOI,MAAMH,KAAMhC,EAAEqC,KAAKD,YAFnC,OAMF,OAAOf,MAUTxB,EAAWyC,kBAAoB,SAAUC,GAGvC,QAASC,GAAWC,GAClBA,EAAKC,UAAW,EAChBC,EAAkBF,GAIpB,QAASG,GAAaH,GACpBA,EAAKI,aAAc,EACnBF,EAAkBF,GAIpB,QAASE,GAAkBF,GACrBA,EAAKC,UAAYD,EAAKI,aAAeC,EAAQL,IAC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B,WAAWgB,GAAcR,GAGjCA,GAGTwB,qBAAsB,SAASF,EAActB,EAAQyB,EAAKjU,GACxD,GAAIkU,GACAf,CAEArT,GAAEiC,WAAWkS,IAEfC,EAAKD,EACLd,GAAkB,GAETrT,EAAEiI,SAASkM,IAEpBC,EAAKD,EAAIE,OACThB,EAAkBc,EAAId,iBAItBA,GAAkB,EAIhBe,GACF1B,EAAOiB,cAAcS,EAAIlU,GAK3BwS,EAAOW,gBAAkBX,EAAOW,iBAAmBA,EAG/CX,EAAOW,kBAAoBX,EAAO4B,8BAGpC5B,EAAO4B,6BAA8B,EAGrCN,EAAa3B,eAAe,SAASlR,GAC/BuR,EAAOW,iBACTX,EAAOH,MAAMpR,SAWdtB,GACNmC,KAAMjC,SAAUC"} \ No newline at end of file diff --git a/lib/core/backbone.marionette.min.js b/lib/core/backbone.marionette.min.js index 0047785349..ea30d121d4 100644 --- a/lib/core/backbone.marionette.min.js +++ b/lib/core/backbone.marionette.min.js @@ -1,6 +1,6 @@ // MarionetteJS (Backbone.Marionette) // ---------------------------------- -// v1.5.1 +// v1.6.0 // // Copyright (c)2014 Derick Bailey, Muted Solutions, LLC. // Distributed under MIT license @@ -17,5 +17,5 @@ * https://github.com/marionettejs/backbone.wreqr/ */ -var Marionette=function(a,b,c){"use strict";function d(a){return g.call(a)}function e(a,b){var c=new Error(a);throw c.name=b||"Error",c}var f={};b.Marionette=f,f.$=b.$;var g=Array.prototype.slice;return f.extend=b.Model.extend,f.getOption=function(a,b){if(a&&b){var c;return c=a.options&&b in a.options&&void 0!==a.options[b]?a.options[b]:a[b]}},f.triggerMethod=function(){function a(a,b,c){return c.toUpperCase()}var b=/(^|:)(\w)/gi,d=function(d){var e="on"+d.replace(b,a),f=this[e];return c.isFunction(this.trigger)&&this.trigger.apply(this,arguments),c.isFunction(f)?f.apply(this,c.tail(arguments)):void 0};return d}(),f.MonitorDOMRefresh=function(a){function b(a){a._isShown=!0,e(a)}function d(a){a._isRendered=!0,e(a)}function e(a){a._isShown&&a._isRendered&&f(a)&&c.isFunction(a.triggerMethod)&&a.triggerMethod("dom:refresh")}function f(b){return a.contains(b.el)}return function(a){a.listenTo(a,"show",function(){b(a)}),a.listenTo(a,"render",function(){d(a)})}}(document.documentElement),function(a){function b(a,b,d,f){var g=f.split(/\s+/);c.each(g,function(c){var f=a[c];f||e("Method '"+c+"' was configured as an event handler, but does not exist."),a.listenTo(b,d,f,a)})}function d(a,b,c,d){a.listenTo(b,c,d,a)}function f(a,b,d,e){var f=e.split(/\s+/);c.each(f,function(c){var e=a[c];a.stopListening(b,d,e,a)})}function g(a,b,c,d){a.stopListening(b,c,d,a)}function h(a,b,d,e,f){b&&d&&(c.isFunction(d)&&(d=d.call(a)),c.each(d,function(d,g){c.isFunction(d)?e(a,b,g,d):f(a,b,g,d)}))}a.bindEntityEvents=function(a,c,e){h(a,c,e,d,b)},a.unbindEntityEvents=function(a,b,c){h(a,b,c,g,f)}}(f),f.Callbacks=function(){this._deferred=f.$.Deferred(),this._callbacks=[]},c.extend(f.Callbacks.prototype,{add:function(a,b){this._callbacks.push({cb:a,ctx:b}),this._deferred.done(function(c,d){b&&(c=b),a.call(c,d)})},run:function(a,b){this._deferred.resolve(b,a)},reset:function(){var a=this._callbacks;this._deferred=f.$.Deferred(),this._callbacks=[],c.each(a,function(a){this.add(a.cb,a.ctx)},this)}}),f.Controller=function(a){this.triggerMethod=f.triggerMethod,this.options=a||{},c.isFunction(this.initialize)&&this.initialize(this.options)},f.Controller.extend=f.extend,c.extend(f.Controller.prototype,b.Events,{close:function(){this.stopListening(),this.triggerMethod("close"),this.unbind()}}),f.Region=function(a){if(this.options=a||{},this.el=f.getOption(this,"el"),!this.el){var b=new Error("An 'el' must be specified for a region.");throw b.name="NoElError",b}if(this.initialize){var c=Array.prototype.slice.apply(arguments);this.initialize.apply(this,c)}},c.extend(f.Region,{buildRegion:function(a,b){var d="string"==typeof a,e="string"==typeof a.selector,f="undefined"==typeof a.regionType,g="function"==typeof a;if(!g&&!d&&!e)throw new Error("Region must be specified as a Region type, a selector string or an object with selector property");var h,i;d&&(h=a),a.selector&&(h=a.selector,delete a.selector),g&&(i=a),!g&&f&&(i=b),a.regionType&&(i=a.regionType,delete a.regionType),(d||g)&&(a={}),a.el=h;var j=new i(a);return a.parentEl&&(j.getEl=function(b){var d=a.parentEl;return c.isFunction(d)&&(d=d()),d.find(b)}),j}}),c.extend(f.Region.prototype,b.Events,{show:function(a){this.ensureEl();var b=a.isClosed||c.isUndefined(a.$el),d=a!==this.currentView;d&&this.close(),a.render(),(d||b)&&this.open(a),this.currentView=a,f.triggerMethod.call(this,"show",a),f.triggerMethod.call(a,"show")},ensureEl:function(){this.$el&&0!==this.$el.length||(this.$el=this.getEl(this.el))},getEl:function(a){return f.$(a)},open:function(a){this.$el.empty().append(a.el)},close:function(){var a=this.currentView;a&&!a.isClosed&&(a.close?a.close():a.remove&&a.remove(),f.triggerMethod.call(this,"close",a),delete this.currentView)},attachView:function(a){this.currentView=a},reset:function(){this.close(),delete this.$el}}),f.Region.extend=f.extend,f.RegionManager=function(a){var b=a.Controller.extend({constructor:function(b){this._regions={},a.Controller.prototype.constructor.call(this,b)},addRegions:function(a,b){var d={};return c.each(a,function(a,e){"string"==typeof a&&(a={selector:a}),a.selector&&(a=c.defaults({},a,b));var f=this.addRegion(e,a);d[e]=f},this),d},addRegion:function(b,d){var e,f=c.isObject(d),g=c.isString(d),h=!!d.selector;return e=g||f&&h?a.Region.buildRegion(d,a.Region):c.isFunction(d)?a.Region.buildRegion(d,a.Region):d,this._store(b,e),this.triggerMethod("region:add",b,e),e},get:function(a){return this._regions[a]},removeRegion:function(a){var b=this._regions[a];this._remove(a,b)},removeRegions:function(){c.each(this._regions,function(a,b){this._remove(b,a)},this)},closeRegions:function(){c.each(this._regions,function(a){a.close()},this)},close:function(){this.removeRegions();var b=Array.prototype.slice.call(arguments);a.Controller.prototype.close.apply(this,b)},_store:function(a,b){this._regions[a]=b,this._setLength()},_remove:function(a,b){b.close(),delete this._regions[a],this._setLength(),this.triggerMethod("region:remove",a,b)},_setLength:function(){this.length=c.size(this._regions)}}),d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return c.each(d,function(a){b.prototype[a]=function(){var b=c.values(this._regions),d=[b].concat(c.toArray(arguments));return c[a].apply(c,d)}}),b}(f),f.TemplateCache=function(a){this.templateId=a},c.extend(f.TemplateCache,{templateCaches:{},get:function(a){var b=this.templateCaches[a];return b||(b=new f.TemplateCache(a),this.templateCaches[a]=b),b.load()},clear:function(){var a,b=d(arguments),c=b.length;if(c>0)for(a=0;c>a;a++)delete this.templateCaches[b[a]];else this.templateCaches={}}}),c.extend(f.TemplateCache.prototype,{load:function(){if(this.compiledTemplate)return this.compiledTemplate;var a=this.loadTemplate(this.templateId);return this.compiledTemplate=this.compileTemplate(a),this.compiledTemplate},loadTemplate:function(a){var b=f.$(a).html();return b&&0!==b.length||e("Could not find template: '"+a+"'","NoTemplateError"),b},compileTemplate:function(a){return c.template(a)}}),f.Renderer={render:function(a,b){if(!a){var c=new Error("Cannot render the template since it's false, null or undefined.");throw c.name="TemplateNotFoundError",c}var d;return d="function"==typeof a?a:f.TemplateCache.get(a),d(b)}},f.View=b.View.extend({constructor:function(a){c.bindAll(this,"render");var d=Array.prototype.slice.apply(arguments);this.options=c.extend({},c.result(this,"options"),c.isFunction(a)?a.call(this):a),this.events=this.normalizeUIKeys(c.result(this,"events")),b.View.prototype.constructor.apply(this,d),f.MonitorDOMRefresh(this),this.listenTo(this,"show",this.onShowCalled,this)},triggerMethod:f.triggerMethod,getTemplate:function(){return f.getOption(this,"template")},mixinTemplateHelpers:function(a){a=a||{};var b=f.getOption(this,"templateHelpers");return c.isFunction(b)&&(b=b.call(this)),c.extend(a,b)},normalizeUIKeys:function(a){return"undefined"!=typeof a?(c.each(c.keys(a),function(b){var c=b.split("@ui.");2===c.length&&(a[c[0]+this.ui[c[1]]]=a[b],delete a[b])},this),a):void 0},configureTriggers:function(){if(this.triggers){var a={},b=this.normalizeUIKeys(c.result(this,"triggers"));return c.each(b,function(b,d){var e=c.isObject(b),f=e?b.event:b;a[d]=function(a){if(a){var c=a.preventDefault,d=a.stopPropagation,g=e?b.preventDefault:c,h=e?b.stopPropagation:d;g&&c&&c.apply(a),h&&d&&d.apply(a)}var i={view:this,model:this.model,collection:this.collection};this.triggerMethod(f,i)}},this),a}},delegateEvents:function(a){this._delegateDOMEvents(a),f.bindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.bindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},_delegateDOMEvents:function(a){a=a||this.events,c.isFunction(a)&&(a=a.call(this));var d={},e=this.configureTriggers();c.extend(d,a,e),b.View.prototype.delegateEvents.call(this,d)},undelegateEvents:function(){var a=Array.prototype.slice.call(arguments);b.View.prototype.undelegateEvents.apply(this,a),f.unbindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.unbindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},onShowCalled:function(){},close:function(){if(!this.isClosed){var a=this.triggerMethod("before:close");a!==!1&&(this.isClosed=!0,this.triggerMethod("close"),this.unbindUIElements(),this.remove())}},bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var a=c.result(this,"_uiBindings");this.ui={},c.each(c.keys(a),function(b){var c=a[b];this.ui[b]=this.$(c)},this)}},unbindUIElements:function(){this.ui&&this._uiBindings&&(c.each(this.ui,function(a,b){delete this.ui[b]},this),this.ui=this._uiBindings,delete this._uiBindings)}}),f.ItemView=f.View.extend({constructor:function(){f.View.prototype.constructor.apply(this,d(arguments))},serializeData:function(){var a={};return this.model?a=this.model.toJSON():this.collection&&(a={items:this.collection.toJSON()}),a},render:function(){this.isClosed=!1,this.triggerMethod("before:render",this),this.triggerMethod("item:before:render",this);var a=this.serializeData();a=this.mixinTemplateHelpers(a);var b=this.getTemplate(),c=f.Renderer.render(b,a);return this.$el.html(c),this.bindUIElements(),this.triggerMethod("render",this),this.triggerMethod("item:rendered",this),this},close:function(){this.isClosed||(this.triggerMethod("item:before:close"),f.View.prototype.close.apply(this,d(arguments)),this.triggerMethod("item:closed"))}}),f.CollectionView=f.View.extend({itemViewEventPrefix:"itemview",constructor:function(){this._initChildViewStorage(),f.View.prototype.constructor.apply(this,d(arguments)),this._initialEvents(),this.initRenderBuffer()},initRenderBuffer:function(){this.elBuffer=document.createDocumentFragment(),this._bufferedChildren=[]},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){this.isBuffering=!1,this.appendBuffer(this,this.elBuffer),this._triggerShowBufferedChildren(),this.initRenderBuffer()},_triggerShowBufferedChildren:function(){this._isShown&&(c.each(this._bufferedChildren,function(a){f.triggerMethod.call(a,"show")}),this._bufferedChildren=[])},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this.render,this))},addChildView:function(a){this.closeEmptyView();var b=this.getItemView(a),c=this.collection.indexOf(a);this.addItemView(a,b,c)},onShowCalled:function(){this.children.each(function(a){f.triggerMethod.call(a,"show")})},triggerBeforeRender:function(){this.triggerMethod("before:render",this),this.triggerMethod("collection:before:render",this)},triggerRendered:function(){this.triggerMethod("render",this),this.triggerMethod("collection:rendered",this)},render:function(){return this.isClosed=!1,this.triggerBeforeRender(),this._renderChildren(),this.triggerRendered(),this},_renderChildren:function(){this.startBuffering(),this.closeEmptyView(),this.closeChildren(),this.collection&&this.collection.length>0?this.showCollection():this.showEmptyView(),this.endBuffering()},showCollection:function(){var a;this.collection.each(function(b,c){a=this.getItemView(b),this.addItemView(b,a,c)},this)},showEmptyView:function(){var a=this.getEmptyView();if(a&&!this._showingEmptyView){this._showingEmptyView=!0;var c=new b.Model;this.addItemView(c,a,0)}},closeEmptyView:function(){this._showingEmptyView&&(this.closeChildren(),delete this._showingEmptyView)},getEmptyView:function(){return f.getOption(this,"emptyView")},getItemView:function(){var a=f.getOption(this,"itemView");return a||e("An `itemView` must be specified","NoItemViewError"),a},addItemView:function(a,b,d){var e=f.getOption(this,"itemViewOptions");c.isFunction(e)&&(e=e.call(this,a,d));var g=this.buildItemView(a,b,e);return this.addChildViewEventForwarding(g),this.triggerMethod("before:item:added",g),this.children.add(g),this.renderItemView(g,d),this._isShown&&!this.isBuffering&&f.triggerMethod.call(g,"show"),this.triggerMethod("after:item:added",g),g},addChildViewEventForwarding:function(a){var b=f.getOption(this,"itemViewEventPrefix");this.listenTo(a,"all",function(){var e=d(arguments),g=e[0],h=this.getItemEvents();e[0]=b+":"+g,e.splice(1,0,a),"undefined"!=typeof h&&c.isFunction(h[g])&&h[g].apply(this,e),f.triggerMethod.apply(this,e)},this)},getItemEvents:function(){return c.isFunction(this.itemEvents)?this.itemEvents.call(this):this.itemEvents},renderItemView:function(a,b){a.render(),this.appendHtml(this,a,b)},buildItemView:function(a,b,d){var e=c.extend({model:a},d);return new b(e)},removeItemView:function(a){var b=this.children.findByModel(a);this.removeChildView(b),this.checkEmpty()},removeChildView:function(a){a&&(this.stopListening(a),a.close?a.close():a.remove&&a.remove(),this.children.remove(a)),this.triggerMethod("item:removed",a)},checkEmpty:function(){this.collection&&0!==this.collection.length||this.showEmptyView()},appendBuffer:function(a,b){a.$el.append(b)},appendHtml:function(a,b){a.isBuffering?(a.elBuffer.appendChild(b.el),a._bufferedChildren.push(b)):a.$el.append(b.el)},_initChildViewStorage:function(){this.children=new b.ChildViewContainer},close:function(){this.isClosed||(this.triggerMethod("collection:before:close"),this.closeChildren(),this.triggerMethod("collection:closed"),f.View.prototype.close.apply(this,d(arguments)))},closeChildren:function(){this.children.each(function(a){this.removeChildView(a)},this),this.checkEmpty()}}),f.CompositeView=f.CollectionView.extend({constructor:function(){f.CollectionView.prototype.constructor.apply(this,d(arguments))},_initialEvents:function(){this.once("render",function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this._renderChildren,this))})},getItemView:function(){var a=f.getOption(this,"itemView")||this.constructor;return a||e("An `itemView` must be specified","NoItemViewError"),a},serializeData:function(){var a={};return this.model&&(a=this.model.toJSON()),a},render:function(){this.isRendered=!0,this.isClosed=!1,this.resetItemViewContainer(),this.triggerBeforeRender();var a=this.renderModel();return this.$el.html(a),this.bindUIElements(),this.triggerMethod("composite:model:rendered"),this._renderChildren(),this.triggerMethod("composite:rendered"),this.triggerRendered(),this},_renderChildren:function(){this.isRendered&&(f.CollectionView.prototype._renderChildren.call(this),this.triggerMethod("composite:collection:rendered"))},renderModel:function(){var a={};a=this.serializeData(),a=this.mixinTemplateHelpers(a);var b=this.getTemplate();return f.Renderer.render(b,a)},appendBuffer:function(a,b){var c=this.getItemViewContainer(a);c.append(b)},appendHtml:function(a,b){if(a.isBuffering)a.elBuffer.appendChild(b.el),a._bufferedChildren.push(b);else{var c=this.getItemViewContainer(a);c.append(b.el)}},getItemViewContainer:function(a){if("$itemViewContainer"in a)return a.$itemViewContainer;var b,d=f.getOption(a,"itemViewContainer");if(d){var g=c.isFunction(d)?d.call(this):d;b=a.$(g),b.length<=0&&e("The specified `itemViewContainer` was not found: "+a.itemViewContainer,"ItemViewContainerMissingError")}else b=a.$el;return a.$itemViewContainer=b,b},resetItemViewContainer:function(){this.$itemViewContainer&&delete this.$itemViewContainer}}),f.Layout=f.ItemView.extend({regionType:f.Region,constructor:function(a){a=a||{},this._firstRender=!0,this._initializeRegions(a),f.ItemView.prototype.constructor.call(this,a)},render:function(){this.isClosed&&this._initializeRegions(),this._firstRender?this._firstRender=!1:this.isClosed||this._reInitializeRegions();var a=Array.prototype.slice.apply(arguments),b=f.ItemView.prototype.render.apply(this,a);return b},close:function(){if(!this.isClosed){this.regionManager.close();var a=Array.prototype.slice.apply(arguments);f.ItemView.prototype.close.apply(this,a)}},addRegion:function(a,b){var c={};return c[a]=b,this._buildRegions(c)[a]},addRegions:function(a){return this.regions=c.extend({},this.regions,a),this._buildRegions(a)},removeRegion:function(a){return delete this.regions[a],this.regionManager.removeRegion(a)},_buildRegions:function(a){var b=this,c={regionType:f.getOption(this,"regionType"),parentEl:function(){return b.$el}};return this.regionManager.addRegions(a,c)},_initializeRegions:function(a){var b;this._initRegionManager(),b=c.isFunction(this.regions)?this.regions(a):this.regions||{},this.addRegions(b)},_reInitializeRegions:function(){this.regionManager.closeRegions(),this.regionManager.each(function(a){a.reset()})},_initRegionManager:function(){this.regionManager=new f.RegionManager,this.listenTo(this.regionManager,"region:add",function(a,b){this[a]=b,this.trigger("region:add",a,b)}),this.listenTo(this.regionManager,"region:remove",function(a,b){delete this[a],this.trigger("region:remove",a,b)})}}),f.AppRouter=b.Router.extend({constructor:function(a){b.Router.prototype.constructor.apply(this,d(arguments)),this.options=a||{};var c=f.getOption(this,"appRoutes"),e=this._getController();this.processAppRoutes(e,c)},appRoute:function(a,b){var c=this._getController();this._addAppRoute(c,a,b)},processAppRoutes:function(a,b){if(b){var d=c.keys(b).reverse();c.each(d,function(c){this._addAppRoute(a,c,b[c])},this)}},_getController:function(){return f.getOption(this,"controller")},_addAppRoute:function(a,b,d){var e=a[d];if(!e)throw new Error("Method '"+d+"' was not found on the controller");this.route(b,d,c.bind(e,a))}}),f.Application=function(a){this._initRegionManager(),this._initCallbacks=new f.Callbacks,this.vent=new b.Wreqr.EventAggregator,this.commands=new b.Wreqr.Commands,this.reqres=new b.Wreqr.RequestResponse,this.submodules={},c.extend(this,a),this.triggerMethod=f.triggerMethod},c.extend(f.Application.prototype,b.Events,{execute:function(){var a=Array.prototype.slice.apply(arguments);this.commands.execute.apply(this.commands,a)},request:function(){var a=Array.prototype.slice.apply(arguments);return this.reqres.request.apply(this.reqres,a)},addInitializer:function(a){this._initCallbacks.add(a)},start:function(a){this.triggerMethod("initialize:before",a),this._initCallbacks.run(a,this),this.triggerMethod("initialize:after",a),this.triggerMethod("start",a)},addRegions:function(a){return this._regionManager.addRegions(a)},closeRegions:function(){this._regionManager.closeRegions()},removeRegion:function(a){this._regionManager.removeRegion(a)},getRegion:function(a){return this._regionManager.get(a)},module:function(){var a=d(arguments);return a.unshift(this),f.Module.create.apply(f.Module,a)},_initRegionManager:function(){this._regionManager=new f.RegionManager,this.listenTo(this._regionManager,"region:add",function(a,b){this[a]=b}),this.listenTo(this._regionManager,"region:remove",function(a){delete this[a]})}}),f.Application.extend=f.extend,f.Module=function(a,b){this.moduleName=a,this.submodules={},this._setupInitializersAndFinalizers(),this.app=b,this.startWithParent=!0,this.triggerMethod=f.triggerMethod},c.extend(f.Module.prototype,b.Events,{addInitializer:function(a){this._initializerCallbacks.add(a)},addFinalizer:function(a){this._finalizerCallbacks.add(a)},start:function(a){this._isInitialized||(c.each(this.submodules,function(b){b.startWithParent&&b.start(a)}),this.triggerMethod("before:start",a),this._initializerCallbacks.run(a,this),this._isInitialized=!0,this.triggerMethod("start",a))},stop:function(){this._isInitialized&&(this._isInitialized=!1,f.triggerMethod.call(this,"before:stop"),c.each(this.submodules,function(a){a.stop()}),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),f.triggerMethod.call(this,"stop"))},addDefinition:function(a,b){this._runModuleDefinition(a,b)},_runModuleDefinition:function(a,d){if(a){var e=c.flatten([this,this.app,b,f,f.$,c,d]);a.apply(this,e)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new f.Callbacks,this._finalizerCallbacks=new f.Callbacks}}),c.extend(f.Module,{create:function(a,b,e){var f=a,g=d(arguments);g.splice(0,3),b=b.split(".");var h=b.length,i=[];return i[h-1]=e,c.each(b,function(b,c){var d=f;f=this._getModule(d,b,a),this._addModuleDefinition(d,f,i[c],g)},this),f},_getModule:function(a,b,c){var d=a[b];return d||(d=new f.Module(b,c),a[b]=d,a.submodules[b]=d),d},_addModuleDefinition:function(a,b,d,e){var f,g;c.isFunction(d)?(f=d,g=!0):c.isObject(d)?(f=d.define,g=d.startWithParent):g=!0,f&&b.addDefinition(f,e),b.startWithParent=b.startWithParent&&g,b.startWithParent&&!b.startWithParentIsConfigured&&(b.startWithParentIsConfigured=!0,a.addInitializer(function(a){b.startWithParent&&b.start(a)}))}}),f}(this,Backbone,_); +var Marionette=function(a,b,c){"use strict";function d(a){return g.call(a)}function e(a,b){var c=new Error(a);throw c.name=b||"Error",c}var f={};b.Marionette=f,f.$=b.$;var g=Array.prototype.slice;return f.extend=b.Model.extend,f.getOption=function(a,b){if(a&&b){var c;return c=a.options&&b in a.options&&void 0!==a.options[b]?a.options[b]:a[b]}},f.triggerMethod=function(){function a(a,b,c){return c.toUpperCase()}var b=/(^|:)(\w)/gi,d=function(d){var e="on"+d.replace(b,a),f=this[e];return c.isFunction(this.trigger)&&this.trigger.apply(this,arguments),c.isFunction(f)?f.apply(this,c.tail(arguments)):void 0};return d}(),f.MonitorDOMRefresh=function(a){function b(a){a._isShown=!0,e(a)}function d(a){a._isRendered=!0,e(a)}function e(a){a._isShown&&a._isRendered&&f(a)&&c.isFunction(a.triggerMethod)&&a.triggerMethod("dom:refresh")}function f(b){return a.contains(b.el)}return function(a){a.listenTo(a,"show",function(){b(a)}),a.listenTo(a,"render",function(){d(a)})}}(document.documentElement),function(a){function b(a,b,d,f){var g=f.split(/\s+/);c.each(g,function(c){var f=a[c];f||e("Method '"+c+"' was configured as an event handler, but does not exist."),a.listenTo(b,d,f,a)})}function d(a,b,c,d){a.listenTo(b,c,d,a)}function f(a,b,d,e){var f=e.split(/\s+/);c.each(f,function(c){var e=a[c];a.stopListening(b,d,e,a)})}function g(a,b,c,d){a.stopListening(b,c,d,a)}function h(a,b,d,e,f){b&&d&&(c.isFunction(d)&&(d=d.call(a)),c.each(d,function(d,g){c.isFunction(d)?e(a,b,g,d):f(a,b,g,d)}))}a.bindEntityEvents=function(a,c,e){h(a,c,e,d,b)},a.unbindEntityEvents=function(a,b,c){h(a,b,c,g,f)}}(f),f.Callbacks=function(){this._deferred=f.$.Deferred(),this._callbacks=[]},c.extend(f.Callbacks.prototype,{add:function(a,b){this._callbacks.push({cb:a,ctx:b}),this._deferred.done(function(c,d){b&&(c=b),a.call(c,d)})},run:function(a,b){this._deferred.resolve(b,a)},reset:function(){var a=this._callbacks;this._deferred=f.$.Deferred(),this._callbacks=[],c.each(a,function(a){this.add(a.cb,a.ctx)},this)}}),f.Controller=function(a){this.triggerMethod=f.triggerMethod,this.options=a||{},c.isFunction(this.initialize)&&this.initialize(this.options)},f.Controller.extend=f.extend,c.extend(f.Controller.prototype,b.Events,{close:function(){this.stopListening(),this.triggerMethod("close"),this.unbind()}}),f.Region=function(a){if(this.options=a||{},this.el=f.getOption(this,"el"),!this.el){var b=new Error("An 'el' must be specified for a region.");throw b.name="NoElError",b}if(this.initialize){var c=Array.prototype.slice.apply(arguments);this.initialize.apply(this,c)}},c.extend(f.Region,{buildRegion:function(a,b){var d="string"==typeof a,e="string"==typeof a.selector,f="undefined"==typeof a.regionType,g="function"==typeof a;if(!g&&!d&&!e)throw new Error("Region must be specified as a Region type, a selector string or an object with selector property");var h,i;d&&(h=a),a.selector&&(h=a.selector,delete a.selector),g&&(i=a),!g&&f&&(i=b),a.regionType&&(i=a.regionType,delete a.regionType),(d||g)&&(a={}),a.el=h;var j=new i(a);return a.parentEl&&(j.getEl=function(b){var d=a.parentEl;return c.isFunction(d)&&(d=d()),d.find(b)}),j}}),c.extend(f.Region.prototype,b.Events,{show:function(a){this.ensureEl();var b=a.isClosed||c.isUndefined(a.$el),d=a!==this.currentView;d&&this.close(),a.render(),(d||b)&&this.open(a),this.currentView=a,f.triggerMethod.call(this,"show",a),f.triggerMethod.call(a,"show")},ensureEl:function(){this.$el&&0!==this.$el.length||(this.$el=this.getEl(this.el))},getEl:function(a){return f.$(a)},open:function(a){this.$el.empty().append(a.el)},close:function(){var a=this.currentView;a&&!a.isClosed&&(a.close?a.close():a.remove&&a.remove(),f.triggerMethod.call(this,"close",a),delete this.currentView)},attachView:function(a){this.currentView=a},reset:function(){this.close(),delete this.$el}}),f.Region.extend=f.extend,f.RegionManager=function(a){var b=a.Controller.extend({constructor:function(b){this._regions={},a.Controller.prototype.constructor.call(this,b)},addRegions:function(a,b){var d={};return c.each(a,function(a,e){"string"==typeof a&&(a={selector:a}),a.selector&&(a=c.defaults({},a,b));var f=this.addRegion(e,a);d[e]=f},this),d},addRegion:function(b,d){var e,f=c.isObject(d),g=c.isString(d),h=!!d.selector;return e=g||f&&h?a.Region.buildRegion(d,a.Region):c.isFunction(d)?a.Region.buildRegion(d,a.Region):d,this._store(b,e),this.triggerMethod("region:add",b,e),e},get:function(a){return this._regions[a]},removeRegion:function(a){var b=this._regions[a];this._remove(a,b)},removeRegions:function(){c.each(this._regions,function(a,b){this._remove(b,a)},this)},closeRegions:function(){c.each(this._regions,function(a){a.close()},this)},close:function(){this.removeRegions();var b=Array.prototype.slice.call(arguments);a.Controller.prototype.close.apply(this,b)},_store:function(a,b){this._regions[a]=b,this._setLength()},_remove:function(a,b){b.close(),delete this._regions[a],this._setLength(),this.triggerMethod("region:remove",a,b)},_setLength:function(){this.length=c.size(this._regions)}}),d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return c.each(d,function(a){b.prototype[a]=function(){var b=c.values(this._regions),d=[b].concat(c.toArray(arguments));return c[a].apply(c,d)}}),b}(f),f.TemplateCache=function(a){this.templateId=a},c.extend(f.TemplateCache,{templateCaches:{},get:function(a){var b=this.templateCaches[a];return b||(b=new f.TemplateCache(a),this.templateCaches[a]=b),b.load()},clear:function(){var a,b=d(arguments),c=b.length;if(c>0)for(a=0;c>a;a++)delete this.templateCaches[b[a]];else this.templateCaches={}}}),c.extend(f.TemplateCache.prototype,{load:function(){if(this.compiledTemplate)return this.compiledTemplate;var a=this.loadTemplate(this.templateId);return this.compiledTemplate=this.compileTemplate(a),this.compiledTemplate},loadTemplate:function(a){var b=f.$(a).html();return b&&0!==b.length||e("Could not find template: '"+a+"'","NoTemplateError"),b},compileTemplate:function(a){return c.template(a)}}),f.Renderer={render:function(a,b){if(!a){var c=new Error("Cannot render the template since it's false, null or undefined.");throw c.name="TemplateNotFoundError",c}var d;return d="function"==typeof a?a:f.TemplateCache.get(a),d(b)}},f.View=b.View.extend({constructor:function(a){c.bindAll(this,"render");var d=Array.prototype.slice.apply(arguments);this.options=c.extend({},c.result(this,"options"),c.isFunction(a)?a.call(this):a),this.events=this.normalizeUIKeys(c.result(this,"events")),b.View.prototype.constructor.apply(this,d),f.MonitorDOMRefresh(this),this.listenTo(this,"show",this.onShowCalled,this)},triggerMethod:f.triggerMethod,getTemplate:function(){return f.getOption(this,"template")},mixinTemplateHelpers:function(a){a=a||{};var b=f.getOption(this,"templateHelpers");return c.isFunction(b)&&(b=b.call(this)),c.extend(a,b)},normalizeUIKeys:function(a){return"undefined"!=typeof a?(c.each(c.keys(a),function(b){var c=b.split("@ui.");2===c.length&&(a[c[0]+this.ui[c[1]]]=a[b],delete a[b])},this),a):void 0},configureTriggers:function(){if(this.triggers){var a={},b=this.normalizeUIKeys(c.result(this,"triggers"));return c.each(b,function(b,d){var e=c.isObject(b),f=e?b.event:b;a[d]=function(a){if(a){var c=a.preventDefault,d=a.stopPropagation,g=e?b.preventDefault:c,h=e?b.stopPropagation:d;g&&c&&c.apply(a),h&&d&&d.apply(a)}var i={view:this,model:this.model,collection:this.collection};this.triggerMethod(f,i)}},this),a}},delegateEvents:function(a){this._delegateDOMEvents(a),f.bindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.bindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},_delegateDOMEvents:function(a){a=a||this.events,c.isFunction(a)&&(a=a.call(this));var d={},e=this.configureTriggers();c.extend(d,a,e),b.View.prototype.delegateEvents.call(this,d)},undelegateEvents:function(){var a=Array.prototype.slice.call(arguments);b.View.prototype.undelegateEvents.apply(this,a),f.unbindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.unbindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},onShowCalled:function(){},close:function(){if(!this.isClosed){var a=this.triggerMethod("before:close");a!==!1&&(this.isClosed=!0,this.triggerMethod("close"),this.unbindUIElements(),this.remove())}},bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var a=c.result(this,"_uiBindings");this.ui={},c.each(c.keys(a),function(b){var c=a[b];this.ui[b]=this.$(c)},this)}},unbindUIElements:function(){this.ui&&this._uiBindings&&(c.each(this.ui,function(a,b){delete this.ui[b]},this),this.ui=this._uiBindings,delete this._uiBindings)}}),f.ItemView=f.View.extend({constructor:function(){f.View.prototype.constructor.apply(this,d(arguments))},serializeData:function(){var a={};return this.model?a=this.model.toJSON():this.collection&&(a={items:this.collection.toJSON()}),a},render:function(){this.isClosed=!1,this.triggerMethod("before:render",this),this.triggerMethod("item:before:render",this);var a=this.serializeData();a=this.mixinTemplateHelpers(a);var b=this.getTemplate(),c=f.Renderer.render(b,a);return this.$el.html(c),this.bindUIElements(),this.triggerMethod("render",this),this.triggerMethod("item:rendered",this),this},close:function(){this.isClosed||(this.triggerMethod("item:before:close"),f.View.prototype.close.apply(this,d(arguments)),this.triggerMethod("item:closed"))}}),f.CollectionView=f.View.extend({itemViewEventPrefix:"itemview",constructor:function(){this._initChildViewStorage(),f.View.prototype.constructor.apply(this,d(arguments)),this._initialEvents(),this.initRenderBuffer()},initRenderBuffer:function(){this.elBuffer=document.createDocumentFragment(),this._bufferedChildren=[]},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){this.isBuffering=!1,this.appendBuffer(this,this.elBuffer),this._triggerShowBufferedChildren(),this.initRenderBuffer()},_triggerShowBufferedChildren:function(){this._isShown&&(c.each(this._bufferedChildren,function(a){f.triggerMethod.call(a,"show")}),this._bufferedChildren=[])},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this.render,this))},addChildView:function(a){this.closeEmptyView();var b=this.getItemView(a),c=this.collection.indexOf(a);this.addItemView(a,b,c)},onShowCalled:function(){this.children.each(function(a){f.triggerMethod.call(a,"show")})},triggerBeforeRender:function(){this.triggerMethod("before:render",this),this.triggerMethod("collection:before:render",this)},triggerRendered:function(){this.triggerMethod("render",this),this.triggerMethod("collection:rendered",this)},render:function(){return this.isClosed=!1,this.triggerBeforeRender(),this._renderChildren(),this.triggerRendered(),this},_renderChildren:function(){this.startBuffering(),this.closeEmptyView(),this.closeChildren(),this.isEmpty(this.collection)?this.showEmptyView():this.showCollection(),this.endBuffering()},showCollection:function(){var a;this.collection.each(function(b,c){a=this.getItemView(b),this.addItemView(b,a,c)},this)},showEmptyView:function(){var a=this.getEmptyView();if(a&&!this._showingEmptyView){this._showingEmptyView=!0;var c=new b.Model;this.addItemView(c,a,0)}},closeEmptyView:function(){this._showingEmptyView&&(this.closeChildren(),delete this._showingEmptyView)},getEmptyView:function(){return f.getOption(this,"emptyView")},getItemView:function(){var a=f.getOption(this,"itemView");return a||e("An `itemView` must be specified","NoItemViewError"),a},addItemView:function(a,b,d){var e=f.getOption(this,"itemViewOptions");c.isFunction(e)&&(e=e.call(this,a,d));var g=this.buildItemView(a,b,e);return this.addChildViewEventForwarding(g),this.triggerMethod("before:item:added",g),this.children.add(g),this.renderItemView(g,d),this._isShown&&!this.isBuffering&&f.triggerMethod.call(g,"show"),this.triggerMethod("after:item:added",g),g},addChildViewEventForwarding:function(a){var b=f.getOption(this,"itemViewEventPrefix");this.listenTo(a,"all",function(){var e=d(arguments),g=e[0],h=this.getItemEvents();e[0]=b+":"+g,e.splice(1,0,a),"undefined"!=typeof h&&c.isFunction(h[g])&&h[g].apply(this,e),f.triggerMethod.apply(this,e)},this)},getItemEvents:function(){return c.isFunction(this.itemEvents)?this.itemEvents.call(this):this.itemEvents},renderItemView:function(a,b){a.render(),this.appendHtml(this,a,b)},buildItemView:function(a,b,d){var e=c.extend({model:a},d);return new b(e)},removeItemView:function(a){var b=this.children.findByModel(a);this.removeChildView(b),this.checkEmpty()},removeChildView:function(a){a&&(this.stopListening(a),a.close?a.close():a.remove&&a.remove(),this.children.remove(a)),this.triggerMethod("item:removed",a)},isEmpty:function(){return!this.collection||0===this.collection.length},checkEmpty:function(){this.isEmpty(this.collection)&&this.showEmptyView()},appendBuffer:function(a,b){a.$el.append(b)},appendHtml:function(a,b){a.isBuffering?(a.elBuffer.appendChild(b.el),a._bufferedChildren.push(b)):a.$el.append(b.el)},_initChildViewStorage:function(){this.children=new b.ChildViewContainer},close:function(){this.isClosed||(this.triggerMethod("collection:before:close"),this.closeChildren(),this.triggerMethod("collection:closed"),f.View.prototype.close.apply(this,d(arguments)))},closeChildren:function(){this.children.each(function(a){this.removeChildView(a)},this),this.checkEmpty()}}),f.CompositeView=f.CollectionView.extend({constructor:function(){f.CollectionView.prototype.constructor.apply(this,d(arguments))},_initialEvents:function(){this.once("render",function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this._renderChildren,this))})},getItemView:function(){var a=f.getOption(this,"itemView")||this.constructor;return a||e("An `itemView` must be specified","NoItemViewError"),a},serializeData:function(){var a={};return this.model&&(a=this.model.toJSON()),a},render:function(){this.isRendered=!0,this.isClosed=!1,this.resetItemViewContainer(),this.triggerBeforeRender();var a=this.renderModel();return this.$el.html(a),this.bindUIElements(),this.triggerMethod("composite:model:rendered"),this._renderChildren(),this.triggerMethod("composite:rendered"),this.triggerRendered(),this},_renderChildren:function(){this.isRendered&&(this.triggerMethod("composite:collection:before:render"),f.CollectionView.prototype._renderChildren.call(this),this.triggerMethod("composite:collection:rendered"))},renderModel:function(){var a={};a=this.serializeData(),a=this.mixinTemplateHelpers(a);var b=this.getTemplate();return f.Renderer.render(b,a)},appendBuffer:function(a,b){var c=this.getItemViewContainer(a);c.append(b)},appendHtml:function(a,b){if(a.isBuffering)a.elBuffer.appendChild(b.el),a._bufferedChildren.push(b);else{var c=this.getItemViewContainer(a);c.append(b.el)}},getItemViewContainer:function(a){if("$itemViewContainer"in a)return a.$itemViewContainer;var b,d=f.getOption(a,"itemViewContainer");if(d){var g=c.isFunction(d)?d.call(this):d;b=a.$(g),b.length<=0&&e("The specified `itemViewContainer` was not found: "+a.itemViewContainer,"ItemViewContainerMissingError")}else b=a.$el;return a.$itemViewContainer=b,b},resetItemViewContainer:function(){this.$itemViewContainer&&delete this.$itemViewContainer}}),f.Layout=f.ItemView.extend({regionType:f.Region,constructor:function(a){a=a||{},this._firstRender=!0,this._initializeRegions(a),f.ItemView.prototype.constructor.call(this,a)},render:function(){this.isClosed&&this._initializeRegions(),this._firstRender?this._firstRender=!1:this.isClosed||this._reInitializeRegions();var a=Array.prototype.slice.apply(arguments),b=f.ItemView.prototype.render.apply(this,a);return b},close:function(){if(!this.isClosed){this.regionManager.close();var a=Array.prototype.slice.apply(arguments);f.ItemView.prototype.close.apply(this,a)}},addRegion:function(a,b){var c={};return c[a]=b,this._buildRegions(c)[a]},addRegions:function(a){return this.regions=c.extend({},this.regions,a),this._buildRegions(a)},removeRegion:function(a){return delete this.regions[a],this.regionManager.removeRegion(a)},_buildRegions:function(a){var b=this,c={regionType:f.getOption(this,"regionType"),parentEl:function(){return b.$el}};return this.regionManager.addRegions(a,c)},_initializeRegions:function(a){var b;this._initRegionManager(),b=c.isFunction(this.regions)?this.regions(a):this.regions||{},this.addRegions(b)},_reInitializeRegions:function(){this.regionManager.closeRegions(),this.regionManager.each(function(a){a.reset()})},_initRegionManager:function(){this.regionManager=new f.RegionManager,this.listenTo(this.regionManager,"region:add",function(a,b){this[a]=b,this.trigger("region:add",a,b)}),this.listenTo(this.regionManager,"region:remove",function(a,b){delete this[a],this.trigger("region:remove",a,b)})}}),f.AppRouter=b.Router.extend({constructor:function(a){b.Router.prototype.constructor.apply(this,d(arguments)),this.options=a||{};var c=f.getOption(this,"appRoutes"),e=this._getController();this.processAppRoutes(e,c)},appRoute:function(a,b){var c=this._getController();this._addAppRoute(c,a,b)},processAppRoutes:function(a,b){if(b){var d=c.keys(b).reverse();c.each(d,function(c){this._addAppRoute(a,c,b[c])},this)}},_getController:function(){return f.getOption(this,"controller")},_addAppRoute:function(a,b,d){var e=a[d];if(!e)throw new Error("Method '"+d+"' was not found on the controller");this.route(b,d,c.bind(e,a))}}),f.Application=function(a){this._initRegionManager(),this._initCallbacks=new f.Callbacks,this.vent=new b.Wreqr.EventAggregator,this.commands=new b.Wreqr.Commands,this.reqres=new b.Wreqr.RequestResponse,this.submodules={},c.extend(this,a),this.triggerMethod=f.triggerMethod},c.extend(f.Application.prototype,b.Events,{execute:function(){var a=Array.prototype.slice.apply(arguments);this.commands.execute.apply(this.commands,a)},request:function(){var a=Array.prototype.slice.apply(arguments);return this.reqres.request.apply(this.reqres,a)},addInitializer:function(a){this._initCallbacks.add(a)},start:function(a){this.triggerMethod("initialize:before",a),this._initCallbacks.run(a,this),this.triggerMethod("initialize:after",a),this.triggerMethod("start",a)},addRegions:function(a){return this._regionManager.addRegions(a)},closeRegions:function(){this._regionManager.closeRegions()},removeRegion:function(a){this._regionManager.removeRegion(a)},getRegion:function(a){return this._regionManager.get(a)},module:function(a,b){var c=f.Module;b&&(c=b.moduleClass||c);var e=d(arguments);return e.unshift(this),c.create.apply(c,e)},_initRegionManager:function(){this._regionManager=new f.RegionManager,this.listenTo(this._regionManager,"region:add",function(a,b){this[a]=b}),this.listenTo(this._regionManager,"region:remove",function(a){delete this[a]})}}),f.Application.extend=f.extend,f.Module=function(a,b,d){this.moduleName=a,this.options=c.extend({},this.options,d),this.initialize=d.initialize||this.initialize,this.submodules={},this._setupInitializersAndFinalizers(),this.app=b,this.startWithParent=!0,this.triggerMethod=f.triggerMethod,c.isFunction(this.initialize)&&this.initialize(this.options)},f.Module.extend=f.extend,c.extend(f.Module.prototype,b.Events,{initialize:function(){},addInitializer:function(a){this._initializerCallbacks.add(a)},addFinalizer:function(a){this._finalizerCallbacks.add(a)},start:function(a){this._isInitialized||(c.each(this.submodules,function(b){b.startWithParent&&b.start(a)}),this.triggerMethod("before:start",a),this._initializerCallbacks.run(a,this),this._isInitialized=!0,this.triggerMethod("start",a))},stop:function(){this._isInitialized&&(this._isInitialized=!1,f.triggerMethod.call(this,"before:stop"),c.each(this.submodules,function(a){a.stop()}),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),f.triggerMethod.call(this,"stop"))},addDefinition:function(a,b){this._runModuleDefinition(a,b)},_runModuleDefinition:function(a,d){if(a){var e=c.flatten([this,this.app,b,f,f.$,c,d]);a.apply(this,e)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new f.Callbacks,this._finalizerCallbacks=new f.Callbacks}}),c.extend(f.Module,{create:function(a,b,e){var f=a,g=d(arguments);g.splice(0,3),b=b.split(".");var h=b.length,i=[];return i[h-1]=e,c.each(b,function(b,c){var d=f;f=this._getModule(d,b,a,e),this._addModuleDefinition(d,f,i[c],g)},this),f},_getModule:function(a,b,d,e){var g=f.Module,h=c.extend({},e);e&&(g=e.moduleClass||g);var i=a[b];return i||(i=new g(b,d,h),a[b]=i,a.submodules[b]=i),i},_addModuleDefinition:function(a,b,d,e){var f,g;c.isFunction(d)?(f=d,g=!0):c.isObject(d)?(f=d.define,g=d.startWithParent):g=!0,f&&b.addDefinition(f,e),b.startWithParent=b.startWithParent&&g,b.startWithParent&&!b.startWithParentIsConfigured&&(b.startWithParentIsConfigured=!0,a.addInitializer(function(a){b.startWithParent&&b.start(a)}))}}),f}(this,Backbone,_); //# sourceMappingURL=backbone.marionette.map \ No newline at end of file diff --git a/package.json b/package.json index b3734d4019..ab2dcad38b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "backbone.marionette", "description": "Make your Backbone.js apps dance!", - "version": "1.5.1", + "version": "1.6.0", "homepage": "https://github.com/marionettejs/backbone.marionette", "main": "lib/core/amd/backbone.marionette.js", "keywords": [ diff --git a/reports/coverage.json b/reports/coverage.json index b39ad07f73..55eb1b7993 100644 --- a/reports/coverage.json +++ b/reports/coverage.json @@ -1 +1 @@ -{"./src/build/marionette.core.js":{"path":"./src/build/marionette.core.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1},"b":{},"f":{"1":1},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":47}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":36,"column":22}},"2":{"start":{"line":5,"column":2},"end":{"line":5,"column":22}},"3":{"start":{"line":6,"column":2},"end":{"line":6,"column":35}},"4":{"start":{"line":9,"column":2},"end":{"line":9,"column":28}},"5":{"start":{"line":35,"column":2},"end":{"line":35,"column":20}}},"branchMap":{}},"./spec/javascripts/support/marionette.support.js":{"path":"./spec/javascripts/support/marionette.support.js","s":{"1":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}}},"branchMap":{}},"./src/marionette.helpers.js":{"path":"./src/marionette.helpers.js","s":{"1":1,"2":1,"3":1347,"4":1,"5":3,"6":3,"7":3,"8":1,"9":1,"10":3693,"11":0,"12":3693,"13":3693,"14":183,"15":3510,"16":3693},"b":{"1":[3,1],"2":[0,3693],"3":[3693,3693],"4":[183,3510],"5":[3693,3655,186]},"f":{"1":1347,"2":3,"3":3693},"fnMap":{"1":{"name":"slice","line":6,"loc":{"start":{"line":6,"column":0},"end":{"line":6,"column":21}}},"2":{"name":"throwError","line":10,"loc":{"start":{"line":10,"column":0},"end":{"line":10,"column":35}}},"3":{"name":"(anonymous_3)","line":27,"loc":{"start":{"line":27,"column":23},"end":{"line":27,"column":51}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":5,"column":39}},"2":{"start":{"line":6,"column":0},"end":{"line":8,"column":1}},"3":{"start":{"line":7,"column":2},"end":{"line":7,"column":31}},"4":{"start":{"line":10,"column":0},"end":{"line":14,"column":1}},"5":{"start":{"line":11,"column":2},"end":{"line":11,"column":33}},"6":{"start":{"line":12,"column":2},"end":{"line":12,"column":31}},"7":{"start":{"line":13,"column":2},"end":{"line":13,"column":14}},"8":{"start":{"line":20,"column":0},"end":{"line":20,"column":42}},"9":{"start":{"line":27,"column":0},"end":{"line":38,"column":2}},"10":{"start":{"line":28,"column":2},"end":{"line":28,"column":40}},"11":{"start":{"line":28,"column":31},"end":{"line":28,"column":38}},"12":{"start":{"line":29,"column":2},"end":{"line":29,"column":12}},"13":{"start":{"line":31,"column":2},"end":{"line":35,"column":3}},"14":{"start":{"line":32,"column":4},"end":{"line":32,"column":39}},"15":{"start":{"line":34,"column":4},"end":{"line":34,"column":31}},"16":{"start":{"line":37,"column":2},"end":{"line":37,"column":15}}},"branchMap":{"1":{"line":12,"type":"binary-expr","locations":[{"start":{"line":12,"column":15},"end":{"line":12,"column":19}},{"start":{"line":12,"column":23},"end":{"line":12,"column":30}}]},"2":{"line":28,"type":"if","locations":[{"start":{"line":28,"column":2},"end":{"line":28,"column":2}},{"start":{"line":28,"column":2},"end":{"line":28,"column":2}}]},"3":{"line":28,"type":"binary-expr","locations":[{"start":{"line":28,"column":6},"end":{"line":28,"column":13}},{"start":{"line":28,"column":17},"end":{"line":28,"column":28}}]},"4":{"line":31,"type":"if","locations":[{"start":{"line":31,"column":2},"end":{"line":31,"column":2}},{"start":{"line":31,"column":2},"end":{"line":31,"column":2}}]},"5":{"line":31,"type":"binary-expr","locations":[{"start":{"line":31,"column":6},"end":{"line":31,"column":20}},{"start":{"line":31,"column":25},"end":{"line":31,"column":53}},{"start":{"line":31,"column":59},"end":{"line":31,"column":99}}]}}},"./src/marionette.triggermethod.js":{"path":"./src/marionette.triggermethod.js","s":{"1":1,"2":1,"3":1,"4":7430,"5":1,"6":3477,"7":3477,"8":3477,"9":3476,"10":3477,"11":389,"12":1},"b":{"1":[3476,1],"2":[389,3088]},"f":{"1":1,"2":7430,"3":3477},"fnMap":{"1":{"name":"(anonymous_1)","line":8,"loc":{"start":{"line":8,"column":28},"end":{"line":8,"column":38}}},"2":{"name":"getEventName","line":15,"loc":{"start":{"line":15,"column":2},"end":{"line":15,"column":50}}},"3":{"name":"(anonymous_3)","line":20,"loc":{"start":{"line":20,"column":22},"end":{"line":20,"column":38}}}},"statementMap":{"1":{"start":{"line":8,"column":0},"end":{"line":38,"column":5}},"2":{"start":{"line":11,"column":2},"end":{"line":11,"column":31}},"3":{"start":{"line":15,"column":2},"end":{"line":17,"column":3}},"4":{"start":{"line":16,"column":4},"end":{"line":16,"column":35}},"5":{"start":{"line":20,"column":2},"end":{"line":35,"column":4}},"6":{"start":{"line":22,"column":4},"end":{"line":22,"column":66}},"7":{"start":{"line":23,"column":4},"end":{"line":23,"column":34}},"8":{"start":{"line":26,"column":4},"end":{"line":28,"column":5}},"9":{"start":{"line":27,"column":6},"end":{"line":27,"column":42}},"10":{"start":{"line":31,"column":4},"end":{"line":34,"column":5}},"11":{"start":{"line":33,"column":6},"end":{"line":33,"column":51}},"12":{"start":{"line":37,"column":2},"end":{"line":37,"column":23}}},"branchMap":{"1":{"line":26,"type":"if","locations":[{"start":{"line":26,"column":4},"end":{"line":26,"column":4}},{"start":{"line":26,"column":4},"end":{"line":26,"column":4}}]},"2":{"line":31,"type":"if","locations":[{"start":{"line":31,"column":4},"end":{"line":31,"column":4}},{"start":{"line":31,"column":4},"end":{"line":31,"column":4}}]}}},"./src/marionette.bindEntityEvents.js":{"path":"./src/marionette.bindEntityEvents.js","s":{"1":1,"2":1,"3":25,"4":25,"5":29,"6":29,"7":1,"8":28,"9":1,"10":8,"11":1,"12":33,"13":33,"14":37,"15":37,"16":1,"17":8,"18":1,"19":2251,"20":2177,"21":74,"22":8,"23":74,"24":74,"25":16,"26":58,"27":1,"28":1121,"29":1,"30":1130},"b":{"1":[1,28],"2":[2177,74],"3":[2251,1032],"4":[8,66],"5":[16,58]},"f":{"1":1,"2":25,"3":29,"4":8,"5":33,"6":37,"7":8,"8":2251,"9":74,"10":1121,"11":1130},"fnMap":{"1":{"name":"(anonymous_1)","line":17,"loc":{"start":{"line":17,"column":1},"end":{"line":17,"column":21}}},"2":{"name":"bindFromStrings","line":22,"loc":{"start":{"line":22,"column":2},"end":{"line":22,"column":56}}},"3":{"name":"(anonymous_3)","line":25,"loc":{"start":{"line":25,"column":23},"end":{"line":25,"column":44}}},"4":{"name":"bindToFunction","line":37,"loc":{"start":{"line":37,"column":2},"end":{"line":37,"column":54}}},"5":{"name":"unbindFromStrings","line":43,"loc":{"start":{"line":43,"column":2},"end":{"line":43,"column":58}}},"6":{"name":"(anonymous_6)","line":46,"loc":{"start":{"line":46,"column":23},"end":{"line":46,"column":44}}},"7":{"name":"unbindToFunction","line":53,"loc":{"start":{"line":53,"column":2},"end":{"line":53,"column":56}}},"8":{"name":"iterateEvents","line":59,"loc":{"start":{"line":59,"column":2},"end":{"line":59,"column":84}}},"9":{"name":"(anonymous_9)","line":68,"loc":{"start":{"line":68,"column":21},"end":{"line":68,"column":43}}},"10":{"name":"(anonymous_10)","line":82,"loc":{"start":{"line":82,"column":32},"end":{"line":82,"column":66}}},"11":{"name":"(anonymous_11)","line":86,"loc":{"start":{"line":86,"column":34},"end":{"line":86,"column":68}}}},"statementMap":{"1":{"start":{"line":17,"column":0},"end":{"line":90,"column":15}},"2":{"start":{"line":22,"column":2},"end":{"line":34,"column":3}},"3":{"start":{"line":23,"column":4},"end":{"line":23,"column":43}},"4":{"start":{"line":25,"column":4},"end":{"line":33,"column":7}},"5":{"start":{"line":27,"column":6},"end":{"line":27,"column":38}},"6":{"start":{"line":28,"column":6},"end":{"line":30,"column":7}},"7":{"start":{"line":29,"column":8},"end":{"line":29,"column":104}},"8":{"start":{"line":32,"column":6},"end":{"line":32,"column":51}},"9":{"start":{"line":37,"column":2},"end":{"line":39,"column":3}},"10":{"start":{"line":38,"column":6},"end":{"line":38,"column":51}},"11":{"start":{"line":43,"column":2},"end":{"line":50,"column":3}},"12":{"start":{"line":44,"column":4},"end":{"line":44,"column":43}},"13":{"start":{"line":46,"column":4},"end":{"line":49,"column":7}},"14":{"start":{"line":47,"column":6},"end":{"line":47,"column":38}},"15":{"start":{"line":48,"column":6},"end":{"line":48,"column":56}},"16":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"17":{"start":{"line":54,"column":6},"end":{"line":54,"column":56}},"18":{"start":{"line":59,"column":2},"end":{"line":79,"column":3}},"19":{"start":{"line":60,"column":4},"end":{"line":60,"column":41}},"20":{"start":{"line":60,"column":32},"end":{"line":60,"column":39}},"21":{"start":{"line":63,"column":4},"end":{"line":65,"column":5}},"22":{"start":{"line":64,"column":6},"end":{"line":64,"column":39}},"23":{"start":{"line":68,"column":4},"end":{"line":78,"column":7}},"24":{"start":{"line":72,"column":6},"end":{"line":76,"column":7}},"25":{"start":{"line":73,"column":8},"end":{"line":73,"column":55}},"26":{"start":{"line":75,"column":8},"end":{"line":75,"column":53}},"27":{"start":{"line":82,"column":2},"end":{"line":84,"column":4}},"28":{"start":{"line":83,"column":4},"end":{"line":83,"column":77}},"29":{"start":{"line":86,"column":2},"end":{"line":88,"column":4}},"30":{"start":{"line":87,"column":4},"end":{"line":87,"column":81}}},"branchMap":{"1":{"line":28,"type":"if","locations":[{"start":{"line":28,"column":6},"end":{"line":28,"column":6}},{"start":{"line":28,"column":6},"end":{"line":28,"column":6}}]},"2":{"line":60,"type":"if","locations":[{"start":{"line":60,"column":4},"end":{"line":60,"column":4}},{"start":{"line":60,"column":4},"end":{"line":60,"column":4}}]},"3":{"line":60,"type":"binary-expr","locations":[{"start":{"line":60,"column":8},"end":{"line":60,"column":15}},{"start":{"line":60,"column":19},"end":{"line":60,"column":28}}]},"4":{"line":63,"type":"if","locations":[{"start":{"line":63,"column":4},"end":{"line":63,"column":4}},{"start":{"line":63,"column":4},"end":{"line":63,"column":4}}]},"5":{"line":72,"type":"if","locations":[{"start":{"line":72,"column":6},"end":{"line":72,"column":6}},{"start":{"line":72,"column":6},"end":{"line":72,"column":6}}]}}},"./src/marionette.controller.js":{"path":"./src/marionette.controller.js","s":{"1":1,"2":179,"3":179,"4":179,"5":7,"6":1,"7":1,"8":12,"9":12,"10":12},"b":{"1":[179,174],"2":[7,172]},"f":{"1":179,"2":12},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":24},"end":{"line":7,"column":41}}},"2":{"name":"(anonymous_2)","line":23,"loc":{"start":{"line":23,"column":9},"end":{"line":23,"column":19}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":14,"column":2}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":48}},"3":{"start":{"line":9,"column":2},"end":{"line":9,"column":31}},"4":{"start":{"line":11,"column":2},"end":{"line":13,"column":3}},"5":{"start":{"line":12,"column":4},"end":{"line":12,"column":34}},"6":{"start":{"line":16,"column":0},"end":{"line":16,"column":49}},"7":{"start":{"line":22,"column":0},"end":{"line":28,"column":3}},"8":{"start":{"line":24,"column":4},"end":{"line":24,"column":25}},"9":{"start":{"line":25,"column":4},"end":{"line":25,"column":32}},"10":{"start":{"line":26,"column":4},"end":{"line":26,"column":18}}},"branchMap":{"1":{"line":9,"type":"binary-expr","locations":[{"start":{"line":9,"column":17},"end":{"line":9,"column":24}},{"start":{"line":9,"column":28},"end":{"line":9,"column":30}}]},"2":{"line":11,"type":"if","locations":[{"start":{"line":11,"column":2},"end":{"line":11,"column":2}},{"start":{"line":11,"column":2},"end":{"line":11,"column":2}}]}}},"./src/marionette.domRefresh.js":{"path":"./src/marionette.domRefresh.js","s":{"1":1,"2":1,"3":41,"4":41,"5":1,"6":413,"7":413,"8":1,"9":454,"10":16,"11":16,"12":1,"13":33,"14":1,"15":558,"16":41,"17":558,"18":413},"b":{"1":[16,438],"2":[454,47,33],"3":[16,0]},"f":{"1":1,"2":41,"3":413,"4":454,"5":33,"6":558,"7":41,"8":413},"fnMap":{"1":{"name":"(anonymous_1)","line":8,"loc":{"start":{"line":8,"column":32},"end":{"line":8,"column":57}}},"2":{"name":"handleShow","line":11,"loc":{"start":{"line":11,"column":2},"end":{"line":11,"column":27}}},"3":{"name":"handleRender","line":17,"loc":{"start":{"line":17,"column":2},"end":{"line":17,"column":29}}},"4":{"name":"triggerDOMRefresh","line":23,"loc":{"start":{"line":23,"column":2},"end":{"line":23,"column":34}}},"5":{"name":"isInDOM","line":31,"loc":{"start":{"line":31,"column":2},"end":{"line":31,"column":25}}},"6":{"name":"(anonymous_6)","line":36,"loc":{"start":{"line":36,"column":9},"end":{"line":36,"column":23}}},"7":{"name":"(anonymous_7)","line":37,"loc":{"start":{"line":37,"column":32},"end":{"line":37,"column":42}}},"8":{"name":"(anonymous_8)","line":41,"loc":{"start":{"line":41,"column":34},"end":{"line":41,"column":44}}}},"statementMap":{"1":{"start":{"line":8,"column":0},"end":{"line":45,"column":29}},"2":{"start":{"line":11,"column":2},"end":{"line":14,"column":3}},"3":{"start":{"line":12,"column":4},"end":{"line":12,"column":25}},"4":{"start":{"line":13,"column":4},"end":{"line":13,"column":28}},"5":{"start":{"line":17,"column":2},"end":{"line":20,"column":3}},"6":{"start":{"line":18,"column":4},"end":{"line":18,"column":28}},"7":{"start":{"line":19,"column":4},"end":{"line":19,"column":28}},"8":{"start":{"line":23,"column":2},"end":{"line":29,"column":3}},"9":{"start":{"line":24,"column":4},"end":{"line":28,"column":5}},"10":{"start":{"line":25,"column":6},"end":{"line":27,"column":7}},"11":{"start":{"line":26,"column":8},"end":{"line":26,"column":42}},"12":{"start":{"line":31,"column":2},"end":{"line":33,"column":3}},"13":{"start":{"line":32,"column":4},"end":{"line":32,"column":45}},"14":{"start":{"line":36,"column":2},"end":{"line":44,"column":4}},"15":{"start":{"line":37,"column":4},"end":{"line":39,"column":7}},"16":{"start":{"line":38,"column":6},"end":{"line":38,"column":23}},"17":{"start":{"line":41,"column":4},"end":{"line":43,"column":7}},"18":{"start":{"line":42,"column":6},"end":{"line":42,"column":25}}},"branchMap":{"1":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":24,"column":4}},{"start":{"line":24,"column":4},"end":{"line":24,"column":4}}]},"2":{"line":24,"type":"binary-expr","locations":[{"start":{"line":24,"column":8},"end":{"line":24,"column":21}},{"start":{"line":24,"column":25},"end":{"line":24,"column":41}},{"start":{"line":24,"column":45},"end":{"line":24,"column":58}}]},"3":{"line":25,"type":"if","locations":[{"start":{"line":25,"column":6},"end":{"line":25,"column":6}},{"start":{"line":25,"column":6},"end":{"line":25,"column":6}}]}}},"./src/marionette.view.js":{"path":"./src/marionette.view.js","s":{"1":1,"2":559,"3":559,"4":559,"5":559,"6":559,"7":558,"8":558,"9":181,"10":181,"11":181,"12":181,"13":3,"14":181,"15":580,"16":546,"17":34,"18":43,"19":43,"20":2,"21":2,"22":34,"23":561,"24":540,"25":21,"26":21,"27":21,"28":30,"29":30,"30":30,"31":24,"32":24,"33":24,"34":24,"35":24,"36":24,"37":22,"38":24,"39":22,"40":24,"41":24,"42":21,"43":561,"44":561,"45":560,"46":561,"47":561,"48":0,"49":561,"50":561,"51":561,"52":561,"53":565,"54":565,"55":565,"56":565,"57":131,"58":5,"59":126,"60":126,"61":3,"62":123,"63":123,"64":123,"65":123,"66":179,"67":161,"68":18,"69":15,"70":18,"71":18,"72":18,"73":40,"74":40,"75":123,"76":121,"77":2,"78":2,"79":2,"80":2},"b":{"1":[1,558],"2":[181,0],"3":[3,178],"4":[546,34],"5":[2,41],"6":[540,21],"7":[4,26],"8":[24,0],"9":[4,20],"10":[4,20],"11":[22,2],"12":[24,22],"13":[22,2],"14":[24,22],"15":[561,561],"16":[0,561],"17":[5,126],"18":[3,123],"19":[161,18],"20":[15,3],"21":[121,2],"22":[123,3]},"f":{"1":559,"2":181,"3":181,"4":580,"5":43,"6":561,"7":30,"8":24,"9":561,"10":561,"11":565,"12":32,"13":131,"14":179,"15":40,"16":123,"17":2},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":15},"end":{"line":7,"column":32}}},"2":{"name":"(anonymous_2)","line":34,"loc":{"start":{"line":34,"column":15},"end":{"line":34,"column":25}}},"3":{"name":"(anonymous_3)","line":43,"loc":{"start":{"line":43,"column":24},"end":{"line":43,"column":40}}},"4":{"name":"(anonymous_4)","line":55,"loc":{"start":{"line":55,"column":19},"end":{"line":55,"column":34}}},"5":{"name":"(anonymous_5)","line":60,"loc":{"start":{"line":60,"column":25},"end":{"line":60,"column":37}}},"6":{"name":"(anonymous_6)","line":73,"loc":{"start":{"line":73,"column":21},"end":{"line":73,"column":31}}},"7":{"name":"(anonymous_7)","line":83,"loc":{"start":{"line":83,"column":21},"end":{"line":83,"column":41}}},"8":{"name":"(anonymous_8)","line":89,"loc":{"start":{"line":89,"column":27},"end":{"line":89,"column":38}}},"9":{"name":"(anonymous_9)","line":121,"loc":{"start":{"line":121,"column":18},"end":{"line":121,"column":34}}},"10":{"name":"(anonymous_10)","line":128,"loc":{"start":{"line":128,"column":22},"end":{"line":128,"column":38}}},"11":{"name":"(anonymous_11)","line":141,"loc":{"start":{"line":141,"column":20},"end":{"line":141,"column":30}}},"12":{"name":"(anonymous_12)","line":150,"loc":{"start":{"line":150,"column":16},"end":{"line":150,"column":26}}},"13":{"name":"(anonymous_13)","line":156,"loc":{"start":{"line":156,"column":9},"end":{"line":156,"column":19}}},"14":{"name":"(anonymous_14)","line":181,"loc":{"start":{"line":181,"column":18},"end":{"line":181,"column":28}}},"15":{"name":"(anonymous_15)","line":197,"loc":{"start":{"line":197,"column":29},"end":{"line":197,"column":43}}},"16":{"name":"(anonymous_16)","line":204,"loc":{"start":{"line":204,"column":20},"end":{"line":204,"column":30}}},"17":{"name":"(anonymous_17)","line":208,"loc":{"start":{"line":208,"column":20},"end":{"line":208,"column":39}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":216,"column":3}},"2":{"start":{"line":8,"column":4},"end":{"line":8,"column":30}},"3":{"start":{"line":10,"column":4},"end":{"line":10,"column":54}},"4":{"start":{"line":16,"column":4},"end":{"line":16,"column":113}},"5":{"start":{"line":19,"column":4},"end":{"line":19,"column":65}},"6":{"start":{"line":20,"column":4},"end":{"line":20,"column":58}},"7":{"start":{"line":22,"column":4},"end":{"line":22,"column":39}},"8":{"start":{"line":23,"column":4},"end":{"line":23,"column":57}},"9":{"start":{"line":35,"column":4},"end":{"line":35,"column":50}},"10":{"start":{"line":44,"column":4},"end":{"line":44,"column":26}},"11":{"start":{"line":45,"column":4},"end":{"line":45,"column":72}},"12":{"start":{"line":46,"column":4},"end":{"line":48,"column":5}},"13":{"start":{"line":47,"column":6},"end":{"line":47,"column":51}},"14":{"start":{"line":49,"column":4},"end":{"line":49,"column":45}},"15":{"start":{"line":56,"column":4},"end":{"line":58,"column":5}},"16":{"start":{"line":57,"column":6},"end":{"line":57,"column":13}},"17":{"start":{"line":60,"column":4},"end":{"line":66,"column":13}},"18":{"start":{"line":61,"column":6},"end":{"line":61,"column":34}},"19":{"start":{"line":62,"column":6},"end":{"line":65,"column":7}},"20":{"start":{"line":63,"column":8},"end":{"line":63,"column":51}},"21":{"start":{"line":64,"column":8},"end":{"line":64,"column":23}},"22":{"start":{"line":68,"column":4},"end":{"line":68,"column":16}},"23":{"start":{"line":74,"column":4},"end":{"line":74,"column":35}},"24":{"start":{"line":74,"column":26},"end":{"line":74,"column":33}},"25":{"start":{"line":76,"column":4},"end":{"line":76,"column":27}},"26":{"start":{"line":79,"column":4},"end":{"line":79,"column":68}},"27":{"start":{"line":83,"column":4},"end":{"line":114,"column":13}},"28":{"start":{"line":85,"column":6},"end":{"line":85,"column":41}},"29":{"start":{"line":86,"column":6},"end":{"line":86,"column":55}},"30":{"start":{"line":89,"column":6},"end":{"line":112,"column":8}},"31":{"start":{"line":92,"column":8},"end":{"line":101,"column":9}},"32":{"start":{"line":93,"column":10},"end":{"line":93,"column":41}},"33":{"start":{"line":94,"column":10},"end":{"line":94,"column":39}},"34":{"start":{"line":96,"column":10},"end":{"line":96,"column":74}},"35":{"start":{"line":97,"column":10},"end":{"line":97,"column":69}},"36":{"start":{"line":99,"column":10},"end":{"line":99,"column":61}},"37":{"start":{"line":99,"column":42},"end":{"line":99,"column":59}},"38":{"start":{"line":100,"column":10},"end":{"line":100,"column":52}},"39":{"start":{"line":100,"column":36},"end":{"line":100,"column":50}},"40":{"start":{"line":104,"column":8},"end":{"line":108,"column":10}},"41":{"start":{"line":111,"column":8},"end":{"line":111,"column":44}},"42":{"start":{"line":116,"column":4},"end":{"line":116,"column":25}},"43":{"start":{"line":122,"column":4},"end":{"line":122,"column":36}},"44":{"start":{"line":123,"column":4},"end":{"line":123,"column":93}},"45":{"start":{"line":124,"column":4},"end":{"line":124,"column":103}},"46":{"start":{"line":129,"column":4},"end":{"line":129,"column":35}},"47":{"start":{"line":130,"column":4},"end":{"line":130,"column":60}},"48":{"start":{"line":130,"column":31},"end":{"line":130,"column":58}},"49":{"start":{"line":132,"column":4},"end":{"line":132,"column":28}},"50":{"start":{"line":133,"column":4},"end":{"line":133,"column":44}},"51":{"start":{"line":134,"column":4},"end":{"line":134,"column":47}},"52":{"start":{"line":136,"column":4},"end":{"line":136,"column":70}},"53":{"start":{"line":142,"column":4},"end":{"line":142,"column":53}},"54":{"start":{"line":143,"column":4},"end":{"line":143,"column":63}},"55":{"start":{"line":145,"column":4},"end":{"line":145,"column":95}},"56":{"start":{"line":146,"column":4},"end":{"line":146,"column":105}},"57":{"start":{"line":157,"column":4},"end":{"line":157,"column":34}},"58":{"start":{"line":157,"column":25},"end":{"line":157,"column":32}},"59":{"start":{"line":161,"column":4},"end":{"line":161,"column":57}},"60":{"start":{"line":162,"column":4},"end":{"line":164,"column":5}},"61":{"start":{"line":163,"column":6},"end":{"line":163,"column":13}},"62":{"start":{"line":169,"column":4},"end":{"line":169,"column":25}},"63":{"start":{"line":170,"column":4},"end":{"line":170,"column":32}},"64":{"start":{"line":173,"column":4},"end":{"line":173,"column":28}},"65":{"start":{"line":176,"column":4},"end":{"line":176,"column":18}},"66":{"start":{"line":182,"column":4},"end":{"line":182,"column":29}},"67":{"start":{"line":182,"column":20},"end":{"line":182,"column":27}},"68":{"start":{"line":186,"column":4},"end":{"line":188,"column":5}},"69":{"start":{"line":187,"column":6},"end":{"line":187,"column":33}},"70":{"start":{"line":191,"column":4},"end":{"line":191,"column":49}},"71":{"start":{"line":194,"column":4},"end":{"line":194,"column":17}},"72":{"start":{"line":197,"column":4},"end":{"line":200,"column":13}},"73":{"start":{"line":198,"column":6},"end":{"line":198,"column":35}},"74":{"start":{"line":199,"column":6},"end":{"line":199,"column":38}},"75":{"start":{"line":205,"column":4},"end":{"line":205,"column":49}},"76":{"start":{"line":205,"column":40},"end":{"line":205,"column":47}},"77":{"start":{"line":208,"column":4},"end":{"line":210,"column":13}},"78":{"start":{"line":209,"column":6},"end":{"line":209,"column":27}},"79":{"start":{"line":213,"column":4},"end":{"line":213,"column":31}},"80":{"start":{"line":214,"column":4},"end":{"line":214,"column":28}}},"branchMap":{"1":{"line":16,"type":"cond-expr","locations":[{"start":{"line":16,"column":83},"end":{"line":16,"column":101}},{"start":{"line":16,"column":104},"end":{"line":16,"column":111}}]},"2":{"line":44,"type":"binary-expr","locations":[{"start":{"line":44,"column":13},"end":{"line":44,"column":19}},{"start":{"line":44,"column":23},"end":{"line":44,"column":25}}]},"3":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":4},"end":{"line":46,"column":4}},{"start":{"line":46,"column":4},"end":{"line":46,"column":4}}]},"4":{"line":56,"type":"if","locations":[{"start":{"line":56,"column":4},"end":{"line":56,"column":4}},{"start":{"line":56,"column":4},"end":{"line":56,"column":4}}]},"5":{"line":62,"type":"if","locations":[{"start":{"line":62,"column":6},"end":{"line":62,"column":6}},{"start":{"line":62,"column":6},"end":{"line":62,"column":6}}]},"6":{"line":74,"type":"if","locations":[{"start":{"line":74,"column":4},"end":{"line":74,"column":4}},{"start":{"line":74,"column":4},"end":{"line":74,"column":4}}]},"7":{"line":86,"type":"cond-expr","locations":[{"start":{"line":86,"column":35},"end":{"line":86,"column":46}},{"start":{"line":86,"column":49},"end":{"line":86,"column":54}}]},"8":{"line":92,"type":"if","locations":[{"start":{"line":92,"column":8},"end":{"line":92,"column":8}},{"start":{"line":92,"column":8},"end":{"line":92,"column":8}}]},"9":{"line":96,"type":"cond-expr","locations":[{"start":{"line":96,"column":43},"end":{"line":96,"column":63}},{"start":{"line":96,"column":66},"end":{"line":96,"column":73}}]},"10":{"line":97,"type":"cond-expr","locations":[{"start":{"line":97,"column":40},"end":{"line":97,"column":61}},{"start":{"line":97,"column":64},"end":{"line":97,"column":68}}]},"11":{"line":99,"type":"if","locations":[{"start":{"line":99,"column":10},"end":{"line":99,"column":10}},{"start":{"line":99,"column":10},"end":{"line":99,"column":10}}]},"12":{"line":99,"type":"binary-expr","locations":[{"start":{"line":99,"column":14},"end":{"line":99,"column":27}},{"start":{"line":99,"column":31},"end":{"line":99,"column":38}}]},"13":{"line":100,"type":"if","locations":[{"start":{"line":100,"column":10},"end":{"line":100,"column":10}},{"start":{"line":100,"column":10},"end":{"line":100,"column":10}}]},"14":{"line":100,"type":"binary-expr","locations":[{"start":{"line":100,"column":14},"end":{"line":100,"column":24}},{"start":{"line":100,"column":28},"end":{"line":100,"column":32}}]},"15":{"line":129,"type":"binary-expr","locations":[{"start":{"line":129,"column":13},"end":{"line":129,"column":19}},{"start":{"line":129,"column":23},"end":{"line":129,"column":34}}]},"16":{"line":130,"type":"if","locations":[{"start":{"line":130,"column":4},"end":{"line":130,"column":4}},{"start":{"line":130,"column":4},"end":{"line":130,"column":4}}]},"17":{"line":157,"type":"if","locations":[{"start":{"line":157,"column":4},"end":{"line":157,"column":4}},{"start":{"line":157,"column":4},"end":{"line":157,"column":4}}]},"18":{"line":162,"type":"if","locations":[{"start":{"line":162,"column":4},"end":{"line":162,"column":4}},{"start":{"line":162,"column":4},"end":{"line":162,"column":4}}]},"19":{"line":182,"type":"if","locations":[{"start":{"line":182,"column":4},"end":{"line":182,"column":4}},{"start":{"line":182,"column":4},"end":{"line":182,"column":4}}]},"20":{"line":186,"type":"if","locations":[{"start":{"line":186,"column":4},"end":{"line":186,"column":4}},{"start":{"line":186,"column":4},"end":{"line":186,"column":4}}]},"21":{"line":205,"type":"if","locations":[{"start":{"line":205,"column":4},"end":{"line":205,"column":4}},{"start":{"line":205,"column":4},"end":{"line":205,"column":4}}]},"22":{"line":205,"type":"binary-expr","locations":[{"start":{"line":205,"column":8},"end":{"line":205,"column":16}},{"start":{"line":205,"column":20},"end":{"line":205,"column":37}}]}}},"./src/marionette.itemview.js":{"path":"./src/marionette.itemview.js","s":{"1":1,"2":357,"3":126,"4":126,"5":79,"6":47,"7":2,"8":126,"9":126,"10":126,"11":126,"12":126,"13":126,"14":126,"15":126,"16":125,"17":125,"18":125,"19":125,"20":125,"21":92,"22":2,"23":90,"24":90,"25":90},"b":{"1":[79,47],"2":[2,45],"3":[2,90]},"f":{"1":357,"2":126,"3":126,"4":92},"fnMap":{"1":{"name":"(anonymous_1)","line":11,"loc":{"start":{"line":11,"column":15},"end":{"line":11,"column":25}}},"2":{"name":"(anonymous_2)","line":21,"loc":{"start":{"line":21,"column":17},"end":{"line":21,"column":27}}},"3":{"name":"(anonymous_3)","line":39,"loc":{"start":{"line":39,"column":10},"end":{"line":39,"column":20}}},"4":{"name":"(anonymous_4)","line":62,"loc":{"start":{"line":62,"column":9},"end":{"line":62,"column":19}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":71,"column":3}},"2":{"start":{"line":12,"column":4},"end":{"line":12,"column":72}},"3":{"start":{"line":22,"column":4},"end":{"line":22,"column":18}},"4":{"start":{"line":24,"column":4},"end":{"line":29,"column":5}},"5":{"start":{"line":25,"column":6},"end":{"line":25,"column":33}},"6":{"start":{"line":27,"column":9},"end":{"line":29,"column":5}},"7":{"start":{"line":28,"column":6},"end":{"line":28,"column":49}},"8":{"start":{"line":31,"column":4},"end":{"line":31,"column":16}},"9":{"start":{"line":40,"column":4},"end":{"line":40,"column":26}},"10":{"start":{"line":42,"column":4},"end":{"line":42,"column":46}},"11":{"start":{"line":43,"column":4},"end":{"line":43,"column":51}},"12":{"start":{"line":45,"column":4},"end":{"line":45,"column":36}},"13":{"start":{"line":46,"column":4},"end":{"line":46,"column":43}},"14":{"start":{"line":48,"column":4},"end":{"line":48,"column":38}},"15":{"start":{"line":49,"column":4},"end":{"line":49,"column":58}},"16":{"start":{"line":51,"column":4},"end":{"line":51,"column":24}},"17":{"start":{"line":52,"column":4},"end":{"line":52,"column":26}},"18":{"start":{"line":54,"column":4},"end":{"line":54,"column":39}},"19":{"start":{"line":55,"column":4},"end":{"line":55,"column":46}},"20":{"start":{"line":57,"column":4},"end":{"line":57,"column":16}},"21":{"start":{"line":63,"column":4},"end":{"line":63,"column":33}},"22":{"start":{"line":63,"column":24},"end":{"line":63,"column":31}},"23":{"start":{"line":65,"column":4},"end":{"line":65,"column":44}},"24":{"start":{"line":67,"column":4},"end":{"line":67,"column":66}},"25":{"start":{"line":69,"column":4},"end":{"line":69,"column":38}}},"branchMap":{"1":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":24,"column":4}},{"start":{"line":24,"column":4},"end":{"line":24,"column":4}}]},"2":{"line":27,"type":"if","locations":[{"start":{"line":27,"column":9},"end":{"line":27,"column":9}},{"start":{"line":27,"column":9},"end":{"line":27,"column":9}}]},"3":{"line":63,"type":"if","locations":[{"start":{"line":63,"column":4},"end":{"line":63,"column":4}},{"start":{"line":63,"column":4},"end":{"line":63,"column":4}}]}}},"./src/marionette.collectionview.js":{"path":"./src/marionette.collectionview.js","s":{"1":1,"2":160,"3":160,"4":160,"5":160,"6":500,"7":500,"8":171,"9":171,"10":170,"11":170,"12":169,"13":169,"14":169,"15":2,"16":2,"17":2,"18":102,"19":93,"20":93,"21":93,"22":17,"23":17,"24":17,"25":17,"26":9,"27":9,"28":168,"29":168,"30":165,"31":165,"32":113,"33":113,"34":113,"35":112,"36":112,"37":171,"38":171,"39":171,"40":171,"41":132,"42":39,"43":170,"44":132,"45":132,"46":206,"47":205,"48":94,"49":94,"50":20,"51":20,"52":20,"53":188,"54":9,"55":9,"56":92,"57":153,"58":153,"59":1,"60":152,"61":245,"62":245,"63":4,"64":245,"65":245,"66":245,"67":245,"68":245,"69":245,"70":4,"71":245,"72":245,"73":245,"74":245,"75":362,"76":362,"77":362,"78":362,"79":362,"80":362,"81":2,"82":362,"83":362,"84":1,"85":361,"86":245,"87":245,"88":245,"89":245,"90":9,"91":9,"92":9,"93":68,"94":67,"95":67,"96":66,"97":1,"98":1,"99":67,"100":68,"101":210,"102":55,"103":112,"104":170,"105":146,"106":146,"107":24,"108":160,"109":24,"110":4,"111":20,"112":20,"113":20,"114":20,"115":201,"116":59,"117":201},"b":{"1":[2,167],"2":[93,9],"3":[132,39],"4":[171,161],"5":[20,74],"6":[94,37],"7":[9,179],"8":[1,152],"9":[4,241],"10":[4,241],"11":[245,6],"12":[2,360],"13":[362,2],"14":[1,361],"15":[67,1],"16":[66,1],"17":[1,0],"18":[55,155],"19":[210,192],"20":[146,24],"21":[4,20]},"f":{"1":160,"2":500,"3":171,"4":170,"5":169,"6":2,"7":102,"8":17,"9":9,"10":9,"11":168,"12":165,"13":113,"14":171,"15":132,"16":206,"17":94,"18":188,"19":92,"20":153,"21":245,"22":245,"23":362,"24":362,"25":245,"26":245,"27":9,"28":68,"29":210,"30":112,"31":170,"32":160,"33":24,"34":201,"35":59},"fnMap":{"1":{"name":"(anonymous_1)","line":12,"loc":{"start":{"line":12,"column":15},"end":{"line":12,"column":32}}},"2":{"name":"(anonymous_2)","line":24,"loc":{"start":{"line":24,"column":20},"end":{"line":24,"column":31}}},"3":{"name":"(anonymous_3)","line":29,"loc":{"start":{"line":29,"column":18},"end":{"line":29,"column":29}}},"4":{"name":"(anonymous_4)","line":34,"loc":{"start":{"line":34,"column":16},"end":{"line":34,"column":27}}},"5":{"name":"(anonymous_5)","line":41,"loc":{"start":{"line":41,"column":32},"end":{"line":41,"column":44}}},"6":{"name":"(anonymous_6)","line":43,"loc":{"start":{"line":43,"column":37},"end":{"line":43,"column":54}}},"7":{"name":"(anonymous_7)","line":53,"loc":{"start":{"line":53,"column":18},"end":{"line":53,"column":28}}},"8":{"name":"(anonymous_8)","line":62,"loc":{"start":{"line":62,"column":16},"end":{"line":62,"column":51}}},"9":{"name":"(anonymous_9)","line":71,"loc":{"start":{"line":71,"column":16},"end":{"line":71,"column":26}}},"10":{"name":"(anonymous_10)","line":72,"loc":{"start":{"line":72,"column":23},"end":{"line":72,"column":38}}},"11":{"name":"(anonymous_11)","line":79,"loc":{"start":{"line":79,"column":23},"end":{"line":79,"column":33}}},"12":{"name":"(anonymous_12)","line":86,"loc":{"start":{"line":86,"column":19},"end":{"line":86,"column":29}}},"13":{"name":"(anonymous_13)","line":94,"loc":{"start":{"line":94,"column":10},"end":{"line":94,"column":20}}},"14":{"name":"(anonymous_14)","line":105,"loc":{"start":{"line":105,"column":19},"end":{"line":105,"column":29}}},"15":{"name":"(anonymous_15)","line":122,"loc":{"start":{"line":122,"column":18},"end":{"line":122,"column":28}}},"16":{"name":"(anonymous_16)","line":124,"loc":{"start":{"line":124,"column":25},"end":{"line":124,"column":46}}},"17":{"name":"(anonymous_17)","line":133,"loc":{"start":{"line":133,"column":17},"end":{"line":133,"column":27}}},"18":{"name":"(anonymous_18)","line":146,"loc":{"start":{"line":146,"column":18},"end":{"line":146,"column":28}}},"19":{"name":"(anonymous_19)","line":154,"loc":{"start":{"line":154,"column":16},"end":{"line":154,"column":26}}},"20":{"name":"(anonymous_20)","line":161,"loc":{"start":{"line":161,"column":15},"end":{"line":161,"column":29}}},"21":{"name":"(anonymous_21)","line":173,"loc":{"start":{"line":173,"column":15},"end":{"line":173,"column":46}}},"22":{"name":"(anonymous_22)","line":210,"loc":{"start":{"line":210,"column":31},"end":{"line":210,"column":45}}},"23":{"name":"(anonymous_23)","line":215,"loc":{"start":{"line":215,"column":31},"end":{"line":215,"column":41}}},"24":{"name":"(anonymous_24)","line":233,"loc":{"start":{"line":233,"column":17},"end":{"line":233,"column":28}}},"25":{"name":"(anonymous_25)","line":242,"loc":{"start":{"line":242,"column":18},"end":{"line":242,"column":40}}},"26":{"name":"(anonymous_26)","line":248,"loc":{"start":{"line":248,"column":17},"end":{"line":248,"column":62}}},"27":{"name":"(anonymous_27)","line":254,"loc":{"start":{"line":254,"column":18},"end":{"line":254,"column":32}}},"28":{"name":"(anonymous_28)","line":261,"loc":{"start":{"line":261,"column":19},"end":{"line":261,"column":33}}},"29":{"name":"(anonymous_29)","line":279,"loc":{"start":{"line":279,"column":14},"end":{"line":279,"column":25}}},"30":{"name":"(anonymous_30)","line":288,"loc":{"start":{"line":288,"column":16},"end":{"line":288,"column":49}}},"31":{"name":"(anonymous_31)","line":295,"loc":{"start":{"line":295,"column":14},"end":{"line":295,"column":55}}},"32":{"name":"(anonymous_32)","line":312,"loc":{"start":{"line":312,"column":25},"end":{"line":312,"column":35}}},"33":{"name":"(anonymous_33)","line":318,"loc":{"start":{"line":318,"column":9},"end":{"line":318,"column":19}}},"34":{"name":"(anonymous_34)","line":330,"loc":{"start":{"line":330,"column":17},"end":{"line":330,"column":27}}},"35":{"name":"(anonymous_35)","line":331,"loc":{"start":{"line":331,"column":23},"end":{"line":331,"column":38}}}},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":336,"column":3}},"2":{"start":{"line":13,"column":4},"end":{"line":13,"column":33}},"3":{"start":{"line":15,"column":4},"end":{"line":15,"column":72}},"4":{"start":{"line":17,"column":4},"end":{"line":17,"column":26}},"5":{"start":{"line":18,"column":4},"end":{"line":18,"column":28}},"6":{"start":{"line":25,"column":4},"end":{"line":25,"column":54}},"7":{"start":{"line":26,"column":4},"end":{"line":26,"column":32}},"8":{"start":{"line":30,"column":4},"end":{"line":30,"column":28}},"9":{"start":{"line":31,"column":4},"end":{"line":31,"column":28}},"10":{"start":{"line":35,"column":4},"end":{"line":35,"column":29}},"11":{"start":{"line":36,"column":4},"end":{"line":36,"column":43}},"12":{"start":{"line":37,"column":4},"end":{"line":37,"column":40}},"13":{"start":{"line":38,"column":4},"end":{"line":38,"column":28}},"14":{"start":{"line":42,"column":4},"end":{"line":47,"column":5}},"15":{"start":{"line":43,"column":6},"end":{"line":45,"column":9}},"16":{"start":{"line":44,"column":8},"end":{"line":44,"column":53}},"17":{"start":{"line":46,"column":6},"end":{"line":46,"column":34}},"18":{"start":{"line":54,"column":4},"end":{"line":58,"column":5}},"19":{"start":{"line":55,"column":6},"end":{"line":55,"column":69}},"20":{"start":{"line":56,"column":6},"end":{"line":56,"column":74}},"21":{"start":{"line":57,"column":6},"end":{"line":57,"column":65}},"22":{"start":{"line":63,"column":4},"end":{"line":63,"column":26}},"23":{"start":{"line":64,"column":4},"end":{"line":64,"column":42}},"24":{"start":{"line":65,"column":4},"end":{"line":65,"column":46}},"25":{"start":{"line":66,"column":4},"end":{"line":66,"column":44}},"26":{"start":{"line":72,"column":4},"end":{"line":74,"column":7}},"27":{"start":{"line":73,"column":6},"end":{"line":73,"column":51}},"28":{"start":{"line":80,"column":4},"end":{"line":80,"column":46}},"29":{"start":{"line":81,"column":4},"end":{"line":81,"column":57}},"30":{"start":{"line":87,"column":4},"end":{"line":87,"column":39}},"31":{"start":{"line":88,"column":4},"end":{"line":88,"column":52}},"32":{"start":{"line":95,"column":4},"end":{"line":95,"column":26}},"33":{"start":{"line":96,"column":4},"end":{"line":96,"column":31}},"34":{"start":{"line":97,"column":4},"end":{"line":97,"column":27}},"35":{"start":{"line":98,"column":4},"end":{"line":98,"column":27}},"36":{"start":{"line":99,"column":4},"end":{"line":99,"column":16}},"37":{"start":{"line":106,"column":4},"end":{"line":106,"column":26}},"38":{"start":{"line":108,"column":4},"end":{"line":108,"column":26}},"39":{"start":{"line":109,"column":4},"end":{"line":109,"column":25}},"40":{"start":{"line":111,"column":4},"end":{"line":115,"column":5}},"41":{"start":{"line":112,"column":6},"end":{"line":112,"column":28}},"42":{"start":{"line":114,"column":6},"end":{"line":114,"column":27}},"43":{"start":{"line":117,"column":4},"end":{"line":117,"column":24}},"44":{"start":{"line":123,"column":4},"end":{"line":123,"column":17}},"45":{"start":{"line":124,"column":4},"end":{"line":127,"column":13}},"46":{"start":{"line":125,"column":6},"end":{"line":125,"column":40}},"47":{"start":{"line":126,"column":6},"end":{"line":126,"column":46}},"48":{"start":{"line":134,"column":4},"end":{"line":134,"column":40}},"49":{"start":{"line":136,"column":4},"end":{"line":140,"column":5}},"50":{"start":{"line":137,"column":6},"end":{"line":137,"column":36}},"51":{"start":{"line":138,"column":6},"end":{"line":138,"column":39}},"52":{"start":{"line":139,"column":6},"end":{"line":139,"column":44}},"53":{"start":{"line":147,"column":4},"end":{"line":150,"column":5}},"54":{"start":{"line":148,"column":6},"end":{"line":148,"column":27}},"55":{"start":{"line":149,"column":6},"end":{"line":149,"column":36}},"56":{"start":{"line":155,"column":4},"end":{"line":155,"column":51}},"57":{"start":{"line":162,"column":4},"end":{"line":162,"column":58}},"58":{"start":{"line":164,"column":4},"end":{"line":166,"column":5}},"59":{"start":{"line":165,"column":6},"end":{"line":165,"column":71}},"60":{"start":{"line":168,"column":4},"end":{"line":168,"column":20}},"61":{"start":{"line":175,"column":4},"end":{"line":175,"column":72}},"62":{"start":{"line":176,"column":4},"end":{"line":178,"column":5}},"63":{"start":{"line":177,"column":6},"end":{"line":177,"column":64}},"64":{"start":{"line":181,"column":4},"end":{"line":181,"column":67}},"65":{"start":{"line":184,"column":4},"end":{"line":184,"column":43}},"66":{"start":{"line":187,"column":4},"end":{"line":187,"column":50}},"67":{"start":{"line":191,"column":4},"end":{"line":191,"column":28}},"68":{"start":{"line":194,"column":4},"end":{"line":194,"column":37}},"69":{"start":{"line":198,"column":4},"end":{"line":200,"column":5}},"70":{"start":{"line":199,"column":6},"end":{"line":199,"column":50}},"71":{"start":{"line":203,"column":4},"end":{"line":203,"column":49}},"72":{"start":{"line":205,"column":4},"end":{"line":205,"column":16}},"73":{"start":{"line":211,"column":4},"end":{"line":211,"column":67}},"74":{"start":{"line":215,"column":4},"end":{"line":229,"column":13}},"75":{"start":{"line":216,"column":6},"end":{"line":216,"column":34}},"76":{"start":{"line":217,"column":6},"end":{"line":217,"column":30}},"77":{"start":{"line":218,"column":6},"end":{"line":218,"column":44}},"78":{"start":{"line":220,"column":6},"end":{"line":220,"column":41}},"79":{"start":{"line":221,"column":6},"end":{"line":221,"column":30}},"80":{"start":{"line":224,"column":6},"end":{"line":226,"column":7}},"81":{"start":{"line":225,"column":8},"end":{"line":225,"column":48}},"82":{"start":{"line":228,"column":6},"end":{"line":228,"column":49}},"83":{"start":{"line":234,"column":4},"end":{"line":236,"column":5}},"84":{"start":{"line":235,"column":6},"end":{"line":235,"column":40}},"85":{"start":{"line":238,"column":4},"end":{"line":238,"column":27}},"86":{"start":{"line":243,"column":4},"end":{"line":243,"column":18}},"87":{"start":{"line":244,"column":4},"end":{"line":244,"column":39}},"88":{"start":{"line":249,"column":4},"end":{"line":249,"column":59}},"89":{"start":{"line":250,"column":4},"end":{"line":250,"column":37}},"90":{"start":{"line":255,"column":4},"end":{"line":255,"column":47}},"91":{"start":{"line":256,"column":4},"end":{"line":256,"column":31}},"92":{"start":{"line":257,"column":4},"end":{"line":257,"column":22}},"93":{"start":{"line":265,"column":4},"end":{"line":273,"column":5}},"94":{"start":{"line":266,"column":6},"end":{"line":266,"column":31}},"95":{"start":{"line":269,"column":6},"end":{"line":270,"column":46}},"96":{"start":{"line":269,"column":24},"end":{"line":269,"column":37}},"97":{"start":{"line":270,"column":11},"end":{"line":270,"column":46}},"98":{"start":{"line":270,"column":30},"end":{"line":270,"column":44}},"99":{"start":{"line":272,"column":6},"end":{"line":272,"column":33}},"100":{"start":{"line":275,"column":4},"end":{"line":275,"column":45}},"101":{"start":{"line":282,"column":4},"end":{"line":284,"column":5}},"102":{"start":{"line":283,"column":6},"end":{"line":283,"column":27}},"103":{"start":{"line":289,"column":4},"end":{"line":289,"column":38}},"104":{"start":{"line":296,"column":4},"end":{"line":307,"column":5}},"105":{"start":{"line":300,"column":6},"end":{"line":300,"column":55}},"106":{"start":{"line":301,"column":6},"end":{"line":301,"column":54}},"107":{"start":{"line":306,"column":6},"end":{"line":306,"column":45}},"108":{"start":{"line":313,"column":4},"end":{"line":313,"column":54}},"109":{"start":{"line":319,"column":4},"end":{"line":319,"column":33}},"110":{"start":{"line":319,"column":24},"end":{"line":319,"column":31}},"111":{"start":{"line":321,"column":4},"end":{"line":321,"column":50}},"112":{"start":{"line":322,"column":4},"end":{"line":322,"column":25}},"113":{"start":{"line":323,"column":4},"end":{"line":323,"column":44}},"114":{"start":{"line":325,"column":4},"end":{"line":325,"column":66}},"115":{"start":{"line":331,"column":4},"end":{"line":333,"column":13}},"116":{"start":{"line":332,"column":6},"end":{"line":332,"column":34}},"117":{"start":{"line":334,"column":4},"end":{"line":334,"column":22}}},"branchMap":{"1":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":42,"column":4}},{"start":{"line":42,"column":4},"end":{"line":42,"column":4}}]},"2":{"line":54,"type":"if","locations":[{"start":{"line":54,"column":4},"end":{"line":54,"column":4}},{"start":{"line":54,"column":4},"end":{"line":54,"column":4}}]},"3":{"line":111,"type":"if","locations":[{"start":{"line":111,"column":4},"end":{"line":111,"column":4}},{"start":{"line":111,"column":4},"end":{"line":111,"column":4}}]},"4":{"line":111,"type":"binary-expr","locations":[{"start":{"line":111,"column":8},"end":{"line":111,"column":23}},{"start":{"line":111,"column":27},"end":{"line":111,"column":53}}]},"5":{"line":136,"type":"if","locations":[{"start":{"line":136,"column":4},"end":{"line":136,"column":4}},{"start":{"line":136,"column":4},"end":{"line":136,"column":4}}]},"6":{"line":136,"type":"binary-expr","locations":[{"start":{"line":136,"column":8},"end":{"line":136,"column":17}},{"start":{"line":136,"column":21},"end":{"line":136,"column":44}}]},"7":{"line":147,"type":"if","locations":[{"start":{"line":147,"column":4},"end":{"line":147,"column":4}},{"start":{"line":147,"column":4},"end":{"line":147,"column":4}}]},"8":{"line":164,"type":"if","locations":[{"start":{"line":164,"column":4},"end":{"line":164,"column":4}},{"start":{"line":164,"column":4},"end":{"line":164,"column":4}}]},"9":{"line":176,"type":"if","locations":[{"start":{"line":176,"column":4},"end":{"line":176,"column":4}},{"start":{"line":176,"column":4},"end":{"line":176,"column":4}}]},"10":{"line":198,"type":"if","locations":[{"start":{"line":198,"column":4},"end":{"line":198,"column":4}},{"start":{"line":198,"column":4},"end":{"line":198,"column":4}}]},"11":{"line":198,"type":"binary-expr","locations":[{"start":{"line":198,"column":8},"end":{"line":198,"column":21}},{"start":{"line":198,"column":25},"end":{"line":198,"column":42}}]},"12":{"line":224,"type":"if","locations":[{"start":{"line":224,"column":6},"end":{"line":224,"column":6}},{"start":{"line":224,"column":6},"end":{"line":224,"column":6}}]},"13":{"line":224,"type":"binary-expr","locations":[{"start":{"line":224,"column":10},"end":{"line":224,"column":43}},{"start":{"line":224,"column":47},"end":{"line":224,"column":82}}]},"14":{"line":234,"type":"if","locations":[{"start":{"line":234,"column":4},"end":{"line":234,"column":4}},{"start":{"line":234,"column":4},"end":{"line":234,"column":4}}]},"15":{"line":265,"type":"if","locations":[{"start":{"line":265,"column":4},"end":{"line":265,"column":4}},{"start":{"line":265,"column":4},"end":{"line":265,"column":4}}]},"16":{"line":269,"type":"if","locations":[{"start":{"line":269,"column":6},"end":{"line":269,"column":6}},{"start":{"line":269,"column":6},"end":{"line":269,"column":6}}]},"17":{"line":270,"type":"if","locations":[{"start":{"line":270,"column":11},"end":{"line":270,"column":11}},{"start":{"line":270,"column":11},"end":{"line":270,"column":11}}]},"18":{"line":282,"type":"if","locations":[{"start":{"line":282,"column":4},"end":{"line":282,"column":4}},{"start":{"line":282,"column":4},"end":{"line":282,"column":4}}]},"19":{"line":282,"type":"binary-expr","locations":[{"start":{"line":282,"column":8},"end":{"line":282,"column":24}},{"start":{"line":282,"column":28},"end":{"line":282,"column":56}}]},"20":{"line":296,"type":"if","locations":[{"start":{"line":296,"column":4},"end":{"line":296,"column":4}},{"start":{"line":296,"column":4},"end":{"line":296,"column":4}}]},"21":{"line":319,"type":"if","locations":[{"start":{"line":319,"column":4},"end":{"line":319,"column":4}},{"start":{"line":319,"column":4},"end":{"line":319,"column":4}}]}}},"./src/marionette.compositeview.js":{"path":"./src/marionette.compositeview.js","s":{"1":1,"2":59,"3":58,"4":48,"5":41,"6":41,"7":41,"8":72,"9":72,"10":0,"11":72,"12":55,"13":55,"14":41,"15":55,"16":55,"17":55,"18":55,"19":55,"20":55,"21":54,"22":54,"23":54,"24":54,"25":53,"26":53,"27":53,"28":58,"29":58,"30":57,"31":55,"32":55,"33":55,"34":55,"35":55,"36":58,"37":57,"38":53,"39":53,"40":53,"41":0,"42":0,"43":58,"44":4,"45":54,"46":54,"47":54,"48":7,"49":7,"50":7,"51":1,"52":47,"53":53,"54":53,"55":55,"56":4},"b":{"1":[41,7],"2":[72,6],"3":[0,72],"4":[41,14],"5":[58,0],"6":[53,0],"7":[4,54],"8":[7,47],"9":[1,6],"10":[1,6],"11":[4,51]},"f":{"1":59,"2":58,"3":48,"4":72,"5":55,"6":55,"7":58,"8":55,"9":58,"10":53,"11":58,"12":55},"fnMap":{"1":{"name":"(anonymous_1)","line":11,"loc":{"start":{"line":11,"column":15},"end":{"line":11,"column":25}}},"2":{"name":"(anonymous_2)","line":18,"loc":{"start":{"line":18,"column":18},"end":{"line":18,"column":28}}},"3":{"name":"(anonymous_3)","line":22,"loc":{"start":{"line":22,"column":24},"end":{"line":22,"column":36}}},"4":{"name":"(anonymous_4)","line":36,"loc":{"start":{"line":36,"column":15},"end":{"line":36,"column":29}}},"5":{"name":"(anonymous_5)","line":49,"loc":{"start":{"line":49,"column":17},"end":{"line":49,"column":27}}},"6":{"name":"(anonymous_6)","line":62,"loc":{"start":{"line":62,"column":10},"end":{"line":62,"column":20}}},"7":{"name":"(anonymous_7)","line":83,"loc":{"start":{"line":83,"column":19},"end":{"line":83,"column":29}}},"8":{"name":"(anonymous_8)","line":93,"loc":{"start":{"line":93,"column":15},"end":{"line":93,"column":25}}},"9":{"name":"(anonymous_9)","line":104,"loc":{"start":{"line":104,"column":16},"end":{"line":104,"column":48}}},"10":{"name":"(anonymous_10)","line":113,"loc":{"start":{"line":113,"column":14},"end":{"line":113,"column":54}}},"11":{"name":"(anonymous_11)","line":129,"loc":{"start":{"line":129,"column":24},"end":{"line":129,"column":47}}},"12":{"name":"(anonymous_12)","line":153,"loc":{"start":{"line":153,"column":26},"end":{"line":153,"column":36}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":158,"column":3}},"2":{"start":{"line":12,"column":4},"end":{"line":12,"column":82}},"3":{"start":{"line":22,"column":4},"end":{"line":28,"column":7}},"4":{"start":{"line":23,"column":6},"end":{"line":27,"column":7}},"5":{"start":{"line":24,"column":8},"end":{"line":24,"column":71}},"6":{"start":{"line":25,"column":8},"end":{"line":25,"column":76}},"7":{"start":{"line":26,"column":8},"end":{"line":26,"column":76}},"8":{"start":{"line":37,"column":4},"end":{"line":37,"column":78}},"9":{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},"10":{"start":{"line":40,"column":6},"end":{"line":40,"column":71}},"11":{"start":{"line":43,"column":4},"end":{"line":43,"column":20}},"12":{"start":{"line":50,"column":4},"end":{"line":50,"column":18}},"13":{"start":{"line":52,"column":4},"end":{"line":54,"column":5}},"14":{"start":{"line":53,"column":6},"end":{"line":53,"column":33}},"15":{"start":{"line":56,"column":4},"end":{"line":56,"column":16}},"16":{"start":{"line":63,"column":4},"end":{"line":63,"column":27}},"17":{"start":{"line":64,"column":4},"end":{"line":64,"column":26}},"18":{"start":{"line":65,"column":4},"end":{"line":65,"column":34}},"19":{"start":{"line":67,"column":4},"end":{"line":67,"column":31}},"20":{"start":{"line":68,"column":4},"end":{"line":68,"column":34}},"21":{"start":{"line":69,"column":4},"end":{"line":69,"column":24}},"22":{"start":{"line":73,"column":4},"end":{"line":73,"column":26}},"23":{"start":{"line":74,"column":4},"end":{"line":74,"column":51}},"24":{"start":{"line":76,"column":4},"end":{"line":76,"column":27}},"25":{"start":{"line":78,"column":4},"end":{"line":78,"column":45}},"26":{"start":{"line":79,"column":4},"end":{"line":79,"column":27}},"27":{"start":{"line":80,"column":4},"end":{"line":80,"column":16}},"28":{"start":{"line":84,"column":4},"end":{"line":87,"column":5}},"29":{"start":{"line":85,"column":6},"end":{"line":85,"column":69}},"30":{"start":{"line":86,"column":6},"end":{"line":86,"column":58}},"31":{"start":{"line":94,"column":4},"end":{"line":94,"column":18}},"32":{"start":{"line":95,"column":4},"end":{"line":95,"column":32}},"33":{"start":{"line":96,"column":4},"end":{"line":96,"column":43}},"34":{"start":{"line":98,"column":4},"end":{"line":98,"column":38}},"35":{"start":{"line":99,"column":4},"end":{"line":99,"column":54}},"36":{"start":{"line":105,"column":4},"end":{"line":105,"column":62}},"37":{"start":{"line":106,"column":4},"end":{"line":106,"column":30}},"38":{"start":{"line":114,"column":4},"end":{"line":123,"column":5}},"39":{"start":{"line":115,"column":6},"end":{"line":115,"column":54}},"40":{"start":{"line":116,"column":6},"end":{"line":116,"column":53}},"41":{"start":{"line":121,"column":6},"end":{"line":121,"column":64}},"42":{"start":{"line":122,"column":6},"end":{"line":122,"column":37}},"43":{"start":{"line":130,"column":4},"end":{"line":132,"column":5}},"44":{"start":{"line":131,"column":6},"end":{"line":131,"column":46}},"45":{"start":{"line":134,"column":4},"end":{"line":134,"column":18}},"46":{"start":{"line":135,"column":4},"end":{"line":135,"column":85}},"47":{"start":{"line":136,"column":4},"end":{"line":146,"column":5}},"48":{"start":{"line":138,"column":6},"end":{"line":138,"column":104}},"49":{"start":{"line":139,"column":6},"end":{"line":139,"column":44}},"50":{"start":{"line":140,"column":6},"end":{"line":142,"column":7}},"51":{"start":{"line":141,"column":8},"end":{"line":141,"column":139}},"52":{"start":{"line":145,"column":6},"end":{"line":145,"column":36}},"53":{"start":{"line":148,"column":4},"end":{"line":148,"column":49}},"54":{"start":{"line":149,"column":4},"end":{"line":149,"column":21}},"55":{"start":{"line":154,"column":4},"end":{"line":156,"column":5}},"56":{"start":{"line":155,"column":6},"end":{"line":155,"column":37}}},"branchMap":{"1":{"line":23,"type":"if","locations":[{"start":{"line":23,"column":6},"end":{"line":23,"column":6}},{"start":{"line":23,"column":6},"end":{"line":23,"column":6}}]},"2":{"line":37,"type":"binary-expr","locations":[{"start":{"line":37,"column":19},"end":{"line":37,"column":57}},{"start":{"line":37,"column":61},"end":{"line":37,"column":77}}]},"3":{"line":39,"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":39,"column":4}},{"start":{"line":39,"column":4},"end":{"line":39,"column":4}}]},"4":{"line":52,"type":"if","locations":[{"start":{"line":52,"column":4},"end":{"line":52,"column":4}},{"start":{"line":52,"column":4},"end":{"line":52,"column":4}}]},"5":{"line":84,"type":"if","locations":[{"start":{"line":84,"column":4},"end":{"line":84,"column":4}},{"start":{"line":84,"column":4},"end":{"line":84,"column":4}}]},"6":{"line":114,"type":"if","locations":[{"start":{"line":114,"column":4},"end":{"line":114,"column":4}},{"start":{"line":114,"column":4},"end":{"line":114,"column":4}}]},"7":{"line":130,"type":"if","locations":[{"start":{"line":130,"column":4},"end":{"line":130,"column":4}},{"start":{"line":130,"column":4},"end":{"line":130,"column":4}}]},"8":{"line":136,"type":"if","locations":[{"start":{"line":136,"column":4},"end":{"line":136,"column":4}},{"start":{"line":136,"column":4},"end":{"line":136,"column":4}}]},"9":{"line":138,"type":"cond-expr","locations":[{"start":{"line":138,"column":55},"end":{"line":138,"column":83}},{"start":{"line":138,"column":86},"end":{"line":138,"column":103}}]},"10":{"line":140,"type":"if","locations":[{"start":{"line":140,"column":6},"end":{"line":140,"column":6}},{"start":{"line":140,"column":6},"end":{"line":140,"column":6}}]},"11":{"line":154,"type":"if","locations":[{"start":{"line":154,"column":4},"end":{"line":154,"column":4}},{"start":{"line":154,"column":4},"end":{"line":154,"column":4}}]}}},"./src/marionette.region.js":{"path":"./src/marionette.region.js","s":{"1":1,"2":137,"3":137,"4":137,"5":1,"6":1,"7":1,"8":136,"9":1,"10":1,"11":1,"12":109,"13":109,"14":109,"15":109,"16":109,"17":0,"18":109,"19":109,"20":22,"21":109,"22":85,"23":85,"24":109,"25":2,"26":109,"27":40,"28":109,"29":67,"30":67,"31":109,"32":24,"33":109,"34":109,"35":109,"36":67,"37":34,"38":34,"39":33,"40":34,"41":109,"42":1,"43":81,"44":81,"45":81,"46":81,"47":75,"48":81,"49":81,"50":78,"51":81,"52":81,"53":81,"54":86,"55":76,"56":42,"57":75,"58":142,"59":142,"60":103,"61":39,"62":17,"63":22,"64":22,"65":39,"66":39,"67":3,"68":17,"69":17,"70":1},"b":{"1":[137,24],"2":[1,136],"3":[1,135],"4":[0,109],"5":[109,107,85],"6":[22,87],"7":[85,24],"8":[2,107],"9":[40,69],"10":[109,107],"11":[67,42],"12":[24,85],"13":[109,87],"14":[67,42],"15":[33,1],"16":[81,78],"17":[75,6],"18":[78,3],"19":[81,6],"20":[76,10],"21":[86,10],"22":[103,39],"23":[142,40],"24":[17,22],"25":[22,0]},"f":{"1":137,"2":109,"3":34,"4":81,"5":86,"6":42,"7":75,"8":142,"9":3,"10":17},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":20},"end":{"line":7,"column":37}}},"2":{"name":"(anonymous_2)","line":44,"loc":{"start":{"line":44,"column":15},"end":{"line":44,"column":56}}},"3":{"name":"(anonymous_3)","line":100,"loc":{"start":{"line":100,"column":21},"end":{"line":100,"column":40}}},"4":{"name":"(anonymous_4)","line":124,"loc":{"start":{"line":124,"column":8},"end":{"line":124,"column":22}}},"5":{"name":"(anonymous_5)","line":148,"loc":{"start":{"line":148,"column":12},"end":{"line":148,"column":22}}},"6":{"name":"(anonymous_6)","line":156,"loc":{"start":{"line":156,"column":9},"end":{"line":156,"column":27}}},"7":{"name":"(anonymous_7)","line":162,"loc":{"start":{"line":162,"column":8},"end":{"line":162,"column":22}}},"8":{"name":"(anonymous_8)","line":168,"loc":{"start":{"line":168,"column":9},"end":{"line":168,"column":19}}},"9":{"name":"(anonymous_9)","line":185,"loc":{"start":{"line":185,"column":14},"end":{"line":185,"column":28}}},"10":{"name":"(anonymous_10)","line":193,"loc":{"start":{"line":193,"column":9},"end":{"line":193,"column":19}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":22,"column":2}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":31}},"3":{"start":{"line":10,"column":2},"end":{"line":10,"column":45}},"4":{"start":{"line":12,"column":2},"end":{"line":16,"column":3}},"5":{"start":{"line":13,"column":4},"end":{"line":13,"column":67}},"6":{"start":{"line":14,"column":4},"end":{"line":14,"column":27}},"7":{"start":{"line":15,"column":4},"end":{"line":15,"column":14}},"8":{"start":{"line":18,"column":2},"end":{"line":21,"column":3}},"9":{"start":{"line":19,"column":4},"end":{"line":19,"column":54}},"10":{"start":{"line":20,"column":4},"end":{"line":20,"column":38}},"11":{"start":{"line":28,"column":0},"end":{"line":112,"column":3}},"12":{"start":{"line":46,"column":4},"end":{"line":46,"column":60}},"13":{"start":{"line":47,"column":4},"end":{"line":47,"column":77}},"14":{"start":{"line":48,"column":4},"end":{"line":48,"column":81}},"15":{"start":{"line":49,"column":4},"end":{"line":49,"column":60}},"16":{"start":{"line":51,"column":4},"end":{"line":53,"column":5}},"17":{"start":{"line":52,"column":6},"end":{"line":52,"column":122}},"18":{"start":{"line":55,"column":4},"end":{"line":55,"column":29}},"19":{"start":{"line":59,"column":4},"end":{"line":61,"column":5}},"20":{"start":{"line":60,"column":6},"end":{"line":60,"column":30}},"21":{"start":{"line":63,"column":4},"end":{"line":66,"column":5}},"22":{"start":{"line":64,"column":6},"end":{"line":64,"column":39}},"23":{"start":{"line":65,"column":6},"end":{"line":65,"column":35}},"24":{"start":{"line":70,"column":4},"end":{"line":72,"column":5}},"25":{"start":{"line":71,"column":6},"end":{"line":71,"column":32}},"26":{"start":{"line":74,"column":4},"end":{"line":76,"column":5}},"27":{"start":{"line":75,"column":6},"end":{"line":75,"column":37}},"28":{"start":{"line":78,"column":4},"end":{"line":81,"column":5}},"29":{"start":{"line":79,"column":6},"end":{"line":79,"column":43}},"30":{"start":{"line":80,"column":6},"end":{"line":80,"column":37}},"31":{"start":{"line":83,"column":4},"end":{"line":85,"column":5}},"32":{"start":{"line":84,"column":6},"end":{"line":84,"column":24}},"33":{"start":{"line":87,"column":4},"end":{"line":87,"column":31}},"34":{"start":{"line":90,"column":4},"end":{"line":90,"column":46}},"35":{"start":{"line":98,"column":4},"end":{"line":107,"column":5}},"36":{"start":{"line":100,"column":6},"end":{"line":106,"column":8}},"37":{"start":{"line":101,"column":8},"end":{"line":101,"column":45}},"38":{"start":{"line":102,"column":8},"end":{"line":104,"column":9}},"39":{"start":{"line":103,"column":10},"end":{"line":103,"column":32}},"40":{"start":{"line":105,"column":8},"end":{"line":105,"column":39}},"41":{"start":{"line":109,"column":4},"end":{"line":109,"column":18}},"42":{"start":{"line":117,"column":0},"end":{"line":197,"column":3}},"43":{"start":{"line":126,"column":4},"end":{"line":126,"column":20}},"44":{"start":{"line":128,"column":4},"end":{"line":128,"column":64}},"45":{"start":{"line":130,"column":4},"end":{"line":130,"column":52}},"46":{"start":{"line":132,"column":4},"end":{"line":134,"column":5}},"47":{"start":{"line":133,"column":6},"end":{"line":133,"column":19}},"48":{"start":{"line":136,"column":4},"end":{"line":136,"column":18}},"49":{"start":{"line":138,"column":4},"end":{"line":140,"column":5}},"50":{"start":{"line":139,"column":6},"end":{"line":139,"column":22}},"51":{"start":{"line":142,"column":4},"end":{"line":142,"column":28}},"52":{"start":{"line":144,"column":4},"end":{"line":144,"column":54}},"53":{"start":{"line":145,"column":4},"end":{"line":145,"column":48}},"54":{"start":{"line":149,"column":4},"end":{"line":151,"column":5}},"55":{"start":{"line":150,"column":6},"end":{"line":150,"column":37}},"56":{"start":{"line":157,"column":4},"end":{"line":157,"column":34}},"57":{"start":{"line":163,"column":4},"end":{"line":163,"column":37}},"58":{"start":{"line":169,"column":4},"end":{"line":169,"column":32}},"59":{"start":{"line":170,"column":4},"end":{"line":170,"column":42}},"60":{"start":{"line":170,"column":33},"end":{"line":170,"column":40}},"61":{"start":{"line":173,"column":4},"end":{"line":174,"column":44}},"62":{"start":{"line":173,"column":22},"end":{"line":173,"column":35}},"63":{"start":{"line":174,"column":9},"end":{"line":174,"column":44}},"64":{"start":{"line":174,"column":28},"end":{"line":174,"column":42}},"65":{"start":{"line":176,"column":4},"end":{"line":176,"column":55}},"66":{"start":{"line":178,"column":4},"end":{"line":178,"column":28}},"67":{"start":{"line":186,"column":4},"end":{"line":186,"column":28}},"68":{"start":{"line":194,"column":4},"end":{"line":194,"column":17}},"69":{"start":{"line":195,"column":4},"end":{"line":195,"column":20}},"70":{"start":{"line":200,"column":0},"end":{"line":200,"column":45}}},"branchMap":{"1":{"line":8,"type":"binary-expr","locations":[{"start":{"line":8,"column":17},"end":{"line":8,"column":24}},{"start":{"line":8,"column":28},"end":{"line":8,"column":30}}]},"2":{"line":12,"type":"if","locations":[{"start":{"line":12,"column":2},"end":{"line":12,"column":2}},{"start":{"line":12,"column":2},"end":{"line":12,"column":2}}]},"3":{"line":18,"type":"if","locations":[{"start":{"line":18,"column":2},"end":{"line":18,"column":2}},{"start":{"line":18,"column":2},"end":{"line":18,"column":2}}]},"4":{"line":51,"type":"if","locations":[{"start":{"line":51,"column":4},"end":{"line":51,"column":4}},{"start":{"line":51,"column":4},"end":{"line":51,"column":4}}]},"5":{"line":51,"type":"binary-expr","locations":[{"start":{"line":51,"column":8},"end":{"line":51,"column":21}},{"start":{"line":51,"column":25},"end":{"line":51,"column":40}},{"start":{"line":51,"column":44},"end":{"line":51,"column":67}}]},"6":{"line":59,"type":"if","locations":[{"start":{"line":59,"column":4},"end":{"line":59,"column":4}},{"start":{"line":59,"column":4},"end":{"line":59,"column":4}}]},"7":{"line":63,"type":"if","locations":[{"start":{"line":63,"column":4},"end":{"line":63,"column":4}},{"start":{"line":63,"column":4},"end":{"line":63,"column":4}}]},"8":{"line":70,"type":"if","locations":[{"start":{"line":70,"column":4},"end":{"line":70,"column":4}},{"start":{"line":70,"column":4},"end":{"line":70,"column":4}}]},"9":{"line":74,"type":"if","locations":[{"start":{"line":74,"column":4},"end":{"line":74,"column":4}},{"start":{"line":74,"column":4},"end":{"line":74,"column":4}}]},"10":{"line":74,"type":"binary-expr","locations":[{"start":{"line":74,"column":8},"end":{"line":74,"column":21}},{"start":{"line":74,"column":25},"end":{"line":74,"column":46}}]},"11":{"line":78,"type":"if","locations":[{"start":{"line":78,"column":4},"end":{"line":78,"column":4}},{"start":{"line":78,"column":4},"end":{"line":78,"column":4}}]},"12":{"line":83,"type":"if","locations":[{"start":{"line":83,"column":4},"end":{"line":83,"column":4}},{"start":{"line":83,"column":4},"end":{"line":83,"column":4}}]},"13":{"line":83,"type":"binary-expr","locations":[{"start":{"line":83,"column":8},"end":{"line":83,"column":22}},{"start":{"line":83,"column":26},"end":{"line":83,"column":38}}]},"14":{"line":98,"type":"if","locations":[{"start":{"line":98,"column":4},"end":{"line":98,"column":4}},{"start":{"line":98,"column":4},"end":{"line":98,"column":4}}]},"15":{"line":102,"type":"if","locations":[{"start":{"line":102,"column":8},"end":{"line":102,"column":8}},{"start":{"line":102,"column":8},"end":{"line":102,"column":8}}]},"16":{"line":128,"type":"binary-expr","locations":[{"start":{"line":128,"column":23},"end":{"line":128,"column":36}},{"start":{"line":128,"column":40},"end":{"line":128,"column":63}}]},"17":{"line":132,"type":"if","locations":[{"start":{"line":132,"column":4},"end":{"line":132,"column":4}},{"start":{"line":132,"column":4},"end":{"line":132,"column":4}}]},"18":{"line":138,"type":"if","locations":[{"start":{"line":138,"column":4},"end":{"line":138,"column":4}},{"start":{"line":138,"column":4},"end":{"line":138,"column":4}}]},"19":{"line":138,"type":"binary-expr","locations":[{"start":{"line":138,"column":8},"end":{"line":138,"column":23}},{"start":{"line":138,"column":27},"end":{"line":138,"column":39}}]},"20":{"line":149,"type":"if","locations":[{"start":{"line":149,"column":4},"end":{"line":149,"column":4}},{"start":{"line":149,"column":4},"end":{"line":149,"column":4}}]},"21":{"line":149,"type":"binary-expr","locations":[{"start":{"line":149,"column":8},"end":{"line":149,"column":17}},{"start":{"line":149,"column":21},"end":{"line":149,"column":42}}]},"22":{"line":170,"type":"if","locations":[{"start":{"line":170,"column":4},"end":{"line":170,"column":4}},{"start":{"line":170,"column":4},"end":{"line":170,"column":4}}]},"23":{"line":170,"type":"binary-expr","locations":[{"start":{"line":170,"column":8},"end":{"line":170,"column":13}},{"start":{"line":170,"column":17},"end":{"line":170,"column":30}}]},"24":{"line":173,"type":"if","locations":[{"start":{"line":173,"column":4},"end":{"line":173,"column":4}},{"start":{"line":173,"column":4},"end":{"line":173,"column":4}}]},"25":{"line":174,"type":"if","locations":[{"start":{"line":174,"column":9},"end":{"line":174,"column":9}},{"start":{"line":174,"column":9},"end":{"line":174,"column":9}}]}}},"./src/marionette.regionManager.js":{"path":"./src/marionette.regionManager.js","s":{"1":1,"2":1,"3":168,"4":168,"5":66,"6":66,"7":87,"8":66,"9":87,"10":83,"11":87,"12":87,"13":66,"14":115,"15":115,"16":115,"17":115,"18":115,"19":107,"20":8,"21":2,"22":6,"23":115,"24":115,"25":115,"26":17,"27":10,"28":10,"29":11,"30":18,"31":15,"32":19,"33":8,"34":8,"35":8,"36":115,"37":115,"38":28,"39":28,"40":28,"41":28,"42":143,"43":1,"44":1,"45":23,"46":13,"47":13,"48":13,"49":1},"b":{"1":[66,21],"2":[83,4],"3":[107,8],"4":[115,93,93],"5":[2,6]},"f":{"1":1,"2":168,"3":66,"4":87,"5":115,"6":17,"7":10,"8":11,"9":18,"10":15,"11":19,"12":8,"13":115,"14":28,"15":143,"16":23,"17":13},"fnMap":{"1":{"name":"(anonymous_1)","line":5,"loc":{"start":{"line":5,"column":28},"end":{"line":5,"column":48}}},"2":{"name":"(anonymous_2)","line":8,"loc":{"start":{"line":8,"column":17},"end":{"line":8,"column":34}}},"3":{"name":"(anonymous_3)","line":16,"loc":{"start":{"line":16,"column":16},"end":{"line":16,"column":53}}},"4":{"name":"(anonymous_4)","line":19,"loc":{"start":{"line":19,"column":32},"end":{"line":19,"column":58}}},"5":{"name":"(anonymous_5)","line":37,"loc":{"start":{"line":37,"column":15},"end":{"line":37,"column":41}}},"6":{"name":"(anonymous_6)","line":58,"loc":{"start":{"line":58,"column":9},"end":{"line":58,"column":23}}},"7":{"name":"(anonymous_7)","line":63,"loc":{"start":{"line":63,"column":18},"end":{"line":63,"column":32}}},"8":{"name":"(anonymous_8)","line":70,"loc":{"start":{"line":70,"column":19},"end":{"line":70,"column":29}}},"9":{"name":"(anonymous_9)","line":71,"loc":{"start":{"line":71,"column":28},"end":{"line":71,"column":50}}},"10":{"name":"(anonymous_10)","line":78,"loc":{"start":{"line":78,"column":18},"end":{"line":78,"column":28}}},"11":{"name":"(anonymous_11)","line":79,"loc":{"start":{"line":79,"column":28},"end":{"line":79,"column":50}}},"12":{"name":"(anonymous_12)","line":86,"loc":{"start":{"line":86,"column":11},"end":{"line":86,"column":21}}},"13":{"name":"(anonymous_13)","line":93,"loc":{"start":{"line":93,"column":12},"end":{"line":93,"column":34}}},"14":{"name":"(anonymous_14)","line":99,"loc":{"start":{"line":99,"column":13},"end":{"line":99,"column":35}}},"15":{"name":"(anonymous_15)","line":107,"loc":{"start":{"line":107,"column":16},"end":{"line":107,"column":26}}},"16":{"name":"(anonymous_16)","line":123,"loc":{"start":{"line":123,"column":18},"end":{"line":123,"column":35}}},"17":{"name":"(anonymous_17)","line":124,"loc":{"start":{"line":124,"column":38},"end":{"line":124,"column":49}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":132,"column":15}},"2":{"start":{"line":7,"column":2},"end":{"line":111,"column":5}},"3":{"start":{"line":9,"column":6},"end":{"line":9,"column":25}},"4":{"start":{"line":10,"column":6},"end":{"line":10,"column":70}},"5":{"start":{"line":17,"column":6},"end":{"line":17,"column":23}},"6":{"start":{"line":19,"column":6},"end":{"line":30,"column":15}},"7":{"start":{"line":20,"column":8},"end":{"line":22,"column":9}},"8":{"start":{"line":21,"column":10},"end":{"line":21,"column":48}},"9":{"start":{"line":24,"column":8},"end":{"line":26,"column":9}},"10":{"start":{"line":25,"column":10},"end":{"line":25,"column":60}},"11":{"start":{"line":28,"column":8},"end":{"line":28,"column":54}},"12":{"start":{"line":29,"column":8},"end":{"line":29,"column":31}},"13":{"start":{"line":32,"column":6},"end":{"line":32,"column":21}},"14":{"start":{"line":38,"column":6},"end":{"line":38,"column":17}},"15":{"start":{"line":40,"column":6},"end":{"line":40,"column":44}},"16":{"start":{"line":41,"column":6},"end":{"line":41,"column":44}},"17":{"start":{"line":42,"column":6},"end":{"line":42,"column":46}},"18":{"start":{"line":44,"column":6},"end":{"line":50,"column":7}},"19":{"start":{"line":45,"column":8},"end":{"line":45,"column":78}},"20":{"start":{"line":46,"column":13},"end":{"line":50,"column":7}},"21":{"start":{"line":47,"column":8},"end":{"line":47,"column":78}},"22":{"start":{"line":49,"column":8},"end":{"line":49,"column":28}},"23":{"start":{"line":52,"column":6},"end":{"line":52,"column":32}},"24":{"start":{"line":53,"column":6},"end":{"line":53,"column":53}},"25":{"start":{"line":54,"column":6},"end":{"line":54,"column":20}},"26":{"start":{"line":59,"column":6},"end":{"line":59,"column":33}},"27":{"start":{"line":64,"column":6},"end":{"line":64,"column":39}},"28":{"start":{"line":65,"column":6},"end":{"line":65,"column":33}},"29":{"start":{"line":71,"column":6},"end":{"line":73,"column":15}},"30":{"start":{"line":72,"column":8},"end":{"line":72,"column":35}},"31":{"start":{"line":79,"column":6},"end":{"line":81,"column":15}},"32":{"start":{"line":80,"column":8},"end":{"line":80,"column":23}},"33":{"start":{"line":87,"column":6},"end":{"line":87,"column":27}},"34":{"start":{"line":88,"column":6},"end":{"line":88,"column":55}},"35":{"start":{"line":89,"column":6},"end":{"line":89,"column":62}},"36":{"start":{"line":94,"column":6},"end":{"line":94,"column":35}},"37":{"start":{"line":95,"column":6},"end":{"line":95,"column":24}},"38":{"start":{"line":100,"column":6},"end":{"line":100,"column":21}},"39":{"start":{"line":101,"column":6},"end":{"line":101,"column":33}},"40":{"start":{"line":102,"column":6},"end":{"line":102,"column":24}},"41":{"start":{"line":103,"column":6},"end":{"line":103,"column":56}},"42":{"start":{"line":108,"column":6},"end":{"line":108,"column":42}},"43":{"start":{"line":118,"column":2},"end":{"line":121,"column":43}},"44":{"start":{"line":123,"column":2},"end":{"line":129,"column":5}},"45":{"start":{"line":124,"column":4},"end":{"line":128,"column":6}},"46":{"start":{"line":125,"column":6},"end":{"line":125,"column":44}},"47":{"start":{"line":126,"column":6},"end":{"line":126,"column":56}},"48":{"start":{"line":127,"column":6},"end":{"line":127,"column":38}},"49":{"start":{"line":131,"column":2},"end":{"line":131,"column":23}}},"branchMap":{"1":{"line":20,"type":"if","locations":[{"start":{"line":20,"column":8},"end":{"line":20,"column":8}},{"start":{"line":20,"column":8},"end":{"line":20,"column":8}}]},"2":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":8},"end":{"line":24,"column":8}},{"start":{"line":24,"column":8},"end":{"line":24,"column":8}}]},"3":{"line":44,"type":"if","locations":[{"start":{"line":44,"column":6},"end":{"line":44,"column":6}},{"start":{"line":44,"column":6},"end":{"line":44,"column":6}}]},"4":{"line":44,"type":"binary-expr","locations":[{"start":{"line":44,"column":10},"end":{"line":44,"column":18}},{"start":{"line":44,"column":23},"end":{"line":44,"column":31}},{"start":{"line":44,"column":35},"end":{"line":44,"column":46}}]},"5":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":13},"end":{"line":46,"column":13}},{"start":{"line":46,"column":13},"end":{"line":46,"column":13}}]}}},"./src/marionette.layout.js":{"path":"./src/marionette.layout.js","s":{"1":1,"2":37,"3":37,"4":37,"5":37,"6":42,"7":2,"8":42,"9":29,"10":13,"11":12,"12":42,"13":42,"14":42,"15":5,"16":0,"17":5,"18":5,"19":5,"20":11,"21":11,"22":11,"23":39,"24":39,"25":4,"26":4,"27":50,"28":50,"29":32,"30":50,"31":39,"32":39,"33":39,"34":2,"35":37,"36":39,"37":12,"38":12,"39":15,"40":39,"41":39,"42":63,"43":63,"44":39,"45":13,"46":13},"b":{"1":[37,21],"2":[2,40],"3":[29,13],"4":[12,1],"5":[0,5],"6":[2,37],"7":[37,13]},"f":{"1":37,"2":42,"3":5,"4":11,"5":39,"6":4,"7":50,"8":32,"9":39,"10":12,"11":15,"12":39,"13":63,"14":13},"fnMap":{"1":{"name":"(anonymous_1)","line":15,"loc":{"start":{"line":15,"column":15},"end":{"line":15,"column":34}}},"2":{"name":"(anonymous_2)","line":28,"loc":{"start":{"line":28,"column":10},"end":{"line":28,"column":20}}},"3":{"name":"(anonymous_3)","line":52,"loc":{"start":{"line":52,"column":9},"end":{"line":52,"column":21}}},"4":{"name":"(anonymous_4)","line":60,"loc":{"start":{"line":60,"column":13},"end":{"line":60,"column":39}}},"5":{"name":"(anonymous_5)","line":67,"loc":{"start":{"line":67,"column":14},"end":{"line":67,"column":31}}},"6":{"name":"(anonymous_6)","line":73,"loc":{"start":{"line":73,"column":16},"end":{"line":73,"column":30}}},"7":{"name":"(anonymous_7)","line":79,"loc":{"start":{"line":79,"column":17},"end":{"line":79,"column":34}}},"8":{"name":"(anonymous_8)","line":84,"loc":{"start":{"line":84,"column":16},"end":{"line":84,"column":26}}},"9":{"name":"(anonymous_9)","line":92,"loc":{"start":{"line":92,"column":22},"end":{"line":92,"column":41}}},"10":{"name":"(anonymous_10)","line":107,"loc":{"start":{"line":107,"column":24},"end":{"line":107,"column":34}}},"11":{"name":"(anonymous_11)","line":109,"loc":{"start":{"line":109,"column":28},"end":{"line":109,"column":44}}},"12":{"name":"(anonymous_12)","line":116,"loc":{"start":{"line":116,"column":22},"end":{"line":116,"column":32}}},"13":{"name":"(anonymous_13)","line":119,"loc":{"start":{"line":119,"column":52},"end":{"line":119,"column":74}}},"14":{"name":"(anonymous_14)","line":124,"loc":{"start":{"line":124,"column":55},"end":{"line":124,"column":77}}}},"statementMap":{"1":{"start":{"line":10,"column":0},"end":{"line":129,"column":3}},"2":{"start":{"line":16,"column":4},"end":{"line":16,"column":28}},"3":{"start":{"line":18,"column":4},"end":{"line":18,"column":29}},"4":{"start":{"line":19,"column":4},"end":{"line":19,"column":37}},"5":{"start":{"line":21,"column":4},"end":{"line":21,"column":66}},"6":{"start":{"line":30,"column":4},"end":{"line":34,"column":5}},"7":{"start":{"line":33,"column":6},"end":{"line":33,"column":32}},"8":{"start":{"line":35,"column":4},"end":{"line":43,"column":5}},"9":{"start":{"line":38,"column":6},"end":{"line":38,"column":32}},"10":{"start":{"line":39,"column":11},"end":{"line":43,"column":5}},"11":{"start":{"line":42,"column":6},"end":{"line":42,"column":34}},"12":{"start":{"line":45,"column":4},"end":{"line":45,"column":54}},"13":{"start":{"line":46,"column":4},"end":{"line":46,"column":72}},"14":{"start":{"line":48,"column":4},"end":{"line":48,"column":18}},"15":{"start":{"line":53,"column":4},"end":{"line":53,"column":33}},"16":{"start":{"line":53,"column":24},"end":{"line":53,"column":31}},"17":{"start":{"line":54,"column":4},"end":{"line":54,"column":31}},"18":{"start":{"line":55,"column":4},"end":{"line":55,"column":54}},"19":{"start":{"line":56,"column":4},"end":{"line":56,"column":58}},"20":{"start":{"line":61,"column":4},"end":{"line":61,"column":21}},"21":{"start":{"line":62,"column":4},"end":{"line":62,"column":31}},"22":{"start":{"line":63,"column":4},"end":{"line":63,"column":45}},"23":{"start":{"line":68,"column":4},"end":{"line":68,"column":55}},"24":{"start":{"line":69,"column":4},"end":{"line":69,"column":39}},"25":{"start":{"line":74,"column":4},"end":{"line":74,"column":30}},"26":{"start":{"line":75,"column":4},"end":{"line":75,"column":49}},"27":{"start":{"line":80,"column":4},"end":{"line":80,"column":20}},"28":{"start":{"line":82,"column":4},"end":{"line":85,"column":6}},"29":{"start":{"line":84,"column":28},"end":{"line":84,"column":44}},"30":{"start":{"line":87,"column":4},"end":{"line":87,"column":60}},"31":{"start":{"line":93,"column":4},"end":{"line":93,"column":16}},"32":{"start":{"line":94,"column":4},"end":{"line":94,"column":30}},"33":{"start":{"line":96,"column":4},"end":{"line":100,"column":5}},"34":{"start":{"line":97,"column":6},"end":{"line":97,"column":38}},"35":{"start":{"line":99,"column":6},"end":{"line":99,"column":35}},"36":{"start":{"line":102,"column":4},"end":{"line":102,"column":29}},"37":{"start":{"line":108,"column":4},"end":{"line":108,"column":38}},"38":{"start":{"line":109,"column":4},"end":{"line":111,"column":7}},"39":{"start":{"line":110,"column":6},"end":{"line":110,"column":21}},"40":{"start":{"line":117,"column":4},"end":{"line":117,"column":56}},"41":{"start":{"line":119,"column":4},"end":{"line":122,"column":7}},"42":{"start":{"line":120,"column":6},"end":{"line":120,"column":26}},"43":{"start":{"line":121,"column":6},"end":{"line":121,"column":47}},"44":{"start":{"line":124,"column":4},"end":{"line":127,"column":7}},"45":{"start":{"line":125,"column":6},"end":{"line":125,"column":24}},"46":{"start":{"line":126,"column":6},"end":{"line":126,"column":50}}},"branchMap":{"1":{"line":16,"type":"binary-expr","locations":[{"start":{"line":16,"column":14},"end":{"line":16,"column":21}},{"start":{"line":16,"column":25},"end":{"line":16,"column":27}}]},"2":{"line":30,"type":"if","locations":[{"start":{"line":30,"column":4},"end":{"line":30,"column":4}},{"start":{"line":30,"column":4},"end":{"line":30,"column":4}}]},"3":{"line":35,"type":"if","locations":[{"start":{"line":35,"column":4},"end":{"line":35,"column":4}},{"start":{"line":35,"column":4},"end":{"line":35,"column":4}}]},"4":{"line":39,"type":"if","locations":[{"start":{"line":39,"column":11},"end":{"line":39,"column":11}},{"start":{"line":39,"column":11},"end":{"line":39,"column":11}}]},"5":{"line":53,"type":"if","locations":[{"start":{"line":53,"column":4},"end":{"line":53,"column":4}},{"start":{"line":53,"column":4},"end":{"line":53,"column":4}}]},"6":{"line":96,"type":"if","locations":[{"start":{"line":96,"column":4},"end":{"line":96,"column":4}},{"start":{"line":96,"column":4},"end":{"line":96,"column":4}}]},"7":{"line":99,"type":"binary-expr","locations":[{"start":{"line":99,"column":16},"end":{"line":99,"column":28}},{"start":{"line":99,"column":32},"end":{"line":99,"column":34}}]}}},"./src/marionette.application.js":{"path":"./src/marionette.application.js","s":{"1":1,"2":101,"3":101,"4":101,"5":101,"6":101,"7":101,"8":101,"9":101,"10":1,"11":0,"12":0,"13":0,"14":0,"15":75,"16":36,"17":36,"18":36,"19":36,"20":11,"21":1,"22":2,"23":1,"24":140,"25":140,"26":140,"27":101,"28":101,"29":16,"30":101,"31":2,"32":1},"b":{},"f":{"1":101,"2":0,"3":0,"4":75,"5":36,"6":11,"7":1,"8":2,"9":1,"10":140,"11":101,"12":16,"13":2},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":25},"end":{"line":7,"column":42}}},"2":{"name":"(anonymous_2)","line":22,"loc":{"start":{"line":22,"column":11},"end":{"line":22,"column":21}}},"3":{"name":"(anonymous_3)","line":28,"loc":{"start":{"line":28,"column":11},"end":{"line":28,"column":21}}},"4":{"name":"(anonymous_4)","line":36,"loc":{"start":{"line":36,"column":18},"end":{"line":36,"column":39}}},"5":{"name":"(anonymous_5)","line":43,"loc":{"start":{"line":43,"column":9},"end":{"line":43,"column":26}}},"6":{"name":"(anonymous_6)","line":55,"loc":{"start":{"line":55,"column":14},"end":{"line":55,"column":31}}},"7":{"name":"(anonymous_7)","line":60,"loc":{"start":{"line":60,"column":16},"end":{"line":60,"column":26}}},"8":{"name":"(anonymous_8)","line":67,"loc":{"start":{"line":67,"column":16},"end":{"line":67,"column":33}}},"9":{"name":"(anonymous_9)","line":74,"loc":{"start":{"line":74,"column":13},"end":{"line":74,"column":30}}},"10":{"name":"(anonymous_10)","line":79,"loc":{"start":{"line":79,"column":10},"end":{"line":79,"column":49}}},"11":{"name":"(anonymous_11)","line":90,"loc":{"start":{"line":90,"column":22},"end":{"line":90,"column":32}}},"12":{"name":"(anonymous_12)","line":93,"loc":{"start":{"line":93,"column":53},"end":{"line":93,"column":75}}},"13":{"name":"(anonymous_13)","line":97,"loc":{"start":{"line":97,"column":56},"end":{"line":97,"column":78}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":18,"column":2}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":28}},"3":{"start":{"line":9,"column":2},"end":{"line":9,"column":51}},"4":{"start":{"line":10,"column":2},"end":{"line":10,"column":51}},"5":{"start":{"line":11,"column":2},"end":{"line":11,"column":48}},"6":{"start":{"line":12,"column":2},"end":{"line":12,"column":53}},"7":{"start":{"line":13,"column":2},"end":{"line":13,"column":23}},"8":{"start":{"line":15,"column":2},"end":{"line":15,"column":26}},"9":{"start":{"line":17,"column":2},"end":{"line":17,"column":48}},"10":{"start":{"line":20,"column":0},"end":{"line":101,"column":3}},"11":{"start":{"line":23,"column":4},"end":{"line":23,"column":54}},"12":{"start":{"line":24,"column":4},"end":{"line":24,"column":53}},"13":{"start":{"line":29,"column":4},"end":{"line":29,"column":54}},"14":{"start":{"line":30,"column":4},"end":{"line":30,"column":56}},"15":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"16":{"start":{"line":44,"column":4},"end":{"line":44,"column":53}},"17":{"start":{"line":45,"column":4},"end":{"line":45,"column":43}},"18":{"start":{"line":46,"column":4},"end":{"line":46,"column":52}},"19":{"start":{"line":48,"column":4},"end":{"line":48,"column":41}},"20":{"start":{"line":56,"column":4},"end":{"line":56,"column":51}},"21":{"start":{"line":61,"column":4},"end":{"line":61,"column":39}},"22":{"start":{"line":68,"column":4},"end":{"line":68,"column":45}},"23":{"start":{"line":75,"column":4},"end":{"line":75,"column":43}},"24":{"start":{"line":82,"column":4},"end":{"line":82,"column":32}},"25":{"start":{"line":83,"column":4},"end":{"line":83,"column":23}},"26":{"start":{"line":86,"column":4},"end":{"line":86,"column":67}},"27":{"start":{"line":91,"column":4},"end":{"line":91,"column":57}},"28":{"start":{"line":93,"column":4},"end":{"line":95,"column":7}},"29":{"start":{"line":94,"column":6},"end":{"line":94,"column":26}},"30":{"start":{"line":97,"column":4},"end":{"line":99,"column":7}},"31":{"start":{"line":98,"column":6},"end":{"line":98,"column":24}},"32":{"start":{"line":104,"column":0},"end":{"line":104,"column":50}}},"branchMap":{}},"./src/marionette.approuter.js":{"path":"./src/marionette.approuter.js","s":{"1":1,"2":13,"3":13,"4":13,"5":13,"6":13,"7":1,"8":1,"9":13,"10":2,"11":11,"12":11,"13":15,"14":14,"15":16,"16":16,"17":1,"18":15},"b":{"1":[13,3],"2":[2,11],"3":[1,15]},"f":{"1":13,"2":1,"3":13,"4":15,"5":14,"6":16},"fnMap":{"1":{"name":"(anonymous_1)","line":21,"loc":{"start":{"line":21,"column":15},"end":{"line":21,"column":32}}},"2":{"name":"(anonymous_2)","line":33,"loc":{"start":{"line":33,"column":12},"end":{"line":33,"column":40}}},"3":{"name":"(anonymous_3)","line":41,"loc":{"start":{"line":41,"column":20},"end":{"line":41,"column":52}}},"4":{"name":"(anonymous_4)","line":46,"loc":{"start":{"line":46,"column":23},"end":{"line":46,"column":39}}},"5":{"name":"(anonymous_5)","line":51,"loc":{"start":{"line":51,"column":18},"end":{"line":51,"column":28}}},"6":{"name":"(anonymous_6)","line":55,"loc":{"start":{"line":55,"column":16},"end":{"line":55,"column":55}}}},"statementMap":{"1":{"start":{"line":19,"column":0},"end":{"line":64,"column":3}},"2":{"start":{"line":22,"column":4},"end":{"line":22,"column":72}},"3":{"start":{"line":24,"column":4},"end":{"line":24,"column":33}},"4":{"start":{"line":26,"column":4},"end":{"line":26,"column":60}},"5":{"start":{"line":27,"column":4},"end":{"line":27,"column":43}},"6":{"start":{"line":28,"column":4},"end":{"line":28,"column":49}},"7":{"start":{"line":34,"column":4},"end":{"line":34,"column":43}},"8":{"start":{"line":35,"column":4},"end":{"line":35,"column":53}},"9":{"start":{"line":42,"column":4},"end":{"line":42,"column":30}},"10":{"start":{"line":42,"column":21},"end":{"line":42,"column":28}},"11":{"start":{"line":44,"column":4},"end":{"line":44,"column":49}},"12":{"start":{"line":46,"column":4},"end":{"line":48,"column":13}},"13":{"start":{"line":47,"column":6},"end":{"line":47,"column":61}},"14":{"start":{"line":52,"column":4},"end":{"line":52,"column":52}},"15":{"start":{"line":56,"column":4},"end":{"line":56,"column":40}},"16":{"start":{"line":58,"column":4},"end":{"line":60,"column":5}},"17":{"start":{"line":59,"column":6},"end":{"line":59,"column":85}},"18":{"start":{"line":62,"column":4},"end":{"line":62,"column":62}}},"branchMap":{"1":{"line":24,"type":"binary-expr","locations":[{"start":{"line":24,"column":19},"end":{"line":24,"column":26}},{"start":{"line":24,"column":30},"end":{"line":24,"column":32}}]},"2":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":42,"column":4}},{"start":{"line":42,"column":4},"end":{"line":42,"column":4}}]},"3":{"line":58,"type":"if","locations":[{"start":{"line":58,"column":4},"end":{"line":58,"column":4}},{"start":{"line":58,"column":4},"end":{"line":58,"column":4}}]}}},"./src/marionette.module.js":{"path":"./src/marionette.module.js","s":{"1":1,"2":132,"3":132,"4":132,"5":132,"6":132,"7":132,"8":1,"9":96,"10":14,"11":125,"12":28,"13":97,"14":33,"15":29,"16":97,"17":97,"18":97,"19":97,"20":16,"21":2,"22":14,"23":14,"24":14,"25":12,"26":14,"27":14,"28":14,"29":14,"30":81,"31":81,"32":0,"33":81,"34":81,"35":132,"36":132,"37":1,"38":140,"39":140,"40":140,"41":140,"42":140,"43":140,"44":140,"45":140,"46":193,"47":193,"48":193,"49":140,"50":193,"51":193,"52":132,"53":132,"54":132,"55":193,"56":193,"57":193,"58":193,"59":76,"60":76,"61":117,"62":6,"63":6,"64":111,"65":193,"66":81,"67":193,"68":193,"69":118,"70":118,"71":47,"72":45},"b":{"1":[28,97],"2":[29,4],"3":[2,14],"4":[0,81],"5":[132,61],"6":[76,117],"7":[6,111],"8":[81,112],"9":[193,175],"10":[118,75],"11":[193,169],"12":[45,2]},"f":{"1":132,"2":96,"3":14,"4":125,"5":33,"6":16,"7":12,"8":81,"9":81,"10":132,"11":140,"12":193,"13":193,"14":193,"15":47},"fnMap":{"1":{"name":"(anonymous_1)","line":6,"loc":{"start":{"line":6,"column":20},"end":{"line":6,"column":45}}},"2":{"name":"(anonymous_2)","line":27,"loc":{"start":{"line":27,"column":18},"end":{"line":27,"column":36}}},"3":{"name":"(anonymous_3)","line":34,"loc":{"start":{"line":34,"column":16},"end":{"line":34,"column":34}}},"4":{"name":"(anonymous_4)","line":39,"loc":{"start":{"line":39,"column":9},"end":{"line":39,"column":26}}},"5":{"name":"(anonymous_5)","line":44,"loc":{"start":{"line":44,"column":28},"end":{"line":44,"column":41}}},"6":{"name":"(anonymous_6)","line":62,"loc":{"start":{"line":62,"column":8},"end":{"line":62,"column":18}}},"7":{"name":"(anonymous_7)","line":71,"loc":{"start":{"line":71,"column":28},"end":{"line":71,"column":41}}},"8":{"name":"(anonymous_8)","line":85,"loc":{"start":{"line":85,"column":17},"end":{"line":85,"column":55}}},"9":{"name":"(anonymous_9)","line":91,"loc":{"start":{"line":91,"column":24},"end":{"line":91,"column":56}}},"10":{"name":"(anonymous_10)","line":110,"loc":{"start":{"line":110,"column":35},"end":{"line":110,"column":45}}},"11":{"name":"(anonymous_11)","line":120,"loc":{"start":{"line":120,"column":10},"end":{"line":120,"column":54}}},"12":{"name":"(anonymous_12)","line":137,"loc":{"start":{"line":137,"column":24},"end":{"line":137,"column":47}}},"13":{"name":"(anonymous_13)","line":147,"loc":{"start":{"line":147,"column":14},"end":{"line":147,"column":64}}},"14":{"name":"(anonymous_14)","line":162,"loc":{"start":{"line":162,"column":24},"end":{"line":162,"column":65}}},"15":{"name":"(anonymous_15)","line":197,"loc":{"start":{"line":197,"column":34},"end":{"line":197,"column":51}}}},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":19,"column":2}},"2":{"start":{"line":7,"column":2},"end":{"line":7,"column":31}},"3":{"start":{"line":10,"column":2},"end":{"line":10,"column":23}},"4":{"start":{"line":12,"column":2},"end":{"line":12,"column":41}},"5":{"start":{"line":15,"column":2},"end":{"line":15,"column":17}},"6":{"start":{"line":16,"column":2},"end":{"line":16,"column":30}},"7":{"start":{"line":18,"column":2},"end":{"line":18,"column":48}},"8":{"start":{"line":23,"column":0},"end":{"line":114,"column":3}},"9":{"start":{"line":28,"column":4},"end":{"line":28,"column":45}},"10":{"start":{"line":35,"column":4},"end":{"line":35,"column":43}},"11":{"start":{"line":41,"column":4},"end":{"line":41,"column":39}},"12":{"start":{"line":41,"column":30},"end":{"line":41,"column":37}},"13":{"start":{"line":44,"column":4},"end":{"line":49,"column":7}},"14":{"start":{"line":46,"column":6},"end":{"line":48,"column":7}},"15":{"start":{"line":47,"column":8},"end":{"line":47,"column":27}},"16":{"start":{"line":52,"column":4},"end":{"line":52,"column":48}},"17":{"start":{"line":54,"column":4},"end":{"line":54,"column":50}},"18":{"start":{"line":55,"column":4},"end":{"line":55,"column":31}},"19":{"start":{"line":57,"column":4},"end":{"line":57,"column":41}},"20":{"start":{"line":64,"column":4},"end":{"line":64,"column":40}},"21":{"start":{"line":64,"column":31},"end":{"line":64,"column":38}},"22":{"start":{"line":65,"column":4},"end":{"line":65,"column":32}},"23":{"start":{"line":67,"column":4},"end":{"line":67,"column":55}},"24":{"start":{"line":71,"column":4},"end":{"line":71,"column":58}},"25":{"start":{"line":71,"column":43},"end":{"line":71,"column":54}},"26":{"start":{"line":74,"column":4},"end":{"line":74,"column":49}},"27":{"start":{"line":77,"column":4},"end":{"line":77,"column":39}},"28":{"start":{"line":78,"column":4},"end":{"line":78,"column":37}},"29":{"start":{"line":80,"column":4},"end":{"line":80,"column":48}},"30":{"start":{"line":86,"column":4},"end":{"line":86,"column":60}},"31":{"start":{"line":92,"column":4},"end":{"line":92,"column":31}},"32":{"start":{"line":92,"column":22},"end":{"line":92,"column":29}},"33":{"start":{"line":95,"column":4},"end":{"line":102,"column":7}},"34":{"start":{"line":104,"column":4},"end":{"line":104,"column":33}},"35":{"start":{"line":111,"column":4},"end":{"line":111,"column":60}},"36":{"start":{"line":112,"column":4},"end":{"line":112,"column":58}},"37":{"start":{"line":117,"column":0},"end":{"line":206,"column":3}},"38":{"start":{"line":121,"column":4},"end":{"line":121,"column":21}},"39":{"start":{"line":125,"column":4},"end":{"line":125,"column":38}},"40":{"start":{"line":126,"column":4},"end":{"line":126,"column":28}},"41":{"start":{"line":129,"column":4},"end":{"line":129,"column":41}},"42":{"start":{"line":130,"column":4},"end":{"line":130,"column":36}},"43":{"start":{"line":133,"column":4},"end":{"line":133,"column":31}},"44":{"start":{"line":134,"column":4},"end":{"line":134,"column":51}},"45":{"start":{"line":137,"column":4},"end":{"line":141,"column":13}},"46":{"start":{"line":138,"column":6},"end":{"line":138,"column":32}},"47":{"start":{"line":139,"column":6},"end":{"line":139,"column":62}},"48":{"start":{"line":140,"column":6},"end":{"line":140,"column":88}},"49":{"start":{"line":144,"column":4},"end":{"line":144,"column":18}},"50":{"start":{"line":149,"column":4},"end":{"line":149,"column":42}},"51":{"start":{"line":151,"column":4},"end":{"line":157,"column":5}},"52":{"start":{"line":153,"column":6},"end":{"line":153,"column":54}},"53":{"start":{"line":154,"column":6},"end":{"line":154,"column":40}},"54":{"start":{"line":156,"column":6},"end":{"line":156,"column":51}},"55":{"start":{"line":159,"column":4},"end":{"line":159,"column":18}},"56":{"start":{"line":163,"column":4},"end":{"line":163,"column":11}},"57":{"start":{"line":164,"column":4},"end":{"line":164,"column":24}},"58":{"start":{"line":166,"column":4},"end":{"line":179,"column":5}},"59":{"start":{"line":168,"column":6},"end":{"line":168,"column":15}},"60":{"start":{"line":169,"column":6},"end":{"line":169,"column":29}},"61":{"start":{"line":171,"column":11},"end":{"line":179,"column":5}},"62":{"start":{"line":173,"column":6},"end":{"line":173,"column":22}},"63":{"start":{"line":174,"column":6},"end":{"line":174,"column":44}},"64":{"start":{"line":178,"column":6},"end":{"line":178,"column":29}},"65":{"start":{"line":182,"column":4},"end":{"line":184,"column":5}},"66":{"start":{"line":183,"column":6},"end":{"line":183,"column":37}},"67":{"start":{"line":188,"column":4},"end":{"line":188,"column":71}},"68":{"start":{"line":191,"column":4},"end":{"line":203,"column":5}},"69":{"start":{"line":194,"column":6},"end":{"line":194,"column":48}},"70":{"start":{"line":197,"column":6},"end":{"line":201,"column":9}},"71":{"start":{"line":198,"column":8},"end":{"line":200,"column":9}},"72":{"start":{"line":199,"column":10},"end":{"line":199,"column":32}}},"branchMap":{"1":{"line":41,"type":"if","locations":[{"start":{"line":41,"column":4},"end":{"line":41,"column":4}},{"start":{"line":41,"column":4},"end":{"line":41,"column":4}}]},"2":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":6},"end":{"line":46,"column":6}},{"start":{"line":46,"column":6},"end":{"line":46,"column":6}}]},"3":{"line":64,"type":"if","locations":[{"start":{"line":64,"column":4},"end":{"line":64,"column":4}},{"start":{"line":64,"column":4},"end":{"line":64,"column":4}}]},"4":{"line":92,"type":"if","locations":[{"start":{"line":92,"column":4},"end":{"line":92,"column":4}},{"start":{"line":92,"column":4},"end":{"line":92,"column":4}}]},"5":{"line":151,"type":"if","locations":[{"start":{"line":151,"column":4},"end":{"line":151,"column":4}},{"start":{"line":151,"column":4},"end":{"line":151,"column":4}}]},"6":{"line":166,"type":"if","locations":[{"start":{"line":166,"column":4},"end":{"line":166,"column":4}},{"start":{"line":166,"column":4},"end":{"line":166,"column":4}}]},"7":{"line":171,"type":"if","locations":[{"start":{"line":171,"column":11},"end":{"line":171,"column":11}},{"start":{"line":171,"column":11},"end":{"line":171,"column":11}}]},"8":{"line":182,"type":"if","locations":[{"start":{"line":182,"column":4},"end":{"line":182,"column":4}},{"start":{"line":182,"column":4},"end":{"line":182,"column":4}}]},"9":{"line":188,"type":"binary-expr","locations":[{"start":{"line":188,"column":29},"end":{"line":188,"column":51}},{"start":{"line":188,"column":55},"end":{"line":188,"column":70}}]},"10":{"line":191,"type":"if","locations":[{"start":{"line":191,"column":4},"end":{"line":191,"column":4}},{"start":{"line":191,"column":4},"end":{"line":191,"column":4}}]},"11":{"line":191,"type":"binary-expr","locations":[{"start":{"line":191,"column":8},"end":{"line":191,"column":30}},{"start":{"line":191,"column":34},"end":{"line":191,"column":69}}]},"12":{"line":198,"type":"if","locations":[{"start":{"line":198,"column":8},"end":{"line":198,"column":8}},{"start":{"line":198,"column":8},"end":{"line":198,"column":8}}]}}},"./src/marionette.templatecache.js":{"path":"./src/marionette.templatecache.js","s":{"1":1,"2":30,"3":1,"4":141,"5":141,"6":30,"7":30,"8":141,"9":6,"10":6,"11":6,"12":6,"13":4,"14":6,"15":2,"16":1,"17":141,"18":111,"19":30,"20":30,"21":30,"22":30,"23":30,"24":0,"25":30,"26":30},"b":{"1":[30,111],"2":[4,2],"3":[111,30],"4":[0,30],"5":[30,30]},"f":{"1":30,"2":141,"3":6,"4":141,"5":30,"6":30},"fnMap":{"1":{"name":"(anonymous_1)","line":6,"loc":{"start":{"line":6,"column":27},"end":{"line":6,"column":47}}},"2":{"name":"(anonymous_2)","line":19,"loc":{"start":{"line":19,"column":7},"end":{"line":19,"column":27}}},"3":{"name":"(anonymous_3)","line":37,"loc":{"start":{"line":37,"column":9},"end":{"line":37,"column":19}}},"4":{"name":"(anonymous_4)","line":58,"loc":{"start":{"line":58,"column":8},"end":{"line":58,"column":18}}},"5":{"name":"(anonymous_5)","line":76,"loc":{"start":{"line":76,"column":16},"end":{"line":76,"column":36}}},"6":{"name":"(anonymous_6)","line":90,"loc":{"start":{"line":90,"column":19},"end":{"line":90,"column":40}}}},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":8,"column":2}},"2":{"start":{"line":7,"column":2},"end":{"line":7,"column":31}},"3":{"start":{"line":13,"column":0},"end":{"line":50,"column":3}},"4":{"start":{"line":20,"column":4},"end":{"line":20,"column":57}},"5":{"start":{"line":22,"column":4},"end":{"line":25,"column":5}},"6":{"start":{"line":23,"column":6},"end":{"line":23,"column":64}},"7":{"start":{"line":24,"column":6},"end":{"line":24,"column":55}},"8":{"start":{"line":27,"column":4},"end":{"line":27,"column":33}},"9":{"start":{"line":38,"column":4},"end":{"line":38,"column":10}},"10":{"start":{"line":39,"column":4},"end":{"line":39,"column":32}},"11":{"start":{"line":40,"column":4},"end":{"line":40,"column":29}},"12":{"start":{"line":42,"column":4},"end":{"line":48,"column":5}},"13":{"start":{"line":43,"column":6},"end":{"line":45,"column":7}},"14":{"start":{"line":44,"column":8},"end":{"line":44,"column":44}},"15":{"start":{"line":47,"column":6},"end":{"line":47,"column":31}},"16":{"start":{"line":55,"column":0},"end":{"line":93,"column":3}},"17":{"start":{"line":60,"column":4},"end":{"line":62,"column":5}},"18":{"start":{"line":61,"column":6},"end":{"line":61,"column":35}},"19":{"start":{"line":65,"column":4},"end":{"line":65,"column":54}},"20":{"start":{"line":66,"column":4},"end":{"line":66,"column":59}},"21":{"start":{"line":68,"column":4},"end":{"line":68,"column":33}},"22":{"start":{"line":77,"column":4},"end":{"line":77,"column":51}},"23":{"start":{"line":79,"column":4},"end":{"line":81,"column":5}},"24":{"start":{"line":80,"column":6},"end":{"line":80,"column":85}},"25":{"start":{"line":83,"column":4},"end":{"line":83,"column":20}},"26":{"start":{"line":91,"column":4},"end":{"line":91,"column":35}}},"branchMap":{"1":{"line":22,"type":"if","locations":[{"start":{"line":22,"column":4},"end":{"line":22,"column":4}},{"start":{"line":22,"column":4},"end":{"line":22,"column":4}}]},"2":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":42,"column":4}},{"start":{"line":42,"column":4},"end":{"line":42,"column":4}}]},"3":{"line":60,"type":"if","locations":[{"start":{"line":60,"column":4},"end":{"line":60,"column":4}},{"start":{"line":60,"column":4},"end":{"line":60,"column":4}}]},"4":{"line":79,"type":"if","locations":[{"start":{"line":79,"column":4},"end":{"line":79,"column":4}},{"start":{"line":79,"column":4},"end":{"line":79,"column":4}}]},"5":{"line":79,"type":"binary-expr","locations":[{"start":{"line":79,"column":8},"end":{"line":79,"column":17}},{"start":{"line":79,"column":21},"end":{"line":79,"column":42}}]}}},"./src/marionette.renderer.js":{"path":"./src/marionette.renderer.js","s":{"1":1,"2":180,"3":3,"4":3,"5":3,"6":177,"7":177,"8":53,"9":124,"10":177},"b":{"1":[3,177],"2":[53,124]},"f":{"1":180},"fnMap":{"1":{"name":"(anonymous_1)","line":12,"loc":{"start":{"line":12,"column":10},"end":{"line":12,"column":34}}}},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":29,"column":2}},"2":{"start":{"line":14,"column":4},"end":{"line":18,"column":5}},"3":{"start":{"line":15,"column":6},"end":{"line":15,"column":95}},"4":{"start":{"line":16,"column":6},"end":{"line":16,"column":43}},"5":{"start":{"line":17,"column":6},"end":{"line":17,"column":18}},"6":{"start":{"line":20,"column":4},"end":{"line":20,"column":21}},"7":{"start":{"line":21,"column":4},"end":{"line":25,"column":5}},"8":{"start":{"line":22,"column":6},"end":{"line":22,"column":30}},"9":{"start":{"line":24,"column":6},"end":{"line":24,"column":60}},"10":{"start":{"line":27,"column":4},"end":{"line":27,"column":30}}},"branchMap":{"1":{"line":14,"type":"if","locations":[{"start":{"line":14,"column":4},"end":{"line":14,"column":4}},{"start":{"line":14,"column":4},"end":{"line":14,"column":4}}]},"2":{"line":21,"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":4}},{"start":{"line":21,"column":4},"end":{"line":21,"column":4}}]}}},"./src/marionette.callbacks.js":{"path":"./src/marionette.callbacks.js","s":{"1":1,"2":374,"3":374,"4":1,"5":235,"6":235,"7":120,"8":1,"9":120,"10":158,"11":30,"12":30,"13":30,"14":30,"15":35},"b":{"1":[1,119]},"f":{"1":374,"2":235,"3":120,"4":158,"5":30,"6":35},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":23},"end":{"line":7,"column":33}}},"2":{"name":"(anonymous_2)","line":17,"loc":{"start":{"line":17,"column":7},"end":{"line":17,"column":42}}},"3":{"name":"(anonymous_3)","line":20,"loc":{"start":{"line":20,"column":24},"end":{"line":20,"column":50}}},"4":{"name":"(anonymous_4)","line":29,"loc":{"start":{"line":29,"column":7},"end":{"line":29,"column":33}}},"5":{"name":"(anonymous_5)","line":35,"loc":{"start":{"line":35,"column":9},"end":{"line":35,"column":19}}},"6":{"name":"(anonymous_6)","line":40,"loc":{"start":{"line":40,"column":22},"end":{"line":40,"column":34}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":10,"column":2}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":43}},"3":{"start":{"line":9,"column":2},"end":{"line":9,"column":23}},"4":{"start":{"line":12,"column":0},"end":{"line":44,"column":3}},"5":{"start":{"line":18,"column":4},"end":{"line":18,"column":63}},"6":{"start":{"line":20,"column":4},"end":{"line":23,"column":7}},"7":{"start":{"line":21,"column":6},"end":{"line":21,"column":56}},"8":{"start":{"line":21,"column":28},"end":{"line":21,"column":54}},"9":{"start":{"line":22,"column":6},"end":{"line":22,"column":38}},"10":{"start":{"line":30,"column":4},"end":{"line":30,"column":45}},"11":{"start":{"line":36,"column":4},"end":{"line":36,"column":36}},"12":{"start":{"line":37,"column":4},"end":{"line":37,"column":45}},"13":{"start":{"line":38,"column":4},"end":{"line":38,"column":25}},"14":{"start":{"line":40,"column":4},"end":{"line":42,"column":13}},"15":{"start":{"line":41,"column":6},"end":{"line":41,"column":30}}},"branchMap":{"1":{"line":21,"type":"if","locations":[{"start":{"line":21,"column":6},"end":{"line":21,"column":6}},{"start":{"line":21,"column":6},"end":{"line":21,"column":6}}]}}}} \ No newline at end of file +{"./src/build/marionette.core.js":{"path":"./src/build/marionette.core.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1},"b":{},"f":{"1":1},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":47}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":36,"column":22}},"2":{"start":{"line":5,"column":2},"end":{"line":5,"column":22}},"3":{"start":{"line":6,"column":2},"end":{"line":6,"column":35}},"4":{"start":{"line":9,"column":2},"end":{"line":9,"column":28}},"5":{"start":{"line":35,"column":2},"end":{"line":35,"column":20}}},"branchMap":{}},"./spec/javascripts/support/marionette.support.js":{"path":"./spec/javascripts/support/marionette.support.js","s":{"1":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}}},"branchMap":{}},"./src/marionette.helpers.js":{"path":"./src/marionette.helpers.js","s":{"1":1,"2":1,"3":1379,"4":1,"5":3,"6":3,"7":3,"8":1,"9":1,"10":3762,"11":0,"12":3762,"13":3762,"14":183,"15":3579,"16":3762},"b":{"1":[3,1],"2":[0,3762],"3":[3762,3762],"4":[183,3579],"5":[3762,3724,186]},"f":{"1":1379,"2":3,"3":3762},"fnMap":{"1":{"name":"slice","line":6,"loc":{"start":{"line":6,"column":0},"end":{"line":6,"column":21}}},"2":{"name":"throwError","line":10,"loc":{"start":{"line":10,"column":0},"end":{"line":10,"column":35}}},"3":{"name":"(anonymous_3)","line":27,"loc":{"start":{"line":27,"column":23},"end":{"line":27,"column":51}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":5,"column":39}},"2":{"start":{"line":6,"column":0},"end":{"line":8,"column":1}},"3":{"start":{"line":7,"column":2},"end":{"line":7,"column":31}},"4":{"start":{"line":10,"column":0},"end":{"line":14,"column":1}},"5":{"start":{"line":11,"column":2},"end":{"line":11,"column":33}},"6":{"start":{"line":12,"column":2},"end":{"line":12,"column":31}},"7":{"start":{"line":13,"column":2},"end":{"line":13,"column":14}},"8":{"start":{"line":20,"column":0},"end":{"line":20,"column":42}},"9":{"start":{"line":27,"column":0},"end":{"line":38,"column":2}},"10":{"start":{"line":28,"column":2},"end":{"line":28,"column":40}},"11":{"start":{"line":28,"column":31},"end":{"line":28,"column":38}},"12":{"start":{"line":29,"column":2},"end":{"line":29,"column":12}},"13":{"start":{"line":31,"column":2},"end":{"line":35,"column":3}},"14":{"start":{"line":32,"column":4},"end":{"line":32,"column":39}},"15":{"start":{"line":34,"column":4},"end":{"line":34,"column":31}},"16":{"start":{"line":37,"column":2},"end":{"line":37,"column":15}}},"branchMap":{"1":{"line":12,"type":"binary-expr","locations":[{"start":{"line":12,"column":15},"end":{"line":12,"column":19}},{"start":{"line":12,"column":23},"end":{"line":12,"column":30}}]},"2":{"line":28,"type":"if","locations":[{"start":{"line":28,"column":2},"end":{"line":28,"column":2}},{"start":{"line":28,"column":2},"end":{"line":28,"column":2}}]},"3":{"line":28,"type":"binary-expr","locations":[{"start":{"line":28,"column":6},"end":{"line":28,"column":13}},{"start":{"line":28,"column":17},"end":{"line":28,"column":28}}]},"4":{"line":31,"type":"if","locations":[{"start":{"line":31,"column":2},"end":{"line":31,"column":2}},{"start":{"line":31,"column":2},"end":{"line":31,"column":2}}]},"5":{"line":31,"type":"binary-expr","locations":[{"start":{"line":31,"column":6},"end":{"line":31,"column":20}},{"start":{"line":31,"column":25},"end":{"line":31,"column":53}},{"start":{"line":31,"column":59},"end":{"line":31,"column":99}}]}}},"./src/marionette.triggermethod.js":{"path":"./src/marionette.triggermethod.js","s":{"1":1,"2":1,"3":1,"4":7835,"5":1,"6":3602,"7":3602,"8":3602,"9":3601,"10":3602,"11":390,"12":1},"b":{"1":[3601,1],"2":[390,3212]},"f":{"1":1,"2":7835,"3":3602},"fnMap":{"1":{"name":"(anonymous_1)","line":8,"loc":{"start":{"line":8,"column":28},"end":{"line":8,"column":38}}},"2":{"name":"getEventName","line":15,"loc":{"start":{"line":15,"column":2},"end":{"line":15,"column":50}}},"3":{"name":"(anonymous_3)","line":20,"loc":{"start":{"line":20,"column":22},"end":{"line":20,"column":38}}}},"statementMap":{"1":{"start":{"line":8,"column":0},"end":{"line":38,"column":5}},"2":{"start":{"line":11,"column":2},"end":{"line":11,"column":31}},"3":{"start":{"line":15,"column":2},"end":{"line":17,"column":3}},"4":{"start":{"line":16,"column":4},"end":{"line":16,"column":35}},"5":{"start":{"line":20,"column":2},"end":{"line":35,"column":4}},"6":{"start":{"line":22,"column":4},"end":{"line":22,"column":66}},"7":{"start":{"line":23,"column":4},"end":{"line":23,"column":34}},"8":{"start":{"line":26,"column":4},"end":{"line":28,"column":5}},"9":{"start":{"line":27,"column":6},"end":{"line":27,"column":42}},"10":{"start":{"line":31,"column":4},"end":{"line":34,"column":5}},"11":{"start":{"line":33,"column":6},"end":{"line":33,"column":51}},"12":{"start":{"line":37,"column":2},"end":{"line":37,"column":23}}},"branchMap":{"1":{"line":26,"type":"if","locations":[{"start":{"line":26,"column":4},"end":{"line":26,"column":4}},{"start":{"line":26,"column":4},"end":{"line":26,"column":4}}]},"2":{"line":31,"type":"if","locations":[{"start":{"line":31,"column":4},"end":{"line":31,"column":4}},{"start":{"line":31,"column":4},"end":{"line":31,"column":4}}]}}},"./src/marionette.bindEntityEvents.js":{"path":"./src/marionette.bindEntityEvents.js","s":{"1":1,"2":1,"3":25,"4":25,"5":29,"6":29,"7":1,"8":28,"9":1,"10":8,"11":1,"12":33,"13":33,"14":37,"15":37,"16":1,"17":8,"18":1,"19":2295,"20":2221,"21":74,"22":8,"23":74,"24":74,"25":16,"26":58,"27":1,"28":1143,"29":1,"30":1152},"b":{"1":[1,28],"2":[2221,74],"3":[2295,1054],"4":[8,66],"5":[16,58]},"f":{"1":1,"2":25,"3":29,"4":8,"5":33,"6":37,"7":8,"8":2295,"9":74,"10":1143,"11":1152},"fnMap":{"1":{"name":"(anonymous_1)","line":17,"loc":{"start":{"line":17,"column":1},"end":{"line":17,"column":21}}},"2":{"name":"bindFromStrings","line":22,"loc":{"start":{"line":22,"column":2},"end":{"line":22,"column":56}}},"3":{"name":"(anonymous_3)","line":25,"loc":{"start":{"line":25,"column":23},"end":{"line":25,"column":44}}},"4":{"name":"bindToFunction","line":37,"loc":{"start":{"line":37,"column":2},"end":{"line":37,"column":54}}},"5":{"name":"unbindFromStrings","line":43,"loc":{"start":{"line":43,"column":2},"end":{"line":43,"column":58}}},"6":{"name":"(anonymous_6)","line":46,"loc":{"start":{"line":46,"column":23},"end":{"line":46,"column":44}}},"7":{"name":"unbindToFunction","line":53,"loc":{"start":{"line":53,"column":2},"end":{"line":53,"column":56}}},"8":{"name":"iterateEvents","line":59,"loc":{"start":{"line":59,"column":2},"end":{"line":59,"column":84}}},"9":{"name":"(anonymous_9)","line":68,"loc":{"start":{"line":68,"column":21},"end":{"line":68,"column":43}}},"10":{"name":"(anonymous_10)","line":82,"loc":{"start":{"line":82,"column":32},"end":{"line":82,"column":66}}},"11":{"name":"(anonymous_11)","line":86,"loc":{"start":{"line":86,"column":34},"end":{"line":86,"column":68}}}},"statementMap":{"1":{"start":{"line":17,"column":0},"end":{"line":90,"column":15}},"2":{"start":{"line":22,"column":2},"end":{"line":34,"column":3}},"3":{"start":{"line":23,"column":4},"end":{"line":23,"column":43}},"4":{"start":{"line":25,"column":4},"end":{"line":33,"column":7}},"5":{"start":{"line":27,"column":6},"end":{"line":27,"column":38}},"6":{"start":{"line":28,"column":6},"end":{"line":30,"column":7}},"7":{"start":{"line":29,"column":8},"end":{"line":29,"column":104}},"8":{"start":{"line":32,"column":6},"end":{"line":32,"column":51}},"9":{"start":{"line":37,"column":2},"end":{"line":39,"column":3}},"10":{"start":{"line":38,"column":6},"end":{"line":38,"column":51}},"11":{"start":{"line":43,"column":2},"end":{"line":50,"column":3}},"12":{"start":{"line":44,"column":4},"end":{"line":44,"column":43}},"13":{"start":{"line":46,"column":4},"end":{"line":49,"column":7}},"14":{"start":{"line":47,"column":6},"end":{"line":47,"column":38}},"15":{"start":{"line":48,"column":6},"end":{"line":48,"column":56}},"16":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"17":{"start":{"line":54,"column":6},"end":{"line":54,"column":56}},"18":{"start":{"line":59,"column":2},"end":{"line":79,"column":3}},"19":{"start":{"line":60,"column":4},"end":{"line":60,"column":41}},"20":{"start":{"line":60,"column":32},"end":{"line":60,"column":39}},"21":{"start":{"line":63,"column":4},"end":{"line":65,"column":5}},"22":{"start":{"line":64,"column":6},"end":{"line":64,"column":39}},"23":{"start":{"line":68,"column":4},"end":{"line":78,"column":7}},"24":{"start":{"line":72,"column":6},"end":{"line":76,"column":7}},"25":{"start":{"line":73,"column":8},"end":{"line":73,"column":55}},"26":{"start":{"line":75,"column":8},"end":{"line":75,"column":53}},"27":{"start":{"line":82,"column":2},"end":{"line":84,"column":4}},"28":{"start":{"line":83,"column":4},"end":{"line":83,"column":77}},"29":{"start":{"line":86,"column":2},"end":{"line":88,"column":4}},"30":{"start":{"line":87,"column":4},"end":{"line":87,"column":81}}},"branchMap":{"1":{"line":28,"type":"if","locations":[{"start":{"line":28,"column":6},"end":{"line":28,"column":6}},{"start":{"line":28,"column":6},"end":{"line":28,"column":6}}]},"2":{"line":60,"type":"if","locations":[{"start":{"line":60,"column":4},"end":{"line":60,"column":4}},{"start":{"line":60,"column":4},"end":{"line":60,"column":4}}]},"3":{"line":60,"type":"binary-expr","locations":[{"start":{"line":60,"column":8},"end":{"line":60,"column":15}},{"start":{"line":60,"column":19},"end":{"line":60,"column":28}}]},"4":{"line":63,"type":"if","locations":[{"start":{"line":63,"column":4},"end":{"line":63,"column":4}},{"start":{"line":63,"column":4},"end":{"line":63,"column":4}}]},"5":{"line":72,"type":"if","locations":[{"start":{"line":72,"column":6},"end":{"line":72,"column":6}},{"start":{"line":72,"column":6},"end":{"line":72,"column":6}}]}}},"./src/marionette.controller.js":{"path":"./src/marionette.controller.js","s":{"1":1,"2":184,"3":184,"4":184,"5":7,"6":1,"7":1,"8":12,"9":12,"10":12},"b":{"1":[184,179],"2":[7,177]},"f":{"1":184,"2":12},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":24},"end":{"line":7,"column":41}}},"2":{"name":"(anonymous_2)","line":23,"loc":{"start":{"line":23,"column":9},"end":{"line":23,"column":19}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":14,"column":2}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":48}},"3":{"start":{"line":9,"column":2},"end":{"line":9,"column":31}},"4":{"start":{"line":11,"column":2},"end":{"line":13,"column":3}},"5":{"start":{"line":12,"column":4},"end":{"line":12,"column":34}},"6":{"start":{"line":16,"column":0},"end":{"line":16,"column":49}},"7":{"start":{"line":22,"column":0},"end":{"line":28,"column":3}},"8":{"start":{"line":24,"column":4},"end":{"line":24,"column":25}},"9":{"start":{"line":25,"column":4},"end":{"line":25,"column":32}},"10":{"start":{"line":26,"column":4},"end":{"line":26,"column":18}}},"branchMap":{"1":{"line":9,"type":"binary-expr","locations":[{"start":{"line":9,"column":17},"end":{"line":9,"column":24}},{"start":{"line":9,"column":28},"end":{"line":9,"column":30}}]},"2":{"line":11,"type":"if","locations":[{"start":{"line":11,"column":2},"end":{"line":11,"column":2}},{"start":{"line":11,"column":2},"end":{"line":11,"column":2}}]}}},"./src/marionette.domRefresh.js":{"path":"./src/marionette.domRefresh.js","s":{"1":1,"2":1,"3":41,"4":41,"5":1,"6":419,"7":419,"8":1,"9":460,"10":16,"11":16,"12":1,"13":33,"14":1,"15":569,"16":41,"17":569,"18":419},"b":{"1":[16,444],"2":[460,47,33],"3":[16,0]},"f":{"1":1,"2":41,"3":419,"4":460,"5":33,"6":569,"7":41,"8":419},"fnMap":{"1":{"name":"(anonymous_1)","line":8,"loc":{"start":{"line":8,"column":32},"end":{"line":8,"column":57}}},"2":{"name":"handleShow","line":11,"loc":{"start":{"line":11,"column":2},"end":{"line":11,"column":27}}},"3":{"name":"handleRender","line":17,"loc":{"start":{"line":17,"column":2},"end":{"line":17,"column":29}}},"4":{"name":"triggerDOMRefresh","line":23,"loc":{"start":{"line":23,"column":2},"end":{"line":23,"column":34}}},"5":{"name":"isInDOM","line":31,"loc":{"start":{"line":31,"column":2},"end":{"line":31,"column":25}}},"6":{"name":"(anonymous_6)","line":36,"loc":{"start":{"line":36,"column":9},"end":{"line":36,"column":23}}},"7":{"name":"(anonymous_7)","line":37,"loc":{"start":{"line":37,"column":32},"end":{"line":37,"column":42}}},"8":{"name":"(anonymous_8)","line":41,"loc":{"start":{"line":41,"column":34},"end":{"line":41,"column":44}}}},"statementMap":{"1":{"start":{"line":8,"column":0},"end":{"line":45,"column":29}},"2":{"start":{"line":11,"column":2},"end":{"line":14,"column":3}},"3":{"start":{"line":12,"column":4},"end":{"line":12,"column":25}},"4":{"start":{"line":13,"column":4},"end":{"line":13,"column":28}},"5":{"start":{"line":17,"column":2},"end":{"line":20,"column":3}},"6":{"start":{"line":18,"column":4},"end":{"line":18,"column":28}},"7":{"start":{"line":19,"column":4},"end":{"line":19,"column":28}},"8":{"start":{"line":23,"column":2},"end":{"line":29,"column":3}},"9":{"start":{"line":24,"column":4},"end":{"line":28,"column":5}},"10":{"start":{"line":25,"column":6},"end":{"line":27,"column":7}},"11":{"start":{"line":26,"column":8},"end":{"line":26,"column":42}},"12":{"start":{"line":31,"column":2},"end":{"line":33,"column":3}},"13":{"start":{"line":32,"column":4},"end":{"line":32,"column":45}},"14":{"start":{"line":36,"column":2},"end":{"line":44,"column":4}},"15":{"start":{"line":37,"column":4},"end":{"line":39,"column":7}},"16":{"start":{"line":38,"column":6},"end":{"line":38,"column":23}},"17":{"start":{"line":41,"column":4},"end":{"line":43,"column":7}},"18":{"start":{"line":42,"column":6},"end":{"line":42,"column":25}}},"branchMap":{"1":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":24,"column":4}},{"start":{"line":24,"column":4},"end":{"line":24,"column":4}}]},"2":{"line":24,"type":"binary-expr","locations":[{"start":{"line":24,"column":8},"end":{"line":24,"column":21}},{"start":{"line":24,"column":25},"end":{"line":24,"column":41}},{"start":{"line":24,"column":45},"end":{"line":24,"column":58}}]},"3":{"line":25,"type":"if","locations":[{"start":{"line":25,"column":6},"end":{"line":25,"column":6}},{"start":{"line":25,"column":6},"end":{"line":25,"column":6}}]}}},"./src/marionette.view.js":{"path":"./src/marionette.view.js","s":{"1":1,"2":570,"3":570,"4":570,"5":570,"6":570,"7":569,"8":569,"9":182,"10":182,"11":182,"12":182,"13":3,"14":182,"15":591,"16":557,"17":34,"18":43,"19":43,"20":2,"21":2,"22":34,"23":572,"24":551,"25":21,"26":21,"27":21,"28":30,"29":30,"30":30,"31":24,"32":24,"33":24,"34":24,"35":24,"36":24,"37":22,"38":24,"39":22,"40":24,"41":24,"42":21,"43":572,"44":572,"45":571,"46":572,"47":572,"48":0,"49":572,"50":572,"51":572,"52":572,"53":576,"54":576,"55":576,"56":576,"57":132,"58":5,"59":127,"60":127,"61":3,"62":124,"63":124,"64":124,"65":124,"66":180,"67":162,"68":18,"69":15,"70":18,"71":18,"72":18,"73":40,"74":40,"75":124,"76":122,"77":2,"78":2,"79":2,"80":2},"b":{"1":[1,569],"2":[182,0],"3":[3,179],"4":[557,34],"5":[2,41],"6":[551,21],"7":[4,26],"8":[24,0],"9":[4,20],"10":[4,20],"11":[22,2],"12":[24,22],"13":[22,2],"14":[24,22],"15":[572,572],"16":[0,572],"17":[5,127],"18":[3,124],"19":[162,18],"20":[15,3],"21":[122,2],"22":[124,3]},"f":{"1":570,"2":182,"3":182,"4":591,"5":43,"6":572,"7":30,"8":24,"9":572,"10":572,"11":576,"12":32,"13":132,"14":180,"15":40,"16":124,"17":2},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":15},"end":{"line":7,"column":32}}},"2":{"name":"(anonymous_2)","line":34,"loc":{"start":{"line":34,"column":15},"end":{"line":34,"column":25}}},"3":{"name":"(anonymous_3)","line":43,"loc":{"start":{"line":43,"column":24},"end":{"line":43,"column":40}}},"4":{"name":"(anonymous_4)","line":55,"loc":{"start":{"line":55,"column":19},"end":{"line":55,"column":34}}},"5":{"name":"(anonymous_5)","line":60,"loc":{"start":{"line":60,"column":25},"end":{"line":60,"column":37}}},"6":{"name":"(anonymous_6)","line":73,"loc":{"start":{"line":73,"column":21},"end":{"line":73,"column":31}}},"7":{"name":"(anonymous_7)","line":83,"loc":{"start":{"line":83,"column":21},"end":{"line":83,"column":41}}},"8":{"name":"(anonymous_8)","line":89,"loc":{"start":{"line":89,"column":27},"end":{"line":89,"column":38}}},"9":{"name":"(anonymous_9)","line":121,"loc":{"start":{"line":121,"column":18},"end":{"line":121,"column":34}}},"10":{"name":"(anonymous_10)","line":128,"loc":{"start":{"line":128,"column":22},"end":{"line":128,"column":38}}},"11":{"name":"(anonymous_11)","line":141,"loc":{"start":{"line":141,"column":20},"end":{"line":141,"column":30}}},"12":{"name":"(anonymous_12)","line":150,"loc":{"start":{"line":150,"column":16},"end":{"line":150,"column":26}}},"13":{"name":"(anonymous_13)","line":156,"loc":{"start":{"line":156,"column":9},"end":{"line":156,"column":19}}},"14":{"name":"(anonymous_14)","line":181,"loc":{"start":{"line":181,"column":18},"end":{"line":181,"column":28}}},"15":{"name":"(anonymous_15)","line":197,"loc":{"start":{"line":197,"column":29},"end":{"line":197,"column":43}}},"16":{"name":"(anonymous_16)","line":204,"loc":{"start":{"line":204,"column":20},"end":{"line":204,"column":30}}},"17":{"name":"(anonymous_17)","line":208,"loc":{"start":{"line":208,"column":20},"end":{"line":208,"column":39}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":216,"column":3}},"2":{"start":{"line":8,"column":4},"end":{"line":8,"column":30}},"3":{"start":{"line":10,"column":4},"end":{"line":10,"column":54}},"4":{"start":{"line":16,"column":4},"end":{"line":16,"column":113}},"5":{"start":{"line":19,"column":4},"end":{"line":19,"column":65}},"6":{"start":{"line":20,"column":4},"end":{"line":20,"column":58}},"7":{"start":{"line":22,"column":4},"end":{"line":22,"column":39}},"8":{"start":{"line":23,"column":4},"end":{"line":23,"column":57}},"9":{"start":{"line":35,"column":4},"end":{"line":35,"column":50}},"10":{"start":{"line":44,"column":4},"end":{"line":44,"column":26}},"11":{"start":{"line":45,"column":4},"end":{"line":45,"column":72}},"12":{"start":{"line":46,"column":4},"end":{"line":48,"column":5}},"13":{"start":{"line":47,"column":6},"end":{"line":47,"column":51}},"14":{"start":{"line":49,"column":4},"end":{"line":49,"column":45}},"15":{"start":{"line":56,"column":4},"end":{"line":58,"column":5}},"16":{"start":{"line":57,"column":6},"end":{"line":57,"column":13}},"17":{"start":{"line":60,"column":4},"end":{"line":66,"column":13}},"18":{"start":{"line":61,"column":6},"end":{"line":61,"column":34}},"19":{"start":{"line":62,"column":6},"end":{"line":65,"column":7}},"20":{"start":{"line":63,"column":8},"end":{"line":63,"column":51}},"21":{"start":{"line":64,"column":8},"end":{"line":64,"column":23}},"22":{"start":{"line":68,"column":4},"end":{"line":68,"column":16}},"23":{"start":{"line":74,"column":4},"end":{"line":74,"column":35}},"24":{"start":{"line":74,"column":26},"end":{"line":74,"column":33}},"25":{"start":{"line":76,"column":4},"end":{"line":76,"column":27}},"26":{"start":{"line":79,"column":4},"end":{"line":79,"column":68}},"27":{"start":{"line":83,"column":4},"end":{"line":114,"column":13}},"28":{"start":{"line":85,"column":6},"end":{"line":85,"column":41}},"29":{"start":{"line":86,"column":6},"end":{"line":86,"column":55}},"30":{"start":{"line":89,"column":6},"end":{"line":112,"column":8}},"31":{"start":{"line":92,"column":8},"end":{"line":101,"column":9}},"32":{"start":{"line":93,"column":10},"end":{"line":93,"column":41}},"33":{"start":{"line":94,"column":10},"end":{"line":94,"column":39}},"34":{"start":{"line":96,"column":10},"end":{"line":96,"column":74}},"35":{"start":{"line":97,"column":10},"end":{"line":97,"column":69}},"36":{"start":{"line":99,"column":10},"end":{"line":99,"column":61}},"37":{"start":{"line":99,"column":42},"end":{"line":99,"column":59}},"38":{"start":{"line":100,"column":10},"end":{"line":100,"column":52}},"39":{"start":{"line":100,"column":36},"end":{"line":100,"column":50}},"40":{"start":{"line":104,"column":8},"end":{"line":108,"column":10}},"41":{"start":{"line":111,"column":8},"end":{"line":111,"column":44}},"42":{"start":{"line":116,"column":4},"end":{"line":116,"column":25}},"43":{"start":{"line":122,"column":4},"end":{"line":122,"column":36}},"44":{"start":{"line":123,"column":4},"end":{"line":123,"column":93}},"45":{"start":{"line":124,"column":4},"end":{"line":124,"column":103}},"46":{"start":{"line":129,"column":4},"end":{"line":129,"column":35}},"47":{"start":{"line":130,"column":4},"end":{"line":130,"column":60}},"48":{"start":{"line":130,"column":31},"end":{"line":130,"column":58}},"49":{"start":{"line":132,"column":4},"end":{"line":132,"column":28}},"50":{"start":{"line":133,"column":4},"end":{"line":133,"column":44}},"51":{"start":{"line":134,"column":4},"end":{"line":134,"column":47}},"52":{"start":{"line":136,"column":4},"end":{"line":136,"column":70}},"53":{"start":{"line":142,"column":4},"end":{"line":142,"column":53}},"54":{"start":{"line":143,"column":4},"end":{"line":143,"column":63}},"55":{"start":{"line":145,"column":4},"end":{"line":145,"column":95}},"56":{"start":{"line":146,"column":4},"end":{"line":146,"column":105}},"57":{"start":{"line":157,"column":4},"end":{"line":157,"column":34}},"58":{"start":{"line":157,"column":25},"end":{"line":157,"column":32}},"59":{"start":{"line":161,"column":4},"end":{"line":161,"column":57}},"60":{"start":{"line":162,"column":4},"end":{"line":164,"column":5}},"61":{"start":{"line":163,"column":6},"end":{"line":163,"column":13}},"62":{"start":{"line":169,"column":4},"end":{"line":169,"column":25}},"63":{"start":{"line":170,"column":4},"end":{"line":170,"column":32}},"64":{"start":{"line":173,"column":4},"end":{"line":173,"column":28}},"65":{"start":{"line":176,"column":4},"end":{"line":176,"column":18}},"66":{"start":{"line":182,"column":4},"end":{"line":182,"column":29}},"67":{"start":{"line":182,"column":20},"end":{"line":182,"column":27}},"68":{"start":{"line":186,"column":4},"end":{"line":188,"column":5}},"69":{"start":{"line":187,"column":6},"end":{"line":187,"column":33}},"70":{"start":{"line":191,"column":4},"end":{"line":191,"column":49}},"71":{"start":{"line":194,"column":4},"end":{"line":194,"column":17}},"72":{"start":{"line":197,"column":4},"end":{"line":200,"column":13}},"73":{"start":{"line":198,"column":6},"end":{"line":198,"column":35}},"74":{"start":{"line":199,"column":6},"end":{"line":199,"column":38}},"75":{"start":{"line":205,"column":4},"end":{"line":205,"column":49}},"76":{"start":{"line":205,"column":40},"end":{"line":205,"column":47}},"77":{"start":{"line":208,"column":4},"end":{"line":210,"column":13}},"78":{"start":{"line":209,"column":6},"end":{"line":209,"column":27}},"79":{"start":{"line":213,"column":4},"end":{"line":213,"column":31}},"80":{"start":{"line":214,"column":4},"end":{"line":214,"column":28}}},"branchMap":{"1":{"line":16,"type":"cond-expr","locations":[{"start":{"line":16,"column":83},"end":{"line":16,"column":101}},{"start":{"line":16,"column":104},"end":{"line":16,"column":111}}]},"2":{"line":44,"type":"binary-expr","locations":[{"start":{"line":44,"column":13},"end":{"line":44,"column":19}},{"start":{"line":44,"column":23},"end":{"line":44,"column":25}}]},"3":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":4},"end":{"line":46,"column":4}},{"start":{"line":46,"column":4},"end":{"line":46,"column":4}}]},"4":{"line":56,"type":"if","locations":[{"start":{"line":56,"column":4},"end":{"line":56,"column":4}},{"start":{"line":56,"column":4},"end":{"line":56,"column":4}}]},"5":{"line":62,"type":"if","locations":[{"start":{"line":62,"column":6},"end":{"line":62,"column":6}},{"start":{"line":62,"column":6},"end":{"line":62,"column":6}}]},"6":{"line":74,"type":"if","locations":[{"start":{"line":74,"column":4},"end":{"line":74,"column":4}},{"start":{"line":74,"column":4},"end":{"line":74,"column":4}}]},"7":{"line":86,"type":"cond-expr","locations":[{"start":{"line":86,"column":35},"end":{"line":86,"column":46}},{"start":{"line":86,"column":49},"end":{"line":86,"column":54}}]},"8":{"line":92,"type":"if","locations":[{"start":{"line":92,"column":8},"end":{"line":92,"column":8}},{"start":{"line":92,"column":8},"end":{"line":92,"column":8}}]},"9":{"line":96,"type":"cond-expr","locations":[{"start":{"line":96,"column":43},"end":{"line":96,"column":63}},{"start":{"line":96,"column":66},"end":{"line":96,"column":73}}]},"10":{"line":97,"type":"cond-expr","locations":[{"start":{"line":97,"column":40},"end":{"line":97,"column":61}},{"start":{"line":97,"column":64},"end":{"line":97,"column":68}}]},"11":{"line":99,"type":"if","locations":[{"start":{"line":99,"column":10},"end":{"line":99,"column":10}},{"start":{"line":99,"column":10},"end":{"line":99,"column":10}}]},"12":{"line":99,"type":"binary-expr","locations":[{"start":{"line":99,"column":14},"end":{"line":99,"column":27}},{"start":{"line":99,"column":31},"end":{"line":99,"column":38}}]},"13":{"line":100,"type":"if","locations":[{"start":{"line":100,"column":10},"end":{"line":100,"column":10}},{"start":{"line":100,"column":10},"end":{"line":100,"column":10}}]},"14":{"line":100,"type":"binary-expr","locations":[{"start":{"line":100,"column":14},"end":{"line":100,"column":24}},{"start":{"line":100,"column":28},"end":{"line":100,"column":32}}]},"15":{"line":129,"type":"binary-expr","locations":[{"start":{"line":129,"column":13},"end":{"line":129,"column":19}},{"start":{"line":129,"column":23},"end":{"line":129,"column":34}}]},"16":{"line":130,"type":"if","locations":[{"start":{"line":130,"column":4},"end":{"line":130,"column":4}},{"start":{"line":130,"column":4},"end":{"line":130,"column":4}}]},"17":{"line":157,"type":"if","locations":[{"start":{"line":157,"column":4},"end":{"line":157,"column":4}},{"start":{"line":157,"column":4},"end":{"line":157,"column":4}}]},"18":{"line":162,"type":"if","locations":[{"start":{"line":162,"column":4},"end":{"line":162,"column":4}},{"start":{"line":162,"column":4},"end":{"line":162,"column":4}}]},"19":{"line":182,"type":"if","locations":[{"start":{"line":182,"column":4},"end":{"line":182,"column":4}},{"start":{"line":182,"column":4},"end":{"line":182,"column":4}}]},"20":{"line":186,"type":"if","locations":[{"start":{"line":186,"column":4},"end":{"line":186,"column":4}},{"start":{"line":186,"column":4},"end":{"line":186,"column":4}}]},"21":{"line":205,"type":"if","locations":[{"start":{"line":205,"column":4},"end":{"line":205,"column":4}},{"start":{"line":205,"column":4},"end":{"line":205,"column":4}}]},"22":{"line":205,"type":"binary-expr","locations":[{"start":{"line":205,"column":8},"end":{"line":205,"column":16}},{"start":{"line":205,"column":20},"end":{"line":205,"column":37}}]}}},"./src/marionette.itemview.js":{"path":"./src/marionette.itemview.js","s":{"1":1,"2":362,"3":126,"4":126,"5":79,"6":47,"7":2,"8":126,"9":126,"10":126,"11":126,"12":126,"13":126,"14":126,"15":126,"16":125,"17":125,"18":125,"19":125,"20":125,"21":93,"22":2,"23":91,"24":91,"25":91},"b":{"1":[79,47],"2":[2,45],"3":[2,91]},"f":{"1":362,"2":126,"3":126,"4":93},"fnMap":{"1":{"name":"(anonymous_1)","line":11,"loc":{"start":{"line":11,"column":15},"end":{"line":11,"column":25}}},"2":{"name":"(anonymous_2)","line":21,"loc":{"start":{"line":21,"column":17},"end":{"line":21,"column":27}}},"3":{"name":"(anonymous_3)","line":39,"loc":{"start":{"line":39,"column":10},"end":{"line":39,"column":20}}},"4":{"name":"(anonymous_4)","line":62,"loc":{"start":{"line":62,"column":9},"end":{"line":62,"column":19}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":71,"column":3}},"2":{"start":{"line":12,"column":4},"end":{"line":12,"column":72}},"3":{"start":{"line":22,"column":4},"end":{"line":22,"column":18}},"4":{"start":{"line":24,"column":4},"end":{"line":29,"column":5}},"5":{"start":{"line":25,"column":6},"end":{"line":25,"column":33}},"6":{"start":{"line":27,"column":9},"end":{"line":29,"column":5}},"7":{"start":{"line":28,"column":6},"end":{"line":28,"column":49}},"8":{"start":{"line":31,"column":4},"end":{"line":31,"column":16}},"9":{"start":{"line":40,"column":4},"end":{"line":40,"column":26}},"10":{"start":{"line":42,"column":4},"end":{"line":42,"column":46}},"11":{"start":{"line":43,"column":4},"end":{"line":43,"column":51}},"12":{"start":{"line":45,"column":4},"end":{"line":45,"column":36}},"13":{"start":{"line":46,"column":4},"end":{"line":46,"column":43}},"14":{"start":{"line":48,"column":4},"end":{"line":48,"column":38}},"15":{"start":{"line":49,"column":4},"end":{"line":49,"column":58}},"16":{"start":{"line":51,"column":4},"end":{"line":51,"column":24}},"17":{"start":{"line":52,"column":4},"end":{"line":52,"column":26}},"18":{"start":{"line":54,"column":4},"end":{"line":54,"column":39}},"19":{"start":{"line":55,"column":4},"end":{"line":55,"column":46}},"20":{"start":{"line":57,"column":4},"end":{"line":57,"column":16}},"21":{"start":{"line":63,"column":4},"end":{"line":63,"column":33}},"22":{"start":{"line":63,"column":24},"end":{"line":63,"column":31}},"23":{"start":{"line":65,"column":4},"end":{"line":65,"column":44}},"24":{"start":{"line":67,"column":4},"end":{"line":67,"column":66}},"25":{"start":{"line":69,"column":4},"end":{"line":69,"column":38}}},"branchMap":{"1":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":24,"column":4}},{"start":{"line":24,"column":4},"end":{"line":24,"column":4}}]},"2":{"line":27,"type":"if","locations":[{"start":{"line":27,"column":9},"end":{"line":27,"column":9}},{"start":{"line":27,"column":9},"end":{"line":27,"column":9}}]},"3":{"line":63,"type":"if","locations":[{"start":{"line":63,"column":4},"end":{"line":63,"column":4}},{"start":{"line":63,"column":4},"end":{"line":63,"column":4}}]}}},"./src/marionette.collectionview.js":{"path":"./src/marionette.collectionview.js","s":{"1":1,"2":166,"3":166,"4":166,"5":166,"6":518,"7":518,"8":177,"9":177,"10":176,"11":176,"12":175,"13":175,"14":175,"15":2,"16":2,"17":2,"18":107,"19":98,"20":98,"21":98,"22":18,"23":18,"24":18,"25":18,"26":9,"27":9,"28":174,"29":174,"30":171,"31":171,"32":118,"33":118,"34":118,"35":117,"36":117,"37":177,"38":177,"39":177,"40":177,"41":132,"42":45,"43":176,"44":132,"45":132,"46":205,"47":204,"48":106,"49":106,"50":25,"51":25,"52":25,"53":195,"54":10,"55":10,"56":104,"57":154,"58":154,"59":1,"60":153,"61":250,"62":250,"63":4,"64":250,"65":250,"66":250,"67":250,"68":250,"69":250,"70":4,"71":250,"72":250,"73":250,"74":250,"75":371,"76":371,"77":371,"78":371,"79":371,"80":371,"81":2,"82":371,"83":371,"84":1,"85":370,"86":250,"87":250,"88":250,"89":250,"90":9,"91":9,"92":9,"93":69,"94":68,"95":68,"96":67,"97":1,"98":1,"99":68,"100":69,"101":390,"102":217,"103":61,"104":117,"105":176,"106":151,"107":151,"108":25,"109":166,"110":24,"111":4,"112":20,"113":20,"114":20,"115":20,"116":208,"117":60,"118":208},"b":{"1":[2,173],"2":[98,9],"3":[132,45],"4":[25,81],"5":[106,47],"6":[10,185],"7":[1,153],"8":[4,246],"9":[4,246],"10":[250,6],"11":[2,369],"12":[371,2],"13":[1,370],"14":[68,1],"15":[67,1],"16":[1,0],"17":[390,360],"18":[61,156],"19":[151,25],"20":[4,20]},"f":{"1":166,"2":518,"3":177,"4":176,"5":175,"6":2,"7":107,"8":18,"9":9,"10":9,"11":174,"12":171,"13":118,"14":177,"15":132,"16":205,"17":106,"18":195,"19":104,"20":154,"21":250,"22":250,"23":371,"24":371,"25":250,"26":250,"27":9,"28":69,"29":390,"30":217,"31":117,"32":176,"33":166,"34":24,"35":208,"36":60},"fnMap":{"1":{"name":"(anonymous_1)","line":12,"loc":{"start":{"line":12,"column":15},"end":{"line":12,"column":32}}},"2":{"name":"(anonymous_2)","line":24,"loc":{"start":{"line":24,"column":20},"end":{"line":24,"column":31}}},"3":{"name":"(anonymous_3)","line":29,"loc":{"start":{"line":29,"column":18},"end":{"line":29,"column":29}}},"4":{"name":"(anonymous_4)","line":34,"loc":{"start":{"line":34,"column":16},"end":{"line":34,"column":27}}},"5":{"name":"(anonymous_5)","line":41,"loc":{"start":{"line":41,"column":32},"end":{"line":41,"column":44}}},"6":{"name":"(anonymous_6)","line":43,"loc":{"start":{"line":43,"column":37},"end":{"line":43,"column":54}}},"7":{"name":"(anonymous_7)","line":53,"loc":{"start":{"line":53,"column":18},"end":{"line":53,"column":28}}},"8":{"name":"(anonymous_8)","line":62,"loc":{"start":{"line":62,"column":16},"end":{"line":62,"column":51}}},"9":{"name":"(anonymous_9)","line":71,"loc":{"start":{"line":71,"column":16},"end":{"line":71,"column":26}}},"10":{"name":"(anonymous_10)","line":72,"loc":{"start":{"line":72,"column":23},"end":{"line":72,"column":38}}},"11":{"name":"(anonymous_11)","line":79,"loc":{"start":{"line":79,"column":23},"end":{"line":79,"column":33}}},"12":{"name":"(anonymous_12)","line":86,"loc":{"start":{"line":86,"column":19},"end":{"line":86,"column":29}}},"13":{"name":"(anonymous_13)","line":94,"loc":{"start":{"line":94,"column":10},"end":{"line":94,"column":20}}},"14":{"name":"(anonymous_14)","line":105,"loc":{"start":{"line":105,"column":19},"end":{"line":105,"column":29}}},"15":{"name":"(anonymous_15)","line":122,"loc":{"start":{"line":122,"column":18},"end":{"line":122,"column":28}}},"16":{"name":"(anonymous_16)","line":124,"loc":{"start":{"line":124,"column":25},"end":{"line":124,"column":46}}},"17":{"name":"(anonymous_17)","line":133,"loc":{"start":{"line":133,"column":17},"end":{"line":133,"column":27}}},"18":{"name":"(anonymous_18)","line":146,"loc":{"start":{"line":146,"column":18},"end":{"line":146,"column":28}}},"19":{"name":"(anonymous_19)","line":154,"loc":{"start":{"line":154,"column":16},"end":{"line":154,"column":26}}},"20":{"name":"(anonymous_20)","line":161,"loc":{"start":{"line":161,"column":15},"end":{"line":161,"column":29}}},"21":{"name":"(anonymous_21)","line":173,"loc":{"start":{"line":173,"column":15},"end":{"line":173,"column":46}}},"22":{"name":"(anonymous_22)","line":210,"loc":{"start":{"line":210,"column":31},"end":{"line":210,"column":45}}},"23":{"name":"(anonymous_23)","line":215,"loc":{"start":{"line":215,"column":31},"end":{"line":215,"column":41}}},"24":{"name":"(anonymous_24)","line":233,"loc":{"start":{"line":233,"column":17},"end":{"line":233,"column":28}}},"25":{"name":"(anonymous_25)","line":242,"loc":{"start":{"line":242,"column":18},"end":{"line":242,"column":40}}},"26":{"name":"(anonymous_26)","line":248,"loc":{"start":{"line":248,"column":17},"end":{"line":248,"column":62}}},"27":{"name":"(anonymous_27)","line":254,"loc":{"start":{"line":254,"column":18},"end":{"line":254,"column":32}}},"28":{"name":"(anonymous_28)","line":261,"loc":{"start":{"line":261,"column":19},"end":{"line":261,"column":33}}},"29":{"name":"(anonymous_29)","line":279,"loc":{"start":{"line":279,"column":11},"end":{"line":279,"column":31}}},"30":{"name":"(anonymous_30)","line":285,"loc":{"start":{"line":285,"column":14},"end":{"line":285,"column":25}}},"31":{"name":"(anonymous_31)","line":292,"loc":{"start":{"line":292,"column":16},"end":{"line":292,"column":49}}},"32":{"name":"(anonymous_32)","line":299,"loc":{"start":{"line":299,"column":14},"end":{"line":299,"column":55}}},"33":{"name":"(anonymous_33)","line":316,"loc":{"start":{"line":316,"column":25},"end":{"line":316,"column":35}}},"34":{"name":"(anonymous_34)","line":322,"loc":{"start":{"line":322,"column":9},"end":{"line":322,"column":19}}},"35":{"name":"(anonymous_35)","line":334,"loc":{"start":{"line":334,"column":17},"end":{"line":334,"column":27}}},"36":{"name":"(anonymous_36)","line":335,"loc":{"start":{"line":335,"column":23},"end":{"line":335,"column":38}}}},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":340,"column":3}},"2":{"start":{"line":13,"column":4},"end":{"line":13,"column":33}},"3":{"start":{"line":15,"column":4},"end":{"line":15,"column":72}},"4":{"start":{"line":17,"column":4},"end":{"line":17,"column":26}},"5":{"start":{"line":18,"column":4},"end":{"line":18,"column":28}},"6":{"start":{"line":25,"column":4},"end":{"line":25,"column":54}},"7":{"start":{"line":26,"column":4},"end":{"line":26,"column":32}},"8":{"start":{"line":30,"column":4},"end":{"line":30,"column":28}},"9":{"start":{"line":31,"column":4},"end":{"line":31,"column":28}},"10":{"start":{"line":35,"column":4},"end":{"line":35,"column":29}},"11":{"start":{"line":36,"column":4},"end":{"line":36,"column":43}},"12":{"start":{"line":37,"column":4},"end":{"line":37,"column":40}},"13":{"start":{"line":38,"column":4},"end":{"line":38,"column":28}},"14":{"start":{"line":42,"column":4},"end":{"line":47,"column":5}},"15":{"start":{"line":43,"column":6},"end":{"line":45,"column":9}},"16":{"start":{"line":44,"column":8},"end":{"line":44,"column":53}},"17":{"start":{"line":46,"column":6},"end":{"line":46,"column":34}},"18":{"start":{"line":54,"column":4},"end":{"line":58,"column":5}},"19":{"start":{"line":55,"column":6},"end":{"line":55,"column":69}},"20":{"start":{"line":56,"column":6},"end":{"line":56,"column":74}},"21":{"start":{"line":57,"column":6},"end":{"line":57,"column":65}},"22":{"start":{"line":63,"column":4},"end":{"line":63,"column":26}},"23":{"start":{"line":64,"column":4},"end":{"line":64,"column":42}},"24":{"start":{"line":65,"column":4},"end":{"line":65,"column":46}},"25":{"start":{"line":66,"column":4},"end":{"line":66,"column":44}},"26":{"start":{"line":72,"column":4},"end":{"line":74,"column":7}},"27":{"start":{"line":73,"column":6},"end":{"line":73,"column":51}},"28":{"start":{"line":80,"column":4},"end":{"line":80,"column":46}},"29":{"start":{"line":81,"column":4},"end":{"line":81,"column":57}},"30":{"start":{"line":87,"column":4},"end":{"line":87,"column":39}},"31":{"start":{"line":88,"column":4},"end":{"line":88,"column":52}},"32":{"start":{"line":95,"column":4},"end":{"line":95,"column":26}},"33":{"start":{"line":96,"column":4},"end":{"line":96,"column":31}},"34":{"start":{"line":97,"column":4},"end":{"line":97,"column":27}},"35":{"start":{"line":98,"column":4},"end":{"line":98,"column":27}},"36":{"start":{"line":99,"column":4},"end":{"line":99,"column":16}},"37":{"start":{"line":106,"column":4},"end":{"line":106,"column":26}},"38":{"start":{"line":108,"column":4},"end":{"line":108,"column":26}},"39":{"start":{"line":109,"column":4},"end":{"line":109,"column":25}},"40":{"start":{"line":111,"column":4},"end":{"line":115,"column":5}},"41":{"start":{"line":112,"column":6},"end":{"line":112,"column":28}},"42":{"start":{"line":114,"column":6},"end":{"line":114,"column":27}},"43":{"start":{"line":117,"column":4},"end":{"line":117,"column":24}},"44":{"start":{"line":123,"column":4},"end":{"line":123,"column":17}},"45":{"start":{"line":124,"column":4},"end":{"line":127,"column":13}},"46":{"start":{"line":125,"column":6},"end":{"line":125,"column":40}},"47":{"start":{"line":126,"column":6},"end":{"line":126,"column":46}},"48":{"start":{"line":134,"column":4},"end":{"line":134,"column":40}},"49":{"start":{"line":136,"column":4},"end":{"line":140,"column":5}},"50":{"start":{"line":137,"column":6},"end":{"line":137,"column":36}},"51":{"start":{"line":138,"column":6},"end":{"line":138,"column":39}},"52":{"start":{"line":139,"column":6},"end":{"line":139,"column":44}},"53":{"start":{"line":147,"column":4},"end":{"line":150,"column":5}},"54":{"start":{"line":148,"column":6},"end":{"line":148,"column":27}},"55":{"start":{"line":149,"column":6},"end":{"line":149,"column":36}},"56":{"start":{"line":155,"column":4},"end":{"line":155,"column":51}},"57":{"start":{"line":162,"column":4},"end":{"line":162,"column":58}},"58":{"start":{"line":164,"column":4},"end":{"line":166,"column":5}},"59":{"start":{"line":165,"column":6},"end":{"line":165,"column":71}},"60":{"start":{"line":168,"column":4},"end":{"line":168,"column":20}},"61":{"start":{"line":175,"column":4},"end":{"line":175,"column":72}},"62":{"start":{"line":176,"column":4},"end":{"line":178,"column":5}},"63":{"start":{"line":177,"column":6},"end":{"line":177,"column":64}},"64":{"start":{"line":181,"column":4},"end":{"line":181,"column":67}},"65":{"start":{"line":184,"column":4},"end":{"line":184,"column":43}},"66":{"start":{"line":187,"column":4},"end":{"line":187,"column":50}},"67":{"start":{"line":191,"column":4},"end":{"line":191,"column":28}},"68":{"start":{"line":194,"column":4},"end":{"line":194,"column":37}},"69":{"start":{"line":198,"column":4},"end":{"line":200,"column":5}},"70":{"start":{"line":199,"column":6},"end":{"line":199,"column":50}},"71":{"start":{"line":203,"column":4},"end":{"line":203,"column":49}},"72":{"start":{"line":205,"column":4},"end":{"line":205,"column":16}},"73":{"start":{"line":211,"column":4},"end":{"line":211,"column":67}},"74":{"start":{"line":215,"column":4},"end":{"line":229,"column":13}},"75":{"start":{"line":216,"column":6},"end":{"line":216,"column":34}},"76":{"start":{"line":217,"column":6},"end":{"line":217,"column":30}},"77":{"start":{"line":218,"column":6},"end":{"line":218,"column":44}},"78":{"start":{"line":220,"column":6},"end":{"line":220,"column":41}},"79":{"start":{"line":221,"column":6},"end":{"line":221,"column":30}},"80":{"start":{"line":224,"column":6},"end":{"line":226,"column":7}},"81":{"start":{"line":225,"column":8},"end":{"line":225,"column":48}},"82":{"start":{"line":228,"column":6},"end":{"line":228,"column":49}},"83":{"start":{"line":234,"column":4},"end":{"line":236,"column":5}},"84":{"start":{"line":235,"column":6},"end":{"line":235,"column":40}},"85":{"start":{"line":238,"column":4},"end":{"line":238,"column":27}},"86":{"start":{"line":243,"column":4},"end":{"line":243,"column":18}},"87":{"start":{"line":244,"column":4},"end":{"line":244,"column":39}},"88":{"start":{"line":249,"column":4},"end":{"line":249,"column":59}},"89":{"start":{"line":250,"column":4},"end":{"line":250,"column":37}},"90":{"start":{"line":255,"column":4},"end":{"line":255,"column":47}},"91":{"start":{"line":256,"column":4},"end":{"line":256,"column":31}},"92":{"start":{"line":257,"column":4},"end":{"line":257,"column":22}},"93":{"start":{"line":265,"column":4},"end":{"line":273,"column":5}},"94":{"start":{"line":266,"column":6},"end":{"line":266,"column":31}},"95":{"start":{"line":269,"column":6},"end":{"line":270,"column":46}},"96":{"start":{"line":269,"column":24},"end":{"line":269,"column":37}},"97":{"start":{"line":270,"column":11},"end":{"line":270,"column":46}},"98":{"start":{"line":270,"column":30},"end":{"line":270,"column":44}},"99":{"start":{"line":272,"column":6},"end":{"line":272,"column":33}},"100":{"start":{"line":275,"column":4},"end":{"line":275,"column":45}},"101":{"start":{"line":281,"column":4},"end":{"line":281,"column":60}},"102":{"start":{"line":286,"column":4},"end":{"line":288,"column":5}},"103":{"start":{"line":287,"column":6},"end":{"line":287,"column":27}},"104":{"start":{"line":293,"column":4},"end":{"line":293,"column":38}},"105":{"start":{"line":300,"column":4},"end":{"line":311,"column":5}},"106":{"start":{"line":304,"column":6},"end":{"line":304,"column":55}},"107":{"start":{"line":305,"column":6},"end":{"line":305,"column":54}},"108":{"start":{"line":310,"column":6},"end":{"line":310,"column":45}},"109":{"start":{"line":317,"column":4},"end":{"line":317,"column":54}},"110":{"start":{"line":323,"column":4},"end":{"line":323,"column":33}},"111":{"start":{"line":323,"column":24},"end":{"line":323,"column":31}},"112":{"start":{"line":325,"column":4},"end":{"line":325,"column":50}},"113":{"start":{"line":326,"column":4},"end":{"line":326,"column":25}},"114":{"start":{"line":327,"column":4},"end":{"line":327,"column":44}},"115":{"start":{"line":329,"column":4},"end":{"line":329,"column":66}},"116":{"start":{"line":335,"column":4},"end":{"line":337,"column":13}},"117":{"start":{"line":336,"column":6},"end":{"line":336,"column":34}},"118":{"start":{"line":338,"column":4},"end":{"line":338,"column":22}}},"branchMap":{"1":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":42,"column":4}},{"start":{"line":42,"column":4},"end":{"line":42,"column":4}}]},"2":{"line":54,"type":"if","locations":[{"start":{"line":54,"column":4},"end":{"line":54,"column":4}},{"start":{"line":54,"column":4},"end":{"line":54,"column":4}}]},"3":{"line":111,"type":"if","locations":[{"start":{"line":111,"column":4},"end":{"line":111,"column":4}},{"start":{"line":111,"column":4},"end":{"line":111,"column":4}}]},"4":{"line":136,"type":"if","locations":[{"start":{"line":136,"column":4},"end":{"line":136,"column":4}},{"start":{"line":136,"column":4},"end":{"line":136,"column":4}}]},"5":{"line":136,"type":"binary-expr","locations":[{"start":{"line":136,"column":8},"end":{"line":136,"column":17}},{"start":{"line":136,"column":21},"end":{"line":136,"column":44}}]},"6":{"line":147,"type":"if","locations":[{"start":{"line":147,"column":4},"end":{"line":147,"column":4}},{"start":{"line":147,"column":4},"end":{"line":147,"column":4}}]},"7":{"line":164,"type":"if","locations":[{"start":{"line":164,"column":4},"end":{"line":164,"column":4}},{"start":{"line":164,"column":4},"end":{"line":164,"column":4}}]},"8":{"line":176,"type":"if","locations":[{"start":{"line":176,"column":4},"end":{"line":176,"column":4}},{"start":{"line":176,"column":4},"end":{"line":176,"column":4}}]},"9":{"line":198,"type":"if","locations":[{"start":{"line":198,"column":4},"end":{"line":198,"column":4}},{"start":{"line":198,"column":4},"end":{"line":198,"column":4}}]},"10":{"line":198,"type":"binary-expr","locations":[{"start":{"line":198,"column":8},"end":{"line":198,"column":21}},{"start":{"line":198,"column":25},"end":{"line":198,"column":42}}]},"11":{"line":224,"type":"if","locations":[{"start":{"line":224,"column":6},"end":{"line":224,"column":6}},{"start":{"line":224,"column":6},"end":{"line":224,"column":6}}]},"12":{"line":224,"type":"binary-expr","locations":[{"start":{"line":224,"column":10},"end":{"line":224,"column":43}},{"start":{"line":224,"column":47},"end":{"line":224,"column":82}}]},"13":{"line":234,"type":"if","locations":[{"start":{"line":234,"column":4},"end":{"line":234,"column":4}},{"start":{"line":234,"column":4},"end":{"line":234,"column":4}}]},"14":{"line":265,"type":"if","locations":[{"start":{"line":265,"column":4},"end":{"line":265,"column":4}},{"start":{"line":265,"column":4},"end":{"line":265,"column":4}}]},"15":{"line":269,"type":"if","locations":[{"start":{"line":269,"column":6},"end":{"line":269,"column":6}},{"start":{"line":269,"column":6},"end":{"line":269,"column":6}}]},"16":{"line":270,"type":"if","locations":[{"start":{"line":270,"column":11},"end":{"line":270,"column":11}},{"start":{"line":270,"column":11},"end":{"line":270,"column":11}}]},"17":{"line":281,"type":"binary-expr","locations":[{"start":{"line":281,"column":11},"end":{"line":281,"column":27}},{"start":{"line":281,"column":31},"end":{"line":281,"column":59}}]},"18":{"line":286,"type":"if","locations":[{"start":{"line":286,"column":4},"end":{"line":286,"column":4}},{"start":{"line":286,"column":4},"end":{"line":286,"column":4}}]},"19":{"line":300,"type":"if","locations":[{"start":{"line":300,"column":4},"end":{"line":300,"column":4}},{"start":{"line":300,"column":4},"end":{"line":300,"column":4}}]},"20":{"line":323,"type":"if","locations":[{"start":{"line":323,"column":4},"end":{"line":323,"column":4}},{"start":{"line":323,"column":4},"end":{"line":323,"column":4}}]}}},"./src/marionette.compositeview.js":{"path":"./src/marionette.compositeview.js","s":{"1":1,"2":60,"3":59,"4":49,"5":41,"6":41,"7":41,"8":71,"9":71,"10":0,"11":71,"12":56,"13":56,"14":42,"15":56,"16":56,"17":56,"18":56,"19":56,"20":56,"21":55,"22":55,"23":55,"24":55,"25":54,"26":54,"27":54,"28":59,"29":59,"30":59,"31":58,"32":56,"33":56,"34":56,"35":56,"36":56,"37":59,"38":58,"39":52,"40":52,"41":52,"42":0,"43":0,"44":59,"45":4,"46":55,"47":55,"48":55,"49":7,"50":7,"51":7,"52":1,"53":48,"54":54,"55":54,"56":56,"57":4},"b":{"1":[41,8],"2":[71,6],"3":[0,71],"4":[42,14],"5":[59,0],"6":[52,0],"7":[4,55],"8":[7,48],"9":[1,6],"10":[1,6],"11":[4,52]},"f":{"1":60,"2":59,"3":49,"4":71,"5":56,"6":56,"7":59,"8":56,"9":59,"10":52,"11":59,"12":56},"fnMap":{"1":{"name":"(anonymous_1)","line":11,"loc":{"start":{"line":11,"column":15},"end":{"line":11,"column":25}}},"2":{"name":"(anonymous_2)","line":18,"loc":{"start":{"line":18,"column":18},"end":{"line":18,"column":28}}},"3":{"name":"(anonymous_3)","line":22,"loc":{"start":{"line":22,"column":24},"end":{"line":22,"column":36}}},"4":{"name":"(anonymous_4)","line":36,"loc":{"start":{"line":36,"column":15},"end":{"line":36,"column":29}}},"5":{"name":"(anonymous_5)","line":49,"loc":{"start":{"line":49,"column":17},"end":{"line":49,"column":27}}},"6":{"name":"(anonymous_6)","line":62,"loc":{"start":{"line":62,"column":10},"end":{"line":62,"column":20}}},"7":{"name":"(anonymous_7)","line":83,"loc":{"start":{"line":83,"column":19},"end":{"line":83,"column":29}}},"8":{"name":"(anonymous_8)","line":94,"loc":{"start":{"line":94,"column":15},"end":{"line":94,"column":25}}},"9":{"name":"(anonymous_9)","line":105,"loc":{"start":{"line":105,"column":16},"end":{"line":105,"column":48}}},"10":{"name":"(anonymous_10)","line":114,"loc":{"start":{"line":114,"column":14},"end":{"line":114,"column":54}}},"11":{"name":"(anonymous_11)","line":130,"loc":{"start":{"line":130,"column":24},"end":{"line":130,"column":47}}},"12":{"name":"(anonymous_12)","line":154,"loc":{"start":{"line":154,"column":26},"end":{"line":154,"column":36}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":159,"column":3}},"2":{"start":{"line":12,"column":4},"end":{"line":12,"column":82}},"3":{"start":{"line":22,"column":4},"end":{"line":28,"column":7}},"4":{"start":{"line":23,"column":6},"end":{"line":27,"column":7}},"5":{"start":{"line":24,"column":8},"end":{"line":24,"column":71}},"6":{"start":{"line":25,"column":8},"end":{"line":25,"column":76}},"7":{"start":{"line":26,"column":8},"end":{"line":26,"column":76}},"8":{"start":{"line":37,"column":4},"end":{"line":37,"column":78}},"9":{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},"10":{"start":{"line":40,"column":6},"end":{"line":40,"column":71}},"11":{"start":{"line":43,"column":4},"end":{"line":43,"column":20}},"12":{"start":{"line":50,"column":4},"end":{"line":50,"column":18}},"13":{"start":{"line":52,"column":4},"end":{"line":54,"column":5}},"14":{"start":{"line":53,"column":6},"end":{"line":53,"column":33}},"15":{"start":{"line":56,"column":4},"end":{"line":56,"column":16}},"16":{"start":{"line":63,"column":4},"end":{"line":63,"column":27}},"17":{"start":{"line":64,"column":4},"end":{"line":64,"column":26}},"18":{"start":{"line":65,"column":4},"end":{"line":65,"column":34}},"19":{"start":{"line":67,"column":4},"end":{"line":67,"column":31}},"20":{"start":{"line":68,"column":4},"end":{"line":68,"column":34}},"21":{"start":{"line":69,"column":4},"end":{"line":69,"column":24}},"22":{"start":{"line":73,"column":4},"end":{"line":73,"column":26}},"23":{"start":{"line":74,"column":4},"end":{"line":74,"column":51}},"24":{"start":{"line":76,"column":4},"end":{"line":76,"column":27}},"25":{"start":{"line":78,"column":4},"end":{"line":78,"column":45}},"26":{"start":{"line":79,"column":4},"end":{"line":79,"column":27}},"27":{"start":{"line":80,"column":4},"end":{"line":80,"column":16}},"28":{"start":{"line":84,"column":4},"end":{"line":88,"column":5}},"29":{"start":{"line":85,"column":6},"end":{"line":85,"column":63}},"30":{"start":{"line":86,"column":6},"end":{"line":86,"column":69}},"31":{"start":{"line":87,"column":6},"end":{"line":87,"column":58}},"32":{"start":{"line":95,"column":4},"end":{"line":95,"column":18}},"33":{"start":{"line":96,"column":4},"end":{"line":96,"column":32}},"34":{"start":{"line":97,"column":4},"end":{"line":97,"column":43}},"35":{"start":{"line":99,"column":4},"end":{"line":99,"column":38}},"36":{"start":{"line":100,"column":4},"end":{"line":100,"column":54}},"37":{"start":{"line":106,"column":4},"end":{"line":106,"column":62}},"38":{"start":{"line":107,"column":4},"end":{"line":107,"column":30}},"39":{"start":{"line":115,"column":4},"end":{"line":124,"column":5}},"40":{"start":{"line":116,"column":6},"end":{"line":116,"column":54}},"41":{"start":{"line":117,"column":6},"end":{"line":117,"column":53}},"42":{"start":{"line":122,"column":6},"end":{"line":122,"column":64}},"43":{"start":{"line":123,"column":6},"end":{"line":123,"column":37}},"44":{"start":{"line":131,"column":4},"end":{"line":133,"column":5}},"45":{"start":{"line":132,"column":6},"end":{"line":132,"column":46}},"46":{"start":{"line":135,"column":4},"end":{"line":135,"column":18}},"47":{"start":{"line":136,"column":4},"end":{"line":136,"column":85}},"48":{"start":{"line":137,"column":4},"end":{"line":147,"column":5}},"49":{"start":{"line":139,"column":6},"end":{"line":139,"column":104}},"50":{"start":{"line":140,"column":6},"end":{"line":140,"column":44}},"51":{"start":{"line":141,"column":6},"end":{"line":143,"column":7}},"52":{"start":{"line":142,"column":8},"end":{"line":142,"column":139}},"53":{"start":{"line":146,"column":6},"end":{"line":146,"column":36}},"54":{"start":{"line":149,"column":4},"end":{"line":149,"column":49}},"55":{"start":{"line":150,"column":4},"end":{"line":150,"column":21}},"56":{"start":{"line":155,"column":4},"end":{"line":157,"column":5}},"57":{"start":{"line":156,"column":6},"end":{"line":156,"column":37}}},"branchMap":{"1":{"line":23,"type":"if","locations":[{"start":{"line":23,"column":6},"end":{"line":23,"column":6}},{"start":{"line":23,"column":6},"end":{"line":23,"column":6}}]},"2":{"line":37,"type":"binary-expr","locations":[{"start":{"line":37,"column":19},"end":{"line":37,"column":57}},{"start":{"line":37,"column":61},"end":{"line":37,"column":77}}]},"3":{"line":39,"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":39,"column":4}},{"start":{"line":39,"column":4},"end":{"line":39,"column":4}}]},"4":{"line":52,"type":"if","locations":[{"start":{"line":52,"column":4},"end":{"line":52,"column":4}},{"start":{"line":52,"column":4},"end":{"line":52,"column":4}}]},"5":{"line":84,"type":"if","locations":[{"start":{"line":84,"column":4},"end":{"line":84,"column":4}},{"start":{"line":84,"column":4},"end":{"line":84,"column":4}}]},"6":{"line":115,"type":"if","locations":[{"start":{"line":115,"column":4},"end":{"line":115,"column":4}},{"start":{"line":115,"column":4},"end":{"line":115,"column":4}}]},"7":{"line":131,"type":"if","locations":[{"start":{"line":131,"column":4},"end":{"line":131,"column":4}},{"start":{"line":131,"column":4},"end":{"line":131,"column":4}}]},"8":{"line":137,"type":"if","locations":[{"start":{"line":137,"column":4},"end":{"line":137,"column":4}},{"start":{"line":137,"column":4},"end":{"line":137,"column":4}}]},"9":{"line":139,"type":"cond-expr","locations":[{"start":{"line":139,"column":55},"end":{"line":139,"column":83}},{"start":{"line":139,"column":86},"end":{"line":139,"column":103}}]},"10":{"line":141,"type":"if","locations":[{"start":{"line":141,"column":6},"end":{"line":141,"column":6}},{"start":{"line":141,"column":6},"end":{"line":141,"column":6}}]},"11":{"line":155,"type":"if","locations":[{"start":{"line":155,"column":4},"end":{"line":155,"column":4}},{"start":{"line":155,"column":4},"end":{"line":155,"column":4}}]}}},"./src/marionette.region.js":{"path":"./src/marionette.region.js","s":{"1":1,"2":137,"3":137,"4":137,"5":1,"6":1,"7":1,"8":136,"9":1,"10":1,"11":1,"12":109,"13":109,"14":109,"15":109,"16":109,"17":0,"18":109,"19":109,"20":22,"21":109,"22":85,"23":85,"24":109,"25":2,"26":109,"27":40,"28":109,"29":67,"30":67,"31":109,"32":24,"33":109,"34":109,"35":109,"36":67,"37":34,"38":34,"39":33,"40":34,"41":109,"42":1,"43":81,"44":81,"45":81,"46":81,"47":75,"48":81,"49":81,"50":78,"51":81,"52":81,"53":81,"54":86,"55":76,"56":42,"57":75,"58":142,"59":142,"60":103,"61":39,"62":17,"63":22,"64":22,"65":39,"66":39,"67":3,"68":17,"69":17,"70":1},"b":{"1":[137,24],"2":[1,136],"3":[1,135],"4":[0,109],"5":[109,107,85],"6":[22,87],"7":[85,24],"8":[2,107],"9":[40,69],"10":[109,107],"11":[67,42],"12":[24,85],"13":[109,87],"14":[67,42],"15":[33,1],"16":[81,78],"17":[75,6],"18":[78,3],"19":[81,6],"20":[76,10],"21":[86,10],"22":[103,39],"23":[142,40],"24":[17,22],"25":[22,0]},"f":{"1":137,"2":109,"3":34,"4":81,"5":86,"6":42,"7":75,"8":142,"9":3,"10":17},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":20},"end":{"line":7,"column":37}}},"2":{"name":"(anonymous_2)","line":43,"loc":{"start":{"line":43,"column":15},"end":{"line":43,"column":56}}},"3":{"name":"(anonymous_3)","line":97,"loc":{"start":{"line":97,"column":21},"end":{"line":97,"column":40}}},"4":{"name":"(anonymous_4)","line":121,"loc":{"start":{"line":121,"column":8},"end":{"line":121,"column":22}}},"5":{"name":"(anonymous_5)","line":143,"loc":{"start":{"line":143,"column":12},"end":{"line":143,"column":22}}},"6":{"name":"(anonymous_6)","line":151,"loc":{"start":{"line":151,"column":9},"end":{"line":151,"column":27}}},"7":{"name":"(anonymous_7)","line":157,"loc":{"start":{"line":157,"column":8},"end":{"line":157,"column":22}}},"8":{"name":"(anonymous_8)","line":163,"loc":{"start":{"line":163,"column":9},"end":{"line":163,"column":19}}},"9":{"name":"(anonymous_9)","line":180,"loc":{"start":{"line":180,"column":14},"end":{"line":180,"column":28}}},"10":{"name":"(anonymous_10)","line":188,"loc":{"start":{"line":188,"column":9},"end":{"line":188,"column":19}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":21,"column":2}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":31}},"3":{"start":{"line":9,"column":2},"end":{"line":9,"column":45}},"4":{"start":{"line":11,"column":2},"end":{"line":15,"column":3}},"5":{"start":{"line":12,"column":4},"end":{"line":12,"column":67}},"6":{"start":{"line":13,"column":4},"end":{"line":13,"column":27}},"7":{"start":{"line":14,"column":4},"end":{"line":14,"column":14}},"8":{"start":{"line":17,"column":2},"end":{"line":20,"column":3}},"9":{"start":{"line":18,"column":4},"end":{"line":18,"column":54}},"10":{"start":{"line":19,"column":4},"end":{"line":19,"column":38}},"11":{"start":{"line":27,"column":0},"end":{"line":109,"column":3}},"12":{"start":{"line":44,"column":4},"end":{"line":44,"column":60}},"13":{"start":{"line":45,"column":4},"end":{"line":45,"column":77}},"14":{"start":{"line":46,"column":4},"end":{"line":46,"column":81}},"15":{"start":{"line":47,"column":4},"end":{"line":47,"column":60}},"16":{"start":{"line":49,"column":4},"end":{"line":51,"column":5}},"17":{"start":{"line":50,"column":6},"end":{"line":50,"column":122}},"18":{"start":{"line":53,"column":4},"end":{"line":53,"column":29}},"19":{"start":{"line":57,"column":4},"end":{"line":59,"column":5}},"20":{"start":{"line":58,"column":6},"end":{"line":58,"column":30}},"21":{"start":{"line":61,"column":4},"end":{"line":64,"column":5}},"22":{"start":{"line":62,"column":6},"end":{"line":62,"column":39}},"23":{"start":{"line":63,"column":6},"end":{"line":63,"column":35}},"24":{"start":{"line":68,"column":4},"end":{"line":70,"column":5}},"25":{"start":{"line":69,"column":6},"end":{"line":69,"column":32}},"26":{"start":{"line":72,"column":4},"end":{"line":74,"column":5}},"27":{"start":{"line":73,"column":6},"end":{"line":73,"column":37}},"28":{"start":{"line":76,"column":4},"end":{"line":79,"column":5}},"29":{"start":{"line":77,"column":6},"end":{"line":77,"column":43}},"30":{"start":{"line":78,"column":6},"end":{"line":78,"column":37}},"31":{"start":{"line":81,"column":4},"end":{"line":83,"column":5}},"32":{"start":{"line":82,"column":6},"end":{"line":82,"column":24}},"33":{"start":{"line":85,"column":4},"end":{"line":85,"column":31}},"34":{"start":{"line":88,"column":4},"end":{"line":88,"column":46}},"35":{"start":{"line":96,"column":4},"end":{"line":104,"column":5}},"36":{"start":{"line":97,"column":6},"end":{"line":103,"column":8}},"37":{"start":{"line":98,"column":8},"end":{"line":98,"column":45}},"38":{"start":{"line":99,"column":8},"end":{"line":101,"column":9}},"39":{"start":{"line":100,"column":10},"end":{"line":100,"column":32}},"40":{"start":{"line":102,"column":8},"end":{"line":102,"column":39}},"41":{"start":{"line":106,"column":4},"end":{"line":106,"column":18}},"42":{"start":{"line":114,"column":0},"end":{"line":192,"column":3}},"43":{"start":{"line":122,"column":4},"end":{"line":122,"column":20}},"44":{"start":{"line":124,"column":4},"end":{"line":124,"column":64}},"45":{"start":{"line":125,"column":4},"end":{"line":125,"column":52}},"46":{"start":{"line":127,"column":4},"end":{"line":129,"column":5}},"47":{"start":{"line":128,"column":6},"end":{"line":128,"column":19}},"48":{"start":{"line":131,"column":4},"end":{"line":131,"column":18}},"49":{"start":{"line":133,"column":4},"end":{"line":135,"column":5}},"50":{"start":{"line":134,"column":6},"end":{"line":134,"column":22}},"51":{"start":{"line":137,"column":4},"end":{"line":137,"column":28}},"52":{"start":{"line":139,"column":4},"end":{"line":139,"column":54}},"53":{"start":{"line":140,"column":4},"end":{"line":140,"column":48}},"54":{"start":{"line":144,"column":4},"end":{"line":146,"column":5}},"55":{"start":{"line":145,"column":6},"end":{"line":145,"column":37}},"56":{"start":{"line":152,"column":4},"end":{"line":152,"column":34}},"57":{"start":{"line":158,"column":4},"end":{"line":158,"column":37}},"58":{"start":{"line":164,"column":4},"end":{"line":164,"column":32}},"59":{"start":{"line":165,"column":4},"end":{"line":165,"column":42}},"60":{"start":{"line":165,"column":33},"end":{"line":165,"column":40}},"61":{"start":{"line":168,"column":4},"end":{"line":169,"column":44}},"62":{"start":{"line":168,"column":22},"end":{"line":168,"column":35}},"63":{"start":{"line":169,"column":9},"end":{"line":169,"column":44}},"64":{"start":{"line":169,"column":28},"end":{"line":169,"column":42}},"65":{"start":{"line":171,"column":4},"end":{"line":171,"column":55}},"66":{"start":{"line":173,"column":4},"end":{"line":173,"column":28}},"67":{"start":{"line":181,"column":4},"end":{"line":181,"column":28}},"68":{"start":{"line":189,"column":4},"end":{"line":189,"column":17}},"69":{"start":{"line":190,"column":4},"end":{"line":190,"column":20}},"70":{"start":{"line":195,"column":0},"end":{"line":195,"column":45}}},"branchMap":{"1":{"line":8,"type":"binary-expr","locations":[{"start":{"line":8,"column":17},"end":{"line":8,"column":24}},{"start":{"line":8,"column":28},"end":{"line":8,"column":30}}]},"2":{"line":11,"type":"if","locations":[{"start":{"line":11,"column":2},"end":{"line":11,"column":2}},{"start":{"line":11,"column":2},"end":{"line":11,"column":2}}]},"3":{"line":17,"type":"if","locations":[{"start":{"line":17,"column":2},"end":{"line":17,"column":2}},{"start":{"line":17,"column":2},"end":{"line":17,"column":2}}]},"4":{"line":49,"type":"if","locations":[{"start":{"line":49,"column":4},"end":{"line":49,"column":4}},{"start":{"line":49,"column":4},"end":{"line":49,"column":4}}]},"5":{"line":49,"type":"binary-expr","locations":[{"start":{"line":49,"column":8},"end":{"line":49,"column":21}},{"start":{"line":49,"column":25},"end":{"line":49,"column":40}},{"start":{"line":49,"column":44},"end":{"line":49,"column":67}}]},"6":{"line":57,"type":"if","locations":[{"start":{"line":57,"column":4},"end":{"line":57,"column":4}},{"start":{"line":57,"column":4},"end":{"line":57,"column":4}}]},"7":{"line":61,"type":"if","locations":[{"start":{"line":61,"column":4},"end":{"line":61,"column":4}},{"start":{"line":61,"column":4},"end":{"line":61,"column":4}}]},"8":{"line":68,"type":"if","locations":[{"start":{"line":68,"column":4},"end":{"line":68,"column":4}},{"start":{"line":68,"column":4},"end":{"line":68,"column":4}}]},"9":{"line":72,"type":"if","locations":[{"start":{"line":72,"column":4},"end":{"line":72,"column":4}},{"start":{"line":72,"column":4},"end":{"line":72,"column":4}}]},"10":{"line":72,"type":"binary-expr","locations":[{"start":{"line":72,"column":8},"end":{"line":72,"column":21}},{"start":{"line":72,"column":25},"end":{"line":72,"column":46}}]},"11":{"line":76,"type":"if","locations":[{"start":{"line":76,"column":4},"end":{"line":76,"column":4}},{"start":{"line":76,"column":4},"end":{"line":76,"column":4}}]},"12":{"line":81,"type":"if","locations":[{"start":{"line":81,"column":4},"end":{"line":81,"column":4}},{"start":{"line":81,"column":4},"end":{"line":81,"column":4}}]},"13":{"line":81,"type":"binary-expr","locations":[{"start":{"line":81,"column":8},"end":{"line":81,"column":22}},{"start":{"line":81,"column":26},"end":{"line":81,"column":38}}]},"14":{"line":96,"type":"if","locations":[{"start":{"line":96,"column":4},"end":{"line":96,"column":4}},{"start":{"line":96,"column":4},"end":{"line":96,"column":4}}]},"15":{"line":99,"type":"if","locations":[{"start":{"line":99,"column":8},"end":{"line":99,"column":8}},{"start":{"line":99,"column":8},"end":{"line":99,"column":8}}]},"16":{"line":124,"type":"binary-expr","locations":[{"start":{"line":124,"column":23},"end":{"line":124,"column":36}},{"start":{"line":124,"column":40},"end":{"line":124,"column":63}}]},"17":{"line":127,"type":"if","locations":[{"start":{"line":127,"column":4},"end":{"line":127,"column":4}},{"start":{"line":127,"column":4},"end":{"line":127,"column":4}}]},"18":{"line":133,"type":"if","locations":[{"start":{"line":133,"column":4},"end":{"line":133,"column":4}},{"start":{"line":133,"column":4},"end":{"line":133,"column":4}}]},"19":{"line":133,"type":"binary-expr","locations":[{"start":{"line":133,"column":8},"end":{"line":133,"column":23}},{"start":{"line":133,"column":27},"end":{"line":133,"column":39}}]},"20":{"line":144,"type":"if","locations":[{"start":{"line":144,"column":4},"end":{"line":144,"column":4}},{"start":{"line":144,"column":4},"end":{"line":144,"column":4}}]},"21":{"line":144,"type":"binary-expr","locations":[{"start":{"line":144,"column":8},"end":{"line":144,"column":17}},{"start":{"line":144,"column":21},"end":{"line":144,"column":42}}]},"22":{"line":165,"type":"if","locations":[{"start":{"line":165,"column":4},"end":{"line":165,"column":4}},{"start":{"line":165,"column":4},"end":{"line":165,"column":4}}]},"23":{"line":165,"type":"binary-expr","locations":[{"start":{"line":165,"column":8},"end":{"line":165,"column":13}},{"start":{"line":165,"column":17},"end":{"line":165,"column":30}}]},"24":{"line":168,"type":"if","locations":[{"start":{"line":168,"column":4},"end":{"line":168,"column":4}},{"start":{"line":168,"column":4},"end":{"line":168,"column":4}}]},"25":{"line":169,"type":"if","locations":[{"start":{"line":169,"column":9},"end":{"line":169,"column":9}},{"start":{"line":169,"column":9},"end":{"line":169,"column":9}}]}}},"./src/marionette.regionManager.js":{"path":"./src/marionette.regionManager.js","s":{"1":1,"2":1,"3":173,"4":173,"5":66,"6":66,"7":87,"8":66,"9":87,"10":83,"11":87,"12":87,"13":66,"14":115,"15":115,"16":115,"17":115,"18":115,"19":107,"20":8,"21":2,"22":6,"23":115,"24":115,"25":115,"26":17,"27":10,"28":10,"29":11,"30":18,"31":15,"32":19,"33":8,"34":8,"35":8,"36":115,"37":115,"38":28,"39":28,"40":28,"41":28,"42":143,"43":1,"44":1,"45":23,"46":13,"47":13,"48":13,"49":1},"b":{"1":[66,21],"2":[83,4],"3":[107,8],"4":[115,93,93],"5":[2,6]},"f":{"1":1,"2":173,"3":66,"4":87,"5":115,"6":17,"7":10,"8":11,"9":18,"10":15,"11":19,"12":8,"13":115,"14":28,"15":143,"16":23,"17":13},"fnMap":{"1":{"name":"(anonymous_1)","line":5,"loc":{"start":{"line":5,"column":28},"end":{"line":5,"column":48}}},"2":{"name":"(anonymous_2)","line":8,"loc":{"start":{"line":8,"column":17},"end":{"line":8,"column":34}}},"3":{"name":"(anonymous_3)","line":16,"loc":{"start":{"line":16,"column":16},"end":{"line":16,"column":53}}},"4":{"name":"(anonymous_4)","line":19,"loc":{"start":{"line":19,"column":32},"end":{"line":19,"column":58}}},"5":{"name":"(anonymous_5)","line":37,"loc":{"start":{"line":37,"column":15},"end":{"line":37,"column":41}}},"6":{"name":"(anonymous_6)","line":58,"loc":{"start":{"line":58,"column":9},"end":{"line":58,"column":23}}},"7":{"name":"(anonymous_7)","line":63,"loc":{"start":{"line":63,"column":18},"end":{"line":63,"column":32}}},"8":{"name":"(anonymous_8)","line":70,"loc":{"start":{"line":70,"column":19},"end":{"line":70,"column":29}}},"9":{"name":"(anonymous_9)","line":71,"loc":{"start":{"line":71,"column":28},"end":{"line":71,"column":50}}},"10":{"name":"(anonymous_10)","line":78,"loc":{"start":{"line":78,"column":18},"end":{"line":78,"column":28}}},"11":{"name":"(anonymous_11)","line":79,"loc":{"start":{"line":79,"column":28},"end":{"line":79,"column":50}}},"12":{"name":"(anonymous_12)","line":86,"loc":{"start":{"line":86,"column":11},"end":{"line":86,"column":21}}},"13":{"name":"(anonymous_13)","line":93,"loc":{"start":{"line":93,"column":12},"end":{"line":93,"column":34}}},"14":{"name":"(anonymous_14)","line":99,"loc":{"start":{"line":99,"column":13},"end":{"line":99,"column":35}}},"15":{"name":"(anonymous_15)","line":107,"loc":{"start":{"line":107,"column":16},"end":{"line":107,"column":26}}},"16":{"name":"(anonymous_16)","line":123,"loc":{"start":{"line":123,"column":18},"end":{"line":123,"column":35}}},"17":{"name":"(anonymous_17)","line":124,"loc":{"start":{"line":124,"column":38},"end":{"line":124,"column":49}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":132,"column":15}},"2":{"start":{"line":7,"column":2},"end":{"line":111,"column":5}},"3":{"start":{"line":9,"column":6},"end":{"line":9,"column":25}},"4":{"start":{"line":10,"column":6},"end":{"line":10,"column":70}},"5":{"start":{"line":17,"column":6},"end":{"line":17,"column":23}},"6":{"start":{"line":19,"column":6},"end":{"line":30,"column":15}},"7":{"start":{"line":20,"column":8},"end":{"line":22,"column":9}},"8":{"start":{"line":21,"column":10},"end":{"line":21,"column":48}},"9":{"start":{"line":24,"column":8},"end":{"line":26,"column":9}},"10":{"start":{"line":25,"column":10},"end":{"line":25,"column":60}},"11":{"start":{"line":28,"column":8},"end":{"line":28,"column":54}},"12":{"start":{"line":29,"column":8},"end":{"line":29,"column":31}},"13":{"start":{"line":32,"column":6},"end":{"line":32,"column":21}},"14":{"start":{"line":38,"column":6},"end":{"line":38,"column":17}},"15":{"start":{"line":40,"column":6},"end":{"line":40,"column":44}},"16":{"start":{"line":41,"column":6},"end":{"line":41,"column":44}},"17":{"start":{"line":42,"column":6},"end":{"line":42,"column":46}},"18":{"start":{"line":44,"column":6},"end":{"line":50,"column":7}},"19":{"start":{"line":45,"column":8},"end":{"line":45,"column":78}},"20":{"start":{"line":46,"column":13},"end":{"line":50,"column":7}},"21":{"start":{"line":47,"column":8},"end":{"line":47,"column":78}},"22":{"start":{"line":49,"column":8},"end":{"line":49,"column":28}},"23":{"start":{"line":52,"column":6},"end":{"line":52,"column":32}},"24":{"start":{"line":53,"column":6},"end":{"line":53,"column":53}},"25":{"start":{"line":54,"column":6},"end":{"line":54,"column":20}},"26":{"start":{"line":59,"column":6},"end":{"line":59,"column":33}},"27":{"start":{"line":64,"column":6},"end":{"line":64,"column":39}},"28":{"start":{"line":65,"column":6},"end":{"line":65,"column":33}},"29":{"start":{"line":71,"column":6},"end":{"line":73,"column":15}},"30":{"start":{"line":72,"column":8},"end":{"line":72,"column":35}},"31":{"start":{"line":79,"column":6},"end":{"line":81,"column":15}},"32":{"start":{"line":80,"column":8},"end":{"line":80,"column":23}},"33":{"start":{"line":87,"column":6},"end":{"line":87,"column":27}},"34":{"start":{"line":88,"column":6},"end":{"line":88,"column":55}},"35":{"start":{"line":89,"column":6},"end":{"line":89,"column":62}},"36":{"start":{"line":94,"column":6},"end":{"line":94,"column":35}},"37":{"start":{"line":95,"column":6},"end":{"line":95,"column":24}},"38":{"start":{"line":100,"column":6},"end":{"line":100,"column":21}},"39":{"start":{"line":101,"column":6},"end":{"line":101,"column":33}},"40":{"start":{"line":102,"column":6},"end":{"line":102,"column":24}},"41":{"start":{"line":103,"column":6},"end":{"line":103,"column":56}},"42":{"start":{"line":108,"column":6},"end":{"line":108,"column":42}},"43":{"start":{"line":118,"column":2},"end":{"line":121,"column":43}},"44":{"start":{"line":123,"column":2},"end":{"line":129,"column":5}},"45":{"start":{"line":124,"column":4},"end":{"line":128,"column":6}},"46":{"start":{"line":125,"column":6},"end":{"line":125,"column":44}},"47":{"start":{"line":126,"column":6},"end":{"line":126,"column":56}},"48":{"start":{"line":127,"column":6},"end":{"line":127,"column":38}},"49":{"start":{"line":131,"column":2},"end":{"line":131,"column":23}}},"branchMap":{"1":{"line":20,"type":"if","locations":[{"start":{"line":20,"column":8},"end":{"line":20,"column":8}},{"start":{"line":20,"column":8},"end":{"line":20,"column":8}}]},"2":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":8},"end":{"line":24,"column":8}},{"start":{"line":24,"column":8},"end":{"line":24,"column":8}}]},"3":{"line":44,"type":"if","locations":[{"start":{"line":44,"column":6},"end":{"line":44,"column":6}},{"start":{"line":44,"column":6},"end":{"line":44,"column":6}}]},"4":{"line":44,"type":"binary-expr","locations":[{"start":{"line":44,"column":10},"end":{"line":44,"column":18}},{"start":{"line":44,"column":23},"end":{"line":44,"column":31}},{"start":{"line":44,"column":35},"end":{"line":44,"column":46}}]},"5":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":13},"end":{"line":46,"column":13}},{"start":{"line":46,"column":13},"end":{"line":46,"column":13}}]}}},"./src/marionette.layout.js":{"path":"./src/marionette.layout.js","s":{"1":1,"2":37,"3":37,"4":37,"5":37,"6":42,"7":2,"8":42,"9":29,"10":13,"11":12,"12":42,"13":42,"14":42,"15":5,"16":0,"17":5,"18":5,"19":5,"20":11,"21":11,"22":11,"23":39,"24":39,"25":4,"26":4,"27":50,"28":50,"29":32,"30":50,"31":39,"32":39,"33":39,"34":2,"35":37,"36":39,"37":12,"38":12,"39":15,"40":39,"41":39,"42":63,"43":63,"44":39,"45":13,"46":13},"b":{"1":[37,21],"2":[2,40],"3":[29,13],"4":[12,1],"5":[0,5],"6":[2,37],"7":[37,13]},"f":{"1":37,"2":42,"3":5,"4":11,"5":39,"6":4,"7":50,"8":32,"9":39,"10":12,"11":15,"12":39,"13":63,"14":13},"fnMap":{"1":{"name":"(anonymous_1)","line":15,"loc":{"start":{"line":15,"column":15},"end":{"line":15,"column":34}}},"2":{"name":"(anonymous_2)","line":28,"loc":{"start":{"line":28,"column":10},"end":{"line":28,"column":20}}},"3":{"name":"(anonymous_3)","line":52,"loc":{"start":{"line":52,"column":9},"end":{"line":52,"column":21}}},"4":{"name":"(anonymous_4)","line":60,"loc":{"start":{"line":60,"column":13},"end":{"line":60,"column":39}}},"5":{"name":"(anonymous_5)","line":67,"loc":{"start":{"line":67,"column":14},"end":{"line":67,"column":31}}},"6":{"name":"(anonymous_6)","line":73,"loc":{"start":{"line":73,"column":16},"end":{"line":73,"column":30}}},"7":{"name":"(anonymous_7)","line":79,"loc":{"start":{"line":79,"column":17},"end":{"line":79,"column":34}}},"8":{"name":"(anonymous_8)","line":84,"loc":{"start":{"line":84,"column":16},"end":{"line":84,"column":26}}},"9":{"name":"(anonymous_9)","line":92,"loc":{"start":{"line":92,"column":22},"end":{"line":92,"column":41}}},"10":{"name":"(anonymous_10)","line":107,"loc":{"start":{"line":107,"column":24},"end":{"line":107,"column":34}}},"11":{"name":"(anonymous_11)","line":109,"loc":{"start":{"line":109,"column":28},"end":{"line":109,"column":44}}},"12":{"name":"(anonymous_12)","line":116,"loc":{"start":{"line":116,"column":22},"end":{"line":116,"column":32}}},"13":{"name":"(anonymous_13)","line":119,"loc":{"start":{"line":119,"column":52},"end":{"line":119,"column":74}}},"14":{"name":"(anonymous_14)","line":124,"loc":{"start":{"line":124,"column":55},"end":{"line":124,"column":77}}}},"statementMap":{"1":{"start":{"line":10,"column":0},"end":{"line":129,"column":3}},"2":{"start":{"line":16,"column":4},"end":{"line":16,"column":28}},"3":{"start":{"line":18,"column":4},"end":{"line":18,"column":29}},"4":{"start":{"line":19,"column":4},"end":{"line":19,"column":37}},"5":{"start":{"line":21,"column":4},"end":{"line":21,"column":66}},"6":{"start":{"line":30,"column":4},"end":{"line":34,"column":5}},"7":{"start":{"line":33,"column":6},"end":{"line":33,"column":32}},"8":{"start":{"line":35,"column":4},"end":{"line":43,"column":5}},"9":{"start":{"line":38,"column":6},"end":{"line":38,"column":32}},"10":{"start":{"line":39,"column":11},"end":{"line":43,"column":5}},"11":{"start":{"line":42,"column":6},"end":{"line":42,"column":34}},"12":{"start":{"line":45,"column":4},"end":{"line":45,"column":54}},"13":{"start":{"line":46,"column":4},"end":{"line":46,"column":72}},"14":{"start":{"line":48,"column":4},"end":{"line":48,"column":18}},"15":{"start":{"line":53,"column":4},"end":{"line":53,"column":33}},"16":{"start":{"line":53,"column":24},"end":{"line":53,"column":31}},"17":{"start":{"line":54,"column":4},"end":{"line":54,"column":31}},"18":{"start":{"line":55,"column":4},"end":{"line":55,"column":54}},"19":{"start":{"line":56,"column":4},"end":{"line":56,"column":58}},"20":{"start":{"line":61,"column":4},"end":{"line":61,"column":21}},"21":{"start":{"line":62,"column":4},"end":{"line":62,"column":31}},"22":{"start":{"line":63,"column":4},"end":{"line":63,"column":45}},"23":{"start":{"line":68,"column":4},"end":{"line":68,"column":55}},"24":{"start":{"line":69,"column":4},"end":{"line":69,"column":39}},"25":{"start":{"line":74,"column":4},"end":{"line":74,"column":30}},"26":{"start":{"line":75,"column":4},"end":{"line":75,"column":49}},"27":{"start":{"line":80,"column":4},"end":{"line":80,"column":20}},"28":{"start":{"line":82,"column":4},"end":{"line":85,"column":6}},"29":{"start":{"line":84,"column":28},"end":{"line":84,"column":44}},"30":{"start":{"line":87,"column":4},"end":{"line":87,"column":60}},"31":{"start":{"line":93,"column":4},"end":{"line":93,"column":16}},"32":{"start":{"line":94,"column":4},"end":{"line":94,"column":30}},"33":{"start":{"line":96,"column":4},"end":{"line":100,"column":5}},"34":{"start":{"line":97,"column":6},"end":{"line":97,"column":38}},"35":{"start":{"line":99,"column":6},"end":{"line":99,"column":35}},"36":{"start":{"line":102,"column":4},"end":{"line":102,"column":29}},"37":{"start":{"line":108,"column":4},"end":{"line":108,"column":38}},"38":{"start":{"line":109,"column":4},"end":{"line":111,"column":7}},"39":{"start":{"line":110,"column":6},"end":{"line":110,"column":21}},"40":{"start":{"line":117,"column":4},"end":{"line":117,"column":56}},"41":{"start":{"line":119,"column":4},"end":{"line":122,"column":7}},"42":{"start":{"line":120,"column":6},"end":{"line":120,"column":26}},"43":{"start":{"line":121,"column":6},"end":{"line":121,"column":47}},"44":{"start":{"line":124,"column":4},"end":{"line":127,"column":7}},"45":{"start":{"line":125,"column":6},"end":{"line":125,"column":24}},"46":{"start":{"line":126,"column":6},"end":{"line":126,"column":50}}},"branchMap":{"1":{"line":16,"type":"binary-expr","locations":[{"start":{"line":16,"column":14},"end":{"line":16,"column":21}},{"start":{"line":16,"column":25},"end":{"line":16,"column":27}}]},"2":{"line":30,"type":"if","locations":[{"start":{"line":30,"column":4},"end":{"line":30,"column":4}},{"start":{"line":30,"column":4},"end":{"line":30,"column":4}}]},"3":{"line":35,"type":"if","locations":[{"start":{"line":35,"column":4},"end":{"line":35,"column":4}},{"start":{"line":35,"column":4},"end":{"line":35,"column":4}}]},"4":{"line":39,"type":"if","locations":[{"start":{"line":39,"column":11},"end":{"line":39,"column":11}},{"start":{"line":39,"column":11},"end":{"line":39,"column":11}}]},"5":{"line":53,"type":"if","locations":[{"start":{"line":53,"column":4},"end":{"line":53,"column":4}},{"start":{"line":53,"column":4},"end":{"line":53,"column":4}}]},"6":{"line":96,"type":"if","locations":[{"start":{"line":96,"column":4},"end":{"line":96,"column":4}},{"start":{"line":96,"column":4},"end":{"line":96,"column":4}}]},"7":{"line":99,"type":"binary-expr","locations":[{"start":{"line":99,"column":16},"end":{"line":99,"column":28}},{"start":{"line":99,"column":32},"end":{"line":99,"column":34}}]}}},"./src/marionette.application.js":{"path":"./src/marionette.application.js","s":{"1":1,"2":106,"3":106,"4":106,"5":106,"6":106,"7":106,"8":106,"9":106,"10":1,"11":0,"12":0,"13":0,"14":0,"15":75,"16":41,"17":41,"18":41,"19":41,"20":11,"21":1,"22":2,"23":1,"24":145,"25":145,"26":87,"27":145,"28":145,"29":145,"30":106,"31":106,"32":16,"33":106,"34":2,"35":1},"b":{"1":[87,58],"2":[87,84]},"f":{"1":106,"2":0,"3":0,"4":75,"5":41,"6":11,"7":1,"8":2,"9":1,"10":145,"11":106,"12":16,"13":2},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":25},"end":{"line":7,"column":42}}},"2":{"name":"(anonymous_2)","line":22,"loc":{"start":{"line":22,"column":11},"end":{"line":22,"column":21}}},"3":{"name":"(anonymous_3)","line":28,"loc":{"start":{"line":28,"column":11},"end":{"line":28,"column":21}}},"4":{"name":"(anonymous_4)","line":36,"loc":{"start":{"line":36,"column":18},"end":{"line":36,"column":39}}},"5":{"name":"(anonymous_5)","line":43,"loc":{"start":{"line":43,"column":9},"end":{"line":43,"column":26}}},"6":{"name":"(anonymous_6)","line":55,"loc":{"start":{"line":55,"column":14},"end":{"line":55,"column":31}}},"7":{"name":"(anonymous_7)","line":60,"loc":{"start":{"line":60,"column":16},"end":{"line":60,"column":26}}},"8":{"name":"(anonymous_8)","line":67,"loc":{"start":{"line":67,"column":16},"end":{"line":67,"column":33}}},"9":{"name":"(anonymous_9)","line":74,"loc":{"start":{"line":74,"column":13},"end":{"line":74,"column":30}}},"10":{"name":"(anonymous_10)","line":79,"loc":{"start":{"line":79,"column":10},"end":{"line":79,"column":49}}},"11":{"name":"(anonymous_11)","line":97,"loc":{"start":{"line":97,"column":22},"end":{"line":97,"column":32}}},"12":{"name":"(anonymous_12)","line":100,"loc":{"start":{"line":100,"column":53},"end":{"line":100,"column":75}}},"13":{"name":"(anonymous_13)","line":104,"loc":{"start":{"line":104,"column":56},"end":{"line":104,"column":78}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":18,"column":2}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":28}},"3":{"start":{"line":9,"column":2},"end":{"line":9,"column":51}},"4":{"start":{"line":10,"column":2},"end":{"line":10,"column":51}},"5":{"start":{"line":11,"column":2},"end":{"line":11,"column":48}},"6":{"start":{"line":12,"column":2},"end":{"line":12,"column":53}},"7":{"start":{"line":13,"column":2},"end":{"line":13,"column":23}},"8":{"start":{"line":15,"column":2},"end":{"line":15,"column":26}},"9":{"start":{"line":17,"column":2},"end":{"line":17,"column":48}},"10":{"start":{"line":20,"column":0},"end":{"line":108,"column":3}},"11":{"start":{"line":23,"column":4},"end":{"line":23,"column":54}},"12":{"start":{"line":24,"column":4},"end":{"line":24,"column":53}},"13":{"start":{"line":29,"column":4},"end":{"line":29,"column":54}},"14":{"start":{"line":30,"column":4},"end":{"line":30,"column":56}},"15":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"16":{"start":{"line":44,"column":4},"end":{"line":44,"column":53}},"17":{"start":{"line":45,"column":4},"end":{"line":45,"column":43}},"18":{"start":{"line":46,"column":4},"end":{"line":46,"column":52}},"19":{"start":{"line":48,"column":4},"end":{"line":48,"column":41}},"20":{"start":{"line":56,"column":4},"end":{"line":56,"column":51}},"21":{"start":{"line":61,"column":4},"end":{"line":61,"column":39}},"22":{"start":{"line":68,"column":4},"end":{"line":68,"column":45}},"23":{"start":{"line":75,"column":4},"end":{"line":75,"column":43}},"24":{"start":{"line":80,"column":4},"end":{"line":80,"column":40}},"25":{"start":{"line":83,"column":4},"end":{"line":85,"column":5}},"26":{"start":{"line":84,"column":6},"end":{"line":84,"column":64}},"27":{"start":{"line":89,"column":4},"end":{"line":89,"column":32}},"28":{"start":{"line":90,"column":4},"end":{"line":90,"column":23}},"29":{"start":{"line":93,"column":4},"end":{"line":93,"column":55}},"30":{"start":{"line":98,"column":4},"end":{"line":98,"column":57}},"31":{"start":{"line":100,"column":4},"end":{"line":102,"column":7}},"32":{"start":{"line":101,"column":6},"end":{"line":101,"column":26}},"33":{"start":{"line":104,"column":4},"end":{"line":106,"column":7}},"34":{"start":{"line":105,"column":6},"end":{"line":105,"column":24}},"35":{"start":{"line":111,"column":0},"end":{"line":111,"column":50}}},"branchMap":{"1":{"line":83,"type":"if","locations":[{"start":{"line":83,"column":4},"end":{"line":83,"column":4}},{"start":{"line":83,"column":4},"end":{"line":83,"column":4}}]},"2":{"line":84,"type":"binary-expr","locations":[{"start":{"line":84,"column":20},"end":{"line":84,"column":48}},{"start":{"line":84,"column":52},"end":{"line":84,"column":63}}]}}},"./src/marionette.approuter.js":{"path":"./src/marionette.approuter.js","s":{"1":1,"2":13,"3":13,"4":13,"5":13,"6":13,"7":1,"8":1,"9":13,"10":2,"11":11,"12":11,"13":15,"14":14,"15":16,"16":16,"17":1,"18":15},"b":{"1":[13,3],"2":[2,11],"3":[1,15]},"f":{"1":13,"2":1,"3":13,"4":15,"5":14,"6":16},"fnMap":{"1":{"name":"(anonymous_1)","line":21,"loc":{"start":{"line":21,"column":15},"end":{"line":21,"column":32}}},"2":{"name":"(anonymous_2)","line":33,"loc":{"start":{"line":33,"column":12},"end":{"line":33,"column":40}}},"3":{"name":"(anonymous_3)","line":41,"loc":{"start":{"line":41,"column":20},"end":{"line":41,"column":52}}},"4":{"name":"(anonymous_4)","line":46,"loc":{"start":{"line":46,"column":23},"end":{"line":46,"column":39}}},"5":{"name":"(anonymous_5)","line":51,"loc":{"start":{"line":51,"column":18},"end":{"line":51,"column":28}}},"6":{"name":"(anonymous_6)","line":55,"loc":{"start":{"line":55,"column":16},"end":{"line":55,"column":55}}}},"statementMap":{"1":{"start":{"line":19,"column":0},"end":{"line":64,"column":3}},"2":{"start":{"line":22,"column":4},"end":{"line":22,"column":72}},"3":{"start":{"line":24,"column":4},"end":{"line":24,"column":33}},"4":{"start":{"line":26,"column":4},"end":{"line":26,"column":60}},"5":{"start":{"line":27,"column":4},"end":{"line":27,"column":43}},"6":{"start":{"line":28,"column":4},"end":{"line":28,"column":49}},"7":{"start":{"line":34,"column":4},"end":{"line":34,"column":43}},"8":{"start":{"line":35,"column":4},"end":{"line":35,"column":53}},"9":{"start":{"line":42,"column":4},"end":{"line":42,"column":30}},"10":{"start":{"line":42,"column":21},"end":{"line":42,"column":28}},"11":{"start":{"line":44,"column":4},"end":{"line":44,"column":49}},"12":{"start":{"line":46,"column":4},"end":{"line":48,"column":13}},"13":{"start":{"line":47,"column":6},"end":{"line":47,"column":61}},"14":{"start":{"line":52,"column":4},"end":{"line":52,"column":52}},"15":{"start":{"line":56,"column":4},"end":{"line":56,"column":40}},"16":{"start":{"line":58,"column":4},"end":{"line":60,"column":5}},"17":{"start":{"line":59,"column":6},"end":{"line":59,"column":85}},"18":{"start":{"line":62,"column":4},"end":{"line":62,"column":62}}},"branchMap":{"1":{"line":24,"type":"binary-expr","locations":[{"start":{"line":24,"column":19},"end":{"line":24,"column":26}},{"start":{"line":24,"column":30},"end":{"line":24,"column":32}}]},"2":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":42,"column":4}},{"start":{"line":42,"column":4},"end":{"line":42,"column":4}}]},"3":{"line":58,"type":"if","locations":[{"start":{"line":58,"column":4},"end":{"line":58,"column":4}},{"start":{"line":58,"column":4},"end":{"line":58,"column":4}}]}}},"./src/marionette.module.js":{"path":"./src/marionette.module.js","s":{"1":1,"2":137,"3":137,"4":137,"5":137,"6":137,"7":137,"8":137,"9":137,"10":137,"11":137,"12":1,"13":1,"14":96,"15":14,"16":125,"17":28,"18":97,"19":33,"20":29,"21":97,"22":97,"23":97,"24":97,"25":16,"26":2,"27":14,"28":14,"29":14,"30":12,"31":14,"32":14,"33":14,"34":14,"35":83,"36":83,"37":0,"38":83,"39":83,"40":137,"41":137,"42":1,"43":145,"44":145,"45":145,"46":145,"47":145,"48":145,"49":145,"50":145,"51":198,"52":198,"53":198,"54":145,"55":198,"56":198,"57":198,"58":108,"59":198,"60":198,"61":137,"62":137,"63":137,"64":198,"65":198,"66":198,"67":198,"68":76,"69":76,"70":122,"71":11,"72":11,"73":111,"74":198,"75":83,"76":198,"77":198,"78":118,"79":118,"80":47,"81":45},"b":{"1":[137,135],"2":[137,0],"3":[28,97],"4":[29,4],"5":[2,14],"6":[0,83],"7":[108,90],"8":[108,105],"9":[137,61],"10":[76,122],"11":[11,111],"12":[83,115],"13":[198,180],"14":[118,80],"15":[198,169],"16":[45,2]},"f":{"1":137,"2":132,"3":96,"4":14,"5":125,"6":33,"7":16,"8":12,"9":83,"10":83,"11":137,"12":145,"13":198,"14":198,"15":198,"16":47},"fnMap":{"1":{"name":"(anonymous_1)","line":6,"loc":{"start":{"line":6,"column":20},"end":{"line":6,"column":54}}},"2":{"name":"(anonymous_2)","line":35,"loc":{"start":{"line":35,"column":14},"end":{"line":35,"column":24}}},"3":{"name":"(anonymous_3)","line":39,"loc":{"start":{"line":39,"column":18},"end":{"line":39,"column":36}}},"4":{"name":"(anonymous_4)","line":46,"loc":{"start":{"line":46,"column":16},"end":{"line":46,"column":34}}},"5":{"name":"(anonymous_5)","line":51,"loc":{"start":{"line":51,"column":9},"end":{"line":51,"column":26}}},"6":{"name":"(anonymous_6)","line":56,"loc":{"start":{"line":56,"column":28},"end":{"line":56,"column":41}}},"7":{"name":"(anonymous_7)","line":74,"loc":{"start":{"line":74,"column":8},"end":{"line":74,"column":18}}},"8":{"name":"(anonymous_8)","line":83,"loc":{"start":{"line":83,"column":28},"end":{"line":83,"column":41}}},"9":{"name":"(anonymous_9)","line":97,"loc":{"start":{"line":97,"column":17},"end":{"line":97,"column":55}}},"10":{"name":"(anonymous_10)","line":103,"loc":{"start":{"line":103,"column":24},"end":{"line":103,"column":56}}},"11":{"name":"(anonymous_11)","line":122,"loc":{"start":{"line":122,"column":35},"end":{"line":122,"column":45}}},"12":{"name":"(anonymous_12)","line":132,"loc":{"start":{"line":132,"column":10},"end":{"line":132,"column":54}}},"13":{"name":"(anonymous_13)","line":149,"loc":{"start":{"line":149,"column":24},"end":{"line":149,"column":47}}},"14":{"name":"(anonymous_14)","line":159,"loc":{"start":{"line":159,"column":14},"end":{"line":159,"column":64}}},"15":{"name":"(anonymous_15)","line":180,"loc":{"start":{"line":180,"column":24},"end":{"line":180,"column":65}}},"16":{"name":"(anonymous_16)","line":215,"loc":{"start":{"line":215,"column":34},"end":{"line":215,"column":51}}}},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":25,"column":2}},"2":{"start":{"line":7,"column":2},"end":{"line":7,"column":31}},"3":{"start":{"line":8,"column":2},"end":{"line":8,"column":53}},"4":{"start":{"line":9,"column":2},"end":{"line":9,"column":58}},"5":{"start":{"line":12,"column":2},"end":{"line":12,"column":23}},"6":{"start":{"line":14,"column":2},"end":{"line":14,"column":41}},"7":{"start":{"line":17,"column":2},"end":{"line":17,"column":17}},"8":{"start":{"line":18,"column":2},"end":{"line":18,"column":30}},"9":{"start":{"line":20,"column":2},"end":{"line":20,"column":48}},"10":{"start":{"line":22,"column":2},"end":{"line":24,"column":3}},"11":{"start":{"line":23,"column":4},"end":{"line":23,"column":34}},"12":{"start":{"line":27,"column":0},"end":{"line":27,"column":45}},"13":{"start":{"line":31,"column":0},"end":{"line":126,"column":3}},"14":{"start":{"line":40,"column":4},"end":{"line":40,"column":45}},"15":{"start":{"line":47,"column":4},"end":{"line":47,"column":43}},"16":{"start":{"line":53,"column":4},"end":{"line":53,"column":39}},"17":{"start":{"line":53,"column":30},"end":{"line":53,"column":37}},"18":{"start":{"line":56,"column":4},"end":{"line":61,"column":7}},"19":{"start":{"line":58,"column":6},"end":{"line":60,"column":7}},"20":{"start":{"line":59,"column":8},"end":{"line":59,"column":27}},"21":{"start":{"line":64,"column":4},"end":{"line":64,"column":48}},"22":{"start":{"line":66,"column":4},"end":{"line":66,"column":50}},"23":{"start":{"line":67,"column":4},"end":{"line":67,"column":31}},"24":{"start":{"line":69,"column":4},"end":{"line":69,"column":41}},"25":{"start":{"line":76,"column":4},"end":{"line":76,"column":40}},"26":{"start":{"line":76,"column":31},"end":{"line":76,"column":38}},"27":{"start":{"line":77,"column":4},"end":{"line":77,"column":32}},"28":{"start":{"line":79,"column":4},"end":{"line":79,"column":55}},"29":{"start":{"line":83,"column":4},"end":{"line":83,"column":58}},"30":{"start":{"line":83,"column":43},"end":{"line":83,"column":54}},"31":{"start":{"line":86,"column":4},"end":{"line":86,"column":49}},"32":{"start":{"line":89,"column":4},"end":{"line":89,"column":39}},"33":{"start":{"line":90,"column":4},"end":{"line":90,"column":37}},"34":{"start":{"line":92,"column":4},"end":{"line":92,"column":48}},"35":{"start":{"line":98,"column":4},"end":{"line":98,"column":60}},"36":{"start":{"line":104,"column":4},"end":{"line":104,"column":31}},"37":{"start":{"line":104,"column":22},"end":{"line":104,"column":29}},"38":{"start":{"line":107,"column":4},"end":{"line":114,"column":7}},"39":{"start":{"line":116,"column":4},"end":{"line":116,"column":33}},"40":{"start":{"line":123,"column":4},"end":{"line":123,"column":60}},"41":{"start":{"line":124,"column":4},"end":{"line":124,"column":58}},"42":{"start":{"line":129,"column":0},"end":{"line":224,"column":3}},"43":{"start":{"line":133,"column":4},"end":{"line":133,"column":21}},"44":{"start":{"line":137,"column":4},"end":{"line":137,"column":38}},"45":{"start":{"line":138,"column":4},"end":{"line":138,"column":28}},"46":{"start":{"line":141,"column":4},"end":{"line":141,"column":41}},"47":{"start":{"line":142,"column":4},"end":{"line":142,"column":36}},"48":{"start":{"line":145,"column":4},"end":{"line":145,"column":31}},"49":{"start":{"line":146,"column":4},"end":{"line":146,"column":51}},"50":{"start":{"line":149,"column":4},"end":{"line":153,"column":13}},"51":{"start":{"line":150,"column":6},"end":{"line":150,"column":32}},"52":{"start":{"line":151,"column":6},"end":{"line":151,"column":80}},"53":{"start":{"line":152,"column":6},"end":{"line":152,"column":88}},"54":{"start":{"line":156,"column":4},"end":{"line":156,"column":18}},"55":{"start":{"line":160,"column":4},"end":{"line":160,"column":40}},"56":{"start":{"line":161,"column":4},"end":{"line":161,"column":36}},"57":{"start":{"line":162,"column":4},"end":{"line":164,"column":5}},"58":{"start":{"line":163,"column":6},"end":{"line":163,"column":51}},"59":{"start":{"line":167,"column":4},"end":{"line":167,"column":42}},"60":{"start":{"line":169,"column":4},"end":{"line":175,"column":5}},"61":{"start":{"line":171,"column":6},"end":{"line":171,"column":57}},"62":{"start":{"line":172,"column":6},"end":{"line":172,"column":40}},"63":{"start":{"line":174,"column":6},"end":{"line":174,"column":51}},"64":{"start":{"line":177,"column":4},"end":{"line":177,"column":18}},"65":{"start":{"line":181,"column":4},"end":{"line":181,"column":11}},"66":{"start":{"line":182,"column":4},"end":{"line":182,"column":24}},"67":{"start":{"line":184,"column":4},"end":{"line":197,"column":5}},"68":{"start":{"line":186,"column":6},"end":{"line":186,"column":15}},"69":{"start":{"line":187,"column":6},"end":{"line":187,"column":29}},"70":{"start":{"line":189,"column":11},"end":{"line":197,"column":5}},"71":{"start":{"line":191,"column":6},"end":{"line":191,"column":22}},"72":{"start":{"line":192,"column":6},"end":{"line":192,"column":44}},"73":{"start":{"line":196,"column":6},"end":{"line":196,"column":29}},"74":{"start":{"line":200,"column":4},"end":{"line":202,"column":5}},"75":{"start":{"line":201,"column":6},"end":{"line":201,"column":37}},"76":{"start":{"line":206,"column":4},"end":{"line":206,"column":71}},"77":{"start":{"line":209,"column":4},"end":{"line":221,"column":5}},"78":{"start":{"line":212,"column":6},"end":{"line":212,"column":48}},"79":{"start":{"line":215,"column":6},"end":{"line":219,"column":9}},"80":{"start":{"line":216,"column":8},"end":{"line":218,"column":9}},"81":{"start":{"line":217,"column":10},"end":{"line":217,"column":32}}},"branchMap":{"1":{"line":9,"type":"binary-expr","locations":[{"start":{"line":9,"column":20},"end":{"line":9,"column":38}},{"start":{"line":9,"column":42},"end":{"line":9,"column":57}}]},"2":{"line":22,"type":"if","locations":[{"start":{"line":22,"column":2},"end":{"line":22,"column":2}},{"start":{"line":22,"column":2},"end":{"line":22,"column":2}}]},"3":{"line":53,"type":"if","locations":[{"start":{"line":53,"column":4},"end":{"line":53,"column":4}},{"start":{"line":53,"column":4},"end":{"line":53,"column":4}}]},"4":{"line":58,"type":"if","locations":[{"start":{"line":58,"column":6},"end":{"line":58,"column":6}},{"start":{"line":58,"column":6},"end":{"line":58,"column":6}}]},"5":{"line":76,"type":"if","locations":[{"start":{"line":76,"column":4},"end":{"line":76,"column":4}},{"start":{"line":76,"column":4},"end":{"line":76,"column":4}}]},"6":{"line":104,"type":"if","locations":[{"start":{"line":104,"column":4},"end":{"line":104,"column":4}},{"start":{"line":104,"column":4},"end":{"line":104,"column":4}}]},"7":{"line":162,"type":"if","locations":[{"start":{"line":162,"column":4},"end":{"line":162,"column":4}},{"start":{"line":162,"column":4},"end":{"line":162,"column":4}}]},"8":{"line":163,"type":"binary-expr","locations":[{"start":{"line":163,"column":20},"end":{"line":163,"column":35}},{"start":{"line":163,"column":39},"end":{"line":163,"column":50}}]},"9":{"line":169,"type":"if","locations":[{"start":{"line":169,"column":4},"end":{"line":169,"column":4}},{"start":{"line":169,"column":4},"end":{"line":169,"column":4}}]},"10":{"line":184,"type":"if","locations":[{"start":{"line":184,"column":4},"end":{"line":184,"column":4}},{"start":{"line":184,"column":4},"end":{"line":184,"column":4}}]},"11":{"line":189,"type":"if","locations":[{"start":{"line":189,"column":11},"end":{"line":189,"column":11}},{"start":{"line":189,"column":11},"end":{"line":189,"column":11}}]},"12":{"line":200,"type":"if","locations":[{"start":{"line":200,"column":4},"end":{"line":200,"column":4}},{"start":{"line":200,"column":4},"end":{"line":200,"column":4}}]},"13":{"line":206,"type":"binary-expr","locations":[{"start":{"line":206,"column":29},"end":{"line":206,"column":51}},{"start":{"line":206,"column":55},"end":{"line":206,"column":70}}]},"14":{"line":209,"type":"if","locations":[{"start":{"line":209,"column":4},"end":{"line":209,"column":4}},{"start":{"line":209,"column":4},"end":{"line":209,"column":4}}]},"15":{"line":209,"type":"binary-expr","locations":[{"start":{"line":209,"column":8},"end":{"line":209,"column":30}},{"start":{"line":209,"column":34},"end":{"line":209,"column":69}}]},"16":{"line":216,"type":"if","locations":[{"start":{"line":216,"column":8},"end":{"line":216,"column":8}},{"start":{"line":216,"column":8},"end":{"line":216,"column":8}}]}}},"./src/marionette.templatecache.js":{"path":"./src/marionette.templatecache.js","s":{"1":1,"2":30,"3":1,"4":142,"5":142,"6":30,"7":30,"8":142,"9":6,"10":6,"11":6,"12":6,"13":4,"14":6,"15":2,"16":1,"17":142,"18":112,"19":30,"20":30,"21":30,"22":30,"23":30,"24":0,"25":30,"26":30},"b":{"1":[30,112],"2":[4,2],"3":[112,30],"4":[0,30],"5":[30,30]},"f":{"1":30,"2":142,"3":6,"4":142,"5":30,"6":30},"fnMap":{"1":{"name":"(anonymous_1)","line":6,"loc":{"start":{"line":6,"column":27},"end":{"line":6,"column":47}}},"2":{"name":"(anonymous_2)","line":19,"loc":{"start":{"line":19,"column":7},"end":{"line":19,"column":27}}},"3":{"name":"(anonymous_3)","line":37,"loc":{"start":{"line":37,"column":9},"end":{"line":37,"column":19}}},"4":{"name":"(anonymous_4)","line":58,"loc":{"start":{"line":58,"column":8},"end":{"line":58,"column":18}}},"5":{"name":"(anonymous_5)","line":76,"loc":{"start":{"line":76,"column":16},"end":{"line":76,"column":36}}},"6":{"name":"(anonymous_6)","line":90,"loc":{"start":{"line":90,"column":19},"end":{"line":90,"column":40}}}},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":8,"column":2}},"2":{"start":{"line":7,"column":2},"end":{"line":7,"column":31}},"3":{"start":{"line":13,"column":0},"end":{"line":50,"column":3}},"4":{"start":{"line":20,"column":4},"end":{"line":20,"column":57}},"5":{"start":{"line":22,"column":4},"end":{"line":25,"column":5}},"6":{"start":{"line":23,"column":6},"end":{"line":23,"column":64}},"7":{"start":{"line":24,"column":6},"end":{"line":24,"column":55}},"8":{"start":{"line":27,"column":4},"end":{"line":27,"column":33}},"9":{"start":{"line":38,"column":4},"end":{"line":38,"column":10}},"10":{"start":{"line":39,"column":4},"end":{"line":39,"column":32}},"11":{"start":{"line":40,"column":4},"end":{"line":40,"column":29}},"12":{"start":{"line":42,"column":4},"end":{"line":48,"column":5}},"13":{"start":{"line":43,"column":6},"end":{"line":45,"column":7}},"14":{"start":{"line":44,"column":8},"end":{"line":44,"column":44}},"15":{"start":{"line":47,"column":6},"end":{"line":47,"column":31}},"16":{"start":{"line":55,"column":0},"end":{"line":93,"column":3}},"17":{"start":{"line":60,"column":4},"end":{"line":62,"column":5}},"18":{"start":{"line":61,"column":6},"end":{"line":61,"column":35}},"19":{"start":{"line":65,"column":4},"end":{"line":65,"column":54}},"20":{"start":{"line":66,"column":4},"end":{"line":66,"column":59}},"21":{"start":{"line":68,"column":4},"end":{"line":68,"column":33}},"22":{"start":{"line":77,"column":4},"end":{"line":77,"column":51}},"23":{"start":{"line":79,"column":4},"end":{"line":81,"column":5}},"24":{"start":{"line":80,"column":6},"end":{"line":80,"column":85}},"25":{"start":{"line":83,"column":4},"end":{"line":83,"column":20}},"26":{"start":{"line":91,"column":4},"end":{"line":91,"column":35}}},"branchMap":{"1":{"line":22,"type":"if","locations":[{"start":{"line":22,"column":4},"end":{"line":22,"column":4}},{"start":{"line":22,"column":4},"end":{"line":22,"column":4}}]},"2":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":42,"column":4}},{"start":{"line":42,"column":4},"end":{"line":42,"column":4}}]},"3":{"line":60,"type":"if","locations":[{"start":{"line":60,"column":4},"end":{"line":60,"column":4}},{"start":{"line":60,"column":4},"end":{"line":60,"column":4}}]},"4":{"line":79,"type":"if","locations":[{"start":{"line":79,"column":4},"end":{"line":79,"column":4}},{"start":{"line":79,"column":4},"end":{"line":79,"column":4}}]},"5":{"line":79,"type":"binary-expr","locations":[{"start":{"line":79,"column":8},"end":{"line":79,"column":17}},{"start":{"line":79,"column":21},"end":{"line":79,"column":42}}]}}},"./src/marionette.renderer.js":{"path":"./src/marionette.renderer.js","s":{"1":1,"2":181,"3":3,"4":3,"5":3,"6":178,"7":178,"8":53,"9":125,"10":178},"b":{"1":[3,178],"2":[53,125]},"f":{"1":181},"fnMap":{"1":{"name":"(anonymous_1)","line":12,"loc":{"start":{"line":12,"column":10},"end":{"line":12,"column":34}}}},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":29,"column":2}},"2":{"start":{"line":14,"column":4},"end":{"line":18,"column":5}},"3":{"start":{"line":15,"column":6},"end":{"line":15,"column":95}},"4":{"start":{"line":16,"column":6},"end":{"line":16,"column":43}},"5":{"start":{"line":17,"column":6},"end":{"line":17,"column":18}},"6":{"start":{"line":20,"column":4},"end":{"line":20,"column":21}},"7":{"start":{"line":21,"column":4},"end":{"line":25,"column":5}},"8":{"start":{"line":22,"column":6},"end":{"line":22,"column":30}},"9":{"start":{"line":24,"column":6},"end":{"line":24,"column":60}},"10":{"start":{"line":27,"column":4},"end":{"line":27,"column":30}}},"branchMap":{"1":{"line":14,"type":"if","locations":[{"start":{"line":14,"column":4},"end":{"line":14,"column":4}},{"start":{"line":14,"column":4},"end":{"line":14,"column":4}}]},"2":{"line":21,"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":4}},{"start":{"line":21,"column":4},"end":{"line":21,"column":4}}]}}},"./src/marionette.callbacks.js":{"path":"./src/marionette.callbacks.js","s":{"1":1,"2":389,"3":389,"4":1,"5":235,"6":235,"7":120,"8":1,"9":120,"10":163,"11":30,"12":30,"13":30,"14":30,"15":35},"b":{"1":[1,119]},"f":{"1":389,"2":235,"3":120,"4":163,"5":30,"6":35},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":23},"end":{"line":7,"column":33}}},"2":{"name":"(anonymous_2)","line":17,"loc":{"start":{"line":17,"column":7},"end":{"line":17,"column":42}}},"3":{"name":"(anonymous_3)","line":20,"loc":{"start":{"line":20,"column":24},"end":{"line":20,"column":50}}},"4":{"name":"(anonymous_4)","line":29,"loc":{"start":{"line":29,"column":7},"end":{"line":29,"column":33}}},"5":{"name":"(anonymous_5)","line":35,"loc":{"start":{"line":35,"column":9},"end":{"line":35,"column":19}}},"6":{"name":"(anonymous_6)","line":40,"loc":{"start":{"line":40,"column":22},"end":{"line":40,"column":34}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":10,"column":2}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":43}},"3":{"start":{"line":9,"column":2},"end":{"line":9,"column":23}},"4":{"start":{"line":12,"column":0},"end":{"line":44,"column":3}},"5":{"start":{"line":18,"column":4},"end":{"line":18,"column":63}},"6":{"start":{"line":20,"column":4},"end":{"line":23,"column":7}},"7":{"start":{"line":21,"column":6},"end":{"line":21,"column":56}},"8":{"start":{"line":21,"column":28},"end":{"line":21,"column":54}},"9":{"start":{"line":22,"column":6},"end":{"line":22,"column":38}},"10":{"start":{"line":30,"column":4},"end":{"line":30,"column":45}},"11":{"start":{"line":36,"column":4},"end":{"line":36,"column":36}},"12":{"start":{"line":37,"column":4},"end":{"line":37,"column":45}},"13":{"start":{"line":38,"column":4},"end":{"line":38,"column":25}},"14":{"start":{"line":40,"column":4},"end":{"line":42,"column":13}},"15":{"start":{"line":41,"column":6},"end":{"line":41,"column":30}}},"branchMap":{"1":{"line":21,"type":"if","locations":[{"start":{"line":21,"column":6},"end":{"line":21,"column":6}},{"start":{"line":21,"column":6},"end":{"line":21,"column":6}}]}}}} \ No newline at end of file diff --git a/reports/coverage/index.html b/reports/coverage/index.html index 786fd7e229..a6865ac9d9 100644 --- a/reports/coverage/index.html +++ b/reports/coverage/index.html @@ -183,16 +183,16 @@

Code coverage report for All files

- Statements: 98.16% (695 / 708)      + Statements: 98.2% (709 / 722)      - Branches: 94.85% (258 / 272)      + Branches: 94.68% (267 / 282)      - Functions: 98.91% (182 / 184)      + Functions: 98.92% (184 / 186)      - Lines: 98.69% (676 / 685)      + Lines: 98.71% (690 / 699)     

@@ -229,15 +229,15 @@

src/ - - 98.15% - (689 / 702) - 94.85% - (258 / 272) - 98.91% - (181 / 183) - 98.67% - (670 / 679) + + 98.18% + (703 / 716) + 94.68% + (267 / 282) + 98.92% + (183 / 185) + 98.7% + (684 / 693) @@ -258,7 +258,7 @@

diff --git a/reports/coverage/spec/javascripts/support/index.html b/reports/coverage/spec/javascripts/support/index.html index 69c35bf171..04e609fc23 100644 --- a/reports/coverage/spec/javascripts/support/index.html +++ b/reports/coverage/spec/javascripts/support/index.html @@ -232,7 +232,7 @@

diff --git a/reports/coverage/spec/javascripts/support/marionette.support.js.html b/reports/coverage/spec/javascripts/support/marionette.support.js.html index 8556557c18..8617cbb92d 100644 --- a/reports/coverage/spec/javascripts/support/marionette.support.js.html +++ b/reports/coverage/spec/javascripts/support/marionette.support.js.html @@ -207,7 +207,7 @@

diff --git a/reports/coverage/src/build/index.html b/reports/coverage/src/build/index.html index 7c6bd23425..05d35b12f6 100644 --- a/reports/coverage/src/build/index.html +++ b/reports/coverage/src/build/index.html @@ -232,7 +232,7 @@

diff --git a/reports/coverage/src/build/marionette.core.js.html b/reports/coverage/src/build/marionette.core.js.html index c84f0c76ff..32055ee1e9 100644 --- a/reports/coverage/src/build/marionette.core.js.html +++ b/reports/coverage/src/build/marionette.core.js.html @@ -312,7 +312,7 @@

diff --git a/reports/coverage/src/index.html b/reports/coverage/src/index.html index 9fbbfae4f9..32ace4c32a 100644 --- a/reports/coverage/src/index.html +++ b/reports/coverage/src/index.html @@ -183,16 +183,16 @@

Code coverage report for src/

- Statements: 98.15% (689 / 702)      + Statements: 98.18% (703 / 716)      - Branches: 94.85% (258 / 272)      + Branches: 94.68% (267 / 282)      - Functions: 98.91% (181 / 183)      + Functions: 98.92% (183 / 185)      - Lines: 98.67% (670 / 679)      + Lines: 98.7% (684 / 693)     

All files » src/
@@ -216,15 +216,15 @@

marionette.application.js - - 87.5% - (28 / 32) + + 88.57% + (31 / 35) 100% - (0 / 0) + (4 / 4) 84.62% (11 / 13) - 87.5% - (28 / 32) + 88.57% + (31 / 35) @@ -270,26 +270,26 @@

marionette.collectionview.js 100% - (117 / 117) - 97.62% - (41 / 42) + (118 / 118) + 97.5% + (39 / 40) 100% - (35 / 35) + (36 / 36) 100% - (114 / 114) + (115 / 115) marionette.compositeview.js - - 94.64% - (53 / 56) + + 94.74% + (54 / 57) 86.36% (19 / 22) 100% (12 / 12) - 94.64% - (53 / 56) + 94.74% + (54 / 57) @@ -359,15 +359,15 @@

marionette.module.js - - 98.61% - (71 / 72) - 95.83% - (23 / 24) + + 98.77% + (80 / 81) + 93.75% + (30 / 32) 100% - (15 / 15) + (16 / 16) 100% - (68 / 68) + (77 / 77) @@ -453,7 +453,7 @@

diff --git a/reports/coverage/src/marionette.application.js.html b/reports/coverage/src/marionette.application.js.html index e04c08fcab..43c58e9064 100644 --- a/reports/coverage/src/marionette.application.js.html +++ b/reports/coverage/src/marionette.application.js.html @@ -183,16 +183,16 @@

Code coverage report for src/marionette.application.js

- Statements: 87.5% (28 / 32)      + Statements: 88.57% (31 / 35)      - Branches: 100% (0 / 0)      + Branches: 100% (4 / 4)      Functions: 84.62% (11 / 13)      - Lines: 87.5% (28 / 32)      + Lines: 88.57% (31 / 35)     

All files » src/ » marionette.application.js
@@ -303,23 +303,30 @@

102 103 104 -105  +105 +106 +107 +108 +109 +110 +111 +112            1 -101 -101 -101 -101 -101 -101 +106 +106 +106 +106 +106 +106   -101 +106   -101 +106     1 @@ -346,11 +353,11 @@

      -36 -36 -36 +41 +41 +41   -36 +41       @@ -382,24 +389,31 @@

      +145     -140 -140 +145 +87     -140     +145 +145     -101 +145   -101 +  +  +  +106 +  +106 16     -101 +106 2     @@ -486,13 +500,20 @@

  // Create a module, attached to the application module: function(moduleNames, moduleDefinition){ + var ModuleClass = Marionette.Module; +  + // Overwrite the module class if the user specifies one + if (moduleDefinition) { + ModuleClass = moduleDefinition.moduleClass || ModuleClass; + } +  // slice the args, and add this application object as the // first argument of the array var args = slice(arguments); args.unshift(this);   // see the Marionette.Module object for more information - return Marionette.Module.create.apply(Marionette.Module, args); + return ModuleClass.create.apply(ModuleClass, args); },   // Internal method to set up the region manager @@ -516,7 +537,7 @@

diff --git a/reports/coverage/src/marionette.approuter.js.html b/reports/coverage/src/marionette.approuter.js.html index 901582d48d..bdd3dd074b 100644 --- a/reports/coverage/src/marionette.approuter.js.html +++ b/reports/coverage/src/marionette.approuter.js.html @@ -399,7 +399,7 @@

diff --git a/reports/coverage/src/marionette.bindEntityEvents.js.html b/reports/coverage/src/marionette.bindEntityEvents.js.html index 5b7ca97aa8..955a67ac9f 100644 --- a/reports/coverage/src/marionette.bindEntityEvents.js.html +++ b/reports/coverage/src/marionette.bindEntityEvents.js.html @@ -348,7 +348,7 @@

    1 -2251 +2295     74 @@ -371,11 +371,11 @@

    1 -1121 +1143     1 -1130 +1152       @@ -474,7 +474,7 @@

diff --git a/reports/coverage/src/marionette.callbacks.js.html b/reports/coverage/src/marionette.callbacks.js.html index 0354d52082..71a0fbe47c 100644 --- a/reports/coverage/src/marionette.callbacks.js.html +++ b/reports/coverage/src/marionette.callbacks.js.html @@ -251,8 +251,8 @@

    1 -374 -374 +389 +389     1 @@ -273,7 +273,7 @@

      -158 +163       @@ -339,7 +339,7 @@

diff --git a/reports/coverage/src/marionette.collectionview.js.html b/reports/coverage/src/marionette.collectionview.js.html index 320df14459..afd11fa21d 100644 --- a/reports/coverage/src/marionette.collectionview.js.html +++ b/reports/coverage/src/marionette.collectionview.js.html @@ -183,16 +183,16 @@

Code coverage report for src/marionette.collectionview.js

- Statements: 100% (117 / 117)      + Statements: 100% (118 / 118)      - Branches: 97.62% (41 / 42)      + Branches: 97.5% (39 / 40)      - Functions: 100% (35 / 35)      + Functions: 100% (36 / 36)      - Lines: 100% (114 / 114)      + Lines: 100% (115 / 115)     

All files » src/ » marionette.collectionview.js
@@ -536,7 +536,11 @@

335 336 337 -338  +338 +339 +340 +341 +342        @@ -548,36 +552,36 @@

      -160 +166   -160 +166   -160 -160 +166 +166             -500 -500 +518 +518       -171 -171 +177 +177       -170 -170 -169 -169 +176 +176 +175 +175       -169 +175 2 2   @@ -589,19 +593,19 @@

      -102 -93 -93 -93 +107 +98 +98 +98           -17 -17 -17 -17 +18 +18 +18 +18       @@ -615,44 +619,44 @@

      -168 -168 +174 +174           -165 -165 +171 +171             -113 -113 -113 -112 -112 +118 +118 +118 +117 +117             -171 +177   -171 -171 +177 +177   -171 +177 132   -39 +45     -170 +176       @@ -660,8 +664,8 @@

  132 132 -206 205 +204       @@ -669,12 +673,12 @@

      -94 +106   -94 -20 -20 -20 +106 +25 +25 +25       @@ -682,110 +686,110 @@

      -188 -9 -9 +195 +10 +10           -92 +104             -153 +154   -153 +154 1     -152 +153             -245 -245 +250 +250 4       -245 +250     -245 +250     -245 +250       -245 +250     -245 +250       -245 +250 4       -245 +250   -245 +250           -245 +250       -245 -362 -362 -362 +250 +371 +371 +371   -362 -362 +371 +371     -362 +371 2     -362 +371           -362 +371 1     -361 +370         -245 -245 +250 +250         -245 -245 +250 +250       @@ -800,55 +804,59 @@

      +69 68 -67     -67 +68 1   -67 +68     -68 +69           +390   -210 -55       +217 +61     -112       +117       -170       -146 -146 +176       +151 +151 +  +    -24   +25           -160 +  +166       @@ -866,10 +874,10 @@

      -201 -59 +208 +60   -201 +208       @@ -983,7 +991,7 @@

this.closeEmptyView(); this.closeChildren();   - if (this.collection && this.collection.length > 0) { + if (!this.isEmpty(this.collection)) { this.showCollection(); } else { this.showEmptyView(); @@ -1150,11 +1158,15 @@

this.triggerMethod("item:removed", view); },   - // helper to show the empty view if the collection is empty - checkEmpty: function() { - // check if we're empty now, and if we are, show the - // empty view - if (!this.collection || this.collection.length === 0){ + // helper to check if the collection is empty + isEmpty: function(collection){ + // check if we're empty now + return !this.collection || this.collection.length === 0; + }, +  + // If empty, show the empty view + checkEmpty: function (){ + if (this.isEmpty(this.collection)){ this.showEmptyView(); } }, @@ -1215,7 +1227,7 @@

diff --git a/reports/coverage/src/marionette.compositeview.js.html b/reports/coverage/src/marionette.compositeview.js.html index 1f00837475..c67453c68a 100644 --- a/reports/coverage/src/marionette.compositeview.js.html +++ b/reports/coverage/src/marionette.compositeview.js.html @@ -183,7 +183,7 @@

Code coverage report for src/marionette.compositeview.js

- Statements: 94.64% (53 / 56)      + Statements: 94.74% (54 / 57)      Branches: 86.36% (19 / 22)      @@ -192,7 +192,7 @@

Functions: 100% (12 / 12)      - Lines: 94.64% (53 / 56)      + Lines: 94.74% (54 / 57)     

All files » src/ » marionette.compositeview.js
@@ -358,7 +358,8 @@

157 158 159 -160  +160 +161        @@ -369,7 +370,7 @@

      -59 +60       @@ -379,8 +380,8 @@

      -58 -48 +59 +49 41 41 41 @@ -394,56 +395,57 @@

      -72 +71   -72 +71       -72 +71             -55 +56   -55 -41 +56 +42     -55 +56             +56 +56 +56 +  +56 +56 55 -55 -55 +  +    55 55 -54 -    +55   54 54 -  54   -53 -53 -53 -      +59 +59 +59 58 -58 -57       @@ -451,19 +453,19 @@

      -55 -55 -55 +56 +56 +56   -55 -55 +56 +56           +59 58 -57       @@ -471,9 +473,9 @@

      -53 -53 -53 +52 +52 +52       @@ -487,13 +489,13 @@

      -58 +59 4     -54 -54 -54 +55 +55 +55   7 7 @@ -502,16 +504,16 @@

      -47 +48     -53 -53 +54 +54         -55 +56 4     @@ -601,6 +603,7 @@

  _renderChildren: function(){ Eif (this.isRendered){ + this.triggerMethod("composite:collection:before:render"); Marionette.CollectionView.prototype._renderChildren.call(this); this.triggerMethod("composite:collection:rendered"); } @@ -681,7 +684,7 @@

diff --git a/reports/coverage/src/marionette.controller.js.html b/reports/coverage/src/marionette.controller.js.html index 850473f210..4d6fbec6cf 100644 --- a/reports/coverage/src/marionette.controller.js.html +++ b/reports/coverage/src/marionette.controller.js.html @@ -234,10 +234,10 @@

    1 -179 -179 +184 +184   -179 +184 7     @@ -288,7 +288,7 @@

diff --git a/reports/coverage/src/marionette.domRefresh.js.html b/reports/coverage/src/marionette.domRefresh.js.html index 4d0796b165..a231398626 100644 --- a/reports/coverage/src/marionette.domRefresh.js.html +++ b/reports/coverage/src/marionette.domRefresh.js.html @@ -261,13 +261,13 @@

    1 -413 -413 +419 +419       1 -454 +460 16 16   @@ -280,12 +280,12 @@

    1 -558 +569 41     -558 -413 +569 +419       @@ -339,7 +339,7 @@

diff --git a/reports/coverage/src/marionette.helpers.js.html b/reports/coverage/src/marionette.helpers.js.html index 23a891f6b6..93ff3ce627 100644 --- a/reports/coverage/src/marionette.helpers.js.html +++ b/reports/coverage/src/marionette.helpers.js.html @@ -243,7 +243,7 @@

  1 1 -1347 +1379     1 @@ -264,16 +264,16 @@

    1 -3693 -3693 +3762 +3762   -3693 +3762 183   -3510 +3579     -3693 +3762    
// Helpers
 // -------
@@ -318,7 +318,7 @@ 

diff --git a/reports/coverage/src/marionette.itemview.js.html b/reports/coverage/src/marionette.itemview.js.html index c12808f7fb..65eb1898b2 100644 --- a/reports/coverage/src/marionette.itemview.js.html +++ b/reports/coverage/src/marionette.itemview.js.html @@ -281,7 +281,7 @@

      -357 +362       @@ -332,13 +332,13 @@

      -92 +93   -90 +91   -90 +91   -90 +91      
// Item View
@@ -417,7 +417,7 @@ 

diff --git a/reports/coverage/src/marionette.layout.js.html b/reports/coverage/src/marionette.layout.js.html index 7f3fdd2164..96b3698a4d 100644 --- a/reports/coverage/src/marionette.layout.js.html +++ b/reports/coverage/src/marionette.layout.js.html @@ -591,7 +591,7 @@

diff --git a/reports/coverage/src/marionette.module.js.html b/reports/coverage/src/marionette.module.js.html index 88ab584185..11561d46a8 100644 --- a/reports/coverage/src/marionette.module.js.html +++ b/reports/coverage/src/marionette.module.js.html @@ -183,16 +183,16 @@

Code coverage report for src/marionette.module.js

- Statements: 98.61% (71 / 72)      + Statements: 98.77% (80 / 81)      - Branches: 95.83% (23 / 24)      + Branches: 93.75% (30 / 32)      - Functions: 100% (15 / 15)      + Functions: 100% (16 / 16)      - Lines: 100% (68 / 68)      + Lines: 100% (77 / 77)     

All files » src/ » marionette.module.js
@@ -406,25 +406,47 @@

205 206 207 -208  +208 +209 +210 +211 +212 +213 +214 +215 +216 +217 +218 +219 +220 +221 +222 +223 +224 +225 +226          1 -132 +137 +137 +137     -132 +137   -132 +137     -132 -132 +137 +137   -132 +137   +137 +137       @@ -432,6 +454,14 @@

      +1 +  +  +  +  +  +  +    96   @@ -491,16 +521,16 @@

      -81 +83           -81 +83     -81 +83       @@ -509,15 +539,15 @@

      -81 +83             -132 -132 +137 +137       @@ -526,60 +556,66 @@

      -140 +145       -140 -140 +145 +145     -140 -140 +145 +145     -140 -140 +145 +145     -140 -193 -193 -193 +145 +198 +198 +198       -140 +145       +198 +198 +198 +108   -193   -193   -132 -132 +198   -132 +198   +137 +137   -193 +137     +198   -193 -193   -193 +  +198 +198 +  +198   76 76   -117 +122   -6 -6 +11 +11       @@ -587,16 +623,16 @@

      -193 -81 +198 +83         -193 +198     -193 +198     118 @@ -618,8 +654,10 @@

  // A simple module system, used to create privacy and encapsulation in // Marionette applications -Marionette.Module = function(moduleName, app){ +Marionette.Module = function(moduleName, app, options){ this.moduleName = moduleName; + this.options = _.extend({}, this.options, options); + this.initialize = options.initialize || this.initialize;   // store sub-modules this.submodules = {}; @@ -631,11 +669,21 @@

this.startWithParent = true;   this.triggerMethod = Marionette.triggerMethod; +  + Eif (_.isFunction(this.initialize)){ + this.initialize(this.options); + } };   +Marionette.Module.extend = Marionette.extend; +  // Extend the Module prototype with events / listenTo, so that the module // can be used as an event aggregator or pub/sub. _.extend(Marionette.Module.prototype, Backbone.Events, { +  + // Initialize is an empty function by default. Override it with your own + // initialization logic when extending Marionette.Module. + initialize: function(){},   // Initializer for a specific module. Initializers are run when the // module's `start` method is called. @@ -751,7 +799,7 @@

// Loop through all the parts of the module definition _.each(moduleNames, function(moduleName, i){ var parentModule = module; - module = this._getModule(parentModule, moduleName, app); + module = this._getModule(parentModule, moduleName, app, moduleDefinition); this._addModuleDefinition(parentModule, module, moduleDefinitions[i], customArgs); }, this);   @@ -760,12 +808,18 @@

},   _getModule: function(parentModule, moduleName, app, def, args){ + var ModuleClass = Marionette.Module; + var options = _.extend({}, def); + if (def) { + ModuleClass = def.moduleClass || ModuleClass; + } +  // Get an existing module of this name if we have one var module = parentModule[moduleName];   if (!module){ // Create a new module if we don't have one - module = new Marionette.Module(moduleName, app); + module = new ModuleClass(moduleName, app, options); parentModule[moduleName] = module; // store the module on the parent parentModule.submodules[moduleName] = module; @@ -825,7 +879,7 @@

diff --git a/reports/coverage/src/marionette.region.js.html b/reports/coverage/src/marionette.region.js.html index 5b6f74dbb4..a66795d117 100644 --- a/reports/coverage/src/marionette.region.js.html +++ b/reports/coverage/src/marionette.region.js.html @@ -394,12 +394,7 @@

193 194 195 -196 -197 -198 -199 -200 -201  +196        @@ -407,7 +402,6 @@

  1 137 -  137   137 @@ -443,7 +437,6 @@

      -  109 109 109 @@ -497,7 +490,6 @@

    109 -  67 34 34 @@ -523,11 +515,9 @@

      -  81   81 -  81   81 @@ -607,7 +597,6 @@

  Marionette.Region = function(options){ this.options = options || {}; -  this.el = Marionette.getOption(this, "el");   if (!this.el){ @@ -643,7 +632,6 @@

// ``` // buildRegion: function(regionConfig, defaultRegionType){ -  var regionIsString = (typeof regionConfig === "string"); var regionSelectorIsString = (typeof regionConfig.selector === "string"); var regionTypeIsUndefined = (typeof regionConfig.regionType === "undefined"); @@ -697,7 +685,6 @@

// literal to build the region, the element will not be // guaranteed to be in the DOM already, and will cause problems if (regionConfig.parentEl){ -  region.getEl = function(selector) { var parentEl = regionConfig.parentEl; if (_.isFunction(parentEl)){ @@ -723,11 +710,9 @@

// `onShow` and `close` method on your view, just after showing // or just before closing the view, respectively. show: function(view){ -  this.ensureEl();   var isViewClosed = view.isClosed || _.isUndefined(view.$el); -  var isDifferentView = view !== this.currentView;   if (isDifferentView) { @@ -804,7 +789,7 @@

diff --git a/reports/coverage/src/marionette.regionManager.js.html b/reports/coverage/src/marionette.regionManager.js.html index f586a3658f..4b23b68039 100644 --- a/reports/coverage/src/marionette.regionManager.js.html +++ b/reports/coverage/src/marionette.regionManager.js.html @@ -339,8 +339,8 @@

  1   -168 -168 +173 +173       @@ -600,7 +600,7 @@

diff --git a/reports/coverage/src/marionette.renderer.js.html b/reports/coverage/src/marionette.renderer.js.html index 86e016973f..a0084b1317 100644 --- a/reports/coverage/src/marionette.renderer.js.html +++ b/reports/coverage/src/marionette.renderer.js.html @@ -242,20 +242,20 @@

      -180 +181 3 3 3     -177 -177 +178 +178 53   -124 +125     -177 +178       @@ -294,7 +294,7 @@

diff --git a/reports/coverage/src/marionette.templatecache.js.html b/reports/coverage/src/marionette.templatecache.js.html index 3c99081780..c662ed8798 100644 --- a/reports/coverage/src/marionette.templatecache.js.html +++ b/reports/coverage/src/marionette.templatecache.js.html @@ -312,14 +312,14 @@

      -141 +142   -141 +142 30 30     -141 +142       @@ -352,8 +352,8 @@

      -141 -111 +142 +112       @@ -486,7 +486,7 @@

diff --git a/reports/coverage/src/marionette.triggermethod.js.html b/reports/coverage/src/marionette.triggermethod.js.html index f87385c88c..12b0ee4636 100644 --- a/reports/coverage/src/marionette.triggermethod.js.html +++ b/reports/coverage/src/marionette.triggermethod.js.html @@ -252,24 +252,24 @@

    1 -7430 +7835       1   -3477 -3477 +3602 +3602     -3477 -3476 +3602 +3601       -3477 +3602   -389 +390       @@ -318,7 +318,7 @@

diff --git a/reports/coverage/src/marionette.view.js.html b/reports/coverage/src/marionette.view.js.html index 826a5b39b0..8d149c87f6 100644 --- a/reports/coverage/src/marionette.view.js.html +++ b/reports/coverage/src/marionette.view.js.html @@ -422,22 +422,22 @@

1     -559 +570   -559 +570           -559 +570     -559 -559 +570 +570   -558 -558 +569 +569       @@ -449,7 +449,7 @@

      -181 +182       @@ -458,20 +458,20 @@

      -181 -181 -181 +182 +182 +182 3   -181 +182             -580 -546 +591 +557     34 @@ -488,7 +488,7 @@

      -561 +572   21   @@ -536,31 +536,31 @@

      -561 -561 -560 +572 +572 +571         -561 -561 +572 +572   -561 -561 -561 +572 +572 +572   -561 +572           -565 -565 +576 +576   -565 -565 +576 +576       @@ -571,32 +571,32 @@

      -131 +132       -126 -126 +127 +127 3           -123 -123 +124 +124     -123 +124     -123 +124           -179 +180       @@ -619,7 +619,7 @@

      -123 +124     2 @@ -852,7 +852,7 @@