var Pa={addListener:function(a,b,d){B.Jf(a);B.Da(d);a==n&&(a=[]);a.push(b);a.push(d);return a}};v("AdfEventUtils.addListener",Pa.addListener);Pa.removeListener=function(a,b,d){B.yc(a);for(var e=a.length,f=1;f<e;f+=2)if(a[f]==b&&a[f-1]==d){if(2==e)return n;a.splice(f-1,2);break}return a};v("AdfEventUtils.removeListener",Pa.removeListener);Pa.AI=function(a,b,d,e,f){B.Jf(a);B.assert(b!=n);B.s(d);a&&e!==f&&Pa.uI(a,new Ra(b,d,e,f))};v("AdfEventUtils.firePropertyChangeEvent",Pa.AI);
Pa.uI=function(a,b){B.yc(a);B.J(b,Ta);for(var d=a.slice(),e=d.length,f=0;f<e;f+=2){var g=d[f],h=d[f+1];try{g!=n?h.call(g,b):h(b)}catch(m){D.i.ee(m," delivering event:"+b+" to listener:"+h)}}};v("AdfEventUtils.deliverEventToListeners",Pa.uI);Pa.addEventListener=function(a,b,d,e){B.Da(d);B.assert("function"!=typeof e);a||(a={});var f=a[b];if(f!=n||e!=n){var g;ya.isArray(f)?g=f:(g=[],f&&g.push(f));B.yc(g);e!=n&&g.push(e);g.push(d);a[b]=g}else a[b]=d;return a};v("AdfEventUtils.addEventListener",Pa.addEventListener);
Pa.removeEventListener=function(a,b,d,e){B.Da(d);B.assert("function"!=typeof e);if(a!=n){var f=a[b];if(f!=n)if(ya.isArray(f)){B.yc(f);for(var g=f.length,h=0;h<g;h++){var m=f[h];if("function"!=typeof m){if(m==e&&f[h+1]==d){f.splice(h,2);break}h++}else if(m==d&&e==n){f.splice(h,1);break}}d=f.length;1==d?a[b]=f[0]:0==d&&(a[b]=n)}else f==d&&(a[b]=n)}return a};v("AdfEventUtils.removeEventListener",Pa.removeEventListener);