define("dijit/WidgetSet",["dojo/_base/array","dojo/_base/declare","dojo/_base/kernel","./registry"],function(_1,_2,_3,_4){var_5=_2("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_6){if(this._hash[_6.id]){thrownewError("Tried to register widget with id=="+_6.id+" but that id is already registered");}this._hash[_6.id]=_6;this.length++;},remove:function(id){if(this._hash[id]){deletethis._hash[id];this.length--;}},forEach:function(_7,_8){_8=_8||_3.global;vari=0,id;for(idinthis._hash){_7.call(_8,this._hash[id],i++,this._hash);}returnthis;},filter:function(_9,_a){_a=_a||_3.global;var_b=new_5(),i=0,id;for(idinthis._hash){varw=this._hash[id];if(_9.call(_a,w,i++,this._hash)){_b.add(w);}}return_b;},byId:function(id){returnthis._hash[id];},byClass:function(_c){var_d=new_5(),id,_e;for(idinthis._hash){_e=this._hash[id];if(_e.declaredClass==_c){_d.add(_e);}}return_d;},toArray:function(){varar=[];for(varidinthis._hash){ar.push(this._hash[id]);}returnar;},map:function(_f,_10){return_1.map(this.toArray(),_f,_10);},every:function(_11,_12){_12=_12||_3.global;varx=0,i;for(iinthis._hash){if(!_11.call(_12,this._hash[i],x++,this._hash)){returnfalse;}}returntrue;},some:function(_13,_14){_14=_14||_3.global;varx=0,i;for(iinthis._hash){if(_13.call(_14,this._hash[i],x++,this._hash)){returntrue;}}returnfalse;}});_1.forEach(["forEach","filter","byClass","map","every","some"],function(_15){_4[_15]=_5.prototype[_15];});return_5;});