var $AdfEventUtils$$ = {addListener:function($listenerArray$$2$$, $instance$$31$$, $listener$$100$$) {
  $AdfAssert$$.$assertArrayOrNull$($listenerArray$$2$$);
  $AdfAssert$$.$assertFunction$($listener$$100$$);
  $listenerArray$$2$$ == $JSCompiler_alias_NULL$$ && ($listenerArray$$2$$ = []);
  $listenerArray$$2$$.push($instance$$31$$);
  $listenerArray$$2$$.push($listener$$100$$);
  return $listenerArray$$2$$
}};
$goog$exportSymbol$$("AdfEventUtils.addListener", $AdfEventUtils$$.addListener);
$AdfEventUtils$$.removeListener = function $$AdfEventUtils$$$removeListener$($listenerArray$$3$$, $listener$$101$$, $instance$$32$$) {
  $AdfAssert$$.$assertArray$($listenerArray$$3$$);
  for(var $size$$60$$ = $listenerArray$$3$$.length, $i$$589$$ = 1;$i$$589$$ < $size$$60$$;$i$$589$$ += 2) {
    if($listenerArray$$3$$[$i$$589$$] == $listener$$101$$ && $listenerArray$$3$$[$i$$589$$ - 1] == $instance$$32$$) {
      if(2 == $size$$60$$) {
        return $JSCompiler_alias_NULL$$
      }
      $listenerArray$$3$$.splice($i$$589$$ - 1, 2);
      break
    }
  }
  return $listenerArray$$3$$
};
$goog$exportSymbol$$("AdfEventUtils.removeListener", $AdfEventUtils$$.removeListener);
$AdfEventUtils$$.$firePropertyChangeEvent$ = function $$AdfEventUtils$$$$firePropertyChangeEvent$$($listenerArray$$4$$, $source$$169$$, $propertyName$$52$$, $oldValue$$112$$, $newValue$$163$$) {
  $AdfAssert$$.$assertArrayOrNull$($listenerArray$$4$$);
  $AdfAssert$$.assert($source$$169$$ != $JSCompiler_alias_NULL$$);
  $AdfAssert$$.$assertString$($propertyName$$52$$);
  $listenerArray$$4$$ && $oldValue$$112$$ !== $newValue$$163$$ && $AdfEventUtils$$.$deliverEventToListeners$($listenerArray$$4$$, new $AdfPropertyChangeEvent$$($source$$169$$, $propertyName$$52$$, $oldValue$$112$$, $newValue$$163$$))
};
$goog$exportSymbol$$("AdfEventUtils.firePropertyChangeEvent", $AdfEventUtils$$.$firePropertyChangeEvent$);
$AdfEventUtils$$.$deliverEventToListeners$ = function $$AdfEventUtils$$$$deliverEventToListeners$$($listenerArray$$5$$, $event$$257$$) {
  $AdfAssert$$.$assertArray$($listenerArray$$5$$);
  $AdfAssert$$.$assertPrototype$($event$$257$$, $AdfBaseEvent$$);
  for(var $clonedListeners$$ = $listenerArray$$5$$.slice(), $eventSize$$ = $clonedListeners$$.length, $i$$590$$ = 0;$i$$590$$ < $eventSize$$;$i$$590$$ += 2) {
    var $instance$$33$$ = $clonedListeners$$[$i$$590$$], $listener$$102$$ = $clonedListeners$$[$i$$590$$ + 1];
    try {
      $instance$$33$$ != $JSCompiler_alias_NULL$$ ? $listener$$102$$.call($instance$$33$$, $event$$257$$) : $listener$$102$$($event$$257$$)
    }catch($e$$149$$) {
      $AdfLogger$$.$LOGGER$.$logErrorAsWarning$($e$$149$$, " delivering event:" + $event$$257$$ + " to listener:" + $listener$$102$$)
    }
  }
};
$goog$exportSymbol$$("AdfEventUtils.deliverEventToListeners", $AdfEventUtils$$.$deliverEventToListeners$);
$AdfEventUtils$$.addEventListener = function $$AdfEventUtils$$$addEventListener$($listeners$$19$$, $eventType$$49$$, $listener$$103$$, $instance$$34$$) {
  $AdfAssert$$.$assertFunction$($listener$$103$$);
  $AdfAssert$$.assert("function" != typeof $instance$$34$$);
  $listeners$$19$$ || ($listeners$$19$$ = {});
  var $oldListener$$ = $listeners$$19$$[$eventType$$49$$];
  if($oldListener$$ != $JSCompiler_alias_NULL$$ || $instance$$34$$ != $JSCompiler_alias_NULL$$) {
    var $array$$20$$;
    $AdfCollections$$.isArray($oldListener$$) ? $array$$20$$ = $oldListener$$ : ($array$$20$$ = [], $oldListener$$ && $array$$20$$.push($oldListener$$));
    $AdfAssert$$.$assertArray$($array$$20$$);
    $instance$$34$$ != $JSCompiler_alias_NULL$$ && $array$$20$$.push($instance$$34$$);
    $array$$20$$.push($listener$$103$$);
    $listeners$$19$$[$eventType$$49$$] = $array$$20$$
  }else {
    $listeners$$19$$[$eventType$$49$$] = $listener$$103$$
  }
  return $listeners$$19$$
};
$goog$exportSymbol$$("AdfEventUtils.addEventListener", $AdfEventUtils$$.addEventListener);
$AdfEventUtils$$.removeEventListener = function $$AdfEventUtils$$$removeEventListener$($listeners$$20$$, $eventType$$50$$, $listener$$104_oldLength$$, $instance$$35$$) {
  $AdfAssert$$.$assertFunction$($listener$$104_oldLength$$);
  $AdfAssert$$.assert("function" != typeof $instance$$35$$);
  if($listeners$$20$$ != $JSCompiler_alias_NULL$$) {
    var $oldListeners$$ = $listeners$$20$$[$eventType$$50$$];
    if($oldListeners$$ != $JSCompiler_alias_NULL$$) {
      if($AdfCollections$$.isArray($oldListeners$$)) {
        $AdfAssert$$.$assertArray$($oldListeners$$);
        for(var $length$$72$$ = $oldListeners$$.length, $i$$591$$ = 0;$i$$591$$ < $length$$72$$;$i$$591$$++) {
          var $value$$200$$ = $oldListeners$$[$i$$591$$];
          if("function" != typeof $value$$200$$) {
            if($value$$200$$ == $instance$$35$$ && $oldListeners$$[$i$$591$$ + 1] == $listener$$104_oldLength$$) {
              $oldListeners$$.splice($i$$591$$, 2);
              break
            }
            $i$$591$$++
          }else {
            if($value$$200$$ == $listener$$104_oldLength$$ && $instance$$35$$ == $JSCompiler_alias_NULL$$) {
              $oldListeners$$.splice($i$$591$$, 1);
              break
            }
          }
        }
        $listener$$104_oldLength$$ = $oldListeners$$.length;
        1 == $listener$$104_oldLength$$ ? $listeners$$20$$[$eventType$$50$$] = $oldListeners$$[0] : 0 == $listener$$104_oldLength$$ && ($listeners$$20$$[$eventType$$50$$] = $JSCompiler_alias_NULL$$)
      }else {
        $oldListeners$$ == $listener$$104_oldLength$$ && ($listeners$$20$$[$eventType$$50$$] = $JSCompiler_alias_NULL$$)
      }
    }
  }
  return $listeners$$20$$
};
$goog$exportSymbol$$("AdfEventUtils.removeEventListener", $AdfEventUtils$$.removeEventListener);
