Files

copied
Last update 2 months 1 week by Arnaud-Apu-Fanovard
Files0 - DATASHEET00 - LIENESP32-C3 Espressif Systems _ Mouser Belgique_files
..
1.560a1707e927ff25da07.chunk.js.téléchargement
12.0ce80e99217aaa963082.chunk.js.téléchargement
125438959.jpg
153508963.jpg
174695580.jpg
186245946(1).jpg
186245946.jpg
192264753.jpg
7.ceffb52fd15d9edebb86.chunk.js.téléchargement
973062653.html
AooPopupModal.js.téléchargement
AutoSuggestion.css
AutoSuggestionM4.js.téléchargement
CPNComponent.js.téléchargement
CPNComponent.min.css
CoreModule.js.téléchargement
CountdownClock.js.téléchargement
CustomerPartNumber.js.téléchargement
DataLayerUtils.js.téléchargement
DataTables.js.téléchargement
ESP32-C3_SPL.jpg
EmbeddedTargetModule.js.téléchargement
FlyoutMenuKeyboard.js.téléchargement
GlobalActionBar.js.téléchargement
HamburgerMenu_new.js.téléchargement
HdrProductsMenu.js.téléchargement
LivePerson.js.téléchargement
Minicart.js.téléchargement
ModalFocus.js.téléchargement
Neo4jBase.js.téléchargement
Pixels
Product.js.téléchargement
Product.min.css
ProductImage.js.téléchargement
ProductImagesModal.js.téléchargement
ProductPricing.js.téléchargement
QuickViewModal.js.téléchargement
QuickViewModal.min.css
SearchHistory.js.téléchargement
ShippingInstructions.min.css
SkipToMainContent.js.téléchargement
WebResponsiveDialogModule.js.téléchargement
XP8WW-5UC34-XF3N8-CFN7L-ZFYWG
XQxkB
_ProductImagesModal.min.css
activityi(1).html
activityi(2).html
activityi(3).html
activityi(4).html
activityi.html
analytics.js.téléchargement
angular.min.js.téléchargement
aoopopup.min.css
be.gif
bg-overlay.js.téléchargement
bootstrap.min.js.téléchargement
bootstrap3.3.7.min.css
colorbox.css
conditional-validation.js.téléchargement
dc_pre=CI_h1vfc2YgDFfdeQQIdaOkyTw
dc_pre=CNP04ffc2YgDFUFY9ggdh5IjAQ
default.js.téléchargement
dekAB
desktopEmbedded.js.téléchargement
destination
destination(1)
destination(2)
domUtils.js.téléchargement
ec.js.téléchargement
elqCfg.min.js.téléchargement
espressif.png
external.css
f(1).txt
f(2).txt
f.txt
fbevents.js.téléchargement
fs.js.téléchargement
gtm.js.téléchargement
headerFooterGA4.js.téléchargement
icon.php
insight.min.js.téléchargement
integrations
jQuery-menu-aim.js.téléchargement
jquery-3.5.1.min.js.téléchargement
jquery-ui-1.10.3.custom.min.css
jquery-ui-1.12.1-migration.js.téléchargement
jquery-ui.custom.css
jquery-ui.min.css
jquery.autoSuggestWithBaseParts.js.téléchargement
jquery.colorbox.js.téléchargement
jquery.dataTables.css
jquery.dataTables.js.téléchargement
jquery.dataTables_themeroller.css
jquery.hoverIntent.min.js.téléchargement
jquery.plugins2.js.téléchargement
jquery.validate-1.20.0.js.téléchargement
jquery.validate.customization.js.téléchargement
jquery.validate.unobtrusive-3.2.11.js.téléchargement
js
jsonp
knockout-3.5.1.js.téléchargement
latest.js.téléchargement
lazyloadevent.js.téléchargement
lazysizes.min.js.téléchargement
ls.noscript.min.js.téléchargement
ls.parent-fit.min.js.téléchargement
magic360.css
magic360.js.téléchargement
magiczoomplus.css
magiczoomplus.js.téléchargement
mouser-reg-logo-trim.png
otBannerSdk.js.téléchargement
otSDKStub.js.téléchargement
pixel.js.téléchargement
plugin.js.téléchargement
saved_resource
share-button.js.téléchargement
site.min.css
spinner.gif
storage.secure.min.html
storage.secure.min.js.téléchargement
surveylogicinstance.min.js.téléchargement
tag.js.téléchargement
tags.js.téléchargement
tcs.dhj
thickbox.css
ui-framework.js.téléchargement
validation.min.css
jquery-ui-1.12.1-migration.js.téléchargement
/*! 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||{},ue=e.ui.version="1.12.1",u=0,c=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),Array.isArray(s)&&(s=e.extend.apply(null,[{}].concat(s))),e.expr.pseudos[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(e,t){if(typeof t!="function"){l[e]=t;return}l[e]=function(){function s(){return n.prototype[e].apply(this,arguments)}function o(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,i=this._superApply;return this._super=s,this._superApply=o,e=t.apply(this,arguments),this._super=n,this._superApply=i,e}}()}),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=c.call(arguments,1),o=0,a=i.length;o<a;o++)for(n in i[o])s=i[o][n],i[o].hasOwnProperty(n)&&s!==void 0&&(e.isPlainObject(s)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],s):e.widget.extend({},s):t[n]=s);return t},e.widget.bridge=function(t,n){var s=n.prototype.widgetFullName||t;e.fn[t]=function(o){var r=typeof o=="string",a=c.call(arguments,1),i=this;return r?!this.length&&o==="instance"?i=void 0:this.each(function(){var n,r=e.data(this,s);if(o==="instance")return i=r,!1;if(!r)return e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+o+"'");if(typeof r[o]!="function"||o.charAt(0)==="_")return e.error("no such method '"+o+"' for "+t+" widget instance");if(n=r[o].apply(r,a),n!==r&&n!==void 0)return i=n&&n.jquery?i.pushStack(n.get()):n,!1}):(a.length&&(o=e.widget.extend.apply(null,[o].concat(a))),this.each(function(){var t=e.data(this,s);t?(t.option(o||{}),t._init&&t._init()):e.data(this,s,new n(o,this))})),i}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=u++,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<s.length-1;i++)o[s[i]]=o[s[i]]||{},o=o[s[i]];if(t=s.pop(),arguments.length===1)return o[t]===void 0?null:o[t];o[t]=n}else{if(arguments.length===1)return this.options[t]===void 0?null:this.options[t];a[t]=n}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return e==="classes"&&this._setOptionClasses(t),this.options[e]=t,e==="disabled"&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,s,o;for(n in t){if(s=this.classesElementLookup[n],t[n]===this.options.classes[n]||!s||!s.length)continue;o=e(s.get()),this._removeClass(s,n),o.addClass(this._classes({element:o,keys:n,classes:t,add:!0}))}},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var n=[],s=this;t=e.extend({element:this.element,classes:this.options.classes||{}},t);function o(o,i){var a,r;for(a=0;a<o.length;a++)r=s.classesElementLookup[o[a]]||e(),t.add?r=e(e.uniqueSort(r.get().concat(t.element.get()))):r=e(r.not(t.element).get()),s.classesElementLookup[o[a]]=r,n.push(o[a]),i&&t.classes[o[a]]&&n.push(t.classes[o[a]])}return this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&o(t.keys.match(/\S+/g)||[],!0),t.extra&&o(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,function(s,o){e.inArray(t.target,o)!==-1&&(n.classesElementLookup[s]=e(o.not(t.target).get()))})},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,s){s=typeof s=="boolean"?s:n;var o=typeof e=="string"||e===null,i={extra:o?t:n,keys:o?e:t,element:o?this.element:e,add:s};return i.element.toggleClass(this._classes(i),s),this},_on:function(t,n,s){var i,o=this;typeof t!="boolean"&&(s=n,n=t,t=!1),s?(n=i=e(n),this.bindings=this.bindings.add(n)):(s=n,n=this.element,i=this.widget()),e.each(s,function(s,a){function r(){if(!t&&(o.options.disabled===!0||e(this).hasClass("ui-state-disabled")))return;return(typeof a=="string"?o[a]:a).apply(o,arguments)}typeof a!="string"&&(r.guid=a.guid=a.guid||r.guid||e.guid++);var c=s.match(/^([\w:-]*)\s*(.*)$/),l=c[1]+o.eventNamespace,d=c[2];d?i.on(l,d,r):n.on(l,r)})},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n).off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){function s(){return(typeof e=="string"?n[e]:e).apply(n,arguments)}var n=this;return setTimeout(s,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,s){var o,i,a=this.options[t];if(s=s||{},n=e.Event(n),n.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],i=n.originalEvent,i)for(o in i)o in n||(n[o]=i[o]);return this.element.trigger(n,s),!(typeof a=="function"&&a.apply(this.element[0],[n].concat(s))===!1||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(s,o,i){typeof o=="string"&&(o={effect:o});var r,a=o?o===!0||typeof o=="number"?n:o.effect||n:t;o=o||{},typeof o=="number"&&(o={duration:o}),r=!e.isEmptyObject(o),o.complete=i,o.delay&&s.delay(o.delay),r&&e.effects&&e.effects.effect[a]?s[t](o):a!==t&&s[a]?s[a](o.duration,o.easing,i):s.queue(function(n){e(this)[t](),i&&i.call(s[0]),n()})}}),oe=e.widget,function(){var o,n=Math.max,t=Math.abs,i=/left|center|right/,a=/top|center|bottom/,r=/[+-]\d+(\.[\d]+)?%?/,c=/^\w+/,l=/%$/,u=e.fn.position;function d(e,t,n){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?n/100:1)]}function s(t,n){return parseInt(e.css(t,n),10)||0}function h(e){var t=e[0];return t.nodeType===9?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t!=null&&t.window?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}e.position={scrollbarWidth:function(){if(o!==void 0)return o;var n,s,t=e("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),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.width<t.element[0].scrollWidth,i=s==="scroll"||s==="auto"&&t.height<t.element[0].scrollHeight;return{width:i?e.position.scrollbarWidth():0,height:o?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var n=e(t||window),s=n[0]!=null&&n[0].window,o=!!n[0]&&n[0].nodeType===9,i=!s&&!o;return{element:n,isWindow:s,isDocument:o,offset:i?e(t).offset():{left:0,top:0},scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},e.fn.position=function(o){if(!o||!o.of)return u.apply(this,arguments);o=e.extend({},o);var l,m,f,p,g,j=e(o.of),_=e.position.getWithinInfo(o.within),w=e.position.getScrollInfo(_),v=(o.collision||"flip").split(" "),y={},b=h(j);return j[0].preventDefault&&(o.at="left top"),l=b.width,m=b.height,p=b.offset,f=e.extend({},p),e.each(["my","at"],function(){var t,n,e=(o[this]||"").split(" ");e.length===1&&(e=i.test(e[0])?e.concat(["center"]):a.test(e[0])?["center"].concat(e):["center","center"]),e[0]=i.test(e[0])?e[0]:"center",e[1]=a.test(e[1])?e[1]:"center",t=r.exec(e[0]),n=r.exec(e[1]),y[this]=[t?t[0]:0,n?n[0]:0],o[this]=[c.exec(e[0])[0],c.exec(e[1])[0]]}),v.length===1&&(v[1]=v[0]),o.at[0]==="right"?f.left+=l:o.at[0]==="center"&&(f.left+=l/2),o.at[1]==="bottom"?f.top+=m:o.at[1]==="center"&&(f.top+=m/2),g=d(y.at,l,m),f.left+=g[0],f.top+=g[1],this.each(function(){var h,b,a=e(this),r=a.outerWidth(),c=a.outerHeight(),O=s(this,"marginLeft"),x=s(this,"marginTop"),C=r+O+s(this,"marginRight")+w.width,E=c+x+s(this,"marginBottom")+w.height,i=e.extend({},f),u=d(y.my,a.outerWidth(),a.outerHeight());o.my[0]==="right"?i.left-=r:o.my[0]==="center"&&(i.left-=r/2),o.my[1]==="bottom"?i.top-=c:o.my[1]==="center"&&(i.top-=c/2),i.left+=u[0],i.top+=u[1],h={marginLeft:O,marginTop:x},e.each(["left","top"],function(t,n){e.ui.position[v[t]]&&e.ui.position[v[t]][n](i,{targetWidth:l,targetHeight:m,elemWidth:r,elemHeight:c,collisionPosition:h,collisionWidth:C,collisionHeight:E,offset:[g[0]+u[0],g[1]+u[1]],my:o.my,at:o.at,within:_,elem:a})}),o.using&&(b=function(e){var d=p.left-i.left,h=d+l-r,u=p.top-i.top,f=u+m-c,s={target:{element:j,left:p.left,top:p.top,width:l,height:m},element:{element:a,left:i.left,top:i.top,width:r,height:c},horizontal:h<0?"left":d>0?"right":"center",vertical:f<0?"top":u>0?"bottom":"middle"};l<r&&t(d+h)<l&&(s.horizontal="center"),m<c&&t(u+f)<m&&(s.vertical="middle"),n(t(d),t(h))>n(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 c,l,s=n.within,f=s.offset.left+s.scrollLeft,d=s.width,r=s.isWindow?s.scrollLeft:s.offset.left,u=e.left-n.collisionPosition.marginLeft,h=u-r,m=u+n.collisionWidth-d-r,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];h<0?(c=e.left+o+i+a+n.collisionWidth-d-f,(c<0||c<t(h))&&(e.left+=o+i+a)):m>0&&(l=e.left-n.collisionPosition.marginLeft+o+i+a-r,(l>0||t(l)<m)&&(e.left+=o+i+a))},top:function(e,n){var c,l,s=n.within,p=s.offset.top+s.scrollTop,m=s.height,r=s.isWindow?s.scrollTop:s.offset.top,h=e.top-n.collisionPosition.marginTop,d=h-r,u=h+n.collisionHeight-m-r,f=n.my[1]==="top",o=f?-n.elemHeight:n.my[1]==="bottom"?n.elemHeight:0,a=n.at[1]==="top"?n.targetHeight:n.at[1]==="bottom"?-n.targetHeight:0,i=-2*n.offset[1];d<0?(l=e.top+o+a+i+n.collisionHeight-m-p,(l<0||l<t(d))&&(e.top+=o+a+i)):u>0&&(c=e.top-n.collisionPosition.marginTop+o+a+i-r,(c>0||t(c)<u)&&(e.top+=o+a+i))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}}}();var ue,n,s,c,u,oe,r,g,v,j,y,_,w,O,x,E,k,A,S,M,F,T,z,D,N,L,R,P,H,I,B,V,$,W,U,K,q,Y,G,X,Q,Z,J,ee,te,ne,se,a,ie,ae,re,ce,le,de,he,me,fe,pe=e.ui.position,ge=e.extend(e.expr.pseudos||e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,s){return!!e.data(t,s[3])}}),ve=e.fn.extend({disableSelection:function(){var e="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(e+".ui-disableSelection",function(e){e.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}}),i="ui-effects-",l="ui-effects-style",d="ui-effects-animated",p=e;e.effects={effect:{}},function(e,t){var i,f="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",m=/^([-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)%\s*,\s*(\d+(?:\.\d+)?)%\s*,\s*(\d+(?:\.\d+)?)%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1]*2.55,e[2]*2.55,e[3]*2.55,e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)%\s*,\s*(\d+(?:\.\d+)?)%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],n=e.Color=function(t,n,s,o){return new e.Color.fn.parse(t,n,s,o)},o={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},c={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},l=n.support={},d=e("<p>")[0],s=e.each;d.style.cssText="background-color:rgba(1,1,1,.5)",l.rgba=d.style.backgroundColor.indexOf("rgba")>-1,s(o,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}});function a(e,t,n){var s=c[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.max<e?s.max:e)}function u(t){var a=n(),r=a._rgba=[];return t=t.toLowerCase(),s(h,function(e,n){var s,c=n.re.exec(t),l=c&&n.parse(c),i=n.space||"rgba";if(l)return s=a[i](l),a[o[i].cache]=s[o[i].cache],r=a._rgba=s._rgba,!1}),r.length?(r.join()==="0,0,0,0"&&e.extend(r,i.transparent),a):i[t]}n.fn=e.extend(n.prototype,{parse:function(r,c,l,d){if(r===t)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=e(r).css(c),c=t);var h=this,m=typeof r,f=this._rgba=[];if(c!==t&&(r=[r,c,l,d],m="array"),m==="string")return this.parse(u(r)||i._default);if(m==="array")return s(o.rgba.props,function(e,t){f[t.idx]=a(r[t.idx],t)}),this;if(m==="object")return r instanceof n?s(o,function(e,t){r[t.cache]&&(h[t.cache]=r[t.cache].slice())}):s(o,function(t,n){var o=n.cache;s(n.props,function(e,t){if(!h[o]&&n.to){if(e==="alpha"||r[e]==null)return;h[o]=n.to(h._rgba)}h[o][t.idx]=a(r[e],t,!0)}),h[o]&&e.inArray(null,h[o].slice(0,3))<0&&(h[o][3]=1,n.from&&(h._rgba=n.from(h[o])))}),this},is:function(e){var a=n(e),t=!0,i=this;return s(o,function(e,n){var r,o=a[n.cache];return o&&(r=i[n.cache]||n.to&&n.to(i._rgba)||[],s(n.props,function(e,n){if(o[n.idx]!=null)return t=o[n.idx]===r[n.idx],t})),t}),t},_space:function(){var e=[],t=this;return s(o,function(n,s){t[s.cache]&&e.push(n)}),e.pop()},transition:function(e,t){var i=n(e),d=i._space(),r=o[d],u=this.alpha()===0?n("transparent"):this,h=u[r.cache]||r.to(u._rgba),l=h.slice(),i=i[r.cache];return s(r.props,function(e,n){var d=n.idx,s=h[d],o=i[d],r=c[n.type]||{};if(o===null)return;s===null?l[d]=o:(r.mod&&(o-s>r.mod/2?s+=r.mod:s-o>r.mod/2&&(s-=r.mod)),l[d]=a((o-s)*t+s,n))}),this[d](l)},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 i,r,n=e[0]/255,s=e[1]/255,a=e[2]/255,d=e[3],o=Math.max(n,s,a),c=Math.min(n,s,a),t=o-c,l=o+c,u=l*.5;return c===o?i=0:n===o?i=60*(s-a)/t+360:s===o?i=60*(a-n)/t+120:i=60*(n-s)/t+240,t===0?r=0:u<=.5?r=t/l:r=t/(2-l),[Math.round(i)%360,r,u,d??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(e,o){var r=o.props,i=o.cache,c=o.to,l=o.from;n.fn[e]=function(e){if(c&&!this[i]&&(this[i]=c(this._rgba)),e===t)return this[i].slice();var d,u=typeof e,h=u==="array"||u==="object"?e:arguments,o=this[i].slice();return s(r,function(e,t){var n=h[u==="object"?e:t.idx];n==null&&(n=o[t.idx]),o[t.idx]=a(n,t)}),l?(d=n(l(o)),d[i]=o,d):n(o)},s(r,function(t,s){if(n.fn[t])return;n.fn[t]=function(n){var i,o=typeof n,c=t==="alpha"?this._hsla?"hsla":"rgba":e,a=this[c](),r=a[s.idx];return o==="undefined"?r:(o==="function"&&(n=n.call(this,r),o=typeof n),n==null&&s.empty?this:(o==="string"&&(i=m.exec(n),i&&(n=r+parseFloat(i[2])*(i[1]==="+"?1:-1))),a[s.idx]=n,this[c](a)))}})}),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"&&(typeof o!="string"||(r=u(o)))){if(o=n(r||o),!l.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}},i=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"}}(p),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)&&(p.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.pseudos&&e.expr.pseudos.animated&&(e.expr.pseudos.animated=function(t){return function(n){return!!e(n).data(d)||t(n)}}(e.expr.pseudos.animated)),e.uiBackCompat!==!1&&e.extend(e.effects,{save:function(e,t){for(var n=0,s=t.length;n<s;n++)t[n]!==null&&e.data(i+t[n],e[0].style[t[n]])},restore:function(e,t){for(var s,n=0,o=t.length;n<o;n++)t[n]!==null&&(s=e.data(i+t[n]),e.css(t[n],s))},setMode:function(e,t){return t==="toggle"&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var n={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},o=e("<div></div>").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(l,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(l)||"",e.removeData(l)},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(i+"placeholder",n)),t.css({position:s,left:o.left,top:o.top}),n},removePlaceholder:function(e){var t=i+"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={}),typeof n=="function"&&(o=n,s=null,n={}),(typeof n=="number"||e.fx.speeds[n])&&(o=s,s=n,n={}),typeof s=="function"&&(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]||typeof t=="function"||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,c=r||"fx",i=n.complete,s=n.mode,l=[],u=function(t){var i=e(this),n=e.effects.mode(i,s)||o;i.data(d,!0),l.push(n),o&&(n==="show"||n===o&&n==="hide")&&i.show(),(!o||n!=="none")&&e.effects.saveStyle(i),typeof t=="function"&&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(d),e.effects.cleanUp(r),n.mode==="hide"&&r.hide(),c()}function c(){typeof i=="function"&&i.call(r[0]),typeof t=="function"&&t()}n.mode=l.shift(),e.uiBackCompat!==!1&&!o?(r.is(":hidden")?s==="hide":s==="show")?(r[s](),c()):a.call(r[0],n,c):n.mode==="none"?(r[s](),c()):a.call(r[0],n,u)}return r===!1?this.each(u).each(h):this.queue(c,u).queue(c,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("<div class='ui-effects-transfer'></div>").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(),typeof n=="function"&&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}})}(),r=e.effects,Q=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})}),Y=e.effects.define("bounce",function(t,n){var a,r,m,o=e(this),v=t.mode,d=v==="hide",p=v==="show",l=t.direction||"up",s=t.distance,h=t.times||5,g=h*2+(p||d?1:0),u=t.duration/g,c=t.easing,i=l==="up"||l==="down"?"top":"left",f=l==="up"||l==="left",b=0,j=o.queue().length;for(e.effects.createPlaceholder(o),m=o.css(i),s||(s=o[i==="top"?"outerHeight":"outerWidth"]()/3),p&&(a={opacity:1},a[i]=m,o.css("opacity",0).css(i,f?-s*2:s*2).animate(a,u,c)),d&&(s=s/Math.pow(2,h-1)),a={},a[i]=m;b<h;b++)r={},r[i]=(f?"-=":"+=")+s,o.animate(r,u,c).animate(a,u,c),s=d?s*2:s/2;d&&(r={opacity:0},r[i]=(f?"-=":"+=")+s,o.animate(r,u,c)),o.queue(n),e.effects.unshift(o,j,g+1)}),q=e.effects.define("clip","hide",function(t,n){var o={},i=e(this),a=t.direction||"vertical",r=a==="both",c=r||a==="horizontal",l=r||a==="vertical",s=i.cssClip();o.clip={top:l?(s.bottom-s.top)/2:s.top,right:c?(s.right-s.left)/2:s.right,bottom:l?(s.bottom-s.top)/2:s.bottom,left:c?(s.right-s.left)/2:s.left},e.effects.createPlaceholder(i),t.mode==="show"&&(i.cssClip(o.clip),o.clip=s),i.animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:n})}),K=e.effects.define("drop","hide",function(t,n){var a,o=e(this),l=t.mode,d=l==="show",i=t.direction||"left",r=i==="up"||i==="down"?"top":"left",c=i==="up"||i==="left"?"-=":"+=",u=c==="+="?"-=":"+=",s={opacity:0};e.effects.createPlaceholder(o),a=t.distance||o[r==="top"?"outerHeight":"outerWidth"](!0)/2,s[r]=c+a,d&&(o.css(s),s[r]=u+a,s.opacity=1),o.animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:n})}),U=e.effects.define("explode","hide",function(t,n){var o,i,u,h,m,f,l=t.pieces?Math.round(Math.sqrt(t.pieces)):3,d=l,r=e(this),v=t.mode,s=v==="show",g=r.show().css("visibility","hidden").offset(),a=Math.ceil(r.outerWidth()/d),c=Math.ceil(r.outerHeight()/l),p=[];function b(){p.push(this),p.length===l*d&&j()}for(i=0;i<l;i++){h=g.top+i*c,f=i-(l-1)/2;for(o=0;o<d;o++)m=g.left+o*a,u=o-(d-1)/2,r.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*a,top:-i*c}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:a,height:c,left:m+(s?u*a:0),top:h+(s?f*c:0),opacity:s?0:1}).animate({left:m+(s?0:u*a),top:h+(s?0:f*c),opacity:s?1:0},t.duration||500,t.easing,b)}function j(){r.css({visibility:"visible"}),e(p).remove(),n()}}),$=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})}),H=e.effects.define("fold","hide",function(t,n){var o=e(this),u=t.mode,p=u==="show",m=u==="hide",r=t.size||15,h=/([0-9]+)%/.exec(r),f=!!t.horizFirst,a=f?["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,p&&(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)}),N=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})}),W=e.effects.define("size",function(t,n){var s,u,b,o=e(this),m=["fontSize"],c=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],v=t.mode,f=v!=="effect",d=t.scale||"both",g=t.origin||["middle","center"],p=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),v==="show"&&(b=a,a=i,i=b),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,m,s.from.y,a),i=e.effects.setTransition(o,m,s.to.y,i)),g&&(u=e.effects.getBaseline(g,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(m),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)),f&&e.effects.saveStyle(n),n.css(i),n.animate(a,t.duration,t.easing,function(){f&&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),f||(o.css("position",p==="static"?"relative":p).offset(t),e.effects.saveStyle(o)),n()}})}),j=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)}),y=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)}),_=e.effects.define("pulsate","show",function(t,n){var s=e(this),a=t.mode,r=a==="show",d=a==="hide",u=r||d,i=(t.times||5)*2+(u?1:0),c=t.duration/i,o=0,l=1,h=s.queue().length;for((r||!s.is(":visible"))&&(s.css("opacity",0).show(),o=1);l<i;l++)s.animate({opacity:o},c,t.easing),o=1-o;s.animate({opacity:o},c,t.easing),s.queue(n),e.effects.unshift(s,h,i+1)}),w=e.effects.define("shake",function(t,n){var m=1,s=e(this),i=t.direction||"left",a=t.distance||20,u=t.times||3,h=u*2+1,o=Math.round(t.duration/h),r=i==="up"||i==="down"?"top":"left",c=i==="up"||i==="left",l={},d={},f={},p=s.queue().length;for(e.effects.createPlaceholder(s),l[r]=(c?"-=":"+=")+a,d[r]=(c?"+=":"-=")+a*2,f[r]=(c?"-=":"+=")+a*2,s.animate(l,o,t.easing);m<u;m++)s.animate(d,o,t.easing).animate(f,o,t.easing);s.animate(d,o,t.easing).animate(l,o/2,t.easing).queue(n),e.effects.unshift(s,p,h+1)}),O=e.effects.define("slide","show",function(t,n){var r,c,o=e(this),l={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},d=t.mode,i=t.direction||"left",a=i==="up"||i==="down"?"top":"left",u=i==="up"||i==="left",h=t.distance||o[a==="top"?"outerHeight":"outerWidth"](!0),s={};e.effects.createPlaceholder(o),c=o.cssClip(),r=o.position()[a],s[a]=(u?-1:1)*h+r,s.clip=o.cssClip(),s.clip[l[i][1]]=s.clip[l[i][0]],d==="show"&&(o.cssClip(s.clip),o.css(a,s[a]),s.clip=c,s[a]=r),o.animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:n})}),e.uiBackCompat!==!1&&(r=e.effects.define("transfer",function(t,n){e(this).transfer(t,n)})),x=r,e.ui.focusable=function(t,n){var s,o,i,a,r,c=t.nodeName.toLowerCase();return"area"===c?(o=t.parentNode,i=o.name,!(!t.href||!i||o.nodeName.toLowerCase()!=="map")&&(a=e("img[usemap='#"+i+"']"),a.length>0&&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")&&C(e(t)))};function C(e){for(var t=e.css("visibility");t==="inherit";)e=e.parent(),t=e.css("visibility");return t!=="hidden"}e.extend(e.expr.pseudos||e.expr[":"],{focusable:function(t){return e.ui.focusable(t,e.attr(t,"tabindex")!=null)}}),E=e.ui.focusable,k=e.fn.form=function(){return typeof this[0].form=="string"?this.closest("form"):e(this[0].form)},A=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))}),S=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},M=e.ui.escapeSelector=function(){var e=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;return function(t){return t.replace(e,"\\$1")}}(),F=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))},T=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},z=e.extend(e.expr.pseudos||e.expr[":"],{tabbable:function(t){var n=e.attr(t,"tabindex"),s=n!=null;return(!s||n>=0)&&e.ui.focusable(t,s)}}),D=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")})}}),v=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("<span>"),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,r=0,u=e.css("box-sizing"),h=e.length&&(!t.length||e.index()<t.index()),a=this.options.animate||{},i=h&&a.down||a,c=function(){d._toggleComplete(n)};if(typeof i=="number"&&(o=i),typeof i=="string"&&(s=i),s=s||i.easing||a.easing,o=o||i.duration||a.duration,!t.length)return e.animate(this.showProps,o,s,c);if(!e.length)return t.animate(this.hideProps,o,s,c);l=e.show().outerHeight(),t.animate(this.hideProps,{duration:o,easing:s,step:function(e,t){t.now=Math.round(e)}}),e.hide().animate(this.showProps,{duration:o,easing:s,complete:c,step:function(e,n){n.now=Math.round(e),n.prop!=="height"?u==="content-box"&&(r+=n.now):d.options.heightStyle!=="content"&&(n.now=Math.round(l-t.outerHeight()-r),r=0)}})},_toggleComplete:function(e){var t=e.oldPanel,n=t.prev();this._removeClass(t,"ui-accordion-content-active"),this._removeClass(n,"ui-accordion-header-active")._addClass(n,"ui-accordion-header-collapsed"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._trigger("activate",null,e)}}),L=e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch{t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t},R=e.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",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("<span>").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()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,n)},_filterMenuItems:function(t){var n=t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),s=new RegExp("^"+n,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return s.test(e(this).children(".ui-menu-item-wrapper").text().trim())})}}),e.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",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("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==e.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(t,n){var s,o;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type))){this.menu.blur(),this.document.one("mousemove",function(){e(t.target).trigger(t.originalEvent)});return}o=n.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:o})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(o.value),s=n.item.attr("aria-label")||o.value,s&&s.trim().length&&(this.liveRegion.children().hide(),e("<div>").text(s).appendTo(this.liveRegion))},menuselect:function(t,n){var s=n.item.data("ui-autocomplete-item"),o=this.previous;this.element[0]!==e.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=o,this._delay(function(){this.previous=o,this.selectedItem=s})),!1!==this._trigger("select",t,{item:s})&&this._value(s.value),this.term=this._value(),this.close(t),this.selectedItem=s}}),this.liveRegion=e("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),e==="source"&&this._initSource(),e==="appendTo"&&this.menu.element.appendTo(this._appendTo()),e==="disabled"&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var n=this.menu.element[0];return t.target===this.element[0]||t.target===n||e.contains(n,t.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),(!t||!t[0])&&(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var n,s,t=this;Array.isArray(this.options.source)?(n=this.options.source,this.source=function(t,s){s(e.ui.autocomplete.filter(n,t.term))}):typeof this.options.source=="string"?(s=this.options.source,this.source=function(n,o){t.xhr&&t.xhr.abort(),t.xhr=e.ajax({url:s,data:n,dataType:"json",success:function(e){o(e)},error:function(){o([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),n=this.menu.element.is(":visible"),s=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;(!t||t&&!n&&!s)&&(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){if(e=e??this._value(),this.term=this._value(),e.length<this.options.minLength)return this.close(t);if(this._trigger("search",t)===!1)return;return this._search(e)},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return e.proxy(function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,function(t){return typeof t=="string"?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var n=this.menu.element.empty();this._renderMenu(n,t),this.isNewMenu=!0,this.menu.refresh(),n.show(),this._resizeMenu(),n.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,n){var s=this;e.each(n,function(e,n){s._renderItemData(t,n)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,n){return e("<li>").append(e("<div>").text(n.label)).appendTo(t)},_move:function(e,t){if(!this.menu.element.is(":visible")){this.search(null,t);return}if(this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)){this.isMultiLine||this._value(this.term),this.menu.blur();return}this.menu[e](t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){if(!e.length)return!1;var t=e.prop("contentEditable");return t==="inherit"?this._isContentEditable(e.parent()):t==="true"}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(t,n){var s=new RegExp(e.ui.autocomplete.escapeRegex(n),"i");return e.grep(t,function(e){return s.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var n;if(this._superApply(arguments),this.options.disabled||this.cancelSearch)return;t&&t.length?n=this.options.messages.results(t.length):n=this.options.messages.noResults,this.liveRegion.children().hide(),e("<div>").text(n).appendTo(this.liveRegion)}}),P=e.ui.autocomplete,g=/ui-corner-([a-z]){2,6}/g,I=e.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var t=this,n=[];e.each(this.options.items,function(s,o){var i,a={};if(!o)return;if(s==="controlgroupLabel"){i=t.element.find(o),i.each(function(){var t=e(this);if(t.children(".ui-controlgroup-label-contents").length)return;t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),t._addClass(i,null,"ui-widget ui-widget-content ui-state-default"),n=n.concat(i.get());return}if(!e.fn[s])return;t["_"+s+"Options"]?a=t["_"+s+"Options"]("middle"):a={classes:{}},t.element.find(o).each(function(){var c,o=e(this),i=o[s]("instance"),r=e.widget.extend({},a);if(s==="button"&&o.parent(".ui-spinner").length)return;i||(i=o[s]()[s]("instance")),i&&(r.classes=t._resolveClassesValues(r.classes,i)),o[s](r),c=o[s]("widget"),e.data(c[0],"ui-controlgroup-data",i||o[s]("instance")),n.push(c[0])})}),this.childWidgets=e(e.uniqueSort(n)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each(function(){var s=e(this),n=s.data("ui-controlgroup-data");n&&n[t]&&n[t]()})},_updateCornerClass:function(e,t){var n="ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all",s=this._buildSimpleOptions(t,"label").classes.label;this._removeClass(e,null,n),this._addClass(e,null,s)},_buildSimpleOptions:function(e,t){var n=this.options.direction==="vertical",s={classes:{}};return s.classes[t]={middle:"",first:"ui-corner-"+(n?"top":"left"),last:"ui-corner-"+(n?"bottom":"right"),only:"ui-corner-all"}[e],s},_spinnerOptions:function(e){var t=this._buildSimpleOptions(e,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(e){return this._buildSimpleOptions(e,"ui-button")},_checkboxradioOptions:function(e){return this._buildSimpleOptions(e,"ui-checkboxradio-label")},_selectmenuOptions:function(e){var t=this.options.direction==="vertical";return{width:!!t&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[e]}},_resolveClassesValues:function(t,n){var s={};return e.each(t,function(e){var o=n.options.classes[e]||"",o=o.replace(g,"").trim();s[e]=(o+" "+t[e]).replace(/\s+/g," ")}),s},_setOption:function(e,t){if(e==="direction"&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(e,t),e==="disabled"){this._callChildMethod(t?"disable":"enable");return}this.refresh()},refresh:function(){var t,n=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),this.options.direction==="horizontal"&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),t=this.childWidgets,this.options.onlyVisible&&(t=t.filter(":visible")),t.length&&(e.each(["first","last"],function(e,s){var i,o=t[s]().data("ui-controlgroup-data");o&&n["_"+o.widgetName+"Options"]?(i=n["_"+o.widgetName+"Options"](t.length===1?"only":s),i.classes=n._resolveClassesValues(i.classes,o),o.element[o.widgetName](i)):n._updateCornerClass(t[s](),s)}),this._callChildMethod("refresh"))}}),e.widget("ui.checkboxradio",[e.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,n,o=this,s=this._super()||{};return this._readType(),n=this.element.labels(),this.label=e(n[n.length-1]),this.label.length||e.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){o.originalLabel+=this.nodeType===3?e(this).text():this.outerHTML}),this.originalLabel&&(s.label=this.originalLabel),t=this.element[0].disabled,t!=null&&(s.disabled=t),s},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),this.options.disabled==null&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),this.type==="radio"&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,(t!=="input"||!/radio|checkbox/.test(this.type))&&e.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t,n=this.element[0].name,s="input[name='"+e.ui.escapeSelector(n)+"']";return n?(this.form.length?t=e(this.form[0].elements).filter(s):t=e(s).filter(function(){return e(this).form().length===0}),t.not(this.element)):e([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&this.type==="checkbox"&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),this.type==="radio"&&this._getRadioGroup().each(function(){var t=e(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,t){if(e==="label"&&!t)return;if(this._super(e,t),e==="disabled"){this._toggleClass(this.label,null,"ui-state-disabled",t),this.element[0].disabled=t;return}this.refresh()},_updateIcon:function(t){var n="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=e("<span>"),this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),this.type==="checkbox"?(n+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):n+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",n),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):this.icon!==void 0&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),this.iconSpace&&(e=e.not(this.iconSpace[0])),e.remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.label!==null&&this._updateLabel(),t!==this.options.disabled&&this._setOptions({disabled:t})}}]),B=e.ui.checkboxradio,e.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var e,t=this._super()||{};return this.isInput=this.element.is("input"),e=this.element[0].disabled,e!=null&&(t.disabled=e),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(t.label=this.originalLabel),t},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),this.options.disabled==null&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===e.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),!this.options.showLabel&&!this.title&&this.element.attr("title",this.options.label)},_updateIcon:function(t,n){var o=t!=="iconPosition",s=o?this.options.iconPosition:n,i=s==="top"||s==="bottom";this.icon?o&&this._removeClass(this.icon,null,this.options.icon):(this.icon=e("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),o&&this._addClass(this.icon,null,n),this._attachIcon(s),i?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(s))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(e){this.icon[/^(?:end|bottom)/.test(e)?"before":"after"](this.iconSpace)},_attachIcon:function(e){this.element[/^(?:end|bottom)/.test(e)?"append":"prepend"](this.icon)},_setOptions:function(e){var t=e.showLabel===void 0?this.options.showLabel:e.showLabel,n=e.icon===void 0?this.options.icon:e.icon;!t&&!n&&(e.showLabel=!0),this._super(e)},_setOption:function(e,t){e==="icon"&&(t?this._updateIcon(e,t):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),e==="iconPosition"&&this._updateIcon(e,t),e==="showLabel"&&(this._toggleClass("ui-button-icon-only",null,!t),this._updateTooltip()),e==="label"&&(this.isInput?this.element.val(t):(this.element.html(t),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(e,t),e==="disabled"&&(this._toggleClass(null,"ui-state-disabled",t),this.element[0].disabled=t,t&&this.element.blur())},refresh:function(){var e=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOptions({disabled:e}),this._updateTooltip()}}),e.uiBackCompat!==!1&&(e.widget("ui.button",e.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),!this.options.icon&&(this.options.icons.primary||this.options.icons.secondary)?this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"):this.options.icon&&(this.options.icons.primary=this.options.icon),this._super()},_setOption:function(e,t){if(e==="text"){this._super("showLabel",t);return}e==="showLabel"&&(this.options.text=t),e==="icon"&&(this.options.icons.primary=t),e==="icons"&&(t.primary?(this._super("icon",t.primary),this._super("iconPosition","beginning")):t.secondary&&(this._super("icon",t.secondary),this._super("iconPosition","end"))),this._superApply(arguments)}}),e.fn.button=function(t){return function(){return!this.length||this.length&&this[0].tagName!=="INPUT"||this.length&&this[0].tagName==="INPUT"&&this.attr("type")!=="checkbox"&&this.attr("type")!=="radio"?t.apply(this,arguments):(e.ui.checkboxradio||e.error("Checkboxradio widget missing"),arguments.length===0?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}}(e.fn.button),e.fn.buttonset=function(){return e.ui.controlgroup||e.error("Controlgroup widget missing"),arguments[0]==="option"&&arguments[1]==="items"&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):arguments[0]==="option"&&arguments[1]==="items"?this.controlgroup.apply(this,[arguments[0],"items.button"]):(typeof arguments[0]=="object"&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),V=e.ui.button,e.extend(e.ui,{datepicker:{version:"1.12.1"}});function b(e){for(var t,n;e.length&&e[0]!==document;){if(t=e.css("position"),(t==="absolute"||t==="relative"||t==="fixed")&&(n=parseInt(e.css("zIndex"),10),!isNaN(n)&&n!==0))return n;e=e.parent()}return 0}function f(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=m(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}e.extend(f.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return o(this._defaults,e||{}),this},_attachDatepicker:function(t,n){var s,o=t.nodeName.toLowerCase(),i=o==="div"||o==="span";t.id||(this.uuid+=1,t.id="dp"+this.uuid),s=this._newInst(e(t),i),s.settings=e.extend({},n||{}),o==="input"?this._connectDatepicker(t,s):i&&this._inlineDatepicker(t,s)},_newInst:function(t,n){var s=t[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:s,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?m(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,n){var s=e(t);if(n.append=e([]),n.trigger=e([]),s.hasClass(this.markerClassName))return;this._attachments(s,n),s.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(n),e.data(t,"datepicker",n),n.settings.disabled&&this._disableDatepicker(t)},_attachments:function(t,n){var s,o,i,a=this._get(n,"appendText"),r=this._get(n,"isRTL");n.append&&n.append.remove(),a&&(n.append=e("<span class='"+this._appendClass+"'>"+a+"</span>"),t[r?"before":"after"](n.append)),t.off("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),o=this._get(n,"showOn"),(o==="focus"||o==="both")&&t.on("focus",this._showDatepicker),(o==="button"||o==="both")&&(s=this._get(n,"buttonText"),i=this._get(n,"buttonImage"),n.trigger=e(this._get(n,"buttonImageOnly")?e("<img/>").addClass(this._triggerClass).attr({src:i,alt:s,title:s}):e("<button type='button'></button>").addClass(this._triggerClass).html(i?e("<img/>").attr({src:i,alt:s,title:s}):s)),t[r?"before":"after"](n.trigger),n.trigger.on("click",function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,s,o,i,n=new Date(2009,12-1,20),a=this._get(e,"dateFormat");a.match(/[DM]/)&&(s=function(e){o=0,i=0;for(t=0;t<e.length;t++)e[t].length>o&&(o=e[t].length,i=t);return i},n.setMonth(s(this._get(e,a.match(/MM/)?"monthNames":"monthNamesShort"))),n.setDate(s(this._get(e,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-n.getDay())),e.input.attr("size",this._formatDate(e,n).length)}},_inlineDatepicker:function(t,n){var s=e(t);if(s.hasClass(this.markerClassName))return;s.addClass(this.markerClassName).append(n.dpDiv),e.data(t,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(t),n.dpDiv.css("display","block")},_dialogDatepicker:function(t,n,s,i,a){var c,l,d,u,h,r=this._dialogInst;return r||(this.uuid+=1,c="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+c+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),r=this._dialogInst=this._newInst(this._dialogInput,!1),r.settings={},e.data(this._dialogInput[0],"datepicker",r)),o(r.settings,i||{}),n=n&&n.constructor===Date?this._formatDate(r,n):n,this._dialogInput.val(n),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(l=document.documentElement.clientWidth,d=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,h=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+u,d/2-150+h]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),r.settings.onSelect=s,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",r),this},_destroyDatepicker:function(t){var s,o=e(t),i=e.data(t,"datepicker");if(!o.hasClass(this.markerClassName))return;s=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),s==="input"?(i.append.remove(),i.trigger.remove(),o.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):(s==="div"||s==="span")&&o.removeClass(this.markerClassName).empty(),n===i&&(n=null)},_enableDatepicker:function(t){var n,s,o=e(t),i=e.data(t,"datepicker");if(!o.hasClass(this.markerClassName))return;n=t.nodeName.toLowerCase(),n==="input"?(t.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(n==="div"||n==="span")&&(s=o.children("."+this._inlineClass),s.children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e})},_disableDatepicker:function(t){var n,s,o=e(t),i=e.data(t,"datepicker");if(!o.hasClass(this.markerClassName))return;n=t.nodeName.toLowerCase(),n==="input"?(t.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(n==="div"||n==="span")&&(s=o.children("."+this._inlineClass),s.children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch{throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,n,s){var a,r,c,l,i=this._getInst(t);if(arguments.length===2&&typeof n=="string")return n==="defaults"?e.extend({},e.datepicker._defaults):i?n==="all"?e.extend({},i.settings):this._get(i,n):null;a=n||{},typeof n=="string"&&(a={},a[n]=s),i&&(this._curInst===i&&this._hideDatepicker(),l=this._getDateDatepicker(t,!0),r=this._getMinMaxDate(i,"min"),c=this._getMinMaxDate(i,"max"),o(i.settings,a),r!==null&&a.dateFormat!==void 0&&a.minDate===void 0&&(i.settings.minDate=this._formatDate(i,r)),c!==null&&a.dateFormat!==void 0&&a.maxDate===void 0&&(i.settings.maxDate=this._formatDate(i,c)),"disabled"in a&&(a.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),i),this._autoSize(i),this._setDate(i,l),this._updateAlternate(i),this._updateDatepicker(i))},_changeDatepicker:function(e,t,n){this._optionDatepicker(e,t,n)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var n=this._getInst(e);n&&(this._setDate(n,t),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(e,t){var n=this._getInst(e);return n&&!n.inline&&this._setDateFromField(n,t),n?this._getDate(n):null},_doKeyDown:function(t){var o,i,a,n=e.datepicker._getInst(t.target),s=!0,r=n.dpDiv.is(".ui-datepicker-rtl");if(n._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),s=!1;break;case 13:return i=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",n.dpDiv),i[0]&&e.datepicker._selectDay(t.target,n.selectedMonth,n.selectedYear,i[0]),o=e.datepicker._get(n,"onSelect"),o?(a=e.datepicker._formatDate(n),o.apply(n.input?n.input[0]:null,[a,n])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(n,"stepBigMonths"):-e.datepicker._get(n,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(n,"stepBigMonths"):+e.datepicker._get(n,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),s=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),s=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,r?+1:-1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(n,"stepBigMonths"):-e.datepicker._get(n,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),s=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,r?-1:+1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(n,"stepBigMonths"):+e.datepicker._get(n,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,+7,"D"),s=t.ctrlKey||t.metaKey;break;default:s=!1}else t.keyCode===36&&t.ctrlKey?e.datepicker._showDatepicker(this):s=!1;s&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var n,s,o=e.datepicker._getInst(t.target);if(e.datepicker._get(o,"constrainInput"))return n=e.datepicker._possibleChars(e.datepicker._get(o,"dateFormat")),s=String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||s<" "||!n||n.indexOf(s)>-1},_doKeyUp:function(t){var s,n=e.datepicker._getInst(t.target);if(n.input.val()!==n.lastVal)try{s=e.datepicker.parseDate(e.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,e.datepicker._getFormatConfig(n)),s&&(e.datepicker._setDateFromField(n),e.datepicker._updateAlternate(n),e.datepicker._updateDatepicker(n))}catch{}return!0},_showDatepicker:function(t){if(t=t.target||t,t.nodeName.toLowerCase()!=="input"&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t)return;var s,i,a,r,c,l,n=e.datepicker._getInst(t);if(e.datepicker._curInst&&e.datepicker._curInst!==n&&(e.datepicker._curInst.dpDiv.stop(!0,!0),n&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),r=e.datepicker._get(n,"beforeShow"),c=r?r.apply(t,[t,n]):{},c===!1)return;o(n.settings,c),n.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(n),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),s=!1,e(t).parents().each(function(){return s|=e(this).css("position")==="fixed",!s}),i={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(n),i=e.datepicker._checkOffset(n,i,s),n.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":s?"fixed":"absolute",display:"none",left:i.left+"px",top:i.top+"px"}),n.inline||(a=e.datepicker._get(n,"showAnim"),l=e.datepicker._get(n,"duration"),n.dpDiv.css("z-index",b(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[a]?n.dpDiv.show(a,e.datepicker._get(n,"showOptions"),l):n.dpDiv[a||"show"](a?l:null),e.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),e.datepicker._curInst=n)},_updateDatepicker:function(t){this.maxRows=4,n=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var s,o=this._getNumberOfMonths(t),i=o[1],r=17,a=t.dpDiv.find("."+this._dayOverClass+" a");a.length>0&&h.apply(a.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),i>1&&t.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",r*i+"em"),t.dpDiv[(o[0]!==1||o[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(s=t.yearshtml,setTimeout(function(){s===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),s=t.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,n,s){var o=t.dpDiv.outerWidth(),i=t.dpDiv.outerHeight(),l=t.input?t.input.outerWidth():0,r=t.input?t.input.outerHeight():0,a=document.documentElement.clientWidth+(s?0:e(document).scrollLeft()),c=document.documentElement.clientHeight+(s?0:e(document).scrollTop());return n.left-=this._get(t,"isRTL")?o-l:0,n.left-=s&&n.left===t.input.offset().left?e(document).scrollLeft():0,n.top-=s&&n.top===t.input.offset().top+r?e(document).scrollTop():0,n.left-=Math.min(n.left,n.left+o>a&&a>o?Math.abs(n.left+o-a):0),n.top-=Math.min(n.top,n.top+i>c&&c>i?Math.abs(i+r):0),n},_findPos:function(t){for(var n,s=this._getInst(t),o=this._get(s,"isRTL");t&&(t.type==="hidden"||t.nodeType!==1||e.expr.pseudos.hidden(t));)t=t[o?"previousSibling":"nextSibling"];return n=e(t).offset(),[n.left,n.top]},_hideDatepicker:function(t){var s,o,i,a,n=this._curInst;if(!n||t&&n!==e.data(t,"datepicker"))return;this._datepickerShowing&&(s=this._get(n,"showAnim"),i=this._get(n,"duration"),o=function(){e.datepicker._tidyDialog(n)},e.effects&&(e.effects.effect[s]||e.effects[s])?n.dpDiv.hide(s,e.datepicker._get(n,"showOptions"),i,o):n.dpDiv[s==="slideDown"?"slideUp":s==="fadeIn"?"fadeOut":"hide"](s?i:null,o),s||o(),this._datepickerShowing=!1,a=this._get(n,"onClose"),a&&a.apply(n.input?n.input[0]:null,[n.input?n.input.val():"",n]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(!e.datepicker._curInst)return;var n=e(t.target),s=e.datepicker._getInst(n[0]);(n[0].id!==e.datepicker._mainDivId&&n.parents("#"+e.datepicker._mainDivId).length===0&&!n.hasClass(e.datepicker.markerClassName)&&!n.closest("."+e.datepicker._triggerClass).length&&e.datepicker._datepickerShowing&&!(e.datepicker._inDialog&&e.blockUI)||n.hasClass(e.datepicker.markerClassName)&&e.datepicker._curInst!==s)&&e.datepicker._hideDatepicker()},_adjustDate:function(t,n,s){var i=e(t),o=this._getInst(i[0]);if(this._isDisabledDatepicker(i[0]))return;this._adjustInstDate(o,n+(s==="M"?this._get(o,"showCurrentAtPos"):0),s),this._updateDatepicker(o)},_gotoToday:function(t){var s,o=e(t),n=this._getInst(o[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(s=new Date,n.selectedDay=s.getDate(),n.drawMonth=n.selectedMonth=s.getMonth(),n.drawYear=n.selectedYear=s.getFullYear()),this._notifyChange(n),this._adjustDate(o)},_selectMonthYear:function(t,n,s){var i=e(t),o=this._getInst(i[0]);o["selected"+(s==="M"?"Month":"Year")]=o["draw"+(s==="M"?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(i)},_selectDay:function(t,n,s,o){var i,a=e(t);if(e(o).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0]))return;i=this._getInst(a[0]),i.selectedDay=i.currentDay=e("a",o).html(),i.selectedMonth=i.currentMonth=n,i.selectedYear=i.currentYear=s,this._selectDate(t,this._formatDate(i,i.currentDay,i.currentMonth,i.currentYear))},_clearDate:function(t){var n=e(t);this._selectDate(n,"")},_selectDate:function(t,n){var o,i=e(t),s=this._getInst(i[0]);n=n??this._formatDate(s),s.input&&s.input.val(n),this._updateAlternate(s),o=this._get(s,"onSelect"),o?o.apply(s.input?s.input[0]:null,[n,s]):s.input&&s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],typeof s.input[0]!="object"&&s.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var n,s,o,i=this._get(t,"altField");i&&(n=this._get(t,"altFormat")||this._get(t,"dateFormat"),s=this._getDate(t),o=this.formatDate(n,s,this._getFormatConfig(t)),e(i).val(o))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var n,t=new Date(e.getTime());return t.setDate(t.getDate()+4-(t.getDay()||7)),n=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t)/864e5)/7)+1},parseDate:function(t,n,s){if(t==null||n==null)throw"Invalid arguments";if(n=typeof n=="object"?n.toString():n+"",n==="")return null;var o,r,p,g,a=0,v=(s?s.shortYearCutoff:null)||this._defaults.shortYearCutoff,w=typeof v!="string"?v:(new Date).getFullYear()%100+parseInt(v,10),_=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,y=(s?s.dayNames:null)||this._defaults.dayNames,j=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,O=(s?s.monthNames:null)||this._defaults.monthNames,i=-1,c=-1,l=-1,f=-1,h=!1,u=function(e){var n=r+1<t.length&&t.charAt(r+1)===e;return n&&r++,n},d=function(e){var o=u(e),s=e==="@"?14:e==="!"?20:e==="y"&&o?4:e==="o"?3:2,i=e==="y"?s:1,r=new RegExp("^\\d{"+i+","+s+"}"),t=n.substring(a).match(r);if(!t)throw"Missing number at position "+a;return a+=t[0].length,parseInt(t[0],10)},b=function(t,s,o){var i=-1,r=e.map(u(t)?o:s,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(e.each(r,function(e,t){var s=t[1];if(n.substr(a,s.length).toLowerCase()===s.toLowerCase())return i=t[0],a+=s.length,!1}),i!==-1)return i+1;throw"Unknown name at position "+a},m=function(){if(n.charAt(a)!==t.charAt(r))throw"Unexpected literal at position "+a;a++};for(r=0;r<t.length;r++)if(h)t.charAt(r)==="'"&&!u("'")?h=!1:m();else switch(t.charAt(r)){case"d":l=d("d");break;case"D":b("D",_,y);break;case"o":f=d("o");break;case"m":c=d("m");break;case"M":c=b("M",j,O);break;case"y":i=d("y");break;case"@":o=new Date(d("@")),i=o.getFullYear(),c=o.getMonth()+1,l=o.getDate();break;case"!":o=new Date((d("!")-this._ticksTo1970)/1e4),i=o.getFullYear(),c=o.getMonth()+1,l=o.getDate();break;case"'":u("'")?m():h=!0;break;default:m()}if(a<n.length&&(p=n.substr(a),!/^\s+/.test(p)))throw"Extra/unparsed characters found in date: "+p;if(i===-1?i=(new Date).getFullYear():i<100&&(i+=(new Date).getFullYear()-(new Date).getFullYear()%100+(i<=w?0:-100)),f>-1){c=1,l=f;do{if(g=this._getDaysInMonth(i,c-1),l<=g)break;c++,l-=g}while(!0)}if(o=this._daylightSavingAdjust(new Date(i,c-1,l)),o.getFullYear()!==i||o.getMonth()+1!==c||o.getDate()!==l)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7,formatDate:function(e,t,n){if(!t)return"";var o,l=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,d=(n?n.dayNames:null)||this._defaults.dayNames,u=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,h=(n?n.monthNames:null)||this._defaults.monthNames,i=function(t){var n=o+1<e.length&&e.charAt(o+1)===t;return n&&o++,n},a=function(e,t,n){var s=""+t;if(i(e))for(;s.length<n;)s="0"+s;return s},c=function(e,t,n,s){return i(e)?s[t]:n[t]},s="",r=!1;if(t)for(o=0;o<e.length;o++)if(r)e.charAt(o)==="'"&&!i("'")?r=!1:s+=e.charAt(o);else switch(e.charAt(o)){case"d":s+=a("d",t.getDate(),2);break;case"D":s+=c("D",t.getDay(),l,d);break;case"o":s+=a("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":s+=a("m",t.getMonth()+1,2);break;case"M":s+=c("M",t.getMonth(),u,h);break;case"y":s+=i("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":s+=t.getTime();break;case"!":s+=t.getTime()*1e4+this._ticksTo1970;break;case"'":i("'")?s+="'":r=!0;break;default:s+=e.charAt(o)}return s},_possibleChars:function(e){var t,n="",s=!1,o=function(n){var s=t+1<e.length&&e.charAt(t+1)===n;return s&&t++,s};for(t=0;t<e.length;t++)if(s)e.charAt(t)==="'"&&!o("'")?s=!1:n+=e.charAt(t);else switch(e.charAt(t)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":o("'")?n+="'":s=!0;break;default:n+=e.charAt(t)}return n},_get:function(e,t){return e.settings[t]!==void 0?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()===e.lastVal)return;var i=this._get(e,"dateFormat"),s=e.lastVal=e.input?e.input.val():null,o=this._getDefaultDate(e),n=o,a=this._getFormatConfig(e);try{n=this.parseDate(i,s,a)||o}catch{s=t?"":s}e.selectedDay=n.getDate(),e.drawMonth=e.selectedMonth=n.getMonth(),e.drawYear=e.selectedYear=n.getFullYear(),e.currentDay=s?n.getDate():0,e.currentMonth=s?n.getMonth():0,e.currentYear=s?n.getFullYear():0,this._adjustInstDate(e)},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,n,s){var i=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},a=function(n){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),n,e.datepicker._getFormatConfig(t))}catch{}for(var r=(n.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,i=r.getFullYear(),a=r.getMonth(),s=r.getDate(),c=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,o=c.exec(n);o;){switch(o[2]||"d"){case"d":case"D":s+=parseInt(o[1],10);break;case"w":case"W":s+=parseInt(o[1],10)*7;break;case"m":case"M":a+=parseInt(o[1],10),s=Math.min(s,e.datepicker._getDaysInMonth(i,a));break;case"y":case"Y":i+=parseInt(o[1],10),s=Math.min(s,e.datepicker._getDaysInMonth(i,a));break}o=c.exec(n)}return new Date(i,a,s)},o=n==null||n===""?s:typeof n=="string"?a(n):typeof n=="number"?isNaN(n)?s:i(n):new Date(n.getTime()),o=o&&o.toString()==="Invalid Date"?s:o;return o&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,n){var o=!t,i=e.selectedMonth,a=e.selectedYear,s=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=s.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=s.getMonth(),e.drawYear=e.selectedYear=e.currentYear=s.getFullYear(),(i!==e.selectedMonth||a!==e.selectedYear)&&!n&&this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(o?"":this._formatDate(e))},_getDate:function(e){var t=!e.currentYear||e.input&&e.input.val()===""?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return t},_attachHandlers:function(t){var s=this._get(t,"stepMonths"),n="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(n,-s,"M")},next:function(){e.datepicker._adjustDate(n,+s,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(n)},selectDay:function(){return e.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(n,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(e){var n,o,r,c,l,d,u,m,f,g,v,b,j,y,_,w,O,C,E,k,A,S,M,F,T,z,D,L,R,P,H,I,V,U,K,G,X,Q,Z,x=new Date,B=this._daylightSavingAdjust(new Date(x.getFullYear(),x.getMonth(),x.getDate())),i=this._get(e,"isRTL"),ee=this._get(e,"showButtonPanel"),Y=this._get(e,"hideIfNoPrevNext"),N=this._get(e,"navigationAsDateFormat"),a=this._getNumberOfMonths(e),J=this._get(e,"showCurrentAtPos"),q=this._get(e,"stepMonths"),W=a[0]!==1||a[1]!==1,$=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),p=this._getMinMaxDate(e,"min"),h=this._getMinMaxDate(e,"max"),t=e.drawMonth-J,s=e.drawYear;if(t<0&&(t+=12,s--),h)for(v=this._daylightSavingAdjust(new Date(h.getFullYear(),h.getMonth()-a[0]*a[1]+1,h.getDate())),v=p&&v<p?p:v;this._daylightSavingAdjust(new Date(s,t,1))>v;)t--,t<0&&(t=11,s--);e.drawMonth=t,e.drawYear=s,l=this._get(e,"prevText"),l=N?this.formatDate(l,this._daylightSavingAdjust(new Date(s,t-q,1)),this._getFormatConfig(e)):l,T=this._canAdjustMonth(e,-1,s,t)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+l+"'><span class='ui-icon ui-icon-circle-triangle-"+(i?"e":"w")+"'>"+l+"</span></a>":Y?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+l+"'><span class='ui-icon ui-icon-circle-triangle-"+(i?"e":"w")+"'>"+l+"</span></a>",c=this._get(e,"nextText"),c=N?this.formatDate(c,this._daylightSavingAdjust(new Date(s,t+q,1)),this._getFormatConfig(e)):c,R=this._canAdjustMonth(e,+1,s,t)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+c+"'><span class='ui-icon ui-icon-circle-triangle-"+(i?"w":"e")+"'>"+c+"</span></a>":Y?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+c+"'><span class='ui-icon ui-icon-circle-triangle-"+(i?"w":"e")+"'>"+c+"</span></a>",b=this._get(e,"currentText"),P=this._get(e,"gotoCurrent")&&e.currentDay?$:B,b=N?this.formatDate(b,P,this._getFormatConfig(e)):b,I=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",K=ee?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(i?I:"")+(this._isInRange(e,P)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+b+"</button>":"")+(i?"":I)+"</div>":"",d=parseInt(this._get(e,"firstDay"),10),d=isNaN(d)?0:d,V=this._get(e,"showWeek"),G=this._get(e,"dayNames"),U=this._get(e,"dayNamesMin"),X=this._get(e,"monthNames"),Q=this._get(e,"monthNamesShort"),D=this._get(e,"beforeShowDay"),_=this._get(e,"showOtherMonths"),Z=this._get(e,"selectOtherMonths"),k=this._getDefaultDate(e),O="";for(g=0;g<a[0];g++){E="",this.maxRows=4;for(f=0;f<a[1];f++){if(H=this._daylightSavingAdjust(new Date(s,t,e.selectedDay)),m=" ui-corner-all",o="",W){if(o+="<div class='ui-datepicker-group",a[1]>1)switch(f){case 0:o+=" ui-datepicker-group-first",m=" ui-corner-"+(i?"right":"left");break;case a[1]-1:o+=" ui-datepicker-group-last",m=" ui-corner-"+(i?"left":"right");break;default:o+=" ui-datepicker-group-middle",m="";break}o+="'>"}o+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+m+"'>"+(/all|left/.test(m)&&g===0?i?R:T:"")+(/all|right/.test(m)&&g===0?i?T:R:"")+this._generateMonthYearHeader(e,t,s,p,h,g>0||f>0,X,Q)+"</div><table class='ui-datepicker-calendar'><thead><tr>",A=V?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"";for(r=0;r<7;r++)S=(r+d)%7,A+="<th scope='col'"+((r+d+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+G[S]+"'>"+U[S]+"</span></th>";o+=A+"</tr></thead><tbody>",M=this._getDaysInMonth(s,t),s===e.selectedYear&&t===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,M)),F=(this._getFirstDayOfMonth(s,t)-d+7)%7,w=Math.ceil((F+M)/7),z=W&&this.maxRows>w?this.maxRows:w,this.maxRows=z,n=this._daylightSavingAdjust(new Date(s,t,1-F));for(C=0;C<z;C++){o+="<tr>",L=V?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(n)+"</td>":"";for(r=0;r<7;r++)j=D?D.apply(e.input?e.input[0]:null,[n]):[!0,""],u=n.getMonth()!==t,y=u&&!Z||!j[0]||p&&n<p||h&&n>h,L+="<td class='"+((r+d+6)%7>=5?" ui-datepicker-week-end":"")+(u?" ui-datepicker-other-month":"")+(n.getTime()===H.getTime()&&t===e.selectedMonth&&e._keyEvent||k.getTime()===n.getTime()&&k.getTime()===H.getTime()?" "+this._dayOverClass:"")+(y?" "+this._unselectableClass+" ui-state-disabled":"")+(u&&!_?"":" "+j[1]+(n.getTime()===$.getTime()?" "+this._currentClass:"")+(n.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+((!u||_)&&j[2]?" title='"+j[2].replace(/'/g,"&#39;")+"'":"")+(y?"":" data-handler='selectDay' data-event='click' data-month='"+n.getMonth()+"' data-year='"+n.getFullYear()+"'")+">"+(u&&!_?"&#xa0;":y?"<span class='ui-state-default'>"+n.getDate()+"</span>":"<a class='ui-state-default"+(n.getTime()===B.getTime()?" ui-state-highlight":"")+(n.getTime()===$.getTime()?" ui-state-active":"")+(u?" ui-priority-secondary":"")+"' href='#'>"+n.getDate()+"</a>")+"</td>",n.setDate(n.getDate()+1),n=this._daylightSavingAdjust(n);o+=L+"</tr>"}t++,t>11&&(t=0,s++),o+="</tbody></table>"+(W?"</div>"+(a[0]>0&&f===a[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),E+=o}O+=E}return O+=K,e._keyEvent=!1,O},_generateMonthYearHeader:function(e,t,n,s,o,i,a,r){var c,l,h,m,f,p,j,y,g=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),b=this._get(e,"showMonthAfterYear"),d="<div class='ui-datepicker-title'>",u="";if(i||!g)u+="<span class='ui-datepicker-month'>"+a[t]+"</span>";else{j=s&&s.getFullYear()===n,y=o&&o.getFullYear()===n,u+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>";for(l=0;l<12;l++)(!j||l>=s.getMonth())&&(!y||l<=o.getMonth())&&(u+="<option value='"+l+"'"+(l===t?" selected='selected'":"")+">"+r[l]+"</option>");u+="</select>"}if(b||(d+=u+(i||!g||!v?"&#xa0;":"")),!e.yearshtml)if(e.yearshtml="",i||!v)d+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(m=this._get(e,"yearRange").split(":"),p=(new Date).getFullYear(),f=function(e){var t=e.match(/c[+-].*/)?n+parseInt(e.substring(1),10):e.match(/[+-].*/)?p+parseInt(e,10):parseInt(e,10);return isNaN(t)?p:t},c=f(m[0]),h=Math.max(c,f(m[1]||"")),c=s?Math.max(c,s.getFullYear()):c,h=o?Math.min(h,o.getFullYear()):h,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";c<=h;c++)e.yearshtml+="<option value='"+c+"'"+(c===n?" selected='selected'":"")+">"+c+"</option>";e.yearshtml+="</select>",d+=e.yearshtml,e.yearshtml=null}return d+=this._get(e,"yearSuffix"),b&&(d+=(i||!g||!v?"&#xa0;":"")+u),d+="</div>",d},_adjustInstDate:function(e,t,n){var o=e.selectedYear+(n==="Y"?t:0),i=e.selectedMonth+(n==="M"?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(o,i))+(n==="D"?t:0),s=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(o,i,a)));e.selectedDay=s.getDate(),e.drawMonth=e.selectedMonth=s.getMonth(),e.drawYear=e.selectedYear=s.getFullYear(),(n==="M"||n==="Y")&&this._notifyChange(e)},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),o=n&&t<n?n:t;return s&&o>s?s:o},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return t==null?[1,1]:typeof t=="number"?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,n,s){var i=this._getNumberOfMonths(e),o=this._daylightSavingAdjust(new Date(n,s+(t<0?t:i[0]*i[1]),1));return t<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(e,o)},_isInRange:function(e,t){var n,i,a=this._getMinMaxDate(e,"min"),r=this._getMinMaxDate(e,"max"),s=null,o=null,c=this._get(e,"yearRange");return c&&(n=c.split(":"),i=(new Date).getFullYear(),s=parseInt(n[0],10),o=parseInt(n[1],10),n[0].match(/[+-].*/)&&(s+=i),n[1].match(/[+-].*/)&&(o+=i)),(!a||t.getTime()>=a.getTime())&&(!r||t.getTime()<=r.getTime())&&(!s||t.getFullYear()>=s)&&(!o||t.getFullYear()<=o)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff"),t=typeof t!="string"?t:(new Date).getFullYear()%100+parseInt(t,10);return{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,s){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var o=t?typeof t=="object"?t:this._daylightSavingAdjust(new Date(s,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),o,this._getFormatConfig(e))}});function m(t){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",n,function(){e(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&e(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&e(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",n,h)}function h(){e.datepicker._isDisabledDatepicker(n.inline?n.dpDiv.parent()[0]:n.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&e(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&e(this).addClass("ui-datepicker-next-hover"))}function o(t,n){e.extend(t,n);for(var s in n)n[s]==null&&(t[s]=n[s]);return t}e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),e("#"+e.datepicker._mainDivId).length===0&&e("body").append(e.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return typeof t=="string"&&(t==="isDisabled"||t==="getDate"||t==="widget")?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n)):t==="option"&&arguments.length===2&&typeof arguments[1]=="string"?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n)):this.each(function(){typeof t=="string"?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(n)):e.datepicker._attachDatepicker(this,t)})},e.datepicker=new f,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.12.1",G=e.datepicker,X=e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),s=!1,e(document).on("mouseup",function(){s=!1}),Z=e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(s)return;this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var n=this,o=t.which===1,i=!!(typeof this.options.cancel=="string"&&t.target.nodeName)&&e(t.target).closest(this.options.cancel).length;return!!(!o||i||!this._mouseCapture(t))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(t)!==!1,!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),s=!0,!0))},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,s=!1,t.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),J=e.ui.plugin={add:function(t,n,s){var o,i=e.ui[t].prototype;for(o in s)i.plugins[o]=i.plugins[o]||[],i.plugins[o].push([n,s[o]])},call:function(e,t,n,s){var o,i=e.plugins[t];if(!i)return;if(!s&&(!e.element[0].parentNode||e.element[0].parentNode.nodeType===11))return;for(o=0;o<i.length;o++)e.options[i[o][0]]&&i[o][1].apply(e.element,n)}},ee=e.ui.safeBlur=function(t){t&&t.nodeName.toLowerCase()!=="body"&&e(t).trigger("blur")},e.widget("ui.draggable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){this.options.helper==="original"&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),e==="handle"&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging")){this.destroyOnClear=!0;return}this._removeHandleClassName(),this._mouseDestroy()},_mouseCapture:function(t){var n=this.options;return!(this.helper||n.disabled||e(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(n.iframeFix===!0?"iframe":n.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var n=e.ui.safeActiveElement(this.document[0]),s=e(t.target);if(s.closest(n).length)return;e.ui.safeBlur(n)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return e(this).css("position")==="fixed"}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var s=this._uiHash();if(this._trigger("drag",t,s)===!1)return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=s.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var s=this,n=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(n=e.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1),this.options.revert==="invalid"&&!n||this.options.revert==="valid"&&n||this.options.revert===!0||typeof this.options.revert=="function"&&this.options.revert.call(this.element,n)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){s._trigger("stop",t)!==!1&&s._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var s=this.options,o=typeof s.helper=="function",n=o?e(s.helper.apply(this.element[0],[t])):s.helper==="clone"?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo(s.appendTo==="parent"?this.element[0].parentNode:s.appendTo),o&&n[0]===this.element[0]&&this._setPositionRelative(),n[0]!==this.element[0]&&!/(fixed|absolute)/.test(n.css("position"))&&n.css("position","absolute"),n},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){typeof e=="string"&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),n=this.document[0];return this.cssPosition==="absolute"&&this.scrollParent[0]!==n&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition!=="relative")return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,i,s=this.options,o=this.document[0];if(this.relativeContainer=null,!s.containment){this.containment=null;return}if(s.containment==="window"){this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(s.containment==="document"){this.containment=[0,0,e(o).width()-this.helperProportions.width-this.margins.left,(e(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(s.containment.constructor===Array){this.containment=s.containment;return}if(s.containment==="parent"&&(s.containment=this.helper[0].parentNode),t=e(s.containment),n=t[0],!n)return;i=/(scroll|auto)/.test(t.css("overflow")),this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(i?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(i?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=t},_convertPositionTo:function(e,t){t||(t=this.position);var n=e==="absolute"?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-(this.cssPosition==="fixed"?-this.offset.scroll.top:s?0:this.offset.scroll.top)*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-(this.cssPosition==="fixed"?-this.offset.scroll.left:s?0:this.offset.scroll.left)*n}},_generatePosition:function(e,t){var n,o,i,c,s=this.options,l=this._isRootNode(this.scrollParent[0]),a=e.pageX,r=e.pageY;return(!l||!this.offset.scroll)&&(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(c=this.relativeContainer.offset(),n=[this.containment[0]+c.left,this.containment[1]+c.top,this.containment[2]+c.left,this.containment[3]+c.top]):n=this.containment,e.pageX-this.offset.click.left<n[0]&&(a=n[0]+this.offset.click.left),e.pageY-this.offset.click.top<n[1]&&(r=n[1]+this.offset.click.top),e.pageX-this.offset.click.left>n[2]&&(a=n[2]+this.offset.click.left),e.pageY-this.offset.click.top>n[3]&&(r=n[3]+this.offset.click.top)),s.grid&&(o=s.grid[1]?this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,r=n?o-this.offset.click.top>=n[1]||o-this.offset.click.top>n[3]?o:o-this.offset.click.top>=n[1]?o-s.grid[1]:o+s.grid[1]:o,i=s.grid[0]?this.originalPageX+Math.round((a-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,a=n?i-this.offset.click.left>=n[0]||i-this.offset.click.left>n[2]?i:i-this.offset.click.left>=n[0]?i-s.grid[0]:i+s.grid[0]:i),s.axis==="y"&&(a=this.originalPageX),s.axis==="x"&&(r=this.originalPageY)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:l?0:this.offset.scroll.top),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.offset.scroll.left:l?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,n,s){return s=s||this._uiHash(),e.ui.plugin.call(this,t,[n,s,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,n,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,n,s){var o=e.extend({},n,{item:s.element});s.sortables=[],e(s.options.connectToSortable).each(function(){var n=e(this).sortable("instance");n&&!n.options.disabled&&(s.sortables.push(n),n.refreshPositions(),n._trigger("activate",t,o))})},stop:function(t,n,s){var o=e.extend({},n,{item:s.element});s.cancelHelperRemoval=!1,e.each(s.sortables,function(){var e=this;e.isOver?(e.isOver=0,s.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,o))})},drag:function(t,n,s){e.each(s.sortables,function(){var i=!1,o=this;o.positionAbs=s.positionAbs,o.helperProportions=s.helperProportions,o.offset.click=s.offset.click,o._intersectsWith(o.containerCache)&&(i=!0,e.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&e.contains(o.element[0],this.element[0])&&(i=!1),i})),i?(o.isOver||(o.isOver=1,s._parent=n.helper.parent(),o.currentItem=n.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return n.helper[0]},t.target=o.currentItem[0],o._mouseCapture(t,!0),o._mouseStart(t,!0,!0),o.offset.click.top=s.offset.click.top,o.offset.click.left=s.offset.click.left,o.offset.parent.left-=s.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=s.offset.parent.top-o.offset.parent.top,s._trigger("toSortable",t),s.dropped=o.element,e.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,o.fromOutside=s),o.currentItem&&(o._mouseDrag(t),n.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",t,o._uiHash(o)),o._mouseStop(t,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),n.helper.appendTo(s._parent),s._refreshOffsets(t),n.position=s._generatePosition(t,!0),s._trigger("fromSortable",t),s.dropped=!1,e.each(s.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,n,s){var o=e("body"),i=s.options;o.css("cursor")&&(i._cursor=o.css("cursor")),o.css("cursor",i.cursor)},stop:function(t,n,s){var o=s.options;o._cursor&&e("body").css("cursor",o._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,n,s){var o=e(n.helper),i=s.options;o.css("opacity")&&(i._opacity=o.css("opacity")),o.css("opacity",i.opacity)},stop:function(t,n,s){var o=s.options;o._opacity&&e(n.helper).css("opacity",o._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&n.scrollParentNotHidden[0].tagName!=="HTML"&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,n,s){var o=s.options,r=!1,a=s.scrollParentNotHidden[0],i=s.document[0];a!==i&&a.tagName!=="HTML"?((!o.axis||o.axis!=="x")&&(s.overflowOffset.top+a.offsetHeight-t.pageY<o.scrollSensitivity?a.scrollTop=r=a.scrollTop+o.scrollSpeed:t.pageY-s.overflowOffset.top<o.scrollSensitivity&&(a.scrollTop=r=a.scrollTop-o.scrollSpeed)),(!o.axis||o.axis!=="y")&&(s.overflowOffset.left+a.offsetWidth-t.pageX<o.scrollSensitivity?a.scrollLeft=r=a.scrollLeft+o.scrollSpeed:t.pageX-s.overflowOffset.left<o.scrollSensitivity&&(a.scrollLeft=r=a.scrollLeft-o.scrollSpeed))):((!o.axis||o.axis!=="x")&&(t.pageY-e(i).scrollTop()<o.scrollSensitivity?r=e(i).scrollTop(e(i).scrollTop()-o.scrollSpeed):e(window).height()-(t.pageY-e(i).scrollTop())<o.scrollSensitivity&&(r=e(i).scrollTop(e(i).scrollTop()+o.scrollSpeed))),(!o.axis||o.axis!=="y")&&(t.pageX-e(i).scrollLeft()<o.scrollSensitivity?r=e(i).scrollLeft(e(i).scrollLeft()-o.scrollSpeed):e(window).width()-(t.pageX-e(i).scrollLeft())<o.scrollSensitivity&&(r=e(i).scrollLeft(e(i).scrollLeft()+o.scrollSpeed)))),r!==!1&&e.ui.ddmanager&&!o.dropBehaviour&&e.ui.ddmanager.prepareOffsets(s,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,n,s){var o=s.options;s.snapElements=[],e(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each(function(){var t=e(this),n=t.offset();this!==s.element[0]&&s.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:n.top,left:n.left})})},drag:function(t,n,s){var o,a,r,c,l,d,u,h,m,v,g=s.options,i=g.snapTolerance,f=n.offset.left,b=f+s.helperProportions.width,p=n.offset.top,j=p+s.helperProportions.height;for(o=s.snapElements.length-1;o>=0;o--){if(a=s.snapElements[o].left-s.margins.left,h=a+s.snapElements[o].width,l=s.snapElements[o].top-s.margins.top,m=l+s.snapElements[o].height,b<a-i||f>h+i||j<l-i||p>m+i||!e.contains(s.snapElements[o].item.ownerDocument,s.snapElements[o].item)){s.snapElements[o].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,t,e.extend(s._uiHash(),{snapItem:s.snapElements[o].item})),s.snapElements[o].snapping=!1;continue}g.snapMode!=="inner"&&(c=Math.abs(l-j)<=i,r=Math.abs(m-p)<=i,d=Math.abs(a-b)<=i,u=Math.abs(h-f)<=i,c&&(n.position.top=s._convertPositionTo("relative",{top:l-s.helperProportions.height,left:0}).top),r&&(n.position.top=s._convertPositionTo("relative",{top:m,left:0}).top),d&&(n.position.left=s._convertPositionTo("relative",{top:0,left:a-s.helperProportions.width}).left),u&&(n.position.left=s._convertPositionTo("relative",{top:0,left:h}).left)),v=c||r||d||u,g.snapMode!=="outer"&&(c=Math.abs(l-p)<=i,r=Math.abs(m-j)<=i,d=Math.abs(a-f)<=i,u=Math.abs(h-b)<=i,c&&(n.position.top=s._convertPositionTo("relative",{top:l,left:0}).top),r&&(n.position.top=s._convertPositionTo("relative",{top:m-s.helperProportions.height,left:0}).top),d&&(n.position.left=s._convertPositionTo("relative",{top:0,left:a}).left),u&&(n.position.left=s._convertPositionTo("relative",{top:0,left:h-s.helperProportions.width}).left)),!s.snapElements[o].snapping&&(c||r||d||u||v)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,t,e.extend(s._uiHash(),{snapItem:s.snapElements[o].item})),s.snapElements[o].snapping=c||r||d||u||v}}}),e.ui.plugin.add("draggable","stack",{start:function(t,n,s){var i,a=s.options,o=e.makeArray(e(a.stack)).sort(function(t,n){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(n).css("zIndex"),10)||0)});if(!o.length)return;i=parseInt(e(o[0]).css("zIndex"),10)||0,e(o).each(function(t){e(this).css("zIndex",i+t)}),this.css("zIndex",i+o.length)}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,n,s){var o=e(n.helper),i=s.options;o.css("zIndex")&&(i._zIndex=o.css("zIndex")),o.css("zIndex",i.zIndex)},stop:function(t,n,s){var o=s.options;o._zIndex&&e(n.helper).css("zIndex",o._zIndex)}}),te=e.ui.draggable,e.widget("ui.resizable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(t,n){if(e(t).css("overflow")==="hidden")return!1;var s=n&&n==="left"?"scrollLeft":"scrollTop",o=!1;return t[s]>0||(t[s]=1,o=t[s]>0,t[s]=0,o)},_create:function(){var s,t=this.options,n=this;this._addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!t.aspectRatio,aspectRatio:t.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:t.helper||t.ghost||t.animate?t.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,s={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(s),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(s),this._proportionallyResize()),this._setupHandles(),t.autoHide&&e(this.element).on("mouseenter",function(){if(t.disabled)return;n._removeClass("ui-resizable-autohide"),n._handles.show()}).on("mouseleave",function(){if(t.disabled)return;n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,n=function(t){e(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(n(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles();break;default:break}},_setupHandles:function(){var t,n,s,i,r,o=this.options,a=this;if(this.handles=o.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=e(),this.handles.constructor===String){this.handles==="all"&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={};for(s=0;s<i.length;s++)n=i[s].trim(),r="ui-resizable-"+n,t=e("<div>"),this._addClass(t,"ui-resizable-handle "+r),t.css({zIndex:o.zIndex.toString()}),this.handles[n]=".ui-resizable-"+n,this.element.append(t)}this._renderAxis=function(t){var n,s,o,i;t=t||this.element;for(n in this.handles)this.handles[n].constructor===String?this.handles[n]=this.element.children(this.handles[n]).first().show():(this.handles[n].jquery||this.handles[n].nodeType)&&(this.handles[n]=e(this.handles[n]),this._on(this.handles[n],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=e(this.handles[n],this.element),i=/sw|ne|nw|se|n|s/.test(n)?s.outerHeight():s.outerWidth(),o=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join(""),t.css(o,i),this._proportionallyResize()),this._handles=this._handles.add(this.handles[n])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(t=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=t&&t[1]?t[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var n,s,o=!1;for(s in this.handles)n=e(this.handles[s])[0],(n===t.target||e.contains(n,t.target))&&(o=!0);return!this.options.disabled&&o},_mouseStart:function(t){var o,i,a,s=this.options,n=this.element;return this.resizing=!0,this._renderProxy(),o=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),s.containment&&(o+=e(s.containment).scrollLeft()||0,i+=e(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:o,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:n.width(),height:n.height()},this.originalSize=this._helper?{width:n.outerWidth(),height:n.outerHeight()}:{width:n.width(),height:n.height()},this.sizeDiff={width:n.outerWidth()-n.width(),height:n.outerHeight()-n.height()},this.originalPosition={left:o,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio=typeof s.aspectRatio=="number"?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,a=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor",a==="auto"?this.axis+"-resize":a),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var n,s,o=this.originalMousePosition,a=this.axis,r=t.pageX-o.left||0,c=t.pageY-o.top||0,i=this._change[a];return this._updatePrevProperties(),!!i&&(n=i.apply(this,[t,r,c]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(n=this._updateRatio(n,t)),n=this._respectSize(n,t),this._updateCache(n),this._propagate("resize",t),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1)},_mouseStop:function(t){this.resizing=!1;var s,o,i,a,r,c,l,d=this.options,n=this;return this._helper&&(s=this._proportionallyResizeElements,o=s.length&&/textarea/i.test(s[0].nodeName),i=o&&this._hasScroll(s[0],"left")?0:n.sizeDiff.height,a=o?0:n.sizeDiff.width,r={width:n.helper.width()-a,height:n.helper.height()-i},c=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,l=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null,d.animate||this.element.css(e.extend(r,{top:l,left:c})),n.helper.height(n.size.height),n.helper.width(n.size.width),this._helper&&!d.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var s,o,i,a,n=this.options,t={minWidth:this._isNumber(n.minWidth)?n.minWidth:0,maxWidth:this._isNumber(n.maxWidth)?n.maxWidth:1/0,minHeight:this._isNumber(n.minHeight)?n.minHeight:0,maxHeight:this._isNumber(n.maxHeight)?n.maxHeight:1/0};(this._aspectRatio||e)&&(s=t.minHeight*this.aspectRatio,i=t.minWidth/this.aspectRatio,o=t.maxHeight*this.aspectRatio,a=t.maxWidth/this.aspectRatio,s>t.minWidth&&(t.minWidth=s),i>t.minHeight&&(t.minHeight=i),o<t.maxWidth&&(t.maxWidth=o),a<t.maxHeight&&(t.maxHeight=a)),this._vBoundaries=t},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,n=this.size,s=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),s==="sw"&&(e.left=t.left+(n.width-e.width),e.top=null),s==="nw"&&(e.top=t.top+(n.height-e.height),e.left=t.left+(n.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,n=this.axis,s=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,o=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,i=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,a=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,r=this.originalPosition.left+this.originalSize.width,c=this.originalPosition.top+this.originalSize.height,l=/sw|nw|w/.test(n),d=/nw|ne|n/.test(n);return i&&(e.width=t.minWidth),a&&(e.height=t.minHeight),s&&(e.width=t.maxWidth),o&&(e.height=t.maxHeight),i&&l&&(e.left=r-t.minWidth),s&&l&&(e.left=r-t.maxWidth),a&&d&&(e.top=c-t.minHeight),o&&d&&(e.top=c-t.maxHeight),!e.width&&!e.height&&!e.left&&e.top?e.top=null:!e.width&&!e.height&&!e.top&&e.left&&(e.left=null),e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,n=[],s=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],o=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)n[t]=parseFloat(s[t])||0,n[t]+=parseFloat(o[t])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(!this._proportionallyResizeElements.length)return;for(var e,t=0,n=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,n=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var n=this.originalSize,s=this.originalPosition;return{left:s.left+t,width:n.width-t}},n:function(e,t,n){var s=this.originalSize,o=this.originalPosition;return{top:o.top+n,height:s.height-n}},s:function(e,t,n){return{height:this.originalSize.height+n}},se:function(t,n,s){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,n,s]))},sw:function(t,n,s){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,n,s]))},ne:function(t,n,s){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,n,s]))},nw:function(t,n,s){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,n,s]))}},_propagate:function(t,n){e.ui.plugin.call(this,t,[n,this.ui()]),t!=="resize"&&this._trigger(t,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var n=e(this).resizable("instance"),o=n.options,s=n._proportionallyResizeElements,i=s.length&&/textarea/i.test(s[0].nodeName),c=i&&n._hasScroll(s[0],"left")?0:n.sizeDiff.height,l=i?0:n.sizeDiff.width,d={width:n.size.width-l,height:n.size.height-c},a=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,r=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(e.extend(d,r&&a?{top:r,left:a}:{}),{duration:o.animateDuration,easing:o.animateEasing,step:function(){var o={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};s&&s.length&&e(s[0]).css({width:o.width,height:o.height}),n._updateCache(o),n._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var s,i,a,r,c,l,d,t=e(this).resizable("instance"),u=t.options,h=t.element,o=u.containment,n=o instanceof e?o.get(0):/parent/.test(o)?h.parent().get(0):o;if(!n)return;t.containerElement=e(n),/document/.test(o)||o===document?(t.containerOffset={left:0,top:0},t.containerPosition={left:0,top:0},t.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(s=e(n),i=[],e(["Top","Right","Left","Bottom"]).each(function(e,n){i[e]=t._num(s.css("padding"+n))}),t.containerOffset=s.offset(),t.containerPosition=s.position(),t.containerSize={height:s.innerHeight()-i[3],width:s.innerWidth()-i[1]},a=t.containerOffset,r=t.containerSize.height,c=t.containerSize.width,l=t._hasScroll(n,"left")?n.scrollWidth:c,d=t._hasScroll(n)?n.scrollHeight:r,t.parentData={element:n,left:a.left,top:a.top,width:l,height:d})},resize:function(t){var r,c,l,d,n=e(this).resizable("instance"),m=n.options,s=n.containerOffset,u=n.position,i=n._aspectRatio||t.shiftKey,a={top:0,left:0},h=n.containerElement,o=!0;h[0]!==document&&/static/.test(h.css("position"))&&(a=s),u.left<(n._helper?s.left:0)&&(n.size.width=n.size.width+(n._helper?n.position.left-s.left:n.position.left-a.left),i&&(n.size.height=n.size.width/n.aspectRatio,o=!1),n.position.left=m.helper?s.left:0),u.top<(n._helper?s.top:0)&&(n.size.height=n.size.height+(n._helper?n.position.top-s.top:n.position.top),i&&(n.size.width=n.size.height*n.aspectRatio,o=!1),n.position.top=n._helper?s.top:0),l=n.containerElement.get(0)===n.element.parent().get(0),d=/relative|absolute/.test(n.containerElement.css("position")),l&&d?(n.offset.left=n.parentData.left+n.position.left,n.offset.top=n.parentData.top+n.position.top):(n.offset.left=n.element.offset().left,n.offset.top=n.element.offset().top),r=Math.abs(n.sizeDiff.width+(n._helper?n.offset.left-a.left:n.offset.left-s.left)),c=Math.abs(n.sizeDiff.height+(n._helper?n.offset.top-a.top:n.offset.top-s.top)),r+n.size.width>=n.parentData.width&&(n.size.width=n.parentData.width-r,i&&(n.size.height=n.size.width/n.aspectRatio,o=!1)),c+n.size.height>=n.parentData.height&&(n.size.height=n.parentData.height-c,i&&(n.size.width=n.size.height*n.aspectRatio,o=!1)),o||(n.position.left=n.prevPosition.left,n.position.top=n.prevPosition.top,n.size.width=n.prevSize.width,n.size.height=n.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),s=t.options,o=t.containerOffset,i=t.containerPosition,a=t.containerElement,n=e(t.helper),r=n.offset(),c=n.outerWidth()-t.sizeDiff.width,l=n.outerHeight()-t.sizeDiff.height;t._helper&&!s.animate&&/relative/.test(a.css("position"))&&e(this).css({left:r.left-i.left-o.left,width:c,height:l}),t._helper&&!s.animate&&/static/.test(a.css("position"))&&e(this).css({left:r.left-i.left-o.left,width:c,height:l})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance"),n=t.options;e(n.alsoResize).each(function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,n){var s=e(this).resizable("instance"),a=s.options,o=s.originalSize,i=s.originalPosition,r={height:s.size.height-o.height||0,width:s.size.width-o.width||0,top:s.position.top-i.top||0,left:s.position.left-i.left||0};e(a.alsoResize).each(function(){var t=e(this),o=e(this).data("ui-resizable-alsoresize"),s={},i=t.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(i,function(e,t){var n=(o[t]||0)+(r[t]||0);n&&n>=0&&(s[t]=n||null)}),t.css(s)})},stop:function(){e(this).removeData("ui-resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),n=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),e.uiBackCompat!==!1&&typeof t.options.ghost=="string"&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var d,t=e(this).resizable("instance"),s=t.options,f=t.size,r=t.originalSize,c=t.originalPosition,m=t.axis,h=typeof s.grid=="number"?[s.grid,s.grid]:s.grid,i=h[0]||1,a=h[1]||1,u=Math.round((f.width-r.width)/i)*i,l=Math.round((f.height-r.height)/a)*a,n=r.width+u,o=r.height+l,p=s.maxWidth&&s.maxWidth<n,g=s.maxHeight&&s.maxHeight<o,v=s.minWidth&&s.minWidth>n,b=s.minHeight&&s.minHeight>o;s.grid=h,v&&(n+=i),b&&(o+=a),p&&(n-=i),g&&(o-=a),/^(se|s|e)$/.test(m)?(t.size.width=n,t.size.height=o):/^(ne)$/.test(m)?(t.size.width=n,t.size.height=o,t.position.top=c.top-l):/^(sw)$/.test(m)?(t.size.width=n,t.size.height=o,t.position.left=c.left-u):((o-a<=0||n-i<=0)&&(d=t._getPaddingPlusBorderDimensions(this)),o-a>0?(t.size.height=o,t.position.top=c.top-l):(o=a-d.height,t.size.height=o,t.position.top=c.top+r.height-o),n-i>0?(t.size.width=n,t.position.left=c.left-u):(n=i-d.width,t.size.width=n,t.position.left=c.left+r.width-n))}}),ne=e.ui.resizable,e.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var n=e(this).css(t).offset().top;n<0&&e(this).css("top",t.top-n)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title==null&&this.originalTitle!=null&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&e.fn.draggable&&this._makeDraggable(),this.options.resizable&&e.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?e(t):this.document.find(t||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),e=t.parent.children().eq(t.index),e.length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:e.noop,enable:e.noop,close:function(t){var n=this;if(!this._isOpen||this._trigger("beforeClose",t)===!1)return;this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||e.ui.safeBlur(e.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){n._trigger("close",t)})},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,n){var s=!1,i=this.uiDialog.siblings(".ui-front:visible").map(function(){return+e(this).css("z-index")}).get(),o=Math.max.apply(null,i);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),s=!0),s&&!n&&this._trigger("focus",t),s},open:function(){var t=this;if(this._isOpen){this._moveToTop()&&this._focusTabbable();return}this._isOpen=!0,this.opener=e(e.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",(this.uiDialog.css("z-index")-1).toString()),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open")},_focusTabbable:function(){var e=this._focusedElement;e||(e=this.element.find("[autofocus]")),e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).trigger("focus")},_keepFocus:function(t){function n(){var t=e.ui.safeActiveElement(this.document[0]),n=this.uiDialog[0]===t||e.contains(this.uiDialog[0],t);n||this._focusTabbable()}t.preventDefault(),n.call(this),this._delay(n)},_createWrapper:function(){this.uiDialog=e("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===e.ui.keyCode.ESCAPE){t.preventDefault(),this.close(t);return}if(t.keyCode!==e.ui.keyCode.TAB||t.isDefaultPrevented())return;var n=this.uiDialog.find(":tabbable"),s=n.filter(":first"),o=n.filter(":last");(t.target===o[0]||t.target===this.uiDialog[0])&&!t.shiftKey?(this._delay(function(){s.trigger("focus")}),t.preventDefault()):(t.target===s[0]||t.target===this.uiDialog[0])&&t.shiftKey&&(this._delay(function(){o.trigger("focus")}),t.preventDefault())},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=e("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){e(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=e("<button type='button'></button>").button({label:e("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault(),this.close(e)}}),t=e("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(e){this.options.title?e.text(this.options.title):e.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=e("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=e("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var n=this,t=this.options.buttons;if(this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),e.isEmptyObject(t)||Array.isArray(t)&&!t.length){this._removeClass(this.uiDialog,"ui-dialog-buttons");return}e.each(t,function(t,s){var o,i;s=typeof s=="function"?{click:s,text:t}:s,s=e.extend({type:"button"},s),o=s.click,i={icon:s.icon,iconPosition:s.iconPosition,showLabel:s.showLabel,icons:s.icons,text:s.text},delete s.click,delete s.icon,delete s.iconPosition,delete s.showLabel,delete s.icons,typeof s.text=="boolean"&&delete s.text,e("<button></button>",s).button(i).appendTo(n.uiButtonSet).on("click",function(){o.apply(n.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){var t=this,s=this.options;function n(e){return{position:e.position,offset:e.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(s,o){t._addClass(e(this),"ui-dialog-dragging"),t._blockFrames(),t._trigger("dragStart",s,n(o))},drag:function(e,s){t._trigger("drag",e,n(s))},stop:function(o,i){var a=i.offset.left-t.document.scrollLeft(),r=i.offset.top-t.document.scrollTop();s.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(r>=0?"+":"")+r,of:t.window},t._removeClass(e(this),"ui-dialog-dragging"),t._unblockFrames(),t._trigger("dragStop",o,n(i))}})},_makeResizable:function(){var t=this,n=this.options,o=n.resizable,i=this.uiDialog.css("position"),a=typeof o=="string"?o:"n,e,s,w,se,sw,ne,nw";function s(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:a,start:function(n,o){t._addClass(e(this),"ui-dialog-resizing"),t._blockFrames(),t._trigger("resizeStart",n,s(o))},resize:function(e,n){t._trigger("resize",e,s(n))},stop:function(o,i){var a=t.uiDialog.offset(),r=a.left-t.document.scrollLeft(),c=a.top-t.document.scrollTop();n.height=t.uiDialog.height(),n.width=t.uiDialog.width(),n.position={my:"left top",at:"left"+(r>=0?"+":"")+r+" top"+(c>=0?"+":"")+c,of:t.window},t._removeClass(e(this),"ui-dialog-resizing"),t._unblockFrames(),t._trigger("resizeStop",o,s(i))}}).css("position",i)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=e(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),n=e.inArray(this,t);n!==-1&&t.splice(n,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||(e=[],this.document.data("ui-dialog-instances",e)),e},_minHeight:function(){var e=this.options;return e.height==="auto"?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(t){var n=this,s=!1,o={};e.each(t,function(e,t){n._setOption(e,t),e in n.sizeRelatedOptions&&(s=!0),e in n.resizableRelatedOptions&&(o[e]=t)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",o)},_setOption:function(t,n){var o,i,s=this.uiDialog;if(t==="disabled")return;this._super(t,n),t==="appendTo"&&this.uiDialog.appendTo(this._appendTo()),t==="buttons"&&this._createButtons(),t==="closeText"&&this.uiDialogTitlebarClose.button({label:e("<a>").text(""+this.options.closeText).html()}),t==="draggable"&&(i=s.is(":data(ui-draggable)"),i&&!n&&s.draggable("destroy"),!i&&n&&this._makeDraggable()),t==="position"&&this._position(),t==="resizable"&&(o=s.is(":data(ui-resizable)"),o&&!n&&s.resizable("destroy"),o&&typeof n=="string"&&s.resizable("option","handles",n),!o&&n!==!1&&this._makeResizable()),t==="title"&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))},_size:function(){var t,n,s,e=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),e.minWidth>e.width&&(e.width=e.minWidth),t=this.uiDialog.css({height:"auto",width:e.width}).outerHeight(),n=Math.max(0,e.minHeight-t),s=typeof e.maxHeight=="number"?Math.max(0,e.maxHeight-t):"none",e.height==="auto"?this.element.css({minHeight:n,maxHeight:s,height:"auto"}):this.element.height(Math.max(0,e.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=e(this);return e("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!e(t.target).closest(".ui-dialog").length||!!e(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(!this.options.modal)return;var t=!0;this._delay(function(){t=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(e){if(t)return;this._allowInteraction(e)||(e.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=e("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)},_destroyOverlay:function(){if(!this.options.modal)return;if(this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),e.uiBackCompat!==!1&&e.widget("ui.dialog",e.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(e,t){e==="dialogClass"&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}}),se=e.ui.dialog,e.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,t=this.options,n=t.accept;this.isover=!1,this.isout=!0,this.accept=typeof n=="function"?n:function(e){return e.is(n)},this.proportions=function(){if(arguments.length)e=arguments[0];else return e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(t.scope),t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,n){if(t==="accept")this.accept=typeof n=="function"?n:function(e){return e.is(n)};else if(t==="scope"){var s=e.ui.ddmanager.droppables[this.options.scope];this._splice(s),this._addToManager(n)}this._super(t,n)},_activate:function(t){var n=e.ui.ddmanager.current;this._addActiveClass(),n&&this._trigger("activate",t,this.ui(n))},_deactivate:function(t){var n=e.ui.ddmanager.current;this._removeActiveClass(),n&&this._trigger("deactivate",t,this.ui(n))},_over:function(t){var n=e.ui.ddmanager.current;if(!n||(n.currentItem||n.element)[0]===this.element[0])return;this.accept.call(this.element[0],n.currentItem||n.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(n)))},_out:function(t){var n=e.ui.ddmanager.current;if(!n||(n.currentItem||n.element)[0]===this.element[0])return;this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(n)))},_drop:function(t,n){var s=n||e.ui.ddmanager.current,o=!1;return!!s&&(s.currentItem||s.element)[0]!==this.element[0]&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var n=e(this).droppable("instance");if(n.options.greedy&&!n.options.disabled&&n.options.scope===s.options.scope&&n.accept.call(n.element[0],s.currentItem||s.element)&&a(s,e.extend(n,{offset:n.element.offset()}),n.options.tolerance,t))return o=!0,!1}),!o&&!!this.accept.call(this.element[0],s.currentItem||s.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(s)),this.element))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),a=e.ui.intersect=function(){function e(e,t,n){return e>=t&&e<t+n}return function(t,n,s,o){if(!n.offset)return!1;var r=(t.positionAbs||t.position.absolute).left+t.margins.left,c=(t.positionAbs||t.position.absolute).top+t.margins.top,l=r+t.helperProportions.width,d=c+t.helperProportions.height,i=n.offset.left,a=n.offset.top,u=i+n.proportions().width,h=a+n.proportions().height;switch(s){case"fit":return i<=r&&l<=u&&a<=c&&d<=h;case"intersect":return i<r+t.helperProportions.width/2&&l-t.helperProportions.width/2<u&&a<c+t.helperProportions.height/2&&d-t.helperProportions.height/2<h;case"pointer":return e(o.pageY,a,n.proportions().height)&&e(o.pageX,i,n.proportions().width);case"touch":return(c>=a&&c<=h||d>=a&&d<=h||c<a&&d>h)&&(r>=i&&r<=u||l>=i&&l<=u||r<i&&l>u);default:return!1}}}(),e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,n){var s,i,o=e.ui.ddmanager.droppables[t.options.scope]||[],r=n?n.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();droppablesLoop:for(s=0;s<o.length;s++){if(o[s].options.disabled||t&&!o[s].accept.call(o[s].element[0],t.currentItem||t.element))continue;for(i=0;i<a.length;i++)if(a[i]===o[s].element[0]){o[s].proportions().height=0;continue droppablesLoop}if(o[s].visible=o[s].element.css("display")!=="none",!o[s].visible)continue;r==="mousedown"&&o[s]._activate.call(o[s],n),o[s].offset=o[s].element.offset(),o[s].proportions({width:o[s].element[0].offsetWidth,height:o[s].element[0].offsetHeight})}},drop:function(t,n){var s=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){if(!this.options)return;!this.options.disabled&&this.visible&&a(t,this,this.options.tolerance,n)&&(s=this._drop.call(this,n)||s),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n))}),s},dragStart:function(t,n){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)})},drag:function(t,n){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,n),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){if(this.options.disabled||this.greedyChild||!this.visible)return;var s,i,r,c=a(t,this,this.options.tolerance,n),o=!c&&this.isover?"isout":c&&!this.isover?"isover":null;if(!o)return;this.options.greedy&&(r=this.options.scope,i=this.element.parents(":data(ui-droppable)").filter(function(){return e(this).droppable("instance").options.scope===r}),i.length&&(s=e(i[0]).droppable("instance"),s.greedyChild=o==="isover")),s&&o==="isover"&&(s.isover=!1,s.isout=!0,s._out.call(s,n)),this[o]=!0,this[o==="isout"?"isover":"isout"]=!1,this[o==="isover"?"_over":"_out"].call(this,n),s&&o==="isout"&&(s.isout=!1,s.isover=!0,s._over.call(s,n))})},dragStop:function(t,n){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)}},e.uiBackCompat!==!1&&e.widget("ui.droppable",e.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),ie=e.ui.droppable,ae=e.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=e("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(e){if(e===void 0)return this.options.value;this.options.value=this._constrainedValue(e),this._refreshValue()},_constrainedValue:function(e){return e===void 0&&(e=this.options.value),this.indeterminate=e===!1,typeof e!="number"&&(e=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var t=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:function(e,t){e==="max"&&(t=Math.max(this.min,t)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,n=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(n.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=e("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),re=e.widget("ui.selectable",e.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){t.elementPos=e(t.element[0]).offset(),t.selectees=e(t.options.filter,t.element[0]),t._addClass(t.selectees,"ui-selectee"),t.selectees.each(function(){var n=e(this),o=n.offset(),s={left:o.left-t.elementPos.left,top:o.top-t.elementPos.top};e.data(this,"selectable-item",{element:this,$element:n,left:s.left,top:s.top,right:s.left+n.outerWidth(),bottom:s.top+n.outerHeight(),startselected:!1,selected:n.hasClass("ui-selected"),selecting:n.hasClass("ui-selecting"),unselecting:n.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=e("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(t){var n=this,s=this.options;if(this.opos=[t.pageX,t.pageY],this.elementPos=e(this.element[0]).offset(),this.options.disabled)return;this.selectees=e(s.filter,this.element[0]),this._trigger("start",t),e(s.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var s=e.data(this,"selectable-item");s.startselected=!0,!t.metaKey&&!t.ctrlKey&&(n._removeClass(s.$element,"ui-selected"),s.selected=!1,n._addClass(s.$element,"ui-unselecting"),s.unselecting=!0,n._trigger("unselecting",t,{unselecting:s.element}))}),e(t.target).parents().addBack().each(function(){var o,s=e.data(this,"selectable-item");if(s)return o=!t.metaKey&&!t.ctrlKey||!s.$element.hasClass("ui-selected"),n._removeClass(s.$element,o?"ui-unselecting":"ui-selected")._addClass(s.$element,o?"ui-selecting":"ui-unselecting"),s.unselecting=!o,s.selecting=o,s.selected=o,o?n._trigger("selecting",t,{selecting:s.element}):n._trigger("unselecting",t,{unselecting:s.element}),!1})},_mouseDrag:function(t){if(this.dragged=!0,this.options.disabled)return;var r,n=this,c=this.options,s=this.opos[0],o=this.opos[1],i=t.pageX,a=t.pageY;return s>i&&(r=i,i=s,s=r),o>a&&(r=a,a=o,o=r),this.helper.css({left:s,top:o,width:i-s,height:a-o}),this.selectees.each(function(){var r=e.data(this,"selectable-item"),d=!1,l={};if(!r||r.element===n.element[0])return;l.left=r.left+n.elementPos.left,l.right=r.right+n.elementPos.left,l.top=r.top+n.elementPos.top,l.bottom=r.bottom+n.elementPos.top,c.tolerance==="touch"?d=!(l.left>i||l.right<s||l.top>a||l.bottom<o):c.tolerance==="fit"&&(d=l.left>s&&l.right<i&&l.top>o&&l.bottom<a),d?(r.selected&&(n._removeClass(r.$element,"ui-selected"),r.selected=!1),r.unselecting&&(n._removeClass(r.$element,"ui-unselecting"),r.unselecting=!1),r.selecting||(n._addClass(r.$element,"ui-selecting"),r.selecting=!0,n._trigger("selecting",t,{selecting:r.element}))):(r.selecting&&((t.metaKey||t.ctrlKey)&&r.startselected?(n._removeClass(r.$element,"ui-selecting"),r.selecting=!1,n._addClass(r.$element,"ui-selected"),r.selected=!0):(n._removeClass(r.$element,"ui-selecting"),r.selecting=!1,r.startselected&&(n._addClass(r.$element,"ui-unselecting"),r.unselecting=!0),n._trigger("unselecting",t,{unselecting:r.element}))),r.selected&&!t.metaKey&&!t.ctrlKey&&!r.startselected&&(n._removeClass(r.$element,"ui-selected"),r.selected=!1,n._addClass(r.$element,"ui-unselecting"),r.unselecting=!0,n._trigger("unselecting",t,{unselecting:r.element})))}),!1},_mouseStop:function(t){var n=this;return this.dragged=!1,e(".ui-unselecting",this.element[0]).each(function(){var s=e.data(this,"selectable-item");n._removeClass(s.$element,"ui-unselecting"),s.unselecting=!1,s.startselected=!1,n._trigger("unselected",t,{unselected:s.element})}),e(".ui-selecting",this.element[0]).each(function(){var s=e.data(this,"selectable-item");n._removeClass(s.$element,"ui-selecting")._addClass(s.$element,"ui-selected"),s.selecting=!1,s.selected=!0,s.startselected=!0,n._trigger("selected",t,{selected:s.element})}),this._trigger("stop",t),this.helper.remove(),!1}}),ce=e.widget("ui.selectmenu",[e.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=e()},_drawButton:function(){var t,n=this,s=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(e){this.button.focus(),e.preventDefault()}}),this.element.hide(),this.button=e("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),t=e("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(s).appendTo(this.button),this.options.width!==!1&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){n._rendered||n._refreshMenu()})},_drawMenu:function(){var t=this;this.menu=e("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=e("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(e,n){e.preventDefault(),t._setSelection(),t._select(n.item.data("ui-selectmenu-item"),e)},focus:function(e,n){var s=n.item.data("ui-selectmenu-item");t.focusIndex!=null&&s.index!==t.focusIndex&&(t._trigger("focus",e,{item:s}),t.isOpen||t._select(s,e)),t.focusIndex=s.index,t.button.attr("aria-activedescendant",t.menuItems.eq(s.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),this.options.width===null&&this._resizeButton()},_refreshMenu:function(){var e,t=this.element.find("option");if(this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,!t.length)return;e=this._getSelectedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled"))},open:function(e){if(this.options.disabled)return;if(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),!this.menuItems.length)return;this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",e)},_position:function(){this.menuWrap.position(e.extend({of:this.button},this.options.position))},close:function(e){if(!this.isOpen)return;this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",e)},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var n=e("<span>");return this._setText(n,t.label),this._addClass(n,"ui-selectmenu-text"),n},_renderMenu:function(t,n){var s=this,o="";e.each(n,function(n,i){var a;i.optgroup!==o&&(a=e("<li>",{text:i.optgroup}),s._addClass(a,"ui-selectmenu-optgroup","ui-menu-divider"+(i.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),a.appendTo(t),o=i.optgroup),s._renderItemData(t,i)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-selectmenu-item",t)},_renderItem:function(t,n){var s=e("<li>"),o=e("<div>",{title:n.element.attr("title")});return n.disabled&&this._addClass(s,null,"ui-state-disabled"),this._setText(o,n.label),s.append(o).appendTo(t)},_setText:function(e,t){t?e.text(t):e.html("&#160;")},_move:function(e,t){var n,s,o=".ui-menu-item";this.isOpen?n=this.menuItems.eq(this.focusIndex).parent("li"):(n=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),o+=":not(.ui-state-disabled)"),e==="first"||e==="last"?s=n[e==="first"?"prevAll":"nextAll"](o).eq(-1):s=n[e+"All"](o).eq(0),s.length&&this.menuInstance.focus(t,s)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(e){this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;if(!this.range)return;window.getSelection?(e=window.getSelection(),e.removeAllRanges(),e.addRange(this.range)):this.range.select(),this.button.focus()},_documentClick:{mousedown:function(t){if(!this.isOpen)return;e(t.target).closest(".ui-selectmenu-menu, #"+e.ui.escapeSelector(this.ids.button)).length||this.close(t)}},_buttonEvents:{mousedown:function(){var e;window.getSelection?(e=window.getSelection(),e.rangeCount&&(this.range=e.getRangeAt(0))):this.range=document.selection.createRange()},click:function(e){this._setSelection(),this._toggle(e)},keydown:function(t){var n=!0;switch(t.keyCode){case e.ui.keyCode.TAB:case e.ui.keyCode.ESCAPE:this.close(t),n=!1;break;case e.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case e.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case e.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case e.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case e.ui.keyCode.LEFT:this._move("prev",t);break;case e.ui.keyCode.RIGHT:this._move("next",t);break;case e.ui.keyCode.HOME:case e.ui.keyCode.PAGE_UP:this._move("first",t);break;case e.ui.keyCode.END:case e.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),n=!1}n&&t.preventDefault()}},_selectFocusedItem:function(e){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),e)},_select:function(e,t){var n=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(e)),this._setAria(e),this._trigger("select",t,{item:e}),e.index!==n&&this._trigger("change",t,{item:e}),this.close(t)},_setAria:function(e){var t=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(e,t){if(e==="icons"){var n=this.button.find("span.ui-icon");this._removeClass(n,null,this.options.icons.button)._addClass(n,null,t.button)}this._super(e,t),e==="appendTo"&&this.menuWrap.appendTo(this._appendTo()),e==="width"&&this._resizeButton()},_setOptionDisabled:function(e){this._super(e),this.menuInstance.option("disabled",e),this.button.attr("aria-disabled",e),this._toggleClass(this.button,null,"ui-state-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),(!t||!t[0])&&(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width;if(e===!1){this.button.css("width","");return}e===null&&(e=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(e)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var e=this._super();return e.disabled=this.element.prop("disabled"),e},_parseOptions:function(t){var s=this,n=[];t.each(function(t,o){n.push(s._parseOption(e(o),t))}),this.items=n},_parseOption:function(e,t){var n=e.parent("optgroup");return{element:e,index:t,value:e.val(),label:e.text(),optgroup:n.attr("label")||"",disabled:n.prop("disabled")||e.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),le=e.widget("ui.slider",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var s,o=this.options,t=this.element.find(".ui-slider-handle"),a="<span tabindex='0'></span>",i=[],n=o.values&&o.values.length||1;t.length>n&&(t.slice(n).remove(),t=t.slice(0,n));for(s=t.length;s<n;s++)i.push(a);this.handles=t.add(e(i.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(t.range===!0&&(t.values?t.values.length&&t.values.length!==2?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),!this.range||!this.range.length?(this.range=e("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")):(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})),(t.range==="min"||t.range==="max")&&this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var n,s,o,i,a,c,l,d,r=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),c={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(c),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var a=Math.abs(i-r.values(t));(s>a||s===a&&(t===r._lastChangedValue||r.values(t)===u.min))&&(s=a,n=e(this),o=t)}),l=this._start(t,o),l!==!1&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(n,null,"ui-state-active"),n.trigger("focus"),a=n.offset(),d=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=d?{left:0,top:0}:{left:t.pageX-a.left-n.width()/2,top:t.pageY-a.top-n.height()/2-(parseInt(n.css("borderTopWidth"),10)||0)-(parseInt(n.css("borderBottomWidth"),10)||0)+(parseInt(n.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,o,i),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,n),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,n,s,o,i;return this.orientation==="horizontal"?(n=this.elementSize.width,s=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(n=this.elementSize.height,s=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=s/n,t>1&&(t=1),t<0&&(t=0),this.orientation==="vertical"&&(t=1-t),o=this._valueMax()-this._valueMin(),i=this._valueMin()+t*o,this._trimAlignValue(i)},_uiHash:function(e,t,n){var s={handle:this.handles[e],handleIndex:e,value:t!==void 0?t:this.value()};return this._hasMultipleValues()&&(s.value=t!==void 0?t:this.values(e),s.values=n||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,n){var s,o,i=this.value(),a=this.values();if(this._hasMultipleValues()&&(s=this.values(t?0:1),i=this.values(t),this.options.values.length===2&&this.options.range===!0&&(n=t===0?Math.min(s,n):Math.max(s,n)),a[t]=n),n===i)return;if(o=this._trigger("slide",e,this._uiHash(t,n,a)),o===!1)return;this._hasMultipleValues()?this.values(t,n):this.value(n)},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){!this._keySliding&&!this._mouseSliding&&(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){if(arguments.length){this.options.value=this._trimAlignValue(e),this._refreshValue(),this._change(null,0);return}return this._value()},values:function(e,t){var n,s,o;if(arguments.length>1){this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),this._change(null,e);return}if(arguments.length)if(Array.isArray(arguments[0])){s=this.options.values,o=arguments[0];for(n=0;n<s.length;n+=1)s[n]=this._trimAlignValue(o[n]),this._change(null,n);this._refreshValue()}else return this._hasMultipleValues()?this._values(e):this.value();else return this._values()},_setOption:function(e,t){var n,s=0;switch(e==="range"&&this.options.range===!0&&(t==="min"?(this.options.value=this._values(0),this.options.values=null):t==="max"&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(s=this.options.values.length),this._super(e,t),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(t),this.handles.css(t==="horizontal"?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":this._animateOff=!0,this._refreshValue();for(n=s-1;n>=0;n--)this._change(null,n);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1;break}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value,e=this._trimAlignValue(e);return e},_values:function(e){var t,n,s;if(arguments.length)return s=this.options.values[e],s=this._trimAlignValue(s),s;if(this._hasMultipleValues()){t=this.options.values.slice();for(n=0;n<t.length;n+=1)t[n]=this._trimAlignValue(t[n]);return t}return[]},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,n=(e-this._valueMin())%t,s=e-n;return Math.abs(n)*2>=t&&(s+=n>0?t:-t),parseFloat(s.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,n=this._valueMin(),t=this.options.step,s=Math.round((e-n)/t)*t,e=s+n;e>this.options.max&&(e-=t),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return this.options.min!==null&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return n===-1?0:t.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){e==="vertical"&&this.range.css({width:"",left:""}),e==="horizontal"&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,c,l,d,a=this.options.range,n=this.options,s=this,o=!this._animateOff&&n.animate,r={};this._hasMultipleValues()?this.handles.each(function(i){t=(s.values(i)-s._valueMin())/(s._valueMax()-s._valueMin())*100,r[s.orientation==="horizontal"?"left":"bottom"]=t+"%",e(this).stop(1,1)[o?"animate":"css"](r,n.animate),s.options.range===!0&&(s.orientation==="horizontal"?(i===0&&s.range.stop(1,1)[o?"animate":"css"]({left:t+"%"},n.animate),i===1&&s.range[o?"animate":"css"]({width:t-c+"%"},{queue:!1,duration:n.animate})):(i===0&&s.range.stop(1,1)[o?"animate":"css"]({bottom:t+"%"},n.animate),i===1&&s.range[o?"animate":"css"]({height:t-c+"%"},{queue:!1,duration:n.animate}))),c=t}):(d=this.value(),i=this._valueMin(),l=this._valueMax(),t=l!==i?(d-i)/(l-i)*100:0,r[this.orientation==="horizontal"?"left":"bottom"]=t+"%",this.handle.stop(1,1)[o?"animate":"css"](r,n.animate),a==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[o?"animate":"css"]({width:t+"%"},n.animate),a==="max"&&this.orientation==="horizontal"&&this.range.stop(1,1)[o?"animate":"css"]({width:100-t+"%"},n.animate),a==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[o?"animate":"css"]({height:t+"%"},n.animate),a==="max"&&this.orientation==="vertical"&&this.range.stop(1,1)[o?"animate":"css"]({height:100-t+"%"},n.animate))},_handleEvents:{keydown:function(t){var n,s,o,a,i=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),a=this._start(t,i),a===!1))return;break}switch(o=this.options.step,this._hasMultipleValues()?s=n=this.values(i):s=n=this.value(),t.keyCode){case e.ui.keyCode.HOME:n=this._valueMin();break;case e.ui.keyCode.END:n=this._valueMax();break;case e.ui.keyCode.PAGE_UP:n=this._trimAlignValue(s+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(s-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(s===this._valueMax())return;n=this._trimAlignValue(s+o);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(s===this._valueMin())return;n=this._trimAlignValue(s-o);break}this._slide(t,i,n)},keyup:function(t){var n=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,n),this._change(t,n),this._removeClass(e(t.target),null,"ui-state-active"))}}}),de=e.widget("ui.sortable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,n){return e>=t&&e<t+n},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),e==="handle"&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,n){var s=null,i=!1,o=this;return!this.reverting&&!this.options.disabled&&this.options.type!=="static"&&(this._refreshItems(t),e(t.target).parents().each(function(){if(e.data(this,o.widgetName+"-item")===o)return s=e(this),!1}),e.data(t.target,o.widgetName+"-item")===o&&(s=e(t.target)),!!s&&!(this.options.handle&&!n&&(e(this.options.handle,s).find("*").addBack().each(function(){this===t.target&&(i=!0)}),!i))&&(this.currentItem=s,this._removeCurrentsFromItems(),!0))},_mouseStart:function(t,n,s){var i,a,o=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),o.containment&&this._setContainment(),o.cursor&&o.cursor!=="auto"&&(a=this.document.find("body"),this.storedCursor=a.css("cursor"),a.css("cursor",o.cursor),this.storedStylesheet=e("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(a)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(i=this.containers.length-1;i>=0;i--)this.containers[i]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!o.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var o,i,a,r,n=this.options,s=!1;this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<n.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+n.scrollSpeed:t.pageY-this.overflowOffset.top<n.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-n.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<n.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+n.scrollSpeed:t.pageX-this.overflowOffset.left<n.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-n.scrollSpeed)):(t.pageY-this.document.scrollTop()<n.scrollSensitivity?s=this.document.scrollTop(this.document.scrollTop()-n.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<n.scrollSensitivity&&(s=this.document.scrollTop(this.document.scrollTop()+n.scrollSpeed)),t.pageX-this.document.scrollLeft()<n.scrollSensitivity?s=this.document.scrollLeft(this.document.scrollLeft()-n.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<n.scrollSensitivity&&(s=this.document.scrollLeft(this.document.scrollLeft()+n.scrollSpeed))),s!==!1&&e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),(!this.options.axis||this.options.axis!=="y")&&(this.helper[0].style.left=this.position.left+"px"),(!this.options.axis||this.options.axis!=="x")&&(this.helper[0].style.top=this.position.top+"px");for(a=this.items.length-1;a>=0;a--){if(o=this.items[a],i=o.item[0],r=this._intersectsWithPointer(o),!r)continue;if(o.instance!==this.currentContainer)continue;if(i!==this.currentItem[0]&&this.placeholder[r===1?"next":"prev"]()[0]!==i&&!e.contains(this.placeholder[0],i)&&(this.options.type!=="semi-dynamic"||!e.contains(this.element[0],i))){if(this.direction=r===1?"down":"up",this.options.tolerance==="pointer"||this._intersectsWithSides(o))this._rearrange(t,o);else break;this._trigger("change",t,this._uiHash());break}}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,n){if(!t)return;if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var a=this,i=this.placeholder.offset(),s=this.options.axis,o={};(!s||s==="x")&&(o.left=i.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),(!s||s==="y")&&(o.top=i.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){a._clear(t)})}else this._clear(t,n);return!1},cancel:function(){if(this.dragging){this._mouseUp(new e.Event("mouseup",{target:null})),this.options.helper==="original"?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var s=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},e(s).each(function(){var s=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[-=_](.+)/);s&&n.push((t.key||s[1]+"[]")+"="+(t.key&&t.expression?s[1]:s[2]))}),!n.length&&t.key&&n.push(t.key+"="),n.join("&")},toArray:function(t){var s=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},s.each(function(){n.push(e(t.item||this).attr(t.attribute||"id")||"")}),n},_intersectsWith:function(e){var t=this.positionAbs.left,d=t+this.helperProportions.width,n=this.positionAbs.top,l=n+this.helperProportions.height,s=e.left,a=s+e.width,o=e.top,r=o+e.height,c=this.offset.click.top,i=this.offset.click.left,u=this.options.axis==="x"||n+c>o&&n+c<r,h=this.options.axis==="y"||t+i>s&&t+i<a,m=u&&h;return this.options.tolerance==="pointer"||this.options.forcePointerForContainers||this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?m:s<t+this.helperProportions.width/2&&d-this.helperProportions.width/2<a&&o<n+this.helperProportions.height/2&&l-this.helperProportions.height/2<r},_intersectsWithPointer:function(e){var t,n,s=this.options.axis==="x"||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),o=this.options.axis==="y"||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width),i=s&&o;return!!i&&(t=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection(),this.floating?n==="right"||t==="down"?2:1:t&&(t==="down"?2:1))},_intersectsWithSides:function(e){var s=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),o=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),t=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection();return this.floating&&n?n==="right"&&o||n==="left"&&!o:t&&(t==="down"&&s||t==="up"&&!s)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return e!==0&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return e!==0&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var n,s,o,a,c=[],i=[],r=this._connectWith();if(r&&t)for(s=r.length-1;s>=0;s--){a=e(r[s],this.document[0]);for(o=a.length-1;o>=0;o--)n=e.data(a[o],this.widgetFullName),n&&n!==this&&!n.options.disabled&&i.push([typeof n.options.items=="function"?n.options.items.call(n.element):e(n.options.items,n.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),n])}i.push([typeof this.options.items=="function"?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);function l(){c.push(this)}for(s=i.length-1;s>=0;s--)i[s][0].each(l);return e(c)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var n=0;n<t.length;n++)if(t[n]===e.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var n,s,o,a,r,c,l,u,h=this.items,i=[[typeof this.options.items=="function"?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(s=d.length-1;s>=0;s--){a=e(d[s],this.document[0]);for(o=a.length-1;o>=0;o--)n=e.data(a[o],this.widgetFullName),n&&n!==this&&!n.options.disabled&&(i.push([typeof n.options.items=="function"?n.options.items.call(n.element[0],t,{item:this.currentItem}):e(n.options.items,n.element),n]),this.containers.push(n))}for(s=i.length-1;s>=0;s--){r=i[s][1],c=i[s][0];for(o=0,u=c.length;o<u;o++)l=e(c[o]),l.data(this.widgetName+"-item",r),h.push({item:l,instance:r,width:0,height:0,left:0,top:0})}},refreshPositions:function(t){this.floating=!!this.items.length&&(this.options.axis==="x"||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var n,s,o,i;for(n=this.items.length-1;n>=0;n--){if(s=this.items[n],s.instance!==this.currentContainer&&this.currentContainer&&s.item[0]!==this.currentItem[0])continue;i=this.options.toleranceElement?e(this.options.toleranceElement,s.item):s.item,t||(s.width=i.outerWidth(),s.height=i.outerHeight()),o=i.offset(),s.left=o.left,s.top=o.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(n=this.containers.length-1;n>=0;n--)o=this.containers[n].element.offset(),this.containers[n].containerCache.left=o.left,this.containers[n].containerCache.top=o.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight();return this},_createPlaceholder:function(t){t=t||this;var s,n=t.options;(!n.placeholder||n.placeholder.constructor===String)&&(s=n.placeholder,n.placeholder={element:function(){var o=t.currentItem[0].nodeName.toLowerCase(),n=e("<"+o+">",t.document[0]);return t._addClass(n,"ui-sortable-placeholder",s||t.currentItem[0].className)._removeClass(n,"ui-sortable-helper"),o==="tbody"?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(n)):o==="tr"?t._createTrPlaceholder(t.currentItem,n):o==="img"&&n.attr("src",t.currentItem.attr("src")),s||n.css("visibility","hidden"),n},update:function(e,o){if(s&&!n.forcePlaceholderSize)return;o.height()||o.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10))}}),t.placeholder=e(n.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),n.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,n){var s=this;t.children().each(function(){e("<td>&#160;</td>",s.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(n)})},_contactContainers:function(t){var s,o,i,r,c,l,d,u,h,m,a=null,n=null;for(s=this.containers.length-1;s>=0;s--){if(e.contains(this.currentItem[0],this.containers[s].element[0]))continue;if(this._intersectsWith(this.containers[s].containerCache)){if(a&&e.contains(this.containers[s].element[0],a.element[0]))continue;a=this.containers[s],n=s}else this.containers[s].containerCache.over&&(this.containers[s]._trigger("out",t,this._uiHash(this)),this.containers[s].containerCache.over=0)}if(!a)return;if(this.containers.length===1)this.containers[n].containerCache.over||(this.containers[n]._trigger("over",t,this._uiHash(this)),this.containers[n].containerCache.over=1);else{d=1e4,i=null,c=a.floating||this._isFloating(this.currentItem),h=c?"left":"top",m=c?"width":"height",l=c?"pageX":"pageY";for(o=this.items.length-1;o>=0;o--){if(!e.contains(this.containers[n].element[0],this.items[o].item[0]))continue;if(this.items[o].item[0]===this.currentItem[0])continue;r=this.items[o].item.offset()[h],u=!1,t[l]-r>this.items[o][m]/2&&(u=!0),Math.abs(t[l]-r)<d&&(d=Math.abs(t[l]-r),i=this.items[o],this.direction=u?"up":"down")}if(!i&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[n]){this.currentContainer.containerCache.over||(this.containers[n]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1);return}i?this._rearrange(t,i,null,!0):this._rearrange(t,null,this.containers[n].element,!0),this._trigger("change",t,this._uiHash()),this.containers[n]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[n],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[n]._trigger("over",t,this._uiHash(this)),this.containers[n].containerCache.over=1}},_createHelper:function(t){var s=this.options,n=typeof s.helper=="function"?e(s.helper.apply(this.element[0],[t,this.currentItem])):s.helper==="clone"?this.currentItem.clone():this.currentItem;return n.parents("body").length||e(s.appendTo!=="parent"?s.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!n[0].style.width||s.forceHelperSize)&&n.width(this.currentItem.width()),(!n[0].style.height||s.forceHelperSize)&&n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){typeof e=="string"&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return this.cssPosition==="absolute"&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,s,o,n=this.options;n.containment==="parent"&&(n.containment=this.helper[0].parentNode),(n.containment==="document"||n.containment==="window")&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,n.containment==="document"?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,(n.containment==="document"?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(t=e(n.containment)[0],s=e(n.containment).offset(),o=e(t).css("overflow")!=="hidden",this.containment=[s.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,s.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,s.left+(o?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,s.top+(o?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,n){n||(n=this.position);var s=t==="absolute"?1:-1,o=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=/(html|body)/i.test(o[0].tagName);return{top:n.top+this.offset.relative.top*s+this.offset.parent.top*s-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():i?0:o.scrollTop())*s,left:n.left+this.offset.relative.left*s+this.offset.parent.left*s-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():i?0:o.scrollLeft())*s}},_generatePosition:function(t){var s,o,n=this.options,i=t.pageX,a=t.pageY,r=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,c=/(html|body)/i.test(r[0].tagName);return this.cssPosition==="relative"&&(this.scrollParent[0]===this.document[0]||this.scrollParent[0]===this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(i=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(i=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),n.grid&&(s=this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1],a=this.containment?s-this.offset.click.top>=this.containment[1]&&s-this.offset.click.top<=this.containment[3]?s:s-this.offset.click.top>=this.containment[1]?s-n.grid[1]:s+n.grid[1]:s,o=this.originalPageX+Math.round((i-this.originalPageX)/n.grid[0])*n.grid[0],i=this.containment?o-this.offset.click.left>=this.containment[0]&&o-this.offset.click.left<=this.containment[2]?o:o-this.offset.click.left>=this.containment[0]?o-n.grid[0]:o+n.grid[0]:o)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():c?0:r.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():c?0:r.scrollLeft())}},_rearrange:function(e,t,n,s){n?n[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],this.direction==="down"?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!s)})},_clear:function(e,t){this.reverting=!1;var n,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)(this._storedCSS[n]==="auto"||this._storedCSS[n]==="static")&&(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!t&&s.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!t&&s.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(t||(s.push(function(e){this._trigger("remove",e,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))));function o(e,t,n){return function(s){n._trigger(e,s,t._uiHash(t))}}for(n=this.containers.length-1;n>=0;n--)t||s.push(o("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(s.push(o("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(n=0;n<s.length;n++)s[n].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){e.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var n=t||this;return{helper:n.helper,placeholder:n.placeholder||e([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:t?t.element:null}}});function t(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}e.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this.value()!==""&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t=this._super(),n=this.element;return e.each(["min","max","step"],function(e,s){var o=n.attr(s);o!=null&&o.length&&(t[s]=o)}),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){if(this.cancelBlur){delete this.cancelBlur;return}this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e)},mousewheel:function(e,t){if(!t)return;if(!this.spinning&&!this._start(e))return!1;this._spin((t>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()},"mousedown .ui-spinner-button":function(t){var n=this.element[0]===e.ui.safeActiveElement(this.document[0])?this.previous:this.element.val();function s(){var t=this.element[0]===e.ui.safeActiveElement(this.document[0]);t||(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n}))}if(t.preventDefault(),s.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,s.call(this)}),this._start(t)===!1)return;this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(!e(t.currentTarget).hasClass("ui-state-active"))return;if(this._start(t)===!1)return!1;this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(this.uiSpinner.height()*.5)&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var s=this.options,n=e.ui.keyCode;switch(t.keyCode){case n.UP:return this._repeat(null,1,t),!0;case n.DOWN:return this._repeat(null,-1,t),!0;case n.PAGE_UP:return this._repeat(null,s.page,t),!0;case n.PAGE_DOWN:return this._repeat(null,-s.page,t),!0}return!1},_start:function(e){return!(!this.spinning&&this._trigger("start",e)===!1)&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(e,t,n){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,n)},e),this._spin(t*this.options.step,n)},_spin:function(e,t){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+e*this._increment(this.counter)),(!this.spinning||this._trigger("spin",t,{value:n})!==!1)&&(this._value(n),this.counter++)},_increment:function(e){var t=this.options.incremental;return t?typeof t=="function"?t(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return this.options.min!==null&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return n===-1?0:t.length-n-1},_adjustValue:function(e){var t=this.options,s=t.min!==null?t.min:0,n=e-s,n=Math.round(n/t.step)*t.step;return e=s+n,e=parseFloat(e.toFixed(this._precision())),t.max!==null&&e>t.max?t.max:t.min!==null&&e<t.min?t.min:e},_stop:function(e){if(!this.spinning)return;clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e)},_setOption:function(e,t){var n,s,o;if(e==="culture"||e==="numberFormat"){o=this._parse(this.element.val()),this.options[e]=t,this.element.val(this._format(o));return}(e==="max"||e==="min"||e==="step")&&typeof t=="string"&&(t=this._parse(t)),e==="icons"&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,t.up),s=this.buttons.last().find(".ui-icon"),this._removeClass(s,null,this.options.icons.down),this._addClass(s,null,t.down)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable")},_setOptions:t(function(e){this._super(e)}),_parse:function(e){return typeof e=="string"&&e!==""&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),e===""||isNaN(e)?null:e},_format:function(e){return e===""?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return e!==null&&e===this._adjustValue(e)},_value:function(e,t){var n;e!==""&&(n=this._parse(e),n!==null&&(t||(n=this._adjustValue(n)),e=this._format(n))),this.element.val(e),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:t(function(e){this._stepUp(e)}),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:t(function(e){this._stepDown(e)}),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:t(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:t(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){if(!arguments.length)return this._parse(this.element.val());t(this._value).call(this,e)},widget:function(){return this.uiSpinner}}),e.uiBackCompat!==!1&&e.widget("ui.spinner",e.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),he=e.ui.spinner,e.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var e=/#.*$/;return function(t){var n=t.href.replace(e,""),s=location.href.replace(e,"");try{n=decodeURIComponent(n)}catch{}try{s=decodeURIComponent(s)}catch{}return t.hash.length>1&&n===s}}(),_create:function(){var n=this,t=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,t.collapsible),this._processTabs(),t.active=this._initialActive(),Array.isArray(t.disabled)&&(t.disabled=e.uniqueSort(t.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){return n.tabs.index(e)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(t.active):this.active=e(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var t=this.options.active,n=this.options.collapsible,s=location.hash.substring(1);return t===null&&(s&&this.tabs.each(function(n,o){if(e(o).attr("aria-controls")===s)return t=n,!1}),t===null&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(t===null||t===-1)&&(t=!!this.tabs.length&&0)),t!==!1&&(t=this.tabs.index(this.tabs.eq(t)),t===-1&&(t=!n&&0)),!n&&t===!1&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(t){var s=e(e.ui.safeActiveElement(this.document[0])).closest("li"),n=this.tabs.index(s),o=!0;if(this._handlePageNav(t))return;switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:n++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:o=!1,n--;break;case e.ui.keyCode.END:n=this.anchors.length-1;break;case e.ui.keyCode.HOME:n=0;break;case e.ui.keyCode.SPACE:t.preventDefault(),clearTimeout(this.activating),this._activate(n);return;case e.ui.keyCode.ENTER:t.preventDefault(),clearTimeout(this.activating),this._activate(n!==this.options.active&&n);return;default:return}t.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,o),!t.ctrlKey&&!t.metaKey&&(s.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))},_panelKeydown:function(t){if(this._handlePageNav(t))return;t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){if(t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP)return this._activate(this._focusNextTab(this.options.active-1,!1)),!0;if(t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN)return this._activate(this._focusNextTab(this.options.active+1,!0)),!0},_findNextTab:function(t,n){var s=this.tabs.length-1;function o(){return t>s&&(t=0),t<0&&(t=s),t}for(;e.inArray(o(),this.options.disabled)!==-1;)t=n?t+1:t-1;return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).trigger("focus"),e},_setOption:function(e,t){if(e==="active"){this._activate(t);return}this._super(e,t),e==="collapsible"&&(this._toggleClass("ui-tabs-collapsible",null,t),!t&&this.options.active===!1&&this._activate(0)),e==="event"&&this._setupEvents(t),e==="heightStyle"&&this._setupHeightStyle(t)},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,./:;<=>?@[\]^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,n=this.tablist.children(":has(a[href])");t.disabled=e.map(n.filter(".ui-state-disabled"),function(e){return n.index(e)}),this._processTabs(),t.active===!1||!this.anchors.length?(t.active=!1,this.active=e()):this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this,n=this.tabs,s=this.anchors,o=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){e(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return e("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=e(),this.anchors.each(function(n,s){var o,i,a,c=e(s).uniqueId().attr("id"),r=e(s).closest("li"),l=r.attr("aria-controls");t._isLocal(s)?(i=s.hash,a=i.substring(1),o=t.element.find(t._sanitizeSelector(i))):(a=r.attr("aria-controls")||e({}).uniqueId()[0].id,i="#"+a,o=t.element.find(i),o.length||(o=t._createPanel(a),o.insertAfter(t.panels[n-1]||t.tablist)),o.attr("aria-live","polite")),o.length&&(t.panels=t.panels.add(o)),l&&r.data("ui-tabs-aria-controls",l),r.attr({"aria-controls":a,"aria-labelledby":c}),o.attr("aria-labelledby",c)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),n&&(this._off(n.not(this.tabs)),this._off(s.not(this.anchors)),this._off(o.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return e("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var n,s,o;Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(s=0;o=this.tabs[s];s++)n=e(o),t===!0||e.inArray(s,t)!==-1?(n.attr("aria-disabled","true"),this._addClass(n,null,"ui-state-disabled")):(n.removeAttr("aria-disabled"),this._removeClass(n,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,t===!0)},_setupEvents:function(t){var n={};t&&e.each(t.split(" "),function(e,t){n[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(e){e.preventDefault()}}),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var n,s=this.element.parent();t==="fill"?(n=s.height(),n-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=e(this),s=t.css("position");if(s==="absolute"||s==="fixed")return;n-=t.outerHeight(!0)}),this.element.children().not(this.panels).each(function(){n-=e(this).outerHeight(!0)}),this.panels.each(function(){e(this).height(Math.max(0,n-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):t==="auto"&&(n=0,this.panels.each(function(){n=Math.max(n,e(this).height("").height())}).height(n))},_eventHandler:function(t){var o=this.options,s=this.active,d=e(t.currentTarget),n=d.closest("li"),i=n[0]===s[0],a=i&&o.collapsible,r=a?e():this._getPanelForTab(n),c=s.length?this._getPanelForTab(s):e(),l={oldTab:s,oldPanel:c,newTab:a?e():n,newPanel:r};if(t.preventDefault(),n.hasClass("ui-state-disabled")||n.hasClass("ui-tabs-loading")||this.running||i&&!o.collapsible||this._trigger("beforeActivate",t,l)===!1)return;o.active=!a&&this.tabs.index(n),this.active=i?e():n,this.xhr&&this.xhr.abort(),!c.length&&!r.length&&e.error("jQuery UI Tabs: Mismatching fragment identifier."),r.length&&this.load(this.tabs.index(n),t),this._toggle(t,l)},_toggle:function(t,n){var s=this,o=n.newPanel,i=n.oldPanel;this.running=!0;function a(){s.running=!1,s._trigger("activate",t,n)}function r(){s._addClass(n.newTab.closest("li"),"ui-tabs-active","ui-state-active"),o.length&&s.options.show?s._show(o,s.options.show,a):(o.show(),a())}i.length&&this.options.hide?this._hide(i,this.options.hide,function(){s._removeClass(n.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r()}):(this._removeClass(n.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),i.hide(),r()),i.attr("aria-hidden","true"),n.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),o.length&&i.length?n.oldTab.attr("tabIndex",-1):o.length&&this.tabs.filter(function(){return e(this).attr("tabIndex")===0}).attr("tabIndex",-1),o.attr("aria-hidden","false"),n.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var s,n=this._findActive(t);if(n[0]===this.active[0])return;n.length||(n=this.active),s=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:s,currentTarget:s,preventDefault:e.noop})},_findActive:function(t){return t===!1?e():this.tabs.eq(t)},_getIndex:function(t){return typeof t=="string"&&(t=this.anchors.index(this.anchors.filter("[href$='"+e.ui.escapeSelector(t)+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=e(this),n=t.data("ui-tabs-aria-controls");n?t.attr("aria-controls",n).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),this.options.heightStyle!=="content"&&this.panels.css("height","")},enable:function(t){var n=this.options.disabled;if(n===!1)return;t===void 0?n=!1:(t=this._getIndex(t),Array.isArray(n)?n=e.map(n,function(e){return e!==t?e:null}):n=e.map(this.tabs,function(e,n){return n!==t?n:null})),this._setOptionDisabled(n)},disable:function(t){var n=this.options.disabled;if(n===!0)return;if(t===void 0)n=!0;else{if(t=this._getIndex(t),e.inArray(t,n)!==-1)return;Array.isArray(n)?n=e.merge([t],n).sort():n=[t]}this._setOptionDisabled(n)},load:function(t,n){t=this._getIndex(t);var s=this,o=this.tabs.eq(t),a=o.find(".ui-tabs-anchor"),i=this._getPanelForTab(o),r={tab:o,panel:i},c=function(e,t){t==="abort"&&s.panels.stop(!1,!0),s._removeClass(o,"ui-tabs-loading"),i.removeAttr("aria-busy"),e===s.xhr&&delete s.xhr};if(this._isLocal(a[0]))return;this.xhr=e.ajax(this._ajaxSettings(a,n,r)),this.xhr&&this.xhr.statusText!=="canceled"&&(this._addClass(o,"ui-tabs-loading"),i.attr("aria-busy","true"),this.xhr.done(function(e,t,o){setTimeout(function(){i.html(e),s._trigger("load",n,r),c(o,t)},1)}).fail(function(e,t){setTimeout(function(){c(e,t)},1)}))},_ajaxSettings:function(t,n,s){var o=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,i){return o._trigger("beforeLoad",n,e.extend({jqXHR:t,ajaxSettings:i},s))}}},_getPanelForTab:function(t){var n=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+n))}}),e.uiBackCompat!==!1&&e.widget("ui.tabs",e.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),me=e.ui.tabs,e.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=e(this).attr("title")||"";return e("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,t){var n=(e.attr("aria-describedby")||"").split(/\s+/);n.push(t),e.data("ui-tooltip-id",t).attr("aria-describedby",n.join(" ").trim())},_removeDescribedBy:function(t){var o=t.data("ui-tooltip-id"),n=(t.attr("aria-describedby")||"").split(/\s+/),s=e.inArray(o,n);s!==-1&&n.splice(s,1),t.removeData("ui-tooltip-id"),n=e.trim(n.join(" ")),n?t.attr("aria-describedby",n):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=e("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=e([])},_setOption:function(t,n){var s=this;this._super(t,n),t==="content"&&e.each(this.tooltips,function(e,t){s._updateContent(t.element)})},_setOptionDisabled:function(e){this[e?"_disable":"_enable"]()},_disable:function(){var t=this;e.each(this.tooltips,function(n,s){var o=e.Event("blur");o.target=o.currentTarget=s.element[0],t.close(o,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=e(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=e([])},open:function(t){var s=this,n=e(t?t.target:this.element).closest(this.options.items);if(!n.length||n.data("ui-tooltip-id"))return;n.attr("title")&&n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),t&&t.type==="mouseover"&&n.parents().each(function(){var n,t=e(this);t.data("ui-tooltip-open")&&(n=e.Event("blur"),n.target=n.currentTarget=this,s.close(n,!0)),t.attr("title")&&(t.uniqueId(),s.parents[this.id]={element:this,title:t.attr("title")},t.attr("title",""))}),this._registerCloseHandlers(t,n),this._updateContent(n,t)},_updateContent:function(e,t){var s,n=this.options.content,o=this,i=t?t.type:null;if(typeof n=="string"||n.nodeType||n.jquery)return this._open(t,e,n);s=n.call(e[0],function(n){o._delay(function(){if(!e.data("ui-tooltip-open"))return;t&&(t.type=i),this._open(t,e,n)})}),s&&this._open(t,e,s)},_open:function(t,n,s){var o,i,a,l,r=e.extend({},this.options.position);if(!s)return;if(i=this._find(n),i){i.tooltip.find(".ui-tooltip-content").html(s);return}n.is("[title]")&&(t&&t.type==="mouseover"?n.attr("title",""):n.removeAttr("title")),i=this._tooltip(n),o=i.tooltip,this._addDescribedBy(n,o.attr("id")),o.find(".ui-tooltip-content").html(s),this.liveRegion.children().hide(),a=e("<div>").html(o.find(".ui-tooltip-content").html()),a.removeAttr("name").find("[name]").removeAttr("name"),a.removeAttr("id").find("[id]").removeAttr("id"),a.appendTo(this.liveRegion);function c(e){if(r.of=e,o.is(":hidden"))return;o.position(r)}this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:c}),c(t)):o.position(e.extend({of:n},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(l=this.delayedShow=setInterval(function(){o.is(":visible")&&(c(r.of),clearInterval(l))},e.fx.interval)),this._trigger("open",t,{tooltip:o})},_registerCloseHandlers:function(t,n){var s={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var s=e.Event(t);s.currentTarget=n[0],this.close(s,!0)}}};n[0]!==this.element[0]&&(s.remove=function(){this._removeTooltip(this._find(n).tooltip)}),(!t||t.type==="mouseover")&&(s.mouseleave="close"),(!t||t.type==="focusin")&&(s.focusout="close"),this._on(!0,n,s)},close:function(t){var o,i=this,n=e(t?t.currentTarget:this.element),s=this._find(n);if(!s){n.removeData("ui-tooltip-open");return}if(o=s.tooltip,s.closing)return;clearInterval(this.delayedShow),n.data("ui-tooltip-title")&&!n.attr("title")&&n.attr("title",n.data("ui-tooltip-title")),this._removeDescribedBy(n),s.hiding=!0,o.stop(!0),this._hide(o,this.options.hide,function(){i._removeTooltip(e(this))}),n.removeData("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),t&&t.type==="mouseleave"&&e.each(this.parents,function(t,n){e(n.element).attr("title",n.title),delete i.parents[t]}),s.closing=!0,this._trigger("close",t,{tooltip:o}),s.hiding||(s.closing=!1)},_tooltip:function(t){var n=e("<div>").attr("role","tooltip"),s=e("<div>").appendTo(n),o=n.uniqueId().attr("id");return this._addClass(s,"ui-tooltip-content"),this._addClass(n,"ui-tooltip","ui-widget ui-widget-content"),n.appendTo(this._appendTo(t)),this.tooltips[o]={element:t,tooltip:n}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_appendTo:function(e){var t=e.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var t=this;e.each(this.tooltips,function(n,s){var i=e.Event("blur"),o=s.element;i.target=i.currentTarget=o[0],t.close(i,!0),e("#"+n).remove(),o.data("ui-tooltip-title")&&(o.attr("title")||o.attr("title",o.data("ui-tooltip-title")),o.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),e.uiBackCompat!==!1&&e.widget("ui.tooltip",e.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var e=this._superApply(arguments);return this.options.tooltipClass&&e.tooltip.addClass(this.options.tooltipClass),e}}),fe=e.ui.tooltip})
Report a bug