if(window.Transistor===undefined){window.Transistor={}}(function(k){var q=(function(){return function(e){var l,r,h,o,f,s,b,g,i,p,n;l=e.backbone;r=e.underscore;h=e.channel;o=e.radio;f=e.control;s=(function(){return{}}());b=new l.Collection();b.on('change',function(a,c){var d=(a.get('object')||{}),j=a.id;if(c.from_radiotower===undefined){if(!f){throw"BackboneCollection is not mutable by user. The model with id "+a.id+" has been changed";}else{delete d.id;f.update(h,j,d)}}});g={add:b.add,remove:b.remove,reset:b.reset,set:b.set};i={add:function(a){f.insert(h,a)},remove:function(a){f.remove(h,a.id)},set:function(a){f.set(h,a)}};i.reset=i.set;(function(d){var j=true,m=function(c){d[c]=(function(a){return function(){if(j){if(!f){throw"BackboneCollection is not mutable by user.";}else{i[a].apply(i,arguments)}}else{return g[a].apply(b,arguments)}}}(c))};g.asPublic=function(a){j=false;a();j=true};m('add');m('remove');m('reset');m('set')}(b));n=function(d){g.asPublic(function(){var a=[],c;for(c=0;c