<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[23960] trunk/wp-includes: Compress scripts/styles: 3.6-beta1-23960.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/23960">23960</a></dd>
<dt>Author</dt> <dd>bumpbot</dd>
<dt>Date</dt> <dd>2013-04-10 22:58:42 +0000 (Wed, 10 Apr 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>Compress scripts/styles: 3.6-beta1-23960.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjsmediaviewsminjs">trunk/wp-includes/js/media-views.min.js</a></li>
<li><a href="#trunkwpincludesjsmediaelementmediaelementandplayerminjs">trunk/wp-includes/js/mediaelement/mediaelement-and-player.min.js</a></li>
<li><a href="#trunkwpincludesjsmediaelementmediaelementplayermincss">trunk/wp-includes/js/mediaelement/mediaelementplayer.min.css</a></li>
<li><a href="#trunkwpincludesversionphp">trunk/wp-includes/version.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesjsmediaviewsminjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/media-views.min.js (23959 => 23960)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/media-views.min.js        2013-04-10 22:44:29 UTC (rev 23959)
+++ trunk/wp-includes/js/media-views.min.js        2013-04-10 22:58:42 UTC (rev 23960)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(e){var f=wp.media,d=f.model.Attachment,c=f.model.Attachments,a=f.model.Query,b;b=f.view.l10n=typeof _wpMediaViewsL10n===&quot;undefined&quot;?{}:_wpMediaViewsL10n;f.view.settings=b.settings||{};delete b.settings;f.model.settings.post=f.view.settings.post;e.support.transition=(function(){var g=document.documentElement.style,h={WebkitTransition:&quot;webkitTransitionEnd&quot;,MozTransition:&quot;transitionend&quot;,OTransition:&quot;oTransitionEnd otransitionend&quot;,transition:&quot;transitionend&quot;},i;i=_.find(_.keys(h),function(j){return !_.isUndefined(g[j])});return i&amp;&amp;{end:h[i]}}());f.transition=function(g,h){var i=e.Deferred();h=h||2000;if(e.support.transition){if(!(g instanceof e)){g=e(g)}g.first().one(e.support.transition.end,i.resolve);_.delay(i.resolve,h)}else{i.resolve()}return i.promise()};f.controller.Region=function(g){_.extend(this,_.pick(g||{},&quot;id&quot;,&quot;view&quot;,&quot;selector&quot;))};f.controller.Region.extend=Ba
 ckbone.Model.extend;_.extend(f.controller.Region.prototype,{mode:function(g){if(!g){return this._mode}if(g===this._mode){return this}this.trigger(&quot;deactivate&quot;);this._mode=g;this.render(g);this.trigger(&quot;activate&quot;);return this},render:function(h){if(h&amp;&amp;h!==this._mode){return this.mode(h)}var i={view:null},g;this.trigger(&quot;create&quot;,i);g=i.view;this.trigger(&quot;render&quot;,g);if(g){this.set(g)}return this},get:function(){return this.view.views.first(this.selector)},set:function(g,h){if(h){h.add=false}return this.view.views.set(this.selector,g,h)},trigger:function(h){var i;if(!this._mode){return}var g=_.toArray(arguments);i=this.id+&quot;:&quot;+h;g[0]=i+&quot;:&quot;+this._mode;this.view.trigger.apply(this.view,g);g[0]=i;this.view.trigger.apply(this.view,g);return this}});f.controller.StateMachine=function(g){this.states=new Backbone.Collection(g)};f.controller.StateMachine.extend=Backbone.Model.extend;_.extend(f.controller.StateMachine.pro
 totype,Backbone.Events,{state:function(g){this.states=this.states||new Backbone.Collection();g=g||this._state;if(g&amp;&amp;!this.states.get(g)){this.states.add({id:g})}return this.states.get(g)},setState:function(h){var g=this.state();if((g&amp;&amp;h===g.id)||!this.states||!this.states.get(h)){return this}if(g){g.trigger(&quot;deactivate&quot;);this._lastState=g.id}this._state=h;this.state().trigger(&quot;activate&quot;);return this},lastState:function(){if(this._lastState){return this.state(this._lastState)}}});_.each([&quot;on&quot;,&quot;off&quot;,&quot;trigger&quot;],function(g){f.controller.StateMachine.prototype[g]=function(){this.states=this.states||new Backbone.Collection();this.states[g].apply(this.states,arguments);return this}});f.controller.State=Backbone.Model.extend({constructor:function(){this.on(&quot;activate&quot;,this._preActivate,this);this.on(&quot;activate&quot;,this.activate,this);this.on(&quot;activate&quot;,this._postActivate,this);this.on(&quot;de
 activate&quot;,this._deactivate,this);this.on(&quot;deactivate&quot;,this.deactivate,this);this.on(&quot;reset&quot;,this.reset,this);this.on(&quot;ready&quot;,this._ready,this);this.on(&quot;ready&quot;,this.ready,this);Backbone.Model.apply(this,arguments);this.on(&quot;change:menu&quot;,this._updateMenu,this)},ready:function(){},activate:function(){},deactivate:function(){},reset:function(){},_ready:function(){this._updateMenu()},_preActivate:function(){this.active=true},_postActivate:function(){this.on(&quot;change:menu&quot;,this._menu,this);this.on(&quot;change:titleMode&quot;,this._title,this);this.on(&quot;change:content&quot;,this._content,this);this.on(&quot;change:toolbar&quot;,this._toolbar,this);this.frame.on(&quot;title:render:default&quot;,this._renderTitle,this);this._title();this._menu();this._toolbar();this._content();this._router()},_deactivate:function(){this.active=false;this.frame.off(&quot;title:render:default&quot;,this._renderTitle,this);this.off(&quo
 t;change:menu&quot;,this._menu,this);this.off(&quot;change:titleMode&quot;,this._title,this);this.off(&quot;change:content&quot;,this._content,this);this.off(&quot;change:toolbar&quot;,this._toolbar,this)},_title:function(){this.frame.title.render(this.get(&quot;titleMode&quot;)||&quot;default&quot;)},_renderTitle:function(g){g.$el.text(this.get(&quot;title&quot;)||&quot;&quot;)},_router:function(){var h=this.frame.router,i=this.get(&quot;router&quot;),g;this.frame.$el.toggleClass(&quot;hide-router&quot;,!i);if(!i){return}this.frame.router.render(i);g=h.get();if(g&amp;&amp;g.select){g.select(this.frame.content.mode())}},_menu:function(){var i=this.frame.menu,h=this.get(&quot;menu&quot;),g;if(!h){return}i.mode(h);g=i.get();if(g&amp;&amp;g.select){g.select(this.id)}},_updateMenu:function(){var g=this.previous(&quot;menu&quot;),h=this.get(&quot;menu&quot;);if(g){this.frame.off(&quot;menu:render:&quot;+g,this._renderMenu,this)}if(h){this.frame.on(&quot;menu:render:&quot;+h,this.
 _renderMenu,this)}},_renderMenu:function(g){var i=this.get(&quot;menuItem&quot;),j=this.get(&quot;title&quot;),h=this.get(&quot;priority&quot;);if(!i&amp;&amp;j){i={text:j};if(h){i.priority=h}}if(!i){return}g.set(this.id,i)}});_.each([&quot;toolbar&quot;,&quot;content&quot;],function(g){f.controller.State.prototype[&quot;_&quot;+g]=function(){var h=this.get(g);if(h){this.frame[g].render(h)}}});f.controller.Library=f.controller.State.extend({defaults:{id:&quot;library&quot;,multiple:false,describe:false,toolbar:&quot;select&quot;,sidebar:&quot;settings&quot;,content:&quot;upload&quot;,router:&quot;browse&quot;,menu:&quot;default&quot;,searchable:true,filterable:false,sortable:true,title:b.mediaLibraryTitle,contentUserSetting:true,syncSelection:true},initialize:function(){var h=this.get(&quot;selection&quot;),g;if(!this.get(&quot;library&quot;)){this.set(&quot;library&quot;,f.query())}if(!(h instanceof f.model.Selection)){g=h;if(!g){g=this.get(&quot;library&quot;).props.toJSON
 ();g=_.omit(g,&quot;orderby&quot;,&quot;query&quot;)}this.set(&quot;selection&quot;,new f.model.Selection(null,{multiple:this.get(&quot;multiple&quot;),props:g}))}if(!this.get(&quot;edge&quot;)){this.set(&quot;edge&quot;,120)}if(!this.get(&quot;gutter&quot;)){this.set(&quot;gutter&quot;,8)}this.resetDisplays()},activate:function(){this.syncSelection();wp.Uploader.queue.on(&quot;add&quot;,this.uploading,this);this.get(&quot;selection&quot;).on(&quot;add remove reset&quot;,this.refreshContent,this);if(this.get(&quot;contentUserSetting&quot;)){this.frame.on(&quot;content:activate&quot;,this.saveContentMode,this);this.set(&quot;content&quot;,getUserSetting(&quot;libraryContent&quot;,this.get(&quot;content&quot;)))}},deactivate:function(){this.recordSelection();this.frame.off(&quot;content:activate&quot;,this.saveContentMode,this);this.get(&quot;selection&quot;).off(null,null,this);wp.Uploader.queue.off(null,null,this)},reset:function(){this.get(&quot;selection&quot;).reset();thi
 s.resetDisplays();this.refreshContent()},resetDisplays:function(){var g=f.view.settings.defaultProps;this._displays=[];this._defaultDisplaySettings={align:g.align||getUserSetting(&quot;align&quot;,&quot;none&quot;),size:g.size||getUserSetting(&quot;imgsize&quot;,&quot;medium&quot;),link:g.link||getUserSetting(&quot;urlbutton&quot;,&quot;file&quot;)}},display:function(h){var g=this._displays;if(!g[h.cid]){g[h.cid]=new Backbone.Model(this._defaultDisplaySettings)}return g[h.cid]},syncSelection:function(){var h=this.get(&quot;selection&quot;),g=this.frame._selection;if(!this.get(&quot;syncSelection&quot;)||!g||!h){return}if(h.multiple){h.reset([],{silent:true});h.validateAll(g.attachments);g.difference=_.difference(g.attachments.models,h.models)}h.single(g.single)},recordSelection:function(){var i=this.get(&quot;selection&quot;),h=this.frame._selection,g;if(!this.get(&quot;syncSelection&quot;)||!h||!i){return}if(i.multiple){h.attachments.reset(i.toArray().concat(h.difference));
 h.difference=[]}else{h.attachments.add(i.toArray())}h.single=i._single},refreshContent:function(){var h=this.get(&quot;selection&quot;),j=this.frame,g=j.router.get(),i=j.content.mode();if(this.active&amp;&amp;!h.length&amp;&amp;g&amp;&amp;!g.get(i)){this.frame.content.render(this.get(&quot;content&quot;))}},uploading:function(h){var g=this.frame.content;if(&quot;upload&quot;===g.mode()){this.frame.content.mode(&quot;browse&quot;)}this.get(&quot;selection&quot;).add(h)},saveContentMode:function(){if(&quot;browse&quot;!==this.get(&quot;router&quot;)){return}var h=this.frame.content.mode(),g=this.frame.router.get();if(g&amp;&amp;g.get(h)){setUserSetting(&quot;libraryContent&quot;,h)}}});f.controller.GalleryEdit=f.controller.Library.extend({defaults:{id:&quot;gallery-edit&quot;,multiple:false,describe:true,edge:199,editing:false,sortable:true,searchable:false,toolbar:&quot;gallery-edit&quot;,content:&quot;browse&quot;,title:b.editGalleryTitle,priority:60,dragInfo:true,syncSelect
 ion:false},initialize:function(){if(!this.get(&quot;library&quot;)){this.set(&quot;library&quot;,new f.model.Selection())}if(!this.get(&quot;AttachmentView&quot;)){this.set(&quot;AttachmentView&quot;,f.view.Attachment.EditLibrary)}f.controller.Library.prototype.initialize.apply(this,arguments)},activate:function(){var g=this.get(&quot;library&quot;);g.props.set(&quot;type&quot;,&quot;image&quot;);this.get(&quot;library&quot;).observe(wp.Uploader.queue);this.frame.on(&quot;content:render:browse&quot;,this.gallerySettings,this);f.controller.Library.prototype.activate.apply(this,arguments)},deactivate:function(){this.get(&quot;library&quot;).unobserve(wp.Uploader.queue);this.frame.off(&quot;content:render:browse&quot;,this.gallerySettings,this);f.controller.Library.prototype.deactivate.apply(this,arguments)},gallerySettings:function(h){var g=this.get(&quot;library&quot;);if(!g||!h){return}g.gallery=g.gallery||new Backbone.Model();h.sidebar.set({gallery:new f.view.Settings.Galle
 ry({controller:this,model:g.gallery,priority:40})});h.toolbar.set(&quot;reverse&quot;,{text:b.reverseOrder,priority:80,click:function(){g.reset(g.toArray().reverse())}})}});f.controller.GalleryAdd=f.controller.Library.extend({defaults:_.defaults({id:&quot;gallery-library&quot;,filterable:&quot;uploaded&quot;,multiple:&quot;add&quot;,menu:&quot;gallery&quot;,toolbar:&quot;gallery-add&quot;,title:b.addToGalleryTitle,priority:100,syncSelection:false},f.controller.Library.prototype.defaults),initialize:function(){if(!this.get(&quot;library&quot;)){this.set(&quot;library&quot;,f.query({type:&quot;image&quot;}))}f.controller.Library.prototype.initialize.apply(this,arguments)},activate:function(){var g=this.get(&quot;library&quot;),h=this.frame.state(&quot;gallery-edit&quot;).get(&quot;library&quot;);if(this.editLibrary&amp;&amp;this.editLibrary!==h){g.unobserve(this.editLibrary)}g.validator=function(i){return !!this.mirroring.get(i.cid)&amp;&amp;!h.get(i.cid)&amp;&amp;f.model.Sele
 ction.prototype.validator.apply(this,arguments)};g.reset(g.mirroring.models,{silent:true});g.observe(h);this.editLibrary=h;f.controller.Library.prototype.activate.apply(this,arguments)}});f.controller.FeaturedImage=f.controller.Library.extend({defaults:_.defaults({id:&quot;featured-image&quot;,filterable:&quot;uploaded&quot;,multiple:false,toolbar:&quot;featured-image&quot;,title:b.setFeaturedImageTitle,priority:60,syncSelection:false},f.controller.Library.prototype.defaults),initialize:function(){var h,g;if(!this.get(&quot;library&quot;)){this.set(&quot;library&quot;,f.query({type:&quot;image&quot;}))}f.controller.Library.prototype.initialize.apply(this,arguments);h=this.get(&quot;library&quot;);g=h.comparator;h.comparator=function(j,i){var l=!!this.mirroring.get(j.cid),k=!!this.mirroring.get(i.cid);if(!l&amp;&amp;k){return -1}else{if(l&amp;&amp;!k){return 1}else{return g.apply(this,arguments)}}};h.observe(this.get(&quot;selection&quot;))},activate:function(){this.updateSel
 ection();this.frame.on(&quot;open&quot;,this.updateSelection,this);f.controller.Library.prototype.activate.apply(this,arguments)},deactivate:function(){this.frame.off(&quot;open&quot;,this.updateSelection,this);f.controller.Library.prototype.deactivate.apply(this,arguments)},updateSelection:function(){var g=this.get(&quot;selection&quot;),i=f.view.settings.post.featuredImageId,h;if(&quot;&quot;!==i&amp;&amp;-1!==i){h=d.get(i);h.fetch()}g.reset(h?[h]:[])}});f.controller.Embed=f.controller.State.extend({defaults:{id:&quot;embed&quot;,url:&quot;&quot;,menu:&quot;default&quot;,content:&quot;embed&quot;,toolbar:&quot;main-embed&quot;,type:&quot;link&quot;,title:b.insertFromUrlTitle,priority:120},sensitivity:200,initialize:function(){this.debouncedScan=_.debounce(_.bind(this.scan,this),this.sensitivity);this.props=new Backbone.Model({url:&quot;&quot;});this.props.on(&quot;change:url&quot;,this.debouncedScan,this);this.props.on(&quot;change:url&quot;,this.refresh,this);this.on(&quo
 t;scan&quot;,this.scanImage,this)},scan:function(){var h,i=this,g={type:&quot;link&quot;,scanners:[]};if(this.props.get(&quot;url&quot;)){this.trigger(&quot;scan&quot;,g)}if(g.scanners.length){h=g.scanners=e.when.apply(e,g.scanners);h.always(function(){if(i.get(&quot;scanners&quot;)===h){i.set(&quot;loading&quot;,false)}})}else{g.scanners=null}g.loading=!!g.scanners;this.set(g)},scanImage:function(h){var l=this.frame,j=this,i=this.props.get(&quot;url&quot;),k=new Image(),g=e.Deferred();h.scanners.push(g.promise());k.onload=function(){g.resolve();if(j!==l.state()||i!==j.props.get(&quot;url&quot;)){return}j.set({type:&quot;image&quot;});j.props.set({width:k.width,height:k.height})};k.onerror=g.reject;k.src=i},refresh:function(){this.frame.toolbar.get().refresh()},reset:function(){this.props.clear().set({url:&quot;&quot;});if(this.active){this.refresh()}}});f.Views=function(h,g){this.view=h;this._views=_.isArray(g)?{&quot;&quot;:g}:g||{}};f.Views.extend=Backbone.Model.extend;_.
 extend(f.Views.prototype,{all:function(){return _.flatten(this._views)},get:function(g){g=g||&quot;&quot;;return this._views[g]},first:function(g){var h=this.get(g);return h&amp;&amp;h.length?h[0]:null},set:function(g,h,i){var k,j;if(!_.isString(g)){i=h;h=g;g=&quot;&quot;}i=i||{};h=_.isArray(h)?h:[h];k=this.get(g);j=h;if(k){if(i.add){if(_.isUndefined(i.at)){j=k.concat(h)}else{j=k;j.splice.apply(j,[i.at,0].concat(h))}}else{_.each(j,function(l){l.__detach=true});_.each(k,function(l){if(l.__detach){l.$el.detach()}else{l.dispose()}});_.each(j,function(l){delete l.__detach})}}this._views[g]=j;_.each(h,function(n){var l=n.Views||f.Views,m=n.views=n.views||new l(n);m.parent=this.view;m.selector=g},this);if(!i.silent){this._attach(g,h,_.extend({ready:this._isReady()},i))}return this},add:function(g,h,i){if(!_.isString(g)){i=h;h=g;g=&quot;&quot;}return this.set(g,h,_.extend({add:true},i))},unset:function(g,h,i){var j;if(!_.isString(g)){i=h;h=g;g=&quot;&quot;}h=h||[];if(j=this.get(g))
 {h=_.isArray(h)?h:[h];this._views[g]=h.length?_.difference(j,h):[]}if(!i||!i.silent){_.invoke(h,&quot;dispose&quot;)}return this},detach:function(){e(_.pluck(this.all(),&quot;el&quot;)).detach();return this},render:function(){var g={ready:this._isReady()};_.each(this._views,function(i,h){this._attach(h,i,g)},this);this.rendered=true;return this},dispose:function(g){if(!g||!g.silent){if(this.parent&amp;&amp;this.parent.views){this.parent.views.unset(this.selector,this.view,{silent:true})}delete this.parent;delete this.selector}_.invoke(this.all(),&quot;dispose&quot;);this._views=[];return this},replace:function(g,h){g.html(h);return this},insert:function(h,k,j){var g=j&amp;&amp;j.at,i;if(_.isNumber(g)&amp;&amp;(i=h.children()).length&gt;g){i.eq(g).before(k)}else{h.append(k)}return this},ready:function(){this.view.trigger(&quot;ready&quot;);_.chain(this.all()).map(function(g){return g.views}).flatten().where({attached:true}).invoke(&quot;ready&quot;)},_attach:function(g,h,i){v
 ar k=g?this.view.$(g):this.view.$el,j;if(!k.length){return this}j=_.chain(h).pluck(&quot;views&quot;).flatten().value();_.each(j,function(l){if(l.rendered){return}l.view.render();l.rendered=true},this);this[i.add?&quot;insert&quot;:&quot;replace&quot;](k,_.pluck(h,&quot;el&quot;),i);_.each(j,function(l){l.attached=true;if(i.ready){l.ready()}},this);return this},_isReady:function(){var g=this.view.el;while(g){if(g===document.body){return true}g=g.parentNode}return false}});f.View=Backbone.View.extend({Views:f.Views,constructor:function(g){this.views=new this.Views(this,this.views);this.on(&quot;ready&quot;,this.ready,this);if(g&amp;&amp;g.controller){this.controller=g.controller}Backbone.View.apply(this,arguments)},dispose:function(){this.undelegateEvents();if(this.model&amp;&amp;this.model.off){this.model.off(null,null,this)}if(this.collection&amp;&amp;this.collection.off){this.collection.off(null,null,this)}if(this.controller&amp;&amp;this.controller.off){this.controller.of
 f(null,null,this)}if(this.views){this.views.dispose()}return this},remove:function(){this.dispose();return Backbone.View.prototype.remove.apply(this,arguments)},render:function(){var g;if(this.prepare){g=this.prepare()}this.views.detach();if(this.template){g=g||{};this.trigger(&quot;prepare&quot;,g);this.$el.html(this.template(g))}this.views.render();return this},prepare:function(){return this.options},ready:function(){}});f.view.Frame=f.View.extend({initialize:function(){this._createRegions();this._createStates()},_createRegions:function(){this.regions=this.regions?this.regions.slice():[];_.each(this.regions,function(g){this[g]=new f.controller.Region({view:this,id:g,selector:&quot;.media-frame-&quot;+g})},this)},_createStates:function(){this.states=new Backbone.Collection(null,{model:f.controller.State});this.states.on(&quot;add&quot;,function(g){g.frame=this;g.trigger(&quot;ready&quot;)},this);if(this.options.states){this.states.add(this.options.states)}},reset:function()
 {this.states.invoke(&quot;trigger&quot;,&quot;reset&quot;);return this}});_.extend(f.view.Frame.prototype,f.controller.StateMachine.prototype);f.view.MediaFrame=f.view.Frame.extend({className:&quot;media-frame&quot;,template:f.template(&quot;media-frame&quot;),regions:[&quot;menu&quot;,&quot;title&quot;,&quot;content&quot;,&quot;toolbar&quot;,&quot;router&quot;],initialize:function(){f.view.Frame.prototype.initialize.apply(this,arguments);_.defaults(this.options,{title:&quot;&quot;,modal:true,uploader:true});this.$el.addClass(&quot;wp-core-ui&quot;);if(this.options.modal){this.modal=new f.view.Modal({controller:this,title:this.options.title});this.modal.content(this)}if(wp.Uploader.limitExceeded||!wp.Uploader.browser.supported){this.options.uploader=false}if(this.options.uploader){this.uploader=new f.view.UploaderWindow({controller:this,uploader:{dropzone:this.modal?this.modal.$el:this.$el,container:this.$el}});this.views.set(&quot;.media-frame-uploader&quot;,this.uploader)}
 this.on(&quot;attach&quot;,_.bind(this.views.ready,this.views),this);this.on(&quot;title:create:default&quot;,this.createTitle,this);this.title.mode(&quot;default&quot;);this.on(&quot;menu:create:default&quot;,this.createMenu,this)},render:function(){if(!this.state()&amp;&amp;this.options.state){this.setState(this.options.state)}return f.view.Frame.prototype.render.apply(this,arguments)},createTitle:function(g){g.view=new f.View({controller:this,tagName:&quot;h1&quot;})},createMenu:function(g){g.view=new f.view.Menu({controller:this})},createToolbar:function(g){g.view=new f.view.Toolbar({controller:this})},createRouter:function(g){g.view=new f.view.Router({controller:this})},createIframeStates:function(g){var j=f.view.settings,i=j.tabs,k=j.tabUrl,h;if(!i||!k){return}h=e(&quot;#post_ID&quot;);if(h.length){k+=&quot;&amp;post_id=&quot;+h.val()}_.each(i,function(m,n){var l=this.state(&quot;iframe:&quot;+n).set(_.defaults({tab:n,src:k+&quot;&amp;tab=&quot;+n,title:m,content:&quot
 ;iframe&quot;,menu:&quot;default&quot;},g))},this);this.on(&quot;content:create:iframe&quot;,this.iframeContent,this);this.on(&quot;menu:render:default&quot;,this.iframeMenu,this);this.on(&quot;open&quot;,this.hijackThickbox,this);this.on(&quot;close&quot;,this.restoreThickbox,this)},iframeContent:function(g){this.$el.addClass(&quot;hide-toolbar&quot;);g.view=new f.view.Iframe({controller:this})},iframeMenu:function(h){var g={};if(!h){return}_.each(f.view.settings.tabs,function(i,j){g[&quot;iframe:&quot;+j]={text:this.state(&quot;iframe:&quot;+j).get(&quot;title&quot;),priority:200}},this);h.set(g)},hijackThickbox:function(){var g=this;if(!window.tb_remove||this._tb_remove){return}this._tb_remove=window.tb_remove;window.tb_remove=function(){g.close();g.reset();g.setState(g.options.state);g._tb_remove.call(window)}},restoreThickbox:function(){if(!this._tb_remove){return}window.tb_remove=this._tb_remove;delete this._tb_remove}});_.each([&quot;open&quot;,&quot;close&quot;,&quot
 ;attach&quot;,&quot;detach&quot;,&quot;escape&quot;],function(g){f.view.MediaFrame.prototype[g]=function(h){if(this.modal){this.modal[g].apply(this.modal,arguments)}return this}});f.view.MediaFrame.Select=f.view.MediaFrame.extend({initialize:function(){f.view.MediaFrame.prototype.initialize.apply(this,arguments);_.defaults(this.options,{selection:[],library:{},multiple:false,state:&quot;library&quot;});this.createSelection();this.createStates();this.bindHandlers()},createSelection:function(){var g=this,h=this.options.selection;if(!(h instanceof f.model.Selection)){this.options.selection=new f.model.Selection(h,{multiple:this.options.multiple})}this._selection={attachments:new c(),difference:[]}},createStates:function(){var g=this.options;if(this.options.states){return}this.states.add([new f.controller.Library({library:f.query(g.library),multiple:g.multiple,title:g.title,priority:20})])},bindHandlers:function(){this.on(&quot;router:create:browse&quot;,this.createRouter,this);
 this.on(&quot;router:render:browse&quot;,this.browseRouter,this);this.on(&quot;content:create:browse&quot;,this.browseContent,this);this.on(&quot;content:render:upload&quot;,this.uploadContent,this);this.on(&quot;toolbar:create:select&quot;,this.createSelectToolbar,this)},browseRouter:function(g){g.set({upload:{text:b.uploadFilesTitle,priority:20},browse:{text:b.mediaLibraryTitle,priority:40}})},browseContent:function(g){var h=this.state();this.$el.removeClass(&quot;hide-toolbar&quot;);g.view=new f.view.AttachmentsBrowser({controller:this,collection:h.get(&quot;library&quot;),selection:h.get(&quot;selection&quot;),model:h,sortable:h.get(&quot;sortable&quot;),search:h.get(&quot;searchable&quot;),filters:h.get(&quot;filterable&quot;),display:h.get(&quot;displaySettings&quot;),dragInfo:h.get(&quot;dragInfo&quot;),AttachmentView:h.get(&quot;AttachmentView&quot;)})},uploadContent:function(){this.$el.removeClass(&quot;hide-toolbar&quot;);this.content.set(new f.view.UploaderInline(
 {controller:this}))},createSelectToolbar:function(h,g){g=g||this.options.button||{};g.controller=this;h.view=new f.view.Toolbar.Select(g)}});f.view.MediaFrame.Post=f.view.MediaFrame.Select.extend({initialize:function(){_.defaults(this.options,{multiple:true,editing:false,state:&quot;insert&quot;});f.view.MediaFrame.Select.prototype.initialize.apply(this,arguments);this.createIframeStates()},createStates:function(){var g=this.options;this.states.add([new f.controller.Library({id:&quot;insert&quot;,title:b.insertMediaTitle,priority:20,toolbar:&quot;main-insert&quot;,filterable:&quot;all&quot;,library:f.query(g.library),multiple:g.multiple?&quot;reset&quot;:false,editable:true,allowLocalEdits:true,displaySettings:true,displayUserSettings:true}),new f.controller.Library({id:&quot;gallery&quot;,title:b.createGalleryTitle,priority:40,toolbar:&quot;main-gallery&quot;,filterable:&quot;uploaded&quot;,multiple:&quot;add&quot;,editable:false,library:f.query(_.defaults({type:&quot;image
 &quot;},g.library))}),new f.controller.Embed(),new f.controller.GalleryEdit({library:g.selection,editing:g.editing,menu:&quot;gallery&quot;}),new f.controller.GalleryAdd()]);if(f.view.settings.post.featuredImageId){this.states.add(new f.controller.FeaturedImage())}},bindHandlers:function(){f.view.MediaFrame.Select.prototype.bindHandlers.apply(this,arguments);this.on(&quot;menu:create:gallery&quot;,this.createMenu,this);this.on(&quot;toolbar:create:main-insert&quot;,this.createToolbar,this);this.on(&quot;toolbar:create:main-gallery&quot;,this.createToolbar,this);this.on(&quot;toolbar:create:featured-image&quot;,this.featuredImageToolbar,this);this.on(&quot;toolbar:create:main-embed&quot;,this.mainEmbedToolbar,this);var g={menu:{&quot;default&quot;:&quot;mainMenu&quot;,gallery:&quot;galleryMenu&quot;},content:{embed:&quot;embedContent&quot;,&quot;edit-selection&quot;:&quot;editSelectionContent&quot;},toolbar:{&quot;main-insert&quot;:&quot;mainInsertToolbar&quot;,&quot;main-gal
 lery&quot;:&quot;mainGalleryToolbar&quot;,&quot;gallery-edit&quot;:&quot;galleryEditToolbar&quot;,&quot;gallery-add&quot;:&quot;galleryAddToolbar&quot;}};_.each(g,function(i,h){_.each(i,function(k,j){this.on(h+&quot;:render:&quot;+j,this[k],this)},this)},this)},mainMenu:function(g){g.set({&quot;library-separator&quot;:new f.View({className:&quot;separator&quot;,priority:100})})},galleryMenu:function(g){var h=this.lastState(),i=h&amp;&amp;h.id,j=this;g.set({cancel:{text:b.cancelGalleryTitle,priority:20,click:function(){if(i){j.setState(i)}else{j.close()}}},separateCancel:new f.View({className:&quot;separator&quot;,priority:40})})},embedContent:function(){var g=new f.view.Embed({controller:this,model:this.state()}).render();this.content.set(g);g.url.focus()},editSelectionContent:function(){var i=this.state(),h=i.get(&quot;selection&quot;),g;g=new f.view.AttachmentsBrowser({controller:this,collection:h,selection:h,model:i,sortable:true,search:false,dragInfo:true,AttachmentView:
 f.view.Attachment.EditSelection}).render();g.toolbar.set(&quot;backToLibrary&quot;,{text:b.returnToLibrary,priority:-100,click:function(){this.controller.content.mode(&quot;browse&quot;)}});this.content.set(g)},selectionStatusToolbar:function(g){var h=this.state().get(&quot;editable&quot;);g.set(&quot;selection&quot;,new f.view.Selection({controller:this,collection:this.state().get(&quot;selection&quot;),priority:-40,editable:h&amp;&amp;function(){this.controller.content.mode(&quot;edit-selection&quot;)}}).render())},mainInsertToolbar:function(h){var g=this;this.selectionStatusToolbar(h);h.set(&quot;insert&quot;,{style:&quot;primary&quot;,priority:80,text:b.insertIntoPost,requires:{selection:true},click:function(){var j=g.state(),i=j.get(&quot;selection&quot;);g.close();j.trigger(&quot;insert&quot;,i).reset()}})},mainGalleryToolbar:function(h){var g=this;this.selectionStatusToolbar(h);h.set(&quot;gallery&quot;,{style:&quot;primary&quot;,text:b.createNewGallery,priority:60,re
 quires:{selection:true},click:function(){var i=g.state().get(&quot;selection&quot;),j=g.state(&quot;gallery-edit&quot;),k=i.where({type:&quot;image&quot;});j.set(&quot;library&quot;,new f.model.Selection(k,{props:i.props.toJSON(),multiple:true}));this.controller.setState(&quot;gallery-edit&quot;)}})},featuredImageToolbar:function(g){this.createSelectToolbar(g,{text:b.setFeaturedImage,state:this.options.state})},mainEmbedToolbar:function(g){g.view=new f.view.Toolbar.Embed({controller:this})},galleryEditToolbar:function(){var g=this.state().get(&quot;editing&quot;);this.toolbar.set(new f.view.Toolbar({controller:this,items:{insert:{style:&quot;primary&quot;,text:g?b.updateGallery:b.insertGallery,priority:80,requires:{library:true},click:function(){var h=this.controller,i=h.state();h.close();i.trigger(&quot;update&quot;,i.get(&quot;library&quot;));h.setState(h.options.state);h.reset()}}}}))},galleryAddToolbar:function(){this.toolbar.set(new f.view.Toolbar({controller:this,items
 :{insert:{style:&quot;primary&quot;,text:b.addToGallery,priority:80,requires:{selection:true},click:function(){var g=this.controller,i=g.state(),h=g.state(&quot;gallery-edit&quot;);h.get(&quot;library&quot;).add(i.get(&quot;selection&quot;).models);i.trigger(&quot;reset&quot;);g.setState(&quot;gallery-edit&quot;)}}}}))}});f.view.Modal=f.View.extend({tagName:&quot;div&quot;,template:f.template(&quot;media-modal&quot;),attributes:{tabindex:0},events:{&quot;click .media-modal-backdrop, .media-modal-close&quot;:&quot;escapeHandler&quot;,keydown:&quot;keydown&quot;},initialize:function(){_.defaults(this.options,{container:document.body,title:&quot;&quot;,propagate:true,freeze:true})},prepare:function(){return{title:this.options.title}},attach:function(){if(this.views.attached){return this}if(!this.views.rendered){this.render()}this.$el.appendTo(this.options.container);this.views.attached=true;this.views.ready();return this.propagate(&quot;attach&quot;)},detach:function(){if(this.
 $el.is(&quot;:visible&quot;)){this.close()}this.$el.detach();this.views.attached=false;return this.propagate(&quot;detach&quot;)},open:function(){var h=this.$el,g=this.options;if(h.is(&quot;:visible&quot;)){return this}if(!this.views.attached){this.attach()}if(g.freeze){this._freeze={scrollTop:e(window).scrollTop()}}h.show().focus();return this.propagate(&quot;open&quot;)},close:function(g){var h=this._freeze;if(!this.views.attached||!this.$el.is(&quot;:visible&quot;)){return this}this.$el.hide();this.propagate(&quot;close&quot;);if(h){e(window).scrollTop(h.scrollTop)}if(g&amp;&amp;g.escape){this.propagate(&quot;escape&quot;)}return this},escape:function(){return this.close({escape:true})},escapeHandler:function(g){g.preventDefault();this.escape()},content:function(g){this.views.set(&quot;.media-modal-content&quot;,g);return this},propagate:function(g){this.trigger(g);if(this.options.propagate){this.controller.trigger(g)}return this},keydown:function(g){if(27===g.which){g.pr
 eventDefault();this.escape();return}}});f.view.FocusManager=f.View.extend({events:{keydown:&quot;recordTab&quot;,focusin:&quot;updateIndex&quot;},focus:function(){if(_.isUndefined(this.index)){return}this.$tabbables=this.$(&quot;:tabbable&quot;);this.$tabbables.eq(this.index).focus()},recordTab:function(h){if(9!==h.keyCode){return}if(_.isUndefined(this.index)){this.updateIndex(h)}if(_.isUndefined(this.index)){return}var g=this.index+(h.shiftKey?-1:1);if(g&gt;=0&amp;&amp;g&lt;this.$tabbables.length){this.index=g}else{delete this.index}},updateIndex:function(h){this.$tabbables=this.$(&quot;:tabbable&quot;);var g=this.$tabbables.index(h.target);if(-1===g){delete this.index}else{this.index=g}}});f.view.UploaderWindow=f.View.extend({tagName:&quot;div&quot;,className:&quot;uploader-window&quot;,template:f.template(&quot;uploader-window&quot;),initialize:function(){var g;this.$browser=e('&lt;a href=&quot;#&quot; class=&quot;browser&quot; /&gt;').hide().appendTo(&quot;body&quot;);g=
 this.options.uploader=_.defaults(this.options.uploader||{},{dropzone:this.$el,browser:this.$browser,params:{}});if(g.dropzone&amp;&amp;!(g.dropzone instanceof e)){g.dropzone=e(g.dropzone)}this.controller.on(&quot;activate&quot;,this.refresh,this)},refresh:function(){if(this.uploader){this.uploader.refresh()}},ready:function(){var h=f.view.settings.post.id,g;if(this.uploader){return}if(h){this.options.uploader.params.post_id=h}this.uploader=new wp.Uploader(this.options.uploader);g=this.uploader.dropzone;g.on(&quot;dropzone:enter&quot;,_.bind(this.show,this));g.on(&quot;dropzone:leave&quot;,_.bind(this.hide,this))},show:function(){var g=this.$el.show();_.defer(function(){g.css({opacity:1})})},hide:function(){var g=this.$el.css({opacity:0});f.transition(g).done(function(){if(&quot;0&quot;===g.css(&quot;opacity&quot;)){g.hide()}})}});f.view.UploaderInline=f.View.extend({tagName:&quot;div&quot;,className:&quot;uploader-inline&quot;,template:f.template(&quot;uploader-inline&quot;)
 ,initialize:function(){_.defaults(this.options,{message:&quot;&quot;,status:true});if(!this.options.$browser&amp;&amp;this.controller.uploader){this.options.$browser=this.controller.uploader.$browser}if(_.isUndefined(this.options.postId)){this.options.postId=f.view.settings.post.id}if(this.options.status){this.views.set(&quot;.upload-inline-status&quot;,new f.view.UploaderStatus({controller:this.controller}))}},dispose:function(){if(this.disposing){return f.View.prototype.dispose.apply(this,arguments)}this.disposing=true;return this.remove()},remove:function(){var g=f.View.prototype.remove.apply(this,arguments);_.defer(_.bind(this.refresh,this));return g},refresh:function(){var g=this.controller.uploader;if(g){g.refresh()}},ready:function(){var g=this.options.$browser,h;if(this.controller.uploader){h=this.$(&quot;.browser&quot;);if(h[0]===g[0]){return}g.detach().text(h.text());g[0].className=h[0].className;h.replaceWith(g.show())}this.refresh();return this}});f.view.Uploader
 Status=f.View.extend({className:&quot;media-uploader-status&quot;,template:f.template(&quot;uploader-status&quot;),events:{&quot;click .upload-dismiss-errors&quot;:&quot;dismiss&quot;},initialize:function(){this.queue=wp.Uploader.queue;this.queue.on(&quot;add remove reset&quot;,this.visibility,this);this.queue.on(&quot;add remove reset change:percent&quot;,this.progress,this);this.queue.on(&quot;add remove reset change:uploading&quot;,this.info,this);this.errors=wp.Uploader.errors;this.errors.reset();this.errors.on(&quot;add remove reset&quot;,this.visibility,this);this.errors.on(&quot;add&quot;,this.error,this)},dispose:function(){wp.Uploader.queue.off(null,null,this);f.View.prototype.dispose.apply(this,arguments);return this},visibility:function(){this.$el.toggleClass(&quot;uploading&quot;,!!this.queue.length);this.$el.toggleClass(&quot;errors&quot;,!!this.errors.length);this.$el.toggle(!!this.queue.length||!!this.errors.length)},ready:function(){_.each({&quot;$bar&quot;:&
 quot;.media-progress-bar div&quot;,&quot;$index&quot;:&quot;.upload-index&quot;,&quot;$total&quot;:&quot;.upload-total&quot;,&quot;$filename&quot;:&quot;.upload-filename&quot;},function(g,h){this[h]=this.$(g)},this);this.visibility();this.progress();this.info()},progress:function(){var g=this.queue,i=this.$bar,h=0;if(!i||!g.length){return}i.width((g.reduce(function(j,l){if(!l.get(&quot;uploading&quot;)){return j+100}var k=l.get(&quot;percent&quot;);return j+(_.isNumber(k)?k:100)},0)/g.length)+&quot;%&quot;)},info:function(){var g=this.queue,h=0,i;if(!g.length){return}i=this.queue.find(function(k,j){h=j;return k.get(&quot;uploading&quot;)});this.$index.text(h+1);this.$total.text(g.length);this.$filename.html(i?this.filename(i.get(&quot;filename&quot;)):&quot;&quot;)},filename:function(g){return f.truncate(_.escape(g),24)},error:function(g){this.views.add(&quot;.upload-errors&quot;,new f.view.UploaderStatusError({filename:this.filename(g.get(&quot;file&quot;).name),message:g.g
 et(&quot;message&quot;)}),{at:0})},dismiss:function(g){var h=this.views.get(&quot;.upload-errors&quot;);g.preventDefault();if(h){_.invoke(h,&quot;remove&quot;)}wp.Uploader.errors.reset()}});f.view.UploaderStatusError=f.View.extend({className:&quot;upload-error&quot;,template:f.template(&quot;uploader-status-error&quot;)});f.view.Toolbar=f.View.extend({tagName:&quot;div&quot;,className:&quot;media-toolbar&quot;,initialize:function(){var i=this.controller.state(),h=this.selection=i.get(&quot;selection&quot;),g=this.library=i.get(&quot;library&quot;);this._views={};this.primary=new f.view.PriorityList();this.secondary=new f.view.PriorityList();this.primary.$el.addClass(&quot;media-toolbar-primary&quot;);this.secondary.$el.addClass(&quot;media-toolbar-secondary&quot;);this.views.set([this.secondary,this.primary]);if(this.options.items){this.set(this.options.items,{silent:true})}if(!this.options.silent){this.render()}if(h){h.on(&quot;add remove reset&quot;,this.refresh,this)}if(g
 ){g.on(&quot;add remove reset&quot;,this.refresh,this)}},dispose:function(){if(this.selection){this.selection.off(null,null,this)}if(this.library){this.library.off(null,null,this)}return f.View.prototype.dispose.apply(this,arguments)},ready:function(){this.refresh()},set:function(j,g,h){var i;h=h||{};if(_.isObject(j)){_.each(j,function(k,l){this.set(l,k,{silent:true})},this)}else{if(!(g instanceof Backbone.View)){g.classes=[&quot;media-button-&quot;+j].concat(g.classes||[]);g=new f.view.Button(g).render()}g.controller=g.controller||this.controller;this._views[j]=g;i=g.options.priority&lt;0?&quot;secondary&quot;:&quot;primary&quot;;this[i].set(j,g,h)}if(!h.silent){this.refresh()}return this},get:function(g){return this._views[g]},unset:function(h,g){delete this._views[h];this.primary.unset(h,g);this.secondary.unset(h,g);if(!g||!g.silent){this.refresh()}return this},refresh:function(){var i=this.controller.state(),g=i.get(&quot;library&quot;),h=i.get(&quot;selection&quot;);_.e
 ach(this._views,function(j){if(!j.model||!j.options||!j.options.requires){return}var l=j.options.requires,k=false;if(l.selection&amp;&amp;h&amp;&amp;!h.length){k=true}else{if(l.library&amp;&amp;g&amp;&amp;!g.length){k=true}}j.model.set(&quot;disabled&quot;,k)})}});f.view.Toolbar.Select=f.view.Toolbar.extend({initialize:function(){var h=this.options,g=h.controller,i=g.state().get(&quot;selection&quot;);_.bindAll(this,&quot;clickSelect&quot;);_.defaults(h,{event:&quot;select&quot;,state:false,reset:true,close:true,text:b.select,requires:{selection:true}});h.items=_.defaults(h.items||{},{select:{style:&quot;primary&quot;,text:h.text,priority:80,click:this.clickSelect,requires:h.requires}});f.view.Toolbar.prototype.initialize.apply(this,arguments)},clickSelect:function(){var h=this.options,g=this.controller;if(h.close){g.close()}if(h.event){g.state().trigger(h.event)}if(h.state){g.setState(h.state)}if(h.reset){g.reset()}}});f.view.Toolbar.Embed=f.view.Toolbar.Select.extend({init
 ialize:function(){_.defaults(this.options,{text:b.insertIntoPost,requires:false});f.view.Toolbar.Select.prototype.initialize.apply(this,arguments)},refresh:function(){var g=this.controller.state().props.get(&quot;url&quot;);this.get(&quot;select&quot;).model.set(&quot;disabled&quot;,!g||g===&quot;http://&quot;);f.view.Toolbar.Select.prototype.refresh.apply(this,arguments)}});f.view.Button=f.View.extend({tagName:&quot;a&quot;,className:&quot;media-button&quot;,attributes:{href:&quot;#&quot;},events:{click:&quot;click&quot;},defaults:{text:&quot;&quot;,style:&quot;&quot;,size:&quot;large&quot;,disabled:false},initialize:function(){this.model=new Backbone.Model(this.defaults);_.each(this.defaults,function(i,g){var h=this.options[g];if(_.isUndefined(h)){return}this.model.set(g,h);delete this.options[g]},this);this.model.on(&quot;change&quot;,this.render,this)},render:function(){var h=[&quot;button&quot;,this.className],g=this.model.toJSON();if(g.style){h.push(&quot;button-&quot;
 +g.style)}if(g.size){h.push(&quot;button-&quot;+g.size)}h=_.uniq(h.concat(this.options.classes));this.el.className=h.join(&quot; &quot;);this.$el.attr(&quot;disabled&quot;,g.disabled);this.$el.text(this.model.get(&quot;text&quot;));return this},click:function(g){if(&quot;#&quot;===this.attributes.href){g.preventDefault()}if(this.options.click&amp;&amp;!this.model.get(&quot;disabled&quot;)){this.options.click.apply(this,arguments)}}});f.view.ButtonGroup=f.View.extend({tagName:&quot;div&quot;,className:&quot;button-group button-large media-button-group&quot;,initialize:function(){this.buttons=_.map(this.options.buttons||[],function(g){if(g instanceof Backbone.View){return g}else{return new f.view.Button(g).render()}});delete this.options.buttons;if(this.options.classes){this.$el.addClass(this.options.classes)}},render:function(){this.$el.html(e(_.pluck(this.buttons,&quot;el&quot;)).detach());return this}});f.view.PriorityList=f.View.extend({tagName:&quot;div&quot;,initialize:f
 unction(){this._views={};this.set(_.extend({},this._views,this.options.views),{silent:true});delete this.options.views;if(!this.options.silent){this.render()}},set:function(l,h,j){var k,g,i;j=j||{};if(_.isObject(l)){_.each(l,function(m,n){this.set(n,m)},this);return this}if(!(h instanceof Backbone.View)){h=this.toView(h,l,j)}h.controller=h.controller||this.controller;this.unset(l);k=h.options.priority||10;g=this.views.get()||[];_.find(g,function(n,m){if(n.options.priority&gt;k){i=m;return true}});this._views[l]=h;this.views.add(h,{at:_.isNumber(i)?i:g.length||0});return this},get:function(g){return this._views[g]},unset:function(h){var g=this.get(h);if(g){g.remove()}delete this._views[h];return this},toView:function(g){return new f.View(g)}});f.view.MenuItem=f.View.extend({tagName:&quot;a&quot;,className:&quot;media-menu-item&quot;,attributes:{href:&quot;#&quot;},events:{click:&quot;_click&quot;},_click:function(g){var h=this.options.click;if(g){g.preventDefault()}if(h){h.ca
 ll(this)}else{this.click()}},click:function(){var g=this.options.state;if(g){this.controller.setState(g)}},render:function(){var g=this.options;if(g.text){this.$el.text(g.text)}else{if(g.html){this.$el.html(g.html)}}return this}});f.view.Menu=f.view.PriorityList.extend({tagName:&quot;div&quot;,className:&quot;media-menu&quot;,property:&quot;state&quot;,ItemView:f.view.MenuItem,region:&quot;menu&quot;,toView:function(g,h){g=g||{};g[this.property]=g[this.property]||h;return new this.ItemView(g).render()},ready:function(){f.view.PriorityList.prototype.ready.apply(this,arguments);this.visibility()},set:function(){f.view.PriorityList.prototype.set.apply(this,arguments);this.visibility()},unset:function(){f.view.PriorityList.prototype.unset.apply(this,arguments);this.visibility()},visibility:function(){var j=this.region,h=this.controller[j].get(),g=this.views.get(),i=!g||g.length&lt;2;if(this===h){this.controller.$el.toggleClass(&quot;hide-&quot;+j,i)}},select:function(h){var g=th
 is.get(h);if(!g){return}this.deselect();g.$el.addClass(&quot;active&quot;)},deselect:function(){this.$el.children().removeClass(&quot;active&quot;)}});f.view.RouterItem=f.view.MenuItem.extend({click:function(){var g=this.options.contentMode;if(g){this.controller.content.mode(g)}}});f.view.Router=f.view.Menu.extend({tagName:&quot;div&quot;,className:&quot;media-router&quot;,property:&quot;contentMode&quot;,ItemView:f.view.RouterItem,region:&quot;router&quot;,initialize:function(){this.controller.on(&quot;content:render&quot;,this.update,this);f.view.Menu.prototype.initialize.apply(this,arguments)},update:function(){var g=this.controller.content.mode();if(g){this.select(g)}}});f.view.Sidebar=f.view.PriorityList.extend({className:&quot;media-sidebar&quot;});f.view.Attachment=f.View.extend({tagName:&quot;li&quot;,className:&quot;attachment&quot;,template:f.template(&quot;attachment&quot;),events:{&quot;click .attachment-preview&quot;:&quot;toggleSelectionHandler&quot;,&quot;chan
 ge [data-setting]&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] input&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] select&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] textarea&quot;:&quot;updateSetting&quot;,&quot;click .close&quot;:&quot;removeFromLibrary&quot;,&quot;click .check&quot;:&quot;removeFromSelection&quot;,&quot;click a&quot;:&quot;preventDefault&quot;},buttons:{},initialize:function(){var g=this.options.selection;this.model.on(&quot;change:sizes change:uploading&quot;,this.render,this);this.model.on(&quot;change:title&quot;,this._syncTitle,this);this.model.on(&quot;change:caption&quot;,this._syncCaption,this);this.model.on(&quot;change:percent&quot;,this.progress,this);this.model.on(&quot;add&quot;,this.select,this);this.model.on(&quot;remove&quot;,this.deselect,this);if(g){g.on(&quot;reset&quot;,this.updateSelect,this)}this.model.on(&quot;selection:single selection:unsingle&quot;,this.details,this);this.details(this.m
 odel,this.controller.state().get(&quot;selection&quot;))},dispose:function(){var g=this.options.selection;this.updateAll();if(g){g.off(null,null,this)}f.View.prototype.dispose.apply(this,arguments);return this},render:function(){var g=_.defaults(this.model.toJSON(),{orientation:&quot;landscape&quot;,uploading:false,type:&quot;&quot;,subtype:&quot;&quot;,icon:&quot;&quot;,filename:&quot;&quot;,caption:&quot;&quot;,title:&quot;&quot;,dateFormatted:&quot;&quot;,width:&quot;&quot;,height:&quot;&quot;,compat:false,alt:&quot;&quot;,description:&quot;&quot;});g.buttons=this.buttons;g.describe=this.controller.state().get(&quot;describe&quot;);if(&quot;image&quot;===g.type){g.size=this.imageSize()}g.can={};if(g.nonces){g.can.remove=!!g.nonces[&quot;delete&quot;];g.can.save=!!g.nonces.update}if(this.controller.state().get(&quot;allowLocalEdits&quot;)){g.allowLocalEdits=true}this.views.detach();this.$el.html(this.template(g));this.$el.toggleClass(&quot;uploading&quot;,g.uploading);if(g
 .uploading){this.$bar=this.$(&quot;.media-progress-bar div&quot;)}else{delete this.$bar}this.updateSelect();this.updateSave();this.views.render();return this},progress:function(){if(this.$bar&amp;&amp;this.$bar.length){this.$bar.width(this.model.get(&quot;percent&quot;)+&quot;%&quot;)}},toggleSelectionHandler:function(g){var h;if(g.shiftKey){h=&quot;between&quot;}else{if(g.ctrlKey||g.metaKey){h=&quot;toggle&quot;}}this.toggleSelection({method:h})},toggleSelection:function(p){var k=this.collection,l=this.options.selection,j=this.model,g=p&amp;&amp;p.method,m,n,h,i,o;if(!l){return}m=l.single();g=_.isUndefined(g)?l.multiple:g;if(&quot;between&quot;===g&amp;&amp;m&amp;&amp;l.multiple){if(m===j){return}i=k.indexOf(m);o=k.indexOf(this.model);if(i&lt;o){h=k.models.slice(i,o+1)}else{h=k.models.slice(o,i+1)}l.add(h).single(j);return}else{if(&quot;toggle&quot;===g){l[this.selected()?&quot;remove&quot;:&quot;add&quot;](j).single(j);return}}if(g!==&quot;add&quot;){g=&quot;reset&quot;}if
 (this.selected()){l[m===j?&quot;remove&quot;:&quot;single&quot;](j)}else{l[g](j).single(j)}},updateSelect:function(){this[this.selected()?&quot;select&quot;:&quot;deselect&quot;]()},selected:function(){var g=this.options.selection;if(g){return !!g.get(this.model.cid)}},select:function(g,i){var h=this.options.selection;if(!h||(i&amp;&amp;i!==h)){return}this.$el.addClass(&quot;selected&quot;)},deselect:function(g,i){var h=this.options.selection;if(!h||(i&amp;&amp;i!==h)){return}this.$el.removeClass(&quot;selected&quot;)},details:function(g,j){var i=this.options.selection,h;if(i!==j){return}h=i.single();this.$el.toggleClass(&quot;details&quot;,h===this.model)},preventDefault:function(g){g.preventDefault()},imageSize:function(g){var h=this.model.get(&quot;sizes&quot;);g=g||&quot;medium&quot;;if(h&amp;&amp;h[g]){return _.clone(h[g])}else{return{url:this.model.get(&quot;url&quot;),width:this.model.get(&quot;width&quot;),height:this.model.get(&quot;height&quot;),orientation:this.mo
 del.get(&quot;orientation&quot;)}}},updateSetting:function(i){var g=e(i.target).closest(&quot;[data-setting]&quot;),h,j;if(!g.length){return}h=g.data(&quot;setting&quot;);j=i.target.value;if(this.model.get(h)!==j){this.save(h,j)}},save:function(){var g=this,i=this._save=this._save||{status:&quot;ready&quot;},h=this.model.save.apply(this.model,arguments),j=i.requests?e.when(h,i.requests):h;if(i.savedTimer){clearTimeout(i.savedTimer)}this.updateSave(&quot;waiting&quot;);i.requests=j;j.always(function(){if(i.requests!==j){return}g.updateSave(j.state()===&quot;resolved&quot;?&quot;complete&quot;:&quot;error&quot;);i.savedTimer=setTimeout(function(){g.updateSave(&quot;ready&quot;);delete i.savedTimer},2000)})},updateSave:function(g){var h=this._save=this._save||{status:&quot;ready&quot;};if(g&amp;&amp;g!==h.status){this.$el.removeClass(&quot;save-&quot;+h.status);h.status=g}this.$el.addClass(&quot;save-&quot;+h.status);return this},updateAll:function(){var h=this.$(&quot;[data-se
 tting]&quot;),g=this.model,i;i=_.chain(h).map(function(k){var m=e(&quot;input, textarea, select, [value]&quot;,k),j,l;if(!m.length){return}j=e(k).data(&quot;setting&quot;);l=m.val();if(g.get(j)!==l){return[j,l]}}).compact().object().value();if(!_.isEmpty(i)){g.save(i)}},removeFromLibrary:function(g){g.stopPropagation();this.collection.remove(this.model)},removeFromSelection:function(h){var g=this.options.selection;if(!g){return}h.stopPropagation();g.remove(this.model)}});_.each({caption:&quot;_syncCaption&quot;,title:&quot;_syncTitle&quot;},function(h,g){f.view.Attachment.prototype[h]=function(i,k){var j=this.$('[data-setting=&quot;'+g+'&quot;]');if(!j.length){return this}if(k===j.find(&quot;input, textarea, select, [value]&quot;).val()){return this}return this.render()}});f.view.Attachment.Library=f.view.Attachment.extend({buttons:{check:true}});f.view.Attachment.EditLibrary=f.view.Attachment.extend({buttons:{close:true}});f.view.Attachments=f.View.extend({tagName:&quot;ul&
 quot;,className:&quot;attachments&quot;,cssTemplate:f.template(&quot;attachments-css&quot;),events:{scroll:&quot;scroll&quot;},initialize:function(){this.el.id=_.uniqueId(&quot;__attachments-view-&quot;);_.defaults(this.options,{refreshSensitivity:200,refreshThreshold:3,AttachmentView:f.view.Attachment,sortable:false,resize:true});this._viewsByCid={};this.collection.on(&quot;add&quot;,function(i,g,h){this.views.add(this.createAttachmentView(i),{at:this.collection.indexOf(i)})},this);this.collection.on(&quot;remove&quot;,function(j,g,i){var h=this._viewsByCid[j.cid];delete this._viewsByCid[j.cid];if(h){h.remove()}},this);this.collection.on(&quot;reset&quot;,this.render,this);this.scroll=_.chain(this.scroll).bind(this).throttle(this.options.refreshSensitivity).value();this.initSortable();_.bindAll(this,&quot;css&quot;);this.model.on(&quot;change:edge change:gutter&quot;,this.css,this);this._resizeCss=_.debounce(_.bind(this.css,this),this.refreshSensitivity);if(this.options.res
 ize){e(window).on(&quot;resize.attachments&quot;,this._resizeCss)}this.css()},dispose:function(){this.collection.props.off(null,null,this);e(window).off(&quot;resize.attachments&quot;,this._resizeCss);f.View.prototype.dispose.apply(this,arguments)},css:function(){var g=e(&quot;#&quot;+this.el.id+&quot;-css&quot;);if(g.length){g.remove()}f.view.Attachments.$head().append(this.cssTemplate({id:this.el.id,edge:this.edge(),gutter:this.model.get(&quot;gutter&quot;)}))},edge:function(){var i=this.model.get(&quot;edge&quot;),j,h,g;if(!this.$el.is(&quot;:visible&quot;)){return i}j=this.model.get(&quot;gutter&quot;)*2;h=this.$el.width()-j;g=Math.ceil(h/(i+j));i=Math.floor((h-(g*j))/g);return i},initSortable:function(){var g=this.collection;if(!this.options.sortable||!e.fn.sortable){return}this.$el.sortable(_.extend({disabled:!!g.comparator,containment:this.$el,tolerance:&quot;pointer&quot;,start:function(h,i){i.item.data(&quot;sortableIndexStart&quot;,i.item.index())},update:function(
 j,k){var i=g.at(k.item.data(&quot;sortableIndexStart&quot;)),h=g.comparator;delete g.comparator;g.remove(i,{silent:true}).add(i,{silent:true,at:k.item.index()});g.comparator=h;g.trigger(&quot;reset&quot;,g);g.saveMenuOrder()}},this.options.sortable));g.props.on(&quot;change:orderby&quot;,function(){this.$el.sortable(&quot;option&quot;,&quot;disabled&quot;,!!g.comparator)},this);this.collection.props.on(&quot;change:orderby&quot;,this.refreshSortable,this);this.refreshSortable()},refreshSortable:function(){if(!this.options.sortable||!e.fn.sortable){return}var i=this.collection,h=i.props.get(&quot;orderby&quot;),g=&quot;menuOrder&quot;===h||!i.comparator;this.$el.sortable(&quot;option&quot;,&quot;disabled&quot;,!g)},createAttachmentView:function(h){var g=new this.options.AttachmentView({controller:this.controller,model:h,collection:this.collection,selection:this.options.selection});return this._viewsByCid[h.cid]=g},prepare:function(){if(this.collection.length){this.views.set(t
 his.collection.map(this.createAttachmentView,this))}else{this.views.unset();this.collection.more().done(this.scroll)}},ready:function(){this.scroll()},scroll:function(g){if(!this.$el.is(&quot;:visible&quot;)){return}if(this.collection.hasMore()&amp;&amp;this.el.scrollHeight&lt;this.el.scrollTop+(this.el.clientHeight*this.options.refreshThreshold)){this.collection.more().done(this.scroll)}}},{$head:(function(){var g;return function(){return g=g||e(&quot;head&quot;)}}())});f.view.Search=f.View.extend({tagName:&quot;input&quot;,className:&quot;search&quot;,attributes:{type:&quot;search&quot;,placeholder:b.search},events:{input:&quot;search&quot;,keyup:&quot;search&quot;,change:&quot;search&quot;,search:&quot;search&quot;},render:function(){this.el.value=this.model.escape(&quot;search&quot;);return this},search:function(g){if(g.target.value){this.model.set(&quot;search&quot;,g.target.value)}else{this.model.unset(&quot;search&quot;)}}});f.view.AttachmentFilters=f.View.extend({tag
 Name:&quot;select&quot;,className:&quot;attachment-filters&quot;,events:{change:&quot;change&quot;},keys:[],initialize:function(){this.createFilters();_.extend(this.filters,this.options.filters);this.$el.html(_.chain(this.filters).map(function(g,h){return{el:e(&quot;&lt;option&gt;&lt;/option&gt;&quot;).val(h).text(g.text)[0],priority:g.priority||50}},this).sortBy(&quot;priority&quot;).pluck(&quot;el&quot;).value());this.model.on(&quot;change&quot;,this.select,this);this.select()},createFilters:function(){this.filters={}},change:function(h){var g=this.filters[this.el.value];if(g){this.model.set(g.props)}},select:function(){var g=this.model,i=&quot;all&quot;,h=g.toJSON();_.find(this.filters,function(k,l){var j=_.all(k.props,function(n,m){return n===(_.isUndefined(h[m])?null:h[m])});if(j){return i=l}});this.$el.val(i)}});f.view.AttachmentFilters.Uploaded=f.view.AttachmentFilters.extend({createFilters:function(){var h=this.model.get(&quot;type&quot;),g=f.view.settings.mimeTypes,
 i;if(g&amp;&amp;h){i=g[h]}this.filters={all:{text:i||b.allMediaItems,props:{uploadedTo:null,orderby:&quot;date&quot;,order:&quot;DESC&quot;},priority:10},uploaded:{text:b.uploadedToThisPost,props:{uploadedTo:f.view.settings.post.id,orderby:&quot;menuOrder&quot;,order:&quot;ASC&quot;},priority:20}}}});f.view.AttachmentFilters.All=f.view.AttachmentFilters.extend({createFilters:function(){var g={};_.each(f.view.settings.mimeTypes||{},function(i,h){g[h]={text:i,props:{type:h,uploadedTo:null,orderby:&quot;date&quot;,order:&quot;DESC&quot;}}});g.all={text:b.allMediaItems,props:{type:null,uploadedTo:null,orderby:&quot;date&quot;,order:&quot;DESC&quot;},priority:10};g.uploaded={text:b.uploadedToThisPost,props:{type:null,uploadedTo:f.view.settings.post.id,orderby:&quot;menuOrder&quot;,order:&quot;ASC&quot;},priority:20};this.filters=g}});f.view.AttachmentsBrowser=f.View.extend({tagName:&quot;div&quot;,className:&quot;attachments-browser&quot;,initialize:function(){_.defaults(this.opt
 ions,{filters:false,search:true,display:false,AttachmentView:f.view.Attachment.Library});this.createToolbar();this.updateContent();this.createSidebar();this.collection.on(&quot;add remove reset&quot;,this.updateContent,this)},dispose:function(){this.options.selection.off(null,null,this);f.View.prototype.dispose.apply(this,arguments);return this},createToolbar:function(){var h,g;this.toolbar=new f.view.Toolbar({controller:this.controller});this.views.add(this.toolbar);h=this.options.filters;if(&quot;uploaded&quot;===h){g=f.view.AttachmentFilters.Uploaded}else{if(&quot;all&quot;===h){g=f.view.AttachmentFilters.All}}if(g){this.toolbar.set(&quot;filters&quot;,new g({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search){this.toolbar.set(&quot;search&quot;,new f.view.Search({controller:this.controller,model:this.collection.props,priority:60}).render())}if(this.options.dragInfo){this.toolbar.set(&quot;dragInfo&quot;,new f.View({el:e
 ('&lt;div class=&quot;instructions&quot;&gt;'+b.dragInfo+&quot;&lt;/div&gt;&quot;)[0],priority:-40}))}},updateContent:function(){var g=this;if(!this.attachments){this.createAttachments()}if(!this.collection.length){this.collection.more().done(function(){if(!g.collection.length){g.createUploader()}})}},removeContent:function(){_.each([&quot;attachments&quot;,&quot;uploader&quot;],function(g){if(this[g]){this[g].remove();delete this[g]}},this)},createUploader:function(){this.removeContent();this.uploader=new f.view.UploaderInline({controller:this.controller,status:false,message:b.noItemsFound});this.views.add(this.uploader)},createAttachments:function(){this.removeContent();this.attachments=new f.view.Attachments({controller:this.controller,collection:this.collection,selection:this.options.selection,model:this.model,sortable:this.options.sortable,AttachmentView:this.options.AttachmentView});this.views.add(this.attachments)},createSidebar:function(){var g=this.options,h=g.selec
 tion,i=this.sidebar=new f.view.Sidebar({controller:this.controller});this.views.add(i);if(this.controller.uploader){i.set(&quot;uploads&quot;,new f.view.UploaderStatus({controller:this.controller,priority:40}))}h.on(&quot;selection:single&quot;,this.createSingle,this);h.on(&quot;selection:unsingle&quot;,this.disposeSingle,this);if(h.single()){this.createSingle()}},createSingle:function(){var h=this.sidebar,i=this.options.selection.single(),g={};h.set(&quot;details&quot;,new f.view.Attachment.Details({controller:this.controller,model:i,priority:80}));h.set(&quot;compat&quot;,new f.view.AttachmentCompat({controller:this.controller,model:i,priority:120}));if(this.options.display){h.set(&quot;display&quot;,new f.view.Settings.AttachmentDisplay({controller:this.controller,model:this.model.display(i),attachment:i,priority:160,userSettings:this.model.get(&quot;displayUserSettings&quot;)}))}},disposeSingle:function(){var g=this.sidebar;g.unset(&quot;details&quot;);g.unset(&quot;comp
 at&quot;);g.unset(&quot;display&quot;)}});f.view.Selection=f.View.extend({tagName:&quot;div&quot;,className:&quot;media-selection&quot;,template:f.template(&quot;media-selection&quot;),events:{&quot;click .edit-selection&quot;:&quot;edit&quot;,&quot;click .clear-selection&quot;:&quot;clear&quot;},initialize:function(){_.defaults(this.options,{editable:false,clearable:true});this.attachments=new f.view.Attachments.Selection({controller:this.controller,collection:this.collection,selection:this.collection,model:new Backbone.Model({edge:40,gutter:5})});this.views.set(&quot;.selection-view&quot;,this.attachments);this.collection.on(&quot;add remove reset&quot;,this.refresh,this);this.controller.on(&quot;content:activate&quot;,this.refresh,this)},ready:function(){this.refresh()},refresh:function(){if(!this.$el.children().length){return}var h=this.collection,g=&quot;edit-selection&quot;===this.controller.content.mode();this.$el.toggleClass(&quot;empty&quot;,!h.length);this.$el.togg
 leClass(&quot;one&quot;,1===h.length);this.$el.toggleClass(&quot;editing&quot;,g);this.$(&quot;.count&quot;).text(b.selected.replace(&quot;%d&quot;,h.length))},edit:function(g){g.preventDefault();if(this.options.editable){this.options.editable.call(this,this.collection)}},clear:function(g){g.preventDefault();this.collection.reset()}});f.view.Attachment.Selection=f.view.Attachment.extend({className:&quot;attachment selection&quot;,toggleSelection:function(){this.options.selection.single(this.model)}});f.view.Attachments.Selection=f.view.Attachments.extend({events:{},initialize:function(){_.defaults(this.options,{sortable:true,resize:false,AttachmentView:f.view.Attachment.Selection});return f.view.Attachments.prototype.initialize.apply(this,arguments)}});f.view.Attachment.EditSelection=f.view.Attachment.Selection.extend({buttons:{close:true}});f.view.Settings=f.View.extend({events:{&quot;click button&quot;:&quot;updateHandler&quot;,&quot;change input&quot;:&quot;updateHandler&
 quot;,&quot;change select&quot;:&quot;updateHandler&quot;,&quot;change textarea&quot;:&quot;updateHandler&quot;},initialize:function(){this.model=this.model||new Backbone.Model();this.model.on(&quot;change&quot;,this.updateChanges,this)},prepare:function(){return _.defaults({model:this.model.toJSON()},this.options)},render:function(){f.View.prototype.render.apply(this,arguments);_(this.model.attributes).chain().keys().each(this.update,this);return this},update:function(j){var k=this.model.get(j),i=this.$('[data-setting=&quot;'+j+'&quot;]'),g,h;if(!i.length){return}if(i.is(&quot;select&quot;)){h=i.find('[value=&quot;'+k+'&quot;]');if(h.length){i.find(&quot;option&quot;).prop(&quot;selected&quot;,false);h.prop(&quot;selected&quot;,true)}else{this.model.set(j,i.find(&quot;:selected&quot;).val())}}else{if(i.hasClass(&quot;button-group&quot;)){g=i.find(&quot;button&quot;).removeClass(&quot;active&quot;);g.filter('[value=&quot;'+k+'&quot;]').addClass(&quot;active&quot;)}else{if(i.
 is('input[type=&quot;text&quot;], textarea')){if(!i.is(&quot;:focus&quot;)){i.val(k)}}else{if(i.is('input[type=&quot;checkbox&quot;]')){i.attr(&quot;checked&quot;,!!k)}}}}},updateHandler:function(i){var h=e(i.target).closest(&quot;[data-setting]&quot;),j=i.target.value,g;i.preventDefault();if(!h.length){return}if(h.is('input[type=&quot;checkbox&quot;]')){j=h[0].checked}this.model.set(h.data(&quot;setting&quot;),j);if(g=h.data(&quot;userSetting&quot;)){setUserSetting(g,j)}},updateChanges:function(h,g){if(h.hasChanged()){_(h.changed).chain().keys().each(this.update,this)}}});f.view.Settings.AttachmentDisplay=f.view.Settings.extend({className:&quot;attachment-display-settings&quot;,template:f.template(&quot;attachment-display-settings&quot;),initialize:function(){var g=this.options.attachment;_.defaults(this.options,{userSettings:false});f.view.Settings.prototype.initialize.apply(this,arguments);this.model.on(&quot;change:link&quot;,this.updateLinkTo,this);if(g){g.on(&quot;chan
 ge:uploading&quot;,this.render,this)}},dispose:function(){var g=this.options.attachment;if(g){g.off(null,null,this)}f.view.Settings.prototype.dispose.apply(this,arguments)},render:function(){var g=this.options.attachment;if(g){_.extend(this.options,{sizes:g.get(&quot;sizes&quot;),type:g.get(&quot;type&quot;)})}f.view.Settings.prototype.render.call(this);this.updateLinkTo();return this},updateLinkTo:function(){var h=this.model.get(&quot;link&quot;),i=this.$(&quot;.link-to-custom&quot;),g=this.options.attachment;if(&quot;none&quot;===h||(!g&amp;&amp;&quot;custom&quot;!==h)){i.hide();return}if(g){if(&quot;post&quot;===h){i.val(g.get(&quot;link&quot;))}else{if(&quot;file&quot;===h){i.val(g.get(&quot;url&quot;))}else{if(!this.model.get(&quot;linkUrl&quot;)){i.val(&quot;http://&quot;)}}}i.prop(&quot;readonly&quot;,&quot;custom&quot;!==h)}i.show();if(i.is(&quot;:visible&quot;)){i.focus()[0].select()}}});f.view.Settings.Gallery=f.view.Settings.extend({className:&quot;gallery-setting
 s&quot;,template:f.template(&quot;gallery-settings&quot;)});f.view.Attachment.Details=f.view.Attachment.extend({tagName:&quot;div&quot;,className:&quot;attachment-details&quot;,template:f.template(&quot;attachment-details&quot;),events:{&quot;change [data-setting]&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] input&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] select&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] textarea&quot;:&quot;updateSetting&quot;,&quot;click .delete-attachment&quot;:&quot;deleteAttachment&quot;,&quot;click .edit-attachment&quot;:&quot;editAttachment&quot;,&quot;click .refresh-attachment&quot;:&quot;refreshAttachment&quot;},initialize:function(){this.focusManager=new f.view.FocusManager({el:this.el});f.view.Attachment.prototype.initialize.apply(this,arguments)},render:function(){f.view.Attachment.prototype.render.apply(this,arguments);this.focusManager.focus();return this},deleteAttachment:function(g){g.preventD
 efault();if(confirm(b.warnDelete)){this.model.destroy()}},editAttachment:function(g){this.$el.addClass(&quot;needs-refresh&quot;)},refreshAttachment:function(g){this.$el.removeClass(&quot;needs-refresh&quot;);g.preventDefault();this.model.fetch()}});f.view.AttachmentCompat=f.View.extend({tagName:&quot;form&quot;,className:&quot;compat-item&quot;,events:{submit:&quot;preventDefault&quot;,&quot;change input&quot;:&quot;save&quot;,&quot;change select&quot;:&quot;save&quot;,&quot;change textarea&quot;:&quot;save&quot;},initialize:function(){this.focusManager=new f.view.FocusManager({el:this.el});this.model.on(&quot;change:compat&quot;,this.render,this)},dispose:function(){if(this.$(&quot;:focus&quot;).length){this.save()}return f.View.prototype.dispose.apply(this,arguments)},render:function(){var g=this.model.get(&quot;compat&quot;);if(!g||!g.item){return}this.views.detach();this.$el.html(g.item);this.views.render();this.focusManager.focus();return this},preventDefault:function(
 g){g.preventDefault()},save:function(g){var h={};if(g){g.preventDefault()}_.each(this.$el.serializeArray(),function(i){h[i.name]=i.value});this.model.saveCompat(h)}});f.view.Iframe=f.View.extend({className:&quot;media-iframe&quot;,render:function(){this.views.detach();this.$el.html('&lt;iframe src=&quot;'+this.controller.state().get(&quot;src&quot;)+'&quot; /&gt;');this.views.render();return this}});f.view.Embed=f.View.extend({className:&quot;media-embed&quot;,initialize:function(){this.url=new f.view.EmbedUrl({controller:this.controller,model:this.model.props}).render();this.views.set([this.url]);this.refresh();this.model.on(&quot;change:type&quot;,this.refresh,this);this.model.on(&quot;change:loading&quot;,this.loading,this)},settings:function(g){if(this._settings){this._settings.remove()}this._settings=g;this.views.add(g)},refresh:function(){var h=this.model.get(&quot;type&quot;),g;if(&quot;image&quot;===h){g=f.view.EmbedImage}else{if(&quot;link&quot;===h){g=f.view.EmbedL
 ink}else{return}}this.settings(new g({controller:this.controller,model:this.model.props,priority:40}))},loading:function(){this.$el.toggleClass(&quot;embed-loading&quot;,this.model.get(&quot;loading&quot;))}});f.view.EmbedUrl=f.View.extend({tagName:&quot;label&quot;,className:&quot;embed-url&quot;,events:{input:&quot;url&quot;,keyup:&quot;url&quot;,change:&quot;url&quot;},initialize:function(){this.$input=e(&quot;&lt;input/&gt;&quot;).attr(&quot;type&quot;,&quot;text&quot;).val(this.model.get(&quot;url&quot;));this.input=this.$input[0];this.spinner=e('&lt;span class=&quot;spinner&quot; /&gt;')[0];this.$el.append([this.input,this.spinner]);this.model.on(&quot;change:url&quot;,this.render,this)},render:function(){var g=this.$input;if(g.is(&quot;:focus&quot;)){return}this.input.value=this.model.get(&quot;url&quot;)||&quot;http://&quot;;f.View.prototype.render.apply(this,arguments);return this},ready:function(){this.focus()},url:function(g){this.model.set(&quot;url&quot;,g.targe
 t.value)},focus:function(){var g=this.$input;if(g.is(&quot;:visible&quot;)){g.focus()[0].select()}}});f.view.EmbedLink=f.view.Settings.extend({className:&quot;embed-link-settings&quot;,template:f.template(&quot;embed-link-settings&quot;)});f.view.EmbedImage=f.view.Settings.AttachmentDisplay.extend({className:&quot;embed-image-settings&quot;,template:f.template(&quot;embed-image-settings&quot;),initialize:function(){f.view.Settings.AttachmentDisplay.prototype.initialize.apply(this,arguments);this.model.on(&quot;change:url&quot;,this.updateImage,this)},updateImage:function(){this.$(&quot;img&quot;).attr(&quot;src&quot;,this.model.get(&quot;url&quot;))}})}(jQuery));
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(e){var f=wp.media,d=f.model.Attachment,c=f.model.Attachments,a=f.model.Query,b;b=f.view.l10n=typeof _wpMediaViewsL10n===&quot;undefined&quot;?{}:_wpMediaViewsL10n;f.view.settings=b.settings||{};delete b.settings;f.model.settings.post=f.view.settings.post;e.support.transition=(function(){var g=document.documentElement.style,h={WebkitTransition:&quot;webkitTransitionEnd&quot;,MozTransition:&quot;transitionend&quot;,OTransition:&quot;oTransitionEnd otransitionend&quot;,transition:&quot;transitionend&quot;},i;i=_.find(_.keys(h),function(j){return !_.isUndefined(g[j])});return i&amp;&amp;{end:h[i]}}());f.transition=function(g,h){var i=e.Deferred();h=h||2000;if(e.support.transition){if(!(g instanceof e)){g=e(g)}g.first().one(e.support.transition.end,i.resolve);_.delay(i.resolve,h)}else{i.resolve()}return i.promise()};f.controller.Region=function(g){_.extend(this,_.pick(g||{},&quot;id&quot;,&quot;view&quot;,&quot;selector&quot;))};f.controller.Region.extend=Ba
 ckbone.Model.extend;_.extend(f.controller.Region.prototype,{mode:function(g){if(!g){return this._mode}if(g===this._mode){return this}this.trigger(&quot;deactivate&quot;);this._mode=g;this.render(g);this.trigger(&quot;activate&quot;);return this},render:function(h){if(h&amp;&amp;h!==this._mode){return this.mode(h)}var i={view:null},g;this.trigger(&quot;create&quot;,i);g=i.view;this.trigger(&quot;render&quot;,g);if(g){this.set(g)}return this},get:function(){return this.view.views.first(this.selector)},set:function(g,h){if(h){h.add=false}return this.view.views.set(this.selector,g,h)},trigger:function(h){var i;if(!this._mode){return}var g=_.toArray(arguments);i=this.id+&quot;:&quot;+h;g[0]=i+&quot;:&quot;+this._mode;this.view.trigger.apply(this.view,g);g[0]=i;this.view.trigger.apply(this.view,g);return this}});f.controller.StateMachine=function(g){this.states=new Backbone.Collection(g)};f.controller.StateMachine.extend=Backbone.Model.extend;_.extend(f.controller.StateMachine.pro
 totype,Backbone.Events,{state:function(g){this.states=this.states||new Backbone.Collection();g=g||this._state;if(g&amp;&amp;!this.states.get(g)){this.states.add({id:g})}return this.states.get(g)},setState:function(h){var g=this.state();if((g&amp;&amp;h===g.id)||!this.states||!this.states.get(h)){return this}if(g){g.trigger(&quot;deactivate&quot;);this._lastState=g.id}this._state=h;this.state().trigger(&quot;activate&quot;);return this},lastState:function(){if(this._lastState){return this.state(this._lastState)}}});_.each([&quot;on&quot;,&quot;off&quot;,&quot;trigger&quot;],function(g){f.controller.StateMachine.prototype[g]=function(){this.states=this.states||new Backbone.Collection();this.states[g].apply(this.states,arguments);return this}});f.controller.State=Backbone.Model.extend({constructor:function(){this.on(&quot;activate&quot;,this._preActivate,this);this.on(&quot;activate&quot;,this.activate,this);this.on(&quot;activate&quot;,this._postActivate,this);this.on(&quot;de
 activate&quot;,this._deactivate,this);this.on(&quot;deactivate&quot;,this.deactivate,this);this.on(&quot;reset&quot;,this.reset,this);this.on(&quot;ready&quot;,this._ready,this);this.on(&quot;ready&quot;,this.ready,this);Backbone.Model.apply(this,arguments);this.on(&quot;change:menu&quot;,this._updateMenu,this)},ready:function(){},activate:function(){},deactivate:function(){},reset:function(){},_ready:function(){this._updateMenu()},_preActivate:function(){this.active=true},_postActivate:function(){this.on(&quot;change:menu&quot;,this._menu,this);this.on(&quot;change:titleMode&quot;,this._title,this);this.on(&quot;change:content&quot;,this._content,this);this.on(&quot;change:toolbar&quot;,this._toolbar,this);this.frame.on(&quot;title:render:default&quot;,this._renderTitle,this);this._title();this._menu();this._toolbar();this._content();this._router()},_deactivate:function(){this.active=false;this.frame.off(&quot;title:render:default&quot;,this._renderTitle,this);this.off(&quo
 t;change:menu&quot;,this._menu,this);this.off(&quot;change:titleMode&quot;,this._title,this);this.off(&quot;change:content&quot;,this._content,this);this.off(&quot;change:toolbar&quot;,this._toolbar,this)},_title:function(){this.frame.title.render(this.get(&quot;titleMode&quot;)||&quot;default&quot;)},_renderTitle:function(g){g.$el.text(this.get(&quot;title&quot;)||&quot;&quot;)},_router:function(){var h=this.frame.router,i=this.get(&quot;router&quot;),g;this.frame.$el.toggleClass(&quot;hide-router&quot;,!i);if(!i){return}this.frame.router.render(i);g=h.get();if(g&amp;&amp;g.select){g.select(this.frame.content.mode())}},_menu:function(){var i=this.frame.menu,h=this.get(&quot;menu&quot;),g;if(!h){return}i.mode(h);g=i.get();if(g&amp;&amp;g.select){g.select(this.id)}},_updateMenu:function(){var g=this.previous(&quot;menu&quot;),h=this.get(&quot;menu&quot;);if(g){this.frame.off(&quot;menu:render:&quot;+g,this._renderMenu,this)}if(h){this.frame.on(&quot;menu:render:&quot;+h,this.
 _renderMenu,this)}},_renderMenu:function(g){var i=this.get(&quot;menuItem&quot;),j=this.get(&quot;title&quot;),h=this.get(&quot;priority&quot;);if(!i&amp;&amp;j){i={text:j};if(h){i.priority=h}}if(!i){return}g.set(this.id,i)}});_.each([&quot;toolbar&quot;,&quot;content&quot;],function(g){f.controller.State.prototype[&quot;_&quot;+g]=function(){var h=this.get(g);if(h){this.frame[g].render(h)}}});f.controller.Library=f.controller.State.extend({defaults:{id:&quot;library&quot;,multiple:false,describe:false,toolbar:&quot;select&quot;,sidebar:&quot;settings&quot;,content:&quot;upload&quot;,router:&quot;browse&quot;,menu:&quot;default&quot;,searchable:true,filterable:false,sortable:true,title:b.mediaLibraryTitle,contentUserSetting:true,syncSelection:true},initialize:function(){var h=this.get(&quot;selection&quot;),g;if(!this.get(&quot;library&quot;)){this.set(&quot;library&quot;,f.query())}if(!(h instanceof f.model.Selection)){g=h;if(!g){g=this.get(&quot;library&quot;).props.toJSON
 ();g=_.omit(g,&quot;orderby&quot;,&quot;query&quot;)}this.set(&quot;selection&quot;,new f.model.Selection(null,{multiple:this.get(&quot;multiple&quot;),props:g}))}if(!this.get(&quot;edge&quot;)){this.set(&quot;edge&quot;,120)}if(!this.get(&quot;gutter&quot;)){this.set(&quot;gutter&quot;,8)}this.resetDisplays()},activate:function(){this.syncSelection();wp.Uploader.queue.on(&quot;add&quot;,this.uploading,this);this.get(&quot;selection&quot;).on(&quot;add remove reset&quot;,this.refreshContent,this);if(this.get(&quot;contentUserSetting&quot;)){this.frame.on(&quot;content:activate&quot;,this.saveContentMode,this);this.set(&quot;content&quot;,getUserSetting(&quot;libraryContent&quot;,this.get(&quot;content&quot;)))}},deactivate:function(){this.recordSelection();this.frame.off(&quot;content:activate&quot;,this.saveContentMode,this);this.get(&quot;selection&quot;).off(null,null,this);wp.Uploader.queue.off(null,null,this)},reset:function(){this.get(&quot;selection&quot;).reset();thi
 s.resetDisplays();this.refreshContent()},resetDisplays:function(){var g=f.view.settings.defaultProps;this._displays=[];this._defaultDisplaySettings={align:g.align||getUserSetting(&quot;align&quot;,&quot;none&quot;),size:g.size||getUserSetting(&quot;imgsize&quot;,&quot;medium&quot;),link:g.link||getUserSetting(&quot;urlbutton&quot;,&quot;file&quot;)}},display:function(h){var g=this._displays;if(!g[h.cid]){g[h.cid]=new Backbone.Model(this._defaultDisplaySettings)}return g[h.cid]},syncSelection:function(){var h=this.get(&quot;selection&quot;),g=this.frame._selection;if(!this.get(&quot;syncSelection&quot;)||!g||!h){return}if(h.multiple){h.reset([],{silent:true});h.validateAll(g.attachments);g.difference=_.difference(g.attachments.models,h.models)}h.single(g.single)},recordSelection:function(){var i=this.get(&quot;selection&quot;),h=this.frame._selection,g;if(!this.get(&quot;syncSelection&quot;)||!h||!i){return}if(i.multiple){h.attachments.reset(i.toArray().concat(h.difference));
 h.difference=[]}else{h.attachments.add(i.toArray())}h.single=i._single},refreshContent:function(){var h=this.get(&quot;selection&quot;),j=this.frame,g=j.router.get(),i=j.content.mode();if(this.active&amp;&amp;!h.length&amp;&amp;g&amp;&amp;!g.get(i)){this.frame.content.render(this.get(&quot;content&quot;))}},uploading:function(h){var g=this.frame.content;if(&quot;upload&quot;===g.mode()){this.frame.content.mode(&quot;browse&quot;)}this.get(&quot;selection&quot;).add(h)},saveContentMode:function(){if(&quot;browse&quot;!==this.get(&quot;router&quot;)){return}var h=this.frame.content.mode(),g=this.frame.router.get();if(g&amp;&amp;g.get(h)){setUserSetting(&quot;libraryContent&quot;,h)}}});f.controller.GalleryEdit=f.controller.Library.extend({defaults:{id:&quot;gallery-edit&quot;,multiple:false,describe:true,edge:199,editing:false,sortable:true,searchable:false,toolbar:&quot;gallery-edit&quot;,content:&quot;browse&quot;,title:b.editGalleryTitle,priority:60,dragInfo:true,syncSelect
 ion:false},initialize:function(){if(!this.get(&quot;library&quot;)){this.set(&quot;library&quot;,new f.model.Selection())}if(!this.get(&quot;AttachmentView&quot;)){this.set(&quot;AttachmentView&quot;,f.view.Attachment.EditLibrary)}f.controller.Library.prototype.initialize.apply(this,arguments)},activate:function(){var g=this.get(&quot;library&quot;);g.props.set(&quot;type&quot;,&quot;image&quot;);this.get(&quot;library&quot;).observe(wp.Uploader.queue);this.frame.on(&quot;content:render:browse&quot;,this.gallerySettings,this);f.controller.Library.prototype.activate.apply(this,arguments)},deactivate:function(){this.get(&quot;library&quot;).unobserve(wp.Uploader.queue);this.frame.off(&quot;content:render:browse&quot;,this.gallerySettings,this);f.controller.Library.prototype.deactivate.apply(this,arguments)},gallerySettings:function(h){var g=this.get(&quot;library&quot;);if(!g||!h){return}g.gallery=g.gallery||new Backbone.Model();h.sidebar.set({gallery:new f.view.Settings.Galle
 ry({controller:this,model:g.gallery,priority:40})});h.toolbar.set(&quot;reverse&quot;,{text:b.reverseOrder,priority:80,click:function(){g.reset(g.toArray().reverse())}})}});f.controller.GalleryAdd=f.controller.Library.extend({defaults:_.defaults({id:&quot;gallery-library&quot;,filterable:&quot;uploaded&quot;,multiple:&quot;add&quot;,menu:&quot;gallery&quot;,toolbar:&quot;gallery-add&quot;,title:b.addToGalleryTitle,priority:100,syncSelection:false},f.controller.Library.prototype.defaults),initialize:function(){if(!this.get(&quot;library&quot;)){this.set(&quot;library&quot;,f.query({type:&quot;image&quot;}))}f.controller.Library.prototype.initialize.apply(this,arguments)},activate:function(){var g=this.get(&quot;library&quot;),h=this.frame.state(&quot;gallery-edit&quot;).get(&quot;library&quot;);if(this.editLibrary&amp;&amp;this.editLibrary!==h){g.unobserve(this.editLibrary)}g.validator=function(i){return !!this.mirroring.get(i.cid)&amp;&amp;!h.get(i.cid)&amp;&amp;f.model.Sele
 ction.prototype.validator.apply(this,arguments)};g.reset(g.mirroring.models,{silent:true});g.observe(h);this.editLibrary=h;f.controller.Library.prototype.activate.apply(this,arguments)}});f.controller.FeaturedImage=f.controller.Library.extend({defaults:_.defaults({id:&quot;featured-image&quot;,filterable:&quot;uploaded&quot;,multiple:false,toolbar:&quot;featured-image&quot;,title:b.setFeaturedImageTitle,priority:60,syncSelection:false},f.controller.Library.prototype.defaults),initialize:function(){var h,g;if(!this.get(&quot;library&quot;)){this.set(&quot;library&quot;,f.query({type:&quot;image&quot;}))}f.controller.Library.prototype.initialize.apply(this,arguments);h=this.get(&quot;library&quot;);g=h.comparator;h.comparator=function(j,i){var l=!!this.mirroring.get(j.cid),k=!!this.mirroring.get(i.cid);if(!l&amp;&amp;k){return -1}else{if(l&amp;&amp;!k){return 1}else{return g.apply(this,arguments)}}};h.observe(this.get(&quot;selection&quot;))},activate:function(){this.updateSel
 ection();this.frame.on(&quot;open&quot;,this.updateSelection,this);f.controller.Library.prototype.activate.apply(this,arguments)},deactivate:function(){this.frame.off(&quot;open&quot;,this.updateSelection,this);f.controller.Library.prototype.deactivate.apply(this,arguments)},updateSelection:function(){var g=this.get(&quot;selection&quot;),i=f.view.settings.post.featuredImageId,h;if(&quot;&quot;!==i&amp;&amp;-1!==i){h=d.get(i);h.fetch()}g.reset(h?[h]:[])}});f.controller.Embed=f.controller.State.extend({defaults:{id:&quot;embed&quot;,url:&quot;&quot;,menu:&quot;default&quot;,content:&quot;embed&quot;,toolbar:&quot;main-embed&quot;,type:&quot;link&quot;,title:b.insertFromUrlTitle,priority:120},sensitivity:200,initialize:function(){this.debouncedScan=_.debounce(_.bind(this.scan,this),this.sensitivity);this.props=new Backbone.Model({url:&quot;&quot;});this.props.on(&quot;change:url&quot;,this.debouncedScan,this);this.props.on(&quot;change:url&quot;,this.refresh,this);this.on(&quo
 t;scan&quot;,this.scanImage,this)},scan:function(){var h,i=this,g={type:&quot;link&quot;,scanners:[]};if(this.props.get(&quot;url&quot;)){this.trigger(&quot;scan&quot;,g)}if(g.scanners.length){h=g.scanners=e.when.apply(e,g.scanners);h.always(function(){if(i.get(&quot;scanners&quot;)===h){i.set(&quot;loading&quot;,false)}})}else{g.scanners=null}g.loading=!!g.scanners;this.set(g)},scanImage:function(h){var l=this.frame,j=this,i=this.props.get(&quot;url&quot;),k=new Image(),g=e.Deferred();h.scanners.push(g.promise());k.onload=function(){g.resolve();if(j!==l.state()||i!==j.props.get(&quot;url&quot;)){return}j.set({type:&quot;image&quot;});j.props.set({width:k.width,height:k.height})};k.onerror=g.reject;k.src=i},refresh:function(){this.frame.toolbar.get().refresh()},reset:function(){this.props.clear().set({url:&quot;&quot;});if(this.active){this.refresh()}}});f.Views=function(h,g){this.view=h;this._views=_.isArray(g)?{&quot;&quot;:g}:g||{}};f.Views.extend=Backbone.Model.extend;_.
 extend(f.Views.prototype,{all:function(){return _.flatten(this._views)},get:function(g){g=g||&quot;&quot;;return this._views[g]},first:function(g){var h=this.get(g);return h&amp;&amp;h.length?h[0]:null},set:function(g,h,i){var k,j;if(!_.isString(g)){i=h;h=g;g=&quot;&quot;}i=i||{};h=_.isArray(h)?h:[h];k=this.get(g);j=h;if(k){if(i.add){if(_.isUndefined(i.at)){j=k.concat(h)}else{j=k;j.splice.apply(j,[i.at,0].concat(h))}}else{_.each(j,function(l){l.__detach=true});_.each(k,function(l){if(l.__detach){l.$el.detach()}else{l.dispose()}});_.each(j,function(l){delete l.__detach})}}this._views[g]=j;_.each(h,function(n){var l=n.Views||f.Views,m=n.views=n.views||new l(n);m.parent=this.view;m.selector=g},this);if(!i.silent){this._attach(g,h,_.extend({ready:this._isReady()},i))}return this},add:function(g,h,i){if(!_.isString(g)){i=h;h=g;g=&quot;&quot;}return this.set(g,h,_.extend({add:true},i))},unset:function(g,h,i){var j;if(!_.isString(g)){i=h;h=g;g=&quot;&quot;}h=h||[];if(j=this.get(g))
 {h=_.isArray(h)?h:[h];this._views[g]=h.length?_.difference(j,h):[]}if(!i||!i.silent){_.invoke(h,&quot;dispose&quot;)}return this},detach:function(){e(_.pluck(this.all(),&quot;el&quot;)).detach();return this},render:function(){var g={ready:this._isReady()};_.each(this._views,function(i,h){this._attach(h,i,g)},this);this.rendered=true;return this},dispose:function(g){if(!g||!g.silent){if(this.parent&amp;&amp;this.parent.views){this.parent.views.unset(this.selector,this.view,{silent:true})}delete this.parent;delete this.selector}_.invoke(this.all(),&quot;dispose&quot;);this._views=[];return this},replace:function(g,h){g.html(h);return this},insert:function(h,k,j){var g=j&amp;&amp;j.at,i;if(_.isNumber(g)&amp;&amp;(i=h.children()).length&gt;g){i.eq(g).before(k)}else{h.append(k)}return this},ready:function(){this.view.trigger(&quot;ready&quot;);_.chain(this.all()).map(function(g){return g.views}).flatten().where({attached:true}).invoke(&quot;ready&quot;)},_attach:function(g,h,i){v
 ar k=g?this.view.$(g):this.view.$el,j;if(!k.length){return this}j=_.chain(h).pluck(&quot;views&quot;).flatten().value();_.each(j,function(l){if(l.rendered){return}l.view.render();l.rendered=true},this);this[i.add?&quot;insert&quot;:&quot;replace&quot;](k,_.pluck(h,&quot;el&quot;),i);_.each(j,function(l){l.attached=true;if(i.ready){l.ready()}},this);return this},_isReady:function(){var g=this.view.el;while(g){if(g===document.body){return true}g=g.parentNode}return false}});f.View=Backbone.View.extend({Views:f.Views,constructor:function(g){this.views=new this.Views(this,this.views);this.on(&quot;ready&quot;,this.ready,this);if(g&amp;&amp;g.controller){this.controller=g.controller}Backbone.View.apply(this,arguments)},dispose:function(){this.undelegateEvents();if(this.model&amp;&amp;this.model.off){this.model.off(null,null,this)}if(this.collection&amp;&amp;this.collection.off){this.collection.off(null,null,this)}if(this.controller&amp;&amp;this.controller.off){this.controller.of
 f(null,null,this)}if(this.views){this.views.dispose()}return this},remove:function(){this.dispose();return Backbone.View.prototype.remove.apply(this,arguments)},render:function(){var g;if(this.prepare){g=this.prepare()}this.views.detach();if(this.template){g=g||{};this.trigger(&quot;prepare&quot;,g);this.$el.html(this.template(g))}this.views.render();return this},prepare:function(){return this.options},ready:function(){}});f.view.Frame=f.View.extend({initialize:function(){this._createRegions();this._createStates()},_createRegions:function(){this.regions=this.regions?this.regions.slice():[];_.each(this.regions,function(g){this[g]=new f.controller.Region({view:this,id:g,selector:&quot;.media-frame-&quot;+g})},this)},_createStates:function(){this.states=new Backbone.Collection(null,{model:f.controller.State});this.states.on(&quot;add&quot;,function(g){g.frame=this;g.trigger(&quot;ready&quot;)},this);if(this.options.states){this.states.add(this.options.states)}},reset:function()
 {this.states.invoke(&quot;trigger&quot;,&quot;reset&quot;);return this}});_.extend(f.view.Frame.prototype,f.controller.StateMachine.prototype);f.view.MediaFrame=f.view.Frame.extend({className:&quot;media-frame&quot;,template:f.template(&quot;media-frame&quot;),regions:[&quot;menu&quot;,&quot;title&quot;,&quot;content&quot;,&quot;toolbar&quot;,&quot;router&quot;],initialize:function(){f.view.Frame.prototype.initialize.apply(this,arguments);_.defaults(this.options,{title:&quot;&quot;,modal:true,uploader:true});this.$el.addClass(&quot;wp-core-ui&quot;);if(this.options.modal){this.modal=new f.view.Modal({controller:this,title:this.options.title});this.modal.content(this)}if(wp.Uploader.limitExceeded||!wp.Uploader.browser.supported){this.options.uploader=false}if(this.options.uploader){this.uploader=new f.view.UploaderWindow({controller:this,uploader:{dropzone:this.modal?this.modal.$el:this.$el,container:this.$el}});this.views.set(&quot;.media-frame-uploader&quot;,this.uploader)}
 this.on(&quot;attach&quot;,_.bind(this.views.ready,this.views),this);this.on(&quot;title:create:default&quot;,this.createTitle,this);this.title.mode(&quot;default&quot;);this.on(&quot;menu:create:default&quot;,this.createMenu,this)},render:function(){if(!this.state()&amp;&amp;this.options.state){this.setState(this.options.state)}return f.view.Frame.prototype.render.apply(this,arguments)},createTitle:function(g){g.view=new f.View({controller:this,tagName:&quot;h1&quot;})},createMenu:function(g){g.view=new f.view.Menu({controller:this})},createToolbar:function(g){g.view=new f.view.Toolbar({controller:this})},createRouter:function(g){g.view=new f.view.Router({controller:this})},createIframeStates:function(g){var j=f.view.settings,i=j.tabs,k=j.tabUrl,h;if(!i||!k){return}h=e(&quot;#post_ID&quot;);if(h.length){k+=&quot;&amp;post_id=&quot;+h.val()}_.each(i,function(m,n){var l=this.state(&quot;iframe:&quot;+n).set(_.defaults({tab:n,src:k+&quot;&amp;tab=&quot;+n,title:m,content:&quot
 ;iframe&quot;,menu:&quot;default&quot;},g))},this);this.on(&quot;content:create:iframe&quot;,this.iframeContent,this);this.on(&quot;menu:render:default&quot;,this.iframeMenu,this);this.on(&quot;open&quot;,this.hijackThickbox,this);this.on(&quot;close&quot;,this.restoreThickbox,this)},iframeContent:function(g){this.$el.addClass(&quot;hide-toolbar&quot;);g.view=new f.view.Iframe({controller:this})},iframeMenu:function(h){var g={};if(!h){return}_.each(f.view.settings.tabs,function(i,j){g[&quot;iframe:&quot;+j]={text:this.state(&quot;iframe:&quot;+j).get(&quot;title&quot;),priority:200}},this);h.set(g)},hijackThickbox:function(){var g=this;if(!window.tb_remove||this._tb_remove){return}this._tb_remove=window.tb_remove;window.tb_remove=function(){g.close();g.reset();g.setState(g.options.state);g._tb_remove.call(window)}},restoreThickbox:function(){if(!this._tb_remove){return}window.tb_remove=this._tb_remove;delete this._tb_remove}});_.each([&quot;open&quot;,&quot;close&quot;,&quot
 ;attach&quot;,&quot;detach&quot;,&quot;escape&quot;],function(g){f.view.MediaFrame.prototype[g]=function(h){if(this.modal){this.modal[g].apply(this.modal,arguments)}return this}});f.view.MediaFrame.Select=f.view.MediaFrame.extend({initialize:function(){f.view.MediaFrame.prototype.initialize.apply(this,arguments);_.defaults(this.options,{selection:[],library:{},multiple:false,state:&quot;library&quot;});this.createSelection();this.createStates();this.bindHandlers()},createSelection:function(){var g=this,h=this.options.selection;if(!(h instanceof f.model.Selection)){this.options.selection=new f.model.Selection(h,{multiple:this.options.multiple})}this._selection={attachments:new c(),difference:[]}},createStates:function(){var g=this.options;if(this.options.states){return}this.states.add([new f.controller.Library({library:f.query(g.library),multiple:g.multiple,title:g.title,priority:20})])},bindHandlers:function(){this.on(&quot;router:create:browse&quot;,this.createRouter,this);
 this.on(&quot;router:render:browse&quot;,this.browseRouter,this);this.on(&quot;content:create:browse&quot;,this.browseContent,this);this.on(&quot;content:render:upload&quot;,this.uploadContent,this);this.on(&quot;toolbar:create:select&quot;,this.createSelectToolbar,this)},browseRouter:function(g){g.set({upload:{text:b.uploadFilesTitle,priority:20},browse:{text:b.mediaLibraryTitle,priority:40}})},browseContent:function(g){var h=this.state();this.$el.removeClass(&quot;hide-toolbar&quot;);g.view=new f.view.AttachmentsBrowser({controller:this,collection:h.get(&quot;library&quot;),selection:h.get(&quot;selection&quot;),model:h,sortable:h.get(&quot;sortable&quot;),search:h.get(&quot;searchable&quot;),filters:h.get(&quot;filterable&quot;),display:h.get(&quot;displaySettings&quot;),dragInfo:h.get(&quot;dragInfo&quot;),AttachmentView:h.get(&quot;AttachmentView&quot;)})},uploadContent:function(){this.$el.removeClass(&quot;hide-toolbar&quot;);this.content.set(new f.view.UploaderInline(
 {controller:this}))},createSelectToolbar:function(h,g){g=g||this.options.button||{};g.controller=this;h.view=new f.view.Toolbar.Select(g)}});f.view.MediaFrame.Post=f.view.MediaFrame.Select.extend({initialize:function(){_.defaults(this.options,{multiple:true,editing:false,state:&quot;insert&quot;});f.view.MediaFrame.Select.prototype.initialize.apply(this,arguments);this.createIframeStates()},createStates:function(){var g=this.options;this.states.add([new f.controller.Library({id:&quot;insert&quot;,title:b.insertMediaTitle,priority:20,toolbar:&quot;main-insert&quot;,filterable:&quot;all&quot;,library:f.query(g.library),multiple:g.multiple?&quot;reset&quot;:false,editable:true,allowLocalEdits:true,displaySettings:true,displayUserSettings:true}),new f.controller.Library({id:&quot;gallery&quot;,title:b.createGalleryTitle,priority:40,toolbar:&quot;main-gallery&quot;,filterable:&quot;uploaded&quot;,multiple:&quot;add&quot;,editable:false,library:f.query(_.defaults({type:&quot;image
 &quot;},g.library))}),new f.controller.Embed(),new f.controller.GalleryEdit({library:g.selection,editing:g.editing,menu:&quot;gallery&quot;}),new f.controller.GalleryAdd()]);if(f.view.settings.post.featuredImageId){this.states.add(new f.controller.FeaturedImage())}},bindHandlers:function(){f.view.MediaFrame.Select.prototype.bindHandlers.apply(this,arguments);this.on(&quot;menu:create:gallery&quot;,this.createMenu,this);this.on(&quot;toolbar:create:main-insert&quot;,this.createToolbar,this);this.on(&quot;toolbar:create:main-gallery&quot;,this.createToolbar,this);this.on(&quot;toolbar:create:featured-image&quot;,this.featuredImageToolbar,this);this.on(&quot;toolbar:create:main-embed&quot;,this.mainEmbedToolbar,this);var g={menu:{&quot;default&quot;:&quot;mainMenu&quot;,gallery:&quot;galleryMenu&quot;},content:{embed:&quot;embedContent&quot;,&quot;edit-selection&quot;:&quot;editSelectionContent&quot;},toolbar:{&quot;main-insert&quot;:&quot;mainInsertToolbar&quot;,&quot;main-gal
 lery&quot;:&quot;mainGalleryToolbar&quot;,&quot;gallery-edit&quot;:&quot;galleryEditToolbar&quot;,&quot;gallery-add&quot;:&quot;galleryAddToolbar&quot;}};_.each(g,function(i,h){_.each(i,function(k,j){this.on(h+&quot;:render:&quot;+j,this[k],this)},this)},this)},mainMenu:function(g){g.set({&quot;library-separator&quot;:new f.View({className:&quot;separator&quot;,priority:100})})},galleryMenu:function(g){var h=this.lastState(),i=h&amp;&amp;h.id,j=this;g.set({cancel:{text:b.cancelGalleryTitle,priority:20,click:function(){if(i){j.setState(i)}else{j.close()}}},separateCancel:new f.View({className:&quot;separator&quot;,priority:40})})},embedContent:function(){var g=new f.view.Embed({controller:this,model:this.state()}).render();this.content.set(g);g.url.focus()},editSelectionContent:function(){var i=this.state(),h=i.get(&quot;selection&quot;),g;g=new f.view.AttachmentsBrowser({controller:this,collection:h,selection:h,model:i,sortable:true,search:false,dragInfo:true,AttachmentView:
 f.view.Attachment.EditSelection}).render();g.toolbar.set(&quot;backToLibrary&quot;,{text:b.returnToLibrary,priority:-100,click:function(){this.controller.content.mode(&quot;browse&quot;)}});this.content.set(g)},selectionStatusToolbar:function(g){var h=this.state().get(&quot;editable&quot;);g.set(&quot;selection&quot;,new f.view.Selection({controller:this,collection:this.state().get(&quot;selection&quot;),priority:-40,editable:h&amp;&amp;function(){this.controller.content.mode(&quot;edit-selection&quot;)}}).render())},mainInsertToolbar:function(h){var g=this;this.selectionStatusToolbar(h);h.set(&quot;insert&quot;,{style:&quot;primary&quot;,priority:80,text:b.insertIntoPost,requires:{selection:true},click:function(){var j=g.state(),i=j.get(&quot;selection&quot;);g.close();j.trigger(&quot;insert&quot;,i).reset()}})},mainGalleryToolbar:function(h){var g=this;this.selectionStatusToolbar(h);h.set(&quot;gallery&quot;,{style:&quot;primary&quot;,text:b.createNewGallery,priority:60,re
 quires:{selection:true},click:function(){var i=g.state().get(&quot;selection&quot;),j=g.state(&quot;gallery-edit&quot;),k=i.where({type:&quot;image&quot;});j.set(&quot;library&quot;,new f.model.Selection(k,{props:i.props.toJSON(),multiple:true}));this.controller.setState(&quot;gallery-edit&quot;)}})},featuredImageToolbar:function(g){this.createSelectToolbar(g,{text:b.setFeaturedImage,state:this.options.state})},mainEmbedToolbar:function(g){g.view=new f.view.Toolbar.Embed({controller:this})},galleryEditToolbar:function(){var g=this.state().get(&quot;editing&quot;);this.toolbar.set(new f.view.Toolbar({controller:this,items:{insert:{style:&quot;primary&quot;,text:g?b.updateGallery:b.insertGallery,priority:80,requires:{library:true},click:function(){var h=this.controller,i=h.state();h.close();i.trigger(&quot;update&quot;,i.get(&quot;library&quot;));h.setState(h.options.state);h.reset()}}}}))},galleryAddToolbar:function(){this.toolbar.set(new f.view.Toolbar({controller:this,items
 :{insert:{style:&quot;primary&quot;,text:b.addToGallery,priority:80,requires:{selection:true},click:function(){var g=this.controller,i=g.state(),h=g.state(&quot;gallery-edit&quot;);h.get(&quot;library&quot;).add(i.get(&quot;selection&quot;).models);i.trigger(&quot;reset&quot;);g.setState(&quot;gallery-edit&quot;)}}}}))}});f.view.Modal=f.View.extend({tagName:&quot;div&quot;,template:f.template(&quot;media-modal&quot;),attributes:{tabindex:0},events:{&quot;click .media-modal-backdrop, .media-modal-close&quot;:&quot;escapeHandler&quot;,keydown:&quot;keydown&quot;},initialize:function(){_.defaults(this.options,{container:document.body,title:&quot;&quot;,propagate:true,freeze:true})},prepare:function(){return{title:this.options.title}},attach:function(){if(this.views.attached){return this}if(!this.views.rendered){this.render()}this.$el.appendTo(this.options.container);this.views.attached=true;this.views.ready();return this.propagate(&quot;attach&quot;)},detach:function(){if(this.
 $el.is(&quot;:visible&quot;)){this.close()}this.$el.detach();this.views.attached=false;return this.propagate(&quot;detach&quot;)},open:function(){var h=this.$el,g=this.options;if(h.is(&quot;:visible&quot;)){return this}if(!this.views.attached){this.attach()}if(g.freeze){this._freeze={scrollTop:e(window).scrollTop()}}h.show().focus();return this.propagate(&quot;open&quot;)},close:function(g){var h=this._freeze;if(!this.views.attached||!this.$el.is(&quot;:visible&quot;)){return this}this.$el.hide();this.propagate(&quot;close&quot;);if(h){e(window).scrollTop(h.scrollTop)}if(g&amp;&amp;g.escape){this.propagate(&quot;escape&quot;)}return this},escape:function(){return this.close({escape:true})},escapeHandler:function(g){g.preventDefault();this.escape()},content:function(g){this.views.set(&quot;.media-modal-content&quot;,g);return this},propagate:function(g){this.trigger(g);if(this.options.propagate){this.controller.trigger(g)}return this},keydown:function(g){if(27===g.which){g.pr
 eventDefault();this.escape();return}}});f.view.FocusManager=f.View.extend({events:{keydown:&quot;recordTab&quot;,focusin:&quot;updateIndex&quot;},focus:function(){if(_.isUndefined(this.index)){return}this.$tabbables=this.$(&quot;:tabbable&quot;);this.$tabbables.eq(this.index).focus()},recordTab:function(h){if(9!==h.keyCode){return}if(_.isUndefined(this.index)){this.updateIndex(h)}if(_.isUndefined(this.index)){return}var g=this.index+(h.shiftKey?-1:1);if(g&gt;=0&amp;&amp;g&lt;this.$tabbables.length){this.index=g}else{delete this.index}},updateIndex:function(h){this.$tabbables=this.$(&quot;:tabbable&quot;);var g=this.$tabbables.index(h.target);if(-1===g){delete this.index}else{this.index=g}}});f.view.UploaderWindow=f.View.extend({tagName:&quot;div&quot;,className:&quot;uploader-window&quot;,template:f.template(&quot;uploader-window&quot;),initialize:function(){var g;this.$browser=e('&lt;a href=&quot;#&quot; class=&quot;browser&quot; /&gt;').hide().appendTo(&quot;body&quot;);g=
 this.options.uploader=_.defaults(this.options.uploader||{},{dropzone:this.$el,browser:this.$browser,params:{}});if(g.dropzone&amp;&amp;!(g.dropzone instanceof e)){g.dropzone=e(g.dropzone)}this.controller.on(&quot;activate&quot;,this.refresh,this)},refresh:function(){if(this.uploader){this.uploader.refresh()}},ready:function(){var h=f.view.settings.post.id,g;if(this.uploader){return}if(h){this.options.uploader.params.post_id=h}this.uploader=new wp.Uploader(this.options.uploader);g=this.uploader.dropzone;g.on(&quot;dropzone:enter&quot;,_.bind(this.show,this));g.on(&quot;dropzone:leave&quot;,_.bind(this.hide,this))},show:function(){var g=this.$el.show();_.defer(function(){g.css({opacity:1})})},hide:function(){var g=this.$el.css({opacity:0});f.transition(g).done(function(){if(&quot;0&quot;===g.css(&quot;opacity&quot;)){g.hide()}})}});f.view.UploaderInline=f.View.extend({tagName:&quot;div&quot;,className:&quot;uploader-inline&quot;,template:f.template(&quot;uploader-inline&quot;)
 ,initialize:function(){_.defaults(this.options,{message:&quot;&quot;,status:true});if(!this.options.$browser&amp;&amp;this.controller.uploader){this.options.$browser=this.controller.uploader.$browser}if(_.isUndefined(this.options.postId)){this.options.postId=f.view.settings.post.id}if(this.options.status){this.views.set(&quot;.upload-inline-status&quot;,new f.view.UploaderStatus({controller:this.controller}))}},dispose:function(){if(this.disposing){return f.View.prototype.dispose.apply(this,arguments)}this.disposing=true;return this.remove()},remove:function(){var g=f.View.prototype.remove.apply(this,arguments);_.defer(_.bind(this.refresh,this));return g},refresh:function(){var g=this.controller.uploader;if(g){g.refresh()}},ready:function(){var g=this.options.$browser,h;if(this.controller.uploader){h=this.$(&quot;.browser&quot;);if(h[0]===g[0]){return}g.detach().text(h.text());g[0].className=h[0].className;h.replaceWith(g.show())}this.refresh();return this}});f.view.Uploader
 Status=f.View.extend({className:&quot;media-uploader-status&quot;,template:f.template(&quot;uploader-status&quot;),events:{&quot;click .upload-dismiss-errors&quot;:&quot;dismiss&quot;},initialize:function(){this.queue=wp.Uploader.queue;this.queue.on(&quot;add remove reset&quot;,this.visibility,this);this.queue.on(&quot;add remove reset change:percent&quot;,this.progress,this);this.queue.on(&quot;add remove reset change:uploading&quot;,this.info,this);this.errors=wp.Uploader.errors;this.errors.reset();this.errors.on(&quot;add remove reset&quot;,this.visibility,this);this.errors.on(&quot;add&quot;,this.error,this)},dispose:function(){wp.Uploader.queue.off(null,null,this);f.View.prototype.dispose.apply(this,arguments);return this},visibility:function(){this.$el.toggleClass(&quot;uploading&quot;,!!this.queue.length);this.$el.toggleClass(&quot;errors&quot;,!!this.errors.length);this.$el.toggle(!!this.queue.length||!!this.errors.length)},ready:function(){_.each({&quot;$bar&quot;:&
 quot;.media-progress-bar div&quot;,&quot;$index&quot;:&quot;.upload-index&quot;,&quot;$total&quot;:&quot;.upload-total&quot;,&quot;$filename&quot;:&quot;.upload-filename&quot;},function(g,h){this[h]=this.$(g)},this);this.visibility();this.progress();this.info()},progress:function(){var g=this.queue,i=this.$bar,h=0;if(!i||!g.length){return}i.width((g.reduce(function(j,l){if(!l.get(&quot;uploading&quot;)){return j+100}var k=l.get(&quot;percent&quot;);return j+(_.isNumber(k)?k:100)},0)/g.length)+&quot;%&quot;)},info:function(){var g=this.queue,h=0,i;if(!g.length){return}i=this.queue.find(function(k,j){h=j;return k.get(&quot;uploading&quot;)});this.$index.text(h+1);this.$total.text(g.length);this.$filename.html(i?this.filename(i.get(&quot;filename&quot;)):&quot;&quot;)},filename:function(g){return f.truncate(_.escape(g),24)},error:function(g){this.views.add(&quot;.upload-errors&quot;,new f.view.UploaderStatusError({filename:this.filename(g.get(&quot;file&quot;).name),message:g.g
 et(&quot;message&quot;)}),{at:0})},dismiss:function(g){var h=this.views.get(&quot;.upload-errors&quot;);g.preventDefault();if(h){_.invoke(h,&quot;remove&quot;)}wp.Uploader.errors.reset()}});f.view.UploaderStatusError=f.View.extend({className:&quot;upload-error&quot;,template:f.template(&quot;uploader-status-error&quot;)});f.view.Toolbar=f.View.extend({tagName:&quot;div&quot;,className:&quot;media-toolbar&quot;,initialize:function(){var i=this.controller.state(),h=this.selection=i.get(&quot;selection&quot;),g=this.library=i.get(&quot;library&quot;);this._views={};this.primary=new f.view.PriorityList();this.secondary=new f.view.PriorityList();this.primary.$el.addClass(&quot;media-toolbar-primary&quot;);this.secondary.$el.addClass(&quot;media-toolbar-secondary&quot;);this.views.set([this.secondary,this.primary]);if(this.options.items){this.set(this.options.items,{silent:true})}if(!this.options.silent){this.render()}if(h){h.on(&quot;add remove reset&quot;,this.refresh,this)}if(g
 ){g.on(&quot;add remove reset&quot;,this.refresh,this)}},dispose:function(){if(this.selection){this.selection.off(null,null,this)}if(this.library){this.library.off(null,null,this)}return f.View.prototype.dispose.apply(this,arguments)},ready:function(){this.refresh()},set:function(j,g,h){var i;h=h||{};if(_.isObject(j)){_.each(j,function(k,l){this.set(l,k,{silent:true})},this)}else{if(!(g instanceof Backbone.View)){g.classes=[&quot;media-button-&quot;+j].concat(g.classes||[]);g=new f.view.Button(g).render()}g.controller=g.controller||this.controller;this._views[j]=g;i=g.options.priority&lt;0?&quot;secondary&quot;:&quot;primary&quot;;this[i].set(j,g,h)}if(!h.silent){this.refresh()}return this},get:function(g){return this._views[g]},unset:function(h,g){delete this._views[h];this.primary.unset(h,g);this.secondary.unset(h,g);if(!g||!g.silent){this.refresh()}return this},refresh:function(){var i=this.controller.state(),g=i.get(&quot;library&quot;),h=i.get(&quot;selection&quot;);_.e
 ach(this._views,function(j){if(!j.model||!j.options||!j.options.requires){return}var l=j.options.requires,k=false;k=_.some(h.models,function(m){return m.get(&quot;uploading&quot;)===true});if(l.selection&amp;&amp;h&amp;&amp;!h.length){k=true}else{if(l.library&amp;&amp;g&amp;&amp;!g.length){k=true}}j.model.set(&quot;disabled&quot;,k)})}});f.view.Toolbar.Select=f.view.Toolbar.extend({initialize:function(){var h=this.options,g=h.controller,i=g.state().get(&quot;selection&quot;);_.bindAll(this,&quot;clickSelect&quot;);_.defaults(h,{event:&quot;select&quot;,state:false,reset:true,close:true,text:b.select,requires:{selection:true}});h.items=_.defaults(h.items||{},{select:{style:&quot;primary&quot;,text:h.text,priority:80,click:this.clickSelect,requires:h.requires}});f.view.Toolbar.prototype.initialize.apply(this,arguments)},clickSelect:function(){var h=this.options,g=this.controller;if(h.close){g.close()}if(h.event){g.state().trigger(h.event)}if(h.state){g.setState(h.state)}if(h.r
 eset){g.reset()}}});f.view.Toolbar.Embed=f.view.Toolbar.Select.extend({initialize:function(){_.defaults(this.options,{text:b.insertIntoPost,requires:false});f.view.Toolbar.Select.prototype.initialize.apply(this,arguments)},refresh:function(){var g=this.controller.state().props.get(&quot;url&quot;);this.get(&quot;select&quot;).model.set(&quot;disabled&quot;,!g||g===&quot;http://&quot;);f.view.Toolbar.Select.prototype.refresh.apply(this,arguments)}});f.view.Button=f.View.extend({tagName:&quot;a&quot;,className:&quot;media-button&quot;,attributes:{href:&quot;#&quot;},events:{click:&quot;click&quot;},defaults:{text:&quot;&quot;,style:&quot;&quot;,size:&quot;large&quot;,disabled:false},initialize:function(){this.model=new Backbone.Model(this.defaults);_.each(this.defaults,function(i,g){var h=this.options[g];if(_.isUndefined(h)){return}this.model.set(g,h);delete this.options[g]},this);this.model.on(&quot;change&quot;,this.render,this)},render:function(){var h=[&quot;button&quot;,t
 his.className],g=this.model.toJSON();if(g.style){h.push(&quot;button-&quot;+g.style)}if(g.size){h.push(&quot;button-&quot;+g.size)}h=_.uniq(h.concat(this.options.classes));this.el.className=h.join(&quot; &quot;);this.$el.attr(&quot;disabled&quot;,g.disabled);this.$el.text(this.model.get(&quot;text&quot;));return this},click:function(g){if(&quot;#&quot;===this.attributes.href){g.preventDefault()}if(this.options.click&amp;&amp;!this.model.get(&quot;disabled&quot;)){this.options.click.apply(this,arguments)}}});f.view.ButtonGroup=f.View.extend({tagName:&quot;div&quot;,className:&quot;button-group button-large media-button-group&quot;,initialize:function(){this.buttons=_.map(this.options.buttons||[],function(g){if(g instanceof Backbone.View){return g}else{return new f.view.Button(g).render()}});delete this.options.buttons;if(this.options.classes){this.$el.addClass(this.options.classes)}},render:function(){this.$el.html(e(_.pluck(this.buttons,&quot;el&quot;)).detach());return this
 }});f.view.PriorityList=f.View.extend({tagName:&quot;div&quot;,initialize:function(){this._views={};this.set(_.extend({},this._views,this.options.views),{silent:true});delete this.options.views;if(!this.options.silent){this.render()}},set:function(l,h,j){var k,g,i;j=j||{};if(_.isObject(l)){_.each(l,function(m,n){this.set(n,m)},this);return this}if(!(h instanceof Backbone.View)){h=this.toView(h,l,j)}h.controller=h.controller||this.controller;this.unset(l);k=h.options.priority||10;g=this.views.get()||[];_.find(g,function(n,m){if(n.options.priority&gt;k){i=m;return true}});this._views[l]=h;this.views.add(h,{at:_.isNumber(i)?i:g.length||0});return this},get:function(g){return this._views[g]},unset:function(h){var g=this.get(h);if(g){g.remove()}delete this._views[h];return this},toView:function(g){return new f.View(g)}});f.view.MenuItem=f.View.extend({tagName:&quot;a&quot;,className:&quot;media-menu-item&quot;,attributes:{href:&quot;#&quot;},events:{click:&quot;_click&quot;},_cli
 ck:function(g){var h=this.options.click;if(g){g.preventDefault()}if(h){h.call(this)}else{this.click()}},click:function(){var g=this.options.state;if(g){this.controller.setState(g)}},render:function(){var g=this.options;if(g.text){this.$el.text(g.text)}else{if(g.html){this.$el.html(g.html)}}return this}});f.view.Menu=f.view.PriorityList.extend({tagName:&quot;div&quot;,className:&quot;media-menu&quot;,property:&quot;state&quot;,ItemView:f.view.MenuItem,region:&quot;menu&quot;,toView:function(g,h){g=g||{};g[this.property]=g[this.property]||h;return new this.ItemView(g).render()},ready:function(){f.view.PriorityList.prototype.ready.apply(this,arguments);this.visibility()},set:function(){f.view.PriorityList.prototype.set.apply(this,arguments);this.visibility()},unset:function(){f.view.PriorityList.prototype.unset.apply(this,arguments);this.visibility()},visibility:function(){var j=this.region,h=this.controller[j].get(),g=this.views.get(),i=!g||g.length&lt;2;if(this===h){this.cont
 roller.$el.toggleClass(&quot;hide-&quot;+j,i)}},select:function(h){var g=this.get(h);if(!g){return}this.deselect();g.$el.addClass(&quot;active&quot;)},deselect:function(){this.$el.children().removeClass(&quot;active&quot;)}});f.view.RouterItem=f.view.MenuItem.extend({click:function(){var g=this.options.contentMode;if(g){this.controller.content.mode(g)}}});f.view.Router=f.view.Menu.extend({tagName:&quot;div&quot;,className:&quot;media-router&quot;,property:&quot;contentMode&quot;,ItemView:f.view.RouterItem,region:&quot;router&quot;,initialize:function(){this.controller.on(&quot;content:render&quot;,this.update,this);f.view.Menu.prototype.initialize.apply(this,arguments)},update:function(){var g=this.controller.content.mode();if(g){this.select(g)}}});f.view.Sidebar=f.view.PriorityList.extend({className:&quot;media-sidebar&quot;});f.view.Attachment=f.View.extend({tagName:&quot;li&quot;,className:&quot;attachment&quot;,template:f.template(&quot;attachment&quot;),events:{&quot;cl
 ick .attachment-preview&quot;:&quot;toggleSelectionHandler&quot;,&quot;change [data-setting]&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] input&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] select&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] textarea&quot;:&quot;updateSetting&quot;,&quot;click .close&quot;:&quot;removeFromLibrary&quot;,&quot;click .check&quot;:&quot;removeFromSelection&quot;,&quot;click a&quot;:&quot;preventDefault&quot;},buttons:{},initialize:function(){var g=this.options.selection;this.model.on(&quot;change:sizes change:uploading&quot;,this.render,this);this.model.on(&quot;change:title&quot;,this._syncTitle,this);this.model.on(&quot;change:caption&quot;,this._syncCaption,this);this.model.on(&quot;change:percent&quot;,this.progress,this);this.model.on(&quot;add&quot;,this.select,this);this.model.on(&quot;remove&quot;,this.deselect,this);if(g){g.on(&quot;reset&quot;,this.updateSelect,this)}this.model.on(&quot;selec
 tion:single selection:unsingle&quot;,this.details,this);this.details(this.model,this.controller.state().get(&quot;selection&quot;))},dispose:function(){var g=this.options.selection;this.updateAll();if(g){g.off(null,null,this)}f.View.prototype.dispose.apply(this,arguments);return this},render:function(){var g=_.defaults(this.model.toJSON(),{orientation:&quot;landscape&quot;,uploading:false,type:&quot;&quot;,subtype:&quot;&quot;,icon:&quot;&quot;,filename:&quot;&quot;,caption:&quot;&quot;,title:&quot;&quot;,dateFormatted:&quot;&quot;,width:&quot;&quot;,height:&quot;&quot;,compat:false,alt:&quot;&quot;,description:&quot;&quot;});g.buttons=this.buttons;g.describe=this.controller.state().get(&quot;describe&quot;);if(&quot;image&quot;===g.type){g.size=this.imageSize()}g.can={};if(g.nonces){g.can.remove=!!g.nonces[&quot;delete&quot;];g.can.save=!!g.nonces.update}if(this.controller.state().get(&quot;allowLocalEdits&quot;)){g.allowLocalEdits=true}this.views.detach();this.$el.html(thi
 s.template(g));this.$el.toggleClass(&quot;uploading&quot;,g.uploading);if(g.uploading){this.$bar=this.$(&quot;.media-progress-bar div&quot;)}else{delete this.$bar}this.updateSelect();this.updateSave();this.views.render();return this},progress:function(){if(this.$bar&amp;&amp;this.$bar.length){this.$bar.width(this.model.get(&quot;percent&quot;)+&quot;%&quot;)}},toggleSelectionHandler:function(g){var h;if(g.shiftKey){h=&quot;between&quot;}else{if(g.ctrlKey||g.metaKey){h=&quot;toggle&quot;}}this.toggleSelection({method:h})},toggleSelection:function(p){var k=this.collection,l=this.options.selection,j=this.model,g=p&amp;&amp;p.method,m,n,h,i,o;if(!l){return}m=l.single();g=_.isUndefined(g)?l.multiple:g;if(&quot;between&quot;===g&amp;&amp;m&amp;&amp;l.multiple){if(m===j){return}i=k.indexOf(m);o=k.indexOf(this.model);if(i&lt;o){h=k.models.slice(i,o+1)}else{h=k.models.slice(o,i+1)}l.add(h).single(j);return}else{if(&quot;toggle&quot;===g){l[this.selected()?&quot;remove&quot;:&quot;add
 &quot;](j).single(j);return}}if(g!==&quot;add&quot;){g=&quot;reset&quot;}if(this.selected()){l[m===j?&quot;remove&quot;:&quot;single&quot;](j)}else{l[g](j).single(j)}},updateSelect:function(){this[this.selected()?&quot;select&quot;:&quot;deselect&quot;]()},selected:function(){var g=this.options.selection;if(g){return !!g.get(this.model.cid)}},select:function(g,i){var h=this.options.selection;if(!h||(i&amp;&amp;i!==h)){return}this.$el.addClass(&quot;selected&quot;)},deselect:function(g,i){var h=this.options.selection;if(!h||(i&amp;&amp;i!==h)){return}this.$el.removeClass(&quot;selected&quot;)},details:function(g,j){var i=this.options.selection,h;if(i!==j){return}h=i.single();this.$el.toggleClass(&quot;details&quot;,h===this.model)},preventDefault:function(g){g.preventDefault()},imageSize:function(g){var h=this.model.get(&quot;sizes&quot;);g=g||&quot;medium&quot;;if(h&amp;&amp;h[g]){return _.clone(h[g])}else{return{url:this.model.get(&quot;url&quot;),width:this.model.get(&quot
 ;width&quot;),height:this.model.get(&quot;height&quot;),orientation:this.model.get(&quot;orientation&quot;)}}},updateSetting:function(i){var g=e(i.target).closest(&quot;[data-setting]&quot;),h,j;if(!g.length){return}h=g.data(&quot;setting&quot;);j=i.target.value;if(this.model.get(h)!==j){this.save(h,j)}},save:function(){var g=this,i=this._save=this._save||{status:&quot;ready&quot;},h=this.model.save.apply(this.model,arguments),j=i.requests?e.when(h,i.requests):h;if(i.savedTimer){clearTimeout(i.savedTimer)}this.updateSave(&quot;waiting&quot;);i.requests=j;j.always(function(){if(i.requests!==j){return}g.updateSave(j.state()===&quot;resolved&quot;?&quot;complete&quot;:&quot;error&quot;);i.savedTimer=setTimeout(function(){g.updateSave(&quot;ready&quot;);delete i.savedTimer},2000)})},updateSave:function(g){var h=this._save=this._save||{status:&quot;ready&quot;};if(g&amp;&amp;g!==h.status){this.$el.removeClass(&quot;save-&quot;+h.status);h.status=g}this.$el.addClass(&quot;save-&qu
 ot;+h.status);return this},updateAll:function(){var h=this.$(&quot;[data-setting]&quot;),g=this.model,i;i=_.chain(h).map(function(k){var m=e(&quot;input, textarea, select, [value]&quot;,k),j,l;if(!m.length){return}j=e(k).data(&quot;setting&quot;);l=m.val();if(g.get(j)!==l){return[j,l]}}).compact().object().value();if(!_.isEmpty(i)){g.save(i)}},removeFromLibrary:function(g){g.stopPropagation();this.collection.remove(this.model)},removeFromSelection:function(h){var g=this.options.selection;if(!g){return}h.stopPropagation();g.remove(this.model)}});_.each({caption:&quot;_syncCaption&quot;,title:&quot;_syncTitle&quot;},function(h,g){f.view.Attachment.prototype[h]=function(i,k){var j=this.$('[data-setting=&quot;'+g+'&quot;]');if(!j.length){return this}if(k===j.find(&quot;input, textarea, select, [value]&quot;).val()){return this}return this.render()}});f.view.Attachment.Library=f.view.Attachment.extend({buttons:{check:true}});f.view.Attachment.EditLibrary=f.view.Attachment.extend(
 {buttons:{close:true}});f.view.Attachments=f.View.extend({tagName:&quot;ul&quot;,className:&quot;attachments&quot;,cssTemplate:f.template(&quot;attachments-css&quot;),events:{scroll:&quot;scroll&quot;},initialize:function(){this.el.id=_.uniqueId(&quot;__attachments-view-&quot;);_.defaults(this.options,{refreshSensitivity:200,refreshThreshold:3,AttachmentView:f.view.Attachment,sortable:false,resize:true});this._viewsByCid={};this.collection.on(&quot;add&quot;,function(i,g,h){this.views.add(this.createAttachmentView(i),{at:this.collection.indexOf(i)})},this);this.collection.on(&quot;remove&quot;,function(j,g,i){var h=this._viewsByCid[j.cid];delete this._viewsByCid[j.cid];if(h){h.remove()}},this);this.collection.on(&quot;reset&quot;,this.render,this);this.scroll=_.chain(this.scroll).bind(this).throttle(this.options.refreshSensitivity).value();this.initSortable();_.bindAll(this,&quot;css&quot;);this.model.on(&quot;change:edge change:gutter&quot;,this.css,this);this._resizeCss=_.
 debounce(_.bind(this.css,this),this.refreshSensitivity);if(this.options.resize){e(window).on(&quot;resize.attachments&quot;,this._resizeCss)}this.css()},dispose:function(){this.collection.props.off(null,null,this);e(window).off(&quot;resize.attachments&quot;,this._resizeCss);f.View.prototype.dispose.apply(this,arguments)},css:function(){var g=e(&quot;#&quot;+this.el.id+&quot;-css&quot;);if(g.length){g.remove()}f.view.Attachments.$head().append(this.cssTemplate({id:this.el.id,edge:this.edge(),gutter:this.model.get(&quot;gutter&quot;)}))},edge:function(){var i=this.model.get(&quot;edge&quot;),j,h,g;if(!this.$el.is(&quot;:visible&quot;)){return i}j=this.model.get(&quot;gutter&quot;)*2;h=this.$el.width()-j;g=Math.ceil(h/(i+j));i=Math.floor((h-(g*j))/g);return i},initSortable:function(){var g=this.collection;if(!this.options.sortable||!e.fn.sortable){return}this.$el.sortable(_.extend({disabled:!!g.comparator,containment:this.$el,tolerance:&quot;pointer&quot;,start:function(h,i){i
 .item.data(&quot;sortableIndexStart&quot;,i.item.index())},update:function(j,k){var i=g.at(k.item.data(&quot;sortableIndexStart&quot;)),h=g.comparator;delete g.comparator;g.remove(i,{silent:true}).add(i,{silent:true,at:k.item.index()});g.comparator=h;g.trigger(&quot;reset&quot;,g);g.saveMenuOrder()}},this.options.sortable));g.props.on(&quot;change:orderby&quot;,function(){this.$el.sortable(&quot;option&quot;,&quot;disabled&quot;,!!g.comparator)},this);this.collection.props.on(&quot;change:orderby&quot;,this.refreshSortable,this);this.refreshSortable()},refreshSortable:function(){if(!this.options.sortable||!e.fn.sortable){return}var i=this.collection,h=i.props.get(&quot;orderby&quot;),g=&quot;menuOrder&quot;===h||!i.comparator;this.$el.sortable(&quot;option&quot;,&quot;disabled&quot;,!g)},createAttachmentView:function(h){var g=new this.options.AttachmentView({controller:this.controller,model:h,collection:this.collection,selection:this.options.selection});return this._viewsByC
 id[h.cid]=g},prepare:function(){if(this.collection.length){this.views.set(this.collection.map(this.createAttachmentView,this))}else{this.views.unset();this.collection.more().done(this.scroll)}},ready:function(){this.scroll()},scroll:function(g){if(!this.$el.is(&quot;:visible&quot;)){return}if(this.collection.hasMore()&amp;&amp;this.el.scrollHeight&lt;this.el.scrollTop+(this.el.clientHeight*this.options.refreshThreshold)){this.collection.more().done(this.scroll)}}},{$head:(function(){var g;return function(){return g=g||e(&quot;head&quot;)}}())});f.view.Search=f.View.extend({tagName:&quot;input&quot;,className:&quot;search&quot;,attributes:{type:&quot;search&quot;,placeholder:b.search},events:{input:&quot;search&quot;,keyup:&quot;search&quot;,change:&quot;search&quot;,search:&quot;search&quot;},render:function(){this.el.value=this.model.escape(&quot;search&quot;);return this},search:function(g){if(g.target.value){this.model.set(&quot;search&quot;,g.target.value)}else{this.mode
 l.unset(&quot;search&quot;)}}});f.view.AttachmentFilters=f.View.extend({tagName:&quot;select&quot;,className:&quot;attachment-filters&quot;,events:{change:&quot;change&quot;},keys:[],initialize:function(){this.createFilters();_.extend(this.filters,this.options.filters);this.$el.html(_.chain(this.filters).map(function(g,h){return{el:e(&quot;&lt;option&gt;&lt;/option&gt;&quot;).val(h).text(g.text)[0],priority:g.priority||50}},this).sortBy(&quot;priority&quot;).pluck(&quot;el&quot;).value());this.model.on(&quot;change&quot;,this.select,this);this.select()},createFilters:function(){this.filters={}},change:function(h){var g=this.filters[this.el.value];if(g){this.model.set(g.props)}},select:function(){var g=this.model,i=&quot;all&quot;,h=g.toJSON();_.find(this.filters,function(k,l){var j=_.all(k.props,function(n,m){return n===(_.isUndefined(h[m])?null:h[m])});if(j){return i=l}});this.$el.val(i)}});f.view.AttachmentFilters.Uploaded=f.view.AttachmentFilters.extend({createFilters:fun
 ction(){var h=this.model.get(&quot;type&quot;),g=f.view.settings.mimeTypes,i;if(g&amp;&amp;h){i=g[h]}this.filters={all:{text:i||b.allMediaItems,props:{uploadedTo:null,orderby:&quot;date&quot;,order:&quot;DESC&quot;},priority:10},uploaded:{text:b.uploadedToThisPost,props:{uploadedTo:f.view.settings.post.id,orderby:&quot;menuOrder&quot;,order:&quot;ASC&quot;},priority:20}}}});f.view.AttachmentFilters.All=f.view.AttachmentFilters.extend({createFilters:function(){var g={};_.each(f.view.settings.mimeTypes||{},function(i,h){g[h]={text:i,props:{type:h,uploadedTo:null,orderby:&quot;date&quot;,order:&quot;DESC&quot;}}});g.all={text:b.allMediaItems,props:{type:null,uploadedTo:null,orderby:&quot;date&quot;,order:&quot;DESC&quot;},priority:10};g.uploaded={text:b.uploadedToThisPost,props:{type:null,uploadedTo:f.view.settings.post.id,orderby:&quot;menuOrder&quot;,order:&quot;ASC&quot;},priority:20};this.filters=g}});f.view.AttachmentsBrowser=f.View.extend({tagName:&quot;div&quot;,classNam
 e:&quot;attachments-browser&quot;,initialize:function(){_.defaults(this.options,{filters:false,search:true,display:false,AttachmentView:f.view.Attachment.Library});this.createToolbar();this.updateContent();this.createSidebar();this.collection.on(&quot;add remove reset&quot;,this.updateContent,this)},dispose:function(){this.options.selection.off(null,null,this);f.View.prototype.dispose.apply(this,arguments);return this},createToolbar:function(){var h,g;this.toolbar=new f.view.Toolbar({controller:this.controller});this.views.add(this.toolbar);h=this.options.filters;if(&quot;uploaded&quot;===h){g=f.view.AttachmentFilters.Uploaded}else{if(&quot;all&quot;===h){g=f.view.AttachmentFilters.All}}if(g){this.toolbar.set(&quot;filters&quot;,new g({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search){this.toolbar.set(&quot;search&quot;,new f.view.Search({controller:this.controller,model:this.collection.props,priority:60}).render())}if(th
 is.options.dragInfo){this.toolbar.set(&quot;dragInfo&quot;,new f.View({el:e('&lt;div class=&quot;instructions&quot;&gt;'+b.dragInfo+&quot;&lt;/div&gt;&quot;)[0],priority:-40}))}},updateContent:function(){var g=this;if(!this.attachments){this.createAttachments()}if(!this.collection.length){this.collection.more().done(function(){if(!g.collection.length){g.createUploader()}})}},removeContent:function(){_.each([&quot;attachments&quot;,&quot;uploader&quot;],function(g){if(this[g]){this[g].remove();delete this[g]}},this)},createUploader:function(){this.removeContent();this.uploader=new f.view.UploaderInline({controller:this.controller,status:false,message:b.noItemsFound});this.views.add(this.uploader)},createAttachments:function(){this.removeContent();this.attachments=new f.view.Attachments({controller:this.controller,collection:this.collection,selection:this.options.selection,model:this.model,sortable:this.options.sortable,AttachmentView:this.options.AttachmentView});this.views.a
 dd(this.attachments)},createSidebar:function(){var g=this.options,h=g.selection,i=this.sidebar=new f.view.Sidebar({controller:this.controller});this.views.add(i);if(this.controller.uploader){i.set(&quot;uploads&quot;,new f.view.UploaderStatus({controller:this.controller,priority:40}))}h.on(&quot;selection:single&quot;,this.createSingle,this);h.on(&quot;selection:unsingle&quot;,this.disposeSingle,this);if(h.single()){this.createSingle()}},createSingle:function(){var h=this.sidebar,i=this.options.selection.single(),g={};h.set(&quot;details&quot;,new f.view.Attachment.Details({controller:this.controller,model:i,priority:80}));h.set(&quot;compat&quot;,new f.view.AttachmentCompat({controller:this.controller,model:i,priority:120}));if(this.options.display){h.set(&quot;display&quot;,new f.view.Settings.AttachmentDisplay({controller:this.controller,model:this.model.display(i),attachment:i,priority:160,userSettings:this.model.get(&quot;displayUserSettings&quot;)}))}},disposeSingle:fu
 nction(){var g=this.sidebar;g.unset(&quot;details&quot;);g.unset(&quot;compat&quot;);g.unset(&quot;display&quot;)}});f.view.Selection=f.View.extend({tagName:&quot;div&quot;,className:&quot;media-selection&quot;,template:f.template(&quot;media-selection&quot;),events:{&quot;click .edit-selection&quot;:&quot;edit&quot;,&quot;click .clear-selection&quot;:&quot;clear&quot;},initialize:function(){_.defaults(this.options,{editable:false,clearable:true});this.attachments=new f.view.Attachments.Selection({controller:this.controller,collection:this.collection,selection:this.collection,model:new Backbone.Model({edge:40,gutter:5})});this.views.set(&quot;.selection-view&quot;,this.attachments);this.collection.on(&quot;add remove reset&quot;,this.refresh,this);this.controller.on(&quot;content:activate&quot;,this.refresh,this)},ready:function(){this.refresh()},refresh:function(){if(!this.$el.children().length){return}var h=this.collection,g=&quot;edit-selection&quot;===this.controller.con
 tent.mode();this.$el.toggleClass(&quot;empty&quot;,!h.length);this.$el.toggleClass(&quot;one&quot;,1===h.length);this.$el.toggleClass(&quot;editing&quot;,g);this.$(&quot;.count&quot;).text(b.selected.replace(&quot;%d&quot;,h.length))},edit:function(g){g.preventDefault();if(this.options.editable){this.options.editable.call(this,this.collection)}},clear:function(g){g.preventDefault();this.collection.reset()}});f.view.Attachment.Selection=f.view.Attachment.extend({className:&quot;attachment selection&quot;,toggleSelection:function(){this.options.selection.single(this.model)}});f.view.Attachments.Selection=f.view.Attachments.extend({events:{},initialize:function(){_.defaults(this.options,{sortable:true,resize:false,AttachmentView:f.view.Attachment.Selection});return f.view.Attachments.prototype.initialize.apply(this,arguments)}});f.view.Attachment.EditSelection=f.view.Attachment.Selection.extend({buttons:{close:true}});f.view.Settings=f.View.extend({events:{&quot;click button&qu
 ot;:&quot;updateHandler&quot;,&quot;change input&quot;:&quot;updateHandler&quot;,&quot;change select&quot;:&quot;updateHandler&quot;,&quot;change textarea&quot;:&quot;updateHandler&quot;},initialize:function(){this.model=this.model||new Backbone.Model();this.model.on(&quot;change&quot;,this.updateChanges,this)},prepare:function(){return _.defaults({model:this.model.toJSON()},this.options)},render:function(){f.View.prototype.render.apply(this,arguments);_(this.model.attributes).chain().keys().each(this.update,this);return this},update:function(j){var k=this.model.get(j),i=this.$('[data-setting=&quot;'+j+'&quot;]'),g,h;if(!i.length){return}if(i.is(&quot;select&quot;)){h=i.find('[value=&quot;'+k+'&quot;]');if(h.length){i.find(&quot;option&quot;).prop(&quot;selected&quot;,false);h.prop(&quot;selected&quot;,true)}else{this.model.set(j,i.find(&quot;:selected&quot;).val())}}else{if(i.hasClass(&quot;button-group&quot;)){g=i.find(&quot;button&quot;).removeClass(&quot;active&quot;);g.
 filter('[value=&quot;'+k+'&quot;]').addClass(&quot;active&quot;)}else{if(i.is('input[type=&quot;text&quot;], textarea')){if(!i.is(&quot;:focus&quot;)){i.val(k)}}else{if(i.is('input[type=&quot;checkbox&quot;]')){i.attr(&quot;checked&quot;,!!k)}}}}},updateHandler:function(i){var h=e(i.target).closest(&quot;[data-setting]&quot;),j=i.target.value,g;i.preventDefault();if(!h.length){return}if(h.is('input[type=&quot;checkbox&quot;]')){j=h[0].checked}this.model.set(h.data(&quot;setting&quot;),j);if(g=h.data(&quot;userSetting&quot;)){setUserSetting(g,j)}},updateChanges:function(h,g){if(h.hasChanged()){_(h.changed).chain().keys().each(this.update,this)}}});f.view.Settings.AttachmentDisplay=f.view.Settings.extend({className:&quot;attachment-display-settings&quot;,template:f.template(&quot;attachment-display-settings&quot;),initialize:function(){var g=this.options.attachment;_.defaults(this.options,{userSettings:false});f.view.Settings.prototype.initialize.apply(this,arguments);this.mod
 el.on(&quot;change:link&quot;,this.updateLinkTo,this);if(g){g.on(&quot;change:uploading&quot;,this.render,this)}},dispose:function(){var g=this.options.attachment;if(g){g.off(null,null,this)}f.view.Settings.prototype.dispose.apply(this,arguments)},render:function(){var g=this.options.attachment;if(g){_.extend(this.options,{sizes:g.get(&quot;sizes&quot;),type:g.get(&quot;type&quot;)})}f.view.Settings.prototype.render.call(this);this.updateLinkTo();return this},updateLinkTo:function(){var h=this.model.get(&quot;link&quot;),i=this.$(&quot;.link-to-custom&quot;),g=this.options.attachment;if(&quot;none&quot;===h||(!g&amp;&amp;&quot;custom&quot;!==h)){i.hide();return}if(g){if(&quot;post&quot;===h){i.val(g.get(&quot;link&quot;))}else{if(&quot;file&quot;===h){i.val(g.get(&quot;url&quot;))}else{if(!this.model.get(&quot;linkUrl&quot;)){i.val(&quot;http://&quot;)}}}i.prop(&quot;readonly&quot;,&quot;custom&quot;!==h)}i.show();if(i.is(&quot;:visible&quot;)){i.focus()[0].select()}}});f.vi
 ew.Settings.Gallery=f.view.Settings.extend({className:&quot;gallery-settings&quot;,template:f.template(&quot;gallery-settings&quot;)});f.view.Attachment.Details=f.view.Attachment.extend({tagName:&quot;div&quot;,className:&quot;attachment-details&quot;,template:f.template(&quot;attachment-details&quot;),events:{&quot;change [data-setting]&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] input&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] select&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] textarea&quot;:&quot;updateSetting&quot;,&quot;click .delete-attachment&quot;:&quot;deleteAttachment&quot;,&quot;click .edit-attachment&quot;:&quot;editAttachment&quot;,&quot;click .refresh-attachment&quot;:&quot;refreshAttachment&quot;},initialize:function(){this.focusManager=new f.view.FocusManager({el:this.el});f.view.Attachment.prototype.initialize.apply(this,arguments)},render:function(){f.view.Attachment.prototype.render.apply(this,arguments);thi
 s.focusManager.focus();return this},deleteAttachment:function(g){g.preventDefault();if(confirm(b.warnDelete)){this.model.destroy()}},editAttachment:function(g){this.$el.addClass(&quot;needs-refresh&quot;)},refreshAttachment:function(g){this.$el.removeClass(&quot;needs-refresh&quot;);g.preventDefault();this.model.fetch()}});f.view.AttachmentCompat=f.View.extend({tagName:&quot;form&quot;,className:&quot;compat-item&quot;,events:{submit:&quot;preventDefault&quot;,&quot;change input&quot;:&quot;save&quot;,&quot;change select&quot;:&quot;save&quot;,&quot;change textarea&quot;:&quot;save&quot;},initialize:function(){this.focusManager=new f.view.FocusManager({el:this.el});this.model.on(&quot;change:compat&quot;,this.render,this)},dispose:function(){if(this.$(&quot;:focus&quot;).length){this.save()}return f.View.prototype.dispose.apply(this,arguments)},render:function(){var g=this.model.get(&quot;compat&quot;);if(!g||!g.item){return}this.views.detach();this.$el.html(g.item);this.vie
 ws.render();this.focusManager.focus();return this},preventDefault:function(g){g.preventDefault()},save:function(g){var h={};if(g){g.preventDefault()}_.each(this.$el.serializeArray(),function(i){h[i.name]=i.value});this.model.saveCompat(h)}});f.view.Iframe=f.View.extend({className:&quot;media-iframe&quot;,render:function(){this.views.detach();this.$el.html('&lt;iframe src=&quot;'+this.controller.state().get(&quot;src&quot;)+'&quot; /&gt;');this.views.render();return this}});f.view.Embed=f.View.extend({className:&quot;media-embed&quot;,initialize:function(){this.url=new f.view.EmbedUrl({controller:this.controller,model:this.model.props}).render();this.views.set([this.url]);this.refresh();this.model.on(&quot;change:type&quot;,this.refresh,this);this.model.on(&quot;change:loading&quot;,this.loading,this)},settings:function(g){if(this._settings){this._settings.remove()}this._settings=g;this.views.add(g)},refresh:function(){var h=this.model.get(&quot;type&quot;),g;if(&quot;image&q
 uot;===h){g=f.view.EmbedImage}else{if(&quot;link&quot;===h){g=f.view.EmbedLink}else{return}}this.settings(new g({controller:this.controller,model:this.model.props,priority:40}))},loading:function(){this.$el.toggleClass(&quot;embed-loading&quot;,this.model.get(&quot;loading&quot;))}});f.view.EmbedUrl=f.View.extend({tagName:&quot;label&quot;,className:&quot;embed-url&quot;,events:{input:&quot;url&quot;,keyup:&quot;url&quot;,change:&quot;url&quot;},initialize:function(){this.$input=e(&quot;&lt;input/&gt;&quot;).attr(&quot;type&quot;,&quot;text&quot;).val(this.model.get(&quot;url&quot;));this.input=this.$input[0];this.spinner=e('&lt;span class=&quot;spinner&quot; /&gt;')[0];this.$el.append([this.input,this.spinner]);this.model.on(&quot;change:url&quot;,this.render,this)},render:function(){var g=this.$input;if(g.is(&quot;:focus&quot;)){return}this.input.value=this.model.get(&quot;url&quot;)||&quot;http://&quot;;f.View.prototype.render.apply(this,arguments);return this},ready:func
 tion(){this.focus()},url:function(g){this.model.set(&quot;url&quot;,g.target.value)},focus:function(){var g=this.$input;if(g.is(&quot;:visible&quot;)){g.focus()[0].select()}}});f.view.EmbedLink=f.view.Settings.extend({className:&quot;embed-link-settings&quot;,template:f.template(&quot;embed-link-settings&quot;)});f.view.EmbedImage=f.view.Settings.AttachmentDisplay.extend({className:&quot;embed-image-settings&quot;,template:f.template(&quot;embed-image-settings&quot;),initialize:function(){f.view.Settings.AttachmentDisplay.prototype.initialize.apply(this,arguments);this.model.on(&quot;change:url&quot;,this.updateImage,this)},updateImage:function(){this.$(&quot;img&quot;).attr(&quot;src&quot;,this.model.get(&quot;url&quot;))}})}(jQuery));
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsmediaelementmediaelementandplayerminjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/mediaelement/mediaelement-and-player.min.js (23959 => 23960)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/mediaelement/mediaelement-and-player.min.js        2013-04-10 22:44:29 UTC (rev 23959)
+++ trunk/wp-includes/js/mediaelement/mediaelement-and-player.min.js        2013-04-10 22:58:42 UTC (rev 23960)
</span><span class="lines">@@ -10,61 +10,69 @@
</span><span class="cx"> * Copyright 2010-2012, John Dyer (http://j.hn)
</span><span class="cx"> * License: MIT
</span><span class="cx"> *
</span><del>-*/var mejs=mejs||{};mejs.version=&quot;2.11.0&quot;;mejs.meIndex=0;
-mejs.plugins={silverlight:[{version:[3,0],types:[&quot;video/mp4&quot;,&quot;video/m4v&quot;,&quot;video/mov&quot;,&quot;video/wmv&quot;,&quot;audio/wma&quot;,&quot;audio/m4a&quot;,&quot;audio/mp3&quot;,&quot;audio/wav&quot;,&quot;audio/mpeg&quot;]}],flash:[{version:[9,0,124],types:[&quot;video/mp4&quot;,&quot;video/m4v&quot;,&quot;video/mov&quot;,&quot;video/flv&quot;,&quot;video/rtmp&quot;,&quot;video/x-flv&quot;,&quot;audio/flv&quot;,&quot;audio/x-flv&quot;,&quot;audio/mp3&quot;,&quot;audio/m4a&quot;,&quot;audio/mpeg&quot;,&quot;video/youtube&quot;,&quot;video/x-youtube&quot;]}],youtube:[{version:null,types:[&quot;video/youtube&quot;,&quot;video/x-youtube&quot;,&quot;audio/youtube&quot;,&quot;audio/x-youtube&quot;]}],vimeo:[{version:null,types:[&quot;video/vimeo&quot;,
-&quot;video/x-vimeo&quot;]}]};
-mejs.Utility={encodeUrl:function(a){return encodeURIComponent(a)},escapeHTML:function(a){return a.toString().split(&quot;&amp;&quot;).join(&quot;&amp;amp;&quot;).split(&quot;&lt;&quot;).join(&quot;&amp;lt;&quot;).split('&quot;').join(&quot;&amp;quot;&quot;)},absolutizeUrl:function(a){var b=document.createElement(&quot;div&quot;);b.innerHTML='&lt;a href=&quot;'+this.escapeHTML(a)+'&quot;&gt;x&lt;/a&gt;';return b.firstChild.href},getScriptPath:function(a){for(var b=0,c,d=&quot;&quot;,e=&quot;&quot;,g,f=document.getElementsByTagName(&quot;script&quot;),h=f.length,l=a.length;b&lt;h;b++){g=f[b].src;for(c=0;c&lt;l;c++){e=a[c];if(g.indexOf(e)&gt;
--1){d=g.substring(0,g.indexOf(e));break}}if(d!==&quot;&quot;)break}return d},secondsToTimeCode:function(a,b,c,d){if(typeof c==&quot;undefined&quot;)c=false;else if(typeof d==&quot;undefined&quot;)d=25;var e=Math.floor(a/3600)%24,g=Math.floor(a/60)%60,f=Math.floor(a%60);a=Math.floor((a%1*d).toFixed(3));return(b||e&gt;0?(e&lt;10?&quot;0&quot;+e:e)+&quot;:&quot;:&quot;&quot;)+(g&lt;10?&quot;0&quot;+g:g)+&quot;:&quot;+(f&lt;10?&quot;0&quot;+f:f)+(c?&quot;:&quot;+(a&lt;10?&quot;0&quot;+a:a):&quot;&quot;)},timeCodeToSeconds:function(a,b,c,d){if(typeof c==&quot;undefined&quot;)c=false;else if(typeof d==&quot;undefined&quot;)d=25;a=a.split(&quot;:&quot;);b=parseInt(a[0],
-10);var e=parseInt(a[1],10),g=parseInt(a[2],10),f=0,h=0;if(c)f=parseInt(a[3])/d;return h=b*3600+e*60+g+f},convertSMPTEtoSeconds:function(a){if(typeof a!=&quot;string&quot;)return false;a=a.replace(&quot;,&quot;,&quot;.&quot;);var b=0,c=a.indexOf(&quot;.&quot;)!=-1?a.split(&quot;.&quot;)[1].length:0,d=1;a=a.split(&quot;:&quot;).reverse();for(var e=0;e&lt;a.length;e++){d=1;if(e&gt;0)d=Math.pow(60,e);b+=Number(a[e])*d}return Number(b.toFixed(c))},removeSwf:function(a){var b=document.getElementById(a);if(b&amp;&amp;/object|embed/i.test(b.nodeName))if(mejs.MediaFeatures.isIE){b.style.display=
-&quot;none&quot;;(function(){b.readyState==4?mejs.Utility.removeObjectInIE(a):setTimeout(arguments.callee,10)})()}else b.parentNode.removeChild(b)},removeObjectInIE:function(a){if(a=document.getElementById(a)){for(var b in a)if(typeof a[b]==&quot;function&quot;)a[b]=null;a.parentNode.removeChild(a)}}};
-mejs.PluginDetector={hasPluginVersion:function(a,b){var c=this.plugins[a];b[1]=b[1]||0;b[2]=b[2]||0;return c[0]&gt;b[0]||c[0]==b[0]&amp;&amp;c[1]&gt;b[1]||c[0]==b[0]&amp;&amp;c[1]==b[1]&amp;&amp;c[2]&gt;=b[2]?true:false},nav:window.navigator,ua:window.navigator.userAgent.toLowerCase(),plugins:[],addPlugin:function(a,b,c,d,e){this.plugins[a]=this.detectPlugin(b,c,d,e)},detectPlugin:function(a,b,c,d){var e=[0,0,0],g;if(typeof this.nav.plugins!=&quot;undefined&quot;&amp;&amp;typeof this.nav.plugins[a]==&quot;object&quot;){if((c=this.nav.plugins[a].description)&amp;&amp;
-!(typeof this.nav.mimeTypes!=&quot;undefined&quot;&amp;&amp;this.nav.mimeTypes[b]&amp;&amp;!this.nav.mimeTypes[b].enabledPlugin)){e=c.replace(a,&quot;&quot;).replace(/^\s+/,&quot;&quot;).replace(/\sr/gi,&quot;.&quot;).split(&quot;.&quot;);for(a=0;a&lt;e.length;a++)e[a]=parseInt(e[a].match(/\d+/),10)}}else if(typeof window.ActiveXObject!=&quot;undefined&quot;)try{if(g=new ActiveXObject(c))e=d(g)}catch(f){}return e}};
-mejs.PluginDetector.addPlugin(&quot;flash&quot;,&quot;Shockwave Flash&quot;,&quot;application/x-shockwave-flash&quot;,&quot;ShockwaveFlash.ShockwaveFlash&quot;,function(a){var b=[];if(a=a.GetVariable(&quot;$version&quot;)){a=a.split(&quot; &quot;)[1].split(&quot;,&quot;);b=[parseInt(a[0],10),parseInt(a[1],10),parseInt(a[2],10)]}return b});
-mejs.PluginDetector.addPlugin(&quot;silverlight&quot;,&quot;Silverlight Plug-In&quot;,&quot;application/x-silverlight-2&quot;,&quot;AgControl.AgControl&quot;,function(a){var b=[0,0,0,0],c=function(d,e,g,f){for(;d.isVersionSupported(e[0]+&quot;.&quot;+e[1]+&quot;.&quot;+e[2]+&quot;.&quot;+e[3]);)e[g]+=f;e[g]-=f};c(a,b,0,1);c(a,b,1,1);c(a,b,2,1E4);c(a,b,2,1E3);c(a,b,2,100);c(a,b,2,10);c(a,b,2,1);c(a,b,3,1);return b});
-mejs.MediaFeatures={init:function(){var a=this,b=document,c=mejs.PluginDetector.nav,d=mejs.PluginDetector.ua.toLowerCase(),e,g=[&quot;source&quot;,&quot;track&quot;,&quot;audio&quot;,&quot;video&quot;];a.isiPad=d.match(/ipad/i)!==null;a.isiPhone=d.match(/iphone/i)!==null;a.isiOS=a.isiPhone||a.isiPad;a.isAndroid=d.match(/android/i)!==null;a.isBustedAndroid=d.match(/android 2\.[12]/)!==null;a.isIE=c.appName.toLowerCase().indexOf(&quot;microsoft&quot;)!=-1;a.isChrome=d.match(/chrome/gi)!==null;a.isFirefox=d.match(/firefox/gi)!==null;a.isWebkit=d.match(/webkit/gi)!==
-null;a.isGecko=d.match(/gecko/gi)!==null&amp;&amp;!a.isWebkit;a.isOpera=d.match(/opera/gi)!==null;a.hasTouch=&quot;ontouchstart&quot;in window;a.svg=!!document.createElementNS&amp;&amp;!!document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;).createSVGRect;for(c=0;c&lt;g.length;c++)e=document.createElement(g[c]);a.supportsMediaTag=typeof e.canPlayType!==&quot;undefined&quot;||a.isBustedAndroid;a.hasSemiNativeFullScreen=typeof e.webkitEnterFullscreen!==&quot;undefined&quot;;a.hasWebkitNativeFullScreen=typeof e.webkitRequestFullScreen!==&quot;undefined&quot;;
-a.hasMozNativeFullScreen=typeof e.mozRequestFullScreen!==&quot;undefined&quot;;a.hasTrueNativeFullScreen=a.hasWebkitNativeFullScreen||a.hasMozNativeFullScreen;a.nativeFullScreenEnabled=a.hasTrueNativeFullScreen;if(a.hasMozNativeFullScreen)a.nativeFullScreenEnabled=e.mozFullScreenEnabled;if(this.isChrome)a.hasSemiNativeFullScreen=false;if(a.hasTrueNativeFullScreen){a.fullScreenEventName=a.hasWebkitNativeFullScreen?&quot;webkitfullscreenchange&quot;:&quot;mozfullscreenchange&quot;;a.isFullScreen=function(){if(e.mozRequestFullScreen)return b.mozFullScreen;
-else if(e.webkitRequestFullScreen)return b.webkitIsFullScreen};a.requestFullScreen=function(f){if(a.hasWebkitNativeFullScreen)f.webkitRequestFullScreen();else a.hasMozNativeFullScreen&amp;&amp;f.mozRequestFullScreen()};a.cancelFullScreen=function(){if(a.hasWebkitNativeFullScreen)document.webkitCancelFullScreen();else a.hasMozNativeFullScreen&amp;&amp;document.mozCancelFullScreen()}}if(a.hasSemiNativeFullScreen&amp;&amp;d.match(/mac os x 10_5/i)){a.hasNativeFullScreen=false;a.hasSemiNativeFullScreen=false}}};mejs.MediaFeatures.init();
-mejs.HtmlMediaElement={pluginType:&quot;native&quot;,isFullScreen:false,setCurrentTime:function(a){this.currentTime=a},setMuted:function(a){this.muted=a},setVolume:function(a){this.volume=a},stop:function(){this.pause()},setSrc:function(a){for(var b=this.getElementsByTagName(&quot;source&quot;);b.length&gt;0;)this.removeChild(b[0]);if(typeof a==&quot;string&quot;)this.src=a;else{var c;for(b=0;b&lt;a.length;b++){c=a[b];if(this.canPlayType(c.type)){this.src=c.src;break}}}},setVideoSize:function(a,b){this.width=a;this.height=b}};
-mejs.PluginMediaElement=function(a,b,c){this.id=a;this.pluginType=b;this.src=c;this.events={};this.attributes={}};
-mejs.PluginMediaElement.prototype={pluginElement:null,pluginType:&quot;&quot;,isFullScreen:false,playbackRate:-1,defaultPlaybackRate:-1,seekable:[],played:[],paused:true,ended:false,seeking:false,duration:0,error:null,tagName:&quot;&quot;,muted:false,volume:1,currentTime:0,play:function(){if(this.pluginApi!=null){this.pluginType==&quot;youtube&quot;?this.pluginApi.playVideo():this.pluginApi.playMedia();this.paused=false}},load:function(){if(this.pluginApi!=null){this.pluginType!=&quot;youtube&quot;&amp;&amp;this.pluginApi.loadMedia();this.paused=
-false}},pause:function(){if(this.pluginApi!=null){this.pluginType==&quot;youtube&quot;?this.pluginApi.pauseVideo():this.pluginApi.pauseMedia();this.paused=true}},stop:function(){if(this.pluginApi!=null){this.pluginType==&quot;youtube&quot;?this.pluginApi.stopVideo():this.pluginApi.stopMedia();this.paused=true}},canPlayType:function(a){var b,c,d,e=mejs.plugins[this.pluginType];for(b=0;b&lt;e.length;b++){d=e[b];if(mejs.PluginDetector.hasPluginVersion(this.pluginType,d.version))for(c=0;c&lt;d.types.length;c++)if(a==d.types[c])return&quot;probably&quot;}return&quot;&quot;},
-positionFullscreenButton:function(a,b,c){this.pluginApi!=null&amp;&amp;this.pluginApi.positionFullscreenButton&amp;&amp;this.pluginApi.positionFullscreenButton(a,b,c)},hideFullscreenButton:function(){this.pluginApi!=null&amp;&amp;this.pluginApi.hideFullscreenButton&amp;&amp;this.pluginApi.hideFullscreenButton()},setSrc:function(a){if(typeof a==&quot;string&quot;){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(a));this.src=mejs.Utility.absolutizeUrl(a)}else{var b,c;for(b=0;b&lt;a.length;b++){c=a[b];if(this.canPlayType(c.type)){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(c.src));
-this.src=mejs.Utility.absolutizeUrl(a);break}}}},setCurrentTime:function(a){if(this.pluginApi!=null){this.pluginType==&quot;youtube&quot;?this.pluginApi.seekTo(a):this.pluginApi.setCurrentTime(a);this.currentTime=a}},setVolume:function(a){if(this.pluginApi!=null){this.pluginType==&quot;youtube&quot;?this.pluginApi.setVolume(a*100):this.pluginApi.setVolume(a);this.volume=a}},setMuted:function(a){if(this.pluginApi!=null){if(this.pluginType==&quot;youtube&quot;){a?this.pluginApi.mute():this.pluginApi.unMute();this.muted=a;this.dispatchEvent(&quot;volumechange&quot;)}else this.pluginApi.setMuted(a);
-this.muted=a}},setVideoSize:function(a,b){if(this.pluginElement.style){this.pluginElement.style.width=a+&quot;px&quot;;this.pluginElement.style.height=b+&quot;px&quot;}this.pluginApi!=null&amp;&amp;this.pluginApi.setVideoSize&amp;&amp;this.pluginApi.setVideoSize(a,b)},setFullscreen:function(a){this.pluginApi!=null&amp;&amp;this.pluginApi.setFullscreen&amp;&amp;this.pluginApi.setFullscreen(a)},enterFullScreen:function(){this.pluginApi!=null&amp;&amp;this.pluginApi.setFullscreen&amp;&amp;this.setFullscreen(true)},exitFullScreen:function(){this.pluginApi!=null&amp;&amp;this.pluginApi.setFullscreen&amp;&amp;
-this.setFullscreen(false)},addEventListener:function(a,b){this.events[a]=this.events[a]||[];this.events[a].push(b)},removeEventListener:function(a,b){if(!a){this.events={};return true}var c=this.events[a];if(!c)return true;if(!b){this.events[a]=[];return true}for(i=0;i&lt;c.length;i++)if(c[i]===b){this.events[a].splice(i,1);return true}return false},dispatchEvent:function(a){var b,c,d=this.events[a];if(d){c=Array.prototype.slice.call(arguments,1);for(b=0;b&lt;d.length;b++)d[b].apply(null,c)}},hasAttribute:function(a){return a in
-this.attributes},removeAttribute:function(a){delete this.attributes[a]},getAttribute:function(a){if(this.hasAttribute(a))return this.attributes[a];return&quot;&quot;},setAttribute:function(a,b){this.attributes[a]=b},remove:function(){mejs.Utility.removeSwf(this.pluginElement.id);mejs.MediaPluginBridge.unregisterPluginElement(this.pluginElement.id)}};
-mejs.MediaPluginBridge={pluginMediaElements:{},htmlMediaElements:{},registerPluginElement:function(a,b,c){this.pluginMediaElements[a]=b;this.htmlMediaElements[a]=c},unregisterPluginElement:function(a){delete this.pluginMediaElements[a];delete this.htmlMediaElements[a]},initPlugin:function(a){var b=this.pluginMediaElements[a],c=this.htmlMediaElements[a];if(b){switch(b.pluginType){case &quot;flash&quot;:b.pluginElement=b.pluginApi=document.getElementById(a);break;case &quot;silverlight&quot;:b.pluginElement=document.getElementById(b.id);
-b.pluginApi=b.pluginElement.Content.MediaElementJS}b.pluginApi!=null&amp;&amp;b.success&amp;&amp;b.success(b,c)}},fireEvent:function(a,b,c){var d,e;a=this.pluginMediaElements[a];b={type:b,target:a};for(d in c){a[d]=c[d];b[d]=c[d]}e=c.bufferedTime||0;b.target.buffered=b.buffered={start:function(){return 0},end:function(){return e},length:1};a.dispatchEvent(b.type,b)}};
-mejs.MediaElementDefaults={mode:&quot;auto&quot;,plugins:[&quot;flash&quot;,&quot;silverlight&quot;,&quot;youtube&quot;,&quot;vimeo&quot;],enablePluginDebug:false,type:&quot;&quot;,pluginPath:mejs.Utility.getScriptPath([&quot;mediaelement.js&quot;,&quot;mediaelement.min.js&quot;,&quot;mediaelement-and-player.js&quot;,&quot;mediaelement-and-player.min.js&quot;]),flashName:&quot;flashmediaelement.swf&quot;,flashStreamer:&quot;&quot;,enablePluginSmoothing:false,silverlightName:&quot;silverlightmediaelement.xap&quot;,defaultVideoWidth:480,defaultVideoHeight:270,pluginWidth:-1,pluginHeight:-1,pluginVars:[],timerRate:250,startVolume:0.8,
-success:function(){},error:function(){}};mejs.MediaElement=function(a,b){return mejs.HtmlMediaElementShim.create(a,b)};
-mejs.HtmlMediaElementShim={create:function(a,b){var c=mejs.MediaElementDefaults,d=typeof a==&quot;string&quot;?document.getElementById(a):a,e=d.tagName.toLowerCase(),g=e===&quot;audio&quot;||e===&quot;video&quot;,f=g?d.getAttribute(&quot;src&quot;):d.getAttribute(&quot;href&quot;);e=d.getAttribute(&quot;poster&quot;);var h=d.getAttribute(&quot;autoplay&quot;),l=d.getAttribute(&quot;preload&quot;),j=d.getAttribute(&quot;controls&quot;),k;for(k in b)c[k]=b[k];f=typeof f==&quot;undefined&quot;||f===null||f==&quot;&quot;?null:f;e=typeof e==&quot;undefined&quot;||e===null?&quot;&quot;:e;l=typeof l==&quot;undefined&quot;||l===null||l===&quot;false&quot;?
-&quot;none&quot;:l;h=!(typeof h==&quot;undefined&quot;||h===null||h===&quot;false&quot;);j=!(typeof j==&quot;undefined&quot;||j===null||j===&quot;false&quot;);k=this.determinePlayback(d,c,mejs.MediaFeatures.supportsMediaTag,g,f);k.url=k.url!==null?mejs.Utility.absolutizeUrl(k.url):&quot;&quot;;if(k.method==&quot;native&quot;){if(mejs.MediaFeatures.isBustedAndroid){d.src=k.url;d.addEventListener(&quot;click&quot;,function(){d.play()},false)}return this.updateNative(k,c,h,l)}else if(k.method!==&quot;&quot;)return this.createPlugin(k,c,e,h,l,j);else{this.createErrorMessage(k,c,e);return this}},
-determinePlayback:function(a,b,c,d,e){var g=[],f,h,l,j={method:&quot;&quot;,url:&quot;&quot;,htmlMediaElement:a,isVideo:a.tagName.toLowerCase()!=&quot;audio&quot;},k;if(typeof b.type!=&quot;undefined&quot;&amp;&amp;b.type!==&quot;&quot;)if(typeof b.type==&quot;string&quot;)g.push({type:b.type,url:e});else for(f=0;f&lt;b.type.length;f++)g.push({type:b.type[f],url:e});else if(e!==null){l=this.formatType(e,a.getAttribute(&quot;type&quot;));g.push({type:l,url:e})}else for(f=0;f&lt;a.childNodes.length;f++){h=a.childNodes[f];if(h.nodeType==1&amp;&amp;h.tagName.toLowerCase()==&quot;source&quot;){e=h.getAttribute(&quot;src&quot;);
-l=this.formatType(e,h.getAttribute(&quot;type&quot;));h=h.getAttribute(&quot;media&quot;);if(!h||!window.matchMedia||window.matchMedia&amp;&amp;window.matchMedia(h).matches)g.push({type:l,url:e})}}if(!d&amp;&amp;g.length&gt;0&amp;&amp;g[0].url!==null&amp;&amp;this.getTypeFromFile(g[0].url).indexOf(&quot;audio&quot;)&gt;-1)j.isVideo=false;if(mejs.MediaFeatures.isBustedAndroid)a.canPlayType=function(m){return m.match(/video\/(mp4|m4v)/gi)!==null?&quot;maybe&quot;:&quot;&quot;};if(c&amp;&amp;(b.mode===&quot;auto&quot;||b.mode===&quot;auto_plugin&quot;||b.mode===&quot;native&quot;)){if(!d){f=document.createElement(j.isVideo?
-&quot;video&quot;:&quot;audio&quot;);a.parentNode.insertBefore(f,a);a.style.display=&quot;none&quot;;j.htmlMediaElement=a=f}for(f=0;f&lt;g.length;f++)if(a.canPlayType(g[f].type).replace(/no/,&quot;&quot;)!==&quot;&quot;||a.canPlayType(g[f].type.replace(/mp3/,&quot;mpeg&quot;)).replace(/no/,&quot;&quot;)!==&quot;&quot;){j.method=&quot;native&quot;;j.url=g[f].url;break}if(j.method===&quot;native&quot;){if(j.url!==null)a.src=j.url;if(b.mode!==&quot;auto_plugin&quot;)return j}}if(b.mode===&quot;auto&quot;||b.mode===&quot;auto_plugin&quot;||b.mode===&quot;shim&quot;)for(f=0;f&lt;g.length;f++){l=g[f].type;for(a=0;a&lt;b.plugins.length;a++){e=b.plugins[a];
-h=mejs.plugins[e];for(c=0;c&lt;h.length;c++){k=h[c];if(k.version==null||mejs.PluginDetector.hasPluginVersion(e,k.version))for(d=0;d&lt;k.types.length;d++)if(l==k.types[d]){j.method=e;j.url=g[f].url;return j}}}}if(b.mode===&quot;auto_plugin&quot;&amp;&amp;j.method===&quot;native&quot;)return j;if(j.method===&quot;&quot;&amp;&amp;g.length&gt;0)j.url=g[0].url;return j},formatType:function(a,b){return a&amp;&amp;!b?this.getTypeFromFile(a):b&amp;&amp;~b.indexOf(&quot;;&quot;)?b.substr(0,b.indexOf(&quot;;&quot;)):b},getTypeFromFile:function(a){a=a.split(&quot;?&quot;)[0];a=a.substring(a.lastIndexOf(&quot;.&quot;)+
-1);return(/(mp4|m4v|ogg|ogv|webm|webmv|flv|wmv|mpeg|mov)/gi.test(a)?&quot;video&quot;:&quot;audio&quot;)+&quot;/&quot;+this.getTypeFromExtension(a)},getTypeFromExtension:function(a){switch(a){case &quot;mp4&quot;:case &quot;m4v&quot;:return&quot;mp4&quot;;case &quot;webm&quot;:case &quot;webma&quot;:case &quot;webmv&quot;:return&quot;webm&quot;;case &quot;ogg&quot;:case &quot;oga&quot;:case &quot;ogv&quot;:return&quot;ogg&quot;;default:return a}},createErrorMessage:function(a,b,c){var d=a.htmlMediaElement,e=document.createElement(&quot;div&quot;);e.className=&quot;me-cannotplay&quot;;try{e.style.width=d.width+&quot;px&quot;;e.style.height=d.height+&quot;px&quot;}catch(g){}e.innerHTML=
-c!==&quot;&quot;?'&lt;a href=&quot;'+a.url+'&quot;&gt;&lt;img src=&quot;'+c+'&quot; width=&quot;100%&quot; height=&quot;100%&quot; /&gt;&lt;/a&gt;':'&lt;a href=&quot;'+a.url+'&quot;&gt;&lt;span&gt;'+mejs.i18n.t(&quot;Download File&quot;)+&quot;&lt;/span&gt;&lt;/a&gt;&quot;;d.parentNode.insertBefore(e,d);d.style.display=&quot;none&quot;;b.error(d)},createPlugin:function(a,b,c,d,e,g){c=a.htmlMediaElement;var f=1,h=1,l=&quot;me_&quot;+a.method+&quot;_&quot;+mejs.meIndex++,j=new mejs.PluginMediaElement(l,a.method,a.url),k=document.createElement(&quot;div&quot;),m;j.tagName=c.tagName;for(m=0;m&lt;c.attributes.length;m++){var n=c.attributes[m];n.specified==true&amp;&amp;j.setAttribute(n.name,
-n.value)}for(m=c.parentNode;m!==null&amp;&amp;m.tagName.toLowerCase()!=&quot;body&quot;;){if(m.parentNode.tagName.toLowerCase()==&quot;p&quot;){m.parentNode.parentNode.insertBefore(m,m.parentNode);break}m=m.parentNode}if(a.isVideo){f=b.videoWidth&gt;0?b.videoWidth:c.getAttribute(&quot;width&quot;)!==null?c.getAttribute(&quot;width&quot;):b.defaultVideoWidth;h=b.videoHeight&gt;0?b.videoHeight:c.getAttribute(&quot;height&quot;)!==null?c.getAttribute(&quot;height&quot;):b.defaultVideoHeight;f=mejs.Utility.encodeUrl(f);h=mejs.Utility.encodeUrl(h)}else if(b.enablePluginDebug){f=
-320;h=240}j.success=b.success;mejs.MediaPluginBridge.registerPluginElement(l,j,c);k.className=&quot;me-plugin&quot;;k.id=l+&quot;_container&quot;;a.isVideo?c.parentNode.insertBefore(k,c):document.body.insertBefore(k,document.body.childNodes[0]);d=[&quot;id=&quot;+l,&quot;isvideo=&quot;+(a.isVideo?&quot;true&quot;:&quot;false&quot;),&quot;autoplay=&quot;+(d?&quot;true&quot;:&quot;false&quot;),&quot;preload=&quot;+e,&quot;width=&quot;+f,&quot;startvolume=&quot;+b.startVolume,&quot;timerrate=&quot;+b.timerRate,&quot;flashstreamer=&quot;+b.flashStreamer,&quot;height=&quot;+h];if(a.url!==null)a.method==&quot;flash&quot;?d.push(&quot;file=&quot;+mejs.Utility.encodeUrl(a.url)):
-d.push(&quot;file=&quot;+a.url);b.enablePluginDebug&amp;&amp;d.push(&quot;debug=true&quot;);b.enablePluginSmoothing&amp;&amp;d.push(&quot;smoothing=true&quot;);g&amp;&amp;d.push(&quot;controls=true&quot;);if(b.pluginVars)d=d.concat(b.pluginVars);switch(a.method){case &quot;silverlight&quot;:k.innerHTML='&lt;object data=&quot;data:application/x-silverlight-2,&quot; type=&quot;application/x-silverlight-2&quot; id=&quot;'+l+'&quot; name=&quot;'+l+'&quot; width=&quot;'+f+'&quot; height=&quot;'+h+'&quot; class=&quot;mejs-shim&quot;&gt;&lt;param name=&quot;initParams&quot; value=&quot;'+d.join(&quot;,&quot;)+'&quot; /&gt;&lt;param name=&quot;windowless&quot; value=&quot;true&quot; /&gt;&lt;param name=&quot;background&quot; value=&quot;black&quot; /&gt;&lt;param name=&quot;minRuntimeVersion&quot; value=&quot;3.0.0.0&quot; /&gt;&lt;param name=&quot;autoUpgrade&quot; value=&quot;true&quot; /&gt;&lt;param name=&quot;source&quot; value=&quot;'+
-b.pluginPath+b.silverlightName+'&quot; /&gt;&lt;/object&gt;';break;case &quot;flash&quot;:if(mejs.MediaFeatures.isIE){a=document.createElement(&quot;div&quot;);k.appendChild(a);a.outerHTML='&lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab&quot; id=&quot;'+l+'&quot; width=&quot;'+f+'&quot; height=&quot;'+h+'&quot; class=&quot;mejs-shim&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;'+b.pluginPath+b.flashName+&quot;?x=&quot;+new Date+'&quot; /&gt;&lt;param name=&quot;flashvars&quot; value=&quot;'+d.join(&quot;&amp;amp;&quot;)+'&quot; /&gt;&lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;&lt;param name=&quot;bgcolor&quot; value=&quot;#000000&quot; /&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; /&gt;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot; /&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot
 ; /&gt;&lt;/object&gt;'}else k.innerHTML=
-'&lt;embed id=&quot;'+l+'&quot; name=&quot;'+l+'&quot; play=&quot;true&quot; loop=&quot;false&quot; quality=&quot;high&quot; bgcolor=&quot;#000000&quot; wmode=&quot;transparent&quot; allowScriptAccess=&quot;always&quot; allowFullScreen=&quot;true&quot; type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot;//www.macromedia.com/go/getflashplayer&quot; src=&quot;'+b.pluginPath+b.flashName+'&quot; flashvars=&quot;'+d.join(&quot;&amp;&quot;)+'&quot; width=&quot;'+f+'&quot; height=&quot;'+h+'&quot; class=&quot;mejs-shim&quot;&gt;&lt;/embed&gt;';break;case &quot;youtube&quot;:b=a.url.substr(a.url.lastIndexOf(&quot;=&quot;)+1);youtubeSettings={container:k,containerId:k.id,pluginMediaElement:j,pluginId:l,
-videoId:b,height:h,width:f};mejs.PluginDetector.hasPluginVersion(&quot;flash&quot;,[10,0,0])?mejs.YouTubeApi.createFlash(youtubeSettings):mejs.YouTubeApi.enqueueIframe(youtubeSettings);break;case &quot;vimeo&quot;:j.vimeoid=a.url.substr(a.url.lastIndexOf(&quot;/&quot;)+1);k.innerHTML='&lt;iframe src=&quot;http://player.vimeo.com/video/'+j.vimeoid+'?portrait=0&amp;byline=0&amp;title=0&quot; width=&quot;'+f+'&quot; height=&quot;'+h+'&quot; frameborder=&quot;0&quot; class=&quot;mejs-shim&quot;&gt;&lt;/iframe&gt;'}c.style.display=&quot;none&quot;;return j},updateNative:function(a,b){var c=a.htmlMediaElement,
-d;for(d in mejs.HtmlMediaElement)c[d]=mejs.HtmlMediaElement[d];b.success(c,c);return c}};
-mejs.YouTubeApi={isIframeStarted:false,isIframeLoaded:false,loadIframeApi:function(){if(!this.isIframeStarted){var a=document.createElement(&quot;script&quot;);a.src=&quot;http://www.youtube.com/player_api&quot;;var b=document.getElementsByTagName(&quot;script&quot;)[0];b.parentNode.insertBefore(a,b);this.isIframeStarted=true}},iframeQueue:[],enqueueIframe:function(a){if(this.isLoaded)this.createIframe(a);else{this.loadIframeApi();this.iframeQueue.push(a)}},createIframe:function(a){var b=a.pluginMediaElement,c=new YT.Player(a.containerId,
-{height:a.height,width:a.width,videoId:a.videoId,playerVars:{controls:0},events:{onReady:function(){a.pluginMediaElement.pluginApi=c;mejs.MediaPluginBridge.initPlugin(a.pluginId);setInterval(function(){mejs.YouTubeApi.createEvent(c,b,&quot;timeupdate&quot;)},250)},onStateChange:function(d){mejs.YouTubeApi.handleStateChange(d.data,c,b)}}})},createEvent:function(a,b,c){c={type:c,target:b};if(a&amp;&amp;a.getDuration){b.currentTime=c.currentTime=a.getCurrentTime();b.duration=c.duration=a.getDuration();c.paused=b.paused;
-c.ended=b.ended;c.muted=a.isMuted();c.volume=a.getVolume()/100;c.bytesTotal=a.getVideoBytesTotal();c.bufferedBytes=a.getVideoBytesLoaded();var d=c.bufferedBytes/c.bytesTotal*c.duration;c.target.buffered=c.buffered={start:function(){return 0},end:function(){return d},length:1}}b.dispatchEvent(c.type,c)},iFrameReady:function(){for(this.isIframeLoaded=this.isLoaded=true;this.iframeQueue.length&gt;0;)this.createIframe(this.iframeQueue.pop())},flashPlayers:{},createFlash:function(a){this.flashPlayers[a.pluginId]=
-a;var b,c=&quot;http://www.youtube.com/apiplayer?enablejsapi=1&amp;amp;playerapiid=&quot;+a.pluginId+&quot;&amp;amp;version=3&amp;amp;autoplay=0&amp;amp;controls=0&amp;amp;modestbranding=1&amp;loop=0&quot;;if(mejs.MediaFeatures.isIE){b=document.createElement(&quot;div&quot;);a.container.appendChild(b);b.outerHTML='&lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab&quot; id=&quot;'+a.pluginId+'&quot; width=&quot;'+a.width+'&quot; height=&quot;'+a.height+'&quot; class=&quot;mejs-shim&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;'+
-c+'&quot; /&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; /&gt;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot; /&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /&gt;&lt;/object&gt;'}else a.container.innerHTML='&lt;object type=&quot;application/x-shockwave-flash&quot; id=&quot;'+a.pluginId+'&quot; data=&quot;'+c+'&quot; width=&quot;'+a.width+'&quot; height=&quot;'+a.height+'&quot; style=&quot;visibility: visible; &quot; class=&quot;mejs-shim&quot;&gt;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot;&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/object&gt;'},flashReady:function(a){var b=this.flashPlayers[a],c=
-document.getElementById(a),d=b.pluginMediaElement;d.pluginApi=d.pluginElement=c;mejs.MediaPluginBridge.initPlugin(a);c.cueVideoById(b.videoId);a=b.containerId+&quot;_callback&quot;;window[a]=function(e){mejs.YouTubeApi.handleStateChange(e,c,d)};c.addEventListener(&quot;onStateChange&quot;,a);setInterval(function(){mejs.YouTubeApi.createEvent(c,d,&quot;timeupdate&quot;)},250)},handleStateChange:function(a,b,c){switch(a){case -1:c.paused=true;c.ended=true;mejs.YouTubeApi.createEvent(b,c,&quot;loadedmetadata&quot;);break;case 0:c.paused=false;
-c.ended=true;mejs.YouTubeApi.createEvent(b,c,&quot;ended&quot;);break;case 1:c.paused=false;c.ended=false;mejs.YouTubeApi.createEvent(b,c,&quot;play&quot;);mejs.YouTubeApi.createEvent(b,c,&quot;playing&quot;);break;case 2:c.paused=true;c.ended=false;mejs.YouTubeApi.createEvent(b,c,&quot;pause&quot;);break;case 3:mejs.YouTubeApi.createEvent(b,c,&quot;progress&quot;)}}};function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}function onYouTubePlayerReady(a){mejs.YouTubeApi.flashReady(a)}window.mejs=mejs;window.MediaElement=mejs.MediaElement;
-(function(a,b,c){var d={locale:{strings:{}},methods:{}};d.locale.getLanguage=function(){return{language:navigator.language}};d.locale.INIT_LANGUAGE=d.locale.getLanguage();d.methods.checkPlain=function(e){var g,f,h={&quot;&amp;&quot;:&quot;&amp;amp;&quot;,'&quot;':&quot;&amp;quot;&quot;,&quot;&lt;&quot;:&quot;&amp;lt;&quot;,&quot;&gt;&quot;:&quot;&amp;gt;&quot;};e=String(e);for(g in h)if(h.hasOwnProperty(g)){f=RegExp(g,&quot;g&quot;);e=e.replace(f,h[g])}return e};d.methods.formatString=function(e,g){for(var f in g){switch(f.charAt(0)){case &quot;@&quot;:g[f]=d.methods.checkPlain(g[f]);break;case &quot;!&quot;:break;default:g[f]=
-'&lt;em class=&quot;placeholder&quot;&gt;'+d.methods.checkPlain(g[f])+&quot;&lt;/em&gt;&quot;}e=e.replace(f,g[f])}return e};d.methods.t=function(e,g,f){if(d.locale.strings&amp;&amp;d.locale.strings[f.context]&amp;&amp;d.locale.strings[f.context][e])e=d.locale.strings[f.context][e];if(g)e=d.methods.formatString(e,g);return e};d.t=function(e,g,f){if(typeof e===&quot;string&quot;&amp;&amp;e.length&gt;0){var h=d.locale.getLanguage();f=f||{context:h.language};return d.methods.t(e,g,f)}else throw{name:&quot;InvalidArgumentException&quot;,message:&quot;First argument is either not a string or empty.&quot;};
-};c.i18n=d})(jQuery,document,mejs);(function(a){a.de={Fullscreen:&quot;Vollbild&quot;,&quot;Go Fullscreen&quot;:&quot;Vollbild an&quot;,&quot;Turn off Fullscreen&quot;:&quot;Vollbild aus&quot;,Close:&quot;Schlie\u00dfen&quot;}})(mejs.i18n.locale.strings);
-
</del><ins>+*/
+var mejs=mejs||{};mejs.version=&quot;2.11.0&quot;;mejs.meIndex=0;mejs.plugins={silverlight:[{version:[3,0],types:[&quot;video/mp4&quot;,&quot;video/m4v&quot;,&quot;video/mov&quot;,&quot;video/wmv&quot;,&quot;audio/wma&quot;,&quot;audio/m4a&quot;,&quot;audio/mp3&quot;,&quot;audio/wav&quot;,&quot;audio/mpeg&quot;]}],flash:[{version:[9,0,124],types:[&quot;video/mp4&quot;,&quot;video/m4v&quot;,&quot;video/mov&quot;,&quot;video/flv&quot;,&quot;video/rtmp&quot;,&quot;video/x-flv&quot;,&quot;audio/flv&quot;,&quot;audio/x-flv&quot;,&quot;audio/mp3&quot;,&quot;audio/m4a&quot;,&quot;audio/mpeg&quot;,&quot;video/youtube&quot;,&quot;video/x-youtube&quot;]}],youtube:[{version:null,types:[&quot;video/youtube&quot;,&quot;video/x-youtube&quot;,&quot;audio/youtube&quot;,&quot;audio/x-youtube&quot;]}],vimeo:[{version:null,types:[&quot;video/vimeo&quot;,&quot;video/x-vimeo&quot;]}]};mejs.Utility={encodeUrl:function(a){return encodeURIComponent(a)},escapeHTML:function(a){return a.toString().spl
 it(&quot;&amp;&quot;).join(&quot;&amp;amp;&quot;).split(&quot;&lt;&quot;).join(&quot;&amp;lt;&quot;).split('&quot;').join(&quot;&amp;quot;&quot;)},absolutizeUrl:function(a){var b=document.createElement(&quot;div&quot;);b.innerHTML='&lt;a href=&quot;'+this.escapeHTML(a)+'&quot;&gt;x&lt;/a&gt;';return b.firstChild.href},getScriptPath:function(h){var e=0,c,k=&quot;&quot;,a=&quot;&quot;,f,b=document.getElementsByTagName(&quot;script&quot;),g=b.length,d=h.length;for(;e&lt;g;e++){f=b[e].src;for(c=0;c&lt;d;c++){a=h[c];if(f.indexOf(a)&gt;-1){k=f.substring(0,f.indexOf(a));break}}if(k!==&quot;&quot;){break}}return k},secondsToTimeCode:function(c,g,a,b){if(typeof a==&quot;undefined&quot;){a=false}else{if(typeof b==&quot;undefined&quot;){b=25}}var f=Math.floor(c/3600)%24,d=Math.floor(c/60)%60,h=Math.floor(c%60),e=Math.floor(((c%1)*b).toFixed(3)),j=((g||f&gt;0)?(f&lt;10?&quot;0&quot;+f:f)+&quot;:&quot;:&quot;&quot;)+(d&lt;10?&quot;0&quot;+d:d)+&quot;:&quot;+(h&lt;10?&quot;0&quot;+h:h)+((
 a)?&quot;:&quot;+(e&lt;10?&quot;0&quot;+e:e):&quot;&quot;);return j},timeCodeToSeconds:function(c,k,d,e){if(typeof d==&quot;undefined&quot;){d=false}else{if(typeof e==&quot;undefined&quot;){e=25}}var f=c.split(&quot;:&quot;),a=parseInt(f[0],10),b=parseInt(f[1],10),h=parseInt(f[2],10),j=0,g=0;if(d){j=parseInt(f[3])/e}g=(a*3600)+(b*60)+h+j;return g},convertSMPTEtoSeconds:function(a){if(typeof a!=&quot;string&quot;){return false}a=a.replace(&quot;,&quot;,&quot;.&quot;);var d=0,b=(a.indexOf(&quot;.&quot;)!=-1)?a.split(&quot;.&quot;)[1].length:0,e=1;a=a.split(&quot;:&quot;).reverse();for(var c=0;c&lt;a.length;c++){e=1;if(c&gt;0){e=Math.pow(60,c)}d+=Number(a[c])*e}return Number(d.toFixed(b))},removeSwf:function(b){var a=document.getElementById(b);if(a&amp;&amp;/object|embed/i.test(a.nodeName)){if(mejs.MediaFeatures.isIE){a.style.display=&quot;none&quot;;(function(){if(a.readyState==4){mejs.Utility.removeObjectInIE(b)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.remo
 veChild(a)}}},removeObjectInIE:function(c){var b=document.getElementById(c);if(b){for(var a in b){if(typeof b[a]==&quot;function&quot;){b[a]=null}}b.parentNode.removeChild(b)}}};mejs.PluginDetector={hasPluginVersion:function(c,a){var b=this.plugins[c];a[1]=a[1]||0;a[2]=a[2]||0;return(b[0]&gt;a[0]||(b[0]==a[0]&amp;&amp;b[1]&gt;a[1])||(b[0]==a[0]&amp;&amp;b[1]==a[1]&amp;&amp;b[2]&gt;=a[2]))?true:false},nav:window.navigator,ua:window.navigator.userAgent.toLowerCase(),plugins:[],addPlugin:function(d,c,e,a,b){this.plugins[d]=this.detectPlugin(c,e,a,b)},detectPlugin:function(g,b,c,k){var h=[0,0,0],j,d,a;if(typeof(this.nav.plugins)!=&quot;undefined&quot;&amp;&amp;typeof this.nav.plugins[g]==&quot;object&quot;){j=this.nav.plugins[g].description;if(j&amp;&amp;!(typeof this.nav.mimeTypes!=&quot;undefined&quot;&amp;&amp;this.nav.mimeTypes[b]&amp;&amp;!this.nav.mimeTypes[b].enabledPlugin)){h=j.replace(g,&quot;&quot;).replace(/^\s+/,&quot;&quot;).replace(/\sr/gi,&quot;.&quot;).split(&quo
 t;.&quot;);for(d=0;d&lt;h.length;d++){h[d]=parseInt(h[d].match(/\d+/),10)}}}else{if(typeof(window.ActiveXObject)!=&quot;undefined&quot;){try{a=new ActiveXObject(c);if(a){h=k(a)}}catch(f){}}}return h}};mejs.PluginDetector.addPlugin(&quot;flash&quot;,&quot;Shockwave Flash&quot;,&quot;application/x-shockwave-flash&quot;,&quot;ShockwaveFlash.ShockwaveFlash&quot;,function(b){var a=[],c=b.GetVariable(&quot;$version&quot;);if(c){c=c.split(&quot; &quot;)[1].split(&quot;,&quot;);a=[parseInt(c[0],10),parseInt(c[1],10),parseInt(c[2],10)]}return a});mejs.PluginDetector.addPlugin(&quot;silverlight&quot;,&quot;Silverlight Plug-In&quot;,&quot;application/x-silverlight-2&quot;,&quot;AgControl.AgControl&quot;,function(b){var a=[0,0,0,0],c=function(f,d,e,g){while(f.isVersionSupported(d[0]+&quot;.&quot;+d[1]+&quot;.&quot;+d[2]+&quot;.&quot;+d[3])){d[e]+=g}d[e]-=g};c(b,a,0,1);c(b,a,1,1);c(b,a,2,10000);c(b,a,2,1000);c(b,a,2,100);c(b,a,2,10);c(b,a,2,1);c(b,a,3,1);return a});mejs.MediaFeatures={in
 it:function(){var e=this,h=document,g=mejs.PluginDetector.nav,c=mejs.PluginDetector.ua.toLowerCase(),b,a,f=[&quot;source&quot;,&quot;track&quot;,&quot;audio&quot;,&quot;video&quot;];e.isiPad=(c.match(/ipad/i)!==null);e.isiPhone=(c.match(/iphone/i)!==null);e.isiOS=e.isiPhone||e.isiPad;e.isAndroid=(c.match(/android/i)!==null);e.isBustedAndroid=(c.match(/android 2\.[12]/)!==null);e.isIE=(g.appName.toLowerCase().indexOf(&quot;microsoft&quot;)!=-1);e.isChrome=(c.match(/chrome/gi)!==null);e.isFirefox=(c.match(/firefox/gi)!==null);e.isWebkit=(c.match(/webkit/gi)!==null);e.isGecko=(c.match(/gecko/gi)!==null)&amp;&amp;!e.isWebkit;e.isOpera=(c.match(/opera/gi)!==null);e.hasTouch=(&quot;ontouchstart&quot; in window);e.svg=!!document.createElementNS&amp;&amp;!!document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;).createSVGRect;for(b=0;b&lt;f.length;b++){a=document.createElement(f[b])}e.supportsMediaTag=(typeof a.canPlayType!==&quot;undefined&quot;||e.isBustedA
 ndroid);e.hasSemiNativeFullScreen=(typeof a.webkitEnterFullscreen!==&quot;undefined&quot;);e.hasWebkitNativeFullScreen=(typeof a.webkitRequestFullScreen!==&quot;undefined&quot;);e.hasMozNativeFullScreen=(typeof a.mozRequestFullScreen!==&quot;undefined&quot;);e.hasTrueNativeFullScreen=(e.hasWebkitNativeFullScreen||e.hasMozNativeFullScreen);e.nativeFullScreenEnabled=e.hasTrueNativeFullScreen;if(e.hasMozNativeFullScreen){e.nativeFullScreenEnabled=a.mozFullScreenEnabled}if(this.isChrome){e.hasSemiNativeFullScreen=false}if(e.hasTrueNativeFullScreen){e.fullScreenEventName=(e.hasWebkitNativeFullScreen)?&quot;webkitfullscreenchange&quot;:&quot;mozfullscreenchange&quot;;e.isFullScreen=function(){if(a.mozRequestFullScreen){return h.mozFullScreen}else{if(a.webkitRequestFullScreen){return h.webkitIsFullScreen}}};e.requestFullScreen=function(d){if(e.hasWebkitNativeFullScreen){d.webkitRequestFullScreen()}else{if(e.hasMozNativeFullScreen){d.mozRequestFullScreen()}}};e.cancelFullScreen=func
 tion(){if(e.hasWebkitNativeFullScreen){document.webkitCancelFullScreen()}else{if(e.hasMozNativeFullScreen){document.mozCancelFullScreen()}}}}if(e.hasSemiNativeFullScreen&amp;&amp;c.match(/mac os x 10_5/i)){e.hasNativeFullScreen=false;e.hasSemiNativeFullScreen=false}}};mejs.MediaFeatures.init();mejs.HtmlMediaElement={pluginType:&quot;native&quot;,isFullScreen:false,setCurrentTime:function(a){this.currentTime=a},setMuted:function(a){this.muted=a},setVolume:function(a){this.volume=a},stop:function(){this.pause()},setSrc:function(a){var c=this.getElementsByTagName(&quot;source&quot;);while(c.length&gt;0){this.removeChild(c[0])}if(typeof a==&quot;string&quot;){this.src=a}else{var b,d;for(b=0;b&lt;a.length;b++){d=a[b];if(this.canPlayType(d.type)){this.src=d.src;break}}}},setVideoSize:function(b,a){this.width=b;this.height=a}};mejs.PluginMediaElement=function(b,c,a){this.id=b;this.pluginType=c;this.src=a;this.events={};this.attributes={}};mejs.PluginMediaElement.prototype={pluginEl
 ement:null,pluginType:&quot;&quot;,isFullScreen:false,playbackRate:-1,defaultPlaybackRate:-1,seekable:[],played:[],paused:true,ended:false,seeking:false,duration:0,error:null,tagName:&quot;&quot;,muted:false,volume:1,currentTime:0,play:function(){if(this.pluginApi!=null){if(this.pluginType==&quot;youtube&quot;){this.pluginApi.playVideo()}else{this.pluginApi.playMedia()}this.paused=false}},load:function(){if(this.pluginApi!=null){if(this.pluginType==&quot;youtube&quot;){}else{this.pluginApi.loadMedia()}this.paused=false}},pause:function(){if(this.pluginApi!=null){if(this.pluginType==&quot;youtube&quot;){this.pluginApi.pauseVideo()}else{this.pluginApi.pauseMedia()}this.paused=true}},stop:function(){if(this.pluginApi!=null){if(this.pluginType==&quot;youtube&quot;){this.pluginApi.stopVideo()}else{this.pluginApi.stopMedia()}this.paused=true}},canPlayType:function(e){var d,c,a,b=mejs.plugins[this.pluginType];for(d=0;d&lt;b.length;d++){a=b[d];if(mejs.PluginDetector.hasPluginVersion
 (this.pluginType,a.version)){for(c=0;c&lt;a.types.length;c++){if(e==a.types[c]){return&quot;probably&quot;}}}}return&quot;&quot;},positionFullscreenButton:function(a,c,b){if(this.pluginApi!=null&amp;&amp;this.pluginApi.positionFullscreenButton){this.pluginApi.positionFullscreenButton(a,c,b)}},hideFullscreenButton:function(){if(this.pluginApi!=null&amp;&amp;this.pluginApi.hideFullscreenButton){this.pluginApi.hideFullscreenButton()}},setSrc:function(a){if(typeof a==&quot;string&quot;){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(a));this.src=mejs.Utility.absolutizeUrl(a)}else{var b,c;for(b=0;b&lt;a.length;b++){c=a[b];if(this.canPlayType(c.type)){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(c.src));this.src=mejs.Utility.absolutizeUrl(a);break}}}},setCurrentTime:function(a){if(this.pluginApi!=null){if(this.pluginType==&quot;youtube&quot;){this.pluginApi.seekTo(a)}else{this.pluginApi.setCurrentTime(a)}this.currentTime=a}},setVolume:function(a){if(this.pluginApi!=null){if(
 this.pluginType==&quot;youtube&quot;){this.pluginApi.setVolume(a*100)}else{this.pluginApi.setVolume(a)}this.volume=a}},setMuted:function(a){if(this.pluginApi!=null){if(this.pluginType==&quot;youtube&quot;){if(a){this.pluginApi.mute()}else{this.pluginApi.unMute()}this.muted=a;this.dispatchEvent(&quot;volumechange&quot;)}else{this.pluginApi.setMuted(a)}this.muted=a}},setVideoSize:function(b,a){if(this.pluginElement.style){this.pluginElement.style.width=b+&quot;px&quot;;this.pluginElement.style.height=a+&quot;px&quot;}if(this.pluginApi!=null&amp;&amp;this.pluginApi.setVideoSize){this.pluginApi.setVideoSize(b,a)}},setFullscreen:function(a){if(this.pluginApi!=null&amp;&amp;this.pluginApi.setFullscreen){this.pluginApi.setFullscreen(a)}},enterFullScreen:function(){if(this.pluginApi!=null&amp;&amp;this.pluginApi.setFullscreen){this.setFullscreen(true)}},exitFullScreen:function(){if(this.pluginApi!=null&amp;&amp;this.pluginApi.setFullscreen){this.setFullscreen(false)}},addEventListen
 er:function(b,c,a){this.events[b]=this.events[b]||[];this.events[b].push(c)},removeEventListener:function(a,c){if(!a){this.events={};return true}var b=this.events[a];if(!b){return true}if(!c){this.events[a]=[];return true}for(i=0;i&lt;b.length;i++){if(b[i]===c){this.events[a].splice(i,1);return true}}return false},dispatchEvent:function(a){var c,b,d=this.events[a];if(d){b=Array.prototype.slice.call(arguments,1);for(c=0;c&lt;d.length;c++){d[c].apply(null,b)}}},hasAttribute:function(a){return(a in this.attributes)},removeAttribute:function(a){delete this.attributes[a]},getAttribute:function(a){if(this.hasAttribute(a)){return this.attributes[a]}return&quot;&quot;},setAttribute:function(a,b){this.attributes[a]=b},remove:function(){mejs.Utility.removeSwf(this.pluginElement.id);mejs.MediaPluginBridge.unregisterPluginElement(this.pluginElement.id)}};mejs.MediaPluginBridge={pluginMediaElements:{},htmlMediaElements:{},registerPluginElement:function(c,a,b){this.pluginMediaElements[c]=
 a;this.htmlMediaElements[c]=b},unregisterPluginElement:function(a){delete this.pluginMediaElements[a];delete this.htmlMediaElements[a]},initPlugin:function(c){var a=this.pluginMediaElements[c],b=this.htmlMediaElements[c];if(a){switch(a.pluginType){case&quot;flash&quot;:a.pluginElement=a.pluginApi=document.getElementById(c);break;case&quot;silverlight&quot;:a.pluginElement=document.getElementById(a.id);a.pluginApi=a.pluginElement.Content.MediaElementJS;break}if(a.pluginApi!=null&amp;&amp;a.success){a.success(a,b)}}},fireEvent:function(h,c,b){var g,f,a,d=this.pluginMediaElements[h];g={type:c,target:d};for(f in b){d[f]=b[f];g[f]=b[f]}a=b.bufferedTime||0;g.target.buffered=g.buffered={start:function(e){return 0},end:function(e){return a},length:1};d.dispatchEvent(g.type,g)}};mejs.MediaElementDefaults={mode:&quot;auto&quot;,plugins:[&quot;flash&quot;,&quot;silverlight&quot;,&quot;youtube&quot;,&quot;vimeo&quot;],enablePluginDebug:false,type:&quot;&quot;,pluginPath:mejs.Utility.get
 ScriptPath([&quot;mediaelement.js&quot;,&quot;mediaelement.min.js&quot;,&quot;mediaelement-and-player.js&quot;,&quot;mediaelement-and-player.min.js&quot;]),flashName:&quot;flashmediaelement.swf&quot;,flashStreamer:&quot;&quot;,enablePluginSmoothing:false,silverlightName:&quot;silverlightmediaelement.xap&quot;,defaultVideoWidth:480,defaultVideoHeight:270,pluginWidth:-1,pluginHeight:-1,pluginVars:[],timerRate:250,startVolume:0.8,success:function(){},error:function(){}};mejs.MediaElement=function(a,b){return mejs.HtmlMediaElementShim.create(a,b)};mejs.HtmlMediaElementShim={create:function(e,d){var n=mejs.MediaElementDefaults,k=(typeof(e)==&quot;string&quot;)?document.getElementById(e):e,h=k.tagName.toLowerCase(),g=(h===&quot;audio&quot;||h===&quot;video&quot;),b=(g)?k.getAttribute(&quot;src&quot;):k.getAttribute(&quot;href&quot;),l=k.getAttribute(&quot;poster&quot;),f=k.getAttribute(&quot;autoplay&quot;),j=k.getAttribute(&quot;preload&quot;),m=k.getAttribute(&quot;controls&quot
 ;),a,c;for(c in d){n[c]=d[c]}b=(typeof b==&quot;undefined&quot;||b===null||b==&quot;&quot;)?null:b;l=(typeof l==&quot;undefined&quot;||l===null)?&quot;&quot;:l;j=(typeof j==&quot;undefined&quot;||j===null||j===&quot;false&quot;)?&quot;none&quot;:j;f=!(typeof f==&quot;undefined&quot;||f===null||f===&quot;false&quot;);m=!(typeof m==&quot;undefined&quot;||m===null||m===&quot;false&quot;);a=this.determinePlayback(k,n,mejs.MediaFeatures.supportsMediaTag,g,b);a.url=(a.url!==null)?mejs.Utility.absolutizeUrl(a.url):&quot;&quot;;if(a.method==&quot;native&quot;){if(mejs.MediaFeatures.isBustedAndroid){k.src=a.url;k.addEventListener(&quot;click&quot;,function(){k.play()},false)}return this.updateNative(a,n,f,j)}else{if(a.method!==&quot;&quot;){return this.createPlugin(a,n,l,f,j,m)}else{this.createErrorMessage(a,n,l);return this}}},determinePlayback:function(t,c,h,v,f){var o=[],s,r,q,p,m,d,g={method:&quot;&quot;,url:&quot;&quot;,htmlMediaElement:t,isVideo:(t.tagName.toLowerCase()!=&quot;
 audio&quot;)},a,b,u,w,e;if(typeof c.type!=&quot;undefined&quot;&amp;&amp;c.type!==&quot;&quot;){if(typeof c.type==&quot;string&quot;){o.push({type:c.type,url:f})}else{for(s=0;s&lt;c.type.length;s++){o.push({type:c.type[s],url:f})}}}else{if(f!==null){d=this.formatType(f,t.getAttribute(&quot;type&quot;));o.push({type:d,url:f})}else{for(s=0;s&lt;t.childNodes.length;s++){m=t.childNodes[s];if(m.nodeType==1&amp;&amp;m.tagName.toLowerCase()==&quot;source&quot;){f=m.getAttribute(&quot;src&quot;);d=this.formatType(f,m.getAttribute(&quot;type&quot;));e=m.getAttribute(&quot;media&quot;);if(!e||!window.matchMedia||(window.matchMedia&amp;&amp;window.matchMedia(e).matches)){o.push({type:d,url:f})}}}}}if(!v&amp;&amp;o.length&gt;0&amp;&amp;o[0].url!==null&amp;&amp;this.getTypeFromFile(o[0].url).indexOf(&quot;audio&quot;)&gt;-1){g.isVideo=false}if(mejs.MediaFeatures.isBustedAndroid){t.canPlayType=function(j){return(j.match(/video\/(mp4|m4v)/gi)!==null)?&quot;maybe&quot;:&quot;&quot;}}if(h&am
 p;&amp;(c.mode===&quot;auto&quot;||c.mode===&quot;auto_plugin&quot;||c.mode===&quot;native&quot;)){if(!v){w=document.createElement(g.isVideo?&quot;video&quot;:&quot;audio&quot;);t.parentNode.insertBefore(w,t);t.style.display=&quot;none&quot;;g.htmlMediaElement=t=w}for(s=0;s&lt;o.length;s++){if(t.canPlayType(o[s].type).replace(/no/,&quot;&quot;)!==&quot;&quot;||t.canPlayType(o[s].type.replace(/mp3/,&quot;mpeg&quot;)).replace(/no/,&quot;&quot;)!==&quot;&quot;){g.method=&quot;native&quot;;g.url=o[s].url;break}}if(g.method===&quot;native&quot;){if(g.url!==null){t.src=g.url}if(c.mode!==&quot;auto_plugin&quot;){return g}}}if(c.mode===&quot;auto&quot;||c.mode===&quot;auto_plugin&quot;||c.mode===&quot;shim&quot;){for(s=0;s&lt;o.length;s++){d=o[s].type;for(r=0;r&lt;c.plugins.length;r++){a=c.plugins[r];b=mejs.plugins[a];for(q=0;q&lt;b.length;q++){u=b[q];if(u.version==null||mejs.PluginDetector.hasPluginVersion(a,u.version)){for(p=0;p&lt;u.types.length;p++){if(d==u.types[p]){g.method=a;
 g.url=o[s].url;return g}}}}}}}if(c.mode===&quot;auto_plugin&quot;&amp;&amp;g.method===&quot;native&quot;){return g}if(g.method===&quot;&quot;&amp;&amp;o.length&gt;0){g.url=o[0].url}return g},formatType:function(a,c){var b;if(a&amp;&amp;!c){return this.getTypeFromFile(a)}else{if(c&amp;&amp;~c.indexOf(&quot;;&quot;)){return c.substr(0,c.indexOf(&quot;;&quot;))}else{return c}}},getTypeFromFile:function(a){a=a.split(&quot;?&quot;)[0];var b=a.substring(a.lastIndexOf(&quot;.&quot;)+1);return(/(mp4|m4v|ogg|ogv|webm|webmv|flv|wmv|mpeg|mov)/gi.test(b)?&quot;video&quot;:&quot;audio&quot;)+&quot;/&quot;+this.getTypeFromExtension(b)},getTypeFromExtension:function(a){switch(a){case&quot;mp4&quot;:case&quot;m4v&quot;:return&quot;mp4&quot;;case&quot;webm&quot;:case&quot;webma&quot;:case&quot;webmv&quot;:return&quot;webm&quot;;case&quot;ogg&quot;:case&quot;oga&quot;:case&quot;ogv&quot;:return&quot;ogg&quot;;default:return a}},createErrorMessage:function(c,b,g){var d=c.htmlMediaElement,a=doc
 ument.createElement(&quot;div&quot;);a.className=&quot;me-cannotplay&quot;;try{a.style.width=d.width+&quot;px&quot;;a.style.height=d.height+&quot;px&quot;}catch(f){}a.innerHTML=(g!==&quot;&quot;)?'&lt;a href=&quot;'+c.url+'&quot;&gt;&lt;img src=&quot;'+g+'&quot; width=&quot;100%&quot; height=&quot;100%&quot; /&gt;&lt;/a&gt;':'&lt;a href=&quot;'+c.url+'&quot;&gt;&lt;span&gt;'+mejs.i18n.t(&quot;Download File&quot;)+&quot;&lt;/span&gt;&lt;/a&gt;&quot;;d.parentNode.insertBefore(a,d);d.style.display=&quot;none&quot;;b.error(d)},createPlugin:function(n,a,c,e,d,h){var r=n.htmlMediaElement,m=1,l=1,s=&quot;me_&quot;+n.method+&quot;_&quot;+(mejs.meIndex++),o=new mejs.PluginMediaElement(s,n.method,n.url),g=document.createElement(&quot;div&quot;),b,p,j;o.tagName=r.tagName;for(var q=0;q&lt;r.attributes.length;q++){var f=r.attributes[q];if(f.specified==true){o.setAttribute(f.name,f.value)}}p=r.parentNode;while(p!==null&amp;&amp;p.tagName.toLowerCase()!=&quot;body&quot;){if(p.parentNode.ta
 gName.toLowerCase()==&quot;p&quot;){p.parentNode.parentNode.insertBefore(p,p.parentNode);break}p=p.parentNode}if(n.isVideo){m=(a.videoWidth&gt;0)?a.videoWidth:(r.getAttribute(&quot;width&quot;)!==null)?r.getAttribute(&quot;width&quot;):a.defaultVideoWidth;l=(a.videoHeight&gt;0)?a.videoHeight:(r.getAttribute(&quot;height&quot;)!==null)?r.getAttribute(&quot;height&quot;):a.defaultVideoHeight;m=mejs.Utility.encodeUrl(m);l=mejs.Utility.encodeUrl(l)}else{if(a.enablePluginDebug){m=320;l=240}}o.success=a.success;mejs.MediaPluginBridge.registerPluginElement(s,o,r);g.className=&quot;me-plugin&quot;;g.id=s+&quot;_container&quot;;if(n.isVideo){r.parentNode.insertBefore(g,r)}else{document.body.insertBefore(g,document.body.childNodes[0])}j=[&quot;id=&quot;+s,&quot;isvideo=&quot;+((n.isVideo)?&quot;true&quot;:&quot;false&quot;),&quot;autoplay=&quot;+((e)?&quot;true&quot;:&quot;false&quot;),&quot;preload=&quot;+d,&quot;width=&quot;+m,&quot;startvolume=&quot;+a.startVolume,&quot;timerrate=&
 quot;+a.timerRate,&quot;flashstreamer=&quot;+a.flashStreamer,&quot;height=&quot;+l];if(n.url!==null){if(n.method==&quot;flash&quot;){j.push(&quot;file=&quot;+mejs.Utility.encodeUrl(n.url))}else{j.push(&quot;file=&quot;+n.url)}}if(a.enablePluginDebug){j.push(&quot;debug=true&quot;)}if(a.enablePluginSmoothing){j.push(&quot;smoothing=true&quot;)}if(h){j.push(&quot;controls=true&quot;)}if(a.pluginVars){j=j.concat(a.pluginVars)}switch(n.method){case&quot;silverlight&quot;:g.innerHTML='&lt;object data=&quot;data:application/x-silverlight-2,&quot; type=&quot;application/x-silverlight-2&quot; id=&quot;'+s+'&quot; name=&quot;'+s+'&quot; width=&quot;'+m+'&quot; height=&quot;'+l+'&quot; class=&quot;mejs-shim&quot;&gt;&lt;param name=&quot;initParams&quot; value=&quot;'+j.join(&quot;,&quot;)+'&quot; /&gt;&lt;param name=&quot;windowless&quot; value=&quot;true&quot; /&gt;&lt;param name=&quot;background&quot; value=&quot;black&quot; /&gt;&lt;param name=&quot;minRuntimeVersion&quot; value=&q
 uot;3.0.0.0&quot; /&gt;&lt;param name=&quot;autoUpgrade&quot; value=&quot;true&quot; /&gt;&lt;param name=&quot;source&quot; value=&quot;'+a.pluginPath+a.silverlightName+'&quot; /&gt;&lt;/object&gt;';break;case&quot;flash&quot;:if(mejs.MediaFeatures.isIE){b=document.createElement(&quot;div&quot;);g.appendChild(b);b.outerHTML='&lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab&quot; id=&quot;'+s+'&quot; width=&quot;'+m+'&quot; height=&quot;'+l+'&quot; class=&quot;mejs-shim&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;'+a.pluginPath+a.flashName+&quot;?x=&quot;+(new Date())+'&quot; /&gt;&lt;param name=&quot;flashvars&quot; value=&quot;'+j.join(&quot;&amp;amp;&quot;)+'&quot; /&gt;&lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;&lt;param name=&quot;bgcolor&quot; value=&quot;#000000&quot; /&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; /&g
 t;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot; /&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /&gt;&lt;/object&gt;'}else{g.innerHTML='&lt;embed id=&quot;'+s+'&quot; name=&quot;'+s+'&quot; play=&quot;true&quot; loop=&quot;false&quot; quality=&quot;high&quot; bgcolor=&quot;#000000&quot; wmode=&quot;transparent&quot; allowScriptAccess=&quot;always&quot; allowFullScreen=&quot;true&quot; type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot;//www.macromedia.com/go/getflashplayer&quot; src=&quot;'+a.pluginPath+a.flashName+'&quot; flashvars=&quot;'+j.join(&quot;&amp;&quot;)+'&quot; width=&quot;'+m+'&quot; height=&quot;'+l+'&quot; class=&quot;mejs-shim&quot;&gt;&lt;/embed&gt;'}break;case&quot;youtube&quot;:var k=n.url.substr(n.url.lastIndexOf(&quot;=&quot;)+1);youtubeSettings={container:g,containerId:g.id,pluginMediaElement:o,pluginId:s,videoId:k,height:l,width:m};if(mejs.PluginDetector.hasPluginVersion(&quot;flash&quot;,[1
 0,0,0])){mejs.YouTubeApi.createFlash(youtubeSettings)}else{mejs.YouTubeApi.enqueueIframe(youtubeSettings)}break;case&quot;vimeo&quot;:o.vimeoid=n.url.substr(n.url.lastIndexOf(&quot;/&quot;)+1);g.innerHTML='&lt;iframe src=&quot;http://player.vimeo.com/video/'+o.vimeoid+'?portrait=0&amp;byline=0&amp;title=0&quot; width=&quot;'+m+'&quot; height=&quot;'+l+'&quot; frameborder=&quot;0&quot; class=&quot;mejs-shim&quot;&gt;&lt;/iframe&gt;';break}r.style.display=&quot;none&quot;;return o},updateNative:function(d,c,f,b){var e=d.htmlMediaElement,a;for(a in mejs.HtmlMediaElement){e[a]=mejs.HtmlMediaElement[a]}c.success(e,e);return e}};mejs.YouTubeApi={isIframeStarted:false,isIframeLoaded:false,loadIframeApi:function(){if(!this.isIframeStarted){var a=document.createElement(&quot;script&quot;);a.src=&quot;http://www.youtube.com/player_api&quot;;var b=document.getElementsByTagName(&quot;script&quot;)[0];b.parentNode.insertBefore(a,b);this.isIframeStarted=true}},iframeQueue:[],enqueueIframe
 :function(a){if(this.isLoaded){this.createIframe(a)}else{this.loadIframeApi();this.iframeQueue.push(a)}},createIframe:function(c){var b=c.pluginMediaElement,a=new YT.Player(c.containerId,{height:c.height,width:c.width,videoId:c.videoId,playerVars:{controls:0},events:{onReady:function(){c.pluginMediaElement.pluginApi=a;mejs.MediaPluginBridge.initPlugin(c.pluginId);setInterval(function(){mejs.YouTubeApi.createEvent(a,b,&quot;timeupdate&quot;)},250)},onStateChange:function(d){mejs.YouTubeApi.handleStateChange(d.data,a,b)}}})},createEvent:function(d,c,b){var e={type:b,target:c};if(d&amp;&amp;d.getDuration){c.currentTime=e.currentTime=d.getCurrentTime();c.duration=e.duration=d.getDuration();e.paused=c.paused;e.ended=c.ended;e.muted=d.isMuted();e.volume=d.getVolume()/100;e.bytesTotal=d.getVideoBytesTotal();e.bufferedBytes=d.getVideoBytesLoaded();var a=e.bufferedBytes/e.bytesTotal*e.duration;e.target.buffered=e.buffered={start:function(f){return 0},end:function(f){return a},length:
 1}}c.dispatchEvent(e.type,e)},iFrameReady:function(){this.isLoaded=true;this.isIframeLoaded=true;while(this.iframeQueue.length&gt;0){var a=this.iframeQueue.pop();this.createIframe(a)}},flashPlayers:{},createFlash:function(c){this.flashPlayers[c.pluginId]=c;var b,a=&quot;http://www.youtube.com/apiplayer?enablejsapi=1&amp;amp;playerapiid=&quot;+c.pluginId+&quot;&amp;amp;version=3&amp;amp;autoplay=0&amp;amp;controls=0&amp;amp;modestbranding=1&amp;loop=0&quot;;if(mejs.MediaFeatures.isIE){b=document.createElement(&quot;div&quot;);c.container.appendChild(b);b.outerHTML='&lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab&quot; id=&quot;'+c.pluginId+'&quot; width=&quot;'+c.width+'&quot; height=&quot;'+c.height+'&quot; class=&quot;mejs-shim&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;'+a+'&quot; /&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; /&gt;&lt;par
 am name=&quot;allowScriptAccess&quot; value=&quot;always&quot; /&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /&gt;&lt;/object&gt;'}else{c.container.innerHTML='&lt;object type=&quot;application/x-shockwave-flash&quot; id=&quot;'+c.pluginId+'&quot; data=&quot;'+a+'&quot; width=&quot;'+c.width+'&quot; height=&quot;'+c.height+'&quot; style=&quot;visibility: visible; &quot; class=&quot;mejs-shim&quot;&gt;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot;&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/object&gt;'}},flashReady:function(e){var c=this.flashPlayers[e],b=document.getElementById(e),a=c.pluginMediaElement;a.pluginApi=a.pluginElement=b;mejs.MediaPluginBridge.initPlugin(e);b.cueVideoById(c.videoId);var d=c.containerId+&quot;_callback&quot;;window[d]=function(f){mejs.YouTubeApi.handleStateChange(f,b,a)};b.addEventListener(&quot;onStateChange&quot;,d);setInterval(function(){mejs.YouTubeApi.createEvent(b,a
 ,&quot;timeupdate&quot;)},250)},handleStateChange:function(c,b,a){switch(c){case -1:a.paused=true;a.ended=true;mejs.YouTubeApi.createEvent(b,a,&quot;loadedmetadata&quot;);break;case 0:a.paused=false;a.ended=true;mejs.YouTubeApi.createEvent(b,a,&quot;ended&quot;);break;case 1:a.paused=false;a.ended=false;mejs.YouTubeApi.createEvent(b,a,&quot;play&quot;);mejs.YouTubeApi.createEvent(b,a,&quot;playing&quot;);break;case 2:a.paused=true;a.ended=false;mejs.YouTubeApi.createEvent(b,a,&quot;pause&quot;);break;case 3:mejs.YouTubeApi.createEvent(b,a,&quot;progress&quot;);break;case 5:break}}};function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}function onYouTubePlayerReady(a){mejs.YouTubeApi.flashReady(a)}window.mejs=mejs;window.MediaElement=mejs.MediaElement;
</ins><span class="cx"> /*!
</span><ins>+ * Adds Internationalization and localization to objects.
+ *
+ * What is the concept beyond i18n?
+ *   http://en.wikipedia.org/wiki/Internationalization_and_localization
+ *
+ *
+ * This file both i18n methods and locale which is used to translate
+ * strings into other languages.
+ *
+ * Default translations are not available, you have to add them
+ * through locale objects which are named exactly as the langcode
+ * they stand for. The default language is always english (en).
+ *
+ *
+ * Wrapper built to be able to attach the i18n object to
+ * other objects without changing more than one line.
+ *
+ *
+ * LICENSE:
+ *
+ *   The i18n file uses methods from the Drupal project (drupal.js):
+ *     - i18n.methods.t() (modified)
+ *     - i18n.methods.checkPlain() (full copy)
+ *     - i18n.methods.formatString() (full copy)
+ *
+ *   The Drupal project is (like mediaelementjs) licensed under GPLv2.
+ *    - http://drupal.org/licensing/faq/#q1
+ *    - https://github.com/johndyer/mediaelement
+ *    - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
+ *
+ *
+ * @author
+ *   Tim Latz (latz.tim@gmail.com)
+ *
+ * @see
+ *   me-i18n-locale.js
+ *
+ * @params
+ *  - $       - zepto || jQuery  ..
+ *  - context - document, iframe ..
+ *  - exports - CommonJS, window ..
+ *
+ */
+(function(d,b,a,e){var c={locale:{strings:{}},methods:{}};c.locale.getLanguage=function(){return{language:navigator.language}};c.locale.INIT_LANGUAGE=c.locale.getLanguage();c.methods.checkPlain=function(j){var h,g,f={&quot;&amp;&quot;:&quot;&amp;amp;&quot;,'&quot;':&quot;&amp;quot;&quot;,&quot;&lt;&quot;:&quot;&amp;lt;&quot;,&quot;&gt;&quot;:&quot;&amp;gt;&quot;};j=String(j);for(h in f){if(f.hasOwnProperty(h)){g=new RegExp(h,&quot;g&quot;);j=j.replace(g,f[h])}}return j};c.methods.formatString=function(h,f){for(var g in f){switch(g.charAt(0)){case&quot;@&quot;:f[g]=c.methods.checkPlain(f[g]);break;case&quot;!&quot;:break;case&quot;%&quot;:default:f[g]='&lt;em class=&quot;placeholder&quot;&gt;'+c.methods.checkPlain(f[g])+&quot;&lt;/em&gt;&quot;;break}h=h.replace(g,f[g])}return h};c.methods.t=function(h,g,f){if(c.locale.strings&amp;&amp;c.locale.strings[f.context]&amp;&amp;c.locale.strings[f.context][h]){h=c.locale.strings[f.context][h]}if(g){h=c.methods.formatString(h,g)}retur
 n h};c.t=function(j,g,f){if(typeof j===&quot;string&quot;&amp;&amp;j.length&gt;0){var h=c.locale.getLanguage();f=f||{context:h.language};return c.methods.t(j,g,f)}else{throw {name:&quot;InvalidArgumentException&quot;,message:&quot;First argument is either not a string or empty.&quot;}}};a.i18n=c}(jQuery,document,mejs));
+/*!
+ * This is a i18n.locale language object.
+ *
+ *&lt;de&gt; German translation by Tim Latz, latz.tim@gmail.com
+ *
+ * @author
+ *   Tim Latz (latz.tim@gmail.com)
+ *
+ * @see
+ *   me-i18n.js
+ *
+ * @params
+ *  - exports - CommonJS, window ..
+ */
+(function(a,b){a.de={Fullscreen:&quot;Vollbild&quot;,&quot;Go Fullscreen&quot;:&quot;Vollbild an&quot;,&quot;Turn off Fullscreen&quot;:&quot;Vollbild aus&quot;,Close:&quot;Schließen&quot;}}(mejs.i18n.locale.strings));
+/*!
</ins><span class="cx">  * MediaElementPlayer
</span><span class="cx">  * http://mediaelementjs.com/
</span><span class="cx">  *
</span><span class="lines">@@ -74,95 +82,5 @@
</span><span class="cx">  * Copyright 2010-2012, John Dyer (http://j.hn/)
</span><span class="cx">  * License: MIT
</span><span class="cx">  *
</span><del>- */if(typeof jQuery!=&quot;undefined&quot;)mejs.$=jQuery;else if(typeof ender!=&quot;undefined&quot;)mejs.$=ender;
-(function(f){mejs.MepDefaults={poster:&quot;&quot;,defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:30,defaultSeekBackwardInterval:function(a){return a.duration*0.05},defaultSeekForwardInterval:function(a){return a.duration*0.05},audioWidth:-1,audioHeight:-1,startVolume:0.8,loop:false,autoRewind:true,enableAutosize:true,alwaysShowHours:false,showTimecodeFrameCount:false,framesPerSecond:25,autosizeProgress:true,alwaysShowControls:false,hideVideoControlsOnLoad:false,
-clickToPlayPause:true,iPadUseNativeControls:false,iPhoneUseNativeControls:false,AndroidUseNativeControls:false,features:[&quot;playpause&quot;,&quot;current&quot;,&quot;progress&quot;,&quot;duration&quot;,&quot;tracks&quot;,&quot;volume&quot;,&quot;fullscreen&quot;],isVideo:true,enableKeyboard:true,pauseOtherPlayers:true,keyActions:[{keys:[32,179],action:function(a,b){b.paused||b.ended?b.play():b.pause()}},{keys:[38],action:function(a,b){b.setVolume(Math.min(b.volume+0.1,1))}},{keys:[40],action:function(a,b){b.setVolume(Math.max(b.volume-0.1,0))}},{keys:[37,227],action:function(a,
-b){if(!isNaN(b.duration)&amp;&amp;b.duration&gt;0){if(a.isVideo){a.showControls();a.startControlsTimer()}var c=Math.max(b.currentTime-a.options.defaultSeekBackwardInterval(b),0);b.setCurrentTime(c)}}},{keys:[39,228],action:function(a,b){if(!isNaN(b.duration)&amp;&amp;b.duration&gt;0){if(a.isVideo){a.showControls();a.startControlsTimer()}var c=Math.min(b.currentTime+a.options.defaultSeekForwardInterval(b),b.duration);b.setCurrentTime(c)}}},{keys:[70],action:function(a){if(typeof a.enterFullScreen!=&quot;undefined&quot;)a.isFullScreen?
-a.exitFullScreen():a.enterFullScreen()}}]};mejs.mepIndex=0;mejs.players={};mejs.MediaElementPlayer=function(a,b){if(!(this instanceof mejs.MediaElementPlayer))return new mejs.MediaElementPlayer(a,b);this.$media=this.$node=f(a);this.node=this.media=this.$media[0];if(typeof this.node.player!=&quot;undefined&quot;)return this.node.player;else this.node.player=this;if(typeof b==&quot;undefined&quot;)b=this.$node.data(&quot;mejsoptions&quot;);this.options=f.extend({},mejs.MepDefaults,b);this.id=&quot;mep_&quot;+mejs.mepIndex++;mejs.players[this.id]=
-this;this.init();return this};mejs.MediaElementPlayer.prototype={hasFocus:false,controlsAreVisible:true,init:function(){var a=this,b=mejs.MediaFeatures,c=f.extend(true,{},a.options,{success:function(e,g){a.meReady(e,g)},error:function(e){a.handleError(e)}}),d=a.media.tagName.toLowerCase();a.isDynamic=d!==&quot;audio&quot;&amp;&amp;d!==&quot;video&quot;;a.isVideo=a.isDynamic?a.options.isVideo:d!==&quot;audio&quot;&amp;&amp;a.options.isVideo;if(b.isiPad&amp;&amp;a.options.iPadUseNativeControls||b.isiPhone&amp;&amp;a.options.iPhoneUseNativeControls){a.$media.attr(&quot;controls&quot;,
-&quot;controls&quot;);if(b.isiPad&amp;&amp;a.media.getAttribute(&quot;autoplay&quot;)!==null){a.media.load();a.media.play()}}else if(!(b.isAndroid&amp;&amp;a.options.AndroidUseNativeControls)){a.$media.removeAttr(&quot;controls&quot;);a.container=f('&lt;div id=&quot;'+a.id+'&quot; class=&quot;mejs-container '+(mejs.MediaFeatures.svg?&quot;svg&quot;:&quot;no-svg&quot;)+'&quot;&gt;&lt;div class=&quot;mejs-inner&quot;&gt;&lt;div class=&quot;mejs-mediaelement&quot;&gt;&lt;/div&gt;&lt;div class=&quot;mejs-layers&quot;&gt;&lt;/div&gt;&lt;div class=&quot;mejs-controls&quot;&gt;&lt;/div&gt;&lt;div class=&quot;mejs-clear&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;').addClass(a.$media[0].className).insertBefore(a.$media);
-a.container.addClass((b.isAndroid?&quot;mejs-android &quot;:&quot;&quot;)+(b.isiOS?&quot;mejs-ios &quot;:&quot;&quot;)+(b.isiPad?&quot;mejs-ipad &quot;:&quot;&quot;)+(b.isiPhone?&quot;mejs-iphone &quot;:&quot;&quot;)+(a.isVideo?&quot;mejs-video &quot;:&quot;mejs-audio &quot;));if(b.isiOS){b=a.$media.clone();a.container.find(&quot;.mejs-mediaelement&quot;).append(b);a.$media.remove();a.$node=a.$media=b;a.node=a.media=b[0]}else a.container.find(&quot;.mejs-mediaelement&quot;).append(a.$media);a.controls=a.container.find(&quot;.mejs-controls&quot;);a.layers=a.container.find(&quot;.mejs-layers&quot;);b=a.isVideo?&quot;video&quot;:&quot;audio&quot;;d=b.substring(0,
-1).toUpperCase()+b.substring(1);a.width=a.options[b+&quot;Width&quot;]&gt;0||a.options[b+&quot;Width&quot;].toString().indexOf(&quot;%&quot;)&gt;-1?a.options[b+&quot;Width&quot;]:a.media.style.width!==&quot;&quot;&amp;&amp;a.media.style.width!==null?a.media.style.width:a.media.getAttribute(&quot;width&quot;)!==null?a.$media.attr(&quot;width&quot;):a.options[&quot;default&quot;+d+&quot;Width&quot;];a.height=a.options[b+&quot;Height&quot;]&gt;0||a.options[b+&quot;Height&quot;].toString().indexOf(&quot;%&quot;)&gt;-1?a.options[b+&quot;Height&quot;]:a.media.style.height!==&quot;&quot;&amp;&amp;a.media.style.height!==null?a.media.style.height:a.$media[0].getAttribute(&quot;height&quot;)!==
-null?a.$media.attr(&quot;height&quot;):a.options[&quot;default&quot;+d+&quot;Height&quot;];a.setPlayerSize(a.width,a.height);c.pluginWidth=a.height;c.pluginHeight=a.width}mejs.MediaElement(a.$media[0],c);a.container.trigger(&quot;controlsshown&quot;)},showControls:function(a){var b=this;a=typeof a==&quot;undefined&quot;||a;if(!b.controlsAreVisible){if(a){b.controls.css(&quot;visibility&quot;,&quot;visible&quot;).stop(true,true).fadeIn(200,function(){b.controlsAreVisible=true;b.container.trigger(&quot;controlsshown&quot;)});b.container.find(&quot;.mejs-control&quot;).css(&quot;visibility&quot;,&quot;visible&quot;).stop(true,
-true).fadeIn(200,function(){b.controlsAreVisible=true})}else{b.controls.css(&quot;visibility&quot;,&quot;visible&quot;).css(&quot;display&quot;,&quot;block&quot;);b.container.find(&quot;.mejs-control&quot;).css(&quot;visibility&quot;,&quot;visible&quot;).css(&quot;display&quot;,&quot;block&quot;);b.controlsAreVisible=true;b.container.trigger(&quot;controlsshown&quot;)}b.setControlsSize()}},hideControls:function(a){var b=this;a=typeof a==&quot;undefined&quot;||a;if(b.controlsAreVisible)if(a){b.controls.stop(true,true).fadeOut(200,function(){f(this).css(&quot;visibility&quot;,&quot;hidden&quot;).css(&quot;display&quot;,&quot;block&quot;);b.controlsAreVisible=
-false;b.container.trigger(&quot;controlshidden&quot;)});b.container.find(&quot;.mejs-control&quot;).stop(true,true).fadeOut(200,function(){f(this).css(&quot;visibility&quot;,&quot;hidden&quot;).css(&quot;display&quot;,&quot;block&quot;)})}else{b.controls.css(&quot;visibility&quot;,&quot;hidden&quot;).css(&quot;display&quot;,&quot;block&quot;);b.container.find(&quot;.mejs-control&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;).css(&quot;display&quot;,&quot;block&quot;);b.controlsAreVisible=false;b.container.trigger(&quot;controlshidden&quot;)}},controlsTimer:null,startControlsTimer:function(a){var b=this;a=typeof a!=&quot;undefined&quot;?a:1500;b.killControlsTimer(&quot;start&quot;);
-b.controlsTimer=setTimeout(function(){b.hideControls();b.killControlsTimer(&quot;hide&quot;)},a)},killControlsTimer:function(){if(this.controlsTimer!==null){clearTimeout(this.controlsTimer);delete this.controlsTimer;this.controlsTimer=null}},controlsEnabled:true,disableControls:function(){this.killControlsTimer();this.hideControls(false);this.controlsEnabled=false},enableControls:function(){this.showControls(false);this.controlsEnabled=true},meReady:function(a,b){var c=this,d=mejs.MediaFeatures,e=b.getAttribute(&quot;autoplay&quot;);
-e=!(typeof e==&quot;undefined&quot;||e===null||e===&quot;false&quot;);var g;if(!c.created){c.created=true;c.media=a;c.domNode=b;if(!(d.isAndroid&amp;&amp;c.options.AndroidUseNativeControls)&amp;&amp;!(d.isiPad&amp;&amp;c.options.iPadUseNativeControls)&amp;&amp;!(d.isiPhone&amp;&amp;c.options.iPhoneUseNativeControls)){c.buildposter(c,c.controls,c.layers,c.media);c.buildkeyboard(c,c.controls,c.layers,c.media);c.buildoverlays(c,c.controls,c.layers,c.media);c.findTracks();for(g in c.options.features){d=c.options.features[g];if(c[&quot;build&quot;+d])try{c[&quot;build&quot;+d](c,
-c.controls,c.layers,c.media)}catch(l){}}c.container.trigger(&quot;controlsready&quot;);c.setPlayerSize(c.width,c.height);c.setControlsSize();if(c.isVideo){if(mejs.MediaFeatures.hasTouch)c.$media.bind(&quot;touchstart&quot;,function(){if(c.controlsAreVisible)c.hideControls(false);else c.controlsEnabled&amp;&amp;c.showControls(false)});else{c.media.addEventListener(&quot;click&quot;,function(){if(c.options.clickToPlayPause)c.media.paused?c.media.play():c.media.pause()});c.container.bind(&quot;mouseenter mouseover&quot;,function(){if(c.controlsEnabled)if(!c.options.alwaysShowControls){c.killControlsTimer(&quot;enter&quot;);
-c.showControls();c.startControlsTimer(2500)}}).bind(&quot;mousemove&quot;,function(){if(c.controlsEnabled){c.controlsAreVisible||c.showControls();c.options.alwaysShowControls||c.startControlsTimer(2500)}}).bind(&quot;mouseleave&quot;,function(){c.controlsEnabled&amp;&amp;!c.media.paused&amp;&amp;!c.options.alwaysShowControls&amp;&amp;c.startControlsTimer(1E3)})}c.options.hideVideoControlsOnLoad&amp;&amp;c.hideControls(false);e&amp;&amp;!c.options.alwaysShowControls&amp;&amp;c.hideControls();c.options.enableAutosize&amp;&amp;c.media.addEventListener(&quot;loadedmetadata&quot;,function(j){if(c.options.videoHeight&lt;=
-0&amp;&amp;c.domNode.getAttribute(&quot;height&quot;)===null&amp;&amp;!isNaN(j.target.videoHeight)){c.setPlayerSize(j.target.videoWidth,j.target.videoHeight);c.setControlsSize();c.media.setVideoSize(j.target.videoWidth,j.target.videoHeight)}},false)}a.addEventListener(&quot;play&quot;,function(){for(var j in mejs.players){var k=mejs.players[j];k.id!=c.id&amp;&amp;c.options.pauseOtherPlayers&amp;&amp;!k.paused&amp;&amp;!k.ended&amp;&amp;k.pause();k.hasFocus=false}c.hasFocus=true},false);c.media.addEventListener(&quot;ended&quot;,function(){if(c.options.autoRewind)try{c.media.setCurrentTime(0)}catch(j){}c.media.pause();
-c.setProgressRail&amp;&amp;c.setProgressRail();c.setCurrentRail&amp;&amp;c.setCurrentRail();if(c.options.loop)c.media.play();else!c.options.alwaysShowControls&amp;&amp;c.controlsEnabled&amp;&amp;c.showControls()},false);c.media.addEventListener(&quot;loadedmetadata&quot;,function(){c.updateDuration&amp;&amp;c.updateDuration();c.updateCurrent&amp;&amp;c.updateCurrent();if(!c.isFullScreen){c.setPlayerSize(c.width,c.height);c.setControlsSize()}},false);setTimeout(function(){c.setPlayerSize(c.width,c.height);c.setControlsSize()},50);c.globalBind(&quot;resize&quot;,function(){c.isFullScreen||
-mejs.MediaFeatures.hasTrueNativeFullScreen&amp;&amp;document.webkitIsFullScreen||c.setPlayerSize(c.width,c.height);c.setControlsSize()});c.media.pluginType==&quot;youtube&quot;&amp;&amp;c.container.find(&quot;.mejs-overlay-play&quot;).hide()}if(e&amp;&amp;a.pluginType==&quot;native&quot;){a.load();a.play()}if(c.options.success)typeof c.options.success==&quot;string&quot;?window[c.options.success](c.media,c.domNode,c):c.options.success(c.media,c.domNode,c)}},handleError:function(a){this.controls.hide();this.options.error&amp;&amp;this.options.error(a)},setPlayerSize:function(a,
-b){if(typeof a!=&quot;undefined&quot;)this.width=a;if(typeof b!=&quot;undefined&quot;)this.height=b;if(this.height.toString().indexOf(&quot;%&quot;)&gt;0||this.$node.css(&quot;max-width&quot;)===&quot;100%&quot;||this.$node[0].currentStyle&amp;&amp;this.$node[0].currentStyle.maxWidth===&quot;100%&quot;){var c=this.isVideo?this.media.videoWidth&amp;&amp;this.media.videoWidth&gt;0?this.media.videoWidth:this.options.defaultVideoWidth:this.options.defaultAudioWidth,d=this.isVideo?this.media.videoHeight&amp;&amp;this.media.videoHeight&gt;0?this.media.videoHeight:this.options.defaultVideoHeight:
-this.options.defaultAudioHeight,e=this.container.parent().closest(&quot;:visible&quot;).width();c=this.isVideo||!this.options.autosizeProgress?parseInt(e*d/c,10):d;if(this.container.parent()[0].tagName.toLowerCase()===&quot;body&quot;){e=f(window).width();c=f(window).height()}if(c!=0&amp;&amp;e!=0){this.container.width(e).height(c);this.$media.add(this.container.find(&quot;.mejs-shim&quot;)).width(&quot;100%&quot;).height(&quot;100%&quot;);this.isVideo&amp;&amp;this.media.setVideoSize&amp;&amp;this.media.setVideoSize(e,c);this.layers.children(&quot;.mejs-layer&quot;).width(&quot;100%&quot;).height(&quot;100%&quot;)}}else{this.container.width(this.width).height(this.height);
-this.layers.children(&quot;.mejs-layer&quot;).width(this.width).height(this.height)}},setControlsSize:function(){var a=0,b=0,c=this.controls.find(&quot;.mejs-time-rail&quot;),d=this.controls.find(&quot;.mejs-time-total&quot;);this.controls.find(&quot;.mejs-time-current&quot;);this.controls.find(&quot;.mejs-time-loaded&quot;);var e=c.siblings();if(this.options&amp;&amp;!this.options.autosizeProgress)b=parseInt(c.css(&quot;width&quot;));if(b===0||!b){e.each(function(){var g=f(this);if(g.css(&quot;position&quot;)!=&quot;absolute&quot;&amp;&amp;g.is(&quot;:visible&quot;))a+=f(this).outerWidth(true)});b=this.controls.width()-
-a-(c.outerWidth(true)-c.width())}c.width(b);d.width(b-(d.outerWidth(true)-d.width()));this.setProgressRail&amp;&amp;this.setProgressRail();this.setCurrentRail&amp;&amp;this.setCurrentRail()},buildposter:function(a,b,c,d){var e=f('&lt;div class=&quot;mejs-poster mejs-layer&quot;&gt;&lt;/div&gt;').appendTo(c);b=a.$media.attr(&quot;poster&quot;);if(a.options.poster!==&quot;&quot;)b=a.options.poster;b!==&quot;&quot;&amp;&amp;b!=null?this.setPoster(b):e.hide();d.addEventListener(&quot;play&quot;,function(){e.hide()},false)},setPoster:function(a){var b=this.container.find(&quot;.mejs-poster&quot;),
-c=b.find(&quot;img&quot;);if(c.length==0)c=f('&lt;img width=&quot;100%&quot; height=&quot;100%&quot; /&gt;').appendTo(b);c.attr(&quot;src&quot;,a)},buildoverlays:function(a,b,c,d){var e=this;if(a.isVideo){var g=f('&lt;div class=&quot;mejs-overlay mejs-layer&quot;&gt;&lt;div class=&quot;mejs-overlay-loading&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;').hide().appendTo(c),l=f('&lt;div class=&quot;mejs-overlay mejs-layer&quot;&gt;&lt;div class=&quot;mejs-overlay-error&quot;&gt;&lt;/div&gt;&lt;/div&gt;').hide().appendTo(c),j=f('&lt;div class=&quot;mejs-overlay mejs-layer mejs-overlay-play&quot;&gt;&lt;div class=&quot;mejs-overlay-button&quot;&gt;&lt;/div&gt;&lt;/div&gt;').appendTo(c).click(function(){if(e.options.clickToPlayPause)d.paused?
-d.play():d.pause()});d.addEventListener(&quot;play&quot;,function(){j.hide();g.hide();b.find(&quot;.mejs-time-buffering&quot;).hide();l.hide()},false);d.addEventListener(&quot;playing&quot;,function(){j.hide();g.hide();b.find(&quot;.mejs-time-buffering&quot;).hide();l.hide()},false);d.addEventListener(&quot;seeking&quot;,function(){g.show();b.find(&quot;.mejs-time-buffering&quot;).show()},false);d.addEventListener(&quot;seeked&quot;,function(){g.hide();b.find(&quot;.mejs-time-buffering&quot;).hide()},false);d.addEventListener(&quot;pause&quot;,function(){mejs.MediaFeatures.isiPhone||j.show()},
-false);d.addEventListener(&quot;waiting&quot;,function(){g.show();b.find(&quot;.mejs-time-buffering&quot;).show()},false);d.addEventListener(&quot;loadeddata&quot;,function(){g.show();b.find(&quot;.mejs-time-buffering&quot;).show()},false);d.addEventListener(&quot;canplay&quot;,function(){g.hide();b.find(&quot;.mejs-time-buffering&quot;).hide()},false);d.addEventListener(&quot;error&quot;,function(){g.hide();b.find(&quot;.mejs-time-buffering&quot;).hide();l.show();l.find(&quot;mejs-overlay-error&quot;).html(&quot;Error loading this resource&quot;)},false)}},buildkeyboard:function(a,b,c,d){this.globalBind(&quot;keydown&quot;,
-function(e){if(a.hasFocus&amp;&amp;a.options.enableKeyboard)for(var g=0,l=a.options.keyActions.length;g&lt;l;g++)for(var j=a.options.keyActions[g],k=0,s=j.keys.length;k&lt;s;k++)if(e.keyCode==j.keys[k]){e.preventDefault();j.action(a,d,e.keyCode);return false}return true});this.globalBind(&quot;click&quot;,function(e){if(f(e.target).closest(&quot;.mejs-container&quot;).length==0)a.hasFocus=false})},findTracks:function(){var a=this,b=a.$media.find(&quot;track&quot;);a.tracks=[];b.each(function(c,d){d=f(d);a.tracks.push({srclang:d.attr(&quot;srclang&quot;)?
-d.attr(&quot;srclang&quot;).toLowerCase():&quot;&quot;,src:d.attr(&quot;src&quot;),kind:d.attr(&quot;kind&quot;),label:d.attr(&quot;label&quot;)||&quot;&quot;,entries:[],isLoaded:false})})},changeSkin:function(a){this.container[0].className=&quot;mejs-container &quot;+a;this.setPlayerSize(this.width,this.height);this.setControlsSize()},play:function(){this.media.play()},pause:function(){this.media.pause()},load:function(){this.media.load()},setMuted:function(a){this.media.setMuted(a)},setCurrentTime:function(a){this.media.setCurrentTime(a)},getCurrentTime:function(){return this.media.currentTime},
-setVolume:function(a){this.media.setVolume(a)},getVolume:function(){return this.media.volume},setSrc:function(a){this.media.setSrc(a)},remove:function(){var a,b;for(a in this.options.features){b=this.options.features[a];if(this[&quot;clean&quot;+b])try{this[&quot;clean&quot;+b](this)}catch(c){}}this.media.pluginType===&quot;native&quot;?this.$media.prop(&quot;controls&quot;,true):this.media.remove();this.isDynamic||this.$node.insertBefore(this.container);mejs.players.splice(f.inArray(this,mejs.players),1);this.container.remove();this.globalUnbind();
-delete this.node.player;delete mejs.players[this.id]}};(function(){function a(c,d){var e={d:[],w:[]};f.each((c||&quot;&quot;).split(&quot; &quot;),function(g,l){e[b.test(l)?&quot;w&quot;:&quot;d&quot;].push(l+&quot;.&quot;+d)});e.d=e.d.join(&quot; &quot;);e.w=e.w.join(&quot; &quot;);return e}var b=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/;mejs.MediaElementPlayer.prototype.globalBind=function(c,d,e){c=a(c,this.id);c.d&amp;&amp;f(document).bind(c.d,d,e);c.w&amp;&amp;f(window).bind(c.w,d,e)};mejs.MediaElementPlayer.prototype.globalUnbind=
-function(c,d){c=a(c,this.id);c.d&amp;&amp;f(document).unbind(c.d,d);c.w&amp;&amp;f(window).unbind(c.w,d)}})();if(typeof jQuery!=&quot;undefined&quot;)jQuery.fn.mediaelementplayer=function(a){a===false?this.each(function(){var b=jQuery(this).data(&quot;mediaelementplayer&quot;);b&amp;&amp;b.remove();jQuery(this).removeData(&quot;mediaelementplayer&quot;)}):this.each(function(){jQuery(this).data(&quot;mediaelementplayer&quot;,new mejs.MediaElementPlayer(this,a))});return this};f(document).ready(function(){f(&quot;.mejs-player&quot;).mediaelementplayer()});window.MediaElementPlayer=
-mejs.MediaElementPlayer})(mejs.$);
-(function(f){f.extend(mejs.MepDefaults,{playpauseText:&quot;Play/Pause&quot;});f.extend(MediaElementPlayer.prototype,{buildplaypause:function(a,b,c,d){var e=f('&lt;div class=&quot;mejs-button mejs-playpause-button mejs-play&quot; &gt;&lt;button type=&quot;button&quot; aria-controls=&quot;'+this.id+'&quot; title=&quot;'+this.options.playpauseText+'&quot;&gt;&lt;/button&gt;&lt;/div&gt;').appendTo(b).click(function(g){g.preventDefault();d.paused?d.play():d.pause();return false});d.addEventListener(&quot;play&quot;,function(){e.removeClass(&quot;mejs-play&quot;).addClass(&quot;mejs-pause&quot;)},false);
-d.addEventListener(&quot;playing&quot;,function(){e.removeClass(&quot;mejs-play&quot;).addClass(&quot;mejs-pause&quot;)},false);d.addEventListener(&quot;pause&quot;,function(){e.removeClass(&quot;mejs-pause&quot;).addClass(&quot;mejs-play&quot;)},false);d.addEventListener(&quot;paused&quot;,function(){e.removeClass(&quot;mejs-pause&quot;).addClass(&quot;mejs-play&quot;)},false)}})})(mejs.$);
-(function(f){f.extend(mejs.MepDefaults,{stopText:&quot;Stop&quot;});f.extend(MediaElementPlayer.prototype,{buildstop:function(a,b,c,d){f('&lt;div class=&quot;mejs-button mejs-stop-button mejs-stop&quot;&gt;&lt;button type=&quot;button&quot; aria-controls=&quot;'+this.id+'&quot; title=&quot;'+this.options.stopText+'&quot;&gt;&lt;/button&gt;&lt;/div&gt;').appendTo(b).click(function(){d.paused||d.pause();if(d.currentTime&gt;0){d.setCurrentTime(0);d.pause();b.find(&quot;.mejs-time-current&quot;).width(&quot;0px&quot;);b.find(&quot;.mejs-time-handle&quot;).css(&quot;left&quot;,&quot;0px&quot;);b.find(&quot;.mejs-time-float-current&quot;).html(mejs.Utility.secondsToTimeCode(0));
-b.find(&quot;.mejs-currenttime&quot;).html(mejs.Utility.secondsToTimeCode(0));c.find(&quot;.mejs-poster&quot;).show()}})}})})(mejs.$);
-(function(f){f.extend(MediaElementPlayer.prototype,{buildprogress:function(a,b,c,d){f('&lt;div class=&quot;mejs-time-rail&quot;&gt;&lt;span class=&quot;mejs-time-total&quot;&gt;&lt;span class=&quot;mejs-time-buffering&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mejs-time-loaded&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mejs-time-current&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mejs-time-handle&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mejs-time-float&quot;&gt;&lt;span class=&quot;mejs-time-float-current&quot;&gt;00:00&lt;/span&gt;&lt;span class=&quot;mejs-time-float-corner&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;').appendTo(b);b.find(&quot;.mejs-time-buffering&quot;).hide();var e=
-this,g=b.find(&quot;.mejs-time-total&quot;);c=b.find(&quot;.mejs-time-loaded&quot;);var l=b.find(&quot;.mejs-time-current&quot;),j=b.find(&quot;.mejs-time-handle&quot;),k=b.find(&quot;.mejs-time-float&quot;),s=b.find(&quot;.mejs-time-float-current&quot;),p=function(n){n=n.pageX;var h=g.offset(),q=g.outerWidth(true),m=0,o=m=0;if(d.duration){if(n&lt;h.left)n=h.left;else if(n&gt;q+h.left)n=q+h.left;o=n-h.left;m=o/q;m=m&lt;=0.02?0:m*d.duration;r&amp;&amp;m!==d.currentTime&amp;&amp;d.setCurrentTime(m);if(!mejs.MediaFeatures.hasTouch){k.css(&quot;left&quot;,o);s.html(mejs.Utility.secondsToTimeCode(m));
-k.show()}}},r=false;g.bind(&quot;mousedown&quot;,function(n){if(n.which===1){r=true;p(n);e.globalBind(&quot;mousemove.dur&quot;,function(h){p(h)});e.globalBind(&quot;mouseup.dur&quot;,function(){r=false;k.hide();e.globalUnbind(&quot;.dur&quot;)});return false}}).bind(&quot;mouseenter&quot;,function(){e.globalBind(&quot;mousemove.dur&quot;,function(n){p(n)});mejs.MediaFeatures.hasTouch||k.show()}).bind(&quot;mouseleave&quot;,function(){if(!r){e.globalUnbind(&quot;.dur&quot;);k.hide()}});d.addEventListener(&quot;progress&quot;,function(n){a.setProgressRail(n);a.setCurrentRail(n)},false);
-d.addEventListener(&quot;timeupdate&quot;,function(n){a.setProgressRail(n);a.setCurrentRail(n)},false);e.loaded=c;e.total=g;e.current=l;e.handle=j},setProgressRail:function(a){var b=a!=undefined?a.target:this.media,c=null;if(b&amp;&amp;b.buffered&amp;&amp;b.buffered.length&gt;0&amp;&amp;b.buffered.end&amp;&amp;b.duration)c=b.buffered.end(0)/b.duration;else if(b&amp;&amp;b.bytesTotal!=undefined&amp;&amp;b.bytesTotal&gt;0&amp;&amp;b.bufferedBytes!=undefined)c=b.bufferedBytes/b.bytesTotal;else if(a&amp;&amp;a.lengthComputable&amp;&amp;a.total!=0)c=a.loaded/a.total;if(c!==null){c=Math.min(1,
-Math.max(0,c));this.loaded&amp;&amp;this.total&amp;&amp;this.loaded.width(this.total.width()*c)}},setCurrentRail:function(){if(this.media.currentTime!=undefined&amp;&amp;this.media.duration)if(this.total&amp;&amp;this.handle){var a=Math.round(this.total.width()*this.media.currentTime/this.media.duration),b=a-Math.round(this.handle.outerWidth(true)/2);this.current.width(a);this.handle.css(&quot;left&quot;,b)}}})})(mejs.$);
-(function(f){f.extend(mejs.MepDefaults,{duration:-1,timeAndDurationSeparator:&quot; &lt;span&gt; | &lt;/span&gt; &quot;});f.extend(MediaElementPlayer.prototype,{buildcurrent:function(a,b,c,d){f('&lt;div class=&quot;mejs-time&quot;&gt;&lt;span class=&quot;mejs-currenttime&quot;&gt;'+(a.options.alwaysShowHours?&quot;00:&quot;:&quot;&quot;)+(a.options.showTimecodeFrameCount?&quot;00:00:00&quot;:&quot;00:00&quot;)+&quot;&lt;/span&gt;&lt;/div&gt;&quot;).appendTo(b);this.currenttime=this.controls.find(&quot;.mejs-currenttime&quot;);d.addEventListener(&quot;timeupdate&quot;,function(){a.updateCurrent()},false)},buildduration:function(a,
-b,c,d){if(b.children().last().find(&quot;.mejs-currenttime&quot;).length&gt;0)f(this.options.timeAndDurationSeparator+'&lt;span class=&quot;mejs-duration&quot;&gt;'+(this.options.duration&gt;0?mejs.Utility.secondsToTimeCode(this.options.duration,this.options.alwaysShowHours||this.media.duration&gt;3600,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25):(a.options.alwaysShowHours?&quot;00:&quot;:&quot;&quot;)+(a.options.showTimecodeFrameCount?&quot;00:00:00&quot;:&quot;00:00&quot;))+&quot;&lt;/span&gt;&quot;).appendTo(b.find(&quot;.mejs-time&quot;));else{b.find(&quot;.mejs-currenttime&quot;).parent().addClass(&quot;mejs-currenttime-container&quot;);
-f('&lt;div class=&quot;mejs-time mejs-duration-container&quot;&gt;&lt;span class=&quot;mejs-duration&quot;&gt;'+(this.options.duration&gt;0?mejs.Utility.secondsToTimeCode(this.options.duration,this.options.alwaysShowHours||this.media.duration&gt;3600,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25):(a.options.alwaysShowHours?&quot;00:&quot;:&quot;&quot;)+(a.options.showTimecodeFrameCount?&quot;00:00:00&quot;:&quot;00:00&quot;))+&quot;&lt;/span&gt;&lt;/div&gt;&quot;).appendTo(b)}this.durationD=this.controls.find(&quot;.mejs-duration&quot;);d.addEventListener(&quot;timeupdate&quot;,function(){a.updateDuration()},
-false)},updateCurrent:function(){if(this.currenttime)this.currenttime.html(mejs.Utility.secondsToTimeCode(this.media.currentTime,this.options.alwaysShowHours||this.media.duration&gt;3600,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25))},updateDuration:function(){this.container.toggleClass(&quot;mejs-long-video&quot;,this.media.duration&gt;3600);if(this.durationD&amp;&amp;(this.options.duration&gt;0||this.media.duration))this.durationD.html(mejs.Utility.secondsToTimeCode(this.options.duration&gt;0?this.options.duration:
-this.media.duration,this.options.alwaysShowHours,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25))}})})(mejs.$);
-(function(f){f.extend(mejs.MepDefaults,{muteText:&quot;Mute Toggle&quot;,hideVolumeOnTouchDevices:true,audioVolume:&quot;horizontal&quot;,videoVolume:&quot;vertical&quot;});f.extend(MediaElementPlayer.prototype,{buildvolume:function(a,b,c,d){if(!(mejs.MediaFeatures.hasTouch&amp;&amp;this.options.hideVolumeOnTouchDevices)){var e=this,g=e.isVideo?e.options.videoVolume:e.options.audioVolume,l=g==&quot;horizontal&quot;?f('&lt;div class=&quot;mejs-button mejs-volume-button mejs-mute&quot;&gt;&lt;button type=&quot;button&quot; aria-controls=&quot;'+e.id+'&quot; title=&quot;'+e.options.muteText+
-'&quot;&gt;&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;mejs-horizontal-volume-slider&quot;&gt;&lt;div class=&quot;mejs-horizontal-volume-total&quot;&gt;&lt;/div&gt;&lt;div class=&quot;mejs-horizontal-volume-current&quot;&gt;&lt;/div&gt;&lt;div class=&quot;mejs-horizontal-volume-handle&quot;&gt;&lt;/div&gt;&lt;/div&gt;').appendTo(b):f('&lt;div class=&quot;mejs-button mejs-volume-button mejs-mute&quot;&gt;&lt;button type=&quot;button&quot; aria-controls=&quot;'+e.id+'&quot; title=&quot;'+e.options.muteText+'&quot;&gt;&lt;/button&gt;&lt;div class=&quot;mejs-volume-slider&quot;&gt;&lt;div class=&quot;mejs-volume-total&quot;&gt;&lt;/div&gt;&lt;div class=&quot;mejs-volume-current&quot;&gt;&lt;/div&gt;&lt;div class=&quot;mejs-volume-handle&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;').appendTo(b),
-j=e.container.find(&quot;.mejs-volume-slider, .mejs-horizontal-volume-slider&quot;),k=e.container.find(&quot;.mejs-volume-total, .mejs-horizontal-volume-total&quot;),s=e.container.find(&quot;.mejs-volume-current, .mejs-horizontal-volume-current&quot;),p=e.container.find(&quot;.mejs-volume-handle, .mejs-horizontal-volume-handle&quot;),r=function(m,o){if(!j.is(&quot;:visible&quot;)&amp;&amp;typeof o==&quot;undefined&quot;){j.show();r(m,true);j.hide()}else{m=Math.max(0,m);m=Math.min(m,1);m==0?l.removeClass(&quot;mejs-mute&quot;).addClass(&quot;mejs-unmute&quot;):l.removeClass(&quot;mejs-unmute&quot;).addClass(&quot;mejs-mute&quot;);
-if(g==&quot;vertical&quot;){var t=k.height(),u=k.position(),v=t-t*m;p.css(&quot;top&quot;,Math.round(u.top+v-p.height()/2));s.height(t-v);s.css(&quot;top&quot;,u.top+v)}else{t=k.width();u=k.position();t=t*m;p.css(&quot;left&quot;,Math.round(u.left+t-p.width()/2));s.width(Math.round(t))}}},n=function(m){var o=null,t=k.offset();if(g==&quot;vertical&quot;){o=k.height();parseInt(k.css(&quot;top&quot;).replace(/px/,&quot;&quot;),10);o=(o-(m.pageY-t.top))/o;if(t.top==0||t.left==0)return}else{o=k.width();o=(m.pageX-t.left)/o}o=Math.max(0,o);o=Math.min(o,1);r(o);o==0?d.setMuted(true):
-d.setMuted(false);d.setVolume(o)},h=false,q=false;l.hover(function(){j.show();q=true},function(){q=false;!h&amp;&amp;g==&quot;vertical&quot;&amp;&amp;j.hide()});j.bind(&quot;mouseover&quot;,function(){q=true}).bind(&quot;mousedown&quot;,function(m){n(m);e.globalBind(&quot;mousemove.vol&quot;,function(o){n(o)});e.globalBind(&quot;mouseup.vol&quot;,function(){h=false;e.globalUnbind(&quot;.vol&quot;);!q&amp;&amp;g==&quot;vertical&quot;&amp;&amp;j.hide()});h=true;return false});l.find(&quot;button&quot;).click(function(){d.setMuted(!d.muted)});d.addEventListener(&quot;volumechange&quot;,function(){if(!h)if(d.muted){r(0);
-l.removeClass(&quot;mejs-mute&quot;).addClass(&quot;mejs-unmute&quot;)}else{r(d.volume);l.removeClass(&quot;mejs-unmute&quot;).addClass(&quot;mejs-mute&quot;)}},false);if(e.container.is(&quot;:visible&quot;)){r(a.options.startVolume);a.options.startVolume===0&amp;&amp;d.setMuted(true);d.pluginType===&quot;native&quot;&amp;&amp;d.setVolume(a.options.startVolume)}}}})})(mejs.$);
-(function(f){f.extend(mejs.MepDefaults,{usePluginFullScreen:true,newWindowCallback:function(){return&quot;&quot;},fullscreenText:mejs.i18n.t(&quot;Fullscreen&quot;)});f.extend(MediaElementPlayer.prototype,{isFullScreen:false,isNativeFullScreen:false,docStyleOverflow:null,isInIframe:false,buildfullscreen:function(a,b,c,d){if(a.isVideo){a.isInIframe=window.location!=window.parent.location;if(mejs.MediaFeatures.hasTrueNativeFullScreen){c=function(){if(mejs.MediaFeatures.isFullScreen()){a.isNativeFullScreen=true;a.setControlsSize()}else{a.isNativeFullScreen=
-false;a.exitFullScreen()}};mejs.MediaFeatures.hasMozNativeFullScreen?a.globalBind(mejs.MediaFeatures.fullScreenEventName,c):a.container.bind(mejs.MediaFeatures.fullScreenEventName,c)}var e=this,g=f('&lt;div class=&quot;mejs-button mejs-fullscreen-button&quot;&gt;&lt;button type=&quot;button&quot; aria-controls=&quot;'+e.id+'&quot; title=&quot;'+e.options.fullscreenText+'&quot;&gt;&lt;/button&gt;&lt;/div&gt;').appendTo(b);if(e.media.pluginType===&quot;native&quot;||!e.options.usePluginFullScreen&amp;&amp;!mejs.MediaFeatures.isFirefox)g.click(function(){mejs.MediaFeatures.hasTrueNativeFullScreen&amp;&amp;
-mejs.MediaFeatures.isFullScreen()||a.isFullScreen?a.exitFullScreen():a.enterFullScreen()});else{var l=null;if(function(){var h=document.createElement(&quot;x&quot;),q=document.documentElement,m=window.getComputedStyle;if(!(&quot;pointerEvents&quot;in h.style))return false;h.style.pointerEvents=&quot;auto&quot;;h.style.pointerEvents=&quot;x&quot;;q.appendChild(h);m=m&amp;&amp;m(h,&quot;&quot;).pointerEvents===&quot;auto&quot;;q.removeChild(h);return!!m}()&amp;&amp;!mejs.MediaFeatures.isOpera){var j=false,k=function(){if(j){s.hide();p.hide();r.hide();g.css(&quot;pointer-events&quot;,
-&quot;&quot;);e.controls.css(&quot;pointer-events&quot;,&quot;&quot;);j=false}},s=f('&lt;div class=&quot;mejs-fullscreen-hover&quot; /&gt;').appendTo(e.container).mouseover(k),p=f('&lt;div class=&quot;mejs-fullscreen-hover&quot;  /&gt;').appendTo(e.container).mouseover(k),r=f('&lt;div class=&quot;mejs-fullscreen-hover&quot;  /&gt;').appendTo(e.container).mouseover(k),n=function(){var h={position:&quot;absolute&quot;,top:0,left:0};s.css(h);p.css(h);r.css(h);s.width(e.container.width()).height(e.container.height()-e.controls.height());h=g.offset().left-e.container.offset().left;fullScreenBtnWidth=
-g.outerWidth(true);p.width(h).height(e.controls.height()).css({top:e.container.height()-e.controls.height()});r.width(e.container.width()-h-fullScreenBtnWidth).height(e.controls.height()).css({top:e.container.height()-e.controls.height(),left:h+fullScreenBtnWidth})};e.globalBind(&quot;resize&quot;,function(){n()});g.mouseover(function(){if(!e.isFullScreen){var h=g.offset(),q=a.container.offset();d.positionFullscreenButton(h.left-q.left,h.top-q.top,false);g.css(&quot;pointer-events&quot;,&quot;none&quot;);e.controls.css(&quot;pointer-events&quot;,
-&quot;none&quot;);s.show();r.show();p.show();n();j=true}});d.addEventListener(&quot;fullscreenchange&quot;,function(){k()})}else g.mouseover(function(){if(l!==null){clearTimeout(l);delete l}var h=g.offset(),q=a.container.offset();d.positionFullscreenButton(h.left-q.left,h.top-q.top,true)}).mouseout(function(){if(l!==null){clearTimeout(l);delete l}l=setTimeout(function(){d.hideFullscreenButton()},1500)})}a.fullscreenBtn=g;e.globalBind(&quot;keydown&quot;,function(h){if((mejs.MediaFeatures.hasTrueNativeFullScreen&amp;&amp;mejs.MediaFeatures.isFullScreen()||
-e.isFullScreen)&amp;&amp;h.keyCode==27)a.exitFullScreen()})}},cleanfullscreen:function(a){a.exitFullScreen()},enterFullScreen:function(){var a=this;if(!(a.media.pluginType!==&quot;native&quot;&amp;&amp;(mejs.MediaFeatures.isFirefox||a.options.usePluginFullScreen))){docStyleOverflow=document.documentElement.style.overflow;document.documentElement.style.overflow=&quot;hidden&quot;;normalHeight=a.container.height();normalWidth=a.container.width();if(a.media.pluginType===&quot;native&quot;)if(mejs.MediaFeatures.hasTrueNativeFullScreen){mejs.MediaFeatures.requestFullScreen(a.container[0]);
-a.isInIframe&amp;&amp;setTimeout(function c(){if(a.isNativeFullScreen)f(window).width()!==screen.width?a.exitFullScreen():setTimeout(c,500)},500)}else if(mejs.MediaFeatures.hasSemiNativeFullScreen){a.media.webkitEnterFullscreen();return}if(a.isInIframe){var b=a.options.newWindowCallback(this);if(b!==&quot;&quot;)if(mejs.MediaFeatures.hasTrueNativeFullScreen)setTimeout(function(){if(!a.isNativeFullScreen){a.pause();window.open(b,a.id,&quot;top=0,left=0,width=&quot;+screen.availWidth+&quot;,height=&quot;+screen.availHeight+&quot;,resizable=yes,scrollbars=no,status=no,toolbar=no&quot;)}},
-250);else{a.pause();window.open(b,a.id,&quot;top=0,left=0,width=&quot;+screen.availWidth+&quot;,height=&quot;+screen.availHeight+&quot;,resizable=yes,scrollbars=no,status=no,toolbar=no&quot;);return}}a.container.addClass(&quot;mejs-container-fullscreen&quot;).width(&quot;100%&quot;).height(&quot;100%&quot;);setTimeout(function(){a.container.css({width:&quot;100%&quot;,height:&quot;100%&quot;});a.setControlsSize()},500);if(a.pluginType===&quot;native&quot;)a.$media.width(&quot;100%&quot;).height(&quot;100%&quot;);else{a.container.find(&quot;.mejs-shim&quot;).width(&quot;100%&quot;).height(&quot;100%&quot;);a.media.setVideoSize(f(window).width(),
-f(window).height())}a.layers.children(&quot;div&quot;).width(&quot;100%&quot;).height(&quot;100%&quot;);a.fullscreenBtn&amp;&amp;a.fullscreenBtn.removeClass(&quot;mejs-fullscreen&quot;).addClass(&quot;mejs-unfullscreen&quot;);a.setControlsSize();a.isFullScreen=true}},exitFullScreen:function(){if(this.media.pluginType!==&quot;native&quot;&amp;&amp;mejs.MediaFeatures.isFirefox)this.media.setFullscreen(false);else{if(mejs.MediaFeatures.hasTrueNativeFullScreen&amp;&amp;(mejs.MediaFeatures.isFullScreen()||this.isFullScreen))mejs.MediaFeatures.cancelFullScreen();document.documentElement.style.overflow=
-docStyleOverflow;this.container.removeClass(&quot;mejs-container-fullscreen&quot;).width(normalWidth).height(normalHeight);if(this.pluginType===&quot;native&quot;)this.$media.width(normalWidth).height(normalHeight);else{this.container.find(&quot;object embed&quot;).width(normalWidth).height(normalHeight);this.media.setVideoSize(normalWidth,normalHeight)}this.layers.children(&quot;div&quot;).width(normalWidth).height(normalHeight);this.fullscreenBtn.removeClass(&quot;mejs-unfullscreen&quot;).addClass(&quot;mejs-fullscreen&quot;);this.setControlsSize();this.isFullScreen=
-false}}})})(mejs.$);
-(function(f){f.extend(mejs.MepDefaults,{startLanguage:&quot;&quot;,tracksText:&quot;Captions/Subtitles&quot;,hideCaptionsButtonWhenEmpty:true,toggleCaptionsButtonWhenOnlyOne:false,slidesSelector:&quot;&quot;});f.extend(MediaElementPlayer.prototype,{hasChapters:false,buildtracks:function(a,b,c,d){if(a.isVideo)if(a.tracks.length!=0){a.chapters=f('&lt;div class=&quot;mejs-chapters mejs-layer&quot;&gt;&lt;/div&gt;').prependTo(c).hide();a.captions=f('&lt;div class=&quot;mejs-captions-layer mejs-layer&quot;&gt;&lt;div class=&quot;mejs-captions-position mejs-captions-position-hover&quot;&gt;&lt;span class=&quot;mejs-captions-text&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;').prependTo(c).hide();a.captionsText=
-a.captions.find(&quot;.mejs-captions-text&quot;);a.captionsButton=f('&lt;div class=&quot;mejs-button mejs-captions-button&quot;&gt;&lt;button type=&quot;button&quot; aria-controls=&quot;'+this.id+'&quot; title=&quot;'+this.options.tracksText+'&quot;&gt;&lt;/button&gt;&lt;div class=&quot;mejs-captions-selector&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;'+a.id+'_captions&quot; id=&quot;'+a.id+'_captions_none&quot; value=&quot;none&quot; checked=&quot;checked&quot; /&gt;&lt;label for=&quot;'+a.id+'_captions_none&quot;&gt;None&lt;/label&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;').appendTo(b);for(b=c=0;b&lt;a.tracks.length;b++)a.tracks[b].kind==&quot;subtitles&quot;&amp;&amp;c++;
-this.options.toggleCaptionsButtonWhenOnlyOne&amp;&amp;c==1?a.captionsButton.on(&quot;click&quot;,function(){a.setTrack(a.selectedTrack==null?a.tracks[0].srclang:&quot;none&quot;)}):a.captionsButton.hover(function(){f(this).find(&quot;.mejs-captions-selector&quot;).css(&quot;visibility&quot;,&quot;visible&quot;)},function(){f(this).find(&quot;.mejs-captions-selector&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}).on(&quot;click&quot;,&quot;input[type=radio]&quot;,function(){lang=this.value;a.setTrack(lang)});a.options.alwaysShowControls?a.container.find(&quot;.mejs-captions-position&quot;).addClass(&quot;mejs-captions-position-hover&quot;):
-a.container.bind(&quot;controlsshown&quot;,function(){a.container.find(&quot;.mejs-captions-position&quot;).addClass(&quot;mejs-captions-position-hover&quot;)}).bind(&quot;controlshidden&quot;,function(){d.paused||a.container.find(&quot;.mejs-captions-position&quot;).removeClass(&quot;mejs-captions-position-hover&quot;)});a.trackToLoad=-1;a.selectedTrack=null;a.isLoadingTrack=false;for(b=0;b&lt;a.tracks.length;b++)a.tracks[b].kind==&quot;subtitles&quot;&amp;&amp;a.addTrackButton(a.tracks[b].srclang,a.tracks[b].label);a.loadNextTrack();d.addEventListener(&quot;timeupdate&quot;,function(){a.displayCaptions()},
-false);if(a.options.slidesSelector!=&quot;&quot;){a.slidesContainer=f(a.options.slidesSelector);d.addEventListener(&quot;timeupdate&quot;,function(){a.displaySlides()},false)}d.addEventListener(&quot;loadedmetadata&quot;,function(){a.displayChapters()},false);a.container.hover(function(){if(a.hasChapters){a.chapters.css(&quot;visibility&quot;,&quot;visible&quot;);a.chapters.fadeIn(200).height(a.chapters.find(&quot;.mejs-chapter&quot;).outerHeight())}},function(){a.hasChapters&amp;&amp;!d.paused&amp;&amp;a.chapters.fadeOut(200,function(){f(this).css(&quot;visibility&quot;,&quot;hidden&quot;);
-f(this).css(&quot;display&quot;,&quot;block&quot;)})});a.node.getAttribute(&quot;autoplay&quot;)!==null&amp;&amp;a.chapters.css(&quot;visibility&quot;,&quot;hidden&quot;)}},setTrack:function(a){var b;if(a==&quot;none&quot;){this.selectedTrack=null;this.captionsButton.removeClass(&quot;mejs-captions-enabled&quot;)}else for(b=0;b&lt;this.tracks.length;b++)if(this.tracks[b].srclang==a){this.selectedTrack==null&amp;&amp;this.captionsButton.addClass(&quot;mejs-captions-enabled&quot;);this.selectedTrack=this.tracks[b];this.captions.attr(&quot;lang&quot;,this.selectedTrack.srclang);this.displayCaptions();break}},
-loadNextTrack:function(){this.trackToLoad++;if(this.trackToLoad&lt;this.tracks.length){this.isLoadingTrack=true;this.loadTrack(this.trackToLoad)}else{this.isLoadingTrack=false;this.checkForTracks()}},loadTrack:function(a){var b=this,c=b.tracks[a];f.ajax({url:c.src,dataType:&quot;text&quot;,success:function(d){c.entries=typeof d==&quot;string&quot;&amp;&amp;/&lt;tt\s+xml/ig.exec(d)?mejs.TrackFormatParser.dfxp.parse(d):mejs.TrackFormatParser.webvvt.parse(d);c.isLoaded=true;b.enableTrackButton(c.srclang,c.label);b.loadNextTrack();c.kind==
-&quot;chapters&quot;&amp;&amp;b.media.addEventListener(&quot;play&quot;,function(){b.media.duration&gt;0&amp;&amp;b.displayChapters(c)},false);c.kind==&quot;slides&quot;&amp;&amp;b.setupSlides(c)},error:function(){b.loadNextTrack()}})},enableTrackButton:function(a,b){if(b===&quot;&quot;)b=mejs.language.codes[a]||a;this.captionsButton.find(&quot;input[value=&quot;+a+&quot;]&quot;).prop(&quot;disabled&quot;,false).siblings(&quot;label&quot;).html(b);this.options.startLanguage==a&amp;&amp;f(&quot;#&quot;+this.id+&quot;_captions_&quot;+a).click();this.adjustLanguageBox()},addTrackButton:function(a,b){if(b===&quot;&quot;)b=mejs.language.codes[a]||
-a;this.captionsButton.find(&quot;ul&quot;).append(f('&lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;'+this.id+'_captions&quot; id=&quot;'+this.id+&quot;_captions_&quot;+a+'&quot; value=&quot;'+a+'&quot; disabled=&quot;disabled&quot; /&gt;&lt;label for=&quot;'+this.id+&quot;_captions_&quot;+a+'&quot;&gt;'+b+&quot; (loading)&lt;/label&gt;&lt;/li&gt;&quot;));this.adjustLanguageBox();this.container.find(&quot;.mejs-captions-translations option[value=&quot;+a+&quot;]&quot;).remove()},adjustLanguageBox:function(){this.captionsButton.find(&quot;.mejs-captions-selector&quot;).height(this.captionsButton.find(&quot;.mejs-captions-selector ul&quot;).outerHeight(true)+
-this.captionsButton.find(&quot;.mejs-captions-translations&quot;).outerHeight(true))},checkForTracks:function(){var a=false;if(this.options.hideCaptionsButtonWhenEmpty){for(i=0;i&lt;this.tracks.length;i++)if(this.tracks[i].kind==&quot;subtitles&quot;){a=true;break}if(!a){this.captionsButton.hide();this.setControlsSize()}}},displayCaptions:function(){if(typeof this.tracks!=&quot;undefined&quot;){var a,b=this.selectedTrack;if(b!=null&amp;&amp;b.isLoaded)for(a=0;a&lt;b.entries.times.length;a++)if(this.media.currentTime&gt;=b.entries.times[a].start&amp;&amp;
-this.media.currentTime&lt;=b.entries.times[a].stop){this.captionsText.html(b.entries.text[a]);this.captions.show().height(0);return}this.captions.hide()}},setupSlides:function(a){this.slides=a;this.slides.entries.imgs=[this.slides.entries.text.length];this.showSlide(0)},showSlide:function(a){if(!(typeof this.tracks==&quot;undefined&quot;||typeof this.slidesContainer==&quot;undefined&quot;)){var b=this,c=b.slides.entries.text[a],d=b.slides.entries.imgs[a];if(typeof d==&quot;undefined&quot;||typeof d.fadeIn==&quot;undefined&quot;)b.slides.entries.imgs[a]=
-d=f('&lt;img src=&quot;'+c+'&quot;&gt;').on(&quot;load&quot;,function(){d.appendTo(b.slidesContainer).hide().fadeIn().siblings(&quot;:visible&quot;).fadeOut()});else if(!d.is(&quot;:visible&quot;)&amp;&amp;!d.is(&quot;:animated&quot;)){console.log(&quot;showing existing slide&quot;);d.fadeIn().siblings(&quot;:visible&quot;).fadeOut()}}},displaySlides:function(){if(typeof this.slides!=&quot;undefined&quot;){var a=this.slides,b;for(b=0;b&lt;a.entries.times.length;b++)if(this.media.currentTime&gt;=a.entries.times[b].start&amp;&amp;this.media.currentTime&lt;=a.entries.times[b].stop){this.showSlide(b);break}}},
-displayChapters:function(){var a;for(a=0;a&lt;this.tracks.length;a++)if(this.tracks[a].kind==&quot;chapters&quot;&amp;&amp;this.tracks[a].isLoaded){this.drawChapters(this.tracks[a]);this.hasChapters=true;break}},drawChapters:function(a){var b=this,c,d,e=d=0;b.chapters.empty();for(c=0;c&lt;a.entries.times.length;c++){d=a.entries.times[c].stop-a.entries.times[c].start;d=Math.floor(d/b.media.duration*100);if(d+e&gt;100||c==a.entries.times.length-1&amp;&amp;d+e&lt;100)d=100-e;b.chapters.append(f('&lt;div class=&quot;mejs-chapter&quot; rel=&quot;'+a.entries.times[c].start+
-'&quot; style=&quot;left: '+e.toString()+&quot;%;width: &quot;+d.toString()+'%;&quot;&gt;&lt;div class=&quot;mejs-chapter-block'+(c==a.entries.times.length-1?&quot; mejs-chapter-block-last&quot;:&quot;&quot;)+'&quot;&gt;&lt;span class=&quot;ch-title&quot;&gt;'+a.entries.text[c]+'&lt;/span&gt;&lt;span class=&quot;ch-time&quot;&gt;'+mejs.Utility.secondsToTimeCode(a.entries.times[c].start)+&quot;&amp;ndash;&quot;+mejs.Utility.secondsToTimeCode(a.entries.times[c].stop)+&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&quot;));e+=d}b.chapters.find(&quot;div.mejs-chapter&quot;).click(function(){b.media.setCurrentTime(parseFloat(f(this).attr(&quot;rel&quot;)));b.media.paused&amp;&amp;
-b.media.play()});b.chapters.show()}});mejs.language={codes:{af:&quot;Afrikaans&quot;,sq:&quot;Albanian&quot;,ar:&quot;Arabic&quot;,be:&quot;Belarusian&quot;,bg:&quot;Bulgarian&quot;,ca:&quot;Catalan&quot;,zh:&quot;Chinese&quot;,&quot;zh-cn&quot;:&quot;Chinese Simplified&quot;,&quot;zh-tw&quot;:&quot;Chinese Traditional&quot;,hr:&quot;Croatian&quot;,cs:&quot;Czech&quot;,da:&quot;Danish&quot;,nl:&quot;Dutch&quot;,en:&quot;English&quot;,et:&quot;Estonian&quot;,tl:&quot;Filipino&quot;,fi:&quot;Finnish&quot;,fr:&quot;French&quot;,gl:&quot;Galician&quot;,de:&quot;German&quot;,el:&quot;Greek&quot;,ht:&quot;Haitian Creole&quot;,iw:&quot;Hebrew&quot;,hi:&quot;Hindi&quot;,hu:&quot;Hungarian&quot;,is:&quot;Icelandic&quot;,id:&quot;Indonesian&quot;,ga:&quot;Irish&quot;,it:&quot;Italian&quot;,ja:&quot;Japanese&quot;,ko:&quot;Korean&quot;,
-lv:&quot;Latvian&quot;,lt:&quot;Lithuanian&quot;,mk:&quot;Macedonian&quot;,ms:&quot;Malay&quot;,mt:&quot;Maltese&quot;,no:&quot;Norwegian&quot;,fa:&quot;Persian&quot;,pl:&quot;Polish&quot;,pt:&quot;Portuguese&quot;,ro:&quot;Romanian&quot;,ru:&quot;Russian&quot;,sr:&quot;Serbian&quot;,sk:&quot;Slovak&quot;,sl:&quot;Slovenian&quot;,es:&quot;Spanish&quot;,sw:&quot;Swahili&quot;,sv:&quot;Swedish&quot;,tl:&quot;Tagalog&quot;,th:&quot;Thai&quot;,tr:&quot;Turkish&quot;,uk:&quot;Ukrainian&quot;,vi:&quot;Vietnamese&quot;,cy:&quot;Welsh&quot;,yi:&quot;Yiddish&quot;}};mejs.TrackFormatParser={webvvt:{pattern_identifier:/^([a-zA-z]+-)?[0-9]+$/,pattern_timecode:/^([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\&gt; ([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,
-parse:function(a){var b=0;a=mejs.TrackFormatParser.split2(a,/\r?\n/);for(var c={text:[],times:[]},d,e;b&lt;a.length;b++)if(this.pattern_identifier.exec(a[b])){b++;if((d=this.pattern_timecode.exec(a[b]))&amp;&amp;b&lt;a.length){b++;e=a[b];for(b++;a[b]!==&quot;&quot;&amp;&amp;b&lt;a.length;){e=e+&quot;\n&quot;+a[b];b++}e=f.trim(e).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&amp;@#\/%?=~_|!:,.;]*[-A-Z0-9+&amp;@#\/%=~_|])/ig,&quot;&lt;a href='$1' target='_blank'&gt;$1&lt;/a&gt;&quot;);c.text.push(e);c.times.push({start:mejs.Utility.convertSMPTEtoSeconds(d[1])==0?0.2:mejs.Utility.convertSMPTEtoSeconds(d[1]),
-stop:mejs.Utility.convertSMPTEtoSeconds(d[3]),settings:d[5]})}}return c}},dfxp:{parse:function(a){a=f(a).filter(&quot;tt&quot;);var b=0;b=a.children(&quot;div&quot;).eq(0);var c=b.find(&quot;p&quot;);b=a.find(&quot;#&quot;+b.attr(&quot;style&quot;));var d,e;a={text:[],times:[]};if(b.length){e=b.removeAttr(&quot;id&quot;).get(0).attributes;if(e.length){d={};for(b=0;b&lt;e.length;b++)d[e[b].name.split(&quot;:&quot;)[1]]=e[b].value}}for(b=0;b&lt;c.length;b++){var g;e={start:null,stop:null,style:null};if(c.eq(b).attr(&quot;begin&quot;))e.start=mejs.Utility.convertSMPTEtoSeconds(c.eq(b).attr(&quot;begin&quot;));
-if(!e.start&amp;&amp;c.eq(b-1).attr(&quot;end&quot;))e.start=mejs.Utility.convertSMPTEtoSeconds(c.eq(b-1).attr(&quot;end&quot;));if(c.eq(b).attr(&quot;end&quot;))e.stop=mejs.Utility.convertSMPTEtoSeconds(c.eq(b).attr(&quot;end&quot;));if(!e.stop&amp;&amp;c.eq(b+1).attr(&quot;begin&quot;))e.stop=mejs.Utility.convertSMPTEtoSeconds(c.eq(b+1).attr(&quot;begin&quot;));if(d){g=&quot;&quot;;for(var l in d)g+=l+&quot;:&quot;+d[l]+&quot;;&quot;}if(g)e.style=g;if(e.start==0)e.start=0.2;a.times.push(e);e=f.trim(c.eq(b).html()).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&amp;@#\/%?=~_|!:,.;]*[-A-Z0-9+&amp;@#\/%=~_|])/ig,
-&quot;&lt;a href='$1' target='_blank'&gt;$1&lt;/a&gt;&quot;);a.text.push(e);if(a.times.start==0)a.times.start=2}return a}},split2:function(a,b){return a.split(b)}};if(&quot;x\n\ny&quot;.split(/\n/gi).length!=3)mejs.TrackFormatParser.split2=function(a,b){var c=[],d=&quot;&quot;,e;for(e=0;e&lt;a.length;e++){d+=a.substring(e,e+1);if(b.test(d)){c.push(d.replace(b,&quot;&quot;));d=&quot;&quot;}}c.push(d);return c}})(mejs.$);
-(function(f){f.extend(mejs.MepDefaults,{contextMenuItems:[{render:function(a){if(typeof a.enterFullScreen==&quot;undefined&quot;)return null;return a.isFullScreen?&quot;Turn off Fullscreen&quot;:&quot;Go Fullscreen&quot;},click:function(a){a.isFullScreen?a.exitFullScreen():a.enterFullScreen()}},{render:function(a){return a.media.muted?&quot;Unmute&quot;:&quot;Mute&quot;},click:function(a){a.media.muted?a.setMuted(false):a.setMuted(true)}},{isSeparator:true},{render:function(){return&quot;Download Video&quot;},click:function(a){window.location.href=a.media.currentSrc}}]});
-f.extend(MediaElementPlayer.prototype,{buildcontextmenu:function(a){a.contextMenu=f('&lt;div class=&quot;mejs-contextmenu&quot;&gt;&lt;/div&gt;').appendTo(f(&quot;body&quot;)).hide();a.container.bind(&quot;contextmenu&quot;,function(b){if(a.isContextMenuEnabled){b.preventDefault();a.renderContextMenu(b.clientX-1,b.clientY-1);return false}});a.container.bind(&quot;click&quot;,function(){a.contextMenu.hide()});a.contextMenu.bind(&quot;mouseleave&quot;,function(){a.startContextMenuTimer()})},cleancontextmenu:function(a){a.contextMenu.remove()},isContextMenuEnabled:true,
-enableContextMenu:function(){this.isContextMenuEnabled=true},disableContextMenu:function(){this.isContextMenuEnabled=false},contextMenuTimeout:null,startContextMenuTimer:function(){var a=this;a.killContextMenuTimer();a.contextMenuTimer=setTimeout(function(){a.hideContextMenu();a.killContextMenuTimer()},750)},killContextMenuTimer:function(){var a=this.contextMenuTimer;if(a!=null){clearTimeout(a);delete a}},hideContextMenu:function(){this.contextMenu.hide()},renderContextMenu:function(a,b){for(var c=
-this,d=&quot;&quot;,e=c.options.contextMenuItems,g=0,l=e.length;g&lt;l;g++)if(e[g].isSeparator)d+='&lt;div class=&quot;mejs-contextmenu-separator&quot;&gt;&lt;/div&gt;';else{var j=e[g].render(c);if(j!=null)d+='&lt;div class=&quot;mejs-contextmenu-item&quot; data-itemindex=&quot;'+g+'&quot; id=&quot;element-'+Math.random()*1E6+'&quot;&gt;'+j+&quot;&lt;/div&gt;&quot;}c.contextMenu.empty().append(f(d)).css({top:b,left:a}).show();c.contextMenu.find(&quot;.mejs-contextmenu-item&quot;).each(function(){var k=f(this),s=parseInt(k.data(&quot;itemindex&quot;),10),p=c.options.contextMenuItems[s];typeof p.show!=&quot;undefined&quot;&amp;&amp;
-p.show(k,c);k.click(function(){typeof p.click!=&quot;undefined&quot;&amp;&amp;p.click(c);c.contextMenu.hide()})});setTimeout(function(){c.killControlsTimer(&quot;rev3&quot;)},100)}})})(mejs.$);
-(function(f){f.extend(mejs.MepDefaults,{postrollCloseText:mejs.i18n.t(&quot;Close&quot;)});f.extend(MediaElementPlayer.prototype,{buildpostroll:function(a,b,c){var d=this.container.find('link[rel=&quot;postroll&quot;]').attr(&quot;href&quot;);if(typeof d!==&quot;undefined&quot;){a.postroll=f('&lt;div class=&quot;mejs-postroll-layer mejs-layer&quot;&gt;&lt;a class=&quot;mejs-postroll-close&quot; onclick=&quot;$(this).parent().hide();return false;&quot;&gt;'+this.options.postrollCloseText+'&lt;/a&gt;&lt;div class=&quot;mejs-postroll-layer-content&quot;&gt;&lt;/div&gt;&lt;/div&gt;').prependTo(c).hide();this.media.addEventListener(&quot;ended&quot;,
-function(){f.ajax({dataType:&quot;html&quot;,url:d,success:function(e){c.find(&quot;.mejs-postroll-layer-content&quot;).html(e)}});a.postroll.show()},false)}}})})(mejs.$);
-
</del><ins>+ */
+if(typeof jQuery!=&quot;undefined&quot;){mejs.$=jQuery}else{if(typeof ender!=&quot;undefined&quot;){mejs.$=ender}}(function(a){mejs.MepDefaults={poster:&quot;&quot;,defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:30,defaultSeekBackwardInterval:function(b){return(b.duration*0.05)},defaultSeekForwardInterval:function(b){return(b.duration*0.05)},audioWidth:-1,audioHeight:-1,startVolume:0.8,loop:false,autoRewind:true,enableAutosize:true,alwaysShowHours:false,showTimecodeFrameCount:false,framesPerSecond:25,autosizeProgress:true,alwaysShowControls:false,hideVideoControlsOnLoad:false,clickToPlayPause:true,iPadUseNativeControls:false,iPhoneUseNativeControls:false,AndroidUseNativeControls:false,features:[&quot;playpause&quot;,&quot;current&quot;,&quot;progress&quot;,&quot;duration&quot;,&quot;tracks&quot;,&quot;volume&quot;,&quot;fullscreen&quot;],isVideo:true,enableKeyboard:true,pauseOtherPlayers:true,keyActions:[{ke
 ys:[32,179],action:function(b,c){if(c.paused||c.ended){c.play()}else{c.pause()}}},{keys:[38],action:function(b,d){var c=Math.min(d.volume+0.1,1);d.setVolume(c)}},{keys:[40],action:function(b,d){var c=Math.max(d.volume-0.1,0);d.setVolume(c)}},{keys:[37,227],action:function(b,d){if(!isNaN(d.duration)&amp;&amp;d.duration&gt;0){if(b.isVideo){b.showControls();b.startControlsTimer()}var c=Math.max(d.currentTime-b.options.defaultSeekBackwardInterval(d),0);d.setCurrentTime(c)}}},{keys:[39,228],action:function(b,d){if(!isNaN(d.duration)&amp;&amp;d.duration&gt;0){if(b.isVideo){b.showControls();b.startControlsTimer()}var c=Math.min(d.currentTime+b.options.defaultSeekForwardInterval(d),d.duration);d.setCurrentTime(c)}}},{keys:[70],action:function(b,c){if(typeof b.enterFullScreen!=&quot;undefined&quot;){if(b.isFullScreen){b.exitFullScreen()}else{b.enterFullScreen()}}}}]};mejs.mepIndex=0;mejs.players={};mejs.MediaElementPlayer=function(c,d){if(!(this instanceof mejs.MediaElementPlayer)){r
 eturn new mejs.MediaElementPlayer(c,d)}var b=this;b.$media=b.$node=a(c);b.node=b.media=b.$media[0];if(typeof b.node.player!=&quot;undefined&quot;){return b.node.player}else{b.node.player=b}if(typeof d==&quot;undefined&quot;){d=b.$node.data(&quot;mejsoptions&quot;)}b.options=a.extend({},mejs.MepDefaults,d);b.id=&quot;mep_&quot;+mejs.mepIndex++;mejs.players[b.id]=b;b.init();return b};mejs.MediaElementPlayer.prototype={hasFocus:false,controlsAreVisible:true,init:function(){var d=this,e=mejs.MediaFeatures,h=a.extend(true,{},d.options,{success:function(k,j){d.meReady(k,j)},error:function(j){d.handleError(j)}}),c=d.media.tagName.toLowerCase();d.isDynamic=(c!==&quot;audio&quot;&amp;&amp;c!==&quot;video&quot;);if(d.isDynamic){d.isVideo=d.options.isVideo}else{d.isVideo=(c!==&quot;audio&quot;&amp;&amp;d.options.isVideo)}if((e.isiPad&amp;&amp;d.options.iPadUseNativeControls)||(e.isiPhone&amp;&amp;d.options.iPhoneUseNativeControls)){d.$media.attr(&quot;controls&quot;,&quot;controls&quot
 ;);if(e.isiPad&amp;&amp;d.media.getAttribute(&quot;autoplay&quot;)!==null){d.media.load();d.media.play()}}else{if(e.isAndroid&amp;&amp;d.options.AndroidUseNativeControls){}else{d.$media.removeAttr(&quot;controls&quot;);d.container=a('&lt;div id=&quot;'+d.id+'&quot; class=&quot;mejs-container '+(mejs.MediaFeatures.svg?&quot;svg&quot;:&quot;no-svg&quot;)+'&quot;&gt;&lt;div class=&quot;mejs-inner&quot;&gt;&lt;div class=&quot;mejs-mediaelement&quot;&gt;&lt;/div&gt;&lt;div class=&quot;mejs-layers&quot;&gt;&lt;/div&gt;&lt;div class=&quot;mejs-controls&quot;&gt;&lt;/div&gt;&lt;div class=&quot;mejs-clear&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;').addClass(d.$media[0].className).insertBefore(d.$media);d.container.addClass((e.isAndroid?&quot;mejs-android &quot;:&quot;&quot;)+(e.isiOS?&quot;mejs-ios &quot;:&quot;&quot;)+(e.isiPad?&quot;mejs-ipad &quot;:&quot;&quot;)+(e.isiPhone?&quot;mejs-iphone &quot;:&quot;&quot;)+(d.isVideo?&quot;mejs-video &quot;:&quot;mejs-audio &quot;));if(e
 .isiOS){var g=d.$media.clone();d.container.find(&quot;.mejs-mediaelement&quot;).append(g);d.$media.remove();d.$node=d.$media=g;d.node=d.media=g[0]}else{d.container.find(&quot;.mejs-mediaelement&quot;).append(d.$media)}d.controls=d.container.find(&quot;.mejs-controls&quot;);d.layers=d.container.find(&quot;.mejs-layers&quot;);var f=(d.isVideo?&quot;video&quot;:&quot;audio&quot;),b=f.substring(0,1).toUpperCase()+f.substring(1);if(d.options[f+&quot;Width&quot;]&gt;0||d.options[f+&quot;Width&quot;].toString().indexOf(&quot;%&quot;)&gt;-1){d.width=d.options[f+&quot;Width&quot;]}else{if(d.media.style.width!==&quot;&quot;&amp;&amp;d.media.style.width!==null){d.width=d.media.style.width}else{if(d.media.getAttribute(&quot;width&quot;)!==null){d.width=d.$media.attr(&quot;width&quot;)}else{d.width=d.options[&quot;default&quot;+b+&quot;Width&quot;]}}}if(d.options[f+&quot;Height&quot;]&gt;0||d.options[f+&quot;Height&quot;].toString().indexOf(&quot;%&quot;)&gt;-1){d.height=d.options[f+&quo
 t;Height&quot;]}else{if(d.media.style.height!==&quot;&quot;&amp;&amp;d.media.style.height!==null){d.height=d.media.style.height}else{if(d.$media[0].getAttribute(&quot;height&quot;)!==null){d.height=d.$media.attr(&quot;height&quot;)}else{d.height=d.options[&quot;default&quot;+b+&quot;Height&quot;]}}}d.setPlayerSize(d.width,d.height);h.pluginWidth=d.height;h.pluginHeight=d.width}}mejs.MediaElement(d.$media[0],h);d.container.trigger(&quot;controlsshown&quot;)},showControls:function(b){var c=this;b=typeof b==&quot;undefined&quot;||b;if(c.controlsAreVisible){return}if(b){c.controls.css(&quot;visibility&quot;,&quot;visible&quot;).stop(true,true).fadeIn(200,function(){c.controlsAreVisible=true;c.container.trigger(&quot;controlsshown&quot;)});c.container.find(&quot;.mejs-control&quot;).css(&quot;visibility&quot;,&quot;visible&quot;).stop(true,true).fadeIn(200,function(){c.controlsAreVisible=true})}else{c.controls.css(&quot;visibility&quot;,&quot;visible&quot;).css(&quot;display&quot
 ;,&quot;block&quot;);c.container.find(&quot;.mejs-control&quot;).css(&quot;visibility&quot;,&quot;visible&quot;).css(&quot;display&quot;,&quot;block&quot;);c.controlsAreVisible=true;c.container.trigger(&quot;controlsshown&quot;)}c.setControlsSize()},hideControls:function(b){var c=this;b=typeof b==&quot;undefined&quot;||b;if(!c.controlsAreVisible){return}if(b){c.controls.stop(true,true).fadeOut(200,function(){a(this).css(&quot;visibility&quot;,&quot;hidden&quot;).css(&quot;display&quot;,&quot;block&quot;);c.controlsAreVisible=false;c.container.trigger(&quot;controlshidden&quot;)});c.container.find(&quot;.mejs-control&quot;).stop(true,true).fadeOut(200,function(){a(this).css(&quot;visibility&quot;,&quot;hidden&quot;).css(&quot;display&quot;,&quot;block&quot;)})}else{c.controls.css(&quot;visibility&quot;,&quot;hidden&quot;).css(&quot;display&quot;,&quot;block&quot;);c.container.find(&quot;.mejs-control&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;).css(&quot;display&quot
 ;,&quot;block&quot;);c.controlsAreVisible=false;c.container.trigger(&quot;controlshidden&quot;)}},controlsTimer:null,startControlsTimer:function(c){var b=this;c=typeof c!=&quot;undefined&quot;?c:1500;b.killControlsTimer(&quot;start&quot;);b.controlsTimer=setTimeout(function(){b.hideControls();b.killControlsTimer(&quot;hide&quot;)},c)},killControlsTimer:function(c){var b=this;if(b.controlsTimer!==null){clearTimeout(b.controlsTimer);delete b.controlsTimer;b.controlsTimer=null}},controlsEnabled:true,disableControls:function(){var b=this;b.killControlsTimer();b.hideControls(false);this.controlsEnabled=false},enableControls:function(){var b=this;b.showControls(false);b.controlsEnabled=true},meReady:function(c,f){var k=this,j=mejs.MediaFeatures,g=f.getAttribute(&quot;autoplay&quot;),d=!(typeof g==&quot;undefined&quot;||g===null||g===&quot;false&quot;),b,l;if(k.created){return}else{k.created=true}k.media=c;k.domNode=f;if(!(j.isAndroid&amp;&amp;k.options.AndroidUseNativeControls)&am
 p;&amp;!(j.isiPad&amp;&amp;k.options.iPadUseNativeControls)&amp;&amp;!(j.isiPhone&amp;&amp;k.options.iPhoneUseNativeControls)){k.buildposter(k,k.controls,k.layers,k.media);k.buildkeyboard(k,k.controls,k.layers,k.media);k.buildoverlays(k,k.controls,k.layers,k.media);k.findTracks();for(b in k.options.features){l=k.options.features[b];if(k[&quot;build&quot;+l]){try{k[&quot;build&quot;+l](k,k.controls,k.layers,k.media)}catch(h){}}}k.container.trigger(&quot;controlsready&quot;);k.setPlayerSize(k.width,k.height);k.setControlsSize();if(k.isVideo){if(mejs.MediaFeatures.hasTouch){k.$media.bind(&quot;touchstart&quot;,function(){if(k.controlsAreVisible){k.hideControls(false)}else{if(k.controlsEnabled){k.showControls(false)}}})}else{k.media.addEventListener(&quot;click&quot;,function(){if(k.options.clickToPlayPause){if(k.media.paused){k.media.play()}else{k.media.pause()}}});k.container.bind(&quot;mouseenter mouseover&quot;,function(){if(k.controlsEnabled){if(!k.options.alwaysShowControl
 s){k.killControlsTimer(&quot;enter&quot;);k.showControls();k.startControlsTimer(2500)}}}).bind(&quot;mousemove&quot;,function(){if(k.controlsEnabled){if(!k.controlsAreVisible){k.showControls()}if(!k.options.alwaysShowControls){k.startControlsTimer(2500)}}}).bind(&quot;mouseleave&quot;,function(){if(k.controlsEnabled){if(!k.media.paused&amp;&amp;!k.options.alwaysShowControls){k.startControlsTimer(1000)}}})}if(k.options.hideVideoControlsOnLoad){k.hideControls(false)}if(d&amp;&amp;!k.options.alwaysShowControls){k.hideControls()}if(k.options.enableAutosize){k.media.addEventListener(&quot;loadedmetadata&quot;,function(m){if(k.options.videoHeight&lt;=0&amp;&amp;k.domNode.getAttribute(&quot;height&quot;)===null&amp;&amp;!isNaN(m.target.videoHeight)){k.setPlayerSize(m.target.videoWidth,m.target.videoHeight);k.setControlsSize();k.media.setVideoSize(m.target.videoWidth,m.target.videoHeight)}},false)}}c.addEventListener(&quot;play&quot;,function(){var e;for(e in mejs.players){var m=mej
 s.players[e];if(m.id!=k.id&amp;&amp;k.options.pauseOtherPlayers&amp;&amp;!m.paused&amp;&amp;!m.ended){m.pause()}m.hasFocus=false}k.hasFocus=true},false);k.media.addEventListener(&quot;ended&quot;,function(m){if(k.options.autoRewind){try{k.media.setCurrentTime(0)}catch(n){}}k.media.pause();if(k.setProgressRail){k.setProgressRail()}if(k.setCurrentRail){k.setCurrentRail()}if(k.options.loop){k.media.play()}else{if(!k.options.alwaysShowControls&amp;&amp;k.controlsEnabled){k.showControls()}}},false);k.media.addEventListener(&quot;loadedmetadata&quot;,function(m){if(k.updateDuration){k.updateDuration()}if(k.updateCurrent){k.updateCurrent()}if(!k.isFullScreen){k.setPlayerSize(k.width,k.height);k.setControlsSize()}},false);setTimeout(function(){k.setPlayerSize(k.width,k.height);k.setControlsSize()},50);k.globalBind(&quot;resize&quot;,function(){if(!(k.isFullScreen||(mejs.MediaFeatures.hasTrueNativeFullScreen&amp;&amp;document.webkitIsFullScreen))){k.setPlayerSize(k.width,k.height)}k.
 setControlsSize()});if(k.media.pluginType==&quot;youtube&quot;){k.container.find(&quot;.mejs-overlay-play&quot;).hide()}}if(d&amp;&amp;c.pluginType==&quot;native&quot;){c.load();c.play()}if(k.options.success){if(typeof k.options.success==&quot;string&quot;){window[k.options.success](k.media,k.domNode,k)}else{k.options.success(k.media,k.domNode,k)}}},handleError:function(c){var b=this;b.controls.hide();if(b.options.error){b.options.error(c)}},setPlayerSize:function(g,b){var e=this;if(typeof g!=&quot;undefined&quot;){e.width=g}if(typeof b!=&quot;undefined&quot;){e.height=b}if(e.height.toString().indexOf(&quot;%&quot;)&gt;0||e.$node.css(&quot;max-width&quot;)===&quot;100%&quot;||(e.$node[0].currentStyle&amp;&amp;e.$node[0].currentStyle.maxWidth===&quot;100%&quot;)){var h=e.isVideo?((e.media.videoWidth&amp;&amp;e.media.videoWidth&gt;0)?e.media.videoWidth:e.options.defaultVideoWidth):e.options.defaultAudioWidth,d=e.isVideo?((e.media.videoHeight&amp;&amp;e.media.videoHeight&gt;0)?
 e.media.videoHeight:e.options.defaultVideoHeight):e.options.defaultAudioHeight,f=e.container.parent().closest(&quot;:visible&quot;).width(),c=e.isVideo||!e.options.autosizeProgress?parseInt(f*d/h,10):d;if(e.container.parent()[0].tagName.toLowerCase()===&quot;body&quot;){f=a(window).width();c=a(window).height()}if(c!=0&amp;&amp;f!=0){e.container.width(f).height(c);e.$media.add(e.container.find(&quot;.mejs-shim&quot;)).width(&quot;100%&quot;).height(&quot;100%&quot;);if(e.isVideo){if(e.media.setVideoSize){e.media.setVideoSize(f,c)}}e.layers.children(&quot;.mejs-layer&quot;).width(&quot;100%&quot;).height(&quot;100%&quot;)}}else{e.container.width(e.width).height(e.height);e.layers.children(&quot;.mejs-layer&quot;).width(e.width).height(e.height)}},setControlsSize:function(){var c=this,g=0,j=0,h=c.controls.find(&quot;.mejs-time-rail&quot;),e=c.controls.find(&quot;.mejs-time-total&quot;),f=c.controls.find(&quot;.mejs-time-current&quot;),b=c.controls.find(&quot;.mejs-time-loaded&q
 uot;),d=h.siblings();if(c.options&amp;&amp;!c.options.autosizeProgress){j=parseInt(h.css(&quot;width&quot;))}if(j===0||!j){d.each(function(){var k=a(this);if(k.css(&quot;position&quot;)!=&quot;absolute&quot;&amp;&amp;k.is(&quot;:visible&quot;)){g+=a(this).outerWidth(true)}});j=c.controls.width()-g-(h.outerWidth(true)-h.width())}h.width(j);e.width(j-(e.outerWidth(true)-e.width()));if(c.setProgressRail){c.setProgressRail()}if(c.setCurrentRail){c.setCurrentRail()}},buildposter:function(e,b,g,f){var d=this,h=a('&lt;div class=&quot;mejs-poster mejs-layer&quot;&gt;&lt;/div&gt;').appendTo(g),c=e.$media.attr(&quot;poster&quot;);if(e.options.poster!==&quot;&quot;){c=e.options.poster}if(c!==&quot;&quot;&amp;&amp;c!=null){d.setPoster(c)}else{h.hide()}f.addEventListener(&quot;play&quot;,function(){h.hide()},false)},setPoster:function(c){var d=this,e=d.container.find(&quot;.mejs-poster&quot;),b=e.find(&quot;img&quot;);if(b.length==0){b=a('&lt;img width=&quot;100%&quot; height=&quot;100%&
 quot; /&gt;').appendTo(e)}b.attr(&quot;src&quot;,c)},buildoverlays:function(f,b,h,g){var e=this;if(!f.isVideo){return}var j=a('&lt;div class=&quot;mejs-overlay mejs-layer&quot;&gt;&lt;div class=&quot;mejs-overlay-loading&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;').hide().appendTo(h),c=a('&lt;div class=&quot;mejs-overlay mejs-layer&quot;&gt;&lt;div class=&quot;mejs-overlay-error&quot;&gt;&lt;/div&gt;&lt;/div&gt;').hide().appendTo(h),d=a('&lt;div class=&quot;mejs-overlay mejs-layer mejs-overlay-play&quot;&gt;&lt;div class=&quot;mejs-overlay-button&quot;&gt;&lt;/div&gt;&lt;/div&gt;').appendTo(h).click(function(){if(e.options.clickToPlayPause){if(g.paused){g.play()}else{g.pause()}}});g.addEventListener(&quot;play&quot;,function(){d.hide();j.hide();b.find(&quot;.mejs-time-buffering&quot;).hide();c.hide()},false);g.addEventListener(&quot;playing&quot;,function(){d.hide();j.hide();b.find(&quot;.mejs-time-buffering&quot;).hide();c.hide()},false);g.addEventListener(&
 quot;seeking&quot;,function(){j.show();b.find(&quot;.mejs-time-buffering&quot;).show()},false);g.addEventListener(&quot;seeked&quot;,function(){j.hide();b.find(&quot;.mejs-time-buffering&quot;).hide()},false);g.addEventListener(&quot;pause&quot;,function(){if(!mejs.MediaFeatures.isiPhone){d.show()}},false);g.addEventListener(&quot;waiting&quot;,function(){j.show();b.find(&quot;.mejs-time-buffering&quot;).show()},false);g.addEventListener(&quot;loadeddata&quot;,function(){j.show();b.find(&quot;.mejs-time-buffering&quot;).show()},false);g.addEventListener(&quot;canplay&quot;,function(){j.hide();b.find(&quot;.mejs-time-buffering&quot;).hide()},false);g.addEventListener(&quot;error&quot;,function(){j.hide();b.find(&quot;.mejs-time-buffering&quot;).hide();c.show();c.find(&quot;mejs-overlay-error&quot;).html(&quot;Error loading this resource&quot;)},false)},buildkeyboard:function(d,b,f,e){var c=this;c.globalBind(&quot;keydown&quot;,function(n){if(d.hasFocus&amp;&amp;d.options.enab
 leKeyboard){for(var m=0,g=d.options.keyActions.length;m&lt;g;m++){var l=d.options.keyActions[m];for(var h=0,k=l.keys.length;h&lt;k;h++){if(n.keyCode==l.keys[h]){n.preventDefault();l.action(d,e,n.keyCode);return false}}}}return true});c.globalBind(&quot;click&quot;,function(g){if(a(g.target).closest(&quot;.mejs-container&quot;).length==0){d.hasFocus=false}})},findTracks:function(){var b=this,c=b.$media.find(&quot;track&quot;);b.tracks=[];c.each(function(e,d){d=a(d);b.tracks.push({srclang:(d.attr(&quot;srclang&quot;))?d.attr(&quot;srclang&quot;).toLowerCase():&quot;&quot;,src:d.attr(&quot;src&quot;),kind:d.attr(&quot;kind&quot;),label:d.attr(&quot;label&quot;)||&quot;&quot;,entries:[],isLoaded:false})})},changeSkin:function(b){this.container[0].className=&quot;mejs-container &quot;+b;this.setPlayerSize(this.width,this.height);this.setControlsSize()},play:function(){this.media.play()},pause:function(){this.media.pause()},load:function(){this.media.load()},setMuted:function(b){t
 his.media.setMuted(b)},setCurrentTime:function(b){this.media.setCurrentTime(b)},getCurrentTime:function(){return this.media.currentTime},setVolume:function(b){this.media.setVolume(b)},getVolume:function(){return this.media.volume},setSrc:function(b){this.media.setSrc(b)},remove:function(){var c=this,f,b;for(f in c.options.features){b=c.options.features[f];if(c[&quot;clean&quot;+b]){try{c[&quot;clean&quot;+b](c)}catch(d){}}}if(c.media.pluginType===&quot;native&quot;){c.$media.prop(&quot;controls&quot;,true)}else{c.media.remove()}if(!c.isDynamic){if(c.media.pluginType===&quot;native&quot;){}c.$node.insertBefore(c.container)}mejs.players.splice(a.inArray(c,mejs.players),1);c.container.remove();c.globalUnbind();delete c.node.player;delete mejs.players[c.id]}};(function(){var c=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/;function b(e,f){var d={d:[],w:[]};a.each((e||&quot;&quot;).split(&quot; &quot;),function(h,
 g){d[c.test(g)?&quot;w&quot;:&quot;d&quot;].push(g+&quot;.&quot;+f)});d.d=d.d.join(&quot; &quot;);d.w=d.w.join(&quot; &quot;);return d}mejs.MediaElementPlayer.prototype.globalBind=function(e,f,g){var d=this;e=b(e,d.id);if(e.d){a(document).bind(e.d,f,g)}if(e.w){a(window).bind(e.w,f,g)}};mejs.MediaElementPlayer.prototype.globalUnbind=function(e,f){var d=this;e=b(e,d.id);if(e.d){a(document).unbind(e.d,f)}if(e.w){a(window).unbind(e.w,f)}}})();if(typeof jQuery!=&quot;undefined&quot;){jQuery.fn.mediaelementplayer=function(b){if(b===false){this.each(function(){var c=jQuery(this).data(&quot;mediaelementplayer&quot;);if(c){c.remove()}jQuery(this).removeData(&quot;mediaelementplayer&quot;)})}else{this.each(function(){jQuery(this).data(&quot;mediaelementplayer&quot;,new mejs.MediaElementPlayer(this,b))})}return this}}a(document).ready(function(){a(&quot;.mejs-player&quot;).mediaelementplayer()});window.MediaElementPlayer=mejs.MediaElementPlayer})(mejs.$);(function(a){a.extend(mejs.MepD
 efaults,{playpauseText:&quot;Play/Pause&quot;});a.extend(MediaElementPlayer.prototype,{buildplaypause:function(d,b,g,f){var c=this,e=a('&lt;div class=&quot;mejs-button mejs-playpause-button mejs-play&quot; &gt;&lt;button type=&quot;button&quot; aria-controls=&quot;'+c.id+'&quot; title=&quot;'+c.options.playpauseText+'&quot;&gt;&lt;/button&gt;&lt;/div&gt;').appendTo(b).click(function(h){h.preventDefault();if(f.paused){f.play()}else{f.pause()}return false});f.addEventListener(&quot;play&quot;,function(){e.removeClass(&quot;mejs-play&quot;).addClass(&quot;mejs-pause&quot;)},false);f.addEventListener(&quot;playing&quot;,function(){e.removeClass(&quot;mejs-play&quot;).addClass(&quot;mejs-pause&quot;)},false);f.addEventListener(&quot;pause&quot;,function(){e.removeClass(&quot;mejs-pause&quot;).addClass(&quot;mejs-play&quot;)},false);f.addEventListener(&quot;paused&quot;,function(){e.removeClass(&quot;mejs-pause&quot;).addClass(&quot;mejs-play&quot;)},false)}})})(mejs.$);(function(
 a){a.extend(mejs.MepDefaults,{stopText:&quot;Stop&quot;});a.extend(MediaElementPlayer.prototype,{buildstop:function(e,b,g,f){var d=this,c=a('&lt;div class=&quot;mejs-button mejs-stop-button mejs-stop&quot;&gt;&lt;button type=&quot;button&quot; aria-controls=&quot;'+d.id+'&quot; title=&quot;'+d.options.stopText+'&quot;&gt;&lt;/button&gt;&lt;/div&gt;').appendTo(b).click(function(){if(!f.paused){f.pause()}if(f.currentTime&gt;0){f.setCurrentTime(0);f.pause();b.find(&quot;.mejs-time-current&quot;).width(&quot;0px&quot;);b.find(&quot;.mejs-time-handle&quot;).css(&quot;left&quot;,&quot;0px&quot;);b.find(&quot;.mejs-time-float-current&quot;).html(mejs.Utility.secondsToTimeCode(0));b.find(&quot;.mejs-currenttime&quot;).html(mejs.Utility.secondsToTimeCode(0));g.find(&quot;.mejs-poster&quot;).show()}})}})})(mejs.$);(function(a){a.extend(MediaElementPlayer.prototype,{buildprogress:function(n,o,f,c){a('&lt;div class=&quot;mejs-time-rail&quot;&gt;&lt;span class=&quot;mejs-time-total&quot;
 &gt;&lt;span class=&quot;mejs-time-buffering&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mejs-time-loaded&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mejs-time-current&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mejs-time-handle&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mejs-time-float&quot;&gt;&lt;span class=&quot;mejs-time-float-current&quot;&gt;00:00&lt;/span&gt;&lt;span class=&quot;mejs-time-float-corner&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;').appendTo(o);o.find(&quot;.mejs-time-buffering&quot;).hide();var p=this,l=o.find(&quot;.mejs-time-total&quot;),g=o.find(&quot;.mejs-time-loaded&quot;),k=o.find(&quot;.mejs-time-current&quot;),j=o.find(&quot;.mejs-time-handle&quot;),m=o.find(&quot;.mejs-time-float&quot;),b=o.find(&quot;.mejs-time-float-current&quot;),e=function(u){var q=u.pageX,v=l.offset(),s=l.outerWidth(true),r=0,t=0,w=0;if(c.duration){if(q&lt;v.left){q=v.left}else{if(q&gt;s+v.left){q=s+v.left}}w=q-v.left;r=(w/s);t=(r&lt;=0.02)?0:r*c.duration;i
 f(h&amp;&amp;t!==c.currentTime){c.setCurrentTime(t)}if(!mejs.MediaFeatures.hasTouch){m.css(&quot;left&quot;,w);b.html(mejs.Utility.secondsToTimeCode(t));m.show()}}},h=false,d=false;l.bind(&quot;mousedown&quot;,function(q){if(q.which===1){h=true;e(q);p.globalBind(&quot;mousemove.dur&quot;,function(r){e(r)});p.globalBind(&quot;mouseup.dur&quot;,function(r){h=false;m.hide();p.globalUnbind(&quot;.dur&quot;)});return false}}).bind(&quot;mouseenter&quot;,function(q){d=true;p.globalBind(&quot;mousemove.dur&quot;,function(r){e(r)});if(!mejs.MediaFeatures.hasTouch){m.show()}}).bind(&quot;mouseleave&quot;,function(q){d=false;if(!h){p.globalUnbind(&quot;.dur&quot;);m.hide()}});c.addEventListener(&quot;progress&quot;,function(q){n.setProgressRail(q);n.setCurrentRail(q)},false);c.addEventListener(&quot;timeupdate&quot;,function(q){n.setProgressRail(q);n.setCurrentRail(q)},false);p.loaded=g;p.total=l;p.current=k;p.handle=j},setProgressRail:function(f){var b=this,d=(f!=undefined)?f.target:
 b.media,c=null;if(d&amp;&amp;d.buffered&amp;&amp;d.buffered.length&gt;0&amp;&amp;d.buffered.end&amp;&amp;d.duration){c=d.buffered.end(0)/d.duration}else{if(d&amp;&amp;d.bytesTotal!=undefined&amp;&amp;d.bytesTotal&gt;0&amp;&amp;d.bufferedBytes!=undefined){c=d.bufferedBytes/d.bytesTotal}else{if(f&amp;&amp;f.lengthComputable&amp;&amp;f.total!=0){c=f.loaded/f.total}}}if(c!==null){c=Math.min(1,Math.max(0,c));if(b.loaded&amp;&amp;b.total){b.loaded.width(b.total.width()*c)}}},setCurrentRail:function(){var b=this;if(b.media.currentTime!=undefined&amp;&amp;b.media.duration){if(b.total&amp;&amp;b.handle){var d=Math.round(b.total.width()*b.media.currentTime/b.media.duration),c=d-Math.round(b.handle.outerWidth(true)/2);b.current.width(d);b.handle.css(&quot;left&quot;,c)}}}})})(mejs.$);(function(a){a.extend(mejs.MepDefaults,{duration:-1,timeAndDurationSeparator:&quot; &lt;span&gt; | &lt;/span&gt; &quot;});a.extend(MediaElementPlayer.prototype,{buildcurrent:function(d,b,f,e){var c=this;a(
 '&lt;div class=&quot;mejs-time&quot;&gt;&lt;span class=&quot;mejs-currenttime&quot;&gt;'+(d.options.alwaysShowHours?&quot;00:&quot;:&quot;&quot;)+(d.options.showTimecodeFrameCount?&quot;00:00:00&quot;:&quot;00:00&quot;)+&quot;&lt;/span&gt;&lt;/div&gt;&quot;).appendTo(b);c.currenttime=c.controls.find(&quot;.mejs-currenttime&quot;);e.addEventListener(&quot;timeupdate&quot;,function(){d.updateCurrent()},false)},buildduration:function(d,b,f,e){var c=this;if(b.children().last().find(&quot;.mejs-currenttime&quot;).length&gt;0){a(c.options.timeAndDurationSeparator+'&lt;span class=&quot;mejs-duration&quot;&gt;'+(c.options.duration&gt;0?mejs.Utility.secondsToTimeCode(c.options.duration,c.options.alwaysShowHours||c.media.duration&gt;3600,c.options.showTimecodeFrameCount,c.options.framesPerSecond||25):((d.options.alwaysShowHours?&quot;00:&quot;:&quot;&quot;)+(d.options.showTimecodeFrameCount?&quot;00:00:00&quot;:&quot;00:00&quot;)))+&quot;&lt;/span&gt;&quot;).appendTo(b.find(&quot;.mej
 s-time&quot;))}else{b.find(&quot;.mejs-currenttime&quot;).parent().addClass(&quot;mejs-currenttime-container&quot;);a('&lt;div class=&quot;mejs-time mejs-duration-container&quot;&gt;&lt;span class=&quot;mejs-duration&quot;&gt;'+(c.options.duration&gt;0?mejs.Utility.secondsToTimeCode(c.options.duration,c.options.alwaysShowHours||c.media.duration&gt;3600,c.options.showTimecodeFrameCount,c.options.framesPerSecond||25):((d.options.alwaysShowHours?&quot;00:&quot;:&quot;&quot;)+(d.options.showTimecodeFrameCount?&quot;00:00:00&quot;:&quot;00:00&quot;)))+&quot;&lt;/span&gt;&lt;/div&gt;&quot;).appendTo(b)}c.durationD=c.controls.find(&quot;.mejs-duration&quot;);e.addEventListener(&quot;timeupdate&quot;,function(){d.updateDuration()},false)},updateCurrent:function(){var b=this;if(b.currenttime){b.currenttime.html(mejs.Utility.secondsToTimeCode(b.media.currentTime,b.options.alwaysShowHours||b.media.duration&gt;3600,b.options.showTimecodeFrameCount,b.options.framesPerSecond||25))}},updat
 eDuration:function(){var b=this;b.container.toggleClass(&quot;mejs-long-video&quot;,b.media.duration&gt;3600);if(b.durationD&amp;&amp;(b.options.duration&gt;0||b.media.duration)){b.durationD.html(mejs.Utility.secondsToTimeCode(b.options.duration&gt;0?b.options.duration:b.media.duration,b.options.alwaysShowHours,b.options.showTimecodeFrameCount,b.options.framesPerSecond||25))}}})})(mejs.$);(function(a){a.extend(mejs.MepDefaults,{muteText:&quot;Mute Toggle&quot;,hideVolumeOnTouchDevices:true,audioVolume:&quot;horizontal&quot;,videoVolume:&quot;vertical&quot;});a.extend(MediaElementPlayer.prototype,{buildvolume:function(n,o,j,d){if(mejs.MediaFeatures.hasTouch&amp;&amp;this.options.hideVolumeOnTouchDevices){return}var p=this,l=(p.isVideo)?p.options.videoVolume:p.options.audioVolume,f=(l==&quot;horizontal&quot;)?a('&lt;div class=&quot;mejs-button mejs-volume-button mejs-mute&quot;&gt;&lt;button type=&quot;button&quot; aria-controls=&quot;'+p.id+'&quot; title=&quot;'+p.options.mut
 eText+'&quot;&gt;&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;mejs-horizontal-volume-slider&quot;&gt;&lt;div class=&quot;mejs-horizontal-volume-total&quot;&gt;&lt;/div&gt;&lt;div class=&quot;mejs-horizontal-volume-current&quot;&gt;&lt;/div&gt;&lt;div class=&quot;mejs-horizontal-volume-handle&quot;&gt;&lt;/div&gt;&lt;/div&gt;').appendTo(o):a('&lt;div class=&quot;mejs-button mejs-volume-button mejs-mute&quot;&gt;&lt;button type=&quot;button&quot; aria-controls=&quot;'+p.id+'&quot; title=&quot;'+p.options.muteText+'&quot;&gt;&lt;/button&gt;&lt;div class=&quot;mejs-volume-slider&quot;&gt;&lt;div class=&quot;mejs-volume-total&quot;&gt;&lt;/div&gt;&lt;div class=&quot;mejs-volume-current&quot;&gt;&lt;/div&gt;&lt;div class=&quot;mejs-volume-handle&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;').appendTo(o),q=p.container.find(&quot;.mejs-volume-slider, .mejs-horizontal-volume-slider&quot;),b=p.container.find(&quot;.mejs-volume-total, .mejs-horizontal-volume-total&quot;),h=p.contain
 er.find(&quot;.mejs-volume-current, .mejs-horizontal-volume-current&quot;),g=p.container.find(&quot;.mejs-volume-handle, .mejs-horizontal-volume-handle&quot;),m=function(w,x){if(!q.is(&quot;:visible&quot;)&amp;&amp;typeof x==&quot;undefined&quot;){q.show();m(w,true);q.hide();return}w=Math.max(0,w);w=Math.min(w,1);if(w==0){f.removeClass(&quot;mejs-mute&quot;).addClass(&quot;mejs-unmute&quot;)}else{f.removeClass(&quot;mejs-unmute&quot;).addClass(&quot;mejs-mute&quot;)}if(l==&quot;vertical&quot;){var u=b.height(),t=b.position(),s=u-(u*w);g.css(&quot;top&quot;,Math.round(t.top+s-(g.height()/2)));h.height(u-s);h.css(&quot;top&quot;,t.top+s)}else{var r=b.width(),t=b.position(),v=r*w;g.css(&quot;left&quot;,Math.round(t.left+v-(g.width()/2)));h.width(Math.round(v))}},c=function(w){var u=null,s=b.offset();if(l==&quot;vertical&quot;){var t=b.height(),r=parseInt(b.css(&quot;top&quot;).replace(/px/,&quot;&quot;),10),v=w.pageY-s.top;u=(t-v)/t;if(s.top==0||s.left==0){return}}else{var y=b.
 width(),x=w.pageX-s.left;u=x/y}u=Math.max(0,u);u=Math.min(u,1);m(u);if(u==0){d.setMuted(true)}else{d.setMuted(false)}d.setVolume(u)},k=false,e=false;f.hover(function(){q.show();e=true},function(){e=false;if(!k&amp;&amp;l==&quot;vertical&quot;){q.hide()}});q.bind(&quot;mouseover&quot;,function(){e=true}).bind(&quot;mousedown&quot;,function(r){c(r);p.globalBind(&quot;mousemove.vol&quot;,function(s){c(s)});p.globalBind(&quot;mouseup.vol&quot;,function(){k=false;p.globalUnbind(&quot;.vol&quot;);if(!e&amp;&amp;l==&quot;vertical&quot;){q.hide()}});k=true;return false});f.find(&quot;button&quot;).click(function(){d.setMuted(!d.muted)});d.addEventListener(&quot;volumechange&quot;,function(r){if(!k){if(d.muted){m(0);f.removeClass(&quot;mejs-mute&quot;).addClass(&quot;mejs-unmute&quot;)}else{m(d.volume);f.removeClass(&quot;mejs-unmute&quot;).addClass(&quot;mejs-mute&quot;)}}},false);if(p.container.is(&quot;:visible&quot;)){m(n.options.startVolume);if(n.options.startVolume===0){d.setMu
 ted(true)}if(d.pluginType===&quot;native&quot;){d.setVolume(n.options.startVolume)}}}})})(mejs.$);(function(a){a.extend(mejs.MepDefaults,{usePluginFullScreen:true,newWindowCallback:function(){return&quot;&quot;},fullscreenText:mejs.i18n.t(&quot;Fullscreen&quot;)});a.extend(MediaElementPlayer.prototype,{isFullScreen:false,isNativeFullScreen:false,docStyleOverflow:null,isInIframe:false,buildfullscreen:function(r,q,h,g){if(!r.isVideo){return}r.isInIframe=(window.location!=window.parent.location);if(mejs.MediaFeatures.hasTrueNativeFullScreen){var f=function(t){if(mejs.MediaFeatures.isFullScreen()){r.isNativeFullScreen=true;r.setControlsSize()}else{r.isNativeFullScreen=false;r.exitFullScreen()}};if(mejs.MediaFeatures.hasMozNativeFullScreen){r.globalBind(mejs.MediaFeatures.fullScreenEventName,f)}else{r.container.bind(mejs.MediaFeatures.fullScreenEventName,f)}}var p=this,e=0,c=0,o=r.container,b=a('&lt;div class=&quot;mejs-button mejs-fullscreen-button&quot;&gt;&lt;button type=&quot
 ;button&quot; aria-controls=&quot;'+p.id+'&quot; title=&quot;'+p.options.fullscreenText+'&quot;&gt;&lt;/button&gt;&lt;/div&gt;').appendTo(q);if(p.media.pluginType===&quot;native&quot;||(!p.options.usePluginFullScreen&amp;&amp;!mejs.MediaFeatures.isFirefox)){b.click(function(){var t=(mejs.MediaFeatures.hasTrueNativeFullScreen&amp;&amp;mejs.MediaFeatures.isFullScreen())||r.isFullScreen;if(t){r.exitFullScreen()}else{r.enterFullScreen()}})}else{var n=null,j=(function(){var v=document.createElement(&quot;x&quot;),w=document.documentElement,x=window.getComputedStyle,t;if(!(&quot;pointerEvents&quot; in v.style)){return false}v.style.pointerEvents=&quot;auto&quot;;v.style.pointerEvents=&quot;x&quot;;w.appendChild(v);t=x&amp;&amp;x(v,&quot;&quot;).pointerEvents===&quot;auto&quot;;w.removeChild(v);return !!t})();if(j&amp;&amp;!mejs.MediaFeatures.isOpera){var m=false,s=function(){if(m){k.hide();d.hide();l.hide();b.css(&quot;pointer-events&quot;,&quot;&quot;);p.controls.css(&quot;pointe
 r-events&quot;,&quot;&quot;);m=false}},k=a('&lt;div class=&quot;mejs-fullscreen-hover&quot; /&gt;').appendTo(p.container).mouseover(s),d=a('&lt;div class=&quot;mejs-fullscreen-hover&quot;  /&gt;').appendTo(p.container).mouseover(s),l=a('&lt;div class=&quot;mejs-fullscreen-hover&quot;  /&gt;').appendTo(p.container).mouseover(s),u=function(){var v={position:&quot;absolute&quot;,top:0,left:0};k.css(v);d.css(v);l.css(v);k.width(p.container.width()).height(p.container.height()-p.controls.height());var t=b.offset().left-p.container.offset().left;fullScreenBtnWidth=b.outerWidth(true);d.width(t).height(p.controls.height()).css({top:p.container.height()-p.controls.height()});l.width(p.container.width()-t-fullScreenBtnWidth).height(p.controls.height()).css({top:p.container.height()-p.controls.height(),left:t+fullScreenBtnWidth})};p.globalBind(&quot;resize&quot;,function(){u()});b.mouseover(function(){if(!p.isFullScreen){var t=b.offset(),v=r.container.offset();g.positionFullscreenButto
 n(t.left-v.left,t.top-v.top,false);b.css(&quot;pointer-events&quot;,&quot;none&quot;);p.controls.css(&quot;pointer-events&quot;,&quot;none&quot;);k.show();l.show();d.show();u();m=true}});g.addEventListener(&quot;fullscreenchange&quot;,function(t){s()})}else{b.mouseover(function(){if(n!==null){clearTimeout(n);delete n}var t=b.offset(),v=r.container.offset();g.positionFullscreenButton(t.left-v.left,t.top-v.top,true)}).mouseout(function(){if(n!==null){clearTimeout(n);delete n}n=setTimeout(function(){g.hideFullscreenButton()},1500)})}}r.fullscreenBtn=b;p.globalBind(&quot;keydown&quot;,function(t){if(((mejs.MediaFeatures.hasTrueNativeFullScreen&amp;&amp;mejs.MediaFeatures.isFullScreen())||p.isFullScreen)&amp;&amp;t.keyCode==27){r.exitFullScreen()}})},cleanfullscreen:function(b){b.exitFullScreen()},enterFullScreen:function(){var c=this;if(c.media.pluginType!==&quot;native&quot;&amp;&amp;(mejs.MediaFeatures.isFirefox||c.options.usePluginFullScreen)){return}docStyleOverflow=document
 .documentElement.style.overflow;document.documentElement.style.overflow=&quot;hidden&quot;;normalHeight=c.container.height();normalWidth=c.container.width();if(c.media.pluginType===&quot;native&quot;){if(mejs.MediaFeatures.hasTrueNativeFullScreen){mejs.MediaFeatures.requestFullScreen(c.container[0]);if(c.isInIframe){setTimeout(function d(){if(c.isNativeFullScreen){if(a(window).width()!==screen.width){c.exitFullScreen()}else{setTimeout(d,500)}}},500)}}else{if(mejs.MediaFeatures.hasSemiNativeFullScreen){c.media.webkitEnterFullscreen();return}}}if(c.isInIframe){var b=c.options.newWindowCallback(this);if(b!==&quot;&quot;){if(!mejs.MediaFeatures.hasTrueNativeFullScreen){c.pause();window.open(b,c.id,&quot;top=0,left=0,width=&quot;+screen.availWidth+&quot;,height=&quot;+screen.availHeight+&quot;,resizable=yes,scrollbars=no,status=no,toolbar=no&quot;);return}else{setTimeout(function(){if(!c.isNativeFullScreen){c.pause();window.open(b,c.id,&quot;top=0,left=0,width=&quot;+screen.avail
 Width+&quot;,height=&quot;+screen.availHeight+&quot;,resizable=yes,scrollbars=no,status=no,toolbar=no&quot;)}},250)}}}c.container.addClass(&quot;mejs-container-fullscreen&quot;).width(&quot;100%&quot;).height(&quot;100%&quot;);setTimeout(function(){c.container.css({width:&quot;100%&quot;,height:&quot;100%&quot;});c.setControlsSize()},500);if(c.pluginType===&quot;native&quot;){c.$media.width(&quot;100%&quot;).height(&quot;100%&quot;)}else{c.container.find(&quot;.mejs-shim&quot;).width(&quot;100%&quot;).height(&quot;100%&quot;);c.media.setVideoSize(a(window).width(),a(window).height())}c.layers.children(&quot;div&quot;).width(&quot;100%&quot;).height(&quot;100%&quot;);if(c.fullscreenBtn){c.fullscreenBtn.removeClass(&quot;mejs-fullscreen&quot;).addClass(&quot;mejs-unfullscreen&quot;)}c.setControlsSize();c.isFullScreen=true},exitFullScreen:function(){var b=this;if(b.media.pluginType!==&quot;native&quot;&amp;&amp;mejs.MediaFeatures.isFirefox){b.media.setFullscreen(false);return}i
 f(mejs.MediaFeatures.hasTrueNativeFullScreen&amp;&amp;(mejs.MediaFeatures.isFullScreen()||b.isFullScreen)){mejs.MediaFeatures.cancelFullScreen()}document.documentElement.style.overflow=docStyleOverflow;b.container.removeClass(&quot;mejs-container-fullscreen&quot;).width(normalWidth).height(normalHeight);if(b.pluginType===&quot;native&quot;){b.$media.width(normalWidth).height(normalHeight)}else{b.container.find(&quot;object embed&quot;).width(normalWidth).height(normalHeight);b.media.setVideoSize(normalWidth,normalHeight)}b.layers.children(&quot;div&quot;).width(normalWidth).height(normalHeight);b.fullscreenBtn.removeClass(&quot;mejs-unfullscreen&quot;).addClass(&quot;mejs-fullscreen&quot;);b.setControlsSize();b.isFullScreen=false}})})(mejs.$);(function(a){a.extend(mejs.MepDefaults,{startLanguage:&quot;&quot;,tracksText:&quot;Captions/Subtitles&quot;,hideCaptionsButtonWhenEmpty:true,toggleCaptionsButtonWhenOnlyOne:false,slidesSelector:&quot;&quot;});a.extend(MediaElementPlaye
 r.prototype,{hasChapters:false,buildtracks:function(f,b,j,h){if(!f.isVideo){return}if(f.tracks.length==0){return}var e=this,d,c=&quot;&quot;;f.chapters=a('&lt;div class=&quot;mejs-chapters mejs-layer&quot;&gt;&lt;/div&gt;').prependTo(j).hide();f.captions=a('&lt;div class=&quot;mejs-captions-layer mejs-layer&quot;&gt;&lt;div class=&quot;mejs-captions-position mejs-captions-position-hover&quot;&gt;&lt;span class=&quot;mejs-captions-text&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;').prependTo(j).hide();f.captionsText=f.captions.find(&quot;.mejs-captions-text&quot;);f.captionsButton=a('&lt;div class=&quot;mejs-button mejs-captions-button&quot;&gt;&lt;button type=&quot;button&quot; aria-controls=&quot;'+e.id+'&quot; title=&quot;'+e.options.tracksText+'&quot;&gt;&lt;/button&gt;&lt;div class=&quot;mejs-captions-selector&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;'+f.id+'_captions&quot; id=&quot;'+f.id+'_captions_none&quot; value=&quot;none&quot; che
 cked=&quot;checked&quot; /&gt;&lt;label for=&quot;'+f.id+'_captions_none&quot;&gt;None&lt;/label&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;').appendTo(b);var g=0;for(d=0;d&lt;f.tracks.length;d++){if(f.tracks[d].kind==&quot;subtitles&quot;){g++}}if(e.options.toggleCaptionsButtonWhenOnlyOne&amp;&amp;g==1){f.captionsButton.on(&quot;click&quot;,function(){if(f.selectedTrack==null){var k=f.tracks[0].srclang}else{var k=&quot;none&quot;}f.setTrack(k)})}else{f.captionsButton.hover(function(){a(this).find(&quot;.mejs-captions-selector&quot;).css(&quot;visibility&quot;,&quot;visible&quot;)},function(){a(this).find(&quot;.mejs-captions-selector&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}).on(&quot;click&quot;,&quot;input[type=radio]&quot;,function(){lang=this.value;f.setTrack(lang)})}if(!f.options.alwaysShowControls){f.container.bind(&quot;controlsshown&quot;,function(){f.container.find(&quot;.mejs-captions-position&quot;).addClass(&quot;mejs-captions-position-hover&q
 uot;)}).bind(&quot;controlshidden&quot;,function(){if(!h.paused){f.container.find(&quot;.mejs-captions-position&quot;).removeClass(&quot;mejs-captions-position-hover&quot;)}})}else{f.container.find(&quot;.mejs-captions-position&quot;).addClass(&quot;mejs-captions-position-hover&quot;)}f.trackToLoad=-1;f.selectedTrack=null;f.isLoadingTrack=false;for(d=0;d&lt;f.tracks.length;d++){if(f.tracks[d].kind==&quot;subtitles&quot;){f.addTrackButton(f.tracks[d].srclang,f.tracks[d].label)}}f.loadNextTrack();h.addEventListener(&quot;timeupdate&quot;,function(k){f.displayCaptions()},false);if(f.options.slidesSelector!=&quot;&quot;){f.slidesContainer=a(f.options.slidesSelector);h.addEventListener(&quot;timeupdate&quot;,function(k){f.displaySlides()},false)}h.addEventListener(&quot;loadedmetadata&quot;,function(k){f.displayChapters()},false);f.container.hover(function(){if(f.hasChapters){f.chapters.css(&quot;visibility&quot;,&quot;visible&quot;);f.chapters.fadeIn(200).height(f.chapters.find(
 &quot;.mejs-chapter&quot;).outerHeight())}},function(){if(f.hasChapters&amp;&amp;!h.paused){f.chapters.fadeOut(200,function(){a(this).css(&quot;visibility&quot;,&quot;hidden&quot;);a(this).css(&quot;display&quot;,&quot;block&quot;)})}});if(f.node.getAttribute(&quot;autoplay&quot;)!==null){f.chapters.css(&quot;visibility&quot;,&quot;hidden&quot;)}},setTrack:function(d){var c=this,b;if(d==&quot;none&quot;){c.selectedTrack=null;c.captionsButton.removeClass(&quot;mejs-captions-enabled&quot;)}else{for(b=0;b&lt;c.tracks.length;b++){if(c.tracks[b].srclang==d){if(c.selectedTrack==null){c.captionsButton.addClass(&quot;mejs-captions-enabled&quot;)}c.selectedTrack=c.tracks[b];c.captions.attr(&quot;lang&quot;,c.selectedTrack.srclang);c.displayCaptions();break}}}},loadNextTrack:function(){var b=this;b.trackToLoad++;if(b.trackToLoad&lt;b.tracks.length){b.isLoadingTrack=true;b.loadTrack(b.trackToLoad)}else{b.isLoadingTrack=false;b.checkForTracks()}},loadTrack:function(c){var d=this,b=d.tra
 cks[c],e=function(){b.isLoaded=true;d.enableTrackButton(b.srclang,b.label);d.loadNextTrack()};a.ajax({url:b.src,dataType:&quot;text&quot;,success:function(f){if(typeof f==&quot;string&quot;&amp;&amp;(/&lt;tt\s+xml/ig).exec(f)){b.entries=mejs.TrackFormatParser.dfxp.parse(f)}else{b.entries=mejs.TrackFormatParser.webvvt.parse(f)}e();if(b.kind==&quot;chapters&quot;){d.media.addEventListener(&quot;play&quot;,function(g){if(d.media.duration&gt;0){d.displayChapters(b)}},false)}if(b.kind==&quot;slides&quot;){d.setupSlides(b)}},error:function(){d.loadNextTrack()}})},enableTrackButton:function(d,b){var c=this;if(b===&quot;&quot;){b=mejs.language.codes[d]||d}c.captionsButton.find(&quot;input[value=&quot;+d+&quot;]&quot;).prop(&quot;disabled&quot;,false).siblings(&quot;label&quot;).html(b);if(c.options.startLanguage==d){a(&quot;#&quot;+c.id+&quot;_captions_&quot;+d).click()}c.adjustLanguageBox()},addTrackButton:function(d,b){var c=this;if(b===&quot;&quot;){b=mejs.language.codes[d]||d}c.
 captionsButton.find(&quot;ul&quot;).append(a('&lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;'+c.id+'_captions&quot; id=&quot;'+c.id+&quot;_captions_&quot;+d+'&quot; value=&quot;'+d+'&quot; disabled=&quot;disabled&quot; /&gt;&lt;label for=&quot;'+c.id+&quot;_captions_&quot;+d+'&quot;&gt;'+b+&quot; (loading)&lt;/label&gt;&lt;/li&gt;&quot;));c.adjustLanguageBox();c.container.find(&quot;.mejs-captions-translations option[value=&quot;+d+&quot;]&quot;).remove()},adjustLanguageBox:function(){var b=this;b.captionsButton.find(&quot;.mejs-captions-selector&quot;).height(b.captionsButton.find(&quot;.mejs-captions-selector ul&quot;).outerHeight(true)+b.captionsButton.find(&quot;.mejs-captions-translations&quot;).outerHeight(true))},checkForTracks:function(){var b=this,c=false;if(b.options.hideCaptionsButtonWhenEmpty){for(i=0;i&lt;b.tracks.length;i++){if(b.tracks[i].kind==&quot;subtitles&quot;){c=true;break}}if(!c){b.captionsButton.hide();b.setControlsSize()}}},displayCaptions:fu
 nction(){if(typeof this.tracks==&quot;undefined&quot;){return}var d=this,c,b=d.selectedTrack;if(b!=null&amp;&amp;b.isLoaded){for(c=0;c&lt;b.entries.times.length;c++){if(d.media.currentTime&gt;=b.entries.times[c].start&amp;&amp;d.media.currentTime&lt;=b.entries.times[c].stop){d.captionsText.html(b.entries.text[c]);d.captions.show().height(0);return}}d.captions.hide()}else{d.captions.hide()}},setupSlides:function(b){var c=this;c.slides=b;c.slides.entries.imgs=[c.slides.entries.text.length];c.showSlide(0)},showSlide:function(d){if(typeof this.tracks==&quot;undefined&quot;||typeof this.slidesContainer==&quot;undefined&quot;){return}var e=this,c=e.slides.entries.text[d],b=e.slides.entries.imgs[d];if(typeof b==&quot;undefined&quot;||typeof b.fadeIn==&quot;undefined&quot;){e.slides.entries.imgs[d]=b=a('&lt;img src=&quot;'+c+'&quot;&gt;').on(&quot;load&quot;,function(){b.appendTo(e.slidesContainer).hide().fadeIn().siblings(&quot;:visible&quot;).fadeOut()})}else{if(!b.is(&quot;:visib
 le&quot;)&amp;&amp;!b.is(&quot;:animated&quot;)){console.log(&quot;showing existing slide&quot;);b.fadeIn().siblings(&quot;:visible&quot;).fadeOut()}}},displaySlides:function(){if(typeof this.slides==&quot;undefined&quot;){return}var c=this,d=c.slides,b;for(b=0;b&lt;d.entries.times.length;b++){if(c.media.currentTime&gt;=d.entries.times[b].start&amp;&amp;c.media.currentTime&lt;=d.entries.times[b].stop){c.showSlide(b);return}}},displayChapters:function(){var c=this,b;for(b=0;b&lt;c.tracks.length;b++){if(c.tracks[b].kind==&quot;chapters&quot;&amp;&amp;c.tracks[b].isLoaded){c.drawChapters(c.tracks[b]);c.hasChapters=true;break}}},drawChapters:function(f){var c=this,b,d,e=0,g=0;c.chapters.empty();for(b=0;b&lt;f.entries.times.length;b++){d=f.entries.times[b].stop-f.entries.times[b].start;e=Math.floor(d/c.media.duration*100);if(e+g&gt;100||b==f.entries.times.length-1&amp;&amp;e+g&lt;100){e=100-g}c.chapters.append(a('&lt;div class=&quot;mejs-chapter&quot; rel=&quot;'+f.entries.times[
 b].start+'&quot; style=&quot;left: '+g.toString()+&quot;%;width: &quot;+e.toString()+'%;&quot;&gt;&lt;div class=&quot;mejs-chapter-block'+((b==f.entries.times.length-1)?&quot; mejs-chapter-block-last&quot;:&quot;&quot;)+'&quot;&gt;&lt;span class=&quot;ch-title&quot;&gt;'+f.entries.text[b]+'&lt;/span&gt;&lt;span class=&quot;ch-time&quot;&gt;'+mejs.Utility.secondsToTimeCode(f.entries.times[b].start)+&quot;&amp;ndash;&quot;+mejs.Utility.secondsToTimeCode(f.entries.times[b].stop)+&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&quot;));g+=e}c.chapters.find(&quot;div.mejs-chapter&quot;).click(function(){c.media.setCurrentTime(parseFloat(a(this).attr(&quot;rel&quot;)));if(c.media.paused){c.media.play()}});c.chapters.show()}});mejs.language={codes:{af:&quot;Afrikaans&quot;,sq:&quot;Albanian&quot;,ar:&quot;Arabic&quot;,be:&quot;Belarusian&quot;,bg:&quot;Bulgarian&quot;,ca:&quot;Catalan&quot;,zh:&quot;Chinese&quot;,&quot;zh-cn&quot;:&quot;Chinese Simplified&quot;,&quot;zh-tw&quot;:&quot;C
 hinese Traditional&quot;,hr:&quot;Croatian&quot;,cs:&quot;Czech&quot;,da:&quot;Danish&quot;,nl:&quot;Dutch&quot;,en:&quot;English&quot;,et:&quot;Estonian&quot;,tl:&quot;Filipino&quot;,fi:&quot;Finnish&quot;,fr:&quot;French&quot;,gl:&quot;Galician&quot;,de:&quot;German&quot;,el:&quot;Greek&quot;,ht:&quot;Haitian Creole&quot;,iw:&quot;Hebrew&quot;,hi:&quot;Hindi&quot;,hu:&quot;Hungarian&quot;,is:&quot;Icelandic&quot;,id:&quot;Indonesian&quot;,ga:&quot;Irish&quot;,it:&quot;Italian&quot;,ja:&quot;Japanese&quot;,ko:&quot;Korean&quot;,lv:&quot;Latvian&quot;,lt:&quot;Lithuanian&quot;,mk:&quot;Macedonian&quot;,ms:&quot;Malay&quot;,mt:&quot;Maltese&quot;,no:&quot;Norwegian&quot;,fa:&quot;Persian&quot;,pl:&quot;Polish&quot;,pt:&quot;Portuguese&quot;,ro:&quot;Romanian&quot;,ru:&quot;Russian&quot;,sr:&quot;Serbian&quot;,sk:&quot;Slovak&quot;,sl:&quot;Slovenian&quot;,es:&quot;Spanish&quot;,sw:&quot;Swahili&quot;,sv:&quot;Swedish&quot;,tl:&quot;Tagalog&quot;,th:&quot;Thai&quot;,tr:&quot;T
 urkish&quot;,uk:&quot;Ukrainian&quot;,vi:&quot;Vietnamese&quot;,cy:&quot;Welsh&quot;,yi:&quot;Yiddish&quot;}};mejs.TrackFormatParser={webvvt:{pattern_identifier:/^([a-zA-z]+-)?[0-9]+$/,pattern_timecode:/^([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\&gt; ([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,parse:function(g){var e=0,d=mejs.TrackFormatParser.split2(g,/\r?\n/),c={text:[],times:[]},b,f;for(;e&lt;d.length;e++){if(this.pattern_identifier.exec(d[e])){e++;b=this.pattern_timecode.exec(d[e]);if(b&amp;&amp;e&lt;d.length){e++;f=d[e];e++;while(d[e]!==&quot;&quot;&amp;&amp;e&lt;d.length){f=f+&quot;\n&quot;+d[e];e++}f=a.trim(f).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&amp;@#\/%?=~_|!:,.;]*[-A-Z0-9+&amp;@#\/%=~_|])/ig,&quot;&lt;a href='$1' target='_blank'&gt;$1&lt;/a&gt;&quot;);c.text.push(f);c.times.push({start:(mejs.Utility.convertSMPTEtoSeconds(b[1])==0)?0.2:mejs.Utility.convertSMPTEtoSeconds(b[1]),stop:mejs.Utility.convertSMPTEtoSeconds(b[3]),settings:b[5]})}}}return
  c}},dfxp:{parse:function(l){l=a(l).filter(&quot;tt&quot;);var j=0,c=l.children(&quot;div&quot;).eq(0),p=c.find(&quot;p&quot;),h=l.find(&quot;#&quot;+c.attr(&quot;style&quot;)),o,d,f,n,k={text:[],times:[]};if(h.length){var g=h.removeAttr(&quot;id&quot;).get(0).attributes;if(g.length){o={};for(j=0;j&lt;g.length;j++){o[g[j].name.split(&quot;:&quot;)[1]]=g[j].value}}}for(j=0;j&lt;p.length;j++){var b;var m={start:null,stop:null,style:null};if(p.eq(j).attr(&quot;begin&quot;)){m.start=mejs.Utility.convertSMPTEtoSeconds(p.eq(j).attr(&quot;begin&quot;))}if(!m.start&amp;&amp;p.eq(j-1).attr(&quot;end&quot;)){m.start=mejs.Utility.convertSMPTEtoSeconds(p.eq(j-1).attr(&quot;end&quot;))}if(p.eq(j).attr(&quot;end&quot;)){m.stop=mejs.Utility.convertSMPTEtoSeconds(p.eq(j).attr(&quot;end&quot;))}if(!m.stop&amp;&amp;p.eq(j+1).attr(&quot;begin&quot;)){m.stop=mejs.Utility.convertSMPTEtoSeconds(p.eq(j+1).attr(&quot;begin&quot;))}if(o){b=&quot;&quot;;for(var e in o){b+=e+&quot;:&quot;+o[e]+&quot;;
 &quot;}}if(b){m.style=b}if(m.start==0){m.start=0.2}k.times.push(m);n=a.trim(p.eq(j).html()).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&amp;@#\/%?=~_|!:,.;]*[-A-Z0-9+&amp;@#\/%=~_|])/ig,&quot;&lt;a href='$1' target='_blank'&gt;$1&lt;/a&gt;&quot;);k.text.push(n);if(k.times.start==0){k.times.start=2}}return k}},split2:function(c,b){return c.split(b)}};if(&quot;x\n\ny&quot;.split(/\n/gi).length!=3){mejs.TrackFormatParser.split2=function(f,d){var e=[],b=&quot;&quot;,c;for(c=0;c&lt;f.length;c++){b+=f.substring(c,c+1);if(d.test(b)){e.push(b.replace(d,&quot;&quot;));b=&quot;&quot;}}e.push(b);return e}}})(mejs.$);(function(a){a.extend(mejs.MepDefaults,{contextMenuItems:[{render:function(b){if(typeof b.enterFullScreen==&quot;undefined&quot;){return null}if(b.isFullScreen){return&quot;Turn off Fullscreen&quot;}else{return&quot;Go Fullscreen&quot;}},click:function(b){if(b.isFullScreen){b.exitFullScreen()}else{b.enterFullScreen()}}},{render:function(b){if(b.media.muted){return&quot;Unmu
 te&quot;}else{return&quot;Mute&quot;}},click:function(b){if(b.media.muted){b.setMuted(false)}else{b.setMuted(true)}}},{isSeparator:true},{render:function(b){return&quot;Download Video&quot;},click:function(b){window.location.href=b.media.currentSrc}}]});a.extend(MediaElementPlayer.prototype,{buildcontextmenu:function(c,b,e,d){c.contextMenu=a('&lt;div class=&quot;mejs-contextmenu&quot;&gt;&lt;/div&gt;').appendTo(a(&quot;body&quot;)).hide();c.container.bind(&quot;contextmenu&quot;,function(f){if(c.isContextMenuEnabled){f.preventDefault();c.renderContextMenu(f.clientX-1,f.clientY-1);return false}});c.container.bind(&quot;click&quot;,function(){c.contextMenu.hide()});c.contextMenu.bind(&quot;mouseleave&quot;,function(){c.startContextMenuTimer()})},cleancontextmenu:function(b){b.contextMenu.remove()},isContextMenuEnabled:true,enableContextMenu:function(){this.isContextMenuEnabled=true},disableContextMenu:function(){this.isContextMenuEnabled=false},contextMenuTimeout:null,startCon
 textMenuTimer:function(){var b=this;b.killContextMenuTimer();b.contextMenuTimer=setTimeout(function(){b.hideContextMenu();b.killContextMenuTimer()},750)},killContextMenuTimer:function(){var b=this.contextMenuTimer;if(b!=null){clearTimeout(b);delete b;b=null}},hideContextMenu:function(){this.contextMenu.hide()},renderContextMenu:function(b,j){var g=this,f=&quot;&quot;,d=g.options.contextMenuItems;for(var e=0,c=d.length;e&lt;c;e++){if(d[e].isSeparator){f+='&lt;div class=&quot;mejs-contextmenu-separator&quot;&gt;&lt;/div&gt;'}else{var h=d[e].render(g);if(h!=null){f+='&lt;div class=&quot;mejs-contextmenu-item&quot; data-itemindex=&quot;'+e+'&quot; id=&quot;element-'+(Math.random()*1000000)+'&quot;&gt;'+h+&quot;&lt;/div&gt;&quot;}}}g.contextMenu.empty().append(a(f)).css({top:j,left:b}).show();g.contextMenu.find(&quot;.mejs-contextmenu-item&quot;).each(function(){var k=a(this),l=parseInt(k.data(&quot;itemindex&quot;),10),m=g.options.contextMenuItems[l];if(typeof m.show!=&quot;unde
 fined&quot;){m.show(k,g)}k.click(function(){if(typeof m.click!=&quot;undefined&quot;){m.click(g)}g.contextMenu.hide()})});setTimeout(function(){g.killControlsTimer(&quot;rev3&quot;)},100)}})})(mejs.$);(function(a){a.extend(mejs.MepDefaults,{postrollCloseText:mejs.i18n.t(&quot;Close&quot;)});a.extend(MediaElementPlayer.prototype,{buildpostroll:function(e,c,g,f){var d=this,b=d.container.find('link[rel=&quot;postroll&quot;]').attr(&quot;href&quot;);if(typeof b!==&quot;undefined&quot;){e.postroll=a('&lt;div class=&quot;mejs-postroll-layer mejs-layer&quot;&gt;&lt;a class=&quot;mejs-postroll-close&quot; onclick=&quot;$(this).parent().hide();return false;&quot;&gt;'+d.options.postrollCloseText+'&lt;/a&gt;&lt;div class=&quot;mejs-postroll-layer-content&quot;&gt;&lt;/div&gt;&lt;/div&gt;').prependTo(g).hide();d.media.addEventListener(&quot;ended&quot;,function(h){a.ajax({dataType:&quot;html&quot;,url:b,success:function(j,k){g.find(&quot;.mejs-postroll-layer-content&quot;).html(j)}});e
 .postroll.show()},false)}}})})(mejs.$);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsmediaelementmediaelementplayermincss"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/mediaelement/mediaelementplayer.min.css (23959 => 23960)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/mediaelement/mediaelementplayer.min.css        2013-04-10 22:44:29 UTC (rev 23959)
+++ trunk/wp-includes/js/mediaelement/mediaelementplayer.min.css        2013-04-10 22:58:42 UTC (rev 23960)
</span><span class="lines">@@ -1 +1 @@
</span><del>-.mejs-container{position:relative;background:#000;font-family:Helvetica,Arial;text-align:left;vertical-align:top;text-indent:0;}.me-plugin{position:absolute;}.mejs-embed,.mejs-embed body{width:100%;height:100%;margin:0;padding:0;background:#000;overflow:hidden;}.mejs-container-fullscreen{position:fixed;left:0;top:0;right:0;bottom:0;overflow:hidden;z-index:1000;}.mejs-container-fullscreen .mejs-mediaelement,.mejs-container-fullscreen video{width:100%;height:100%;}.mejs-background{position:absolute;top:0;left:0;}.mejs-mediaelement{position:absolute;top:0;left:0;width:100%;height:100%;}.mejs-poster{position:absolute;top:0;left:0;}.mejs-poster img{border:0;padding:0;border:0;display:block;}.mejs-overlay{position:absolute;top:0;left:0;}.mejs-overlay-play{cursor:pointer;}.mejs-overlay-button{position:absolute;top:50%;left:50%;width:100px;height:100px;margin:-50px 0 0 -50px;background:url(bigplay.svg) no-repeat;}.no-svg .mejs-overlay-button{background-image:url(bigplay.
 png);}.mejs-overlay:hover .mejs-overlay-button{background-position:0 -100px;}.mejs-overlay-loading{position:absolute;top:50%;left:50%;width:80px;height:80px;margin:-40px 0 0 -40px;background:#333;background:url(background.png);background:rgba(0,0,0,0.9);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(50,50,50,0.9)),to(rgba(0,0,0,0.9)));background:-webkit-linear-gradient(top,rgba(50,50,50,0.9),rgba(0,0,0,0.9));background:-moz-linear-gradient(top,rgba(50,50,50,0.9),rgba(0,0,0,0.9));background:-o-linear-gradient(top,rgba(50,50,50,0.9),rgba(0,0,0,0.9));background:-ms-linear-gradient(top,rgba(50,50,50,0.9),rgba(0,0,0,0.9));background:linear-gradient(rgba(50,50,50,0.9),rgba(0,0,0,0.9));}.mejs-overlay-loading span{display:block;width:80px;height:80px;background:transparent url(loading.gif) 50% 50% no-repeat;}.mejs-container .mejs-controls{position:absolute;background:none;list-style-type:none;margin:0;padding:0;bottom:0;left:0;background:url(background.png);background:rgb
 a(0,0,0,0.7);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(50,50,50,0.7)),to(rgba(0,0,0,0.7)));background:-webkit-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-moz-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-o-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-ms-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:linear-gradient(rgba(50,50,50,0.7),rgba(0,0,0,0.7));height:30px;width:100%;}.mejs-container .mejs-controls div{list-style-type:none;background-image:none;display:block;float:left;margin:0;padding:0;width:26px;height:26px;font-size:11px;line-height:11px;background:0;font-family:Helvetica,Arial;border:0;}.mejs-controls .mejs-button button{cursor:pointer;display:block;font-size:0;line-height:0;text-decoration:none;margin:7px 5px;padding:0;position:absolute;height:16px;width:16px;border:0;background:transparent url(controls.svg) no-repeat;}.no-svg .mejs-controls .mejs-button butto
 n{background-image:url(controls.png);}.mejs-controls .mejs-button button:focus{outline:solid 1px yellow;}.mejs-container .mejs-controls .mejs-time{color:#fff;display:block;height:17px;width:auto;padding:8px 3px 0 3px;overflow:hidden;text-align:center;padding:auto 4px;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}.mejs-container .mejs-controls .mejs-time span{font-size:11px;color:#fff;line-height:12px;display:block;float:left;margin:1px 2px 0 0;width:auto;}.mejs-controls .mejs-play button{background-position:0 0;}.mejs-controls .mejs-pause button{background-position:0 -16px;}.mejs-controls .mejs-stop button{background-position:-112px 0;}.mejs-controls div.mejs-time-rail{width:200px;padding-top:5px;}.mejs-controls .mejs-time-rail span{display:block;position:absolute;width:180px;height:10px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;cursor:pointer;}.mejs-controls .mejs-time-rail .mejs-time-total{margin:5px;background:
 #333;background:rgba(50,50,50,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(30,30,30,0.8)),to(rgba(60,60,60,0.8)));background:-webkit-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-moz-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-o-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-ms-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:linear-gradient(rgba(30,30,30,0.8),rgba(60,60,60,0.8));}.mejs-controls .mejs-time-rail .mejs-time-buffering{width:100%;background-image:-o-linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(
 0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-ms-linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);-webkit-background-size:15px 15px;-moz-background-size:15px 15px;-o-background-size:15px 15px;background-size:15px 15px;-webkit-animation:buffering-stripes 2s linear infinite;-moz-animation:buffering-stripes 2
 s linear infinite;-ms-animation:buffering-stripes 2s linear infinite;-o-animation:buffering-stripes 2s linear infinite;animation:buffering-stripes 2s linear infinite;}@-webkit-keyframes buffering-stripes{from{background-position:0 0;}to{background-position:30px 0;}}@-moz-keyframes buffering-stripes{from{background-position:0 0;}to{background-position:30px 0;}}@-ms-keyframes buffering-stripes{from{background-position:0 0;}to{background-position:30px 0;}}@-o-keyframes buffering-stripes{from{background-position:0 0;}to{background-position:30px 0;}}@keyframes buffering-stripes{from{background-position:0 0;}to{background-position:30px 0;}}.mejs-controls .mejs-time-rail .mejs-time-loaded{background:#3caac8;background:rgba(60,170,200,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(44,124,145,0.8)),to(rgba(78,183,212,0.8)));background:-webkit-linear-gradient(top,rgba(44,124,145,0.8),rgba(78,183,212,0.8));background:-moz-linear-gradient(top,rgba(44,124,145,0.8),rgba(78
 ,183,212,0.8));background:-o-linear-gradient(top,rgba(44,124,145,0.8),rgba(78,183,212,0.8));background:-ms-linear-gradient(top,rgba(44,124,145,0.8),rgba(78,183,212,0.8));background:linear-gradient(rgba(44,124,145,0.8),rgba(78,183,212,0.8));width:0;}.mejs-controls .mejs-time-rail .mejs-time-current{width:0;background:#fff;background:rgba(255,255,255,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(255,255,255,0.9)),to(rgba(200,200,200,0.8)));background:-webkit-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-moz-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-o-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-ms-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:linear-gradient(rgba(255,255,255,0.9),rgba(200,200,200,0.8));}.mejs-controls .mejs-time-rail .mejs-time-handle{display:none;position:absolute;margin:0;width:10px;background:#fff;-webkit-border-ra
 dius:5px;-moz-border-radius:5px;border-radius:5px;cursor:pointer;border:solid 2px #333;top:-2px;text-align:center;}.mejs-controls .mejs-time-rail .mejs-time-float{position:absolute;display:none;background:#eee;width:36px;height:17px;border:solid 1px #333;top:-26px;margin-left:-18px;text-align:center;color:#111;}.mejs-controls .mejs-time-rail .mejs-time-float-current{margin:2px;width:30px;display:block;text-align:center;left:0;}.mejs-controls .mejs-time-rail .mejs-time-float-corner{position:absolute;display:block;width:0;height:0;line-height:0;border:solid 5px #eee;border-color:#eee transparent transparent transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;top:15px;left:13px;}.mejs-long-video .mejs-controls .mejs-time-rail .mejs-time-float{width:48px;}.mejs-long-video .mejs-controls .mejs-time-rail .mejs-time-float-current{width:44px;}.mejs-long-video .mejs-controls .mejs-time-rail .mejs-time-float-corner{left:18px;}.mejs-controls .mejs-fullscreen-button
  button{background-position:-32px 0;}.mejs-controls .mejs-unfullscreen button{background-position:-32px -16px;}.mejs-controls .mejs-mute button{background-position:-16px -16px;}.mejs-controls .mejs-unmute button{background-position:-16px 0;}.mejs-controls .mejs-volume-button{position:relative;}.mejs-controls .mejs-volume-button .mejs-volume-slider{display:none;height:115px;width:25px;background:url(background.png);background:rgba(50,50,50,0.7);-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;top:-115px;left:0;z-index:1;position:absolute;margin:0;}.mejs-controls .mejs-volume-button:hover{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;}.mejs-controls .mejs-volume-button .mejs-volume-slider .mejs-volume-total{position:absolute;left:11px;top:8px;width:2px;height:100px;background:#ddd;background:rgba(255,255,255,0.5);margin:0;}.mejs-controls .mejs-volume-button .mejs-volume-slider .mejs-volume-current{position:absolute;left:
 11px;top:8px;width:2px;height:100px;background:#ddd;background:rgba(255,255,255,0.9);margin:0;}.mejs-controls .mejs-volume-button .mejs-volume-slider .mejs-volume-handle{position:absolute;left:4px;top:-3px;width:16px;height:6px;background:#ddd;background:rgba(255,255,255,0.9);cursor:N-resize;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;margin:0;}.mejs-controls div.mejs-horizontal-volume-slider{height:26px;width:60px;position:relative;}.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total{position:absolute;left:0;top:11px;width:50px;height:8px;margin:0;padding:0;font-size:1px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background:#333;background:rgba(50,50,50,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(30,30,30,0.8)),to(rgba(60,60,60,0.8)));background:-webkit-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-moz-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));
 background:-o-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-ms-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:linear-gradient(rgba(30,30,30,0.8),rgba(60,60,60,0.8));}.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current{position:absolute;left:0;top:11px;width:50px;height:8px;margin:0;padding:0;font-size:1px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background:#fff;background:rgba(255,255,255,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(255,255,255,0.9)),to(rgba(200,200,200,0.8)));background:-webkit-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-moz-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-o-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-ms-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:linear-gradient(rgba(255,255,255,0.9),rgba(200,200,200
 ,0.8));}.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-handle{display:none;}.mejs-controls .mejs-captions-button{position:relative;}.mejs-controls .mejs-captions-button button{background-position:-48px 0;}.mejs-controls .mejs-captions-button .mejs-captions-selector{visibility:hidden;position:absolute;bottom:26px;right:-10px;width:130px;height:100px;background:url(background.png);background:rgba(50,50,50,0.7);border:solid 1px transparent;padding:10px;overflow:hidden;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}.mejs-controls .mejs-captions-button .mejs-captions-selector ul{margin:0;padding:0;display:block;list-style-type:none!important;overflow:hidden;}.mejs-controls .mejs-captions-button .mejs-captions-selector ul li{margin:0 0 6px 0;padding:0;list-style-type:none!important;display:block;color:#fff;overflow:hidden;}.mejs-controls .mejs-captions-button .mejs-captions-selector ul li input{clear:both;float:left;margin:3px 3px 0 5px;}.mejs
 -controls .mejs-captions-button .mejs-captions-selector ul li label{width:100px;float:left;padding:4px 0 0 0;line-height:15px;font-family:helvetica,arial;font-size:10px;}.mejs-controls .mejs-captions-button .mejs-captions-translations{font-size:10px;margin:0 0 5px 0;}.mejs-chapters{position:absolute;top:0;left:0;-xborder-right:solid 1px #fff;width:10000px;z-index:1;}.mejs-chapters .mejs-chapter{position:absolute;float:left;background:#222;background:rgba(0,0,0,0.7);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(50,50,50,0.7)),to(rgba(0,0,0,0.7)));background:-webkit-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-moz-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-o-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-ms-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:linear-gradient(rgba(50,50,50,0.7),rgba(0,0,0,0.7));filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,startColo
 rstr=#323232,endColorstr=#000000);overflow:hidden;border:0;}.mejs-chapters .mejs-chapter .mejs-chapter-block{font-size:11px;color:#fff;padding:5px;display:block;border-right:solid 1px #333;border-bottom:solid 1px #333;cursor:pointer;}.mejs-chapters .mejs-chapter .mejs-chapter-block-last{border-right:none;}.mejs-chapters .mejs-chapter .mejs-chapter-block:hover{background:#666;background:rgba(102,102,102,0.7);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(102,102,102,0.7)),to(rgba(50,50,50,0.6)));background:-webkit-linear-gradient(top,rgba(102,102,102,0.7),rgba(50,50,50,0.6));background:-moz-linear-gradient(top,rgba(102,102,102,0.7),rgba(50,50,50,0.6));background:-o-linear-gradient(top,rgba(102,102,102,0.7),rgba(50,50,50,0.6));background:-ms-linear-gradient(top,rgba(102,102,102,0.7),rgba(50,50,50,0.6));background:linear-gradient(rgba(102,102,102,0.7),rgba(50,50,50,0.6));filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,startColorstr=#666666,endColorst
 r=#323232);}.mejs-chapters .mejs-chapter .mejs-chapter-block .ch-title{font-size:12px;font-weight:bold;display:block;white-space:nowrap;text-overflow:ellipsis;margin:0 0 3px 0;line-height:12px;}.mejs-chapters .mejs-chapter .mejs-chapter-block .ch-timespan{font-size:12px;line-height:12px;margin:3px 0 4px 0;display:block;white-space:nowrap;text-overflow:ellipsis;}.mejs-captions-layer{position:absolute;bottom:0;left:0;text-align:center;line-height:22px;font-size:12px;color:#fff;}.mejs-captions-layer a{color:#fff;text-decoration:underline;}.mejs-captions-layer[lang=ar]{font-size:20px;font-weight:normal;}.mejs-captions-position{position:absolute;width:100%;bottom:15px;left:0;}.mejs-captions-position-hover{bottom:45px;}.mejs-captions-text{padding:3px 5px;background:url(background.png);background:rgba(20,20,20,0.8);}.mejs-clear{clear:both;}.me-cannotplay a{color:#fff;font-weight:bold;}.me-cannotplay span{padding:15px;display:block;}.mejs-controls .mejs-loop-off button{background-po
 sition:-64px -16px;}.mejs-controls .mejs-loop-on button{background-position:-64px 0;}.mejs-controls .mejs-backlight-off button{background-position:-80px -16px;}.mejs-controls .mejs-backlight-on button{background-position:-80px 0;}.mejs-controls .mejs-picturecontrols-button{background-position:-96px 0;}.mejs-contextmenu{position:absolute;width:150px;padding:10px;border-radius:4px;top:0;left:0;background:#fff;border:solid 1px #999;z-index:1001;}.mejs-contextmenu .mejs-contextmenu-separator{height:1px;font-size:0;margin:5px 6px;background:#333;}.mejs-contextmenu .mejs-contextmenu-item{font-family:Helvetica,Arial;font-size:12px;padding:4px 6px;cursor:pointer;color:#333;}.mejs-contextmenu .mejs-contextmenu-item:hover{background:#2C7C91;color:#fff;}.mejs-controls .mejs-sourcechooser-button{position:relative;}.mejs-controls .mejs-sourcechooser-button button{background-position:-128px 0;}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector{visibility:hidden;positio
 n:absolute;bottom:26px;right:-10px;width:130px;height:100px;background:url(background.png);background:rgba(50,50,50,0.7);border:solid 1px transparent;padding:10px;overflow:hidden;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector ul{margin:0;padding:0;display:block;list-style-type:none!important;overflow:hidden;}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector ul li{margin:0 0 6px 0;padding:0;list-style-type:none!important;display:block;color:#fff;overflow:hidden;}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector ul li input{clear:both;float:left;margin:3px 3px 0 5px;}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector ul li label{width:100px;float:left;padding:4px 0 0 0;line-height:15px;font-family:helvetica,arial;font-size:10px;}.mejs-postroll-layer{position:absolute;bottom:0;left:0;width:100%;height:100%;background:url(background.
 png);background:rgba(50,50,50,0.7);z-index:1000;overflow:hidden;}.mejs-postroll-layer-content{width:100%;height:100%;}.mejs-postroll-close{position:absolute;right:0;top:0;background:url(background.png);background:rgba(50,50,50,0.7);color:#fff;padding:4px;z-index:100;cursor:pointer;}
</del><span class="cx">\ No newline at end of file
</span><ins>+.mejs-container{position:relative;background:#000;font-family:Helvetica,Arial;text-align:left;vertical-align:top;text-indent:0}.me-plugin{position:absolute}.mejs-embed,.mejs-embed body{width:100%;height:100%;margin:0;padding:0;background:#000;overflow:hidden}.mejs-container-fullscreen{position:fixed;left:0;top:0;right:0;bottom:0;overflow:hidden;z-index:1000}.mejs-container-fullscreen .mejs-mediaelement,.mejs-container-fullscreen video{width:100%;height:100%}.mejs-background{position:absolute;top:0;left:0}.mejs-mediaelement{position:absolute;top:0;left:0;width:100%;height:100%}.mejs-poster{position:absolute;top:0;left:0}.mejs-poster img{border:0;padding:0;border:0;display:block}.mejs-overlay{position:absolute;top:0;left:0}.mejs-overlay-play{cursor:pointer}.mejs-overlay-button{position:absolute;top:50%;left:50%;width:100px;height:100px;margin:-50px 0 0 -50px;background:url(bigplay.svg) no-repeat}.no-svg .mejs-overlay-button{background-image:url(bigplay.png)}.mejs-o
 verlay:hover .mejs-overlay-button{background-position:0 -100px}.mejs-overlay-loading{position:absolute;top:50%;left:50%;width:80px;height:80px;margin:-40px 0 0 -40px;background:#333;background:url(background.png);background:rgba(0,0,0,0.9);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(50,50,50,0.9)),to(rgba(0,0,0,0.9)));background:-webkit-linear-gradient(top,rgba(50,50,50,0.9),rgba(0,0,0,0.9));background:-moz-linear-gradient(top,rgba(50,50,50,0.9),rgba(0,0,0,0.9));background:-o-linear-gradient(top,rgba(50,50,50,0.9),rgba(0,0,0,0.9));background:-ms-linear-gradient(top,rgba(50,50,50,0.9),rgba(0,0,0,0.9));background:linear-gradient(rgba(50,50,50,0.9),rgba(0,0,0,0.9))}.mejs-overlay-loading span{display:block;width:80px;height:80px;background:transparent url(loading.gif) 50% 50% no-repeat}.mejs-container .mejs-controls{position:absolute;background:0;list-style-type:none;margin:0;padding:0;bottom:0;left:0;background:url(background.png);background:rgba(0,0,0,0.7);backgr
 ound:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(50,50,50,0.7)),to(rgba(0,0,0,0.7)));background:-webkit-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-moz-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-o-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-ms-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:linear-gradient(rgba(50,50,50,0.7),rgba(0,0,0,0.7));height:30px;width:100%}.mejs-container .mejs-controls div{list-style-type:none;background-image:none;display:block;float:left;margin:0;padding:0;width:26px;height:26px;font-size:11px;line-height:11px;background:0;font-family:Helvetica,Arial;border:0}.mejs-controls .mejs-button button{cursor:pointer;display:block;font-size:0;line-height:0;text-decoration:none;margin:7px 5px;padding:0;position:absolute;height:16px;width:16px;border:0;background:transparent url(controls.svg) no-repeat}.no-svg .mejs-controls .mejs-button button{background-image:url
 (controls.png)}.mejs-controls .mejs-button button:focus{outline:solid 1px yellow}.mejs-container .mejs-controls .mejs-time{color:#fff;display:block;height:17px;width:auto;padding:8px 3px 0 3px;overflow:hidden;text-align:center;padding:auto 4px;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}.mejs-container .mejs-controls .mejs-time span{font-size:11px;color:#fff;line-height:12px;display:block;float:left;margin:1px 2px 0 0;width:auto}.mejs-controls .mejs-play button{background-position:0 0}.mejs-controls .mejs-pause button{background-position:0 -16px}.mejs-controls .mejs-stop button{background-position:-112px 0}.mejs-controls div.mejs-time-rail{width:200px;padding-top:5px}.mejs-controls .mejs-time-rail span{display:block;position:absolute;width:180px;height:10px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;cursor:pointer}.mejs-controls .mejs-time-rail .mejs-time-total{margin:5px;background:#333;background:rgba(50,50,50,0
 .8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(30,30,30,0.8)),to(rgba(60,60,60,0.8)));background:-webkit-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-moz-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-o-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-ms-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:linear-gradient(rgba(30,30,30,0.8),rgba(60,60,60,0.8))}.mejs-controls .mejs-time-rail .mejs-time-buffering{width:100%;background-image:-o-linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent
 ));background-image:-webkit-linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-ms-linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);-webkit-background-size:15px 15px;-moz-background-size:15px 15px;-o-background-size:15px 15px;background-size:15px 15px;-webkit-animation:buffering-stripes 2s linear infinite;-moz-animation:buffering-stripes 2s linear infinite;-ms-animation:
 buffering-stripes 2s linear infinite;-o-animation:buffering-stripes 2s linear infinite;animation:buffering-stripes 2s linear infinite}@-webkit-keyframes buffering-stripes{from{background-position:0 0}to{background-position:30px 0}}@-moz-keyframes buffering-stripes{from{background-position:0 0}to{background-position:30px 0}}@-ms-keyframes buffering-stripes{from{background-position:0 0}to{background-position:30px 0}}@-o-keyframes buffering-stripes{from{background-position:0 0}to{background-position:30px 0}}@keyframes buffering-stripes{from{background-position:0 0}to{background-position:30px 0}}.mejs-controls .mejs-time-rail .mejs-time-loaded{background:#3caac8;background:rgba(60,170,200,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(44,124,145,0.8)),to(rgba(78,183,212,0.8)));background:-webkit-linear-gradient(top,rgba(44,124,145,0.8),rgba(78,183,212,0.8));background:-moz-linear-gradient(top,rgba(44,124,145,0.8),rgba(78,183,212,0.8));background:-o-linear-gradien
 t(top,rgba(44,124,145,0.8),rgba(78,183,212,0.8));background:-ms-linear-gradient(top,rgba(44,124,145,0.8),rgba(78,183,212,0.8));background:linear-gradient(rgba(44,124,145,0.8),rgba(78,183,212,0.8));width:0}.mejs-controls .mejs-time-rail .mejs-time-current{width:0;background:#fff;background:rgba(255,255,255,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(255,255,255,0.9)),to(rgba(200,200,200,0.8)));background:-webkit-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-moz-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-o-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-ms-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:linear-gradient(rgba(255,255,255,0.9),rgba(200,200,200,0.8))}.mejs-controls .mejs-time-rail .mejs-time-handle{display:none;position:absolute;margin:0;width:10px;background:#fff;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius
 :5px;cursor:pointer;border:solid 2px #333;top:-2px;text-align:center}.mejs-controls .mejs-time-rail .mejs-time-float{position:absolute;display:none;background:#eee;width:36px;height:17px;border:solid 1px #333;top:-26px;margin-left:-18px;text-align:center;color:#111}.mejs-controls .mejs-time-rail .mejs-time-float-current{margin:2px;width:30px;display:block;text-align:center;left:0}.mejs-controls .mejs-time-rail .mejs-time-float-corner{position:absolute;display:block;width:0;height:0;line-height:0;border:solid 5px #eee;border-color:#eee transparent transparent transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;top:15px;left:13px}.mejs-long-video .mejs-controls .mejs-time-rail .mejs-time-float{width:48px}.mejs-long-video .mejs-controls .mejs-time-rail .mejs-time-float-current{width:44px}.mejs-long-video .mejs-controls .mejs-time-rail .mejs-time-float-corner{left:18px}.mejs-controls .mejs-fullscreen-button button{background-position:-32px 0}.mejs-controls .
 mejs-unfullscreen button{background-position:-32px -16px}.mejs-controls .mejs-mute button{background-position:-16px -16px}.mejs-controls .mejs-unmute button{background-position:-16px 0}.mejs-controls .mejs-volume-button{position:relative}.mejs-controls .mejs-volume-button .mejs-volume-slider{display:none;height:115px;width:25px;background:url(background.png);background:rgba(50,50,50,0.7);-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;top:-115px;left:0;z-index:1;position:absolute;margin:0}.mejs-controls .mejs-volume-button:hover{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.mejs-controls .mejs-volume-button .mejs-volume-slider .mejs-volume-total{position:absolute;left:11px;top:8px;width:2px;height:100px;background:#ddd;background:rgba(255,255,255,0.5);margin:0}.mejs-controls .mejs-volume-button .mejs-volume-slider .mejs-volume-current{position:absolute;left:11px;top:8px;width:2px;height:100px;background:#ddd;backgrou
 nd:rgba(255,255,255,0.9);margin:0}.mejs-controls .mejs-volume-button .mejs-volume-slider .mejs-volume-handle{position:absolute;left:4px;top:-3px;width:16px;height:6px;background:#ddd;background:rgba(255,255,255,0.9);cursor:N-resize;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;margin:0}.mejs-controls div.mejs-horizontal-volume-slider{height:26px;width:60px;position:relative}.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total{position:absolute;left:0;top:11px;width:50px;height:8px;margin:0;padding:0;font-size:1px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background:#333;background:rgba(50,50,50,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(30,30,30,0.8)),to(rgba(60,60,60,0.8)));background:-webkit-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-moz-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-o-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60
 ,60,0.8));background:-ms-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:linear-gradient(rgba(30,30,30,0.8),rgba(60,60,60,0.8))}.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current{position:absolute;left:0;top:11px;width:50px;height:8px;margin:0;padding:0;font-size:1px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background:#fff;background:rgba(255,255,255,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(255,255,255,0.9)),to(rgba(200,200,200,0.8)));background:-webkit-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-moz-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-o-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-ms-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:linear-gradient(rgba(255,255,255,0.9),rgba(200,200,200,0.8))}.mejs-controls .mejs-horizontal-volume-slider .mejs-horiz
 ontal-volume-handle{display:none}.mejs-controls .mejs-captions-button{position:relative}.mejs-controls .mejs-captions-button button{background-position:-48px 0}.mejs-controls .mejs-captions-button .mejs-captions-selector{visibility:hidden;position:absolute;bottom:26px;right:-10px;width:130px;height:100px;background:url(background.png);background:rgba(50,50,50,0.7);border:solid 1px transparent;padding:10px;overflow:hidden;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.mejs-controls .mejs-captions-button .mejs-captions-selector ul{margin:0;padding:0;display:block;list-style-type:none!important;overflow:hidden}.mejs-controls .mejs-captions-button .mejs-captions-selector ul li{margin:0 0 6px 0;padding:0;list-style-type:none!important;display:block;color:#fff;overflow:hidden}.mejs-controls .mejs-captions-button .mejs-captions-selector ul li input{clear:both;float:left;margin:3px 3px 0 5px}.mejs-controls .mejs-captions-button .mejs-captions-selector ul li label{widt
 h:100px;float:left;padding:4px 0 0 0;line-height:15px;font-family:helvetica,arial;font-size:10px}.mejs-controls .mejs-captions-button .mejs-captions-translations{font-size:10px;margin:0 0 5px 0}.mejs-chapters{position:absolute;top:0;left:0;-xborder-right:solid 1px #fff;width:10000px;z-index:1}.mejs-chapters .mejs-chapter{position:absolute;float:left;background:#222;background:rgba(0,0,0,0.7);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(50,50,50,0.7)),to(rgba(0,0,0,0.7)));background:-webkit-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-moz-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-o-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-ms-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:linear-gradient(rgba(50,50,50,0.7),rgba(0,0,0,0.7));filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,startColorstr=#323232,endColorstr=#000000);overflow:hidden;border:0}.mejs-chapters .
 mejs-chapter .mejs-chapter-block{font-size:11px;color:#fff;padding:5px;display:block;border-right:solid 1px #333;border-bottom:solid 1px #333;cursor:pointer}.mejs-chapters .mejs-chapter .mejs-chapter-block-last{border-right:0}.mejs-chapters .mejs-chapter .mejs-chapter-block:hover{background:#666;background:rgba(102,102,102,0.7);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(102,102,102,0.7)),to(rgba(50,50,50,0.6)));background:-webkit-linear-gradient(top,rgba(102,102,102,0.7),rgba(50,50,50,0.6));background:-moz-linear-gradient(top,rgba(102,102,102,0.7),rgba(50,50,50,0.6));background:-o-linear-gradient(top,rgba(102,102,102,0.7),rgba(50,50,50,0.6));background:-ms-linear-gradient(top,rgba(102,102,102,0.7),rgba(50,50,50,0.6));background:linear-gradient(rgba(102,102,102,0.7),rgba(50,50,50,0.6));filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,startColorstr=#666666,endColorstr=#323232)}.mejs-chapters .mejs-chapter .mejs-chapter-block .ch-title{font-size:1
 2px;font-weight:bold;display:block;white-space:nowrap;text-overflow:ellipsis;margin:0 0 3px 0;line-height:12px}.mejs-chapters .mejs-chapter .mejs-chapter-block .ch-timespan{font-size:12px;line-height:12px;margin:3px 0 4px 0;display:block;white-space:nowrap;text-overflow:ellipsis}.mejs-captions-layer{position:absolute;bottom:0;left:0;text-align:center;line-height:22px;font-size:12px;color:#fff}.mejs-captions-layer a{color:#fff;text-decoration:underline}.mejs-captions-layer[lang=ar]{font-size:20px;font-weight:normal}.mejs-captions-position{position:absolute;width:100%;bottom:15px;left:0}.mejs-captions-position-hover{bottom:45px}.mejs-captions-text{padding:3px 5px;background:url(background.png);background:rgba(20,20,20,0.8)}.mejs-clear{clear:both}.me-cannotplay a{color:#fff;font-weight:bold}.me-cannotplay span{padding:15px;display:block}.mejs-controls .mejs-loop-off button{background-position:-64px -16px}.mejs-controls .mejs-loop-on button{background-position:-64px 0}.mejs-cont
 rols .mejs-backlight-off button{background-position:-80px -16px}.mejs-controls .mejs-backlight-on button{background-position:-80px 0}.mejs-controls .mejs-picturecontrols-button{background-position:-96px 0}.mejs-contextmenu{position:absolute;width:150px;padding:10px;border-radius:4px;top:0;left:0;background:#fff;border:solid 1px #999;z-index:1001}.mejs-contextmenu .mejs-contextmenu-separator{height:1px;font-size:0;margin:5px 6px;background:#333}.mejs-contextmenu .mejs-contextmenu-item{font-family:Helvetica,Arial;font-size:12px;padding:4px 6px;cursor:pointer;color:#333}.mejs-contextmenu .mejs-contextmenu-item:hover{background:#2c7c91;color:#fff}.mejs-controls .mejs-sourcechooser-button{position:relative}.mejs-controls .mejs-sourcechooser-button button{background-position:-128px 0}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector{visibility:hidden;position:absolute;bottom:26px;right:-10px;width:130px;height:100px;background:url(background.png);background:rg
 ba(50,50,50,0.7);border:solid 1px transparent;padding:10px;overflow:hidden;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector ul{margin:0;padding:0;display:block;list-style-type:none!important;overflow:hidden}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector ul li{margin:0 0 6px 0;padding:0;list-style-type:none!important;display:block;color:#fff;overflow:hidden}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector ul li input{clear:both;float:left;margin:3px 3px 0 5px}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector ul li label{width:100px;float:left;padding:4px 0 0 0;line-height:15px;font-family:helvetica,arial;font-size:10px}.mejs-postroll-layer{position:absolute;bottom:0;left:0;width:100%;height:100%;background:url(background.png);background:rgba(50,50,50,0.7);z-index:1000;overflow:hidden}.mejs-postroll-layer-content{width:100%;heigh
 t:100%}.mejs-postroll-close{position:absolute;right:0;top:0;background:url(background.png);background:rgba(50,50,50,0.7);color:#fff;padding:4px;z-index:100;cursor:pointer}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesversionphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/version.php (23959 => 23960)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/version.php        2013-04-10 22:44:29 UTC (rev 23959)
+++ trunk/wp-includes/version.php        2013-04-10 22:58:42 UTC (rev 23960)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @global string $wp_version
</span><span class="cx">  */
</span><del>-$wp_version = '3.6-beta1-23953';
</del><ins>+$wp_version = '3.6-beta1-23960';
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
</span></span></pre>
</div>
</div>

</body>
</html>