window.wp=window.wp||{},function(o){var t,i=wp.customize;o.extend(o.support,{history:!(!window.history||!history.pushState),hashchange:"onhashchange"in window&&(void 0===document.documentMode||7').appendTo(this.body),this.bind("open",this.overlay.show),this.bind("close",this.overlay.hide),o("#wpbody").on("click",".load-customize",function(e){e.preventDefault(),t.link=o(this),t.open(t.link.attr("href"))}),o.support.history&&this.window.on("popstate",t.popstate),o.support.hashchange&&(this.window.on("hashchange",t.hashchange),this.window.triggerHandler("hashchange")))},popstate:function(e){e=e.originalEvent.state;e&&e.customize?t.open(e.customize):t.active&&t.close()},hashchange:function(){var e=window.location.toString().split("#")[1];e&&0===e.indexOf("wp_customize=on")&&t.open(t.settings.url+"?"+e),e||o.support.history||t.close()},beforeunload:function(){if(!t.saved())return t.settings.l10n.saveAlert},open:function(e){if(!this.active){if(t.settings.browser.mobile)return window.location=e;this.active=!0,this.body.addClass("customize-loading"),this.saved=new i.Value(!0),this.iframe=o("