function $AdfFileUploadUtils$$($peer$$200$$, $component$$1869$$, $domElement$$612$$) {
  this.Init($peer$$200$$, $component$$1869$$, $domElement$$612$$)
}
$goog$exportSymbol$$("AdfFileUploadUtils", $AdfFileUploadUtils$$);
$AdfObject$$.$createSubclass$($AdfFileUploadUtils$$, $AdfFileUploadManager$$);
$AdfFileUploadUtils$$.$InitClass$ = function $$AdfFileUploadUtils$$$$InitClass$$() {
  this.$_DELAYED_UPLOAD_CONTENT_ID$ = "dc";
  this.$_DELAYED_UPLOAD_FORM_ID$ = "df";
  this.$_UPLOAD_FORM_ID$ = "f";
  this.$_MAXIMUM_FILES$ = "maximumFiles";
  this.$_MAX_CHUNK_SIZE$ = "_afrChunkSize";
  this.$_COOKIES$ = "_afrCookies";
  this.$_AUTHORIZATION_HEADER$ = "_afrAuthorization";
  this.$_STYLE_DISPLAY_NONE$ = "none";
  this.$_STYLE_DISPLAY_INLINE$ = "inline";
  this.$_STYLE_VISIBILITY_VISIBLE$ = "visible";
  this.$_STYLE_VISIBILITY_HIDDEN$ = "hidden";
  this.$_CSS_PROPERTY_DISPLAY$ = "display";
  this.$_CSS_PROPERTY_VISIBILITY$ = "visibility";
  this.$_CSS_PROPERTY_OVERFLOWY$ = "overflowY";
  this.$_MULTIPLE_UPLOAD_PARAM$ = "org.apache.myfaces.trinidad.UploadedFiles";
  this.$_MULTIPLE_UPLOAD_CHUNK_NUM_PARAM$ = "X-Trinidad-chunkNum";
  this.$_MULTIPLE_UPLOAD_CHUNK_COUNT_PARAM$ = "X-Trinidad-chunkCount";
  this.$_MULTIPLE_UPLOAD_CHUNK_FILENAME_PARAM$ = "X-Trinidad-chunkFilename";
  this.$_MULTIPART_ENCODING$ = "multipart/form-data";
  this.$_FORM_ENCODING$ = "application/x-www-form-urlencoded; charset\x3dUTF-8";
  this.$_MULTIPART_FRAME$ = "_afrInputFileFrame";
  this.$_MULTIPLE_UPLOAD_FILE_PROPERTY_PARAM$ = "org.apache.myfaces.trinidad.UploadedFiles.FileProperty"
};
$goog$exportSymbol$$("AdfFileUploadUtils.InitClass", $AdfFileUploadUtils$$.$InitClass$);
$AdfFileUploadUtils$$.prototype.Init = function $$AdfFileUploadUtils$$$$Init$($peer$$201$$, $component$$1870$$, $domElement$$613$$) {
  $AdfFileUploadUtils$$.$superclass$.Init.call(this);
  this.$_useFileApi$ = "undefined" != typeof File ? $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_FALSE$$;
  $AdfAgent$$.$AGENT$.slice() === $JSCompiler_alias_VOID$$ ? this.$_canSlice$ = $JSCompiler_alias_FALSE$$ : this.$_canSlice$ = $JSCompiler_alias_TRUE$$;
  this.$_useFormData$ = "undefined" != typeof FormData ? $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_FALSE$$;
  this.$_useDnD$ = !("draggable" in $domElement$$613$$) || !this.$_useFormData$ || !this.$_canSlice$ ? $JSCompiler_alias_FALSE$$ : $JSCompiler_alias_TRUE$$;
  this.$_maxChunkSize$ = $component$$1870$$.$getProperty$($AdfFileUploadUtils$$.$_MAX_CHUNK_SIZE$);
  this.$_maximumFiles$ = $component$$1870$$.$getProperty$($AdfFileUploadUtils$$.$_MAXIMUM_FILES$);
  this.$_cookies$ = $component$$1870$$.$getProperty$($AdfFileUploadUtils$$.$_COOKIES$);
  this.$_authHeader$ = $component$$1870$$.$getProperty$($AdfFileUploadUtils$$.$_AUTHORIZATION_HEADER$);
  this.$_peer$ = $peer$$201$$;
  this.$_clientId$ = $component$$1870$$.$getClientId$();
  this.$_uploadQueue$ = [];
  this.$_uploadResult$ = [];
  this.$_uploadRequestQueue$ = [];
  this.$_itemId$ = $JSCompiler_alias_NULL$$;
  this.$_percentCompleteItems$ = [];
  this.$_delayedResetInputFileNode$ = []
};
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.Init", {Init:$AdfFileUploadUtils$$.prototype.Init});
$AdfFileUploadUtils$$.prototype.addEventListener = function $$AdfFileUploadUtils$$$$addEventListener$($type$$184$$, $listener$$109$$, $instance$$36$$) {
  $type$$184$$ == $AdfFileUploadManager$$.$EVENT_TYPE_STATUS$ ? (this.$_eventStatusListeners$ || (this.$_eventStatusListeners$ = []), this.$_eventStatusListeners$.push({$listener$:$listener$$109$$, $instance$:$instance$$36$$})) : $type$$184$$ == $AdfFileUploadManager$$.$EVENT_TYPE_PROGRESS$ ? (this.$_eventProgressListeners$ || (this.$_eventProgressListeners$ = []), this.$_eventProgressListeners$.push({$listener$:$listener$$109$$, $instance$:$instance$$36$$})) : $type$$184$$ == $AdfFileUploadManager$$.$EVENT_TYPE_STATE$ && 
  (this.$_eventStateListeners$ || (this.$_eventStateListeners$ = []), this.$_eventStateListeners$.push({$listener$:$listener$$109$$, $instance$:$instance$$36$$}))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.addEventListener", {addEventListener:$AdfFileUploadUtils$$.prototype.addEventListener});
$AdfFileUploadUtils$$.prototype.$addFileToQueue$ = function $$AdfFileUploadUtils$$$$$addFileToQueue$$($file$$10$$) {
  var $agent$$723_fileNodeId_filesize$$4$$ = $AdfAgent$$.$AGENT$;
  if(this.$_useFormData$ && this.$_useFileApi$ && $file$$10$$ instanceof File) {
    var $addedFile_filename$$15$$ = $AdfFileUploadUtils$$.$_getFilename$($file$$10$$.name);
    $JSCompiler_StaticMethods__addFileToUploadQueue$$(this, $addedFile_filename$$15$$, $file$$10$$.size, $file$$10$$)
  }else {
    if($file$$10$$.nodeType != $JSCompiler_alias_NULL$$ && "INPUT" == $file$$10$$.nodeName) {
      $addedFile_filename$$15$$ = $JSCompiler_alias_FALSE$$;
      if(this.$_useFormData$ && this.$_useFileApi$) {
        for(var $files$$2$$ = $file$$10$$.files, $i$$643$$ = 0;$i$$643$$ < $files$$2$$.length;$i$$643$$++) {
          $addedFile_filename$$15$$ = $AdfFileUploadUtils$$.$_getFilename$($files$$2$$[$i$$643$$].name), $JSCompiler_StaticMethods__addFileToUploadQueue$$(this, $addedFile_filename$$15$$, $files$$2$$[$i$$643$$].size, $files$$2$$[$i$$643$$])
        }
        $agent$$723_fileNodeId_filesize$$4$$ = $agent$$723_fileNodeId_filesize$$4$$.getAttribute($file$$10$$, "id");
        $agent$$723_fileNodeId_filesize$$4$$ != $JSCompiler_alias_NULL$$ && ($agent$$723_fileNodeId_filesize$$4$$ == this.$_inputId$ || $agent$$723_fileNodeId_filesize$$4$$ == this.$_fallbackInputId$) && 1 < $files$$2$$.length ? $JSCompiler_StaticMethods__resetInputFileNode$$(this, $file$$10$$) : this.$_delayedResetInputFileNode$[$AdfFileUploadUtils$$.$_getFilename$($files$$2$$[0].name)] = $file$$10$$;
        $addedFile_filename$$15$$ = $JSCompiler_alias_TRUE$$
      }
      $addedFile_filename$$15$$ || ($addedFile_filename$$15$$ = $AdfFileUploadUtils$$.$_getFilename$($file$$10$$.value), $agent$$723_fileNodeId_filesize$$4$$ = $JSCompiler_alias_NULL$$, this.$_useFileApi$ && ($agent$$723_fileNodeId_filesize$$4$$ = $file$$10$$.files[0].size), $JSCompiler_StaticMethods__addFileToUploadQueue$$(this, $addedFile_filename$$15$$, $agent$$723_fileNodeId_filesize$$4$$, $file$$10$$), this.$_inputId$ != $JSCompiler_alias_NULL$$ ? (this.$_delayedContentIdCount$++, $JSCompiler_StaticMethods__copyAndHideInputNode$$(this, 
      $file$$10$$)) : this.$_delayedResetInputFileNode$[$AdfFileUploadUtils$$.$_getFilename$($file$$10$$.value)] = $file$$10$$)
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.addFileToQueue", {$addFileToQueue$:$AdfFileUploadUtils$$.prototype.$addFileToQueue$});
$AdfFileUploadUtils$$.prototype.$addFileUploadQueueItem$ = function $$AdfFileUploadUtils$$$$$addFileUploadQueueItem$$($fileItem$$8$$) {
  this.$_itemId$ = $fileItem$$8$$.$getItemId$();
  this.$_uploadQueue$.push($fileItem$$8$$);
  $JSCompiler_StaticMethods__refreshListFunctions$$(this)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.addFileUploadQueueItem", {$addFileUploadQueueItem$:$AdfFileUploadUtils$$.prototype.$addFileUploadQueueItem$});
$AdfFileUploadUtils$$.prototype.$addFileUploadResultItem$ = function $$AdfFileUploadUtils$$$$$addFileUploadResultItem$$($fileItem$$9$$) {
  this.$_itemId$ = $fileItem$$9$$.$getItemId$();
  this.$_uploadResult$.push($fileItem$$9$$);
  $JSCompiler_StaticMethods__refreshListFunctions$$(this)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.addFileUploadResultItem", {$addFileUploadResultItem$:$AdfFileUploadUtils$$.prototype.$addFileUploadResultItem$});
$AdfFileUploadUtils$$.prototype.$cancelAllUploads$ = function $$AdfFileUploadUtils$$$$$cancelAllUploads$$($force$$4$$) {
  this.$_stopUpload$ = $JSCompiler_alias_TRUE$$;
  this.$cancelCurrentUpload$($force$$4$$);
  this.$_uploadRequestQueue$ = []
};
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.cancelAllUploads", {$cancelAllUploads$:$AdfFileUploadUtils$$.prototype.$cancelAllUploads$});
$AdfFileUploadUtils$$.prototype.$cancelCurrentUpload$ = function $$AdfFileUploadUtils$$$$$cancelCurrentUpload$$($fileItem$$10_force$$5$$) {
  this.$_cancelCurrentUploadAttempt$ = $JSCompiler_alias_TRUE$$;
  var $stopUpload$$ = this.$_stopUpload$;
  this.$_useFileApi$ ? this.$_currentRequest$.$getAdfXMLRequest$() != $JSCompiler_alias_NULL$$ && this.$_currentRequest$.$getAdfXMLRequest$().abort() : $AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$ ? $AdfPage$$.$PAGE$.$getDomWindow$().document.execCommand("Stop") : $AdfPage$$.$PAGE$.$getDomWindow$().stop();
  if($fileItem$$10_force$$5$$) {
    $fileItem$$10_force$$5$$ = $JSCompiler_alias_NULL$$;
    if(this.$_currentRequestItemId$ != $JSCompiler_alias_NULL$$) {
      var $i$$644$$;
      for($i$$644$$ = 0;$i$$644$$ < this.$_uploadQueue$.length;$i$$644$$++) {
        if(this.$_uploadQueue$[$i$$644$$].$getItemId$() == this.$_currentRequestItemId$) {
          $fileItem$$10_force$$5$$ = this.$_uploadQueue$[$i$$644$$];
          break
        }
      }
    }
    $stopUpload$$ ? $JSCompiler_StaticMethods__notifyListeners$$(this, $AdfFileUploadManager$$.$EVENT_TYPE_STATUS$, new $AdfFileUploadEvent$$($JSCompiler_StaticMethods__getComponent$$(this), $AdfFileUploadManager$$.$EVENT_TYPE_STATUS$, $AdfFileUploadManager$$.$EVENT_SOURCE_UPLOAD$, $AdfFileUploadManager$$.$OPERATION_CANCEL_ALL$, $fileItem$$10_force$$5$$, 100, $AdfFileUploadManager$$.$EVENT_STATUS_COMPLETE$)) : $JSCompiler_StaticMethods__notifyListeners$$(this, $AdfFileUploadManager$$.$EVENT_TYPE_STATUS$, 
    new $AdfFileUploadEvent$$($JSCompiler_StaticMethods__getComponent$$(this), $AdfFileUploadManager$$.$EVENT_TYPE_STATUS$, $AdfFileUploadManager$$.$EVENT_SOURCE_UPLOAD$, $AdfFileUploadManager$$.$OPERATION_CANCEL$, $fileItem$$10_force$$5$$, 100, $AdfFileUploadManager$$.$EVENT_STATUS_COMPLETE$));
    $JSCompiler_StaticMethods__resetUpload$$(this, $JSCompiler_alias_TRUE$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.cancelCurrentUpload", {$cancelCurrentUpload$:$AdfFileUploadUtils$$.prototype.$cancelCurrentUpload$});
$AdfFileUploadUtils$$.prototype.$deleteFileFromQueue$ = function $$AdfFileUploadUtils$$$$$deleteFileFromQueue$$($filename$$16$$) {
  this.$_removeFileFromUploadQueue$($filename$$16$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.deleteFileFromQueue", {$deleteFileFromQueue$:$AdfFileUploadUtils$$.prototype.$deleteFileFromQueue$});
$AdfFileUploadUtils$$.prototype.$deleteUploadedFile$ = function $$AdfFileUploadUtils$$$$$deleteUploadedFile$$($filename$$17$$) {
  var $clientId$$inline_4896$$ = this.$_clientId$, $params$$inline_4897$$ = [];
  $params$$inline_4897$$[$AdfFileUploadUtils$$.$_MULTIPLE_UPLOAD_PARAM$] = "multipleDelete";
  $params$$inline_4897$$.itemName = $clientId$$inline_4896$$;
  $params$$inline_4897$$.fileName = $filename$$17$$;
  this.$_currentRequestItemId$ = $JSCompiler_StaticMethods__getItem$$(this, $filename$$17$$).$getItemId$();
  this.$_currentRequestOperation$ = $AdfFileUploadManager$$.$OPERATION_DELETE$;
  $JSCompiler_StaticMethods__sendUploadRequest$$(this, $JSCompiler_alias_NULL$$, $JSCompiler_alias_NULL$$, $params$$inline_4897$$, $JSCompiler_alias_NULL$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.deleteUploadedFile", {$deleteUploadedFile$:$AdfFileUploadUtils$$.prototype.$deleteUploadedFile$});
$AdfFileUploadUtils$$.prototype.$getFileUploadQueue$ = function $$AdfFileUploadUtils$$$$$getFileUploadQueue$$() {
  $JSCompiler_StaticMethods__refreshListFunctions$$(this);
  return this.$_uploadQueueFunc$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.getFileUploadQueue", {$getFileUploadQueue$:$AdfFileUploadUtils$$.prototype.$getFileUploadQueue$});
$AdfFileUploadUtils$$.prototype.$getFileUploadResults$ = function $$AdfFileUploadUtils$$$$$getFileUploadResults$$() {
  $JSCompiler_StaticMethods__refreshListFunctions$$(this);
  return this.$_uploadResultFunc$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.getFileUploadResults", {$getFileUploadResults$:$AdfFileUploadUtils$$.prototype.$getFileUploadResults$});
$AdfFileUploadUtils$$.prototype.$isBusy$ = $JSCompiler_get$$("$_currentlyUploading$");
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.isBusy", {$isBusy$:$AdfFileUploadUtils$$.prototype.$isBusy$});
$AdfFileUploadUtils$$.prototype.load = function $$AdfFileUploadUtils$$$$load$($inputNode$$1_settings$$1$$) {
  var $agent$$725$$ = $AdfAgent$$.$AGENT$, $peer$$202$$ = this.$_peer$, $component$$1871$$ = $JSCompiler_StaticMethods__getComponent$$(this);
  if(this.$_uploadSettings$ = $inputNode$$1_settings$$1$$) {
    this.$_inputId$ = this.$_uploadSettings$.$inputId$, this.$_dropAreaId$ = this.$_uploadSettings$.$dropAreaId$, this.$_fallbackInputId$ = this.$_uploadSettings$.$fallbackInputId$
  }
  $JSCompiler_StaticMethods__initNonAppletMode$$(this);
  this.$_domChangeFunc$ || (this.$_domChangeFunc$ = function $this$$_domChangeFunc$$($inputNode$$1_settings$$1$$) {
    $peer$$202$$.$HandleDomChange$($component$$1871$$, $inputNode$$1_settings$$1$$)
  });
  this.$_inputId$ && (this.$_useFormData$ ? ($inputNode$$1_settings$$1$$ = $agent$$725$$.getElementById(this.$_inputId$), $agent$$725$$.$addBubbleEventListener$($inputNode$$1_settings$$1$$, "change", this.$_domChangeFunc$)) : $JSCompiler_StaticMethods__initFallbackMode$$(this, this.$_inputId$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.load", {load:$AdfFileUploadUtils$$.prototype.load});
$AdfFileUploadUtils$$.prototype.$unload$ = $JSCompiler_emptyFn$$();
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.unload", {$unload$:$AdfFileUploadUtils$$.prototype.$unload$});
$AdfFileUploadUtils$$.prototype.removeEventListener = function $$AdfFileUploadUtils$$$$removeEventListener$($i$$645_type$$185$$, $listener$$110$$, $instance$$37$$) {
  var $listenerArray$$6$$ = $JSCompiler_alias_NULL$$;
  $i$$645_type$$185$$ == $AdfFileUploadManager$$.$EVENT_TYPE_STATUS$ ? $listenerArray$$6$$ = this.$_eventStatusListeners$ : $i$$645_type$$185$$ == $AdfFileUploadManager$$.$EVENT_TYPE_PROGRESS$ ? $listenerArray$$6$$ = this.$_eventProgressListeners$ : $i$$645_type$$185$$ == $AdfFileUploadManager$$.$EVENT_TYPE_STATE$ && ($listenerArray$$6$$ = this.$_eventStateListeners$);
  if($listenerArray$$6$$) {
    for($i$$645_type$$185$$ = $listenerArray$$6$$.length - 1;0 <= $i$$645_type$$185$$;$i$$645_type$$185$$--) {
      $listenerArray$$6$$[$i$$645_type$$185$$].$listener$ === $listener$$110$$ && $listenerArray$$6$$[$i$$645_type$$185$$].$instance$ === $instance$$37$$ && $listenerArray$$6$$.splice($i$$645_type$$185$$, 1)
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.removeEventListener", {removeEventListener:$AdfFileUploadUtils$$.prototype.removeEventListener});
$AdfFileUploadUtils$$.prototype.$uploadFileFromQueue$ = function $$AdfFileUploadUtils$$$$$uploadFileFromQueue$$($filename$$18$$) {
  this.$_currentlyUploading$ ? this.$_uploadRequestQueue$.push($filename$$18$$) : this.$_uploadFileInQueue$($filename$$18$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.uploadFileFromQueue", {$uploadFileFromQueue$:$AdfFileUploadUtils$$.prototype.$uploadFileFromQueue$});
$AdfFileUploadUtils$$.prototype.$setFileProperty$ = function $$AdfFileUploadUtils$$$$$setFileProperty$$($filename$$19$$, $propertyName$$53$$, $propertyValue$$15$$) {
  for(var $i$$646$$ = 0;$i$$646$$ < this.$_uploadQueue$.length;$i$$646$$++) {
    if($filename$$19$$ == this.$_uploadQueue$[$i$$646$$].$getFilename$()) {
      this.$_uploadQueue$[$i$$646$$].setProperty($propertyName$$53$$, $propertyValue$$15$$);
      break
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.setFileProperty", {$setFileProperty$:$AdfFileUploadUtils$$.prototype.$setFileProperty$});
$AdfFileUploadUtils$$.prototype.$uploadAllFilesFromQueue$ = function $$AdfFileUploadUtils$$$$$uploadAllFilesFromQueue$$() {
  this.$_currentlyUploading$ || this.$_uploadFileInQueue$()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfFileUploadUtils.prototype.uploadAllFilesFromQueue", {$uploadAllFilesFromQueue$:$AdfFileUploadUtils$$.prototype.$uploadAllFilesFromQueue$});
function $JSCompiler_StaticMethods__addFileToUploadQueue$$($JSCompiler_StaticMethods__addFileToUploadQueue$self$$, $filename$$20$$, $fileItem$$12_filesize$$5$$, $data$$49$$) {
  var $peer$$203$$ = $JSCompiler_StaticMethods__addFileToUploadQueue$self$$.$_peer$, $component$$1872$$ = $JSCompiler_StaticMethods__getComponent$$($JSCompiler_StaticMethods__addFileToUploadQueue$self$$), $detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$;
  a: {
    var $peer$$inline_4901_summary$$inline_4906$$ = $JSCompiler_StaticMethods__addFileToUploadQueue$self$$.$_peer$, $component$$inline_4902$$ = $JSCompiler_StaticMethods__getComponent$$($JSCompiler_StaticMethods__addFileToUploadQueue$self$$);
    $detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$();
    for(var $facesMessage$$inline_4904_i$$inline_4905$$ = $JSCompiler_alias_NULL$$, $facesMessage$$inline_4904_i$$inline_4905$$ = 0;$facesMessage$$inline_4904_i$$inline_4905$$ < $JSCompiler_StaticMethods__addFileToUploadQueue$self$$.$_uploadQueue$.length;$facesMessage$$inline_4904_i$$inline_4905$$++) {
      if($JSCompiler_StaticMethods__addFileToUploadQueue$self$$.$_uploadQueue$[$facesMessage$$inline_4904_i$$inline_4905$$].$getFilename$() == $filename$$20$$) {
        $peer$$inline_4901_summary$$inline_4906$$ = $detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$.$getTranslatedString$("af_inputFile.MSG_UPLOAD_DUPLICATE_FILENAME_ERROR");
        $detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$ = $detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$.$getTranslatedString$("af_inputFile.MSG_UPLOAD_DUPLICATE_FILENAME_ERROR_DETAIL");
        $facesMessage$$inline_4904_i$$inline_4905$$ = new $AdfFacesMessage$$($AdfFacesMessage$$.$TYPE_ERROR$, $peer$$inline_4901_summary$$inline_4906$$, $detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$);
        $JSCompiler_StaticMethods__notifyListeners$$($JSCompiler_StaticMethods__addFileToUploadQueue$self$$, $AdfFileUploadManager$$.$EVENT_TYPE_STATE$, new $AdfFileUploadEvent$$($JSCompiler_StaticMethods__getComponent$$($JSCompiler_StaticMethods__addFileToUploadQueue$self$$), $AdfFileUploadManager$$.$EVENT_TYPE_STATE$, $AdfFileUploadManager$$.$EVENT_SOURCE_QUEUE$, $AdfFileUploadManager$$.$OPERATION_ADDED$, $JSCompiler_alias_NULL$$, 0, $AdfFileUploadManager$$.$EVENT_STATUS_FAILED$, $facesMessage$$inline_4904_i$$inline_4905$$));
        $detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$ = $JSCompiler_alias_FALSE$$;
        break a
      }
    }
    for($facesMessage$$inline_4904_i$$inline_4905$$ = 0;$facesMessage$$inline_4904_i$$inline_4905$$ < $JSCompiler_StaticMethods__addFileToUploadQueue$self$$.$_uploadResult$.length;$facesMessage$$inline_4904_i$$inline_4905$$++) {
      if($JSCompiler_StaticMethods__addFileToUploadQueue$self$$.$_uploadResult$[$facesMessage$$inline_4904_i$$inline_4905$$].$getFilename$() == $filename$$20$$) {
        $peer$$inline_4901_summary$$inline_4906$$ = $detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$.$getTranslatedString$("af_inputFile.MSG_UPLOAD_DUPLICATE_FILENAME_ERROR");
        $detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$ = $detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$.$getTranslatedString$("af_inputFile.MSG_UPLOAD_DUPLICATE_FILENAME_ERROR_DETAIL");
        $facesMessage$$inline_4904_i$$inline_4905$$ = new $AdfFacesMessage$$($AdfFacesMessage$$.$TYPE_ERROR$, $peer$$inline_4901_summary$$inline_4906$$, $detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$);
        $JSCompiler_StaticMethods__notifyListeners$$($JSCompiler_StaticMethods__addFileToUploadQueue$self$$, $AdfFileUploadManager$$.$EVENT_TYPE_STATE$, new $AdfFileUploadEvent$$($JSCompiler_StaticMethods__getComponent$$($JSCompiler_StaticMethods__addFileToUploadQueue$self$$), $AdfFileUploadManager$$.$EVENT_TYPE_STATE$, $AdfFileUploadManager$$.$EVENT_SOURCE_QUEUE$, $AdfFileUploadManager$$.$OPERATION_ADDED$, $JSCompiler_alias_NULL$$, 0, $AdfFileUploadManager$$.$EVENT_STATUS_FAILED$, $facesMessage$$inline_4904_i$$inline_4905$$));
        $detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$ = $JSCompiler_alias_FALSE$$;
        break a
      }
    }
    $JSCompiler_StaticMethods__handleFileChange$$($peer$$inline_4901_summary$$inline_4906$$, $component$$inline_4902$$, $filename$$20$$);
    $detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$ = $JSCompiler_alias_TRUE$$
  }
  if($detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$ && $component$$1872$$.getValid()) {
    if($fileItem$$12_filesize$$5$$ != $JSCompiler_alias_NULL$$ && ($detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$ = $JSCompiler_StaticMethods__validateFilesize$$($JSCompiler_StaticMethods__addFileToUploadQueue$self$$, $fileItem$$12_filesize$$5$$), !$detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$ || !$component$$1872$$.getValid())) {
      return
    }
    $detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$ = $JSCompiler_alias_VOID$$;
    $detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$ == $JSCompiler_alias_NULL$$ ? ($JSCompiler_StaticMethods__addFileToUploadQueue$self$$.$_itemId$ == $JSCompiler_alias_NULL$$ ? $JSCompiler_StaticMethods__addFileToUploadQueue$self$$.$_itemId$ = 0 : $JSCompiler_StaticMethods__addFileToUploadQueue$self$$.$_itemId$++, $detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$ = $JSCompiler_StaticMethods__addFileToUploadQueue$self$$.$_itemId$) : $JSCompiler_StaticMethods__addFileToUploadQueue$self$$.$_itemId$ = 
    $JSCompiler_alias_VOID$$;
    $fileItem$$12_filesize$$5$$ = new $AdfFileUploadManager$$.$FileItem$($detail$$inline_4907_fileItemId_laf$$inline_4903_valid$$1$$, $filename$$20$$, $fileItem$$12_filesize$$5$$, $data$$49$$);
    $JSCompiler_StaticMethods__addFileToUploadQueue$self$$.$_uploadQueue$.push($fileItem$$12_filesize$$5$$);
    $JSCompiler_StaticMethods__refreshListFunctions$$($JSCompiler_StaticMethods__addFileToUploadQueue$self$$);
    $JSCompiler_StaticMethods__notifyListeners$$($JSCompiler_StaticMethods__addFileToUploadQueue$self$$, $AdfFileUploadManager$$.$EVENT_TYPE_STATE$, new $AdfFileUploadEvent$$($JSCompiler_StaticMethods__getComponent$$($JSCompiler_StaticMethods__addFileToUploadQueue$self$$), $AdfFileUploadManager$$.$EVENT_TYPE_STATE$, $AdfFileUploadManager$$.$EVENT_SOURCE_QUEUE$, $AdfFileUploadManager$$.$OPERATION_ADDED$, $fileItem$$12_filesize$$5$$, 100, $AdfFileUploadManager$$.$EVENT_STATUS_COMPLETE$));
    "auto" == $peer$$203$$.$_submitType$ && ($JSCompiler_StaticMethods__addFileToUploadQueue$self$$.$_currentlyUploading$ || $JSCompiler_StaticMethods__uploadFilesInQueue$$($peer$$203$$, $component$$1872$$, $filename$$20$$))
  }
}
$JSCompiler_prototypeAlias$$ = $AdfFileUploadUtils$$.prototype;
$JSCompiler_prototypeAlias$$.$_addFileItemToUploadResultList$ = function $$JSCompiler_prototypeAlias$$$$_addFileItemToUploadResultList$$($fileItem$$13$$) {
  this.$_getUploadResultItem$($fileItem$$13$$.$getItemId$()) || (this.$_uploadResult$.push($fileItem$$13$$), $JSCompiler_StaticMethods__refreshListFunctions$$(this), $JSCompiler_StaticMethods__notifyListeners$$(this, $AdfFileUploadManager$$.$EVENT_TYPE_STATUS$, new $AdfFileUploadEvent$$($JSCompiler_StaticMethods__getComponent$$(this), $AdfFileUploadManager$$.$EVENT_TYPE_STATUS$, $AdfFileUploadManager$$.$EVENT_SOURCE_UPLOAD$, $AdfFileUploadManager$$.$OPERATION_UPLOAD$, $fileItem$$13$$, 100, $AdfFileUploadManager$$.$EVENT_STATUS_COMPLETE$)), 
  $fileItem$$13$$.$_success$ && $JSCompiler_StaticMethods__notifyListeners$$(this, $AdfFileUploadManager$$.$EVENT_TYPE_PROGRESS$, new $AdfFileUploadEvent$$($JSCompiler_StaticMethods__getComponent$$(this), $AdfFileUploadManager$$.$EVENT_TYPE_PROGRESS$, $AdfFileUploadManager$$.$EVENT_SOURCE_UPLOAD$, $AdfFileUploadManager$$.$OPERATION_UPLOAD$, $fileItem$$13$$, 100, $AdfFileUploadManager$$.$EVENT_STATUS_COMPLETE$)))
};
function $JSCompiler_StaticMethods__copyAndHideInputNode$$($JSCompiler_StaticMethods__copyAndHideInputNode$self$$, $inputNode$$2$$) {
  var $agent$$726$$ = $AdfAgent$$.$AGENT$, $clientId$$462$$ = $JSCompiler_StaticMethods__copyAndHideInputNode$self$$.$_clientId$;
  $JSCompiler_StaticMethods__getComponent$$($JSCompiler_StaticMethods__copyAndHideInputNode$self$$);
  var $inputId$$2$$ = $agent$$726$$.getAttribute($inputNode$$2$$, "id"), $form$$21_formId$$16$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$462$$, $AdfFileUploadUtils$$.$_DELAYED_UPLOAD_FORM_ID$) + $JSCompiler_StaticMethods__copyAndHideInputNode$self$$.$_delayedContentIdCount$, $form$$21_formId$$16$$ = $AdfFileUploadUtils$$.$_getIframeTransferForm$($form$$21_formId$$16$$), $iframeDoc$$11_newInputNode$$ = $AdfFileUploadUtils$$.$_getIframeDoc$();
  $agent$$726$$.$removeBubbleEventListener$($inputNode$$2$$, "change", $JSCompiler_StaticMethods__copyAndHideInputNode$self$$.$_domChangeFunc$);
  for(var $iframeDoc$$11_newInputNode$$ = $iframeDoc$$11_newInputNode$$.createElement($inputNode$$2$$.nodeName), $i$$647_newInputNodeId$$ = 0;$i$$647_newInputNodeId$$ < $inputNode$$2$$.attributes.length;$i$$647_newInputNodeId$$++) {
    var $attribute$$6$$ = $inputNode$$2$$.attributes[$i$$647_newInputNodeId$$];
    "value" != $attribute$$6$$.name && $agent$$726$$.hasAttribute($inputNode$$2$$, $attribute$$6$$) && $agent$$726$$.setAttribute($iframeDoc$$11_newInputNode$$, $attribute$$6$$.name, $attribute$$6$$.value)
  }
  $i$$647_newInputNodeId$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$462$$, $AdfFileUploadUtils$$.$_DELAYED_UPLOAD_CONTENT_ID$) + $JSCompiler_StaticMethods__copyAndHideInputNode$self$$.$_delayedContentIdCount$;
  $agent$$726$$.setAttribute($inputNode$$2$$, "id", $i$$647_newInputNodeId$$);
  $agent$$726$$.setAttribute($iframeDoc$$11_newInputNode$$, "id", $inputId$$2$$);
  $agent$$726$$.setAttribute($iframeDoc$$11_newInputNode$$, "name", $clientId$$462$$);
  $form$$21_formId$$16$$.appendChild($iframeDoc$$11_newInputNode$$);
  $AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$ && ($iframeDoc$$11_newInputNode$$.contentEditable = "false");
  $agent$$726$$.$addBubbleEventListener$($iframeDoc$$11_newInputNode$$, "change", $JSCompiler_StaticMethods__copyAndHideInputNode$self$$.$_domChangeFunc$);
  $agent$$726$$.$elementsAdded$($inputNode$$2$$);
  $agent$$726$$.$elementsAdded$($iframeDoc$$11_newInputNode$$);
  $inputNode$$2$$.style.visibility = "hidden";
  $inputNode$$2$$.style.position = "absolute";
  return $iframeDoc$$11_newInputNode$$
}
function $JSCompiler_StaticMethods__getDataTransferService$$($JSCompiler_StaticMethods__getDataTransferService$self$$) {
  $JSCompiler_StaticMethods__getDataTransferService$self$$.$_dts$ == $JSCompiler_alias_NULL$$ && ($JSCompiler_StaticMethods__getDataTransferService$self$$.$_dts$ = $AdfPage$$.$PAGE$.$getDataTransferService$($JSCompiler_alias_FALSE$$, $JSCompiler_alias_FALSE$$, $JSCompiler_alias_TRUE$$));
  return $JSCompiler_StaticMethods__getDataTransferService$self$$.$_dts$
}
function $JSCompiler_StaticMethods__getComponent$$($JSCompiler_StaticMethods__getComponent$self$$) {
  var $component$$1874$$ = $JSCompiler_StaticMethods__getComponent$self$$.$_peer$.$getComponent$();
  return $component$$1874$$ != $JSCompiler_alias_NULL$$ ? $component$$1874$$ : $AdfPage$$.$PAGE$.$findComponent$($JSCompiler_StaticMethods__getComponent$self$$.$_clientId$)
}
function $JSCompiler_StaticMethods__getItem$$($JSCompiler_StaticMethods__getItem$self$$, $filename$$22$$) {
  for(var $i$$648$$ = 0;$i$$648$$ < $JSCompiler_StaticMethods__getItem$self$$.$_uploadQueue$.length;$i$$648$$++) {
    if($JSCompiler_StaticMethods__getItem$self$$.$_uploadQueue$[$i$$648$$].$getFilename$() == $filename$$22$$) {
      return $JSCompiler_StaticMethods__getItem$self$$.$_uploadQueue$[$i$$648$$]
    }
  }
  for($i$$648$$ = 0;$i$$648$$ < $JSCompiler_StaticMethods__getItem$self$$.$_uploadResult$.length;$i$$648$$++) {
    if($JSCompiler_StaticMethods__getItem$self$$.$_uploadResult$[$i$$648$$].$getFilename$() == $filename$$22$$) {
      return $JSCompiler_StaticMethods__getItem$self$$.$_uploadResult$[$i$$648$$]
    }
  }
  return $JSCompiler_alias_NULL$$
}
function $JSCompiler_StaticMethods__getTotalRows$$($JSCompiler_StaticMethods__getTotalRows$self$$) {
  return $JSCompiler_StaticMethods__getTotalRows$self$$.$_uploadQueue$.length + $JSCompiler_StaticMethods__getTotalRows$self$$.$_uploadResult$.length
}
$JSCompiler_prototypeAlias$$.$_getUploadResultItem$ = function $$JSCompiler_prototypeAlias$$$$_getUploadResultItem$$($itemId$$39$$) {
  for(var $i$$649$$ = 0;$i$$649$$ < this.$_uploadResult$.length;$i$$649$$++) {
    if(this.$_uploadResult$[$i$$649$$].$getItemId$() == $itemId$$39$$) {
      return this.$_uploadResult$[$i$$649$$]
    }
  }
  return $JSCompiler_alias_NULL$$
};
$JSCompiler_prototypeAlias$$.$_handleDomChange$ = function $$JSCompiler_prototypeAlias$$$$_handleDomChange$$() {
  var $agent$$727_files$$3$$ = $AdfAgent$$.$AGENT$, $clientId$$464_i$$650_inputId$$3_inputNode$$3$$ = this.$_clientId$;
  if(this.$_inputId$) {
    if($clientId$$464_i$$650_inputId$$3_inputNode$$3$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$464_i$$650_inputId$$3_inputNode$$3$$, this.$_inputId$), $clientId$$464_i$$650_inputId$$3_inputNode$$3$$ = $agent$$727_files$$3$$.getElementById($clientId$$464_i$$650_inputId$$3_inputNode$$3$$), this.$_useFormData$ && this.$_useFileApi$) {
      $agent$$727_files$$3$$ = $clientId$$464_i$$650_inputId$$3_inputNode$$3$$.files;
      for($clientId$$464_i$$650_inputId$$3_inputNode$$3$$ = 0;$clientId$$464_i$$650_inputId$$3_inputNode$$3$$ < $agent$$727_files$$3$$.length;$clientId$$464_i$$650_inputId$$3_inputNode$$3$$++) {
        this.$addFileToQueue$($agent$$727_files$$3$$[$clientId$$464_i$$650_inputId$$3_inputNode$$3$$])
      }
    }else {
      $clientId$$464_i$$650_inputId$$3_inputNode$$3$$ = $agent$$727_files$$3$$.getElementById(this.$_inputId$), this.$addFileToQueue$($clientId$$464_i$$650_inputId$$3_inputNode$$3$$)
    }
  }
};
function $JSCompiler_StaticMethods__initFallbackMode$$($JSCompiler_StaticMethods__initFallbackMode$self$$, $inputId$$4$$) {
  var $agent$$729$$ = $AdfAgent$$.$AGENT$, $iframe$$4$$ = $agent$$729$$.getElementById($AdfFileUploadUtils$$.$_MULTIPART_FRAME$);
  if(!$iframe$$4$$) {
    var $inputNode$$4$$ = $agent$$729$$.getElementById($inputId$$4$$), $iframe$$4$$ = $AdfPage$$.$PAGE$.$getDomDocument$().createElement("iframe");
    $agent$$729$$.setAttribute($iframe$$4$$, "name", $AdfFileUploadUtils$$.$_MULTIPART_FRAME$);
    $agent$$729$$.setAttribute($iframe$$4$$, "id", $AdfFileUploadUtils$$.$_MULTIPART_FRAME$);
    $agent$$729$$.setAttribute($iframe$$4$$, "scrolling", "No");
    $agent$$729$$.setAttribute($iframe$$4$$, "frameborder", 0);
    $agent$$729$$.setAttribute($iframe$$4$$, "hspace", 0);
    $agent$$729$$.setAttribute($iframe$$4$$, "vspace", 0);
    var $frameStyle$$1$$ = $iframe$$4$$.style;
    $frameStyle$$1$$.width = $inputNode$$4$$.offsetWidth + "px";
    $frameStyle$$1$$.height = $inputNode$$4$$.offsetHeight + "px";
    $frameStyle$$1$$.position = "relative";
    $inputNode$$4$$.parentNode.appendChild($iframe$$4$$);
    $agent$$729$$.$elementsAdded$($iframe$$4$$);
    $JSCompiler_StaticMethods__initFallbackMode$self$$.$_iframeInterval$ = setInterval(function() {
      var $inputId$$4$$ = $AdfFileUploadUtils$$.$_getIframeDoc$();
      if("complete" == $inputId$$4$$.readyState) {
        var $iframe$$4$$ = $inputId$$4$$.getElementsByTagName("body");
        $iframe$$4$$ != $JSCompiler_alias_NULL$$ && ($iframe$$4$$[0].style.margin = "0px", $iframe$$4$$[0].style.padding = "0px", $iframe$$4$$[0].style.border = "none", $iframe$$4$$[0].style.position = "relative", $JSCompiler_StaticMethods__initFallbackMode$self$$.$_delayedContentIdCount$ = 0, $agent$$729$$.$addBubbleEventListener$($inputId$$4$$, "keypress", function($inputId$$4$$) {
          var $iframe$$4$$ = $agent$$729$$.$getComponentEvent$(component, $inputId$$4$$, $JSCompiler_alias_NULL$$);
          $JSCompiler_StaticMethods__initFallbackMode$self$$.$HandleComponentKeyPress$($iframe$$4$$);
          $agent$$729$$.$eatEvent$($inputId$$4$$)
        }), $inputNode$$4$$ = $JSCompiler_StaticMethods__copyAndHideInputNode$$($JSCompiler_StaticMethods__initFallbackMode$self$$, $inputNode$$4$$), clearInterval($JSCompiler_StaticMethods__initFallbackMode$self$$.$_iframeInterval$), $JSCompiler_StaticMethods__notifyListeners$$($JSCompiler_StaticMethods__initFallbackMode$self$$, $AdfFileUploadManager$$.$EVENT_TYPE_STATE$, new $AdfFileUploadEvent$$($JSCompiler_StaticMethods__getComponent$$($JSCompiler_StaticMethods__initFallbackMode$self$$), $AdfFileUploadManager$$.$EVENT_TYPE_STATE$, 
        $AdfFileUploadManager$$.$EVENT_SOURCE_FALLBACK$, $AdfFileUploadManager$$.$OPERATION_LOAD$, $JSCompiler_alias_NULL$$, 100, $AdfFileUploadManager$$.$EVENT_STATUS_COMPLETE$)))
      }
    }, 500)
  }
}
function $JSCompiler_StaticMethods__initNonAppletMode$$($JSCompiler_StaticMethods__initNonAppletMode$self$$) {
  var $agent$$730$$ = $AdfAgent$$.$AGENT$, $peer$$204$$ = $JSCompiler_StaticMethods__initNonAppletMode$self$$.$_peer$, $component$$1876$$ = $JSCompiler_StaticMethods__getComponent$$($JSCompiler_StaticMethods__initNonAppletMode$self$$);
  $JSCompiler_StaticMethods__initNonAppletMode$self$$.$_uploadSettings$ && ($JSCompiler_StaticMethods__initNonAppletMode$self$$.$_inputId$ = $JSCompiler_StaticMethods__initNonAppletMode$self$$.$_uploadSettings$.$inputId$, $JSCompiler_StaticMethods__initNonAppletMode$self$$.$_dropAreaId$ = $JSCompiler_StaticMethods__initNonAppletMode$self$$.$_uploadSettings$.$dropAreaId$);
  if($JSCompiler_StaticMethods__initNonAppletMode$self$$.$_useDnD$ && $JSCompiler_StaticMethods__initNonAppletMode$self$$.$_dropAreaId$) {
    $JSCompiler_StaticMethods__initNonAppletMode$self$$.$_domDropFunc$ || ($JSCompiler_StaticMethods__initNonAppletMode$self$$.$_domDropFunc$ = function $$JSCompiler_StaticMethods__initNonAppletMode$self$$$$_domDropFunc$$($JSCompiler_StaticMethods__initNonAppletMode$self$$) {
      $peer$$204$$.$HandleDomDrop$($component$$1876$$, $JSCompiler_StaticMethods__initNonAppletMode$self$$)
    });
    var $dropArea$$3$$ = $agent$$730$$.getElementById($JSCompiler_StaticMethods__initNonAppletMode$self$$.$_dropAreaId$);
    $agent$$730$$.$addBubbleEventListener$($dropArea$$3$$, "drop", $JSCompiler_StaticMethods__initNonAppletMode$self$$.$_domDropFunc$);
    $dropArea$$3$$.style.display = "inline"
  }else {
    !$JSCompiler_StaticMethods__initNonAppletMode$self$$.$_useDnD$ && $JSCompiler_StaticMethods__initNonAppletMode$self$$.$_dropAreaId$ && ($AdfAgent$$.$AGENT$.getElementById($JSCompiler_StaticMethods__initNonAppletMode$self$$.$_dropAreaId$).style.display = "none", $JSCompiler_StaticMethods__initNonAppletMode$self$$.$_fallbackInputId$ && ($JSCompiler_StaticMethods__initNonAppletMode$self$$.$_inputId$ = $JSCompiler_StaticMethods__initNonAppletMode$self$$.$_fallbackInputId$, $JSCompiler_StaticMethods__initNonAppletMode$self$$.$_fallbackInput$ || 
    ($JSCompiler_StaticMethods__initNonAppletMode$self$$.$_fallbackInput$ = $agent$$730$$.getElementById($JSCompiler_StaticMethods__initNonAppletMode$self$$.$_inputId$), $JSCompiler_StaticMethods__initNonAppletMode$self$$.$_fallbackInput$.style.display = "inline", $JSCompiler_StaticMethods__initFallbackMode$$($JSCompiler_StaticMethods__initNonAppletMode$self$$, $JSCompiler_StaticMethods__initNonAppletMode$self$$.$_inputId$))))
  }
}
function $JSCompiler_StaticMethods__notifyListeners$$($JSCompiler_StaticMethods__notifyListeners$self$$, $i$$651_type$$186$$, $data$$50$$) {
  if($i$$651_type$$186$$ == $AdfFileUploadManager$$.$EVENT_TYPE_STATUS$) {
    if($JSCompiler_StaticMethods__notifyListeners$self$$.$_eventStatusListeners$) {
      for($i$$651_type$$186$$ = 0;$i$$651_type$$186$$ < $JSCompiler_StaticMethods__notifyListeners$self$$.$_eventStatusListeners$.length;$i$$651_type$$186$$++) {
        var $listener$$111$$ = $JSCompiler_StaticMethods__notifyListeners$self$$.$_eventStatusListeners$[$i$$651_type$$186$$].$listener$, $instance$$39$$ = $JSCompiler_StaticMethods__notifyListeners$self$$.$_eventStatusListeners$[$i$$651_type$$186$$].$instance$;
        $instance$$39$$ != $JSCompiler_alias_NULL$$ ? $listener$$111$$.call($instance$$39$$, $data$$50$$) : $listener$$111$$.call($JSCompiler_StaticMethods__notifyListeners$self$$, $data$$50$$)
      }
    }
  }else {
    if($i$$651_type$$186$$ == $AdfFileUploadManager$$.$EVENT_TYPE_PROGRESS$) {
      if($JSCompiler_StaticMethods__notifyListeners$self$$.$_eventProgressListeners$) {
        if($data$$50$$.$getPercentComplete$() != $JSCompiler_alias_NULL$$ && 100 == Number($data$$50$$.$getPercentComplete$())) {
          if($JSCompiler_StaticMethods__notifyListeners$self$$.$_percentCompleteItems$[$data$$50$$.$getFileItem$().$getItemId$()]) {
            return
          }
          $JSCompiler_StaticMethods__notifyListeners$self$$.$_percentCompleteItems$[$data$$50$$.$getFileItem$().$getItemId$()] = $JSCompiler_alias_TRUE$$
        }
        for($i$$651_type$$186$$ = 0;$i$$651_type$$186$$ < $JSCompiler_StaticMethods__notifyListeners$self$$.$_eventProgressListeners$.length;$i$$651_type$$186$$++) {
          $listener$$111$$ = $JSCompiler_StaticMethods__notifyListeners$self$$.$_eventProgressListeners$[$i$$651_type$$186$$].$listener$, $instance$$39$$ = $JSCompiler_StaticMethods__notifyListeners$self$$.$_eventProgressListeners$[$i$$651_type$$186$$].$instance$, $instance$$39$$ != $JSCompiler_alias_NULL$$ ? $listener$$111$$.call($instance$$39$$, $data$$50$$) : $listener$$111$$.call($JSCompiler_StaticMethods__notifyListeners$self$$, $data$$50$$)
        }
      }
    }else {
      if($i$$651_type$$186$$ == $AdfFileUploadManager$$.$EVENT_TYPE_STATE$ && $JSCompiler_StaticMethods__notifyListeners$self$$.$_eventStateListeners$) {
        for($i$$651_type$$186$$ = 0;$i$$651_type$$186$$ < $JSCompiler_StaticMethods__notifyListeners$self$$.$_eventStateListeners$.length;$i$$651_type$$186$$++) {
          $listener$$111$$ = $JSCompiler_StaticMethods__notifyListeners$self$$.$_eventStateListeners$[$i$$651_type$$186$$].$listener$, $instance$$39$$ = $JSCompiler_StaticMethods__notifyListeners$self$$.$_eventStateListeners$[$i$$651_type$$186$$].$instance$, $instance$$39$$ != $JSCompiler_alias_NULL$$ ? $listener$$111$$.call($instance$$39$$, $data$$50$$) : $listener$$111$$.call($JSCompiler_StaticMethods__notifyListeners$self$$, $data$$50$$)
        }
      }
    }
  }
}
function $JSCompiler_StaticMethods__refreshListFunctions$$($JSCompiler_StaticMethods__refreshListFunctions$self$$) {
  var $uploadQueue$$3$$ = $JSCompiler_StaticMethods__refreshListFunctions$self$$.$_uploadQueue$;
  $JSCompiler_StaticMethods__refreshListFunctions$self$$.$_uploadQueueFunc$ == $JSCompiler_alias_NULL$$ ? $JSCompiler_StaticMethods__refreshListFunctions$self$$.$_uploadQueueFunc$ = new function() {
    this.length = $uploadQueue$$3$$.length;
    this.item = function $this$item$($JSCompiler_StaticMethods__refreshListFunctions$self$$) {
      return $uploadQueue$$3$$[$JSCompiler_StaticMethods__refreshListFunctions$self$$]
    }
  } : $JSCompiler_StaticMethods__refreshListFunctions$self$$.$_uploadQueueFunc$.length = $uploadQueue$$3$$.length;
  var $uploadResult$$4$$ = $JSCompiler_StaticMethods__refreshListFunctions$self$$.$_uploadResult$;
  $JSCompiler_StaticMethods__refreshListFunctions$self$$.$_uploadResultFunc$ == $JSCompiler_alias_NULL$$ ? $JSCompiler_StaticMethods__refreshListFunctions$self$$.$_uploadResultFunc$ = new function() {
    this.length = $uploadResult$$4$$.length;
    this.item = function $this$item$($JSCompiler_StaticMethods__refreshListFunctions$self$$) {
      return $uploadResult$$4$$[$JSCompiler_StaticMethods__refreshListFunctions$self$$]
    }
  } : $JSCompiler_StaticMethods__refreshListFunctions$self$$.$_uploadResultFunc$.length = $uploadResult$$4$$.length
}
$JSCompiler_prototypeAlias$$.$_removeFileFromUploadQueue$ = function $$JSCompiler_prototypeAlias$$$$_removeFileFromUploadQueue$$($filename$$23$$) {
  for(var $i$$655$$ = 0;$i$$655$$ < this.$_uploadQueue$.length;$i$$655$$++) {
    if($filename$$23$$ == this.$_uploadQueue$[$i$$655$$].$getFilename$()) {
      var $fileItem$$15$$ = this.$_uploadQueue$[$i$$655$$];
      this.$_uploadQueue$.splice($i$$655$$, 1);
      $JSCompiler_StaticMethods__refreshListFunctions$$(this);
      $JSCompiler_StaticMethods__notifyListeners$$(this, $AdfFileUploadManager$$.$EVENT_TYPE_STATE$, new $AdfFileUploadEvent$$($JSCompiler_StaticMethods__getComponent$$(this), $AdfFileUploadManager$$.$EVENT_TYPE_STATE$, $AdfFileUploadManager$$.$EVENT_SOURCE_QUEUE$, $AdfFileUploadManager$$.$OPERATION_DELETE$, $fileItem$$15$$, 100, $AdfFileUploadManager$$.$EVENT_STATUS_COMPLETE$));
      break
    }
  }
  for($i$$655$$ = 0;$i$$655$$ < this.$_uploadResult$.length;$i$$655$$++) {
    if($filename$$23$$ == this.$_uploadResult$[$i$$655$$].$getFilename$()) {
      this.$_uploadResult$.splice($i$$655$$, 1);
      $JSCompiler_StaticMethods__refreshListFunctions$$(this);
      break
    }
  }
};
function $JSCompiler_StaticMethods__removeIframeTransferForm$$($JSCompiler_StaticMethods__removeIframeTransferForm$self$$) {
  var $form$$22$$ = $JSCompiler_StaticMethods__removeIframeTransferForm$self$$.$_uploadForm$;
  if($form$$22$$) {
    for(;$form$$22$$.firstChild;) {
      $form$$22$$.removeChild($form$$22$$.firstChild)
    }
    $form$$22$$.parentNode.removeChild($form$$22$$);
    $JSCompiler_StaticMethods__removeIframeTransferForm$self$$.$_uploadForm$ = $JSCompiler_alias_NULL$$
  }
}
function $JSCompiler_StaticMethods__performAutoSubmitCheck$$($JSCompiler_StaticMethods__performAutoSubmitCheck$self$$) {
  for(var $uploadResult$$5$$ = $JSCompiler_StaticMethods__performAutoSubmitCheck$self$$.$getFileUploadResults$(), $failedItem$$1$$ = $JSCompiler_alias_FALSE$$, $j$$64$$ = $uploadResult$$5$$.length, $i$$656$$ = 0;$i$$656$$ < $j$$64$$;$i$$656$$++) {
    if(!$uploadResult$$5$$.item($i$$656$$).$_success$) {
      $failedItem$$1$$ = $JSCompiler_alias_TRUE$$;
      break
    }
  }
  $JSCompiler_StaticMethods__performAutoSubmitCheck$self$$.$_peer$.$_autoSubmit$ && (0 < $j$$64$$ && !$failedItem$$1$$) && $AdfAutoSubmitEvent$$.$queue$($JSCompiler_StaticMethods__getComponent$$($JSCompiler_StaticMethods__performAutoSubmitCheck$self$$))
}
function $JSCompiler_StaticMethods__resetInputFileNode$$($JSCompiler_StaticMethods__resetInputFileNode$self$$, $node$$147$$) {
  var $agent$$731$$ = $AdfAgent$$.$AGENT$;
  $agent$$731$$.setAttribute($node$$147$$, "value", "");
  for(var $newNode$$9$$ = $AdfPage$$.$PAGE$.$getDomDocument$().createElement($node$$147$$.nodeName), $i$$657_parentNode$$18$$ = 0;$i$$657_parentNode$$18$$ < $node$$147$$.attributes.length;$i$$657_parentNode$$18$$++) {
    var $attribute$$7$$ = $node$$147$$.attributes[$i$$657_parentNode$$18$$];
    "value" != $attribute$$7$$.name && $agent$$731$$.hasAttribute($node$$147$$, $attribute$$7$$) && $agent$$731$$.setAttribute($newNode$$9$$, $attribute$$7$$.name, $attribute$$7$$.value)
  }
  $newNode$$9$$.onchange = $node$$147$$.onchange;
  $JSCompiler_StaticMethods__resetInputFileNode$self$$.$_inputId$ && $agent$$731$$.$addBubbleEventListener$($newNode$$9$$, "change", $JSCompiler_StaticMethods__resetInputFileNode$self$$.$_domChangeFunc$);
  if($i$$657_parentNode$$18$$ = $node$$147$$.parentNode) {
    $i$$657_parentNode$$18$$.removeChild($node$$147$$), $i$$657_parentNode$$18$$.appendChild($newNode$$9$$)
  }
  $agent$$731$$.$elementsRemoved$($node$$147$$);
  $agent$$731$$.$elementsAdded$($newNode$$9$$)
}
function $JSCompiler_StaticMethods__resetUpload$$($JSCompiler_StaticMethods__resetUpload$self$$, $resetChunk$$) {
  $JSCompiler_StaticMethods__resetUpload$self$$.$_cancelCurrentUploadAttempt$ = $JSCompiler_alias_FALSE$$;
  $JSCompiler_StaticMethods__resetUpload$self$$.$_currentlyUploading$ = $JSCompiler_alias_FALSE$$;
  $JSCompiler_StaticMethods__resetUpload$self$$.$_stopUpload$ = $JSCompiler_alias_FALSE$$;
  $resetChunk$$ && ($JSCompiler_StaticMethods__resetUpload$self$$.$_currentChunkNum$ = $JSCompiler_alias_NULL$$)
}
function $JSCompiler_StaticMethods__sendUploadRequest$$($JSCompiler_StaticMethods__sendUploadRequest$self$$, $data$$51_formId$$17$$, $headerParams$$15$$, $params$$75$$, $eventListeners$$8_form$$23$$) {
  var $component$$1877_context$$67$$ = $JSCompiler_StaticMethods__getComponent$$($JSCompiler_StaticMethods__sendUploadRequest$self$$), $clientId$$465_formData$$ = $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_clientId$, $contentNode$$76_dts$$17$$ = $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$1877_context$$67$$), $page$$231_pprURL$$1$$ = $AdfPage$$.$PAGE$, $dtsListener_formElement$$12_postbackCheckpointId$$2_request$$4_state$$101$$ = $AdfDhtmlPage$$.$_POSTBACK_CHECKPOINT$.start(), 
  $requestBusyCounts$$2$$ = $AdfCollections$$.$copyInto$({}, $page$$231_pprURL$$1$$.$_busyCounts$), $component$$1877_context$$67$$ = {};
  $component$$1877_context$$67$$.$busyCounts$ = $requestBusyCounts$$2$$;
  $component$$1877_context$$67$$.$__checkPointId$ = $dtsListener_formElement$$12_postbackCheckpointId$$2_request$$4_state$$101$$;
  $component$$1877_context$$67$$.$retryParams$ = $JSCompiler_alias_NULL$$;
  $component$$1877_context$$67$$.$formId$ = $contentNode$$76_dts$$17$$.id;
  $dtsListener_formElement$$12_postbackCheckpointId$$2_request$$4_state$$101$$ = $page$$231_pprURL$$1$$.$getDomDocument$().forms[0];
  $contentNode$$76_dts$$17$$ = $JSCompiler_StaticMethods__getDataTransferService$$($JSCompiler_StaticMethods__sendUploadRequest$self$$);
  $page$$231_pprURL$$1$$ = $JSCompiler_StaticMethods__getPPRURL$$($page$$231_pprURL$$1$$, $dtsListener_formElement$$12_postbackCheckpointId$$2_request$$4_state$$101$$);
  $dtsListener_formElement$$12_postbackCheckpointId$$2_request$$4_state$$101$$ = $dtsListener_formElement$$12_postbackCheckpointId$$2_request$$4_state$$101$$[$AdfDhtmlPage$$.$_STATE_PARAM_NAME$];
  $dtsListener_formElement$$12_postbackCheckpointId$$2_request$$4_state$$101$$ != $JSCompiler_alias_NULL$$ && ($params$$75$$[$AdfDhtmlPage$$.$_STATE_PARAM_NAME$] = $dtsListener_formElement$$12_postbackCheckpointId$$2_request$$4_state$$101$$.value);
  $dtsListener_formElement$$12_postbackCheckpointId$$2_request$$4_state$$101$$ = $JSCompiler_alias_NULL$$;
  $dtsListener_formElement$$12_postbackCheckpointId$$2_request$$4_state$$101$$ = {$requestStatusChanged$:function $$dtsListener_formElement$$12_postbackCheckpointId$$2_request$$4_state$$101$$$$requestStatusChanged$$($data$$51_formId$$17$$) {
    if($data$$51_formId$$17$$.$getStatus$() == $AdfDataTransferRequestEvent$$.$STATUS_COMPLETE$) {
      var $headerParams$$15$$ = $data$$51_formId$$17$$.$getResponseStatusCode$();
      $data$$51_formId$$17$$ = $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_currentRequestItemId$;
      var $params$$75$$ = $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_currentRequestOperation$;
      $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_useFormData$ || $JSCompiler_StaticMethods__removeIframeTransferForm$$($JSCompiler_StaticMethods__sendUploadRequest$self$$);
      if(200 == $headerParams$$15$$) {
        if($params$$75$$ == $AdfFileUploadManager$$.$OPERATION_UPLOAD$) {
          $data$$51_formId$$17$$ = $JSCompiler_alias_FALSE$$, $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_currentChunkNum$ ? $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_lastChunk$ && ($data$$51_formId$$17$$ = $JSCompiler_alias_TRUE$$, $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_currentChunkNum$ = $JSCompiler_alias_NULL$$) : $data$$51_formId$$17$$ = $JSCompiler_alias_TRUE$$, $JSCompiler_StaticMethods__resetUpload$$($JSCompiler_StaticMethods__sendUploadRequest$self$$, 
          $JSCompiler_alias_FALSE$$), $data$$51_formId$$17$$ ? ($data$$51_formId$$17$$ = $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadQueue$.shift(), $data$$51_formId$$17$$.$setSuccess$($JSCompiler_alias_TRUE$$), $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_addFileItemToUploadResultList$($data$$51_formId$$17$$), $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadSingleFile$ ? 0 < $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadRequestQueue$.length ? $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadFileInQueue$($JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadRequestQueue$.shift()) : 
          $JSCompiler_StaticMethods__performAutoSubmitCheck$$($JSCompiler_StaticMethods__sendUploadRequest$self$$) : $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadFileInQueue$()) : $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadFileInQueue$()
        }else {
          if($params$$75$$ == $AdfFileUploadManager$$.$OPERATION_DELETE$) {
            $JSCompiler_StaticMethods__resetUpload$$($JSCompiler_StaticMethods__sendUploadRequest$self$$, $JSCompiler_alias_TRUE$$);
            for($headerParams$$15$$ = 0;$headerParams$$15$$ < $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadResult$.length;$headerParams$$15$$++) {
              if($JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadResult$[$headerParams$$15$$].$getItemId$() == $data$$51_formId$$17$$) {
                $data$$51_formId$$17$$ = $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadResult$[$headerParams$$15$$];
                $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadResult$.splice($headerParams$$15$$, 1);
                $JSCompiler_StaticMethods__refreshListFunctions$$($JSCompiler_StaticMethods__sendUploadRequest$self$$);
                $JSCompiler_StaticMethods__notifyListeners$$($JSCompiler_StaticMethods__sendUploadRequest$self$$, $AdfFileUploadManager$$.$EVENT_TYPE_STATUS$, new $AdfFileUploadEvent$$($JSCompiler_StaticMethods__getComponent$$($JSCompiler_StaticMethods__sendUploadRequest$self$$), $AdfFileUploadManager$$.$EVENT_TYPE_STATUS$, $AdfFileUploadManager$$.$EVENT_SOURCE_UPLOAD$, $AdfFileUploadManager$$.$OPERATION_DELETE$, $data$$51_formId$$17$$, 100, $AdfFileUploadManager$$.$EVENT_STATUS_COMPLETE$));
                break
              }
            }
          }
        }
      }else {
        $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_cancelCurrentUploadAttempt$ && !$JSCompiler_StaticMethods__sendUploadRequest$self$$.$_stopUpload$ ? ($JSCompiler_StaticMethods__resetUpload$$($JSCompiler_StaticMethods__sendUploadRequest$self$$, $JSCompiler_alias_TRUE$$), $data$$51_formId$$17$$ != $JSCompiler_alias_NULL$$ && ($data$$51_formId$$17$$ = $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadQueue$.shift(), $JSCompiler_StaticMethods__notifyListeners$$($JSCompiler_StaticMethods__sendUploadRequest$self$$, 
        $AdfFileUploadManager$$.$EVENT_TYPE_STATUS$, new $AdfFileUploadEvent$$($JSCompiler_StaticMethods__getComponent$$($JSCompiler_StaticMethods__sendUploadRequest$self$$), $AdfFileUploadManager$$.$EVENT_TYPE_STATUS$, $AdfFileUploadManager$$.$EVENT_SOURCE_UPLOAD$, $AdfFileUploadManager$$.$OPERATION_CANCEL$, $data$$51_formId$$17$$, 100, $AdfFileUploadManager$$.$EVENT_STATUS_COMPLETE$)), $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadSingleFile$ ? 0 < $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadRequestQueue$.length && 
        $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadFileInQueue$($JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadRequestQueue$.shift()) : $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadFileInQueue$())) : ($JSCompiler_StaticMethods__resetUpload$$($JSCompiler_StaticMethods__sendUploadRequest$self$$, $JSCompiler_alias_TRUE$$), $params$$75$$ == $AdfFileUploadManager$$.$OPERATION_UPLOAD$ && ($data$$51_formId$$17$$ = $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadQueue$[0], 
        $data$$51_formId$$17$$.$setSuccess$($JSCompiler_alias_FALSE$$), $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_addFileItemToUploadResultList$($data$$51_formId$$17$$), $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_stopUpload$ ? $JSCompiler_StaticMethods__notifyListeners$$($JSCompiler_StaticMethods__sendUploadRequest$self$$, $AdfFileUploadManager$$.$EVENT_TYPE_STATUS$, new $AdfFileUploadEvent$$($JSCompiler_StaticMethods__getComponent$$($JSCompiler_StaticMethods__sendUploadRequest$self$$), 
        $AdfFileUploadManager$$.$EVENT_TYPE_STATUS$, $AdfFileUploadManager$$.$EVENT_SOURCE_UPLOAD$, $AdfFileUploadManager$$.$OPERATION_CANCEL_ALL$, $data$$51_formId$$17$$, 100, $AdfFileUploadManager$$.$EVENT_STATUS_COMPLETE$)) : $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadFileInQueue$()))
      }
    }
  }};
  if($JSCompiler_StaticMethods__sendUploadRequest$self$$.$_useFileApi$ && $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_useFormData$) {
    var $clientId$$465_formData$$ = new FormData, $key$$106$$;
    for($key$$106$$ in $params$$75$$) {
      "clientId" != $key$$106$$ && $params$$75$$.hasOwnProperty($key$$106$$) && $clientId$$465_formData$$.append($key$$106$$, $params$$75$$[$key$$106$$])
    }
    $clientId$$465_formData$$.append($params$$75$$.clientId, $data$$51_formId$$17$$);
    $dtsListener_formElement$$12_postbackCheckpointId$$2_request$$4_state$$101$$ = $contentNode$$76_dts$$17$$.$sendMultiPartRequest$($component$$1877_context$$67$$, $page$$231_pprURL$$1$$, $headerParams$$15$$, $clientId$$465_formData$$, $JSCompiler_alias_NULL$$, [$dtsListener_formElement$$12_postbackCheckpointId$$2_request$$4_state$$101$$], $eventListeners$$8_form$$23$$)
  }else {
    $eventListeners$$8_form$$23$$ = $JSCompiler_alias_NULL$$;
    if($data$$51_formId$$17$$) {
      for(;$data$$51_formId$$17$$.parentNode != $JSCompiler_alias_NULL$$;) {
        $eventListeners$$8_form$$23$$ = $data$$51_formId$$17$$.parentNode;
        if($eventListeners$$8_form$$23$$.nodeType != $JSCompiler_alias_NULL$$ && "FORM" == $eventListeners$$8_form$$23$$.nodeName) {
          break
        }
        $data$$51_formId$$17$$ = $data$$51_formId$$17$$.parentNode
      }
    }else {
      $data$$51_formId$$17$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$465_formData$$, $AdfFileUploadUtils$$.$_UPLOAD_FORM_ID$), $eventListeners$$8_form$$23$$ = $AdfFileUploadUtils$$.$_getIframeTransferForm$($data$$51_formId$$17$$)
    }
    for($key$$106$$ in $params$$75$$) {
      if("clientId" == $key$$106$$) {
        delete $params$$75$$[$key$$106$$];
        break
      }
    }
    $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_uploadForm$ = $eventListeners$$8_form$$23$$;
    $dtsListener_formElement$$12_postbackCheckpointId$$2_request$$4_state$$101$$ = $contentNode$$76_dts$$17$$.$sendMultiPartRequest$($component$$1877_context$$67$$, $page$$231_pprURL$$1$$, $headerParams$$15$$, $eventListeners$$8_form$$23$$, $params$$75$$, [$dtsListener_formElement$$12_postbackCheckpointId$$2_request$$4_state$$101$$], $JSCompiler_alias_NULL$$)
  }
  $JSCompiler_StaticMethods__sendUploadRequest$self$$.$_currentRequest$ = $dtsListener_formElement$$12_postbackCheckpointId$$2_request$$4_state$$101$$
}
$JSCompiler_prototypeAlias$$.$_uploadFileInQueue$ = function $$JSCompiler_prototypeAlias$$$$_uploadFileInQueue$$($file$$12_filename$$24$$) {
  var $agent$$732$$ = $AdfAgent$$.$AGENT$, $clientId$$466_dataChunk$$ = this.$_clientId$;
  this.$_cancelCurrentUploadAttempt$ = $JSCompiler_alias_FALSE$$;
  if(0 < this.$_uploadQueue$.length) {
    this.$_currentlyUploading$ = $JSCompiler_alias_TRUE$$;
    this.$_currentRequestOperation$ = $AdfFileUploadManager$$.$OPERATION_UPLOAD$;
    var $params$$76$$ = {}, $headerParams$$16$$ = {};
    $params$$76$$.clientId = $clientId$$466_dataChunk$$;
    $params$$76$$[$AdfFileUploadUtils$$.$_MULTIPLE_UPLOAD_PARAM$] = "multipleAdd";
    var $isChunked$$ = $JSCompiler_alias_FALSE$$, $fileItem$$17$$ = $JSCompiler_alias_NULL$$;
    if($file$$12_filename$$24$$) {
      this.$_uploadSingleFile$ = $JSCompiler_alias_TRUE$$;
      for(var $chunkSize_i$$658$$ = 0;$chunkSize_i$$658$$ < this.$_uploadQueue$.length;$chunkSize_i$$658$$++) {
        if(this.$_uploadQueue$[$chunkSize_i$$658$$].$getFilename$() == $file$$12_filename$$24$$) {
          $fileItem$$17$$ = this.$_uploadQueue$[$chunkSize_i$$658$$];
          break
        }
      }
    }else {
      this.$_uploadSingleFile$ = $JSCompiler_alias_FALSE$$, $fileItem$$17$$ = this.$_uploadQueue$[0]
    }
    $params$$76$$[$AdfFileUploadUtils$$.$_MULTIPLE_UPLOAD_FILE_PROPERTY_PARAM$ + ":" + $clientId$$466_dataChunk$$ + ":" + $fileItem$$17$$.$getFilename$()] = $AdfFileUploadUtils$$.$_marshallProperties$($fileItem$$17$$.$getProperties$());
    $file$$12_filename$$24$$ = $fileItem$$17$$.getData();
    if(this.$_useFormData$ && this.$_useFileApi$ && ($JSCompiler_StaticMethods__notifyListeners$$(this, $AdfFileUploadManager$$.$EVENT_TYPE_STATUS$, new $AdfFileUploadEvent$$($JSCompiler_StaticMethods__getComponent$$(this), $AdfFileUploadManager$$.$EVENT_TYPE_STATUS$, $AdfFileUploadManager$$.$EVENT_SOURCE_UPLOAD$, $AdfFileUploadManager$$.$OPERATION_UPLOAD$, $fileItem$$17$$, 0, $AdfFileUploadManager$$.$EVENT_STATUS_START$)), $file$$12_filename$$24$$.size > this.$_maxChunkSize$ && this.$_canSlice$)) {
      var $isChunked$$ = $JSCompiler_alias_TRUE$$, $chunkSize_i$$658$$ = this.$_maxChunkSize$, $chunkCount$$ = Math.ceil($file$$12_filename$$24$$.size / $chunkSize_i$$658$$);
      $params$$76$$[$AdfFileUploadUtils$$.$_MULTIPLE_UPLOAD_PARAM$] = "multipleAddChunk";
      $params$$76$$.itemName = $clientId$$466_dataChunk$$;
      $clientId$$466_dataChunk$$ = $JSCompiler_alias_NULL$$;
      this.$_currentChunkNum$ == $JSCompiler_alias_NULL$$ && (this.$_currentChunkNum$ = 0);
      this.$_currentChunkNum$ < $chunkCount$$ && (this.$_currentChunkNum$ == $chunkCount$$ - 1 ? ($clientId$$466_dataChunk$$ = $agent$$732$$.slice($file$$12_filename$$24$$, this.$_currentChunkNum$ * $chunkSize_i$$658$$, this.$_currentChunkNum$ * $chunkSize_i$$658$$ + ((this.$_currentChunkNum$ + 1) * $chunkSize_i$$658$$ - $file$$12_filename$$24$$.size)), this.$_lastChunk$ = $JSCompiler_alias_TRUE$$) : ($clientId$$466_dataChunk$$ = $agent$$732$$.slice($file$$12_filename$$24$$, this.$_currentChunkNum$ * 
      $chunkSize_i$$658$$, (this.$_currentChunkNum$ + 1) * $chunkSize_i$$658$$), this.$_lastChunk$ = $JSCompiler_alias_FALSE$$), $headerParams$$16$$[$AdfFileUploadUtils$$.$_MULTIPLE_UPLOAD_CHUNK_NUM_PARAM$] = this.$_currentChunkNum$, $headerParams$$16$$[$AdfFileUploadUtils$$.$_MULTIPLE_UPLOAD_CHUNK_COUNT_PARAM$] = $chunkCount$$, $headerParams$$16$$[$AdfFileUploadUtils$$.$_MULTIPLE_UPLOAD_CHUNK_FILENAME_PARAM$] = $file$$12_filename$$24$$.name, $JSCompiler_StaticMethods__sendUploadRequest$$(this, $clientId$$466_dataChunk$$, 
      $headerParams$$16$$, $params$$76$$, ["progress", $AdfFileUploadUtils$$.$_updateProgressFunction$(this, $fileItem$$17$$.$getFilename$(), this.$_currentChunkNum$, $chunkCount$$)]), this.$_currentChunkNum$++)
    }
    $isChunked$$ || (this.$_currentChunkNum$ = $JSCompiler_alias_NULL$$, $JSCompiler_StaticMethods__sendUploadRequest$$(this, $file$$12_filename$$24$$, $JSCompiler_alias_NULL$$, $params$$76$$, ["progress", $AdfFileUploadUtils$$.$_updateProgressFunction$(this, $fileItem$$17$$.$getFilename$())]));
    this.$_currentRequestItemId$ = $fileItem$$17$$.$getItemId$();
    this.$_delayedResetInputFileNode$[$fileItem$$17$$.$getFilename$()] != $JSCompiler_alias_NULL$$ && ($JSCompiler_StaticMethods__resetInputFileNode$$(this, this.$_delayedResetInputFileNode$[$fileItem$$17$$.$getFilename$()]), this.$_delayedResetInputFileNode$[$fileItem$$17$$.$getFilename$()] = $JSCompiler_alias_NULL$$)
  }else {
    this.$_currentlyUploading$ = $JSCompiler_alias_FALSE$$, $JSCompiler_StaticMethods__performAutoSubmitCheck$$(this), this.$_useFormData$ || $JSCompiler_StaticMethods__removeIframeTransferForm$$(this)
  }
};
function $JSCompiler_StaticMethods__validateFilesize$$($JSCompiler_StaticMethods__validateFilesize$self$$, $filesize$$6$$) {
  var $detail$$12_laf$$121$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $component$$1879$$ = $JSCompiler_StaticMethods__getComponent$$($JSCompiler_StaticMethods__validateFilesize$self$$);
  if($filesize$$6$$) {
    for(var $summary$$6_totalFileSize$$ = parseInt($filesize$$6$$), $i$$660$$ = 0;$i$$660$$ < $JSCompiler_StaticMethods__validateFilesize$self$$.$_uploadQueue$.length;$i$$660$$++) {
      $summary$$6_totalFileSize$$ += parseInt($JSCompiler_StaticMethods__validateFilesize$self$$.$_uploadQueue$[$i$$660$$].$getFilesize$())
    }
    if(!$AdfFileUploadUtils$$.$validateMaxFileSizeMaxDiskSpace$($component$$1879$$, $filesize$$6$$, $summary$$6_totalFileSize$$, function($filesize$$6$$) {
      $JSCompiler_StaticMethods__notifyListeners$$($JSCompiler_StaticMethods__validateFilesize$self$$, $AdfFileUploadManager$$.$EVENT_TYPE_STATE$, new $AdfFileUploadEvent$$($component$$1879$$, $AdfFileUploadManager$$.$EVENT_TYPE_STATE$, $AdfFileUploadManager$$.$EVENT_SOURCE_QUEUE$, $AdfFileUploadManager$$.$OPERATION_ADDED$, $JSCompiler_alias_NULL$$, 0, $AdfFileUploadManager$$.$EVENT_STATUS_FAILED$, $filesize$$6$$))
    })) {
      return $JSCompiler_alias_FALSE$$
    }
  }
  return $JSCompiler_StaticMethods__getTotalRows$$($JSCompiler_StaticMethods__validateFilesize$self$$) > $JSCompiler_StaticMethods__validateFilesize$self$$.$_maximumFiles$ - 1 && 0 < $JSCompiler_StaticMethods__validateFilesize$self$$.$_maximumFiles$ ? ($summary$$6_totalFileSize$$ = $detail$$12_laf$$121$$.$getTranslatedString$("af_inputFile.MSG_UPLOAD_MAXIMUM_FILES_ERROR"), $detail$$12_laf$$121$$ = $detail$$12_laf$$121$$.$getTranslatedString$("af_inputFile.MSG_UPLOAD_MAXIMUM_FILES_ERROR_DETAIL"), 
  facesMessage = new $AdfFacesMessage$$($AdfFacesMessage$$.$TYPE_ERROR$, $summary$$6_totalFileSize$$, $detail$$12_laf$$121$$), $JSCompiler_StaticMethods__notifyListeners$$($JSCompiler_StaticMethods__validateFilesize$self$$, $AdfFileUploadManager$$.$EVENT_TYPE_STATE$, new $AdfFileUploadEvent$$($JSCompiler_StaticMethods__getComponent$$($JSCompiler_StaticMethods__validateFilesize$self$$), $AdfFileUploadManager$$.$EVENT_TYPE_STATE$, $AdfFileUploadManager$$.$EVENT_SOURCE_QUEUE$, $AdfFileUploadManager$$.$OPERATION_ADDED$, 
  $JSCompiler_alias_NULL$$, 0, $AdfFileUploadManager$$.$EVENT_STATUS_FAILED$, facesMessage)), $JSCompiler_alias_FALSE$$) : $JSCompiler_alias_TRUE$$
}
$AdfFileUploadUtils$$.$_getCSSText$ = function $$AdfFileUploadUtils$$$$_getCSSText$$($selector$$9$$) {
  for(var $agent$$733$$ = $AdfAgent$$.$AGENT$, $document$$21$$ = $AdfPage$$.$PAGE$.$getDomDocument$(), $i$$661$$ = 0;$i$$661$$ < $document$$21$$.styleSheets.length;$i$$661$$++) {
    var $ruleList$$2_styleSheet$$3$$ = $document$$21$$.styleSheets[$i$$661$$];
    if($agent$$733$$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$) {
      for(var $ruleList$$2_styleSheet$$3$$ = $ruleList$$2_styleSheet$$3$$.rules, $j$$65$$ = 0;$j$$65$$ < $ruleList$$2_styleSheet$$3$$.length;$j$$65$$++) {
        var $rule$$5$$ = $ruleList$$2_styleSheet$$3$$.item($j$$65$$);
        if($rule$$5$$.selectorText.substr(1, $selector$$9$$.length) == $selector$$9$$) {
          return"." + $selector$$9$$ + " { " + $rule$$5$$.style.cssText + "; } "
        }
      }
    }else {
      $ruleList$$2_styleSheet$$3$$ = $ruleList$$2_styleSheet$$3$$.cssRules;
      for($j$$65$$ = 0;$j$$65$$ < $ruleList$$2_styleSheet$$3$$.length;$j$$65$$++) {
        if($rule$$5$$ = $ruleList$$2_styleSheet$$3$$[$j$$65$$], $rule$$5$$.cssText.substr(1, $selector$$9$$.length) == $selector$$9$$) {
          return $rule$$5$$.cssText
        }
      }
    }
  }
};
$AdfFileUploadUtils$$.$_getFilename$ = function $$AdfFileUploadUtils$$$$_getFilename$$($fullpath$$) {
  return-1 < $fullpath$$.indexOf("/") ? $fullpath$$.substring($fullpath$$.lastIndexOf("/") + 1, $fullpath$$.length) : $fullpath$$.substring($fullpath$$.lastIndexOf("\\") + 1, $fullpath$$.length)
};
$AdfFileUploadUtils$$.$_getIframeDoc$ = function $$AdfFileUploadUtils$$$$_getIframeDoc$$() {
  var $iframe$$5_iframeDoc$$13$$ = $AdfAgent$$.$AGENT$.getElementById($AdfFileUploadUtils$$.$_MULTIPART_FRAME$);
  if(!$iframe$$5_iframeDoc$$13$$) {
    return $JSCompiler_alias_NULL$$
  }
  $iframe$$5_iframeDoc$$13$$ = $iframe$$5_iframeDoc$$13$$.contentWindow || $iframe$$5_iframeDoc$$13$$.contentDocument;
  $iframe$$5_iframeDoc$$13$$.document && ($iframe$$5_iframeDoc$$13$$ = $iframe$$5_iframeDoc$$13$$.document);
  return $iframe$$5_iframeDoc$$13$$
};
$AdfFileUploadUtils$$.$_getIframeTransferForm$ = function $$AdfFileUploadUtils$$$$_getIframeTransferForm$$($action$$11_id$$375$$) {
  var $encoding$$1$$ = $AdfFileUploadUtils$$.$_MULTIPART_ENCODING$, $agent$$735$$ = $AdfAgent$$.$AGENT$, $page$$232$$ = $AdfPage$$.$PAGE$, $iframeDoc$$14$$ = $AdfFileUploadUtils$$.$_getIframeDoc$();
  $iframeDoc$$14$$ || ($iframeDoc$$14$$ = $page$$232$$.$getDomDocument$());
  for(var $form$$24$$ = $JSCompiler_alias_NULL$$, $forms$$3$$ = $iframeDoc$$14$$.getElementsByTagName("form"), $i$$662$$ = 0;$i$$662$$ < $forms$$3$$.length;$i$$662$$++) {
    $agent$$735$$.getAttribute($forms$$3$$[$i$$662$$], "id") == $action$$11_id$$375$$ && ($form$$24$$ = $forms$$3$$[$i$$662$$])
  }
  $form$$24$$ || ($form$$24$$ = $iframeDoc$$14$$.createElement("form"), $iframeDoc$$14$$.getElementsByTagName("body")[0].appendChild($form$$24$$), $agent$$735$$.setAttribute($form$$24$$, "id", $action$$11_id$$375$$), $form$$24$$.encoding = $encoding$$1$$, $action$$11_id$$375$$ = $page$$232$$.$getDomDocument$().forms[0].action, $form$$24$$.action = $action$$11_id$$375$$, $form$$24$$.target = $AdfFileUploadUtils$$.$_MULTIPART_FRAME$, $form$$24$$.style.position = "absolute", $form$$24$$.style.top = 
  "0px", $form$$24$$.style.left = "0px");
  return $form$$24$$
};
$AdfFileUploadUtils$$.$_getPopupAncestor$ = function $$AdfFileUploadUtils$$$$_getPopupAncestor$$($component$$1881$$) {
  var $parent$$76$$ = $JSCompiler_alias_NULL$$;
  try {
    $parent$$76$$ = $component$$1881$$.getParent()
  }catch($err$$12$$) {
  }
  if($parent$$76$$ == $JSCompiler_alias_NULL$$) {
    return $JSCompiler_alias_NULL$$
  }
  for(;$parent$$76$$ != $JSCompiler_alias_NULL$$;) {
    if($parent$$76$$ instanceof AdfRichPopup) {
      return $parent$$76$$
    }
    try {
      $parent$$76$$ = $parent$$76$$.getParent()
    }catch($err$$13$$) {
      return $JSCompiler_alias_FALSE$$
    }
    if($parent$$76$$ == $JSCompiler_alias_NULL$$) {
      return $JSCompiler_alias_FALSE$$
    }
  }
};
$AdfFileUploadUtils$$.$_isInPopup$ = function $$AdfFileUploadUtils$$$$_isInPopup$$($component$$1882_popupAncestor$$) {
  $component$$1882_popupAncestor$$ = $AdfFileUploadUtils$$.$_getPopupAncestor$($component$$1882_popupAncestor$$);
  return $component$$1882_popupAncestor$$ == $JSCompiler_alias_NULL$$ ? $JSCompiler_alias_NULL$$ : $component$$1882_popupAncestor$$ == $JSCompiler_alias_FALSE$$ ? $JSCompiler_alias_FALSE$$ : $JSCompiler_alias_TRUE$$
};
$AdfFileUploadUtils$$.$_marshallProperties$ = function $$AdfFileUploadUtils$$$$_marshallProperties$$($doc$$75_properties$$66$$) {
  var $agent$$736$$ = $AdfAgent$$.$AGENT$;
  this.$_marshalService$ == $JSCompiler_alias_NULL$$ && (this.$_marshalService$ = $AdfMarshalingService$$.getDefault());
  var $node$$148_propertiesList$$ = [], $i$$663_parentNode$$19$$;
  for($i$$663_parentNode$$19$$ in $doc$$75_properties$$66$$) {
    $doc$$75_properties$$66$$.hasOwnProperty($i$$663_parentNode$$19$$) && ($node$$148_propertiesList$$.push($i$$663_parentNode$$19$$), $node$$148_propertiesList$$.push($doc$$75_properties$$66$$[$i$$663_parentNode$$19$$]))
  }
  $doc$$75_properties$$66$$ = $agent$$736$$.$createXmlDocument$();
  $i$$663_parentNode$$19$$ = $doc$$75_properties$$66$$.createElement("TEMP");
  $agent$$736$$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$ ? $doc$$75_properties$$66$$.documentElement = $i$$663_parentNode$$19$$ : $doc$$75_properties$$66$$.appendChild($i$$663_parentNode$$19$$);
  $node$$148_propertiesList$$ = this.$_marshalService$.$marshal$($i$$663_parentNode$$19$$, $node$$148_propertiesList$$, $JSCompiler_alias_NULL$$);
  return $agent$$736$$.$getNodeXml$($node$$148_propertiesList$$)
};
$AdfFileUploadUtils$$.$_updateProgressFunction$ = function $$AdfFileUploadUtils$$$$_updateProgressFunction$$($fileUploadUtil$$1$$, $filename$$26$$, $chunkNum$$1$$, $chunkCount$$1$$) {
  return function updateProgress($event$$275_percentComplete$$5$$) {
    if($event$$275_percentComplete$$5$$.lengthComputable) {
      $event$$275_percentComplete$$5$$ = $event$$275_percentComplete$$5$$.loaded / $event$$275_percentComplete$$5$$.total;
      $event$$275_percentComplete$$5$$ *= 100;
      $chunkCount$$1$$ && ($event$$275_percentComplete$$5$$ = $event$$275_percentComplete$$5$$ / $chunkCount$$1$$ + 100 * $chunkNum$$1$$ / $chunkCount$$1$$);
      $event$$275_percentComplete$$5$$ = Math.round($event$$275_percentComplete$$5$$);
      var $fileItem$$18$$ = $JSCompiler_StaticMethods__getItem$$($fileUploadUtil$$1$$, $filename$$26$$);
      $JSCompiler_StaticMethods__notifyListeners$$($fileUploadUtil$$1$$, $AdfFileUploadManager$$.$EVENT_TYPE_PROGRESS$, new $AdfFileUploadEvent$$($JSCompiler_StaticMethods__getComponent$$($fileUploadUtil$$1$$), $AdfFileUploadManager$$.$EVENT_TYPE_PROGRESS$, $AdfFileUploadManager$$.$EVENT_SOURCE_UPLOAD$, $AdfFileUploadManager$$.$OPERATION_UPLOAD$, $fileItem$$18$$, $event$$275_percentComplete$$5$$, $AdfFileUploadManager$$.$EVENT_STATUS_IN_PROGRESS$))
    }
  }
};
$AdfFileUploadUtils$$.$validateMaxFileSizeMaxDiskSpace$ = function $$AdfFileUploadUtils$$$$validateMaxFileSizeMaxDiskSpace$$($component$$1883$$, $fileSize$$1_summary$$7$$, $totalFileSize$$1$$, $errorCallBack$$) {
  var $detail$$13_facesMessage$$9_laf$$122$$;
  $detail$$13_facesMessage$$9_laf$$122$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$();
  var $maxFileSize$$ = $component$$1883$$.$getProperty$($AdfDhtmlInputFilePeer$$.$_MAX_FILE_SIZE$), $maxDiskSpace$$ = $component$$1883$$.$getProperty$($AdfDhtmlInputFilePeer$$.$_MAX_DISK_SPACE$), $smry$$ = $JSCompiler_alias_NULL$$, $dtl$$ = $JSCompiler_alias_NULL$$;
  $fileSize$$1_summary$$7$$ + "" == $totalFileSize$$1$$ + "" && ($smry$$ = "af_inputFile.MSG_SELECTED_FILE_TOO_LARGE_ERROR", $dtl$$ = "af_inputFile.MSG_SELECTED_FILE_TOO_LARGE_ERROR_DETAIL");
  if($fileSize$$1_summary$$7$$ > $maxFileSize$$ && 0 < $maxFileSize$$) {
    if(!$smry$$ || $AdfDhtmlInputFilePeer$$.$_isMultipleUpload$($component$$1883$$)) {
      $smry$$ = "af_inputFile.MSG_UPLOAD_MAXIMUM_FILE_SIZE_ERROR", $dtl$$ = "af_inputFile.MSG_UPLOAD_MAXIMUM_FILE_SIZE_ERROR_DETAIL"
    }
    $fileSize$$1_summary$$7$$ = $detail$$13_facesMessage$$9_laf$$122$$.$getTranslatedString$($smry$$);
    $detail$$13_facesMessage$$9_laf$$122$$ = $detail$$13_facesMessage$$9_laf$$122$$.$getTranslatedString$($dtl$$);
    $detail$$13_facesMessage$$9_laf$$122$$ = new $AdfFacesMessage$$($AdfFacesMessage$$.$TYPE_ERROR$, $fileSize$$1_summary$$7$$, $detail$$13_facesMessage$$9_laf$$122$$);
    $errorCallBack$$($detail$$13_facesMessage$$9_laf$$122$$);
    $component$$1883$$.setProperty("valid", $JSCompiler_alias_FALSE$$);
    return $JSCompiler_alias_FALSE$$
  }
  if($totalFileSize$$1$$ > $maxDiskSpace$$) {
    if(!$smry$$ || $AdfDhtmlInputFilePeer$$.$_isMultipleUpload$($component$$1883$$)) {
      $smry$$ = "af_inputFile.MSG_UPLOAD_MAXIMUM_DISKSPACE_ERROR", $dtl$$ = "af_inputFile.MSG_UPLOAD_MAXIMUM_DISKSPACE_ERROR_DETAIL"
    }
    $fileSize$$1_summary$$7$$ = $detail$$13_facesMessage$$9_laf$$122$$.$getTranslatedString$($smry$$);
    $detail$$13_facesMessage$$9_laf$$122$$ = $detail$$13_facesMessage$$9_laf$$122$$.$getTranslatedString$($dtl$$);
    $detail$$13_facesMessage$$9_laf$$122$$ = new $AdfFacesMessage$$($AdfFacesMessage$$.$TYPE_ERROR$, $fileSize$$1_summary$$7$$, $detail$$13_facesMessage$$9_laf$$122$$);
    $errorCallBack$$($detail$$13_facesMessage$$9_laf$$122$$);
    $component$$1883$$.setProperty("valid", $JSCompiler_alias_FALSE$$);
    return $JSCompiler_alias_FALSE$$
  }
  return $JSCompiler_alias_TRUE$$
};
$goog$exportSymbol$$("AdfFileUploadUtils.validateMaxFileSizeMaxDiskSpace", $AdfFileUploadUtils$$.$validateMaxFileSizeMaxDiskSpace$);
