function(e){"function"==typeofdefine&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){vart,n=0,r=Array.prototype.slice;returne.cleanData=(t=e.cleanData,function(n){varr,i,o;for(o=0;null!=(i=n[o]);o++)try{(r=e._data(i,"events"))&&r.remove&&e(i).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,r){vari,o,s,a={},u=t.split(".")[0],l=u+"-"+(t=t.split(".")[1]);returnr||(r=n,n=e.Widget),e.isArray(r)&&(r=e.extend.apply(null,[{}].concat(r))),e.expr[":"][l.toLowerCase()]=function(t){return!!e.data(t,l)},e[u]=e[u]||{},i=e[u][t],o=e[u][t]=function(e,t){if(!this._createWidget)returnnewo(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,i,{version:r.version,_proto:e.extend({},r),_childConstructors:[]}),(s=newn).options=e.widget.extend({},s.options),e.each(r,(function(t,r){e.isFunction(r)?a[t]=function(){functione(){returnn.prototype[t].apply(this,arguments)}functioni(e){returnn.prototype[t].apply(this,e)}returnfunction(){vart,n=this._super,o=this._superApply;returnthis._super=e,this._superApply=i,t=r.apply(this,arguments),this._super=n,this._superApply=o,t}}():a[t]=r})),o.prototype=e.widget.extend(s,{widgetEventPrefix:i&&s.widgetEventPrefix||t},a,{constructor:o,namespace:u,widgetName:t,widgetFullName:l}),i?(e.each(i._childConstructors,(function(t,n){varr=n.prototype;e.widget(r.namespace+"."+r.widgetName,o,n._proto)})),deletei._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(varn,i,o=r.call(arguments,1),s=0,a=o.length;s<a;s++)for(nino[s])i=o[s][n],o[s].hasOwnProperty(n)&&void0!==i&&(e.isPlainObject(i)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],i):e.widget.extend({},i):t[n]=i);returnt},e.widget.bridge=function(t,n){vari=n.prototype.widgetFullName||t;e.fn[t]=function(o){vars="string"==typeofo,a=r.call(arguments,1),u=this;returns?this.length||"instance"!==o?this.each((function(){varn,r=e.data(this,i);return"instance"===o?(u=r,!1):r?e.isFunction(r[o])&&"_"!==o.charAt(0)?(n=r[o].apply(r,a))!==r&&void0!==n?(u=n&&n.jquery?u.pushStack(n.get()):n,!1):void0:e.error("no such method '"+o+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+o+"'")})):u=void0:(a.length&&(o=e.widget.extend.apply(null,[o].concat(a))),this.each((function(){vart=e.data(this,i);t?(t.option(o||{}),t._init&&t._init()):e.data(this,i,newn(o,this))}))),u}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},r!==this&&(e.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),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(){vart=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(){returnthis.element},option:function(t,n){varr,i,o,s=t;if(0===arguments.length)returne.widget.extend({},this.options);if("string"==typeoft)if(s={},r=t.split("."),t=r.shift(),r.length){for(i=s[t]=e.widget.extend({},this.options[t]),o=0;o<r.length-1;o++)i[r[o]]=i[r[o]]||{},i=i[r[o]];if(t=r.pop(),1===arguments.length)returnv