define("dojo/AdapterRegistry",["./_base/kernel","./_base/lang"],function(_1,_2){var_3=_1.AdapterRegistry=function(_4){this.pairs=[];this.returnWrappers=_4||false;};_2.extend(_3,{register:function(_5,_6,_7,_8,_9){this.pairs[((_9)?"unshift":"push")]([_5,_6,_7,_8]);},match:function(){for(vari=0;i<this.pairs.length;i++){var_a=this.pairs[i];if(_a[1].apply(this,arguments)){if((_a[3])||(this.returnWrappers)){return_a[2];}else{return_a[2].apply(this,arguments);}}}thrownewError("No match found");},unregister:function(_b){for(vari=0;i<this.pairs.length;i++){var_c=this.pairs[i];if(_c[0]==_b){this.pairs.splice(i,1);returntrue;}}returnfalse;}});return_3;});