var puremvc;(function(d){var c=(function(){function e(f,g){this.notify=null;this.context=null;this.setNotifyMethod(f);this.setNotifyContext(g)}e.prototype.getNotifyMethod=function(){return this.notify};e.prototype.setNotifyMethod=function(f){this.notify=f};e.prototype.getNotifyContext=function(){return this.context};e.prototype.setNotifyContext=function(f){this.context=f};e.prototype.notifyObserver=function(f){this.getNotifyMethod().call(this.getNotifyContext(),f) };e.prototype.compareNotifyContext=function(f){return f===this.context};return e})();d.Observer=c})(puremvc || (puremvc = {}));var puremvc;(function(c){var d=(function(){function f(){this.mediatorMap=null;this.observerMap=null;if(f.instance){throw Error(f.SINGLETON_MSG)}f.instance=this;this.mediatorMap={};this.observerMap={};this.initializeView()}f.prototype.initializeView=function(){};f.prototype.registerObserver=function(h,g){var i=this.observerMap[h];if(i){i.push(g)}else{this.observerMap[h]=[g]}};f.prototype.removeObserver=function(k,j){var l=this.observerMap[k]; var h=l.length;while(h--){var g=l[h];if(g.compareNotifyContext(j)){l.splice(h,1);break}}if(l.length==0){delete this.observerMap[k]}};f.prototype.notifyObservers=function(l){var k=l.getName();var n=this.observerMap[k];if(n){var m=n.slice(0);var g=m.length;for(var j=0;j0){var h=new c.Observer(l.handleNotification,l); for(var k=0;k