!function(t){"function"==typeofdefine&&define.amd?define(["jquery"],t):t(jQuery)}(function(d){vars,i=0,a=Array.prototype.slice;returnd.cleanData=(s=d.cleanData,function(t){for(vare,i,n=0;null!=(i=t[n]);n++)try{(e=d._data(i,"events"))&&e.remove&&d(i).triggerHandler("remove")}catch(t){}s(t)}),d.widget=function(t,i,e){varn,s,o,r,a={},u=t.split(".")[0];returnt=t.split(".")[1],e||(e=i,i=d.Widget),d.expr[":"][(n=u+"-"+t).toLowerCase()]=function(t){return!!d.data(t,n)},d[u]=d[u]||{},s=d[u][t],o=d[u][t]=function(t,e){if(!this._createWidget)returnnewo(t,e);arguments.length&&this._createWidget(t,e)},d.extend(o,s,{version:e.version,_proto:d.extend({},e),_childConstructors:[]}),(r=newi).options=d.widget.extend({},r.options),d.each(e,function(e,n){functions(){returni.prototype[e].apply(this,arguments)}functiono(t){returni.prototype[e].apply(this,t)}d.isFunction(n)?a[e]=function(){vart,e=this._super,i=this._superApply;returnthis._super=s,this._superApply=o,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}:a[e]=n}),o.prototype=d.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||t},a,{constructor:o,namespace:u,widgetName:t,widgetFullName:n}),s?(d.each(s._childConstructors,function(t,e){vari=e.prototype;d.widget(i.namespace+"."+i.widgetName,o,e._proto)}),deletes._childConstructors):i._childConstructors.push(o),d.widget.bridge(t,o),o},d.widget.extend=function(t){for(vare,i,n=a.call(arguments,1),s=0,o=n.length;s<o;s++)for(einn[s])i=n[s][e],n[s].hasOwnProperty(e)&&void0!==i&&(d.isPlainObject(i)?t[e]=d.isPlainObject(t[e])?d.widget.extend({},t[e],i):d.widget.extend({},i):t[e]=i);returnt},d.widget.bridge=function(o,e){varr=e.prototype.widgetFullName||o;d.fn[o]=function(i){vart="string"==typeofi,n=a.call(arguments,1),s=this;returnt?this.each(function(){vart,e=d.data(this,r);return"instance"===i?(s=e,!1):e?d.isFunction(e[i])&&"_"!==i.charAt(0)?(t=e[i].apply(e,n))!==e&&void0!==t?(s=t&&t.jquery?s.pushStack(t.get()):t,!1):void0:d.error("no such method '"+i+"' for "+o+" widget instance"):d.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):(n.length&&(i=d.widget.extend.apply(null,[i].concat(n))),this.each(function(){vart=d.data(this,r);t?(t.option(i||{}),t._init&&t._init()):d.data(this,r,newe(i,this))})),s}},d.Widget=function(){},d.Widget._childConstructors=[],d.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,e){e=d(e||this.defaultElement||this)[0],this.element=d(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=d(),this.hoverable=d(),this.focusable=d(),e!==this&&(d.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=d(e.style?e.ownerDocument:e.document||e),this.window=d(this.document[0].defaultView||this.document[0].parentWindow)),this.options=d.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:d.noop,_getCreateEventData:d.noop,_create:d.noop,_init:d.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(d.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:d.noop,widget:function(){returnthis.element},option:function(t,e){vari,n,s,o=t;if(0===arguments.length)returnd.widget.extend({},this.options);if("string"==typeoft)if(o={},t=(i=t.split(".")).shift(),i.length){for(n=o[t]=d.widget.extend({},this.options[t]),s=0;s<i.length-1;s++)n[i[s]]=n[i[s]]||{},n=n[i[s]];if(t=i.pop(),1===arguments.length)returnvoid0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)returnvoid0===this.options[t]?null:this.options[t];o[t]=e}returnthis.