/*! jQuery UI - v1.12.1 - 2016-09-14 * http://jqueryui.com * Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js * Copyright jQuery Foundation and other contributors; Licensed MIT */(function(e){typeof define=="function"&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){/*! * jQuery UI Widget 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Position 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/position/ *//*! * jQuery UI :data 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Disable Selection 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Effects 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery Color Animations v2.1.2 * https://github.com/jquery/jquery-color * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * Date: Wed Jan 16 08:47:09 2013 -0600 *//*! * jQuery UI Effects Blind 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Effects Bounce 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Effects Clip 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Effects Drop 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Effects Explode 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Effects Fade 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Effects Fold 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Effects Highlight 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Effects Size 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Effects Scale 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Effects Puff 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Effects Pulsate 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Effects Shake 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Effects Slide 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Effects Transfer 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Focusable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Form Reset Mixin 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Support for jQuery core 1.7.x 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * *//*! * jQuery UI Keycode 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Labels 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Scroll Parent 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Tabbable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Unique ID 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Accordion 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Menu 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Autocomplete 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Controlgroup 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Checkboxradio 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Button 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Datepicker 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Mouse 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Draggable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Resizable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Dialog 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Droppable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Progressbar 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Selectable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Selectmenu 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Slider 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Sortable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Spinner 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Tabs 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license *//*! * jQuery UI Tooltip 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */e.ui=e.ui||{},v=e.ui.version="1.12.1",h=0,l=Array.prototype.slice,e.cleanData=function(t){return function(n){var s,o,i;for(i=0;(o=n[i])!=null;i++)try{s=e._data(o,"events"),s&&s.remove&&e(o).triggerHandler("remove")}catch{}t(n)}}(e.cleanData),e.widget=function(t,n,s){var o,i,r,c,l={},a=t.split(".")[0];return t=t.split(".")[1],c=a+"-"+t,s||(s=n,n=e.Widget),e.isArray(s)&&(s=e.extend.apply(null,[{}].concat(s))),e.expr[":"][c.toLowerCase()]=function(t){return!!e.data(t,c)},e[a]=e[a]||{},i=e[a][t],o=e[a][t]=function(e,t){if(!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,i,{version:s.version,_proto:e.extend({},s),_childConstructors:[]}),r=new n,r.options=e.widget.extend({},r.options),e.each(s,function(t,s){if(!e.isFunction(s)){l[t]=s;return}l[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function o(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,i=this._superApply;return this._super=e,this._superApply=o,t=s.apply(this,arguments),this._super=n,this._superApply=i,t}}()}),o.prototype=e.widget.extend(r,{widgetEventPrefix:i?r.widgetEventPrefix||t:t},l,{constructor:o,namespace:a,widgetName:t,widgetFullName:c}),i?(e.each(i._childConstructors,function(t,n){var s=n.prototype;e.widget(s.namespace+"."+s.widgetName,o,n._proto)}),delete i._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var n,s,i=l.call(arguments,1),o=0,a=i.length;o",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=h++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},n!==this&&(e.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===n&&this.destroy()}}),this.document=e(n.style?n.ownerDocument:n.document||n),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,n){t._removeClass(n,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var s,o,i,a=t;if(arguments.length===0)return e.widget.extend({},this.options);if(typeof t=="string")if(a={},s=t.split("."),t=s.shift(),s.length){o=a[t]=e.widget.extend({},this.options[t]);for(i=0;i
"),i=t.children()[0];return e("body").append(t),s=i.offsetWidth,t.css("overflow","scroll"),n=i.offsetWidth,s===n&&(n=t[0].clientWidth),t.remove(),o=s-n},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),s=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),o=n==="scroll"||n==="auto"&&t.width0?"right":"center",vertical:f<0?"top":u>0?"bottom":"middle"};cn(t(u),t(f))?s.important="horizontal":s.important="vertical",o.using.call(this,e,s)}),a.offset(e.extend(i,{using:b}))})},e.ui.position={fit:{left:function(e,t){var l,a=t.within,o=a.isWindow?a.scrollLeft:a.offset.left,r=a.width,c=e.left-t.collisionPosition.marginLeft,s=o-c,i=c+t.collisionWidth-r-o;t.collisionWidth>r?s>0&&i<=0?(l=e.left+s+t.collisionWidth-r-o,e.left+=s-l):i>0&&s<=0?e.left=o:s>i?e.left=o+r-t.collisionWidth:e.left=o:s>0?e.left+=s:i>0?e.left-=i:e.left=n(e.left-c,e.left)},top:function(e,t){var l,r=t.within,o=r.isWindow?r.scrollTop:r.offset.top,a=t.within.height,c=e.top-t.collisionPosition.marginTop,s=o-c,i=c+t.collisionHeight-a-o;t.collisionHeight>a?s>0&&i<=0?(l=e.top+s+t.collisionHeight-a-o,e.top+=s-l):i>0&&s<=0?e.top=o:s>i?e.top=o+a-t.collisionHeight:e.top=o:s>0?e.top+=s:i>0?e.top-=i:e.top=n(e.top-c,e.top)}},flip:{left:function(e,n){var r,c,s=n.within,f=s.offset.left+s.scrollLeft,u=s.width,l=s.isWindow?s.scrollLeft:s.offset.left,h=e.left-n.collisionPosition.marginLeft,m=h-l,d=h+n.collisionWidth-u-l,o=n.my[0]==="left"?-n.elemWidth:n.my[0]==="right"?n.elemWidth:0,i=n.at[0]==="left"?n.targetWidth:n.at[0]==="right"?-n.targetWidth:0,a=-2*n.offset[0];m<0?(r=e.left+o+i+a+n.collisionWidth-u-f,(r<0||r0&&(c=e.left-n.collisionPosition.marginLeft+o+i+a-l,(c>0||t(c)0&&(r=e.top-n.collisionPosition.marginTop+a+i+o-c,(r>0||t(r)")[0],s=e.each;l.style.cssText="background-color:rgba(1,1,1,.5)",c.rgba=l.style.backgroundColor.indexOf("rgba")>-1,s(o,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}});function i(e,t,n){var s=d[t.type]||{};return e==null?n||!t.def?null:t.def:(e=s.floor?~~e:parseFloat(e),isNaN(e)?t.def:s.mod?(e+s.mod)%s.mod:0>e?0:s.maxr.mod/2?s+=r.mod:s-o>r.mod/2&&(s-=r.mod)),c[l]=i((o-s)*t+s,n))}),this[l](c)},blend:function(t){if(this._rgba[3]===1)return this;var s=this._rgba.slice(),o=s.pop(),i=n(t)._rgba;return n(e.map(s,function(e,t){return(1-o)*i[t]+o*e}))},toRgbaString:function(){var n="rgba(",t=e.map(this._rgba,function(e,t){return e??(t>2?1:0)});return t[3]===1&&(t.pop(),n="rgb("),n+t.join()+")"},toHslaString:function(){var n="hsla(",t=e.map(this.hsla(),function(e,t){return e==null&&(e=t>2?1:0),t&&t<3&&(e=Math.round(e*100)+"%"),e});return t[3]===1&&(t.pop(),n="hsl("),n+t.join()+")"},toHexString:function(t){var n=this._rgba.slice(),s=n.pop();return t&&n.push(~~(s*255)),"#"+e.map(n,function(e){return e=(e||0).toString(16),e.length===1?"0"+e:e}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}}),n.fn.parse.prototype=n.fn;function r(e,t,n){return n=(n+1)%1,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}o.hsla.to=function(e){if(e[0]==null||e[1]==null||e[2]==null)return[null,null,null,e[3]];var s,r,i=e[0]/255,n=e[1]/255,a=e[2]/255,u=e[3],o=Math.max(i,n,a),c=Math.min(i,n,a),t=o-c,l=o+c,d=l*.5;return c===o?s=0:i===o?s=60*(n-a)/t+360:n===o?s=60*(a-i)/t+120:s=60*(i-n)/t+240,t===0?r=0:d<=.5?r=t/l:r=t/(2-l),[Math.round(s)%360,r,d,u??1]},o.hsla.from=function(e){if(e[0]==null||e[1]==null||e[2]==null)return[null,null,null,e[3]];var s=e[0]/360,o=e[1],t=e[2],a=e[3],n=t<=.5?t*(1+o):t+o-t*o,i=2*t-n;return[Math.round(r(i,n,s+1/3)*255),Math.round(r(i,n,s)*255),Math.round(r(i,n,s-1/3)*255),a]},s(o,function(o,a){var c=a.props,r=a.cache,l=a.to,d=a.from;n.fn[o]=function(o){if(l&&!this[r]&&(this[r]=l(this._rgba)),o===t)return this[r].slice();var u,h=e.type(o),m=h==="array"||h==="object"?o:arguments,a=this[r].slice();return s(c,function(e,t){var n=m[h==="object"?e:t.idx];n==null&&(n=a[t.idx]),a[t.idx]=i(n,t)}),d?(u=n(d(a)),u[r]=a,u):n(a)},s(c,function(t,s){if(n.fn[t])return;n.fn[t]=function(n){var a,i=e.type(n),l=t==="alpha"?this._hsla?"hsla":"rgba":o,r=this[l](),c=r[s.idx];return i==="undefined"?c:(i==="function"&&(n=n.call(this,c),i=e.type(n)),n==null&&s.empty?this:(i==="string"&&(a=m.exec(n),a&&(n=c+parseFloat(a[2])*(a[1]==="+"?1:-1))),r[s.idx]=n,this[l](r)))}})}),n.hook=function(t){var o=t.split(" ");s(o,function(t,s){e.cssHooks[s]={set:function(t,o){var i,r,a="";if(o!=="transparent"&&(e.type(o)!=="string"||(r=u(o)))){if(o=n(r||o),!c.rgba&&o._rgba[3]!==1){for(i=s==="backgroundColor"?t.parentNode:t;(a===""||a==="transparent")&&i&&i.style;)try{a=e.css(i,"backgroundColor"),i=i.parentNode}catch{}o=o.blend(a&&a!=="transparent"?a:"_default")}o=o.toRgbaString()}try{t.style[s]=o}catch{}}},e.fx.step[s]=function(t){t.colorInit||(t.start=n(t.elem,s),t.end=n(t.end),t.colorInit=!0),e.cssHooks[s].set(t.elem,t.start.transition(t.end,t.pos))}})},n.hook(f),e.cssHooks.borderColor={expand:function(e){var t={};return s(["Top","Right","Bottom","Left"],function(n,s){t["border"+s+"Color"]=e}),t}},a=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(u),function(){var n=["add","remove","toggle"],s={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,n){e.fx.step[n]=function(e){(e.end!=="none"&&!e.setAttr||e.pos===1&&!e.setAttr)&&(u.style(e.elem,n,e.end),e.setAttr=!0)}});function t(t){var s,o,n=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,i={};if(n&&n.length&&n[0]&&n[n[0]])for(o=n.length;o--;)s=n[o],typeof n[s]=="string"&&(i[e.camelCase(s)]=n[s]);else for(s in n)typeof n[s]=="string"&&(i[s]=n[s]);return i}function o(t,n){var o,i,a={};for(o in n)i=n[o],t[o]!==i&&(s[o]||(e.fx.step[o]||!isNaN(parseFloat(i)))&&(a[o]=i));return a}e.fn.addBack||(e.fn.addBack=function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(s,i,a,r){var c=e.speed(i,a,r);return this.queue(function(){var a=e(this),l=a.attr("class")||"",i=c.children?a.find("*").addBack():a,i=i.map(function(){var n=e(this);return{el:n,start:t(this)}}),r=function(){e.each(n,function(e,t){s[t]&&a[t+"Class"](s[t])})};r(),i=i.map(function(){return this.end=t(this.el[0]),this.diff=o(this.start,this.end),this}),a.attr("class",l),i=i.map(function(){var n=this,t=e.Deferred(),s=e.extend({},c,{queue:!1,complete:function(){t.resolve(n)}});return this.el.animate(this.diff,s),t.promise()}),e.when.apply(e,i.get()).done(function(){r(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),c.complete.call(a[0])})})},e.fn.extend({addClass:function(t){return function(n,s,o,i){return s?e.effects.animateClass.call(this,{add:n},s,o,i):t.apply(this,arguments)}}(e.fn.addClass),removeClass:function(t){return function(n,s,o,i){return arguments.length>1?e.effects.animateClass.call(this,{remove:n},s,o,i):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(n,s,o,i,a){return typeof s=="boolean"||s===void 0?o?e.effects.animateClass.call(this,s?{add:n}:{remove:n},o,i,a):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:n},s,o,i)}}(e.fn.toggleClass),switchClass:function(t,n,s,o,i){return e.effects.animateClass.call(this,{add:n,remove:t},s,o,i)}})}(),function(){e.expr&&e.expr.filters&&e.expr.filters.animated&&(e.expr.filters.animated=function(t){return function(n){return!!e(n).data(c)||t(n)}}(e.expr.filters.animated)),e.uiBackCompat!==!1&&e.extend(e.effects,{save:function(e,t){for(var n=0,s=t.length;n").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),i={width:t.width(),height:t.height()},s=document.activeElement;try{s.id}catch{s=document.body}return t.wrap(o),(t[0]===s||e.contains(t[0],s))&&e(s).trigger("focus"),o=t.parent(),t.css("position")==="static"?(o.css({position:"relative"}),t.css({position:"relative"})):(e.extend(n,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,s){n[s]=t.css(s),isNaN(parseInt(n[s],10))&&(n[s]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(i),o.css(n).show()},removeWrapper:function(t){var n=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===n||e.contains(t[0],n))&&e(n).trigger("focus")),t}}),e.extend(e.effects,{version:"1.12.1",define:function(t,n,s){return s||(s=n,n="effect"),e.effects.effect[t]=s,e.effects.effect[t].mode=n,s},scaledDimensions:function(e,t,n){if(t===0)return{height:0,width:0,outerHeight:0,outerWidth:0};var s=n!=="horizontal"?(t||100)/100:1,o=n!=="vertical"?(t||100)/100:1;return{height:e.height()*o,width:e.width()*s,outerHeight:e.outerHeight()*o,outerWidth:e.outerWidth()*s}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,n){var s=e.queue();t>1&&s.splice.apply(s,[1,0].concat(s.splice(t,n))),e.dequeue()},saveStyle:function(e){e.data(d,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(d)||"",e.removeData(d)},mode:function(e,t){var n=e.is(":hidden");return t==="toggle"&&(t=n?"show":"hide"),(n?t==="hide":t==="show")&&(t="none"),t},getBaseline:function(e,t){var n,s;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=e[1]/t.width}return{x:s,y:n}},createPlaceholder:function(t){var n,s=t.css("position"),o=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(s)&&(s="absolute",n=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(r+"placeholder",n)),t.css({position:s,left:o.left,top:o.top}),n},removePlaceholder:function(e){var t=r+"placeholder",n=e.data(t);n&&(n.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,n,s,o){return o=o||{},e.each(n,function(e,n){var i=t.cssUnit(n);i[0]>0&&(o[n]=i[0]*s+i[1])}),o}});function t(t,n,s,o){return e.isPlainObject(t)&&(n=t,t=t.effect),t={effect:t},n==null&&(n={}),e.isFunction(n)&&(o=n,s=null,n={}),(typeof n=="number"||e.fx.speeds[n])&&(o=s,s=n,n={}),e.isFunction(s)&&(o=s,s=null),n&&e.extend(t,n),s=s||n.duration,t.duration=e.fx.off?0:typeof s=="number"?s:s in e.fx.speeds?e.fx.speeds[s]:e.fx.speeds._default,t.complete=o||n.complete,t}function n(t){return!!(!t||typeof t=="number"||e.fx.speeds[t])||typeof t=="string"&&!e.effects.effect[t]||!!e.isFunction(t)||typeof t=="object"&&!t.effect}e.fn.extend({effect:function(){var n=t.apply(this,arguments),a=e.effects.effect[n.effect],o=a.mode,r=n.queue,l=r||"fx",i=n.complete,s=n.mode,d=[],u=function(t){var i=e(this),n=e.effects.mode(i,s)||o;i.data(c,!0),d.push(n),o&&(n==="show"||n===o&&n==="hide")&&i.show(),(!o||n!=="none")&&e.effects.saveStyle(i),e.isFunction(t)&&t()};if(e.fx.off||!a)return s?this[s](n.duration,i):this.each(function(){i&&i.call(this)});function h(t){var r=e(this);function u(){r.removeData(c),e.effects.cleanUp(r),n.mode==="hide"&&r.hide(),l()}function l(){e.isFunction(i)&&i.call(r[0]),e.isFunction(t)&&t()}n.mode=d.shift(),e.uiBackCompat!==!1&&!o?(r.is(":hidden")?s==="hide":s==="show")?(r[s](),l()):a.call(r[0],n,l):n.mode==="none"?(r[s](),l()):a.call(r[0],n,u)}return r===!1?this.each(u).each(h):this.queue(l,u).queue(l,h)},show:function(e){return function(s){if(n(s))return e.apply(this,arguments);var o=t.apply(this,arguments);return o.mode="show",this.effect.call(this,o)}}(e.fn.show),hide:function(e){return function(s){if(n(s))return e.apply(this,arguments);var o=t.apply(this,arguments);return o.mode="hide",this.effect.call(this,o)}}(e.fn.hide),toggle:function(e){return function(s){if(n(s)||typeof s=="boolean")return e.apply(this,arguments);var o=t.apply(this,arguments);return o.mode="toggle",this.effect.call(this,o)}}(e.fn.toggle),cssUnit:function(t){var n=this.css(t),s=[];return e.each(["em","px","%","pt"],function(e,t){n.indexOf(t)>0&&(s=[parseFloat(n),t])}),s},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):s(this.css("clip"),this)},transfer:function(t,n){var o=e(this),s=e(t.to),i=s.css("position")==="fixed",a=e("body"),r=i?a.scrollTop():0,c=i?a.scrollLeft():0,l=s.offset(),u={top:l.top-r,left:l.left-c,height:s.innerHeight(),width:s.innerWidth()},d=o.offset(),h=e("
").appendTo("body").addClass(t.className).css({top:d.top-r,left:d.left-c,height:o.innerHeight(),width:o.innerWidth(),position:i?"fixed":"absolute"}).animate(u,t.duration,t.easing,function(){h.remove(),e.isFunction(n)&&n()})}});function s(e,t){var s=t.outerWidth(),o=t.outerHeight(),i=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,n=i.exec(e)||["",0,s,o,0];return{top:parseFloat(n[1])||0,right:n[2]==="auto"?s:parseFloat(n[2]),bottom:n[3]==="auto"?o:parseFloat(n[3]),left:parseFloat(n[4])||0}}e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),typeof t.end=="string"&&(t.end=s(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,n){t[n]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return e===0||e===1?e:-Math.pow(2,8*(e-1))*Math.sin(((e-1)*80-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((t*3-2)/22-e,2)}}),e.each(t,function(t,n){e.easing["easeIn"+t]=n,e.easing["easeOut"+t]=function(e){return 1-n(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?n(e*2)/2:1-n(e*-2+2)/2}})}(),o=e.effects,X=e.effects.define("blind","hide",function(t,n){var a={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},o=e(this),r=t.direction||"up",c=o.cssClip(),s={clip:e.extend({},c)},i=e.effects.createPlaceholder(o);s.clip[a[r][0]]=s.clip[a[r][1]],t.mode==="show"&&(o.cssClip(s.clip),i&&i.css(e.effects.clipToBox(s)),s.clip=c),i&&i.animate(e.effects.clipToBox(s),t.duration,t.easing),o.animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:n})}),G=e.effects.define("bounce",function(t,n){var a,r,f,o=e(this),v=t.mode,c=v==="hide",g=v==="show",d=t.direction||"up",s=t.distance,m=t.times||5,p=m*2+(g||c?1:0),u=t.duration/p,l=t.easing,i=d==="up"||d==="down"?"top":"left",h=d==="up"||d==="left",b=0,j=o.queue().length;for(e.effects.createPlaceholder(o),f=o.css(i),s||(s=o[i==="top"?"outerHeight":"outerWidth"]()/3),g&&(a={opacity:1},a[i]=f,o.css("opacity",0).css(i,h?-s*2:s*2).animate(a,u,l)),c&&(s=s/Math.pow(2,m-1)),a={},a[i]=f;b").css({position:"absolute",visibility:"visible",left:-s*c,top:-i*r}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:c,height:r,left:f+(o?h*c:0),top:m+(o?u*r:0),opacity:o?0:1}).animate({left:f+(o?0:h*c),top:m+(o?0:u*r),opacity:o?1:0},t.duration||500,t.easing,b)}function j(){l.css({visibility:"visible"}),e(p).remove(),n()}}),b=e.effects.define("fade","toggle",function(t,n){var s=t.mode==="show";e(this).css("opacity",s?0:1).animate({opacity:s?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:n})}),j=e.effects.define("fold","hide",function(t,n){var o=e(this),u=t.mode,f=u==="show",m=u==="hide",r=t.size||15,h=/([0-9]+)%/.exec(r),p=!!t.horizFirst,a=p?["right","bottom"]:["bottom","right"],c=t.duration/2,l=e.effects.createPlaceholder(o),i=o.cssClip(),d={clip:e.extend({},i)},s={clip:e.extend({},i)},g=[i[a[0]],i[a[1]]],v=o.queue().length;h&&(r=parseInt(h[1],10)/100*g[m?0:1]),d.clip[a[0]]=r,s.clip[a[0]]=r,s.clip[a[1]]=0,f&&(o.cssClip(s.clip),l&&l.css(e.effects.clipToBox(s)),s.clip=i),o.queue(function(n){l&&l.animate(e.effects.clipToBox(d),c,t.easing).animate(e.effects.clipToBox(s),c,t.easing),n()}).animate(d,c,t.easing).animate(s,c,t.easing).queue(n),e.effects.unshift(o,v,4)}),y=e.effects.define("highlight","show",function(t,n){var s=e(this),o={backgroundColor:s.css("backgroundColor")};t.mode==="hide"&&(o.opacity=0),e.effects.saveStyle(s),s.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:n})}),_=e.effects.define("size",function(t,n){var s,u,v,o=e(this),f=["fontSize"],c=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],b=t.mode,m=b!=="effect",d=t.scale||"both",p=t.origin||["middle","center"],g=o.css("position"),h=o.position(),r=e.effects.scaledDimensions(o),a=t.from||r,i=t.to||e.effects.scaledDimensions(o,0);e.effects.createPlaceholder(o),b==="show"&&(v=a,a=i,i=v),s={from:{y:a.height/r.height,x:a.width/r.width},to:{y:i.height/r.height,x:i.width/r.width}},(d==="box"||d==="both")&&(s.from.y!==s.to.y&&(a=e.effects.setTransition(o,c,s.from.y,a),i=e.effects.setTransition(o,c,s.to.y,i)),s.from.x!==s.to.x&&(a=e.effects.setTransition(o,l,s.from.x,a),i=e.effects.setTransition(o,l,s.to.x,i))),(d==="content"||d==="both")&&s.from.y!==s.to.y&&(a=e.effects.setTransition(o,f,s.from.y,a),i=e.effects.setTransition(o,f,s.to.y,i)),p&&(u=e.effects.getBaseline(p,r),a.top=(r.outerHeight-a.outerHeight)*u.y+h.top,a.left=(r.outerWidth-a.outerWidth)*u.x+h.left,i.top=(r.outerHeight-i.outerHeight)*u.y+h.top,i.left=(r.outerWidth-i.outerWidth)*u.x+h.left),o.css(a),(d==="content"||d==="both")&&(c=c.concat(["marginTop","marginBottom"]).concat(f),l=l.concat(["marginLeft","marginRight"]),o.find("*[width]").each(function(){var n=e(this),o=e.effects.scaledDimensions(n),i={height:o.height*s.from.y,width:o.width*s.from.x,outerHeight:o.outerHeight*s.from.y,outerWidth:o.outerWidth*s.from.x},a={height:o.height*s.to.y,width:o.width*s.to.x,outerHeight:o.height*s.to.y,outerWidth:o.width*s.to.x};s.from.y!==s.to.y&&(i=e.effects.setTransition(n,c,s.from.y,i),a=e.effects.setTransition(n,c,s.to.y,a)),s.from.x!==s.to.x&&(i=e.effects.setTransition(n,l,s.from.x,i),a=e.effects.setTransition(n,l,s.to.x,a)),m&&e.effects.saveStyle(n),n.css(i),n.animate(a,t.duration,t.easing,function(){m&&e.effects.restoreStyle(n)})})),o.animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=o.offset();i.opacity===0&&o.css("opacity",a.opacity),m||(o.css("position",g==="static"?"relative":g).offset(t),e.effects.saveStyle(o)),n()}})}),w=e.effects.define("scale",function(t,n){var o=e(this),i=t.mode,a=parseInt(t.percent,10)||(parseInt(t.percent,10)===0?0:i!=="effect"?0:100),s=e.extend(!0,{from:e.effects.scaledDimensions(o),to:e.effects.scaledDimensions(o,a,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(s.from.opacity=1,s.to.opacity=0),e.effects.effect.size.call(this,s,n)}),O=e.effects.define("puff","hide",function(t,n){var s=e.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});e.effects.effect.scale.call(this,s,n)}),x=e.effects.define("pulsate","show",function(t,n){var s=e(this),c=t.mode,a=c==="show",d=c==="hide",u=a||d,i=(t.times||5)*2+(u?1:0),r=t.duration/i,o=0,l=1,h=s.queue().length;for((a||!s.is(":visible"))&&(s.css("opacity",0).show(),o=1);l0&&a.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(c)?(s=!t.disabled,s&&(r=e(t).closest("fieldset")[0],r&&(s=!r.disabled))):"a"===c?s=t.href||n:s=n,s&&e(t).is(":visible")&&A(e(t)))};function A(e){for(var t=e.css("visibility");t==="inherit";)e=e.parent(),t=e.css("visibility");return t!=="hidden"}e.extend(e.expr[":"],{focusable:function(t){return e.ui.focusable(t,e.attr(t,"tabindex")!=null)}}),S=e.ui.focusable,M=e.fn.form=function(){return typeof this[0].form=="string"?this.closest("form"):e(this[0].form)},F=e.ui.formResetMixin={_formResetHandler:function(){var t=e(this);setTimeout(function(){var n=t.data("ui-form-reset-instances");e.each(n,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),!this.form.length)return;var e=this.form.data("ui-form-reset-instances")||[];e.length||this.form.on("reset.ui-form-reset",this._formResetHandler),e.push(this),this.form.data("ui-form-reset-instances",e)},_unbindFormResetHandler:function(){if(!this.form.length)return;var t=this.form.data("ui-form-reset-instances");t.splice(e.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}},e.fn.jquery.substring(0,3)==="1.7"&&(e.each(["Width","Height"],function(t,n){var a=n==="Width"?["Left","Right"]:["Top","Bottom"],s=n.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};function i(t,n,s,o){return e.each(a,function(){n-=parseFloat(e.css(t,"padding"+this))||0,s&&(n-=parseFloat(e.css(t,"border"+this+"Width"))||0),o&&(n-=parseFloat(e.css(t,"margin"+this))||0)}),n}e.fn["inner"+n]=function(t){return t===void 0?o["inner"+n].call(this):this.each(function(){e(this).css(s,i(this,t)+"px")})},e.fn["outer"+n]=function(t,a){return typeof t!="number"?o["outer"+n].call(this,t):this.each(function(){e(this).css(s,i(this,t,!0,a)+"px")})}}),e.fn.addBack=function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}),T=e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},z=e.ui.escapeSelector=function(){var e=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;return function(t){return t.replace(e,"\\$1")}}(),D=e.fn.labels=function(){var t,n,s,o,i;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(n=this.eq(0).parents("label"),o=this.attr("id"),o&&(t=this.eq(0).parents().last(),i=t.add(t.length?t.siblings():this.siblings()),s="label[for='"+e.ui.escapeSelector(o)+"']",n=n.add(i.find(s).addBack(s))),this.pushStack(n))},N=e.fn.scrollParent=function(t){var n=this.css("position"),o=n==="absolute",i=t?/(auto|scroll|hidden)/:/(auto|scroll)/,s=this.parents().filter(function(){var t=e(this);return!(o&&t.css("position")==="static")&&i.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return n==="fixed"||!s.length?e(this[0].ownerDocument||document):s},L=e.extend(e.expr[":"],{tabbable:function(t){var n=e.attr(t,"tabindex"),s=n!=null;return(!s||n>=0)&&e.ui.focusable(t,s)}}),R=e.fn.extend({uniqueId:function(){var e=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")})}}),P=e.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=e(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),!t.collapsible&&(t.active===!1||t.active==null)&&(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():e()}},_createIcons:function(){var n,s,t=this.options.icons;t&&(n=e(""),this._addClass(n,"ui-accordion-header-icon","ui-icon "+t.header),n.prependTo(this.headers),s=this.active.children(".ui-accordion-header-icon"),this._removeClass(s,t.header)._addClass(s,null,t.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),this.options.heightStyle!=="content"&&e.css("height","")},_setOption:function(e,t){if(e==="active"){this._activate(t);return}e==="event"&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),e==="collapsible"&&!t&&this.options.active===!1&&this._activate(0),e==="icons"&&(this._destroyIcons(),t&&this._createIcons())},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!e)},_keydown:function(t){if(t.altKey||t.ctrlKey)return;var n=e.ui.keyCode,o=this.headers.length,i=this.headers.index(t.target),s=!1;switch(t.keyCode){case n.RIGHT:case n.DOWN:s=this.headers[(i+1)%o];break;case n.LEFT:case n.UP:s=this.headers[(i-1+o)%o];break;case n.SPACE:case n.ENTER:this._eventHandler(t);break;case n.HOME:s=this.headers[0];break;case n.END:s=this.headers[o-1];break}s&&(e(t.target).attr("tabIndex",-1),e(s).attr("tabIndex",0),e(s).trigger("focus"),t.preventDefault())},_panelKeyDown:function(t){t.keyCode===e.ui.keyCode.UP&&t.ctrlKey&&e(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),t.active===!1&&t.collapsible===!0||!this.headers.length?(t.active=!1,this.active=e()):t.active===!1?this._activate(0):this.active.length&&!e.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=e()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var t,n=this.options,s=n.heightStyle,o=this.element.parent();this.active=this._findActive(n.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var t=e(this),s=t.uniqueId().attr("id"),n=t.next(),o=n.uniqueId().attr("id");t.attr("aria-controls",o),n.attr("aria-labelledby",s)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(n.event),s==="fill"?(t=o.height(),this.element.siblings(":visible").each(function(){var n=e(this),s=n.css("position");if(s==="absolute"||s==="fixed")return;t-=n.outerHeight(!0)}),this.headers.each(function(){t-=e(this).outerHeight(!0)}),this.headers.next().each(function(){e(this).height(Math.max(0,t-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):s==="auto"&&(t=0,this.headers.next().each(function(){var n=e(this).is(":visible");n||e(this).show(),t=Math.max(t,e(this).css("height","").height()),n||e(this).hide()}).height(t))},_activate:function(t){var n=this._findActive(t)[0];if(n===this.active[0])return;n=n||this.active[0],this._eventHandler({target:n,currentTarget:n,preventDefault:e.noop})},_findActive:function(t){return typeof t=="number"?this.headers.eq(t):e()},_setupEvents:function(t){var n={keydown:"_keydown"};t&&e.each(t.split(" "),function(e,t){n[t]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,n),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var a,r,n=this.options,o=this.active,s=e(t.currentTarget),i=s[0]===o[0],c=i&&n.collapsible,d=c?e():s.next(),u=o.next(),l={oldHeader:o,oldPanel:u,newHeader:c?e():s,newPanel:d};if(t.preventDefault(),i&&!n.collapsible||this._trigger("beforeActivate",t,l)===!1)return;n.active=!c&&this.headers.index(s),this.active=i?e():s,this._toggle(l),this._removeClass(o,"ui-accordion-header-active","ui-state-active"),n.icons&&(a=o.children(".ui-accordion-header-icon"),this._removeClass(a,null,n.icons.activeHeader)._addClass(a,null,n.icons.header)),i||(this._removeClass(s,"ui-accordion-header-collapsed")._addClass(s,"ui-accordion-header-active","ui-state-active"),n.icons&&(r=s.children(".ui-accordion-header-icon"),this._removeClass(r,null,n.icons.header)._addClass(r,null,n.icons.activeHeader)),this._addClass(s.next(),"ui-accordion-content-active"))},_toggle:function(t){var s=t.newPanel,n=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=s,this.prevHide=n,this.options.animate?this._animate(s,n,t):(n.hide(),s.show(),this._toggleComplete(t)),n.attr({"aria-hidden":"true"}),n.prev().attr({"aria-selected":"false","aria-expanded":"false"}),s.length&&n.length?n.prev().attr({tabIndex:-1,"aria-expanded":"false"}):s.length&&this.headers.filter(function(){return parseInt(e(this).attr("tabIndex"),10)===0}).attr("tabIndex",-1),s.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,t,n){var s,o,l,d=this,c=0,u=e.css("box-sizing"),h=e.length&&(!t.length||e.index()",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(t){var n=e(t.target),s=e(e.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){if(this.previousFilter)return;var s=e(t.target).closest(".ui-menu-item"),n=e(t.currentTarget);if(s[0]!==n[0])return;this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,n)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var n=this.active||this.element.find(this.options.items).eq(0);t||this.focus(e,n)},blur:function(t){this._delay(function(){var n=!e.contains(this.element[0],e.ui.safeActiveElement(this.document[0]));n&&this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),n=t.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),n.children().each(function(){var t=e(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var n,s,o,i,a=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:a=!1,o=this.previousFilter||"",i=!1,s=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),s===o?i=!0:s=o+s,n=this._filterMenuItems(s),n=i&&n.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):n,n.length||(s=String.fromCharCode(t.keyCode),n=this._filterMenuItems(s)),n.length?(this.focus(t,n),this.previousFilter=s,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&t.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,n,o,i,a,s=this,c=this.options.icons.submenu,r=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=r.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),n=t.prev(),o=e("").data("ui-menu-submenu-caret",!0);s._addClass(o,"ui-menu-icon","ui-icon "+c),n.attr("aria-haspopup","true").prepend(o),t.attr("aria-labelledby",n.attr("id"))}),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),o=r.add(this.element),t=o.find(this.options.items),t.not(".ui-menu-item").each(function(){var t=e(this);s._isDivider(t)&&s._addClass(t,"ui-menu-divider","ui-widget-content")}),n=t.not(".ui-menu-item, .ui-menu-divider"),a=n.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(a,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if(e==="icons"){var n=this.element.find(".ui-menu-icon");this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var n,s,o;this.blur(e,e&&e.type==="focus"),this._scrollIntoView(t),this.active=t.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),o=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(o,null,"ui-state-active"),e&&e.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay),n=t.children(".ui-menu"),n.length&&e&&/^mouse/.test(e.type)&&this._startOpening(n),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var n,s,o,i,a,r;this._hasScroll()&&(a=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,r=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,n=t.offset().top-this.activeMenu.offset().top-a-r,s=this.activeMenu.scrollTop(),o=this.activeMenu.height(),i=t.outerHeight(),n<0?this.activeMenu.scrollTop(s+n):n+i>o&&this.activeMenu.scrollTop(s+n-o+i))},blur:function(e,t){if(t||clearTimeout(this.timer),!this.active)return;this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null},_startOpening:function(e){if(clearTimeout(this.timer),e.attr("aria-hidden")!=="true")return;this.timer=this._delay(function(){this._close(),this._open(e)},this.delay)},_open:function(t){var n=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(t,n){clearTimeout(this.timer),this.timer=this._delay(function(){var s=n?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(t),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,n){var s;this.active&&(e==="first"||e==="last"?s=this.active[e==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1):s=this.active[e+"All"](".ui-menu-item").eq(0)),(!s||!s.length||!this.active)&&(s=this.activeMenu.find(this.options.items)[t]()),this.focus(n,s)},nextPage:function(t){var n,s,o;if(!this.active){this.next(t);return}if(this.isLastItem())return;this._hasScroll()?(s=this.active.offset().top,o=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return n=e(this),n.offset().top-s-o<0}),this.focus(t,n)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())},previousPage:function(t){var n,s,o;if(!this.active){this.next(t);return}if(this.isFirstItem())return;this._hasScroll()?(s=this.active.offset().top,o=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return n=e(this),n.offset().top-s+o>0}),this.focus(t,n)):this.focus(t,this.activeMenu.find(this.options.items).first())},_hasScroll:function(){return this.element.outerHeight()",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var t,n,s,o=this.element[0].nodeName.toLowerCase(),i=o==="textarea",a=o==="input";this.isMultiLine=i||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[i||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly")){t=!0,s=!0,n=!0;return}t=!1,s=!1,n=!1;var i=e.ui.keyCode;switch(o.keyCode){case i.PAGE_UP:t=!0,this._move("previousPage",o);break;case i.PAGE_DOWN:t=!0,this._move("nextPage",o);break;case i.UP:t=!0,this._keyEvent("previous",o);break;case i.DOWN:t=!0,this._keyEvent("next",o);break;case i.ENTER:this.menu.active&&(t=!0,o.preventDefault(),this.menu.select(o));break;case i.TAB:this.menu.active&&this.menu.select(o);break;case i.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(o),o.preventDefault());break;default:n=!0,this._searchTimeout(o);break}},keypress:function(s){if(t){t=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault();return}if(n)return;var o=e.ui.keyCode;switch(s.keyCode){case o.PAGE_UP:this._move("previousPage",s);break;case o.PAGE_DOWN:this._move("nextPage",s);break;case o.UP:this._keyEvent("previous",s);break;case o.DOWN:this._keyEvent("next",s);break}},input:function(e){if(s){s=!1,e.preventDefault();return}this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){if(this.cancelBlur){delete this.cancelBlur;return}clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=e("