Your IP : 3.138.35.255


Current Path : /proc/self/root/home/sudancam/public_html3/games/wp-content/plugins/jetpack/_inc/build/videopress/js/
Upload File :
Current File : //proc/self/root/home/sudancam/public_html3/games/wp-content/plugins/jetpack/_inc/build/videopress/js/videopress-plupload.min.js

(()=>{var e,t,r,o;window.wp=window.wp||{},e=wp,t=jQuery,"undefined"!=typeof _wpPluploadSettings&&(r=function(i){var a,n,d=this,s=-1!==navigator.userAgent.indexOf("Trident/")||-1!==navigator.userAgent.indexOf("MSIE "),p={container:"container",browser:"browse_button",dropzone:"drop_element"};if(this.supports={upload:r.browser.supported},this.supported=this.supports.upload,this.supported){for(a in this.plupload=t.extend(!0,{multipart_params:{}},r.defaults),this.container=document.body,t.extend(!0,this,i),this)t.isFunction(this[a])&&(this[a]=t.proxy(this[a],this));for(a in p)this[a]&&(this[a]=t(this[a]).first(),this[a].length?(this[a].prop("id")||this[a].prop("id","__wp-uploader-id-"+r.uuid++),this.plupload[p[a]]=this[a].prop("id")):delete this[a]);(this.browser&&this.browser.length||this.dropzone&&this.dropzone.length)&&(s||"flash"!==plupload.predictRuntime(this.plupload)||this.plupload.required_features&&this.plupload.required_features.hasOwnProperty("send_binary_string")||(this.plupload.required_features=this.plupload.required_features||{},this.plupload.required_features.send_binary_string=!0),this.uploader=new plupload.Uploader(this.plupload),delete this.plupload,this.param(this.params||{}),delete this.params,void 0!==e.VideoPress?o=e.VideoPress:window.console&&window.console.error("The VideoPress object was not loaded. Errors may occur."),n=function(e,t,o){o.attachment&&o.attachment.destroy(),r.errors.unshift({message:e||pluploadL10n.default_error,data:t,file:o}),d.error(e,t,o)},this.uploader.bind("init",(function(e){var o,i,a,n=d.dropzone;if(a=d.supports.dragdrop=e.features.dragdrop&&!r.browser.mobile,n){if(n.toggleClass("supports-drag-drop",!!a),!a)return n.unbind(".wp-uploader");n.bind("dragover.wp-uploader",(function(){o&&clearTimeout(o),i||(n.trigger("dropzone:enter").addClass("drag-over"),i=!0)})),n.bind("dragleave.wp-uploader, drop.wp-uploader",(function(){o=setTimeout((function(){i=!1,n.trigger("dropzone:leave").removeClass("drag-over")}),0)})),d.ready=!0,t(d).trigger("uploader:ready")}})),this.uploader.bind("postinit",(function(e){e.refresh(),d.init()})),this.uploader.init(),this.browser?this.browser.on("mouseenter",this.refresh):(this.uploader.disableBrowse(!0),t("#"+this.uploader.id+"_html5_container").hide()),this.uploader.bind("FilesAdded",(function(e,t){_.each(t,(function(e){var t,o;plupload.FAILED!==e.status&&(t=_.extend({file:e,uploading:!0,date:new Date,filename:e.name,menuOrder:0,uploadedTo:wp.media.model.settings.post.id},_.pick(e,"loaded","size","percent")),(o=/(?:jpe?g|png|gif|webp)$/i.exec(e.name))&&(t.type="image",t.subtype="jpg"===o[0]?"jpeg":o[0]),e.attachment=wp.media.model.Attachment.create(t),r.queue.add(e.attachment),d.added(e.attachment))})),e.refresh(),e.start()})),this.uploader.bind("UploadProgress",(function(e,t){t.attachment.set(_.pick(t,"loaded","percent")),d.progress(t.attachment)})),this.uploader.bind("FileUploaded",(function(e,t,i){try{i=JSON.parse(i.response)}catch(e){return n(pluploadL10n.default_error,e,t)}i=void 0!==i.media?o.handleRestApiResponse(i,t):o.handleStandardResponse(i,t),_.each(["file","loaded","size","percent"],(function(e){t.attachment.unset(e)})),t.attachment.set(_.extend(i.data,{uploading:!1}));var a=wp.media.model.Attachment.get(i.data.id,t.attachment);void 0!==i.media&&a.sync("read").then((function(e){wp.media.model.Attachment.get(a.id).set(e)})),r.queue.all((function(e){return!e.get("uploading")}))&&(o&&o.resetToOriginalOptions(e),r.queue.reset()),d.success(t.attachment)})),this.uploader.bind("Error",(function(e,t){var i=pluploadL10n.default_error;for(var a in r.errorMap)if(t.code===plupload[a]){i=r.errorMap[a],_.isFunction(i)&&(i=i(t.file,t));break}if("response"in t)try{var d=JSON.parse(t.response);"object"==typeof d&&("errors"in d&&"object"==typeof d.errors&&(d=d.errors.shift()),"message"in d&&(i=d.message))}catch(e){}n(i,t,t.file),o&&o.resetToOriginalOptions(e),e.refresh()})),this.uploader.bind("UploadComplete",(function(e){o&&o.resetToOriginalOptions(e)})),this.uploader.bind("BeforeUpload",(function(e,t){void 0!==t.videopress&&(o.originalOptions.url=e.getOption("url"),o.originalOptions.multipart_params=e.getOption("multipart_params"),o.originalOptions.file_data_name=e.getOption("file_data_name"),e.setOption("file_data_name","media[]"),e.setOption("url",t.videopress.upload_action_url),e.setOption("headers",{Authorization:'X_UPLOAD_TOKEN token="'+t.videopress.upload_token+'" blog_id="'+t.videopress.upload_blog_id+'"'}))})))}},t.extend(r,_wpPluploadSettings),r.uuid=0,r.errorMap={FAILED:pluploadL10n.upload_failed,FILE_EXTENSION_ERROR:pluploadL10n.invalid_filetype,IMAGE_FORMAT_ERROR:pluploadL10n.not_an_image,IMAGE_MEMORY_ERROR:pluploadL10n.image_memory_exceeded,IMAGE_DIMENSIONS_ERROR:pluploadL10n.image_dimensions_exceeded,GENERIC_ERROR:pluploadL10n.upload_failed,IO_ERROR:pluploadL10n.io_error,HTTP_ERROR:pluploadL10n.http_error,SECURITY_ERROR:pluploadL10n.security_error,FILE_SIZE_ERROR:function(e){return pluploadL10n.file_exceeds_size_limit.replace("%s",e.name)}},t.extend(r.prototype,{param:function(e,r){if(1===arguments.length&&"string"==typeof e)return this.uploader.settings.multipart_params[e];arguments.length>1?this.uploader.settings.multipart_params[e]=r:t.extend(this.uploader.settings.multipart_params,e)},init:function(){},error:function(){},success:function(){},added:function(){},progress:function(){},complete:function(){},refresh:function(){var e,r,o,i;if(this.browser){for(e=this.browser[0];e;){if(e===document.body){r=!0;break}e=e.parentNode}r||(i="wp-uploader-browser-"+this.uploader.id,(o=t("#"+i)).length||(o=t('<div class="wp-uploader-browser" />').css({position:"fixed",top:"-1000px",left:"-1000px",height:0,width:0}).attr("id","wp-uploader-browser-"+this.uploader.id).appendTo("body")),o.append(this.browser))}this.uploader.refresh()}}),r.queue=new wp.media.model.Attachments([],{query:!1}),r.errors=new Backbone.Collection,e.Uploader=r)})();