var Ma={addListener:function(a,b,d){u.og(a);u.Ja(d);null==a&&(a=[]);a.push(b);a.push(d);return a}};m("AdfEventUtils.addListener",Ma.addListener);Ma.removeListener=function(a,b,d){u.Mb(a);for(var e=a.length,f=1;f<e;f+=2)if(a[f]==b&&a[f-1]==d){if(2==e)return null;a.splice(f-1,2);break}return a};m("AdfEventUtils.removeListener",Ma.removeListener);Ma.BO=function(a,b,d,e,f){u.og(a);u.assert(null!=b);u.J(d);a&&e!==f&&Ma.uO(a,new Oa(b,d,e,f))};m("AdfEventUtils.firePropertyChangeEvent",Ma.BO);
Ma.uO=function(a,b){u.Mb(a);u.s(b,Qa);for(var d=a.slice(),e=d.length,f=0;f<e;f+=2){var g=d[f],h=d[f+1];try{null!=g?h.call(g,b):h(b)}catch(l){v.l.Ge(l," delivering event:"+b+" to listener:"+h)}}};m("AdfEventUtils.deliverEventToListeners",Ma.uO);Ma.addEventListener=function(a,b,d,e){u.Ja(d);u.assert("function"!=typeof e);a||(a={});var f=a[b];if(null!=f||null!=e){var g;E.isArray(f)?g=f:(g=[],f&&g.push(f));u.Mb(g);null!=e&&g.push(e);g.push(d);a[b]=g}else a[b]=d;return a};
m("AdfEventUtils.addEventListener",Ma.addEventListener);Ma.removeEventListener=function(a,b,d,e){u.Ja(d);u.assert("function"!=typeof e);if(null!=a){var f=a[b];if(null!=f)if(E.isArray(f)){u.Mb(f);for(var g=f.length,h=0;h<g;h++){var l=f[h];if("function"!=typeof l){if(l==e&&f[h+1]==d){f.splice(h,2);break}h++}else if(l==d&&null==e){f.splice(h,1);break}}d=f.length;1==d?a[b]=f[0]:0==d&&(a[b]=null)}else f==d&&(a[b]=null)}return a};m("AdfEventUtils.removeEventListener",Ma.removeEventListener);