window.wp=window.wp||{};(function(e){var a,b,f,j,d,h=["standard","chat","status","aside","gallery"],i=e(".post-formats-fields");function c(k){a.get(0).className=a.get(0).className.replace(/\bwp-format-[^ ]+/g,"");a.addClass("wp-format-"+k)}function g(q){var m,k,l=q.parent(),p=q.data("wp-format"),n=e(".post-format-description"),o=e("#title");if(typeof a==="undefined"){a=e("#post-body-content")}l.slideUp().find("a.active").removeClass("active");q.addClass("active");e("#post_format").val(p);e(".post-format-change").show().find("span.icon").removeClass(postFormats.currentPostFormat).addClass(p);if(-1600){p=600}s+=' width="'+p+'"'}if(v.height){r=v.height;if(v.width&&p<'+u+s+' class="wp-'+u+'-shortcode" controls="controls" preload="none">");e(".wp-"+u+"-shortcode").mediaelementplayer()};b.on("select",function(){var p=0,r=0,q,s=b.state().get("selection").first().toJSON();if(0===s.mime.indexOf("audio")){l.val(s.url);d(s)}else{if(0===s.mime.indexOf("video")){s.src=s.url;l.val(wp.shortcode.string({tag:"video",attrs:_.pick(s,"src","width","height")}));d(s)}else{q=wp.media.string.image({},s);l.val(q);e("#image-preview").remove();if(s.width){p=s.width>600?600:s.width}if(s.height){r=s.height}if(p','",""].join(""))}}});b.open()})})})(jQuery);