!function(L,N){"use strict";var V=N(L),j=N(document),I=N("#wpadminbar"),M=N("#wpfooter");N(function(){var p,e,u=N("#postdivrich"),h=N("#wp-content-wrap"),m=N("#wp-content-editor-tools"),w=N(),H=N(),b=N("#ed_toolbar"),v=N("#content"),x=N('
'),y=N("#post-status-info"),C=N(),T=N(),B=N("#side-sortables"),S=N("#postbox-container-1"),O=N("#post-body"),z=L.wp.editor&&L.wp.editor.fullscreen,r=function(){},l=function(){},E=!1,k=!1,A=!1,R=!1,W=0,Y=56,K=20,U=300,o=h.hasClass("tmce-active")?"tinymce":"html",P=!!parseInt(L.getUserSetting("hidetb"),10),D={windowHeight:0,windowWidth:0,adminBarHeight:0,toolsHeight:0,menuBarHeight:0,visualTopHeight:0,textTopHeight:0,bottomHeight:0,statusBarHeight:0,sideSortablesHeight:0};function t(t){var e,o,i,n=jQuery.ui.keyCode,s=t.keyCode,f=document.createRange(),a=v[0].selectionStart,d=v[0].selectionEnd,c=x[0].firstChild;if(!a||!d||a===d){try{f.setStart(c,a),f.setEnd(c,d+1)}catch(t){}(i=f.getBoundingClientRect()).height&&(o=(e=i.top-10)+i.height+10,t=D.adminBarHeight+D.toolsHeight+D.textTopHeight,i=D.windowHeight-D.bottomHeight,e=g-D.toolsHeight-D.adminBarHeight&&e<=g-D.toolsHeight-D.adminBarHeight+l-n?(E=!0,m.css({position:"fixed",top:D.adminBarHeight,width:f}),i&&C.length&&C.css({position:"fixed",top:D.adminBarHeight+D.toolsHeight,width:f-2-(i?0:a.outerWidth()-a.width())}),a.css({position:"fixed",top:D.adminBarHeight+D.toolsHeight+D.menuBarHeight,width:f-2-(i?0:a.outerWidth()-a.width())})):(E||o)&&(e<=g-D.toolsHeight-D.adminBarHeight?(E=!1,m.css({position:"absolute",top:0,width:f}),i&&C.length&&C.css({position:"absolute",top:0,width:f-2}),a.css({position:"absolute",top:D.menuBarHeight,width:f-2-(i?0:a.outerWidth()-a.width())})):e>=g-D.toolsHeight-D.adminBarHeight+l-n&&(E=!1,m.css({position:"absolute",top:l-n,width:f}),i&&C.length&&C.css({position:"absolute",top:l-n,width:f-2}),a.css({position:"absolute",top:l-n+D.menuBarHeight,width:f-2-(i?0:a.outerWidth()-a.width())}))),(!k||o&&P)&&e+D.windowHeight<=r+l+D.bottomHeight+D.statusBarHeight+1?t&&0r+l+D.bottomHeight+D.statusBarHeight-1)&&(k=!1,T.add(y).attr("style",""),P||T.css("visibility","hidden"))):o&&(m.css({position:"absolute",top:0,width:f}),i&&C.length&&C.css({position:"absolute",top:0,width:f-2}),a.css({position:"absolute",top:D.menuBarHeight,width:f-2-(i?0:a.outerWidth()-a.width())}),T.add(y).attr("style","")),S.width()<300&&600B.height()+s+120&&D.windowHeightD.windowHeight||A||R?e+Y<=s?(B.attr("style",""),A=R=!1):W=e+Y&&(A=!0,B.css({position:"fixed",top:Y,bottom:""}))):(s-Y<=e?B.css({position:"fixed",top:Y}):B.attr("style",""),A=R=!1),W=e):(B.attr("style",""),A=R=!1),o&&(h.css({paddingTop:D.toolsHeight}),i?H.css({paddingTop:D.visualTopHeight+D.menuBarHeight}):(v.css({marginTop:D.textTopHeight}),x.width(f-20-2))))}function i(){X(),g()}function F(t){for(var e=1;e<6;e++)setTimeout(t,500*e)}function n(){L.pageYOffset&&130Y&&(R=!0,L.scrollBy(0,-1),g(),L.scrollBy(0,1)),g()}).on("wp-window-resized.editor-expand",function(){p&&!p.isHidden()?p.execCommand("wpAutoResize"):X()}),v.on("focus.editor-expand input.editor-expand propertychange.editor-expand",X),v.on("keyup.editor-expand",t),r(),z&&z.pubsub.subscribe("hidden",i),p&&(p.settings.wp_autoresize_on=!0,p.execCommand("wpAutoResizeOn"),p.isHidden()||p.execCommand("wpAutoResize")),p&&!p.isHidden()||X(),g(),j.trigger("editor-expand-on")}function s(){var t=L.getUserSetting("ed_size");L.pageYOffset&&130t&&L.scrollTo(L.pageXOffset,t-D.adminBarHeight),X(),g()},100),g()}function c(){P=!P}"content"===f.id&&((p=f).settings.autoresize_min_height=U,w=h.find(".mce-toolbar-grp"),H=h.find(".mce-edit-area"),T=h.find(".mce-statusbar"),C=h.find(".mce-menubar"),r=function(){f.on("keyup",o),f.on("show",s),f.on("hide",d),f.on("wp-toolbar-toggle",c),f.on("setcontent wp-autoresize wp-toolbar-toggle",g),f.on("undo redo",i),f.on("FullscreenStateChanged",n),V.off("scroll.mce-float-panels").on("scroll.mce-float-panels",e)},l=function(){f.off("keyup",o),f.off("show",s),f.off("hide",d),f.off("wp-toolbar-toggle",c),f.off("setcontent wp-autoresize wp-toolbar-toggle",g),f.off("undo redo",i),f.off("FullscreenStateChanged",n),V.off("scroll.mce-float-panels")},u.hasClass("wp-editor-expand")&&(r(),F(g)))}),u.hasClass("wp-editor-expand")&&(n(),h.hasClass("html-active")&&F(function(){g(),X()})),N("#adv-settings .editor-expand").show(),N("#editor-expand-toggle").on("change.editor-expand",function(){N(this).prop("checked")?(n(),L.setUserSetting("editor_expand","on")):(s(),L.setUserSetting("editor_expand","off"))}),L.editorExpand={on:n,off:s}}),N(function(){var o,i,t,n,s,f,a,d,c,u,r,l=N(document.body),g=N("#wpcontent"),p=N("#post-body-content"),e=N("#title"),h=N("#content"),m=N(document.createElement("DIV")),w=N("#edit-slug-box"),H=w.find("a").add(w.find("button")).add(w.find("input")),b=N("#adminmenuwrap"),v=(N(),N(),"on"===L.getUserSetting("editor_expand","on")),x=!!v&&"on"===L.getUserSetting("post_dfw"),y=0,C=0,T=20;function B(){(n=p.offset()).right=n.left+p.outerWidth(),n.bottom=n.top+p.outerHeight()}function S(){v||(v=!0,j.trigger("dfw-activate"),h.on("keydown.focus-shortcut",K))}function O(){v&&(E(),v=!1,j.trigger("dfw-deactivate"),h.off("keydown.focus-shortcut"))}function z(){!x&&v&&(x=!0,h.on("keydown.focus",A),e.add(h).on("blur.focus",R),A(),L.setUserSetting("post_dfw","on"),j.trigger("dfw-on"))}function E(){x&&(x=!1,e.add(h).off(".focus"),_(),p.off(".focus"),L.setUserSetting("post_dfw","off"),j.trigger("dfw-off"))}function k(){(x?E:z)()}function A(t){var e=t&&t.keyCode;27===e||87===e&&t.altKey&&t.shiftKey?_(t):t&&(t.metaKey||t.ctrlKey&&!t.altKey||t.altKey&&t.shiftKey||e&&(e<=47&&8!==e&&13!==e&&32!==e&&46!==e||91<=e&&e<=93||112<=e&&e<=135||144<=e&&e<=150||224<=e))||(o||(o=!0,clearTimeout(u),u=setTimeout(function(){m.show()},600),p.css("z-index",9998),m.on("mouseenter.focus",function(){B(),V.on("scroll.focus",function(){var t=L.pageYOffset;d&&a&&d!==t&&(an.bottom+T)&&_(),d=t})}).on("mouseleave.focus",function(){s=f=null,y=C=0,V.off("scroll.focus")}).on("mousemove.focus",function(t){var e=t.clientX,o=t.clientY,i=L.pageYOffset,t=L.pageXOffset;if(s&&f&&(e!==s||o!==f))if(o<=f&&on.bottom-i||e<=s&&en.right-t){if(y+=Math.abs(s-e),C+=Math.abs(f-o),(o<=n.top-T-i||o>=n.bottom+T-i||e<=n.left-T-t||e>=n.right+T-t)&&(10