!function(m){vari,e,t,f=wp.customize;f.Setting=f.Value.extend({initialize:function(e,t,n){f.Value.prototype.initialize.call(this,t,n),this.id=e,this.transport=this.transport||"refresh",this._dirty=n.dirty||!1,this.bind(this.preview)},preview:function(){switch(this.transport){case"refresh":returnthis.previewer.refresh();case"postMessage":returnthis.previewer.send("setting",[this.id,this()])}}}),f.utils={},f.utils.bubbleChildValueChanges=function(n,e){m.each(e,function(e,t){n[t].bind(function(e,t){n.parent&&e!==t&&n.parent.trigger("change",n)})})},e=function(e){vart,n,i=this,o=function(){vare=i.extended(f.Panel)&&i.expanded&&i.expanded()?i.container.find("ul.control-panel-content"):i.extended(f.Section)&&i.expanded&&i.expanded()?i.container.find("ul.accordion-section-content"):i.container;(n=0===(n=e.find(".control-focus:first")).length?e.find("input, select, textarea, button, object, a[href], [tabindex]").filter(":visible").first():n).focus()};(e=e||{}).completeCallback?(t=e.completeCallback,e.completeCallback=function(){o(),t()}):e.completeCallback=o,i.expand?i.expand(e):e.completeCallback()},f.utils.prioritySort=function(e,t){returne.priority()===t.priority()&&"number"==typeofe.params.instanceNumber&&"number"==typeoft.params.instanceNumber?e.params.instanceNumber-t.params.instanceNumber:e.priority()-t.priority()},f.utils.isKeydownButNotEnterEvent=function(e){return"keydown"===e.type&&13!==e.which},f.utils.areElementListsEqual=function(e,t){returne.length===t.length&&-1===_.indexOf(_.map(_.zip(e,t),function(e){returnm(e[0]).is(e[1])}),!1)},i=f.Class.extend({defaultActiveArguments:{duration:"fast",completeCallback:m.noop},defaultExpandedArguments:{duration:"fast",completeCallback:m.noop},containerType:"container",defaults:{title:"",description:"",priority:100,type:"default",content:null,active:!0,instanceNumber:null},initialize:function(e,t){varn=this;n.id=e,(t=t||{}).params=_.defaults(t.params||{},n.defaults),m.extend(n,t),n.templateSelector="customize-"+n.containerType+"-"+n.params.type,n.container=m(n.params.content),0===n.container.length&&(n.container=m(n.getContainer())),n.deferred={embedded:newm.Deferred},n.priority=newf.Value,n.active=newf.Value,n.activeArgumentsQueue=[],n.expanded=newf.Value,n.expandedArgumentsQueue=[],n.active.bind(function(e){vart=n.activeArgumentsQueue.shift(),t=m.extend({},n.defaultActiveArguments,t);e=e&&n.isContextuallyActive(),n.onChangeActive(e,t)}),n.expanded.bind(function(e){vart=n.expandedArgumentsQueue.shift(),t=m.extend({},n.defaultExpandedArguments,t);n.onChangeExpanded(e,t)}),n.deferred.embedded.done(function(){n.attachEvents()}),f.utils.bubbleChildValueChanges(n,["priority","active"]),n.priority.set(n.params.priority),n.active.set(n.params.active),n.expanded.set(!1)},ready:function(){},_children:function(t,e){varn=this,i=[];returnf[e].each(function(e){e[t].get()===n.id&&i.push(e)}),i.sort(f.utils.prioritySort),i},isContextuallyActive:function(){thrownewError("Container.isContextuallyActive() must be overridden in a subclass.")},onChangeActive:function(e,t){varn,i,o=this;t.unchanged?t.completeCallback&&t.completeCallback():(n="resolved"===f.previewer.deferred.active.state()?t.duration:0,o.extended(f.Panel)&&(f.panel.each(function(e){e!==o&&e.expanded()&&(i=e,n=0)}),e||_.each(o.sections(),function(e){e.collapse({duration:0})})),m.contains(document,o.container[0])?e?o.container.stop(!0,!0).slideDown(n,t.completeCallback):o.expanded()?o.collapse({duration:n,completeCallback:function(){o.container.stop(!0,!0).slideUp(n,t.completeCallback)}}):o.container.stop(!0,!0).slideUp(n,t.completeCallback):(o.container.toggle(e),t.completeCallback&&t.completeCallback()),i&&i._recalculateTopMargin())},_toggleActive:function(e,t){returnt=t||{},e&&this.active.get()||!e&&!this.active.get()?(t.unchanged=!0,this.onChangeActive(this.active.get(),t),!1):(t.unchanged=!1,this.activeArgumentsQueue.push(t),this.active.set(e),!0)},activate:function(e){returnthis._toggleActive(!0,e)},deactivate:function(e){returnthis._toggleActive(!1,e)},onChangeExpanded:function(){thrownewError("Mus