PageSourceSearch

https://fwyc.org/CMSScripts/CHO/JS/Custom/main.min.js

js fwyc.org collected 2026-09-26 15:36:24 UTC 599,318 bytes, 1 lines download raw bytes

1if(!function(e,y){"use strict";if(!y)throw new Error("Filterizr requires jQuery to work.");function _(t){this.init(t)}_.prototype={init:function(t){this.root={x:0,y:0,w:t}},fit:function(t){var e,i,s,n=t.length,o=0<n?t[0].h:0;for(this.root.h=o,e=0;e<n;e++)s=t[e],(i=this.findNode(this.root,s.w,s.h))?s.fit=this.splitNode(i,s.w,s.h):s.fit=this.growDown(s.w,s.h)},findNode:function(t,e,i){return t.used?this.findNode(t.right,e,i)||this.findNode(t.down,e,i):e<=t.w&&i<=t.h?t:null},splitNode:function(t,e,i){return t.used=!0,t.down={x:t.x,y:t.y+i,w:t.w,h:t.h-i},t.right={x:t.x+e,y:t.y,w:t.w-e,h:i},t},growDown:function(t,e){var i;return this.root={used:!0,x:0,y:0,w:this.root.w,h:this.root.h+e,down:{x:0,y:this.root.h,w:this.root.w,h:e},right:this.root},(i=this.findNode(this.root,t,e))?this.splitNode(i,t,e):null}},y.fn.filterizr=function(){var t=this,e=arguments;if(t._fltr||(t._fltr=y.fn.filterizr.prototype.init(t,"object"==typeof e[0]?e[0]:void 0)),"string"==typeof e[0]){if(-1<e[0].lastIndexOf("_"))throw new Error("Filterizr error: You cannot call private methods");if("function"!=typeof t._fltr[e[0]])throw new Error("Filterizr error: There is no such function");t._fltr[e[0]](e[1],e[2])}return t},y.fn.filterizr.prototype={init:function(t,e){var i=y(t).extend(y.fn.filterizr.prototype);return i.options={animationDuration:.5,callbacks:{onFilteringStart:function(){},onFilteringEnd:function(){},onShufflingStart:function(){},onShufflingEnd:function(){},onSortingStart:function(){},onSortingEnd:function(){}},delay:0,delayMode:"progressive",easing:"ease-out",filter:"all",filterOutCss:{opacity:0,transform:"scale(0.5)"},filterInCss:{opacity:1,transform:"scale(1)"},layout:"sameSize",setupControls:!0},0===arguments.length&&(e=i.options),(e=1===arguments.length&&"object"==typeof t?t:e)&&i.setOptions(e),i.css({padding:0,position:"relative"}),i._lastCategory=0,i._isAnimating=!1,i._isShuffling=!1,i._isSorting=!1,i._mainArray=i._getFiltrItems(),i._subArrays=i._makeSubarrays(),i._activeArray=i._getCollectionByFilter(i.options.filter),i._toggledCategories={},i._typedText=y("input[data-search]").val()||"",i._uID="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}),i._setupEvents(),i.options.setupControls&&i._setupControls(),i.filter(i.options.filter),i},filter:function(t){var e=this,i=e._getCollectionByFilter(t);e.options.filter=t,e.trigger("filteringStart"),e._handleFiltering(i),e._isSearchActivated()&&e.search(e._typedText)},toggleFilter:function(t){var e=this;e.trigger("filteringStart"),t&&(e._toggledCategories[t]?delete e._toggledCategories[t]:e._toggledCategories[t]=!0),e._multifilterModeOn()?(t=e._makeMultifilterArray(),e._handleFiltering(t)):e.filter("all"),e._isSearchActivated()&&e.search(e._typedText)},search:function(t){var e=this,i=e._multifilterModeOn()?e._makeMultifilterArray():e._getCollectionByFilter(e.options.filter),s=[],n=0;if(e._isSearchActivated())for(n=0;n<i.length;n++)-1<i[n].text().toLowerCase().indexOf(t.toLowerCase())&&s.push(i[n]);if(0<s.length)e._handleFiltering(s);else if(e._isSearchActivated())for(n=0;n<e._activeArray.length;n++)e._activeArray[n]._filterOut();else e._handleFiltering(i)},shuffle:function(){var t=this,e=(t._isAnimating=!0,t._isShuffling=!0,t.trigger("shufflingStart"),t._mainArray=t._fisherYatesShuffle(t._mainArray),t._subArrays=t._makeSubarrays(),t._multifilterModeOn()?t._makeMultifilterArray():t._getCollectionByFilter(t.options.filter));t._isSearchActivated()?t.search(t._typedText):t._placeItems(e)},sort:function(t,e){var i=this;if(t=t||"domIndex",e=e||"asc",i._isAnimating=!0,i._isSorting=!0,i.trigger("sortingStart"),"domIndex"!==t&&"sortData"!==t&&"w"!==t&&"h"!==t)for(var s=0;s<i._mainArray.length;s++)i._mainArray[s][t]=i._mainArray[s].data(t);i._mainArray.sort(i._comparator(t,e)),i._subArrays=i._makeSubarrays();e=i._multifilterModeOn()?i._makeMultifilterArray():i._getCollectionByFilter(i.options.filter);i._isSearchActivated()?i.search(i._typedText):i._placeItems(e)},setOptions:function(t){var e,i=this,s=0;for(e in t)i.options[e]=t[e];if(i._mainArray&&(t.animationDuration||t.delay||t.easing||t.delayMode))for(s=0;s<i._mainArray.length;s++)i._mainArray[s].css("transition","all "+i.options.animationDuration+"s "+i.options.easing+" "+i._mainArray[s]._calcDelay()+"ms");t.callbacks&&(t.callbacks.onFilteringStart||(i.options.callbacks.onFilteringStart=function(){}),t.callbacks.onFilteringEnd||(i.options.callbacks.onFilteringEnd=function(){}),t.callbacks.onShufflingStart||(i.options.callbacks.onShufflingStart=function(){}),t.callbacks.onShufflingEnd||(i.options.callbacks.onShufflingEnd=function(){}),t.callbacks.onSortingStart||(i.options.callbacks.onSortingStart=function(){}),t.callbacks.onSortingEnd||(i.options.callbacks.onSortingEnd=function(){})),i.options.filterInCss.transform||(i.options.filterInCss.transform="translate3d(0,
10,0)"),i.options.filterOutCss.transform||(i.options.filterOutCss.transform="translate3d(0,0,0)")},_getFiltrItems:function(){var i=this,t=y(i.find(".filtr-item")),s=[];return y.each(t,function(t,e){e=y(e).extend(n)._init(t,i);s.push(e)}),s},_makeSubarrays:function(){for(var t=this,e=[],i=0;i<t._lastCategory;i++)e.push([]);for(i=0;i<t._mainArray.length;i++)if("object"==typeof t._mainArray[i]._category)for(var s=t._mainArray[i]._category.length,n=0;n<s;n++)e[t._mainArray[i]._category[n]-1].push(t._mainArray[i]);else e[t._mainArray[i]._category-1].push(t._mainArray[i]);return e},_makeMultifilterArray:function(){for(var t=[],e={},i=0;i<this._mainArray.length;i++){var s=this._mainArray[i],n=!1,o=s.domIndex in e==0;if(Array.isArray(s._category)){for(var r=0;r<s._category.length;r++)if(s._category[r]in this._toggledCategories){n=!0;break}}else s._category in this._toggledCategories&&(n=!0);o&&n&&(e[s.domIndex]=!0,t.push(s))}return t},_setupControls:function(){var e=this;y("*[data-filter]").click(function(){var t=y(this).data("filter");e.options.filter!==t&&e.filter(t)}),y("*[data-multifilter]").click(function(){var t=y(this).data("multifilter");"all"===t?(e._toggledCategories={},e.filter("all")):e.toggleFilter(t)}),y("*[data-shuffle]").click(function(){e.shuffle()}),y("*[data-sortAsc]").click(function(){var t=y("*[data-sortOrder]").val();e.sort(t,"asc")}),y("*[data-sortDesc]").click(function(){var t=y("*[data-sortOrder]").val();e.sort(t,"desc")}),y("input[data-search]").keyup(function(){e._typedText=y(this).val(),e._delayEvent(function(){e.search(e._typedText)},250,e._uID)})},_setupEvents:function(){var t=this;y(e).resize(function(){t._delayEvent(function(){t.trigger("resizeFiltrContainer")},250,t._uID)}),t.on("resizeFiltrContainer",function(){t._multifilterModeOn()?t.toggleFilter():t.filter(t.options.filter)}).on("filteringStart",function(){t.options.callbacks.onFilteringStart()}).on("filteringEnd",function(){t.options.callbacks.onFilteringEnd()}).on("shufflingStart",function(){t._isShuffling=!0,t.options.callbacks.onShufflingStart()}).on("shufflingEnd",function(){t.options.callbacks.onShufflingEnd(),t._isShuffling=!1}).on("sortingStart",function(){t._isSorting=!0,t.options.callbacks.onSortingStart()}).on("sortingEnd",function(){t.options.callbacks.onSortingEnd(),t._isSorting=!1})},_calcItemPositions:function(){var t=this,e=t._activeArray,i=0,s=Math.round(t.width()/t.find(".filtr-item").outerWidth()),n=0,o=e[0].outerWidth(),r=0,a=0,l=0,h=0,c=0,u=[];if("packed"===t.options.layout){y.each(t._activeArray,function(t,e){e._updateDimensions()});var d=new _(t.outerWidth());for(d.fit(t._activeArray),h=0;h<e.length;h++)u.push({left:e[h].fit.x,top:e[h].fit.y});i=d.root.h}if("horizontal"===t.options.layout)for(h=n=1;h<=e.length;h++)o=e[h-1].outerWidth(),r=e[h-1].outerHeight(),u.push({left:a,top:l}),a+=o,i<r&&(i=r);else if("vertical"===t.options.layout){for(h=1;h<=e.length;h++)r=e[h-1].outerHeight(),u.push({left:a,top:l}),l+=r;i=l}else if("sameHeight"===t.options.layout){for(var n=1,p=t.outerWidth(),h=1;h<=e.length;h++){var o=e[h-1].width(),f=e[h-1].outerWidth(),g=0;e[h]&&(g=e[h].width()),u.push({left:a,top:l}),(c=a+o+g)>p?(l+=e[a=c=0].outerHeight(),n++):a+=f}i=n*e[0].outerHeight()}else if("sameWidth"===t.options.layout){for(h=1;h<=e.length;h++){if(u.push({left:a,top:l}),h%s==0&&n++,a+=o,(l=0)<n)for(c=n;0<c;)l+=e[h-s*c].outerHeight(),c--;h%s==0&&(a=0)}for(h=0;h<s;h++){for(var m=0,v=h;e[v];)m+=e[v].outerHeight(),v+=s;m=(i<m&&(i=m),0)}}else if("sameSize"===t.options.layout){for(h=1;h<=e.length;h++)u.push({left:a,top:l}),a+=o,h%s==0&&(l+=e[0].outerHeight(),a=0);i=(n=Math.ceil(e.length/s))*e[0].outerHeight()}return t.css("height",i),u},_handleFiltering:function(t){for(var e=this._getArrayOfUniqueItems(this._activeArray,t),i=0;i<e.length;i++)e[i]._filterOut();this._activeArray=t,this._placeItems(t)},_multifilterModeOn:function(){return 0<Object.keys(this._toggledCategories).length},_isSearchActivated:function(){return 0<this._typedText.length},_placeItems:function(t){this._isAnimating=!0,this._itemPositions=this._calcItemPositions();for(var e=0;e<t.length;e++)t[e]._filterIn(this._itemPositions[e])}
1,_getCollectionByFilter:function(t){return"all"===t?this._mainArray:this._subArrays[t-1]},_makeDeepCopy:function(t){var e,i={};for(e in t)i[e]=t[e];return i},_comparator:function(i,s){return function(t,e){return"asc"===s?t[i]<e[i]?-1:t[i]>e[i]?1:0:"desc"===s?e[i]<t[i]?-1:e[i]>t[i]?1:0:void 0}},_getArrayOfUniqueItems:function(t,e){for(var i,s=[],n={},o=e.length,r=0;r<o;r++)n[e[r].domIndex]=!0;for(o=t.length,r=0;r<o;r++)(i=t[r]).domIndex in n||s.push(i);return s},_delayEvent:(s={},function(t,e,i){if(null===i)throw Error("UniqueID needed");s[i]&&clearTimeout(s[i]),s[i]=setTimeout(t,e)}),_fisherYatesShuffle:function(t){for(var e,i,s=t.length;s;)i=Math.floor(Math.random()*s--),e=t[s],t[s]=t[i],t[i]=e;return t}};var s,n={_init:function(t,e){var i=this;return i._parent=e,i._category=i._getCategory(),i._lastPos={},i.domIndex=t,i.sortData=i.data("sort"),i.w=0,i.h=0,i._isFilteredOut=!0,i._filteringOut=!1,i._filteringIn=!1,i.css(e.options.filterOutCss).css({"-webkit-backface-visibility":"hidden",perspective:"1000px","-webkit-perspective":"1000px","-webkit-transform-style":"preserve-3d",position:"absolute",transition:"all "+e.options.animationDuration+"s "+e.options.easing+" "+i._calcDelay()+"ms"}),i.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){i._onTransitionEnd()}),i},_updateDimensions:function(){this.w=this.outerWidth(),this.h=this.outerHeight()},_calcDelay:function(){var t=this,e=0;return"progressive"===t._parent.options.delayMode?e=t._parent.options.delay*t.domIndex:t.domIndex%2==0&&(e=t._parent.options.delay),e},_getCategory:function(){var t=this;if("string"==typeof(e=t.data("category")))for(var e=e.split(", "),i=0;i<e.length;i++){if(isNaN(parseInt(e[i])))throw new Error("Filterizr: the value of data-category must be a number, starting from value 1 and increasing.");parseInt(e[i])>t._parent._lastCategory&&(t._parent._lastCategory=parseInt(e[i]))}else e>t._parent._lastCategory&&(t._parent._lastCategory=e);return e},_onTransitionEnd:function(){var t=this;t._filteringOut?(y(t).addClass("filteredOut"),t._isFilteredOut=!0,t._filteringOut=!1):t._filteringIn&&(t._isFilteredOut=!1,t._filteringIn=!1),t._parent._isAnimating&&(t._parent._isShuffling?t._parent.trigger("shufflingEnd"):t._parent._isSorting?t._parent.trigger("sortingEnd"):t._parent.trigger("filteringEnd"),t._parent._isAnimating=!1)},_filterOut:function(){var t=this,e=t._parent._makeDeepCopy(t._parent.options.filterOutCss);e.transform+=" translate3d("+t._lastPos.left+"px,"+t._lastPos.top+"px, 0)",t.css(e),t.css("pointer-events","none"),t._filteringOut=!0},_filterIn:function(t){var e=this,i=e._parent._makeDeepCopy(e._parent.options.filterInCss);y(e).removeClass("filteredOut"),e._filteringIn=!0,e._lastPos=t,e.css("pointer-events","auto"),i.transform+=" translate3d("+t.left+"px,"+t.top+"px, 0)",e.css(i)}}}(this,jQuery),!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(k){function t(){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:""}
1,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},k.extend(this._defaults,this.regional[""]),this.regional.en=k.extend(!0,{},this.regional[""]),this.regional["en-US"]=k.extend(!0,{},this.regional.en),this.dpDiv=i(k("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function i(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){k(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&k(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&k(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,o)}function o(){k.datepicker._isDisabledDatepicker((A.inline?A.dpDiv.parent():A.input)[0])||(k(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),k(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&k(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&k(this).addClass("ui-datepicker-next-hover"))}function l(t,e){for(var i in k.extend(t,e),e)null==e[i]&&(t[i]=e[i])}function e(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}k.ui=k.ui||{},k.ui.version="1.12.1";var j,s,C,T,n,r,a,h,c,H,L,F=0,R=Array.prototype.slice;function z(t,e,i){return[parseFloat(t[0])*(c.test(t[0])?e/100:1),parseFloat(t[1])*(c.test(t[1])?i/100:1)]}function x(t,e){return parseInt(k.css(t,e),10)||0}k.cleanData=(L=k.cleanData,function(t){for(var e,i,s=0;null!=(i=t[s]);s++)try{(e=k._data(i,"events"))&&e.remove&&k(i).triggerHandler("remove")}catch(t){}L(t)}),k.widget=function(t,i,e){var s,n,o,r={},a=t.split(".")[0],l=a+"-"+(t=t.split(".")[1]);return e||(e=i,i=k.Widget),k.isArray(e)&&(e=k.extend.apply(null,[{}].concat(e))),k.expr[":"][l.toLowerCase()]=function(t){return!!k.data(t,l)},k[a]=k[a]||{},s=k[a][t],n=k[a][t]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new n(t,e)},k.extend(n,s,{version:e.version,_proto:k.extend({},e),_childConstructors:[]}),(o=new i).options=k.widget.extend({},o.options),k.each(e,function(e,s){return k.isFunction(s)?void(r[e]=function(){var t,e=this._super,i=this._superApply;return this._super=n,this._superApply=o,t=s.apply(this,arguments),this._super=e,this._superApply=i,t}):void(r[e]=s);function n(){return i.prototype[e].apply(this,arguments)}function o(t){return i.prototype[e].apply(this,t)}}),n.prototype=k.widget.extend(o,{widgetEventPrefix:s&&o.widgetEventPrefix||t},r,{constructor:n,namespace:a,widgetName:t,widgetFullName:l}),s?(k.each(s._childConstructors,function(t,e){var i=e.prototype;k.widget(i.namespace+"."+i.widgetName,n,e._proto)}),delete s._childConstructors):i._childConstructors.push(n),k.widget.bridge(t,n),n},k.widget.extend=function(t){for(var e,i,s=R.call(arguments,1),n=0,o=s.length;n<o;n++)for(e in s[n])i=s[n][e],s[n].hasOwnProperty(e)&&void 0!==i&&(t[e]=k.isPlainObject(i)?k.isPlainObject(t[e])?k.widget.extend({},t[e],i):k.widget.extend({},i):i);return t},k.widget.bridge=function(o,e){var r=e.prototype.widgetFullName||o;k.fn[o]=function(i){var t="string"==typeof i,s=R.call(arguments,1),n=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=k.data(this,r);return"instance"===i?(n=e,!1):e?k.isFunction(e[i])&&"_"!==i.charAt(0)?(t=e[i].apply(e,s))!==e&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:k.error("no such method '"+i+"' for "+o+" widget instance"):k.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):n=void 0:(s.length&&(i=k.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=k.data(this,r);t?(t.option(i||{}),t._init&&t._init()):k.data(this,r,new e(i,this))})),n}},k.Widget=function(){},k.Widget._childConstructors=[],k.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=k(e||this.defaultElement||this)[0],this.element=k(e),this.uuid=F++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=k(),this.hoverable=k(),this.focusable=k(),this.classesElementLookup={},e!==this&&(k.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=k(e.style?e.ownerDocument:e.document||e),this.window=k(this.document[0].defaultView||this.document[0].parentWindow)),this.options=k.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:k.noop,_create:k.noop,_init:k.noop,destroy:function(){var i=this;this._destroy(),k.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:k.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,o=t;if(0===arguments.length)return k.widget.extend({},this.options);
vendor: 4,233 bytes, line 1
1if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(s=o[t]=k.widget.extend({},this.options[t]),n=0;i.length-1>n;n++)s[i[n]]=s[i[n]]||{},s=s[i[n]];if(t=i.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=e}return this._setOptions(o),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,s;for(e in t)s=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&s&&s.length&&(i=k(s.get()),this._removeClass(s,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(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(n){function t(t,e){for(var i,s=0;t.length>s;s++)i=r.classesElementLookup[t[s]]||k(),i=n.add?k(k.unique(i.get().concat(n.element.get()))):k(i.not(n.element).get()),r.classesElementLookup[t[s]]=i,o.push(t[s]),e&&n.classes[t[s]]&&o.push(n.classes[t[s]])}var o=[],r=this;return n=k.extend({element:this.element,classes:this.options.classes||{}},n),this._on(n.element,{remove:"_untrackClassesElement"}),n.keys&&t(n.keys.match(/\S+/g)||[],!0),n.extra&&t(n.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(i){var s=this;k.each(s.classesElementLookup,function(t,e){-1!==k.inArray(i.target,e)&&(s.classesElementLookup[t]=k(e.not(i.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){var n="string"==typeof t||null===t,e={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s="boolean"==typeof s?s:i};return e.element.toggleClass(this._classes(e),s),this},_on:function(n,o,t){var r,a=this;"boolean"!=typeof n&&(t=o,o=n,n=!1),t?(o=r=k(o),this.bindings=this.bindings.add(o)):(t=o,o=this.element,r=this.widget()),k.each(t,function(t,e){function i(){return n||!0!==a.options.disabled&&!k(this).hasClass("ui-state-disabled")?("string"==typeof e?a[e]:e).apply(a,arguments):void 0}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||k.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),s=t[1]+a.eventNamespace,t=t[2];t?r.on(s,t,i):o.on(s,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e).off(e),this.bindings=k(this.bindings.not(t).get()),this.focusable=k(this.focusable.not(t).get()),this.hoverable=k(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(k(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(k(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(k(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(k(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var s,n,o=this.options[t];if(i=i||{},(e=k.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],n=e.originalEvent)for(s in n)s in e||(e[s]=n[s]);return this.element.trigger(e,i),!(k.isFunction(o)&&!1===o.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},k.each({show:"fadeIn",hide:"fadeOut"},function(o,r){k.Widget.prototype["_"+o]=function(e,t,i){var s=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:o,n=!k.isEmptyObject(t="number"==typeof(t=t||{})?{duration:t}:t);t.complete=i,t.delay&&e.delay(t.delay),n&&k.effects&&k.effects.effect[s]?e[o](t):s!==o&&e[s]?e[s](t.duration,t.easing,i):e.queue(function(t){k(this)[o](),i&&i.call(e[0]),t()})}}
vendor: 4,388 bytes, line 1
1),k.widget,C=Math.max,T=Math.abs,n=/left|center|right/,r=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,h=/^\w+/,c=/%$/,H=k.fn.position,k.position={scrollbarWidth:function(){if(void 0!==s)return s;var t,e=k("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),i=e.children()[0];return k("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),s=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?k.position.scrollbarWidth():0,height:e?k.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=k(t||window),i=k.isWindow(e[0]),s=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:s,offset:!i&&!s?k(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},k.fn.position=function(u){if(!u||!u.of)return H.apply(this,arguments);u=k.extend({},u);var d,p,f,g,m,t,v=k(u.of),y=k.position.getWithinInfo(u.within),_=k.position.getScrollInfo(y),b=(u.collision||"flip").split(" "),w={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:k.isWindow(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()};return v[0].preventDefault&&(u.at="left top"),p=e.width,f=e.height,m=k.extend({},g=e.offset),k.each(["my","at"],function(){var t,e,i=(u[this]||"").split(" ");(i=1===i.length?n.test(i[0])?i.concat(["center"]):r.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=n.test(i[0])?i[0]:"center",i[1]=r.test(i[1])?i[1]:"center",t=a.exec(i[0]),e=a.exec(i[1]),w[this]=[t?t[0]:0,e?e[0]:0],u[this]=[h.exec(i[0])[0],h.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===u.at[0]?m.left+=p:"center"===u.at[0]&&(m.left+=p/2),"bottom"===u.at[1]?m.top+=f:"center"===u.at[1]&&(m.top+=f/2),d=z(w.at,p,f),m.left+=d[0],m.top+=d[1],this.each(function(){var i,t,r=k(this),a=r.outerWidth(),l=r.outerHeight(),e=x(this,"marginLeft"),s=x(this,"marginTop"),n=a+e+x(this,"marginRight")+_.width,o=l+s+x(this,"marginBottom")+_.height,h=k.extend({},m),c=z(w.my,r.outerWidth(),r.outerHeight());"right"===u.my[0]?h.left-=a:"center"===u.my[0]&&(h.left-=a/2),"bottom"===u.my[1]?h.top-=l:"center"===u.my[1]&&(h.top-=l/2),h.left+=c[0],h.top+=c[1],i={marginLeft:e,marginTop:s},k.each(["left","top"],function(t,e){k.ui.position[b[t]]&&k.ui.position[b[t]][e](h,{targetWidth:p,targetHeight:f,elemWidth:a,elemHeight:l,collisionPosition:i,collisionWidth:n,collisionHeight:o,offset:[d[0]+c[0],d[1]+c[1]],my:u.my,at:u.at,within:y,elem:r})}),u.using&&(t=function(t){var e=g.left-h.left,i=e+p-a,s=g.top-h.top,n=s+f-l,o={target:{element:v,left:g.left,top:g.top,width:p,height:f},element:{element:r,left:h.left,top:h.top,width:a,height:l},horizontal:i<0?"left":0<e?"right":"center",vertical:n<0?"top":0<s?"bottom":"middle"};p<a&&p>T(e+i)&&(o.horizontal="center"),f<l&&f>T(s+n)&&(o.vertical="middle"),o.important=C(T(e),T(i))>C(T(s),T(n))?"horizontal":"vertical",u.using.call(this,t,o)}),r.offset(k.extend(h,{using:t}))})},k.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,s=s.width,o=t.left-e.collisionPosition.marginLeft,r=n-o,a=o+e.collisionWidth-s-n;e.collisionWidth>s?0<r&&a<=0?(i=t.left+r+e.collisionWidth-s-n,t.left+=r-i):t.left=!(0<a&&r<=0)&&a<r?n+s-e.collisionWidth:n:0<r?t.left+=r:0<a?t.left-=a:t.left=C(t.left-o,t.left)},top:function(t,e){var i,s=e.within,s=s.isWindow?s.scrollTop:s.offset.top,n=e.within.height,o=t.top-e.collisionPosition.marginTop,r=s-o,a=o+e.collisionHeight-n-s;e.collisionHeight>n?0<r&&a<=0?(i=t.top+r+e.collisionHeight-n-s,t.top+=r-i):t.top=!(0<a&&r<=0)&&a<r?s+n-e.collisionHeight:s:0<r?t.top+=r:0<a?t.top-=a:t.top=C(t.top-o,t.top)}},flip:{left:function(t,e){var i=e.within,s=i.offset.left+i.scrollLeft,n=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,o=t.left-e.collisionPosition.marginLeft,r=o-i,o=o+e.collisionWidth-n-i,a="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,l="left"
1===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((n=t.left+a+l+h+e.collisionWidth-n-s)<0||T(r)>n)&&(t.left+=a+l+h):0<o&&((0<(s=t.left-e.collisionPosition.marginLeft+a+l+h-i)||o>T(s))&&(t.left+=a+l+h))},top:function(t,e){var i=e.within,s=i.offset.top+i.scrollTop,n=i.height,i=i.isWindow?i.scrollTop:i.offset.top,o=t.top-e.collisionPosition.marginTop,r=o-i,o=o+e.collisionHeight-n-i,a="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,l="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((n=t.top+a+l+h+e.collisionHeight-n-s)<0||T(r)>n)&&(t.top+=a+l+h):0<o&&((0<(s=t.top-e.collisionPosition.marginTop+a+l+h-i)||o>T(s))&&(t.top+=a+l+h))}},flipfit:{left:function(){k.ui.position.flip.left.apply(this,arguments),k.ui.position.fit.left.apply(this,arguments)},top:function(){k.ui.position.flip.top.apply(this,arguments),k.ui.position.fit.top.apply(this,arguments)}}},k.ui.position,k.extend(k.expr[":"],{data:k.expr.createPseudo?k.expr.createPseudo(function(e){return function(t){return!!k.data(t,e)}}):function(t,e,i){return!!k.data(t,i[3])}}),k.fn.extend({disableSelection:(j="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(j+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var u,B,W,V,U,Y,q,K,X,G,d,p,f,Q,J,g,m,v,y,_,b,w="ui-effects-",S="ui-effects-style",E="ui-effects-animated",Z=k;function $(t,e,i,s){return t={effect:t=k.isPlainObject(t)?(e=t).effect:t},k.isFunction(e=null==e?{}:e)&&(s=e,i=null,e={}),"number"!=typeof e&&!k.fx.speeds[e]||(s=i,i=e,e={}),k.isFunction(i)&&(s=i,i=null),e&&k.extend(t,e),i=i||e.duration,t.duration=k.fx.off?0:"number"==typeof i?i:i in k.fx.speeds?k.fx.speeds[i]:k.fx.speeds._default,t.complete=s||e.complete,t}function D(t){return!t||"number"==typeof t||k.fx.speeds[t]||("string"==typeof t&&!k.effects.effect[t]||(k.isFunction(t)||"object"==typeof t&&!t.effect))}function tt(t,e){var i=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,i,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?i:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}function et(t){var e,i,s=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,n={};if(s&&s.length&&s[0]&&s[s[0]])for(i=s.length;i--;)"string"==typeof s[e=s[i]]&&(n[k.camelCase(e)]=s[e]);else for(e in s)"string"==typeof s[e]&&(n[e]=s[e]);return n}function P(t,e,i){var s=v[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:t<0?0:t>s.max?s.max:t)}function it(s){var n=g(),o=n._rgba=[];return s=s.toLowerCase(),b(J,function(t,e){var i=e.re.exec(s),i=i&&e.parse(i),e=e.space||"rgba";return i?(i=n[e](i),n[m[e].cache]=i[m[e].cache],o=n._rgba=i._rgba,!1):p}),o.length?("0,0,0,0"===o.join()&&d.extend(o,f.transparent),n):f[s]}function I(t,e,i){return 6*(i=(i+1)%1)<1?t+6*(e-t)*i:2*i<1?e:3*i<2?t+6*(e-t)*(2/3-i):t}k.effects={effect:{}},Q=/^([\-+])=\s*(\d+\.?\d*)/,J=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],g=(d=Z).Color=function(t,e,i,s){return new d.Color.fn.parse(t,e,i,s)},m={rgba:{props:{red:{idx:0,type:"byte"}
vendor: 3,455 bytes, line 1
1,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"}}}},v={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},y=g.support={},_=d("<p>")[0],b=d.each,_.style.cssText="background-color:rgba(1,1,1,.5)",y.rgba=-1<_.style.backgroundColor.indexOf("rgba"),b(m,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),(g.fn=d.extend(g.prototype,{parse:function(n,t,e,i){if(n===p)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=d(n).css(t),t=p);var o=this,s=d.type(n),r=this._rgba=[];return t!==p&&(n=[n,t,e,i],s="array"),"string"===s?this.parse(it(n)||f._default):"array"===s?(b(m.rgba.props,function(t,e){r[e.idx]=P(n[e.idx],e)}),this):"object"===s?(b(m,n instanceof g?function(t,e){n[e.cache]&&(o[e.cache]=n[e.cache].slice())}:function(t,i){var s=i.cache;b(i.props,function(t,e){if(!o[s]&&i.to){if("alpha"===t||null==n[t])return;o[s]=i.to(o._rgba)}o[s][e.idx]=P(n[t],e,!0)}),o[s]&&d.inArray(null,o[s].slice(0,3))<0&&(o[s][3]=1,i.from&&(o._rgba=i.from(o[s])))}),this):p},is:function(t){var n=g(t),o=!0,r=this;return b(m,function(t,e){var i,s=n[e.cache];return s&&(i=r[e.cache]||e.to&&e.to(r._rgba)||[],b(e.props,function(t,e){return null!=s[e.idx]?o=s[e.idx]===i[e.idx]:p})),o}),o},_space:function(){var i=[],s=this;return b(m,function(t,e){s[e.cache]&&i.push(t)}),i.pop()},transition:function(t,r){var t=(h=g(t))._space(),e=m[t],i=0===this.alpha()?g("transparent"):this,a=i[e.cache]||e.to(i._rgba),l=a.slice(),h=h[e.cache];return b(e.props,function(t,e){var i=e.idx,s=a[i],n=h[i],o=v[e.type]||{};null!==n&&(null===s?l[i]=n:(o.mod&&(n-s>o.mod/2?s+=o.mod:s-n>o.mod/2&&(s-=o.mod)),l[i]=P((n-s)*r+s,e)))}),this[t](l)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),s=g(t)._rgba;return g(d.map(e,function(t,e){return(1-i)*s[e]+i*t}))},toRgbaString:function(){var t="rgba(",e=d.map(this._rgba,function(t,e){return null==t?2<e?1:0:t});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=d.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),t=e&&e<3?Math.round(100*t)+"%":t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),i=e.pop();return t&&e.push(~~(255*i)),"#"+d.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}})).parse.prototype=g.fn,m.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/255,i=t[1]/255,s=t[2]/255,t=t[3],n=Math.max(e,i,s),o=Math.min(e,i,s),r=n-o,a=n+o,l=.5*a,a=0==r?0:l<=.5?r/a:r/(2-a);return[Math.round(o===n?0:e===n?60*(i-s)/r+360:i===n?60*(s-e)/r+120:60*(e-i)/r+240)%360,a,l,null==t?1:t]},m.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],s=t[2],t=t[3],i=s<=.5?s*(1+i):s+i-s*i,s=2*s-i;return[Math.round(255*I(s,i,e+1/3)),Math.round(255*I(s,i,e)),Math.round(255*I(s,i,e-1/3)),t]},b(m,function(a,t){var o=t.props,r=t.cache,l=t.to,h=t.from;g.fn[a]=function(t){if(l&&!this[r]&&(this[r]=l(this._rgba)),t===p)return this[r].slice();var e,i=d.type(t),s="array"===i||"object"===i?t:arguments,n=this[r].slice();return b(o,function(t,e){t=s["object"===i?t:e.idx];null==t&&(t=n[e.idx]),n[e.idx]=P(t,e)}),h?((e=g(h(n)))[r]=n,e):g(n)}
vendor: 27,265 bytes, line 1
1,b(o,function(o,r){g.fn[o]||(g.fn[o]=function(t){var e=d.type(t),i="alpha"===o?this._hsla?"hsla":"rgba":a,s=this[i](),n=s[r.idx];return"undefined"===e?n:("function"===e&&(t=t.call(this,n),e=d.type(t)),null==t&&r.empty?this:("string"===e&&((e=Q.exec(t))&&(t=n+parseFloat(e[2])*("+"===e[1]?1:-1))),s[r.idx]=t,this[i](s)))})})}),(g.hook=function(t){t=t.split(" ");b(t,function(t,o){d.cssHooks[o]={set:function(t,e){var i,s,n="";if("transparent"!==e&&("string"!==d.type(e)||(i=it(e)))){if(e=g(i||e),!y.rgba&&1!==e._rgba[3]){for(s="backgroundColor"===o?t.parentNode:t;(""===n||"transparent"===n)&&s&&s.style;)try{n=d.css(s,"backgroundColor"),s=s.parentNode}catch(t){}e=e.blend(n&&"transparent"!==n?n:"_default")}e=e.toRgbaString()}try{t.style[o]=e}catch(t){}}},d.fx.step[o]=function(t){t.colorInit||(t.start=g(t.elem,o),t.end=g(t.end),t.colorInit=!0),d.cssHooks[o].set(t.elem,t.start.transition(t.end,t.pos))}})})("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),d.cssHooks.borderColor={expand:function(i){var s={};return b(["Top","Right","Bottom","Left"],function(t,e){s["border"+e+"Color"]=i}),s}},f=d.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"},X=["add","remove","toggle"],G={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},k.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){k.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(Z.style(t.elem,e,t.end),t.setAttr=!0)}}),k.fn.addBack||(k.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),k.effects.animateClass=function(n,t,e,i){var o=k.speed(t,e,i);return this.queue(function(){var i=k(this),t=i.attr("class")||"",e=(e=o.children?i.find("*").addBack():i).map(function(){return{el:k(this),start:et(this)}}),s=function(){k.each(X,function(t,e){n[e]&&i[e+"Class"](n[e])})};s(),e=e.map(function(){return this.end=et(this.el[0]),this.diff=function(t,e){var i,s,n={};for(i in e)s=e[i],t[i]===s||G[i]||!k.fx.step[i]&&isNaN(parseFloat(s))||(n[i]=s);return n}(this.start,this.end),this}),i.attr("class",t),e=e.map(function(){var t=this,e=k.Deferred(),i=k.extend({},o,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,i),e.promise()}),k.when.apply(k,e.get()).done(function(){s(),k.each(arguments,function(){var e=this.el;k.each(this.diff,function(t){e.css(t,"")})}),o.complete.call(i[0])})})},k.fn.extend({addClass:(K=k.fn.addClass,function(t,e,i,s){return e?k.effects.animateClass.call(this,{add:t},e,i,s):K.apply(this,arguments)}),removeClass:(q=k.fn.removeClass,function(t,e,i,s){return 1<arguments.length?k.effects.animateClass.call(this,{remove:t},e,i,s):q.apply(this,arguments)}),toggleClass:(Y=k.fn.toggleClass,function(t,e,i,s,n){return"boolean"==typeof e||void 0===e?i?k.effects.animateClass.call(this,e?{add:t}:{remove:t},i,s,n):Y.apply(this,arguments):k.effects.animateClass.call(this,{toggle:t},e,i,s)}),switchClass:function(t,e,i,s,n){return k.effects.animateClass.call(this,{add:e,remove:t},i,s,n)}}),k.expr&&k.expr.filters&&k.expr.filters.animated&&(k.expr.filters.animated=(U=k.expr.filters.animated,function(t){return!!k(t).data(E)||U(t)})),!1!==k.uiBackCompat&&k.extend(k.effects,{save:function(t,e){for(var i=0,s=e.length;i<s;i++)null!==e[i]&&t.data(w+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,s=0,n=e.length;s<n;s++)null!==e[s]&&(i=t.data(w+e[s]),t.css(e[s],i))},setMode:function(t,e){return e="toggle"===e?t.is(":hidden")?"show":"hide":e},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var s={width:i.outerWidth(!0),height:i.outerHeight(!0),float:i.css("float")},t=k("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},n=document.activeElement;try{n.id}catch(t){n=document.body}return i.wrap(t),i[0]!==n&&!k.contains(i[0],n)||k(n).trigger("focus"),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(k.extend(s,{position:i.css("position"),zIndex:i.css("z-index")}),k.each(["top","left","bottom","right"],function(t,e){s[e]=i.css(e),isNaN(parseInt(s[e],10))&&(s[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(s).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!k.contains(t[0],e)||k(e).trigger("focus")),t}}),k.extend(k.effects,{version:"1.12.1",define:function(t,e,i){return i||(i=e,e="effect"),k.effects.effect[t]=i,k.effects.effect[t].mode=e,i},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var s="horizontal"!==i?(e||100)/100:1,i="vertical"!==i?(e||100)/100:1;return{height:t.height()*i,width:t.width()*s,outerHeight:t.outerHeight()*i,outerWidth:t.outerWidth()*s}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var s=t.queue();1<e&&s.splice.apply(s,[1,0].concat(s.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(S,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(S)||"",t.removeData(S)},mode:function(t,e){t=t.is(":hidden");return"toggle"===e&&(e=t?"show":"hide"),e=(t?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createPlaceholder:function(t){var e,i=t.css("position"),s=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(i)&&(i="absolute",e=k("<"+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(w+"placeholder",e)),t.css({position:i,left:s.left,top:s.top}),e},removePlaceholder:function(t){var e=w+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(t){k.effects.restoreStyle(t),k.effects.removePlaceholder(t)},setTransition:function(s,t,n,o){return o=o||{},k.each(t,function(t,e){var i=s.cssUnit(e);0<i[0]&&(o[e]=i[0]*n+i[1])}),o}}),k.fn.extend({effect:function(){function t(t){function e(){k.isFunction(a)&&a.call(i[0]),k.isFunction(t)&&t()}var i=k(this);s.mode=h.shift(),!1===k.uiBackCompat||o?"none"===s.mode?(i[l](),e()):n.call(i[0],s,function(){i.removeData(E),k.effects.cleanUp(i),"hide"===s.mode&&i.hide(),e()}):(i.is(":hidden")?"hide"===l:"show"===l)?(i[l](),e()):n.call(i[0],s,e)}function e(t){var e=k(this),i=k.effects.mode(e,l)||o;e.data(E,!0),h.push(i),o&&("show"===i||i===o&&"hide"===i)&&e.show(),o&&"none"===i||k.effects.saveStyle(e),k.isFunction(t)&&t()}var s=$.apply(this,arguments),n=k.effects.effect[s.effect],o=n.mode,i=s.queue,r=i||"fx",a=s.complete,l=s.mode,h=[];return k.fx.off||!n?l?this[l](s.duration,a):this.each(function(){a&&a.call(this)}):!1===i?this.each(e).each(t):this.queue(r,e).queue(r,t)},show:(V=k.fn.show,function(t){if(D(t))return V.apply(this,arguments);var e=$.apply(this,arguments);return e.mode="show",this.effect.call(this,e)}),hide:(W=k.fn.hide,function(t){if(D(t))return W.apply(this,arguments);var e=$.apply(this,arguments);return e.mode="hide",this.effect.call(this,e)}),toggle:(B=k.fn.toggle,function(t){if(D(t)||"boolean"==typeof t)return B.apply(this,arguments);var e=$.apply(this,arguments);return e.mode="toggle",this.effect.call(this,e)}),cssUnit:function(t){var i=this.css(t),s=[];return k.each(["em","px","%","pt"],function(t,e){0<i.indexOf(e)&&(s=[parseFloat(i),e])}),s},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):tt(this.css("clip"),this)},transfer:function(t,e){var i=k(this),s=k(t.to),n="fixed"===s.css("position"),o=k("body"),r=n?o.scrollTop():0,o=n?o.scrollLeft():0,a=s.offset(),a={top:a.top-r,left:a.left-o,height:s.innerHeight(),width:s.innerWidth()},s=i.offset(),l=k("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({top:s.top-r,left:s.left-o,height:i.innerHeight(),width:i.innerWidth(),position:n?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){l.remove(),k.isFunction(e)&&e()})}}),k.fx.step.clip=function(t){t.clipInit||(t.start=k(t.elem).cssClip(),"string"==typeof t.end&&(t.end=tt(t.end,t.elem)),t.clipInit=!0),k(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})},u={},k.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){u[t]=function(t){return Math.pow(t,e+2)}}),k.extend(u,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),k.each(u,function(t,e){k.easing["easeIn"+t]=e,k.easing["easeOut"+t]=function(t){return 1-e(1-t)},k.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}});k.effects;k.effects.define("blind","hide",function(t,e){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},s=k(this),n=t.direction||"up",o=s.cssClip(),r={clip:k.extend({},o)},a=k.effects.createPlaceholder(s);r.clip[i[n][0]]=r.clip[i[n][1]],"show"===t.mode&&(s.cssClip(r.clip),a&&a.css(k.effects.clipToBox(r)),r.clip=o),a&&a.animate(k.effects.clipToBox(r),t.duration,t.easing),s.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),k.effects.define("bounce",function(t,e){var i,s,n=k(this),o=t.mode,r="hide"===o,o="show"===o,a=t.direction||"up",l=t.distance,h=t.times||5,c=2*h+(o||r?1:0),u=t.duration/c,d=t.easing,p="up"===a||"down"===a?"top":"left",f="up"===a||"left"===a,g=0,t=n.queue().length;for(k.effects.createPlaceholder(n),a=n.css(p),l=l||n["top"==p?"outerHeight":"outerWidth"]()/3,o&&((s={opacity:1})[p]=a,n.css("opacity",0).css(p,f?2*-l:2*l).animate(s,u,d)),r&&(l/=Math.pow(2,h-1)),(s={})[p]=a;g<h;g++)(i={})[p]=(f?"-=":"+=")+l,n.animate(i,u,d).animate(s,u,d),l=r?2*l:l/2;r&&((i={opacity:0})[p]=(f?"-=":"+=")+l,n.animate(i,u,d)),n.queue(e),k.effects.unshift(n,t,1+c)}),k.effects.define("clip","hide",function(t,e){var i={},s=k(this),n=t.direction||"vertical",o="both"===n,r=o||"horizontal"===n,o=o||"vertical"===n,n=s.cssClip();i.clip={top:o?(n.bottom-n.top)/2:n.top,right:r?(n.right-n.left)/2:n.right,bottom:o?(n.bottom-n.top)/2:n.bottom,left:r?(n.right-n.left)/2:n.left},k.effects.createPlaceholder(s),"show"===t.mode&&(s.cssClip(i.clip),i.clip=n),s.animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),k.effects.define("drop","hide",function(t,e){var i,s=k(this),n="show"===t.mode,o=t.direction||"left",r="up"===o||"down"===o?"top":"left",o="up"===o||"left"===o?"-=":"+=",a="+="==o?"-=":"+=",l={opacity:0};k.effects.createPlaceholder(s),i=t.distance||s["top"==r?"outerHeight":"outerWidth"](!0)/2,l[r]=o+i,n&&(s.css(l),l[r]=a+i,l.opacity=1),s.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),k.effects.define("explode","hide",function(t,e){function i(){g.push(this),g.length===l*h&&(c.css({visibility:"visible"}),k(g).remove(),e())}for(var s,n,o,r,a,l=t.pieces?Math.round(Math.sqrt(t.pieces)):3,h=l,c=k(this),u="show"===t.mode,d=c.show().css("visibility","hidden").offset(),p=Math.ceil(c.outerWidth()/h),f=Math.ceil(c.outerHeight()/l),g=[],m=0;m<l;m++)for(o=d.top+m*f,a=m-(l-1)/2,s=0;s<h;s++)n=d.left+s*p,r=s-(h-1)/2,c.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-s*p,top:-m*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:f,left:n+(u?r*p:0),top:o+(u?a*f:0),opacity:u?0:1}).animate({left:n+(u?0:r*p),top:o+(u?0:a*f),opacity:u?1:0},t.duration||500,t.easing,i)}),k.effects.define("fade","toggle",function(t,e){var i="show"===t.mode;k(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),k.effects.define("fold","hide",function(e,t){var i=k(this),s=e.mode,n="show"===s,s="hide"===s,o=e.size||15,r=/([0-9]+)%/.exec(o),a=!!e.horizFirst?["right","bottom"]:["bottom","right"],l=e.duration/2,h=k.effects.createPlaceholder(i),c=i.cssClip(),u={clip:k.extend({},c)},d={clip:k.extend({},c)},p=[c[a[0]],c[a[1]]],f=i.queue().length;r&&(o=parseInt(r[1],10)/100*p[s?0:1]),u.clip[a[0]]=o,d.clip[a[0]]=o,d.clip[a[1]]=0,n&&(i.cssClip(d.clip),h&&h.css(k.effects.clipToBox(d)),d.clip=c),i.queue(function(t){h&&h.animate(k.effects.clipToBox(u),l,e.easing).animate(k.effects.clipToBox(d),l,e.easing),t()}).animate(u,l,e.easing).animate(d,l,e.easing).queue(t),k.effects.unshift(i,f,4)}),k.effects.define("highlight","show",function(t,e){var i=k(this),s={backgroundColor:i.css("backgroundColor")};"hide"===t.mode&&(s.opacity=0),k.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),k.effects.define("size",function(s,e){var n,i=k(this),t=["fontSize"],o=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],r=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],a=s.mode,l="effect"!==a,h=s.scale||"both",c=s.origin||["middle","center"],u=i.css("position"),d=i.position(),p=k.effects.scaledDimensions(i),f=s.from||p,g=s.to||k.effects.scaledDimensions(i,0);k.effects.createPlaceholder(i),"show"===a&&(a=f,f=g,g=a),n={from:{y:f.height/p.height,x:f.width/p.width},to:{y:g.height/p.height,x:g.width/p.width}},"box"!==h&&"both"!==h||(n.from.y!==n.to.y&&(f=k.effects.setTransition(i,o,n.from.y,f),g=k.effects.setTransition(i,o,n.to.y,g)),n.from.x!==n.to.x&&(f=k.effects.setTransition(i,r,n.from.x,f),g=k.effects.setTransition(i,r,n.to.x,g))),"content"!==h&&"both"!==h||n.from.y===n.to.y||(f=k.effects.setTransition(i,t,n.from.y,f),g=k.effects.setTransition(i,t,n.to.y,g)),c&&(a=k.effects.getBaseline(c,p),f.top=(p.outerHeight-f.outerHeight)*a.y+d.top,f.left=(p.outerWidth-f.outerWidth)*a.x+d.left,g.top=(p.outerHeight-g.outerHeight)*a.y+d.top,g.left=(p.outerWidth-g.outerWidth)*a.x+d.left),i.css(f),"content"!==h&&"both"!==h||(o=o.concat(["marginTop","marginBottom"]).concat(t),r=r.concat(["marginLeft","marginRight"]),i.find("*[width]").each(function(){var t=k(this),e=k.effects.scaledDimensions(t),i={height:e.height*n.from.y,width:e.width*n.from.x,outerHeight:e.outerHeight*n.from.y,outerWidth:e.outerWidth*n.from.x},e={height:e.height*n.to.y,width:e.width*n.to.x,outerHeight:e.height*n.to.y,outerWidth:e.width*n.to.x};n.from.y!==n.to.y&&(i=k.effects.setTransition(t,o,n.from.y,i),e=k.effects.setTransition(t,o,n.to.y,e)),n.from.x!==n.to.x&&(i=k.effects.setTransition(t,r,n.from.x,i),e=k.effects.setTransition(t,r,n.to.x,e)),l&&k.effects.saveStyle(t),t.css(i),t.animate(e,s.duration,s.easing,function(){l&&k.effects.restoreStyle(t)})})),i.animate(g,{queue:!1,duration:s.duration,easing:s.easing,complete:function(){var t=i.offset();0===g.opacity&&i.css("opacity",f.opacity),l||(i.css("position","static"===u?"relative":u).offset(t),k.effects.saveStyle(i)),e()}})}),k.effects.define("scale",function(t,e){var i=k(this),s=t.mode,s=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==s?0:100),i=k.extend(!0,{from:k.effects.scaledDimensions(i),to:k.effects.scaledDimensions(i,s,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(i.from.opacity=1,i.to.opacity=0),k.effects.effect.size.call(this,i,e)}),k.effects.define("puff","hide",function(t,e){t=k.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});k.effects.effect.scale.call(this,t,e)}),k.effects.define("pulsate","show",function(t,e){var i=k(this),s=t.mode,n="show"===s,o=2*(t.times||5)+(n||"hide"===s?1:0),r=t.duration/o,a=0,l=1,s=i.queue().length;for(!n&&i.is(":visible")||(i.css("opacity",0).show(),a=1);l<o;l++)i.animate({opacity:a},r,t.easing),a=1-a;i.animate({opacity:a},r,t.easing),i.queue(e),k.effects.unshift(i,s,1+o)}),k.effects.define("shake",function(t,e){var i=1,s=k(this),n=t.direction||"left",o=t.distance||20,r=t.times||3,a=2*r+1,l=Math.round(t.duration/a),h="up"===n||"down"===n?"top":"left",n="up"===n||"left"===n,c={},u={},d={},p=s.queue().length;for(k.effects.createPlaceholder(s),c[h]=(n?"-=":"+=")+o,u[h]=(n?"+=":"-=")+2*o,d[h]=(n?"-=":"+=")+2*o,s.animate(c,l,t.easing);i<r;i++)s.animate(u,l,t.easing).animate(d,l,t.easing);s.animate(u,l,t.easing).animate(c,l/2,t.easing).queue(e),k.effects.unshift(s,p,1+a)}),k.effects.define("slide","show",function(t,e){var i,s,n=k(this),o={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},r=t.mode,a=t.direction||"left",l="up"===a||"down"===a?"top":"left",h="up"===a||"left"===a,c=t.distance||n["top"==l?"outerHeight":"outerWidth"](!0),u={};k.effects.createPlaceholder(n),i=n.cssClip(),s=n.position()[l],u[l]=(h?-1:1)*c+s,u.clip=n.cssClip(),u.clip[o[a][1]]=u.clip[o[a][0]],"show"===r&&(n.cssClip(u.clip),n.css(l,u[l]),u.clip=i,u[l]=s),n.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),!1!==k.uiBackCompat&&k.effects.define("transfer",function(t,e){k(this).transfer(t,e)}),k.ui.focusable=function(t,e){var i,s,n,o=t.nodeName.toLowerCase();return"area"===o?(n=(i=t.parentNode).name,!(!t.href||!n||"map"!==i.nodeName.toLowerCase())&&(0<(i=k("img[usemap='#"+n+"']")).length&&i.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(o)?(s=!t.disabled)&&((n=k(t).closest("fieldset")[0])&&(s=!n.disabled)):s="a"===o&&t.href||e,s&&k(t).is(":visible")&&function(t){for(var e=t.css("visibility");"inherit"===e;)e=(t=t.parent()).css("visibility");return"hidden"!==e}(k(t)))},k.extend(k.expr[":"],{focusable:function(t){return k.ui.focusable(t,null!=k.attr(t,"tabindex"))}}),k.ui.focusable,k.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):k(this[0].form)},k.ui.formResetMixin={_formResetHandler:function(){var e=k(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");k.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element.form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(k.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"))}},"1.7"===k.fn.jquery.substring(0,3)&&(k.each(["Width","Height"],function(t,i){function s(t,e,i,s){return k.each(n,function(){e-=parseFloat(k.css(t,"padding"+this))||0,i&&(e-=parseFloat(k.css(t,"border"+this+"Width"))||0),s&&(e-=parseFloat(k.css(t,"margin"+this))||0)}),e}var n="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),r={innerWidth:k.fn.innerWidth,innerHeight:k.fn.innerHeight,outerWidth:k.fn.outerWidth,outerHeight:k.fn.outerHeight};k.fn["inner"+i]=function(t){return void 0===t?r["inner"+i].call(this):this.each(function(){k(this).css(o,s(this,t)+"px")})},k.fn["outer"+i]=function(t,e){return"number"!=typeof t?r["outer"+i].call(this,t):this.each(function(){k(this).css(o,s(this,t,!0,e)+"px")})}}),k.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),k.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},k.ui.escapeSelector=(nt=/([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g,function(t){return t.replace(nt,"\\$1")}),k.fn.labels=function(){var t,e,i;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+k.ui.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e))},k.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=k(this);return(!i||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:k(this[0].ownerDocument||document)},k.extend(k.expr[":"],{tabbable:function(t){var e=k.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&k.ui.focusable(t,i)}}),k.fn.extend({uniqueId:(st=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++st)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&k(this).removeAttr("id")})}}),k.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=k(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(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():k()}},_createIcons:function(){var t,e=this.options.icons;e&&(t=k("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+e.header),t.prependTo(this.headers),t=this.active.children(".ui-accordion-header-icon"),this._removeClass(t,e.header)._addClass(t,null,e.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 t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),void("icons"===t&&(this._destroyIcons(),e&&this._createIcons())))},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=k.ui.keyCode,i=this.headers.length,s=this.headers.index(t.target),n=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:n=this.headers[(s+1)%i];break;case e.LEFT:case e.UP:n=this.headers[(s-1+i)%i];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:n=this.headers[0];break;case e.END:n=this.headers[i-1]}n&&(k(t.target).attr("tabIndex",-1),k(n).attr("tabIndex",0),k(n).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===k.ui.keyCode.UP&&t.ctrlKey&&k(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=k()):!1===t.active?this._activate(0):this.active.length&&!k.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=k()):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 i,t=this.options,e=t.heightStyle,s=this.element.parent();this.active=this._findActive(t.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=k(this),e=t.uniqueId().attr("id"),i=t.next(),s=i.uniqueId().attr("id");t.attr("aria-controls",s),i.attr("aria-labelledby",e)}).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(t.event),"fill"===e?(i=s.height(),this.element.siblings(":visible").each(function(){var t=k(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.headers.each(function(){i-=k(this).outerHeight(!0)}),this.headers.next().each(function(){k(this).height(Math.max(0,i-k(this).innerHeight()+k(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.headers.next().each(function(){var t=k(this).is(":visible");t||k(this).show(),i=Math.max(i,k(this).css("height","").height()),t||k(this).hide()}).height(i))},_activate:function(t){t=this._findActive(t)[0];t!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:k.no
vendor: 4,483 bytes, line 1
1op}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):k()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&k.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e=this.options,i=this.active,s=k(t.currentTarget),n=s[0]===i[0],o=n&&e.collapsible,r=o?k():s.next(),a=i.next(),a={oldHeader:i,oldPanel:a,newHeader:o?k():s,newPanel:r};t.preventDefault(),n&&!e.collapsible||!1===this._trigger("beforeActivate",t,a)||(e.active=!o&&this.headers.index(s),this.active=n?k():s,this._toggle(a),this._removeClass(i,"ui-accordion-header-active","ui-state-active"),e.icons&&(r=i.children(".ui-accordion-header-icon"),this._removeClass(r,null,e.icons.activeHeader)._addClass(r,null,e.icons.header)),n||(this._removeClass(s,"ui-accordion-header-collapsed")._addClass(s,"ui-accordion-header-active","ui-state-active"),e.icons&&(t=s.children(".ui-accordion-header-icon"),this._removeClass(t,null,e.icons.header)._addClass(t,null,e.icons.activeHeader)),this._addClass(s.next(),"ui-accordion-content-active")))},_toggle:function(t){var e=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=i,this.options.animate?this._animate(e,i,t):(i.hide(),e.show(),this._toggleComplete(t)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt(k(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,i,e){function s(){o._toggleComplete(e)}var n,o=this,r=0,a=t.css("box-sizing"),l=t.length&&(!i.length||t.index()<i.index()),h=this.options.animate||{},l=l&&h.down||h,c=(c="string"==typeof l?l:c)||l.easing||h.easing,u=(u="number"==typeof l?l:u)||l.duration||h.duration;return i.length?t.length?(n=t.show().outerHeight(),i.animate(this.hideProps,{duration:u,easing:c,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:u,easing:c,complete:s,step:function(t,e){e.now=Math.round(t),"height"!==e.prop?"content-box"===a&&(r+=e.now):"content"!==o.options.heightStyle&&(e.now=Math.round(n-i.outerHeight()-r),r=0)}})):i.animate(this.hideProps,u,c,s):t.animate(this.showProps,u,c,s)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),k.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=(i=i||e.body).nodeName?i:e.body},k.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(t){t.preventDefault()},"click .ui-menu-item":function(t){var e=k(t.target),i=k(k.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var e,i;this.previousFilter||(e=k(t.target).closest(".ui-menu-item"),i=k(t.currentTarget),e[0]===i[0]&&(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i)))},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(t){this._delay(function(){k.contains(this.element[0],k.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)}
vendor: 5,508 bytes, line 1
1)},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").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(),t.children().each(function(){var t=k(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,s,n=!0;switch(t.keyCode){case k.ui.keyCode.PAGE_UP:this.previousPage(t);break;case k.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case k.ui.keyCode.HOME:this._move("first","first",t);break;case k.ui.keyCode.END:this._move("last","last",t);break;case k.ui.keyCode.UP:this.previous(t);break;case k.ui.keyCode.DOWN:this.next(t);break;case k.ui.keyCode.LEFT:this.collapse(t);break;case k.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case k.ui.keyCode.ENTER:case k.ui.keyCode.SPACE:this._activate(t);break;case k.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",s=n=!1,i=96<=t.keyCode&&t.keyCode<=105?""+(t.keyCode-96):String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?s=!0:i=e+i,e=this._filterMenuItems(i),(e=s&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),t=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=k(this),e=t.prev(),i=k("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(t,"ui-menu","ui-widget ui-widget-content ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=k(this);s._isDivider(t)&&s._addClass(t,"ui-menu-divider","ui-widget-content")}),e=(i=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(e,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!k.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,s;this._hasScroll()&&(e=parseFloat(k.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(k.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-e-i,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):s<e+t&&this.activeMenu.scrollTop(i+e-s+t))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(t){var e=k.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(e)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var t=i?this.element:k(e&&e.target).closest(this.element.find(".ui-menu"));t.length||(t=this.element),this._close(t),this.blur(e),this._removeClass(t.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=t},this.delay)},_close:function(t){(t=t||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
1se")},_closeOnDocumentClick:function(t){return!k(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},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(t,e,i){var s;(s=this.active?"first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0):s)&&s.length&&this.active||(s=this.activeMenu.find(this.options.items)[e]()),this.focus(i,s)},nextPage:function(t){var e,i,s;return this.active?void(this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(e=k(this)).offset().top-i-s<0}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(t)},previousPage:function(t){var e,i,s;return this.active?void(this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return 0<(e=k(this)).offset().top-i+s}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items).first()))):void this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||k(t.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,e)},_filterMenuItems:function(t){var t=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),e=RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return e.test(k.trim(k(this).children(".ui-menu-item-wrapper").text()))})}}),k.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 i,s,n,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,t="input"===t;this.isMultiLine=e||!t&&this._isContentEditable(this.element),this.valueMethod=this.element[e||t?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var e=k.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault());if(!s){var e=k.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=k("<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]!==k.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(t,e){var i;return this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",function(){k(t.target).trigger(t.originalEvent)})):(i=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:i}
vendor: 11,395 bytes, line 1
1)&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(i.value),void((e=e.item.attr("aria-label")||i.value)&&k.trim(e).length&&(this.liveRegion.children().hide(),k("<div>").text(e).appendTo(this.liveRegion))))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==k.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=k("<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(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||k.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t=(t=(t=t&&(t.jquery||t.nodeType?k(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front, dialog")).length?t:this.document[0].body},_initSource:function(){var i,s,n=this;k.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e(k.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(t,e){n.xhr&&n.xhr.abort(),n.xhr=k.ajax({url:s,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;t&&(e||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return k.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t=t&&this._normalize(t),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:k.map(t,function(t){return"string"==typeof t?{label:t,value:t}:k.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var e=this.menu.element.empty();this._renderMenu(e,t),this.isNewMenu=!0,this.menu.refresh(),e.show(),this._resizeMenu(),e.position(k.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,t){var s=this;k.each(t,function(t,e){s._renderItemData(i,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(t,e){return k("<li>").append(k("<div>").text(e.label)).appendTo(t)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),k.extend(k.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var i=RegExp(k.ui.autocomplete.escapeRegex(e),"i");return k.grep(t,function(t){return i.test(t.label||t.value||t)})}}),k.widget("ui.autocomplete",k.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1<t?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),k("<div>").text(e).appendTo(this.liveRegion))}}),k.ui.autocomplete;var st,nt,ot,A,M,rt=/ui-corner-([a-z]){2,6}/g,O=(k.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 o=this,r=[];k.each(this.options.items,function(s,t){var e,n;return t?"controlgroupLabel"===s?((e=o.element.find(t)).each(function(){var t=k(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),o._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),void(r=r.concat(e.get()))):void(k.fn[s]&&(n=o["_"+s+"Options"]?o["_"+s+"Options"]("middle"):{classes:{}},o.element.find(t).each(function(){var t=k(this),e=t[s]("instance"),i=k.widget.extend({},n);"button"===s&&t.parent(".ui-spinner").length||((e=e||t[s]()[s]("instance"))&&(i.classes=o._resolveClassesValues(i.classes,e)),t[s](i),i=t[s]("widget"),k.data(i[0],"ui-controlgroup-data",e||t[s]("instance")),r.push(i[0]))}))):void 0}),this.childWidgets=k(k.unique(r)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var t=k(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()})},_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,s={classes:{}};return s.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],s},_spinnerOptions:function(t){t=this._buildSimpleOptions(t,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,s){var n={};return k.each(i,function(t){var e=s.options.classes[t]||"",e=k.trim(e.replace(rt,""));n[t]=(e+" "+i[t]).replace(/\s+/g," ")}),n},_setOption:function(t,e){return"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?void this._callChildMethod(e?"disable":"enable"):void this.refresh()},refresh:function(){var n,o=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),n=this.childWidgets,(n=this.options.onlyVisible?n.filter(":visible"):n).length&&(k.each(["first","last"],function(t,e){var i,s=n[e]().data("ui-controlgroup-data");s&&o["_"+s.widgetName+"Options"]?((i=o["_"+s.widgetName+"Options"](1===n.length?"only":e)).classes=o._resolveClassesValues(i.classes,s),s.element[s.widgetName](i)):o._updateCornerClass(n[e](),e)}),this._callChildMethod("refresh"))}}),k.widget("ui.checkboxradio",[k.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,e=this,i=this._super()||{};return this._readType(),t=this.element.labels(),this.label=k(t[t.length-1]),this.label.length||k.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){e.originalLabel+=3===this.nodeType?k(this).text():this.outerHTML}),this.originalLabel&&(i.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(i.disabled=t),i},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(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"),"radio"===this.type&&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(),t&&(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();
1this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||k.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=this.element[0].name,e="input[name='"+k.ui.escapeSelector(t)+"']";return t?(this.form.length?k(this.form[0].elements).filter(e):k(e).filter(function(){return 0===k(this).form().length})).not(this.element):k([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each(function(){var t=k(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(t,e){return"label"!==t||e?(this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e)):void this.refresh()):void 0},_updateIcon:function(t){var e="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=k("<span>"),this.iconSpace=k("<span> </span>
1"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(e+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):e+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",e),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),(t=this.iconSpace?t.not(this.iconSpace[0]):t).remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),k.ui.checkboxradio,k.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 t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(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===k.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,e){var t="iconPosition"!==t,i=t?this.options.iconPosition:e,s="top"===i||"bottom"===i;this.icon?t&&this._removeClass(this.icon,null,this.options.icon):(this.icon=k("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),t&&this._addClass(this.icon,null,e),this._attachIcon(i),s?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconS
vendor: 5,150 bytes, line 1
1pace||(this.iconSpace=k("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(i))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=(void 0===t.showLabel?this.options:t).showLabel,i=(void 0===t.icon?this.options:t).icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),(this.element[0].disabled=e)&&this.element.blur())},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==k.uiBackCompat&&(k.widget("ui.button",k.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.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){return"text"===t?void this._super("showLabel",e):("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),void this._superApply(arguments))}}),k.fn.button=(ot=k.fn.button,function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?ot.apply(this,arguments):(k.ui.checkboxradio||k.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}),k.fn.buttonset=function(){return k.ui.controlgroup||k.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),k.ui.button,k.extend(k.ui,{datepicker:{version:"1.12.1"}}),k.extend(t.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return l(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var i,s=t.nodeName.toLowerCase(),n="div"===s||"span"===s;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(i=this._newInst(k(t),n)).settings=k.extend({},e||{}),"input"===s?this._connectDatepicker(t,i):n&&this._inlineDatepicker(t,i)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?i(k("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,e){var i=k(t);e.append=k([]),e.trigger=k([]),i.hasClass(this.markerClassName)||(this._attachments(i,e),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),k.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i,s=this._get(e,"appendText"),n=this._get(e,"isRTL");e.append&&e.append.remove(),s&&(e.append=k("<span class='"+this._appendClass+"'>"+s+"</span>"),t[n?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(s=this._get(e,"showOn"))&&"both"!==s||t.on("focus",this._showDatepicker),"button"!==s&&"both"!==s||(s=this._get(e,"buttonText"),i=this._get(e,"buttonImage"),e.trigger=k(this._get(e,"buttonImageOnly")?k("<img/>").addClass(this._triggerClass).attr({src:i,alt:s,title:s}):k("<button type='button'></button>").addClass(this._triggerClass).html(i?k("<img/>").attr({src:i,alt:s,title:s}
vendor: 13,047 bytes, line 1
1):s)),t[n?"before":"after"](e.trigger),e.trigger.on("click",function(){return k.datepicker._datepickerShowing&&k.datepicker._lastInput===t[0]?k.datepicker._hideDatepicker():(k.datepicker._datepickerShowing&&k.datepicker._lastInput!==t[0]&&k.datepicker._hideDatepicker(),k.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,i,s,n,o,r;this._get(t,"autoSize")&&!t.inline&&(o=new Date(2009,11,20),(r=this._get(t,"dateFormat")).match(/[DM]/)&&(o.setMonth((e=function(t){for(n=s=i=0;t.length>n;n++)t[n].length>i&&(i=t[n].length,s=n);return s})(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length))},_inlineDatepicker:function(t,e){var i=k(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv),k.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,i,s,n){var o,r=this._dialogInst;return r||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=k("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),k("body").append(this._dialogInput),(r=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},k.data(this._dialogInput[0],"datepicker",r)),l(r.settings,s||{}),e=e&&e.constructor===Date?this._formatDate(r,e):e,this._dialogInput.val(e),this._pos=n?n.length?n:[n.pageX,n.pageY]:null,this._pos||(o=document.documentElement.clientWidth,s=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,n=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[o/2-100+e,s/2-150+n]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),r.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),k.blockUI&&k.blockUI(this.dpDiv),k.data(this._dialogInput[0],"datepicker",r),this},_destroyDatepicker:function(t){var e,i=k(t),s=k.data(t,"datepicker");i.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),k.removeData(t,"datepicker"),"input"===e?(s.append.remove(),s.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==e&&"span"!==e||i.removeClass(this.markerClassName).empty(),A===s&&(A=null))},_enableDatepicker:function(e){var t,i=k(e),s=k.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((s=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=k.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,i=k(e),s=k.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((s=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=k.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return k.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var s,n,o,r,a=this._getInst(t);return 2===arguments.length&&"string"==typeof e?"defaults"===e?k.extend({},k.datepicker._defaults):a?"all"===e?k.extend({},a.settings):this._get(a,e):null:(s=e||{},"string"==typeof e&&((s={})[e]=i),void(a&&(this._curInst===a&&this._hideDatepicker(),n=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(a,"min"),r=this._getMinMaxDate(a,"max"),l(a.settings,s),null!==o&&void 0!==s.dateFormat&&void 0===s.minDate&&(a.settings.minDate=this._formatDate(a,o)),null!==r&&void 0!==s.dateFormat&&void 0===s.maxDate&&(a.settings.maxDate=this._formatDate(a,r)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(k(t),a),this._autoSize(a),this._setDate(a,n),this._updateAlternate(a),this._updateDatepicker(a))))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){t=this._getInst(t);t&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){t=this._getInst(t);t&&(this._setDate(t,e),this._updateDatepicker(t),this._updateAlternate(t))},_getDateDatepicker:function(t,e){t=this._getInst(t);return t&&!t.inline&&this._setDateFromField(t,e),t?this._getDate(t):null},_doKeyDown:function(t){var e,i,s=k.datepicker._getInst(t.target),n=!0,o=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,k.datepicker._datepickerShowing)switch(t.keyCode){case 9:k.datepicker._hideDatepicker(),n=!1;break;case 13:return(i=k("td."+k.datepicker._dayOverClass+":not(."+k.datepicker._currentClass+")",s.dpDiv))[0]&&k.datepicker._selectDay(t.target,s.selectedMonth,s.selectedYear,i[0]),(i=k.datepicker._get(s,"onSelect"))?(e=k.datepicker._formatDate(s),i.apply(s.input?s.input[0]:null,[e,s])):k.datepicker._hideDatepicker(),!1;case 27:k.datepicker._hideDatepicker();break;case 33:k.datepicker._adjustDate(t.target,t.ctrlKey?-k.datepicker._get(s,"stepBigMonths"):-k.datepicker._get(s,"stepMonths"),"M");break;case 34:k.datepicker._adjustDate(t.target,t.ctrlKey?+k.datepicker._get(s,"stepBigMonths"):+k.datepicker._get(s,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&k.datepicker._clearDate(t.target),n=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&k.datepicker._gotoToday(t.target),n=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&k.datepicker._adjustDate(t.target,o?1:-1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&k.datepicker._adjustDate(t.target,t.ctrlKey?-k.datepicker._get(s,"stepBigMonths"):-k.datepicker._get(s,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&k.datepicker._adjustDate(t.target,-7,"D"),n=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&k.datepicker._adjustDate(t.target,o?-1:1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&k.datepicker._adjustDate(t.target,t.ctrlKey?+k.datepicker._get(s,"stepBigMonths"):+k.datepicker._get(s,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&k.datepicker._adjustDate(t.target,7,"D"),n=t.ctrlKey||t.metaKey;break;default:n=!1}else 36===t.keyCode&&t.ctrlKey?k.datepicker._showDatepicker(this):n=!1;n&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,i=k.datepicker._getInst(t.target);return k.datepicker._get(i,"constrainInput")?(i=k.datepicker._possibleChars(k.datepicker._get(i,"dateFormat")),e=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||e<" "||!i||-1<i.indexOf(e)):void 0},_doKeyUp:function(t){t=k.datepicker._getInst(t.target);if(t.input.val()!==t.lastVal)try{k.datepicker.parseDate(k.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,k.datepicker._getFormatConfig(t))&&(k.datepicker._setDateFromField(t),k.datepicker._updateAlternate(t),k.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var e,i,s,n;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=k("input",t.parentNode)[0]),k.datepicker._isDisabledDatepicker(t)||k.datepicker._lastInput===t||(n=k.datepicker._getInst(t),k.datepicker._curInst&&k.datepicker._curInst!==n&&(k.datepicker._curInst.dpDiv.stop(!0,!0),n&&k.datepicker._datepickerShowing&&k.datepicker._hideDatepicker(k.datepicker._curInst.input[0])),!1!==(i=(i=k.datepicker._get(n,"beforeShow"))?i.apply(t,[t,n]):{})&&(l(n.settings,i),n.lastVal=null,k.datepicker._lastInput=t,k.datepicker._setDateFromField(n),k.datepicker._inDialog&&(t.value=""),k.datepicker._pos||(k.datepicker._pos=k.datepicker._findPos(t),k.datepicker._pos[1]+=t.offsetHeight),e=!1,k(t).parents().each(function(){return!(e|="fixed"===k(this).css("position"))}),i={left:k.datepicker._pos[0],top:k.datepicker._pos[1]},k.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),k.datepicker._updateDatepicker(n),i=k.datepicker._checkOffset(n,i,e),n.dpDiv.css({position:k.datepicker._inDialog&&k.blockUI?"static":e?"fixed":"absolute",display:"none",left:i.left+"px",top:i.top+"px"}),n.inline||(i=k.datepicker._get(n,"showAnim"),s=k.datepicker._get(n,"duration"),n.dpDiv.css("z-index",function(t){for(var e;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(e=parseInt(t.css("zIndex"),10),!isNaN(e)&&0!==e))return e;t=t.parent()}return 0}(k(t))+1),k.datepicker._datepickerShowing=!0,k.effects&&k.effects.effect[i]?n.dpDiv.show(i,k.datepicker._get(n,"showOptions"),s):n.dpDiv[i||"show"](i?s:null),k.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),k.datepicker._curInst=n)))},_updateDatepicker:function(t){this.maxRows=4,(A=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,i=this._getNumberOfMonths(t),s=i[1],n=t.dpDiv.find("."+this._dayOverClass+" a");0<n.length&&o.apply(n.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<s&&t.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",17*s+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===k.datepicker._curInst&&k.datepicker._datepickerShowing&&k.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),e=t.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(t,e,i){var s=t.dpDiv.outerWidth(),n=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,r=t.input?t.input.outerHeight():0,a=document.documentElement.clientWidth+(i?0:k(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:k(document).scrollTop());return e.left-=this._get(t,"isRTL")?s-o:0,e.left-=i&&e.left===t.input.offset().left?k(document).scrollLeft():0,e.top-=i&&e.top===t.input.offset().top+r?k(document).scrollTop():0,e.left-=Math.min(e.left,e.left+s>a&&s<a?Math.abs(e.left+s-a):0),e.top-=Math.min(e.top,e.top+n>l&&n<l?Math.abs(n+r):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||k.expr.filters.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return[(e=k(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,i,s=this._curInst;!s||t&&s!==k.data(t,"datepicker")||this._datepickerShowing&&(t=this._get(s,"showAnim"),i=this._get(s,"duration"),e=function(){k.datepicker._tidyDialog(s)},k.effects&&(k.effects.effect[t]||k.effects[t])?s.dpDiv.hide(t,k.datepicker._get(s,"showOptions"),i,e):s.dpDiv["slideDown"===t?"slideUp":"fadeIn"===t?"fadeOut":"hide"](t?i:null,e),t||e(),this._datepickerShowing=!1,(i=this._get(s,"onClose"))&&i.apply(s.input?s.input[0]:null,[s.input?s.input.val():"",s]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),k.blockUI&&(k.unblockUI(),k("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;k.datepicker._curInst&&(t=k(t.target),e=k.datepicker._getInst(t[0]),(!(t[0].id===k.datepicker._mainDivId||0!==t.parents("#"+k.datepicker._mainDivId).length||t.hasClass(k.datepicker.markerClassName)||t.closest("."+k.datepicker._triggerClass).length||!k.datepicker._datepickerShowing||k.datepicker._inDialog&&k.blockUI)||t.hasClass(k.datepicker.markerClassName)&&k.datepicker._curInst!==e)&&k.datepicker._hideDatepicker())},_adjustDate:function(t,e,i){var t=k(t),s=this._getInst(t[0]);this._isDisabledDatepicker(t[0])||(this._adjustInstDate(s,e+("M"===i?this._get(s,"showCurrentAtPos"):0),i),this._updateDatepicker(s))},_gotoToday:function(t){var e,t=k(t),i=this._getInst(t[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(e=new Date,i.selectedDay=e.getDate(),i.drawMonth=i.selectedMonth=e.getMonth(),i.drawYear=i.selectedYear=e.getFullYear()),this._notifyChange(i),this._adjustDate(t)}
1,_selectMonthYear:function(t,e,i){var t=k(t),s=this._getInst(t[0]);s["selected"+("M"===i?"Month":"Year")]=s["draw"+("M"===i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(t)},_selectDay:function(t,e,i,s){var n=k(t);k(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(n[0])||((n=this._getInst(n[0])).selectedDay=n.currentDay=k("a",s).html(),n.selectedMonth=n.currentMonth=e,n.selectedYear=n.currentYear=i,this._selectDate(t,this._formatDate(n,n.currentDay,n.currentMonth,n.currentYear)))},_clearDate:function(t){t=k(t);this._selectDate(t,"")},_selectDate:function(t,e){var i,t=k(t),t=this._getInst(t[0]);e=null!=e?e:this._formatDate(t),t.input&&t.input.val(e),this._updateAlternate(t),(i=this._get(t,"onSelect"))?i.apply(t.input?t.input[0]:null,[e,t]):t.input&&t.input.trigger("change"),t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=typeof t.input[0]&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,i,s=this._get(t,"altField");s&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),e=this._getDate(t),i=this.formatDate(i,e,this._getFormatConfig(t)),k(s).val(i))},noWeekends:function(t){t=t.getDay();return[0<t&&t<6,""]},iso8601Week:function(t){var e,t=new Date(t.getTime());return t.setDate(t.getDate()+4-(t.getDay()||7)),e=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((e-t)/864e5)/7)+1},parseDate:function(e,n,t){if(null==e||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?""+n:n+""))return null;function i(t){var e=_(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,t=RegExp("^\\d{"+("y"===t?e:1)+","+e+"}");if(e=n.substring(l).match(t))return l+=e[0].length,parseInt(e[0],10);throw"Missing number at position "+l}function s(t,e,i){var s=-1,t=k.map(_(t)?i:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(k.each(t,function(t,e){var i=e[1];return n.substr(l,i.length).toLowerCase()===i.toLowerCase()?(s=e[0],l+=i.length,!1):void 0}),-1!==s)return s+1;throw"Unknown name at position "+l}function o(){if(n.charAt(l)!==e.charAt(b))throw"Unexpected literal at position "+l;l++}for(var r,a,l=0,h=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff,h="string"!=typeof h?h:(new Date).getFullYear()%100+parseInt(h,10),c=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,u=(t?t.dayNames:null)||this._defaults.dayNames,d=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,p=(t?t.monthNames:null)||this._defaults.monthNames,f=-1,g=-1,m=-1,v=-1,y=!1,_=function(t){t=e.length>b+1&&e.charAt(b+1)===t;return t&&b++,t},b=0;e.length>b;b++)if(y)"'"!==e.charAt(b)||_("'")?o():y=!1;else switch(e.charAt(b)){case"d":m=i("d");break;case"D":s("D",c,u);break;case"o":v=i("o");break;case"m":g=i("m");break;case"M":g=s("M",d,p);break;case"y":f=i("y");break;case"@":f=(a=new Date(i("@"))).getFullYear(),g=a.getMonth()+1,m=a.getDate();break;case"!":f=(a=new Date((i("!")-this._ticksTo1970)/1e4)).getFullYear(),g=a.getMonth()+1,m=a.getDate();break;case"'":_("'")?o():y=!0;break;default:o()}if(n.length>l&&(t=n.substr(l),!/^\s+/.test(t)))throw"Extra/unparsed characters found in date: "+t;if(-1===f?f=(new Date).getFullYear():f<100&&(f+=(new Date).getFullYear()-(new Date).getFullYear()%100+(f<=h?0:-100)),-1<v)for(g=1,m=v;!(m<=(r=this._getDaysInMonth(f,g-1)));)g++,m-=r;if((a=this._daylightSavingAdjust(new Date(f,g-1,m))).getFullYear()!==f||a.getMonth()+1!==g||a.getDate()!==m)throw"Invalid date";return a},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:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(e,t,i){if(!t)return"";function s(t,e,i){var s=""+e;if(c(t))for(;i>s.length;)s="0"+s;return s}function n(t,e,i,s){return(c(t)?s:i)[e]}var o,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,h=(i?i.monthNames:null)||this._defaults.monthNames,c=function(t){t=e.length>
vendor: 3,425 bytes, line 1
1o+1&&e.charAt(o+1)===t;return t&&o++,t},u="",d=!1;if(t)for(o=0;e.length>o;o++)if(d)"'"!==e.charAt(o)||c("'")?u+=e.charAt(o):d=!1;else switch(e.charAt(o)){case"d":u+=s("d",t.getDate(),2);break;case"D":u+=n("D",t.getDay(),r,a);break;case"o":u+=s("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=s("m",t.getMonth()+1,2);break;case"M":u+=n("M",t.getMonth(),l,h);break;case"y":u+=c("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":u+=t.getTime();break;case"!":u+=1e4*t.getTime()+this._ticksTo1970;break;case"'":c("'")?u+="'":d=!0;break;default:u+=e.charAt(o)}return u},_possibleChars:function(e){function t(t){return(t=e.length>n+1&&e.charAt(n+1)===t)&&n++,t}for(var i="",s=!1,n=0;e.length>n;n++)if(s)"'"!==e.charAt(n)||t("'")?i+=e.charAt(n):s=!1;else switch(e.charAt(n)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":t("'")?i+="'":s=!0;break;default:i+=e.charAt(n)}return i},_get:function(t,e){return(void 0!==t.settings[e]?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),s=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),o=n,r=this._getFormatConfig(t);try{o=this.parseDate(i,s,r)||n}catch(t){s=e?"":s}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=s?o.getDate():0,t.currentMonth=s?o.getMonth():0,t.currentYear=s?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(a,t,e){var i,s=null==t||""===t?e:"string"==typeof t?function(t){try{return k.datepicker.parseDate(k.datepicker._get(a,"dateFormat"),t,k.datepicker._getFormatConfig(a))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?k.datepicker._getDate(a):null)||new Date,i=e.getFullYear(),s=e.getMonth(),n=e.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,r=o.exec(t);r;){switch(r[2]||"d"){case"d":case"D":n+=parseInt(r[1],10);break;case"w":case"W":n+=7*parseInt(r[1],10);break;case"m":case"M":s+=parseInt(r[1],10),n=Math.min(n,k.datepicker._getDaysInMonth(i,s));break;case"y":case"Y":i+=parseInt(r[1],10),n=Math.min(n,k.datepicker._getDaysInMonth(i,s))}r=o.exec(t)}return new Date(i,s,n)}(t):"number"==typeof t?isNaN(t)?e:(s=t,(i=new Date).setDate(i.getDate()+s),i):new Date(t.getTime());return(s=s&&"Invalid Date"==""+s?e:s)&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,o=t.selectedYear,e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth(),t.drawYear=t.selectedYear=t.currentYear=e.getFullYear(),n===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(s?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");
vendor: 5,714 bytes, line 1
1t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){k.datepicker._adjustDate(i,-e,"M")},next:function(){k.datepicker._adjustDate(i,+e,"M")},hide:function(){k.datepicker._hideDatepicker()},today:function(){k.datepicker._gotoToday(i)},selectDay:function(){return k.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return k.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return k.datepicker._selectMonthYear(i,this,"Y"),!1}};k(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,s,n,o,j,H,L,F,r,a,R,l,h,c,u,d,p,f,g,m,v,z,y,_,b,w,B,W,k,C,T,x=new Date,V=this._daylightSavingAdjust(new Date(x.getFullYear(),x.getMonth(),x.getDate())),S=this._get(t,"isRTL"),x=this._get(t,"showButtonPanel"),E=this._get(t,"hideIfNoPrevNext"),$=this._get(t,"navigationAsDateFormat"),D=this._getNumberOfMonths(t),P=this._get(t,"showCurrentAtPos"),I=this._get(t,"stepMonths"),U=1!==D[0]||1!==D[1],Y=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),A=this._getMinMaxDate(t,"min"),M=this._getMinMaxDate(t,"max"),O=t.drawMonth-P,N=t.drawYear;if(O<0&&(O+=12,N--),M)for(e=this._daylightSavingAdjust(new Date(M.getFullYear(),M.getMonth()-D[0]*D[1]+1,M.getDate())),e=A&&e<A?A:e;this._daylightSavingAdjust(new Date(N,O,1))>e;)--O<0&&(O=11,N--);for(t.drawMonth=O,t.drawYear=N,P=this._get(t,"prevText"),P=$?this.formatDate(P,this._daylightSavingAdjust(new Date(N,O-I,1)),this._getFormatConfig(t)):P,i=this._canAdjustMonth(t,-1,N,O)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+P+"'><span class='ui-icon ui-icon-circle-triangle-"+(S?"e":"w")+"'>"+P+"</span></a>":E?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+P+"'><span class='ui-icon ui-icon-circle-triangle-"+(S?"e":"w")+"'>"+P+"</span></a>",P=this._get(t,"nextText"),P=$?this.formatDate(P,this._daylightSavingAdjust(new Date(N,O+I,1)),this._getFormatConfig(t)):P,s=this._canAdjustMonth(t,1,N,O)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+P+"'><span class='ui-icon ui-icon-circle-triangle-"+(S?"w":"e")+"'>"+P+"</span></a>":E?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+P+"'><span class='ui-icon ui-icon-circle-triangle-"+(S?"w":"e")+"'>"+P+"</span></a>",I=this._get(t,"currentText"),E=this._get(t,"gotoCurrent")&&t.currentDay?Y:V,I=$?this.formatDate(I,E,this._getFormatConfig(t)):I,P=t.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(t,"closeText")+"</button>",$=x?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(S?P:"")+(this._isInRange(t,E)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+I+"</button>":"")+(S?"":P)+"</div>":"",n=parseInt(this._get(t,"firstDay"),10),n=isNaN(n)?0:n,o=this._get(t,"showWeek"),j=this._get(t,"dayNames"),H=this._get(t,"dayNamesMin"),L=this._get(t,"monthNames"),F=this._get(t,"monthNamesShort"),r=this._get(t,"beforeShowDay"),a=this._get(t,"showOtherMonths"),R=this._get(t,"selectOtherMonths"),l=this._getDefaultDate(t),h="",u=0;D[0]>u;u++){for(d="",this.maxRows=4,p=0;D[1]>p;p++){if(f=this._daylightSavingAdjust(new Date(N,O,t.selectedDay)),g=" ui-corner-all",m="",U){if(m+="<div class='ui-datepicker-group",1<D[1])switch(p){case 0:m+=" ui-datepicker-group-first",g=" ui-corner-"+(S?"right":"left");break;case D[1]-1:m+=" ui-datepicker-group-last",g=" ui-corner-"+(S?"left":"right");break;default:m+=" ui-datepicker-group-middle",g=""}m+="'>"}for(m+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+g+"'>"+(/all|left/.test(g)&&0===u?S?s:i:"")+(/all|right/.test(g)&&0===u?S?i:s:"")+this._generateMonthYearHeader(t,O,N,A,M,0<u||0<p,L,F)+"</div><table class='ui-datepicker-calendar'><thead><tr>",v=o?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",c=0;c<7;c++)v+="<th scope='col'"+(5<=(c+n+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+j[z=(c+n)%7]+"'>"+H[z]+"</span></th>";for(m+=v+"</tr></thead><tbody>",_=this._getDaysInMonth(N,O),N===t.selectedYear&&O===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,_)),y=(this._getFirstDayOfMonth(N,O)-n+7)%7,_=Math.ceil((y+_)/7),b=U&&this.maxRows>_?this.maxRows:_,this.maxRows=b,w=this._daylightSavingAdjust(new Date(N,O,1-y)),B=0;B<b;B++){for(m+="<tr>",W=o?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(w)+"</td>":"",c=0;c<7;c++)k=r?r.apply(t.input?t.input[0]:null,[w]):[!0,""],T=(C=w.getMonth()!==O)&&!R||!k[0]||A&&w<A||M&&M<w,W+="<td class='"+(5<=(c+n+6)%7?" ui-datepicker-week-end":"")+(C?" ui-datepicker-other-month":"")+(w.getTime()===f.getTime()&&O===t.selectedMonth&&t._keyEvent||l.getTime()===w.getTime()&&l.getTime()===f.getTime()?" "+this._dayOverClass:"")+(T?" "+this._unselectableClass+" ui-state-disabled":"")+(C&&!a?"":" "+k[1]+(w.getTime()===Y.getTime()?" "+this._currentClass:"")+(w.getTime()===V.getTime()?" ui-datepicker-today":""))+"'"+(C&&!a||!k[2]?"":" title='"+k[2].replace(/'/g,"&#39;")+"'")+(T?"":" data-handler='selectDay' data-event='click' data-month='"+w.getMonth()+"' data-year='"+w.getFullYear()+"'")+">"+(C&&!a?"&#xa0;":T?"<span class='ui-state-default'>"+w.getDate()+"</span>":"<a class='ui-state-default"+(w.getTime()===V.getTime()?" ui-state-highlight":"")+(w.getTime()===Y.getTime()?" ui-state-active":"")+(C?" ui-priority-secondary":"")+"' href='#'>"+w.getDate()+"</a>")+"</td>
1",w.setDate(w.getDate()+1),w=this._daylightSavingAdjust(w);m+=W+"</tr>"}11<++O&&(O=0,N++),d+=m+="</tbody></table>"+(U?"</div>"+(0<D[0]&&p===D[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}h+=d}return h+=$,t._keyEvent=!1,h},_generateMonthYearHeader:function(t,e,i,s,n,o,r,a){var l,h,c,u,d,p,f,g=this._get(t,"changeMonth"),m=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),y="<div class='ui-datepicker-title'>",_="";if(o||!g)_+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(l=s&&s.getFullYear()===i,h=n&&n.getFullYear()===i,_+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=s.getMonth())&&(!h||n.getMonth()>=c)&&(_+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+a[c]+"</option>");_+="</select>"}if(v||(y+=_+(!o&&g&&m?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!m)y+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(r=this._get(t,"yearRange").split(":"),u=(new Date).getFullYear(),p=(d=function(t){t=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?u+parseInt(t,10):parseInt(t,10);return isNaN(t)?u:t})(r[0]),f=Math.max(p,d(r[1]||"")),p=s?Math.max(p,s.getFullYear()):p,f=n?Math.min(f,n.getFullYear()):f,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";p<=f;p++)t.yearshtml+="<option value='"+p+"'"+(p===i?" selected='selected'":"")+">"+p+"</option>";t.yearshtml+="</select>",y+=t.yearshtml,t.yearshtml=null}return y+=this._get(t,"yearSuffix"),v&&(y+=(!o&&g&&m?"":"&#xa0;")+_),y+"</div>"},_adjustInstDate:function(t,e,i){var s=t.selectedYear+("Y"===i?e:0),n=t.selectedMonth+("M"===i?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"===i?e:0),s=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,e)));t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),t=this._getMinMaxDate(t,"max"),i=i&&e<i?i:e;return t&&t<i?t:i},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){t=this._get(t,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,s){var n=this._getNumberOfMonths(t),i=this._daylightSavingAdjust(new Date(i,s+(e<0?e:n[0]*n[1]),1));return e<0&&i.setDate(this._getDaysInMonth(i.getFullYear(),i.getMonth())),this._isInRange(t,i)},_isInRange:function(t,e){var i,s=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),o=null,r=null,t=this._get(t,"yearRange");return t&&(t=t.split(":"),i=(new Date).getFullYear(),o=parseInt(t[0],10),r=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(o+=i),t[1].match(/[+\-].*/)&&(r+=i)),(!s||e.getTime()>=s.getTime())&&(!n||e.getTime()<=n.getTime())&&(!o||e.getFullYear()>=o)&&(!r||r>=e.getFullYear())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);s=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),s,this._getFormatConfig(t))}}),k.fn.datepicker=function(t){if(!this.length)return this;k.datepicker.initialized||(k(document).on("mousedown",k.datepicker._checkExternalClick),k.datepicker.initialized=!0),0===k("#"+k.datepicker._mainDivId).length&&k("body").append(k.datepicker.dpDiv);
vendor: 4,246 bytes, line 1
1var e=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?k.datepicker["_"+t+"Datepicker"].apply(k.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?k.datepicker["_"+t+"Datepicker"].apply(k.datepicker,[this].concat(e)):k.datepicker._attachDatepicker(this,t)})},k.datepicker=new t,k.datepicker.initialized=!1,k.datepicker.uuid=(new Date).getTime(),k.datepicker.version="1.12.1",k.datepicker,k.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),!1),N=(k(document).on("mouseup",function(){O=!1}),k.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(t){return!0===k.data(t.target,e.widgetName+".preventClickEvent")?(k.removeData(t.target,e.widgetName+".preventClickEvent"),t.stopImmediatePropagation(),!1):void 0}),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){var e,i,s;if(!O)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),i=1===(this._mouseDownEvent=t).which,s=!("string"!=typeof(e=this).options.cancel||!t.target.nodeName)&&k(t.target).closest(this.options.cancel).length,i&&!s&&this._mouseCapture(t)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?t.preventDefault():(!0===k.data(t.target,this.widgetName+".preventClickEvent")&&k.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),O=!0)),!0},_mouseMove:function(t){if(this._mouseMoved){if(k.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=!1!==this._mouseStart(this._mouseDownEvent,t),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&&k.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,O=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),k.ui.plugin={add:function(t,e,i){var s,n=k.ui[t].prototype;for(s in i)n.plugins[s]=n.plugins[s]||[],n.plugins[s].push([e,i[s]])},call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},k.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&k(t).trigger("blur")},k.widget("ui.draggable",k.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,
vendor: 10,745 bytes, line 1
1containment:!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(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<k(t.target).closest(".ui-resizable-handle").length)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=k(this);return k("<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 e=k.ui.safeActiveElement(this.document[0]);k(t.target).closest(e).length||k.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),k.ui.ddmanager&&(k.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=0<this.helper.parents().filter(function(){return"fixed"===k(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),k.ui.ddmanager&&!e.dropBehaviour&&k.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),k.ui.ddmanager&&k.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){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:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){e=this._uiHash();if(!1===this._trigger("drag",t,e))return this._mouseUp(new k.Event("mouseup",t)),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",k.ui.ddmanager&&k.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,i=!1;return k.ui.ddmanager&&!this.options.dropBehaviour&&(i=k.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||k.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?k(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),k.ui.ddmanager&&k.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),k.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new k.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!k(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 e=this.options,i=k.isFunction(e.helper),t=i?k(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element;return t.parents("body").length||t.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),i&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=k.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&k.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?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,e=this.options,i=this.document[0];return this.relativeContainer=null,e.containment?"window"===e.containment?void(this.containment=[k(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,k(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,k(window).scrollLeft()+k(window).width()-this.helperProportions.width-this.margins.left,k(window).scrollTop()+(k(window).height()||i.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===e.containment?void(this.containment=[0,0,k(i).width()-this.helperProportions.width-this.margins.left,(k(i).height()||i.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):e.containment.constructor===Array?void(this.containment=e.containment):("parent"===e.containment&&(e.containment=this.helper[0].parentNode),void((e=(i=k(e.containment))[0])&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i))):void(this.containment=null)},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*t}},_generatePosition:function(t,e){var i,s=this.options,n=this._isRootNode(this.scrollParent[0]),o=t.pageX,r=t.pageY;return n&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(i=this.relativeContainer?(e=this.relativeContainer.offset(),[this.containment[0]+e.left,this.containment[1]+e.top,this.containment[2]+e.left,this.containment[3]+e.top]):this.containment,t.pageX-this.offset.click.left<i[0]&&(o=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(r=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(o=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(r=i[3]+this.offset.click.top)),s.grid&&(e=s.grid[1]?this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,r=!i||e-this.offset.click.top>=i[1]||e-this.offset.click.top>i[3]?e:e-this.offset.click.top>=i[1]?e-s.grid[1]:e+s.grid[1],t=s.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,o=!i||t-this.offset.click.left>=i[0]||t-this.offset.click.left>i[2]?t:t-this.offset.click.left>=i[0]?t-s.grid[0]:t+s.grid[0]),"y"===s.axis&&(o=this.originalPageX),"x"===s.axis&&(r=this.originalPageY)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:n?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,e,i){return i=i||this._uiHash(),k.ui.plugin.call(this,t,[e,i,this],!0),/^(drag|start|stop
vendor: 4,484 bytes, line 1
1)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),k.Widget.prototype._trigger.call(this,t,e,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),k.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,i){var s=k.extend({},t,{item:i.element});i.sortables=[],k(i.options.connectToSortable).each(function(){var t=k(this).sortable("instance");t&&!t.options.disabled&&(i.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,s))})},stop:function(e,t,i){var s=k.extend({},t,{item:i.element});i.cancelHelperRemoval=!1,k.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,s))})},drag:function(i,s,n){k.each(n.sortables,function(){var t=!1,e=this;e.positionAbs=n.positionAbs,e.helperProportions=n.helperProportions,e.offset.click=n.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,k.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,t=this!==e&&this._intersectsWith(this.containerCache)&&k.contains(e.element[0],this.element[0])?!1:t})),t?(e.isOver||(e.isOver=1,n._parent=s.helper.parent(),e.currentItem=s.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return s.helper[0]},i.target=e.currentItem[0],e._mouseCapture(i,!0),e._mouseStart(i,!0,!0),e.offset.click.top=n.offset.click.top,e.offset.click.left=n.offset.click.left,e.offset.parent.left-=n.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=n.offset.parent.top-e.offset.parent.top,n._trigger("toSortable",i),n.dropped=e.element,k.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,e.fromOutside=n),e.currentItem&&(e._mouseDrag(i),s.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",i,e._uiHash(e)),e._mouseStop(i,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),s.helper.appendTo(n._parent),n._refreshOffsets(i),s.position=n._generatePosition(i,!0),n._trigger("fromSortable",i),n.dropped=!1,k.each(n.sortables,function(){this.refreshPositions()}))})}}),k.ui.plugin.add("draggable","cursor",{start:function(t,e,i){var s=k("body"),i=i.options;s.css("cursor")&&(i._cursor=s.css("cursor")),s.css("cursor",i.cursor)},stop:function(t,e,i){i=i.options;i._cursor&&k("body").css("cursor",i._cursor)}}),k.ui.plugin.add("draggable","opacity",{start:function(t,e,i){e=k(e.helper),i=i.options;e.css("opacity")&&(i._opacity=e.css("opacity")),e.css("opacity",i.opacity)},stop:function(t,e,i){i=i.options;i._opacity&&k(e.helper).css("opacity",i._opacity)}}),k.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,e,i){var s=i.options,n=!1,o=i.scrollParentNotHidden[0],r=i.document[0];o!==r&&"HTML"!==o.tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+o.offsetHeight-t.pageY<s.scrollSensitivity?o.scrollTop=n=o.scrollTop+s.scrollSpeed:t.pageY-i.overflowOffset.top<s.scrollSensitivity&&(o.scrollTop=n=o.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(i.overflowOffset.left+o.offsetWidth-t.pageX<s.scrollSensitivity?o.scrollLeft=n=o.scrollLeft+s.scrollSpeed:t.pageX-i.overflowOffset.left<s.scrollSensitivity&&(o.scrollLeft=n=o.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(t.pageY-k(r).scrollTop()<s.scrollSensitivity?n=k(r).scrollTop(k(r).scrollTop()-s.scrollSpeed):k(window).height()-(t.pageY-k(r).scrollTop())<s.scrollSensitivity&&(n=k(r).scrollTop(k(r).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(t.pageX-k(r).scrollLeft()<s.scrollSensitivity?n=k(r).scrollLeft(k(r).scrollLeft()-s.scrollSpeed):k(window).width()-(t.pageX-k(r).scrollLeft())<s.scrollSensitivity&&(n=k(r).scrollLeft(k(r).scrollLeft()+s.scrollSpeed)))),!1!==n&&k.ui.ddmanager&&!s.dropBehaviour&&k.ui.ddmanager.prepareOffsets(i,t)}}
vendor: 11,002 bytes, line 1
1),k.ui.plugin.add("draggable","snap",{start:function(t,e,i){var s=i.options;i.snapElements=[],k(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each(function(){var t=k(this),e=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,i){for(var s,n,o,r,a,l,h,c,u,d=i.options,p=d.snapTolerance,f=e.offset.left,g=f+i.helperProportions.width,m=e.offset.top,v=m+i.helperProportions.height,y=i.snapElements.length-1;0<=y;y--)l=(a=i.snapElements[y].left-i.margins.left)+i.snapElements[y].width,c=(h=i.snapElements[y].top-i.margins.top)+i.snapElements[y].height,g<a-p||l+p<f||v<h-p||c+p<m||!k.contains(i.snapElements[y].item.ownerDocument,i.snapElements[y].item)?(i.snapElements[y].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,k.extend(i._uiHash(),{snapItem:i.snapElements[y].item})),i.snapElements[y].snapping=!1):("inner"!==d.snapMode&&(s=p>=Math.abs(h-v),n=p>=Math.abs(c-m),o=p>=Math.abs(a-g),r=p>=Math.abs(l-f),s&&(e.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),n&&(e.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:a-i.helperProportions.width}).left),r&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l}).left)),u=s||n||o||r,"outer"!==d.snapMode&&(s=p>=Math.abs(h-m),n=p>=Math.abs(c-v),o=p>=Math.abs(a-f),r=p>=Math.abs(l-g),s&&(e.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),n&&(e.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:a}).left),r&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left)),!i.snapElements[y].snapping&&(s||n||o||r||u)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,k.extend(i._uiHash(),{snapItem:i.snapElements[y].item})),i.snapElements[y].snapping=s||n||o||r||u)}}),k.ui.plugin.add("draggable","stack",{start:function(t,e,i){var s,i=i.options,i=k.makeArray(k(i.stack)).sort(function(t,e){return(parseInt(k(t).css("zIndex"),10)||0)-(parseInt(k(e).css("zIndex"),10)||0)});i.length&&(s=parseInt(k(i[0]).css("zIndex"),10)||0,k(i).each(function(t){k(this).css("zIndex",s+t)}),this.css("zIndex",s+i.length))}}),k.ui.plugin.add("draggable","zIndex",{start:function(t,e,i){e=k(e.helper),i=i.options;e.css("zIndex")&&(i._zIndex=e.css("zIndex")),e.css("zIndex",i.zIndex)},stop:function(t,e,i){i=i.options;i._zIndex&&k(e.helper).css("zIndex",i._zIndex)}}),k.ui.draggable,k.widget("ui.resizable",k.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(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(t,e){if("hidden"===k(t).css("overflow"))return!1;var i,e=e&&"left"===e?"scrollLeft":"scrollTop";return 0<t[e]||(t[e]=1,i=0<t[e],t[e]=0,i)},_create:function(){var t,e=this.options,i=this;this._addClass("ui-resizable"),k.extend(this,{_aspectRatio:!!e.aspectRatio,aspectRatio:e.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(k("<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,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),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(t),this._proportionallyResize()),this._setupHandles(),e.autoHide&&k(this.element).on("mouseenter",function(){e.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){e.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();function t(t){k(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()}var e;return this.elementIsWrapper&&(t(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(t,e){"handles"===(this._super(t,e),t)&&(this._removeHandles(),this._setupHandles())},_setupHandles:function(){var t,e,i,s,n,o=this.options,r=this;if(this.handles=o.handles||(k(".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=k(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},e=0;i.length>e;e++)s="ui-resizable-"+(t=k.trim(i[e])),n=k("<div>"),this._addClass(n,"ui-resizable-handle "+s),n.css({zIndex:o.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.append(n);this._renderAxis=function(t){var e,i,s;for(e in t=t||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=k(this.handles[e]),this._on(this.handles[e],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=k(this.handles[e],this.element),s=/sw|ne|nw|se|n|s/.test(e)?s.outerHeight():s.outerWidth(),i=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),t.css(i,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){r.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=n&&n[1]?n[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var e,i,s=!1;for(e in this.handles)i=k(this.handles[e])[0],i!==t.target&&!k.contains(i,t.target)||(s=!0);return!this.options.disabled&&s},_mouseStart:function(t){var e,i,s=this.options,n=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),s.containment&&(e+=k(s.containment).scrollLeft()||0,i+=k(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,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:e,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=k(".ui-resizable-"+this.axis).css("cursor"),k("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e=this.originalMousePosition,i=this.axis,s=t.pageX-e.left||0,e=t.pageY-e.top||0,i=this._change[i];return this._updatePrevProperties(),i&&(i=i.apply(this,[t,s,e]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),k.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var e,i,s,n=this.options,o=this;return this._helper&&(i=(e=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:o.sizeDiff.height,e=e?0:o.sizeDiff.width,e={width:o.helper.width()-e,height:o.helper.height()-i},i=parseFloat(o.element.css("left"))+(o.position.left-o.originalPosition.left)||null,s=parseFloat(o.element.css("top"))+(o.position.top-o.originalPosition.top)||null,n.animate||this.element.css(k.extend(e,{top:s,left:i})),o.helper.height(o.size.height),o.helper.width(o.size.width),this._helper&&!n.animate&&this._proportionallyResize()),k("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 t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,s,n=this.options,n={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||t)&&(t=n.minHeight*this.aspectRatio,i=n.minWidth/this.aspectRatio,e=n.maxHeight*this.aspectRatio,s=n.maxWidth/this.aspectRatio,t>n.minWidth&&(n.minWidth=t),i>n.minHeight&&(n.minHeight=i),n.maxWidth>e&&(n.maxWidth=e),n.maxHeight>s&&(n.maxHeight=s)),this._vBoundaries=n},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left
vendor: 5,515 bytes, line 1
1=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,n=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,r=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),i=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),r&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),o&&h&&(t.left=a-e.minWidth),s&&h&&(t.left=a-e.maxWidth),r&&i&&(t.top=l-e.minHeight),n&&i&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(n[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,e=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||k("<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:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(t,e,i){return k.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},sw:function(t,e,i){return k.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,i]))},ne:function(t,e,i){return k.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},nw:function(t,e,i){return k.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,i]))}},_propagate:function(t,e){k.ui.plugin.call(this,t,[e,this.ui()]),"resize"!==t&&this._trigger(t,e,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}}}),k.ui.plugin.add("resizable","animate",{stop:function(e){var i=k(this).resizable("instance"),t=i.options,s=i._proportionallyResizeElements,n=s.length&&/textarea/i.test(s[0].nodeName),o=n&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,n=n?0:i.sizeDiff.width,n={width:i.size.width-n,height:i.size.height-o},o=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,r=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(k.extend(n,r&&o?{top:r,left:o}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};s&&s.length&&k(s[0]).css({width:t.width,height:t.height}),i._updateCache(t),i._propagate("resize",e)}})}}),k.ui.plugin.add("resizable","containment",{start:function(){var i,s,t,e,n=k(this).resizable("instance"),o=n.options,r=n.element,o=o.containment,r=o instanceof k?o.get(0):/parent/.test(o)?r.parent().get(0):o;r&&(n.containerElement=k(r),/document/.test(o)||o===document?(n.containerOffset={left:0,top:0},n.containerPosition={left:0,top:0},n.parentData={element:k(document),left:0,top:0,width:k(document).width(),height:k(document).height()||document.body.parentNode.scrollHeight}):(i=k(r),s=[],k(["Top","Right","Left","Bottom"]).each(function(t,e){s[t]=n._num(i.css("padding"+e))}),n.containerOffset=i.offset(),n.containerPosition=i.position(),n.containerSize={height:i.innerHeight()-s[3],width:i.innerWidth()-s[1]},o=n.containerOffset,e=n.containerSize.height,t=n.containerSize.width,t=n._hasScroll(r,"left")?r.scrollWidth:t,e=n._hasScroll(r)?r.scrollHeight:e,n.parentData={element:r,left:o.left,top:o.top,width:t,height:e}))},resize:function(t){var e=k(this).resizable("instance"),i=e.options,s=e.containerOffset,n=e.position,t=e._aspectRatio||t.shiftKey,o={top:0,left:0}
vendor: 22,468 bytes, line 1
1,r=e.containerElement,a=!0;r[0]!==document&&/static/.test(r.css("position"))&&(o=s),n.left<(e._helper?s.left:0)&&(e.size.width=e.size.width+(e._helper?e.position.left-s.left:e.position.left-o.left),t&&(e.size.height=e.size.width/e.aspectRatio,a=!1),e.position.left=i.helper?s.left:0),n.top<(e._helper?s.top:0)&&(e.size.height=e.size.height+(e._helper?e.position.top-s.top:e.position.top),t&&(e.size.width=e.size.height*e.aspectRatio,a=!1),e.position.top=e._helper?s.top:0),r=e.containerElement.get(0)===e.element.parent().get(0),i=/relative|absolute/.test(e.containerElement.css("position")),r&&i?(e.offset.left=e.parentData.left+e.position.left,e.offset.top=e.parentData.top+e.position.top):(e.offset.left=e.element.offset().left,e.offset.top=e.element.offset().top),n=Math.abs(e.sizeDiff.width+(e._helper?e.offset.left-o.left:e.offset.left-s.left)),r=Math.abs(e.sizeDiff.height+(e._helper?e.offset.top-o.top:e.offset.top-s.top)),n+e.size.width>=e.parentData.width&&(e.size.width=e.parentData.width-n,t&&(e.size.height=e.size.width/e.aspectRatio,a=!1)),r+e.size.height>=e.parentData.height&&(e.size.height=e.parentData.height-r,t&&(e.size.width=e.size.height*e.aspectRatio,a=!1)),a||(e.position.left=e.prevPosition.left,e.position.top=e.prevPosition.top,e.size.width=e.prevSize.width,e.size.height=e.prevSize.height)},stop:function(){var t=k(this).resizable("instance"),e=t.options,i=t.containerOffset,s=t.containerPosition,n=t.containerElement,o=k(t.helper),r=o.offset(),a=o.outerWidth()-t.sizeDiff.width,o=o.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(n.css("position"))&&k(this).css({left:r.left-s.left-i.left,width:a,height:o}),t._helper&&!e.animate&&/static/.test(n.css("position"))&&k(this).css({left:r.left-s.left-i.left,width:a,height:o})}}),k.ui.plugin.add("resizable","alsoResize",{start:function(){var t=k(this).resizable("instance").options;k(t.alsoResize).each(function(){var t=k(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,i){var e=k(this).resizable("instance"),s=e.options,n=e.originalSize,o=e.originalPosition,r={height:e.size.height-n.height||0,width:e.size.width-n.width||0,top:e.position.top-o.top||0,left:e.position.left-o.left||0};k(s.alsoResize).each(function(){var t=k(this),s=k(this).data("ui-resizable-alsoresize"),n={},e=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];k.each(e,function(t,e){var i=(s[e]||0)+(r[e]||0);i&&0<=i&&(n[e]=i||null)}),t.css(n)})},stop:function(){k(this).removeData("ui-resizable-alsoresize")}}),k.ui.plugin.add("resizable","ghost",{start:function(){var t=k(this).resizable("instance"),e=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==k.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=k(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=k(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),k.ui.plugin.add("resizable","grid",{resize:function(){var t,e=k(this).resizable("instance"),i=e.options,s=e.size,n=e.originalSize,o=e.originalPosition,r=e.axis,a="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=a[0]||1,h=a[1]||1,c=Math.round((s.width-n.width)/l)*l,s=Math.round((s.height-n.height)/h)*h,u=n.width+c,d=n.height+s,p=i.maxWidth&&u>i.maxWidth,f=i.maxHeight&&d>i.maxHeight,g=i.minWidth&&i.minWidth>u,m=i.minHeight&&i.minHeight>d;i.grid=a,g&&(u+=l),m&&(d+=h),p&&(u-=l),f&&(d-=h),/^(se|s|e)$/.test(r)?(e.size.width=u,e.size.height=d):/^(ne)$/.test(r)?(e.size.width=u,e.size.height=d,e.position.top=o.top-s):/^(sw)$/.test(r)?(e.size.width=u,e.size.height=d,e.position.left=o.left-c):((d-h<=0||u-l<=0)&&(t=e._getPaddingPlusBorderDimensions(this)),0<d-h?(e.size.height=d,e.position.top=o.top-s):(d=h-t.height,e.size.height=d,e.position.top=o.top+n.height-d),0<u-l?(e.size.width=u,e.position.left=o.left-c):(u=l-t.width,e.size.width=u,e.position.left=o.left+n.width-u))}}),k.ui.resizable,k.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 e=k(this).css(t).offset().top;e<0&&k(this).css("top",t.top-e)}},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"),null==this.options.title&&null!=this.originalTitle&&(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&&k.fn.draggable&&this._makeDraggable(),this.options.resizable&&k.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)?k(t):this.document.find(t||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:k.noop,enable:k.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||k.ui.safeBlur(k.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!1,s=this.uiDialog.siblings(".ui-front:visible").map(function(){return+k(this).css("z-index")}).get(),s=Math.max.apply(null,s);return s>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",s+1),i=!0),i&&!e&&this._trigger("focus",t),i},open:function(){var t=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=k(k.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),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;(t=(t=(t=(t=(t=t||this.element.find("[autofocus]")).length?t:this.element.find(":tabbable")).length?t:this.uiDialogButtonPane.find(":tabbable")).length?t:this.uiDialogTitlebarClose.filter(":tabbable")).length?t:this.uiDialog).eq(0).trigger("focus")},_keepFocus:function(t){function e(){var t=k.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||k.contains(this.uiDialog[0],t)||this._focusTabbable()}t.preventDefault(),e.call(this),this._delay(e)},_createWrapper:function(){this.uiDialog=k("<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===k.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);var e,i,s;t.keyCode!==k.ui.keyCode.TAB||t.isDefaultPrevented()||(e=this.uiDialog.find(":tabbable"),i=e.filter(":first"),s=e.filter(":last"),t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==i[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){s.trigger("focus")}),t.preventDefault()):(this._delay(function(){i.trigger("focus")}),t.preventDefault()))},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=k("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){k(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=k("<button type='button'></button>").button({label:k("<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(t){t.preventDefault(),this.close(t)}}),t=k("<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(t){this.options.title?t.text(this.options.title):t.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=k("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=k("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var s=this,t=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),k.isEmptyObject(t)||k.isArray(t)&&!t.length?void this._removeClass(this.uiDialog,"ui-dialog-buttons"):(k.each(t,function(t,e){var i;e=k.isFunction(e)?{click:e,text:t}:e,e=k.extend({type:"button"},e),i=e.click,t={icon:e.icon,iconPosition:e.iconPosition,showLabel:e.showLabel,icons:e.icons,text:e.text},delete e.click,delete e.icon,delete e.iconPosition,delete e.showLabel,delete e.icons,"boolean"==typeof e.text&&delete e.text,k("<button></button>",e).button(t).appendTo(s.uiButtonSet).on("click",function(){i.apply(s.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function n(t){return{position:t.position,offset:t.offset}}var o=this,r=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(t,e){o._addClass(k(this),"ui-dialog-dragging"),o._blockFrames(),o._trigger("dragStart",t,n(e))},drag:function(t,e){o._trigger("drag",t,n(e))},stop:function(t,e){var i=e.offset.left-o.document.scrollLeft(),s=e.offset.top-o.document.scrollTop();r.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=s?"+":"")+s,of:o.window},o._removeClass(k(this),"ui-dialog-dragging"),o._unblockFrames(),o._trigger("dragStop",t,n(e))}})},_makeResizable:function(){function n(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var o=this,r=this.options,t=r.resizable,e=this.uiDialog.css("position"),t="string"==typeof t?t:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:r.maxWidth,maxHeight:r.maxHeight,minWidth:r.minWidth,minHeight:this._minHeight(),handles:t,start:function(t,e){o._addClass(k(this),"ui-dialog-resizing"),o._blockFrames(),o._trigger("resizeStart",t,n(e))},resize:function(t,e){o._trigger("resize",t,n(e))},stop:function(t,e){var i=o.uiDialog.offset(),s=i.left-o.document.scrollLeft(),i=i.top-o.document.scrollTop();r.height=o.uiDialog.height(),r.width=o.uiDialog.width(),r.position={my:"left top",at:"left"+(0<=s?"+":"")+s+" top"+(0<=i?"+":"")+i,of:o.window},o._removeClass(k(this),"ui-dialog-resizing"),o._unblockFrames(),o._trigger("resizeStop",t,n(e))}}).css("position",e)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=k(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=k.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||this.document.data("ui-dialog-instances",t=[]),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(t){var i=this,s=!1,n={};k.each(t,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(s=!0),t in i.resizableRelatedOptions&&(n[t]=e)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",n)},_setOption:function(t,e){var i,s=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:k("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((i=s.is(":data(ui-draggable)"))&&!e&&s.draggable("destroy"),!i&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((i=s.is(":data(ui-resizable)"))&&!e&&s.resizable("destroy"),i&&"string"==typeof e&&s.resizable("option","handles",e),i||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,s=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width&&(s.width=s.minWidth),t=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),e=Math.max(0,s.minHeight-t),i="number"==typeof s.maxHeight?Math.max(0,s.maxHeight-t):"none","auto"===s.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.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=k(this);return k("<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!!k(t.target).closest(".ui-dialog").length||!!k(t.target).closest(".ui-datepicker").length},_createOverlay:function(){var e;this.options.modal&&(e=!0,this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=k("<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(){var t;this.options.modal&&this.overlay&&((t=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!1!==k.uiBackCompat&&k.widget("ui.dialog",k.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),k.ui.dialog,k.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 t,e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept=k.isFunction(i)?i:function(t){return t.is(i)},this.proportions=function(){return arguments.length?void(t=arguments[0]):t=t||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){k.ui.ddmanager.droppables[t]=k.ui.ddmanager.droppables[t]||[],k.ui.ddmanager.droppables[t].push(this)},_splice:function(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var t=k.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,e){var i;"accept"===t?this.accept=k.isFunction(e)?e:function(t){return t.is(e)}:"scope"===t&&(i=k.ui.ddmanager.droppables[this.options.scope],this._splice(i),this._addToManager(e)),this._super(t,e)},_activate:function(t){var e=k.ui.ddmanager.current;this._addActiveClass(),e&&this._trigger("activate",t,this.ui(e))},_deactivate:function(t){var e=k.ui.ddmanager.current;this._removeActiveClass(),e&&this._trigger("deactivate",t,this.ui(e))},_over:function(t){var e=k.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(e)))},_out:function(t){var e=k.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(e)))},_drop:function(e,t){var i=t||k.ui.ddmanager.current,s=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=k(this).droppable("instance");return t.options.greedy&&!t.options.disabled&&t.options.scope===i.options.scope&&t.accept.call(t.element[0],i.currentItem||i.element)&&N(i,k.extend(t,{offset:t.element.offset()}),t.options.tolerance,e)?!(s=!0):void 0}),!s&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(i)),this.element)))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.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")}}),k.ui.intersect=function(t,e,i,s){if(!e.offset)return!1;var n=(t.positionAbs||t.position.absolute).left+t.margins.left,o=(t.positionAbs||t.position.absolute).top+t.margins.top,r=n+t.helperProportions.width,a=o+t.helperProportions.height,l=e.offset.left,h=e.offset.top,c=l+e.proportions().width,u=h+e.proportions().height;switch(i){case"fit":return l<=n&&r<=c&&h<=o&&a<=u;case"intersect":return n+t.helperProportions.width/2>l&&c>r-t.helperProportions.width/2&&o+t.helperProportions.height/2>h&&u>a-t.helperProportions.height/2;case"pointer":return at(s.pageY,h,e.proportions().height)&&at(s.pageX,l,e.proportions().width);case"touch":return(h<=o&&o<=u||h<=a&&a<=u||o<h&&u<a)&&(l<=n&&n<=c||l<=r&&r<=c||n<l&&c<r);default:return!1}});function at(t,e,i){return e<=t&&t<e+i}!(k.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,e){var i,s,n=k.ui.ddmanager.droppables[t.options.scope]||[],o=e?e.type:null,r=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();t:for(i=0;n.length>i;i++)if(!(n[i].options.disabled||t&&!n[i].accept.call(n[i].element[0],t.currentItem||t.element))){for(s=0;r.length>s;s++)if(r[s]===n[i].element[0]){n[i].proportions().height=0;continue t}n[i].visible="none"!==n[i].element.css("display"),n[i].visible&&("mousedown"===o&&n[i]._activate.call(n[i],e),n[i].offset=n[i].element.offset(),n[i].proportions({width:n[i].element[0].offsetWidth,height:n[i].element[0].offsetHeight}))}},drop:function(t,e){var i=!1;return k.each((k.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&N(t,this,this.options.tolerance,e)&&(i=this._drop.call(this,e)||i),!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,e)))}),i},dragStart:function(t,e){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||k.ui.ddmanager.prepareOffsets(t,e)})},drag:function(n,o){n.options.refreshPositions&&k.ui.ddmanager.prepareOffsets(n,o),k.each(k.ui.ddmanager.droppables[n.options.scope]||[],function(){var t,e,i,s;this.options.disabled||this.greedyChild||!this.visible||(s=!(s=N(n,this,this.options.tolerance,o))&&this.isover?"isout":s&&!this.isover?"isover":null)&&(this.options.greedy&&(e=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return k(this).droppable("instance").options.scope===e})).length&&((t=k(i[0]).droppable("instance")).greedyChild="isover"===s)),t&&"isover"===s&&(t.isover=!1,t.isout=!0,t._out.call(t,o)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,o),t&&"isout"===s&&(t.isout=!1,t.isover=!0,t._over.call(t,o)))})},dragStop:function(t,e){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||k.ui.ddmanager.prepareOffsets(t,e)}}
vendor: 5,233 bytes, line 1
1)!==k.uiBackCompat&&k.widget("ui.droppable",k.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)}}),k.ui.droppable,k.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=k("<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(t){return void 0===t?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,e=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(e.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=k("<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")}}),k.widget("ui.selectable",k.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 i=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){i.elementPos=k(i.element[0]).offset(),i.selectees=k(i.options.filter,i.element[0]),i._addClass(i.selectees,"ui-selectee"),i.selectees.each(function(){var t=k(this),e=t.offset(),e={left:e.left-i.elementPos.left,top:e.top-i.elementPos.top};k.data(this,"selectable-item",{element:this,$element:t,left:e.left,top:e.top,right:e.left+t.outerWidth(),bottom:e.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=k("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(i){var s=this,t=this.options;this.opos=[i.pageX,i.pageY],this.elementPos=k(this.element[0]).offset(),this.options.disabled||(this.selectees=k(t.filter,this.element[0]),this._trigger("start",i),k(t.appendTo).append(this.helper),this.helper.css({left:i.pageX,top:i.pageY,width:0,height:0}),t.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var t=k.data(this,"selectable-item");t.startselected=!0,i.metaKey||i.ctrlKey||(s._removeClass(t.$element,"ui-selected"),t.selected=!1,s._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,s._trigger("unselecting",i,{unselecting:t.element}))}),k(i.target).parents().addBack().each(function(){var t,e=k.data(this,"selectable-item");return e?(t=!i.metaKey&&!i.ctrlKey||!e.$element.hasClass("ui-selected"),s._removeClass(e.$element,t?"ui-unselecting":"ui-selected")._addClass(e.$element,t?"ui-selecting":"ui-unselecting"),e.unselecting=!t,e.selecting=t,(e.selected=t)?s._trigger("selecting",i,{selecting:e.element}):s._trigger("unselecting",i,{unselecting:e.element}),!1):void 0}))},_mouseDrag:function(s){var t,n,o,r,a,l,h;if(this.dragged=!0,!this.options.disabled)return o=(n=this).options,r=this.opos[0],a=this.opos[1],l=s.pageX,h=s.pageY,l<r&&(t=l,l=r,r=t),h<a&&(t=h,h=a,a=t),this.helper.css({left:r,top:a,width:l-r,height:h-a}),this.selectees.each(function(){var t=k.data(this,"selectable-item"),e=!1,i={};
vendor: 6,761 bytes, line 1
1t&&t.element!==n.element[0]&&(i.left=t.left+n.elementPos.left,i.right=t.right+n.elementPos.left,i.top=t.top+n.elementPos.top,i.bottom=t.bottom+n.elementPos.top,"touch"===o.tolerance?e=!(i.left>l||r>i.right||i.top>h||a>i.bottom):"fit"===o.tolerance&&(e=i.left>r&&l>i.right&&i.top>a&&h>i.bottom),e?(t.selected&&(n._removeClass(t.$element,"ui-selected"),t.selected=!1),t.unselecting&&(n._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1),t.selecting||(n._addClass(t.$element,"ui-selecting"),t.selecting=!0,n._trigger("selecting",s,{selecting:t.element}))):(t.selecting&&((s.metaKey||s.ctrlKey)&&t.startselected?(n._removeClass(t.$element,"ui-selecting"),t.selecting=!1,n._addClass(t.$element,"ui-selected"),t.selected=!0):(n._removeClass(t.$element,"ui-selecting"),t.selecting=!1,t.startselected&&(n._addClass(t.$element,"ui-unselecting"),t.unselecting=!0),n._trigger("unselecting",s,{unselecting:t.element}))),!t.selected||s.metaKey||s.ctrlKey||t.startselected||(n._removeClass(t.$element,"ui-selected"),t.selected=!1,n._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,n._trigger("unselecting",s,{unselecting:t.element}))))}),!1},_mouseStop:function(e){var i=this;return this.dragged=!1,k(".ui-unselecting",this.element[0]).each(function(){var t=k.data(this,"selectable-item");i._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1,t.startselected=!1,i._trigger("unselected",e,{unselected:t.element})}),k(".ui-selecting",this.element[0]).each(function(){var t=k.data(this,"selectable-item");i._removeClass(t.$element,"ui-selecting")._addClass(t.$element,"ui-selected"),t.selecting=!1,t.selected=!0,t.startselected=!0,i._trigger("selected",e,{selected:t.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),k.widget("ui.selectmenu",[k.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=k()},_drawButton:function(){var t,e=this,i=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(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=k("<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=k("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(i).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){e._rendered||e._refreshMenu()})},_drawMenu:function(){var i=this;this.menu=k("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=k("<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(t,e){t.preventDefault(),i._setSelection(),i._select(e.item.data("ui-selectmenu-item"),t)},focus:function(t,e){e=e.item.data("ui-selectmenu-item");null!=i.focusIndex&&e.index!==i.focusIndex&&(i._trigger("focus",t,{item:e}),i.isOpen||i._select(e,t)),i.focusIndex=e.index,i.button.attr("aria-activedescendant",i.menuItems.eq(e.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")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t=this.element.find("option");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&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(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&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(k.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var e=k("<span>");return this._setText(e,t.label),this._addClass(e,"ui-selectmenu-text"),e},_renderMenu:function(s,t){var n=this,o="";k.each(t,function(t,e){var i;e.optgroup!==o&&(i=k("<li>",{text:e.optgroup}),n._addClass(i,"ui-selectmenu-optgroup","ui-menu-divider"+(e.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),i.appendTo(s),o=e.optgroup),n._renderItemData(s,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(t,e){var i=k("<li>"),s=k("<div>",{title:e.element.attr("title")});return e.disabled&&this._addClass(i,null,"ui-state-disabled"),this._setText(s,e.label),i.append(s).appendTo(t)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var i,s=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),s+=":not(.ui-state-disabled)"),(i="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](s).eq(-1):i[t+"All"](s).eq(0)).length&&this.menuInstance.focus(e,i)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")}
vendor: 4,332 bytes, line 1
1,_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){!this.isOpen||k(t.target).closest(".ui-selectmenu-menu, #"+k.ui.escapeSelector(this.ids.button)).length||this.close(t)}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(t){var e=!0;switch(t.keyCode){case k.ui.keyCode.TAB:case k.ui.keyCode.ESCAPE:this.close(t),e=!1;break;case k.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case k.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case k.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case k.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case k.ui.keyCode.LEFT:this._move("prev",t);break;case k.ui.keyCode.RIGHT:this._move("next",t);break;case k.ui.keyCode.HOME:case k.ui.keyCode.PAGE_UP:this._move("first",t);break;case k.ui.keyCode.END:case k.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),e=!1}e&&t.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){t=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(t,e){var i;"icons"===t&&(i=this.button.find("span.ui-icon"),this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t=(t=(t=t&&(t.jquery||t.nodeType?k(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front, dialog")).length?t:this.document[0].body},_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 t=this.options.width;return!1===t?void this.button.css("width",""):(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),void this.button.outerWidth(t))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(t){var i=this,s=[];t.each(function(t,e){s.push(i._parseOption(k(e),t))}),this.items=s},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.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)}}]),k.widget("ui.slider",k.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}
vendor: 4,685 bytes, line 1
1,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 t,e=this.options,i=this.element.find(".ui-slider-handle"),s=[],n=e.values&&e.values.length||1;for(i.length>n&&(i.slice(n).remove(),i=i.slice(0,n)),t=i.length;t<n;t++)s.push("<span tabindex='0'></span>");this.handles=i.add(k(s.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){k(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:k.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=k("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||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 i,s,n,o,e,r,a=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(i-a.values(t));(e<s||s===e&&(t===a._lastChangedValue||a.values(t)===l.min))&&(s=e,n=k(this),o=t)}),!1!==this._start(t,o)&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(n,null,"ui-state-active"),n.trigger("focus"),e=n.offset(),r=!k(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=r?{left:0,top:0}:{left:t.pageX-e.left-n.width()/2,top:t.pageY-e.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))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},e=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,e),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,t="horizontal"===this.orientation?(e=this.elementSize.width,t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=t/e;return(t=1<t?1:t)<0&&(t=0),"vertical"===this.orientation&&(t=1-t),e=this._valueMax()-this._valueMin(),t=this._valueMin()+t*e,this._trimAlignValue(t)},_uiHash:function(t,e,i){var s={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==e?e:this.values(t),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var s,n=this.value(),o=this.values();this._hasMultipleValues()&&(s=this.values(e?0:1),n=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(s,i):Math.max(s,i)),o[e]=i),i===n||!1!==this._trigger("slide",t,this._uiHash(e,i,o))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value(
vendor: 4,821 bytes, line 1
1)},values:function(t,e){var i,s,n;if(1<arguments.length)return this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!k.isArray(t))return this._hasMultipleValues()?this._values(t):this.value();for(i=this.options.values,s=t,n=0;i.length>n;n+=1)i[n]=this._trimAlignValue(s[n]),this._change(null,n);this._refreshValue()},_setOption:function(t,e){var i,s=0;switch("range"===t&&!0===this.options.range&&("min"===e?(this.options.value=this._values(0),this.options.values=null):"max"===e&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),k.isArray(this.options.values)&&(s=this.options.values.length),this._super(t,e),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(e),this.handles.css("horizontal"===e?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=s-1;0<=i;i--)this._change(null,i);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}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,i,s;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this._hasMultipleValues()){for(i=this.options.values.slice(),s=0;i.length>s;s+=1)i[s]=this._trimAlignValue(i[s]);return i}return[]},_trimAlignValue:function(t){if(this._valueMin()>=t)return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=0<this.options.step?this.options.step:1,i=(t-this._valueMin())%e,t=t-i;return 2*Math.abs(i)>=e&&(t+=0<i?e:-e),parseFloat(t.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;(t=Math.round((t-e)/i)*i+e)>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var t=""+t,e=t.indexOf(".");return-1===e?0:t.length-e-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,t,s,n,o=this.options.range,r=this.options,a=this,l=!this._animateOff&&r.animate,h={};this._hasMultipleValues()?this.handles.each(function(t){i=(a.values(t)-a._valueMin())/(a._valueMax()-a._valueMin())*100,h["horizontal"===a.orientation?"left":"bottom"]=i+"%",k(this).stop(1,1)[l?"animate":"css"](h,r.animate),!0===a.options.range&&("horizontal"===a.orientation?(0===t&&a.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},r.animate),1===t&&a.range[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:r.animate})):(0===t&&a.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},r.animate),1===t&&a.range[l?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:r.animate}))),e=i}):(t=this.value(),s=this._valueMin(),n=this._valueMax(),i=n!==s?(t-s)/(n-s)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](h,r.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},r.animate),"max"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-i+"%"},r.animate),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},r.animate),"max"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-i+"%"},r.animate))},_handleEvents:{keydown:function(t){var e,i,s,n=k(t.target).data("ui-slider-handle-index");switch(t.keyCode){case k.ui.keyCode.HOME:case k.ui.keyCode.END:case k.ui.keyCode.PAGE_UP:case k.ui.keyCode.PAGE_DOWN:case k.ui.keyCode.UP:case k.ui.keyCode.RIGHT:case k.ui.keyCode.DOWN:case k.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(k(t.target),null,"ui-state-active"),!1===this._start(t,n)))return}switch(s=this.options.step,e=i=this._hasMultipleValues()?this.values(n):this.value(),t.keyCode){case k.ui.keyCode.HOME:i=this._valueMin();break;case k.ui.keyCode.END:i=this._valueMax();break;case k.ui.keyCode.PAGE_UP:i=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/this.numPages);break;
vendor: 4,217 bytes, line 1
1case k.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/this.numPages);break;case k.ui.keyCode.UP:case k.ui.keyCode.RIGHT:if(e===this._valueMax())return;i=this._trimAlignValue(e+s);break;case k.ui.keyCode.DOWN:case k.ui.keyCode.LEFT:if(e===this._valueMin())return;i=this._trimAlignValue(e-s)}this._slide(t,n,i)},keyup:function(t){var e=k(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,e),this._change(t,e),this._removeClass(k(t.target),null,"ui-state-active"))}}}),k.widget("ui.sortable",k.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(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.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(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),k.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 t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var i=null,s=!1,n=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),k(t.target).parents().each(function(){return k.data(this,n.widgetName+"-item")===n?(i=k(this),!1):void 0}),!!(i=k.data(t.target,n.widgetName+"-item")===n?k(t.target):i)&&(!(this.options.handle&&!e&&(k(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!s))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(t,e,i){var s,n,o=this.options;if((this.currentContainer=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},k.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&&"auto"!==o.cursor&&(n=this.document.find("body"),this.storedCursor=n.css("cursor"),n.css("cursor",o.cursor),this.storedStylesheet=k("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(n)),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]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(s=this.containers.length-1;0<=s;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));
vendor: 4,832 bytes, line 1
1return k.ui.ddmanager&&(k.ui.ddmanager.current=this),k.ui.ddmanager&&!o.dropBehaviour&&k.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,i,s,n,o=this.options,r=!1;for(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]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<o.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+o.scrollSpeed:t.pageY-this.overflowOffset.top<o.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-o.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<o.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+o.scrollSpeed:t.pageX-this.overflowOffset.left<o.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-o.scrollSpeed)):(t.pageY-this.document.scrollTop()<o.scrollSensitivity?r=this.document.scrollTop(this.document.scrollTop()-o.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<o.scrollSensitivity&&(r=this.document.scrollTop(this.document.scrollTop()+o.scrollSpeed)),t.pageX-this.document.scrollLeft()<o.scrollSensitivity?r=this.document.scrollLeft(this.document.scrollLeft()-o.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<o.scrollSensitivity&&(r=this.document.scrollLeft(this.document.scrollLeft()+o.scrollSpeed))),!1!==r&&k.ui.ddmanager&&!o.dropBehaviour&&k.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e=this.items.length-1;0<=e;e--)if(s=(i=this.items[e]).item[0],(n=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&s!==this.currentItem[0]&&this.placeholder[1===n?"next":"prev"]()[0]!==s&&!k.contains(this.placeholder[0],s)&&("semi-dynamic"!==this.options.type||!k.contains(this.element[0],s))){if(this.direction=1===n?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),k.ui.ddmanager&&k.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var i,s,n,o;if(t)return k.ui.ddmanager&&!this.options.dropBehaviour&&k.ui.ddmanager.drop(this,t),this.options.revert?(s=(i=this).placeholder.offset(),o={},(n=this.options.axis)&&"x"!==n||(o.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),n&&"y"!==n||(o.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,k(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){i._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp(new k.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;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]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),k.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?k(this.domPosition.prev).after(this.currentItem):k(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},k(t).each(function(){var t=(k(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&i.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e.each(function(){i.push(k(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,o=t.left,r=o+t.width,a=t.to
1p,l=a+t.height,h=this.offset.click.top,c=this.offset.click.left,h="x"===this.options.axis||a<s+h&&s+h<l,c="y"===this.options.axis||o<e+c&&e+c<r;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?h&&c:e+this.helperProportions.width/2>o&&r>i-this.helperProportions.width/2&&s+this.helperProportions.height/2>a&&l>n-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!!(e&&t)&&(e=this._getDragVerticalDirection(),t=this._getDragHorizontalDirection(),this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),t=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&t||"left"===s&&!t:i&&("down"===i&&e||"up"===i&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){function e(){r.push(this)}var i,s,n,o,r=[],a=[],l=this._connectWith();if(l&&t)for(i=l.length-1;0<=i;i--)for(s=(n=k(l[i],this.document[0])).length-1;0<=s;s--)(o=k.data(n[s],this.widgetFullName))&&o!==this&&!o.options.disabled&&a.push([k.isFunction(o.options.items)?o.options.items.call(o.element):k(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);for(a.push([k.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):k(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=a.length-1;0<=i;i--)a[i][0].each(e);return k(r)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=k.grep(this.items,function(t){for(var e=0;i.length>e;e++)if(i[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,i,s,n,o,r,a,l,h=this.items,c=[[k.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):k(this.options.items,this.element),this]],u=this._connectWith();if(u&&this.ready)for(e=u.length-1;0<=e;e--)for(i=(s=k(u[e],this.document[0])).length-1;0<=i;i--)(n=k.data(s[i],this.widgetFullName))&&n!==this&&!n.options.disabled&&(c.push([k.isFunction(n.options.items)?n.options.items.call(n.element[0],t,{item:this.currentItem}):k(n.options.items,n.element),n]),this.containers.push(n));for(e=c.length-1;0<=e;e--)for(o=c[e][1],l=(r=c[e][i=0]).length;i<l;i++)(a=k(r[i])).data(this.widgetName+"-item",o),h.push({item:a,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(t){var e,i,s,n;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),e=this.items.length-1;0<=e;e--)(i=this.items[e]).instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?k(this.options.toleranceElement,i.item):i.item,t||(i.width=s.outerWidth(),i.height=s.outerHeight()),n=s.offset(),i.left=n.left,i.top=n.top);
vendor: 1,140 bytes, line 1
1if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)n=this.containers[e].element.offset(),this.containers[e].containerCache.left=n.left,this.containers[e].containerCache.top=n.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(i){var s,n=(i=i||this).options;n.placeholder&&n.placeholder.constructor!==String||(s=n.placeholder,n.placeholder={element:function(){var t=i.currentItem[0].nodeName.toLowerCase(),e=k("<"+t+">",i.document[0]);return i._addClass(e,"ui-sortable-placeholder",s||i.currentItem[0].className)._removeClass(e,"ui-sortable-helper"),"tbody"===t?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),k("<tr>",i.document[0]).appendTo(e)):"tr"===t?i._createTrPlaceholder(i.currentItem,e):"img"===t&&e.attr("src",i.currentItem.attr("src")),s||e.css("visibility","hidden"),e},update:function(t,e){s&&!n.forcePlaceholderSize||(e.height()||e.height(i.currentItem.innerHe
vendor: 11,779 bytes, line 1
1ight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10)))}}),i.placeholder=k(n.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),n.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){k("<td>&#160;</td>",i.document[0]).attr("colspan",k(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,i,s,n,o,r,a,l,h,c=null,u=null,d=this.containers.length-1;0<=d;d--)if(!k.contains(this.currentItem[0],this.containers[d].element[0]))if(this._intersectsWith(this.containers[d].containerCache)){if(c&&k.contains(this.containers[d].element[0],c.element[0]))continue;c=this.containers[d],u=d}else this.containers[d].containerCache.over&&(this.containers[d]._trigger("out",t,this._uiHash(this)),this.containers[d].containerCache.over=0);if(c)if(1===this.containers.length)this.containers[u].containerCache.over||(this.containers[u]._trigger("over",t,this._uiHash(this)),this.containers[u].containerCache.over=1);else{for(i=1e4,s=null,n=(l=c.floating||this._isFloating(this.currentItem))?"left":"top",o=l?"width":"height",h=l?"pageX":"pageY",e=this.items.length-1;0<=e;e--)k.contains(this.containers[u].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(r=this.items[e].item.offset()[n],a=!1,t[h]-r>this.items[e][o]/2&&(a=!0),i>Math.abs(t[h]-r)&&(i=Math.abs(t[h]-r),s=this.items[e],this.direction=a?"up":"down"));(s||this.options.dropOnEmpty)&&(this.currentContainer===this.containers[u]?this.currentContainer.containerCache.over||(this.containers[u]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1):(s?this._rearrange(t,s,null,!0):this._rearrange(t,null,this.containers[u].element,!0),this._trigger("change",t,this._uiHash()),this.containers[u]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[u],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[u]._trigger("over",t,this._uiHash(this)),this.containers[u].containerCache.over=1))}},_createHelper:function(t){var e=this.options,t=k.isFunction(e.helper)?k(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem;return t.parents("body").length||k("parent"!==e.appendTo?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(t[0]),t[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")}),t[0].style.width&&!e.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!e.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=k.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&k.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&k.ui.ie?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t;return"relative"===this.cssPosition?{top:(t=this.currentItem.position()).top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}:{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,e,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?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(i.containment)||(t=k(i.containment)[0],i=k(i.containment).offset(),e="hidden"!==k(t).css("overflow"),this.containment=[i.left+(parseInt(k(t).css("borderLeftWidth"),10)||0)+(parseInt(k(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(k(t).css("borderTopWidth"),10)||0)+(parseInt(k(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(e?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(k(t).css("borderLeftWidth"),10)||0)-(parseInt(k(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(e?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(k(t).css("borderTopWidth"),10)||0)-(parseInt(k(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,i="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&k.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(i[0].tagName);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:i.scrollTop())*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:i.scrollLeft())*t}},_generatePosition:function(t){var e=this.options,i=t.pageX,s=t.pageY,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&k.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);return"relative"!==this.cssPosition||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]&&(s=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]&&(s=this.containment[3]+this.offset.click.top)),e.grid&&(t=this.originalPageY+Math.round((s-this.originalPageY)/e.grid[1])*e.grid[1],s=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((i-this.originalPageX)/e.grid[0])*e.grid[0],i=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0])),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay(function(){n===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){function i(e,i,s){return function(t){s._trigger(e,t,i._uiHash(i))}}this.reverting=!1;var s,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(s in this._storedCSS)"auto"!==this._storedCSS[s]&&"static"!==this._storedCSS[s]||(this._storedCSS[s]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this===this.currentContainer||e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))),s=this.containers.length-1;0<=s;s--)e||n.push(i("deactivate",this,this.containers[s])),this.containers[s].containerCache.over&&(n.push(i("out",this,this.containers[s])),this.containers[s].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","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(s=0;n.length>s;s++)n[s].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===k.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||k([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}}),k.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 s=this._super(),n=this.element;return k.each(["min","max","step"],function(t,e){var i=n.attr(e);null!=i&&i.length&&(s[e]=i)}),s}
vendor: 17,266 bytes, line 1
1,_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((0<e?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){function e(){this.element[0]!==k.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i}))}var i=this.element[0]===k.ui.safeActiveElement(this.document[0])?this.previous:this.element.val();t.preventDefault(),e.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,e.call(this)}),!1!==this._start(t)&&this._repeat(null,k(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){return k(t.currentTarget).hasClass("ui-state-active")?!1!==this._start(t)&&void this._repeat(null,k(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t):void 0},"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(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var e=this.options,i=k.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,e.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-e.page,t),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?k.isFunction(e)?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var t=""+t,e=t.indexOf(".");return-1===e?0:t.length-e-1},_adjustValue:function(t){var e=this.options,i=null!==e.min?e.min:0,s=t-i;return t=i+Math.round(s/e.step)*e.step,t=parseFloat(t.toFixed(this._precision())),null!==e.max&&t>e.max?e.max:null!==e.min&&e.min>t?e.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i;return"culture"===t||"numberFormat"===t?(i=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(i))):("max"!==t&&"min"!==t&&"step"!==t||"string"!=typeof e||(e=this._parse(e)),"icons"===t&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,e.up),i=this.buttons.last().find(".ui-icon"),this._removeClass(i,null,this.options.icons.down),this._addClass(i,null,e.down)),void this._super(t,e))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:e(function(t){this._super(t)}),_parse:function(t){return""===(t="string"==typeof t&&""!==t?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t:t)||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_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 t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:e(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:e(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:e(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:e(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void e(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),!1!==k.uiBackCompat&&k.widget("ui.spinner",k.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>"}}),k.ui.spinner,k.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:(M=/#.*$/,function(t){var e=t.href.replace(M,""),i=location.href.replace(M,"");try{e=decodeURIComponent(e)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return 1<t.hash.length&&e===i}),_create:function(){var e=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(),k.isArray(t.disabled)&&(t.disabled=k.unique(t.disabled.concat(k.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.active=!1!==this.options.active&&this.anchors.length?this._findActive(t.active):k(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var i=this.options.active,t=this.options.collapsible,s=location.hash.substring(1);return null===i&&(s&&this.tabs.each(function(t,e){return k(e).attr("aria-controls")===s?(i=t,!1):void 0}),null!==(i=null===i?this.tabs.index(this.tabs.filter(".ui-tabs-active")):i)&&-1!==i||(i=!!this.tabs.length&&0)),!1!==i&&(-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!t&&0)),i=!t&&!1===i&&this.anchors.length?0:i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):k()}},_tabKeydown:function(t){var e=k(k.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(e),s=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case k.ui.keyCode.RIGHT:case k.ui.keyCode.DOWN:i++;break;case k.ui.keyCode.UP:case k.ui.keyCode.LEFT:s=!1,i--;break;case k.ui.keyCode.END:i=this.anchors.length-1;break;case k.ui.keyCode.HOME:i=0;break;case k.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case k.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,s),t.ctrlKey||t.metaKey||(e.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===k.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===k.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===k.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){for(var i=this.tabs.length-1;-1!==k.inArray(t=(t=i<t?0:t)<0?i:t,this.options.disabled);)t=e?t+1:t-1;return t},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){return"active"===t?void this._activate(e):(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),void("heightStyle"===t&&this._setupHeightStyle(e)))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=k.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!k.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=k()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=k()),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 l=this,t=this.tabs,e=this.anchors,i=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){k(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){k(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 k("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=k(),this.anchors.each(function(t,e){var i,s,n,o=k(e).uniqueId().attr("id"),r=k(e).closest("li"),a=r.attr("aria-controls");l._isLocal(e)?(n=(i=e.hash).substring(1),s=l.element.find(l._sanitizeSelector(i))):(n=r.attr("aria-controls")||k({}).uniqueId()[0].id,(s=l.element.find(i="#"+n)).length||(s=l._createPanel(n)).insertAfter(l.panels[t-1]||l.tablist),s.attr("aria-live","polite")),s.length&&(l.panels=l.panels.add(s)),a&&r.data("ui-tabs-aria-controls",a),r.attr({"aria-controls":n,"aria-labelledby":o}),s.attr("aria-labelledby",o)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),t&&(this._off(t.not(this.tabs)),this._off(e.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return k("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,i;for(k.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),i=0;e=this.tabs[i];i++)e=k(e),!0===t||-1!==k.inArray(i,t)?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&k.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,e=this.element.parent();"fill"===t?(i=e.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=k(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=k(this).outerHeight(!0)}),this.panels.each(function(){k(this).height(Math.max(0,i-k(this).innerHeight()+k(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,k(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,s=k(t.currentTarget).closest("li"),n=s[0]===i[0],o=n&&e.collapsible,r=o?k():this._getPanelForTab(s),a=i.length?this._getPanelForTab(i):k(),i={oldTab:i,oldPanel:a,newTab:o?k():s,newPanel:r};t.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||n&&!e.collapsible||!1===this._trigger("beforeActivate",t,i)||(e.active=!o&&this.tabs.index(s),this.active=n?k():s,this.xhr&&this.xhr.abort(),a.length||r.length||k.error("jQuery UI Tabs: Mismatching fragment identifier."),r.length&&this.load(this.tabs.index(s),t),this._toggle(t,i))},_toggle:function(t,e){function i(){n.running=!1,n._trigger("activate",t,e)}function s(){n._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),o.length&&n.options.show?n._show(o,n.options.show,i):(o.show(),i())}var n=this,o=e.newPanel,r=e.oldPanel;this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.hide,function(){n._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r.hide(),s()),r.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),o.length&&r.length?e.oldTab.attr("tabIndex",-1):o.length&&this.tabs.filter(function(){return 0===k(this).attr("tabIndex")}).attr("tabIndex",-1),o.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var t=this._findActive(t);t[0]!==this.active[0]&&(t=(t=t.length?t:this.active).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:k.noop}))},_findActive:function(t){return!1===t?k():this.tabs.eq(t)},_getIndex:function(t){return t="string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+k.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(){k.data(this,"ui-tabs-destroy")?k(this).remove():k(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=k(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var t=this.options.disabled;!1!==t&&(t=void 0!==i&&(i=this._getIndex(i),k.isArray(t)?k.map(t,function(t){return t!==i?t:null}):k.map(this.tabs,function(t,e){return e!==i?e:null})),this._setOptionDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==k.inArray(t,e))return;e=k.isArray(e)?k.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,s){t=this._getIndex(t);function n(t,e){"abort"===e&&o.panels.stop(!1,!0),o._removeClass(i,"ui-tabs-loading"),r.removeAttr("aria-busy"),t===o.xhr&&delete o.xhr}var o=this,i=this.tabs.eq(t),t=i.find(".ui-tabs-anchor"),r=this._getPanelForTab(i),a={tab:i,panel:r};this._isLocal(t[0])||(this.xhr=k.ajax(this._ajaxSettings(t,s,a)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(i,"ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.done(function(t,e,
1i){setTimeout(function(){r.html(t),o._trigger("load",s,a),n(i,e)},1)}).fail(function(t,e){setTimeout(function(){n(t,e)},1)})))},_ajaxSettings:function(t,i,s){var n=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,e){return n._trigger("beforeLoad",i,k.extend({jqXHR:t,ajaxSettings:e},s))}}},_getPanelForTab:function(t){t=k(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+t))}}),!1!==k.uiBackCompat&&k.widget("ui.tabs",k.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),k.ui.tabs,k.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=k(this).attr("title")||"";return k("<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(t,e){var i=(t.attr("aria-describedby")||"").split(/\s+/);i.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",k.trim(i.join(" ")))},_removeDescribedBy:function(t){var e=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),e=k.inArray(e,i);-1!==e&&i.splice(e,1),t.removeData("ui-tooltip-id"),(i=k.trim(i.join(" ")))?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=k("<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=k([])},_setOption:function(t,e){var i=this;this._super(t,e),"content"===t&&k.each(this.tooltips,function(t,e){i._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var s=this;k.each(this.tooltips,function(t,e){var i=k.Event("blur");i.target=i.currentTarget=e.element[0],s.close(i,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=k(this);return t.is("[title]")?t.data("ui-tooltip-title",t.attr("title")).removeAttr("title"):void 0}))},_enable:function(){this.disabledTitles.each(function(){var t=k(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=k([])},open:function(t){var i=this,e=k(t?t.target:this.element).closest(this.options.items);e.length&&!e.data("ui-tooltip-id")&&(e.attr("title")&&e.data("ui-tooltip-title",e.attr("title")),e.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&e.parents().each(function(){var t,e=k(this);e.data("ui-tooltip-open")&&((t=k.Event("blur")).target=t.currentTarget=this,i.close(t,!0)),e.attr("title")&&(e.uniqueId(),i.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._registerCloseHandlers(t,e),this._updateContent(e,t))},_updateContent:function(e,i){var t=this.options.content,s=this,n=i?i.type:null;return"string"==typeof t||t.nodeType||t.jquery?this._open(i,e,t):void((t=t.call(e[0],function(t){s._delay(function(){e.data("ui-tooltip-open")&&(i&&(i.type=n),this._open(i,e,t))})}))&&this._open(i,e,t))},_open:function(t,e,i){function s(t){a.of=t,n.is(":hidden")||n.position(a)}var n,o,r,a=k.extend({},this.options.position);i&&((r=this._find(e))?r.tooltip.find(".ui-tooltip-content").html(i):(e.is("[title]")&&(t&&"mouseover"===t.type?e.attr("title",""):e.removeAttr("title")),r=this._tooltip(e),n=r.tooltip,this._addDescribedBy(e,n.attr("id")),n.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),(r=k("<div>").html(n.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),r.removeAttr("id").find("[id]").removeAttr("id"),r.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:s}),s(t)):n.position(k.extend({of:e},this.options.position)),n.hide(),this._show(n,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(o=this.delayedShow=setInterval(function(){n.is(":visible")&&(s(a.of),clearInterval(o))},k.fx.interval)),this._trigger("open",t,{tooltip:n})))},_registerCloseHandlers:function(t,e){var i={keyup:function(t){t.keyCode===k.ui.keyCode.ESCAPE&&((t=k.Event(t)).currentTarget=e[0],this.close(t,!0))}};e[0]!==this.element[0]&&(i.remove=function(){this._removeTooltip(this._find(e).tooltip)}),t&&"mouseover"!==t.type||(i.mouseleave="close"),t&&"focusin"!==t.type||(i.focusout="close"),this._on(!0,e,i)},close:function(t){var e,i=this,s=k(t?t.currentTarget:this.element),n=this._find(s);return n?(e=n.tooltip,void(n.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),n.hiding=!0,e.stop(!0),this._hide(e,this.options.hide,function(){i._removeTooltip(k(this))}),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&k.each(this.parents,function(t,e){k(e.element).attr("title",e.title),delete i.parents[t]}),n.closing=!0,this._trigger("close",t,{tooltip:e}),n.hiding||(n.closing=!1)))):void s.removeData("ui-tooltip-open")},_tooltip:function(t){var e=k("<div>").attr("role","tooltip"),i=k("<div>").appendTo(e),s=e.uniqueId().attr("id");return this._addClass(i,"ui-tooltip-content"),this._addClass(e,"ui-tooltip","ui-widget ui-widget-content"),e.appendTo(this._appendTo(t)),this.tooltips[s]={element:t,tooltip:e}},_find:function(t){t=t.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){t=t.closest(".ui-front, dialog");return t=t.length?t:this.document[0].body},_destroy:function(){var s=this;k.each(this.tooltips,function(t,e){var i=k.Event("blur"),e=e.element;i.target=i.currentTarget=e[0],s.close(i,!0),k("#"+t).remove(),e.data("ui-tooltip-title")&&(e.attr("title")||e.attr("title",e.data("ui-tooltip-title")),e.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==k.uiBackCompat&&k.widget("ui.tooltip",k.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),k.ui.tooltip}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||3<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(o){"use strict";function r(t){o(t).on("click",e,this.close)}var e='[data-dismiss="alert"]',t=(r.VERSION="3.3.7",r.TRANSITION_DURATION=150,r.prototype.close=function(t){function e(){n.detach().trigger("closed.bs.alert").remove()}var i=o(this),s=i.attr("data-target"),n=(s||(s=(s=i.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,"")),o("#"===s?[]:s));t&&t.preventDefault(),(n=n.length?n:i.closest(".alert")).trigger(t=o.Event("close.bs.alert")),t.isDefaultPrevented()||(n.removeClass("in"),o.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",e).emulateTransitionEnd(r.TRANSITION_DURATION):e())},o.fn.alert);o.fn.alert=function(i){return this.each(function(){var t=o(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new r(this)),"string"==typeof i&&e[i].call(t)})},o.fn.alert.Constructor=r,o.fn.alert.noConflict=function(){return o.fn.alert=t,this},o(document).on("click.bs.alert.data-api",e,r.prototype.close)}(jQuery),function(o){"use strict";function i(i){return this.each(function(){var t=o(this),e=t.data("bs.button");e||t.data("bs.button",e=new s(this,"object"==typeof i&&i)),"toggle"==i?e.toggle(
1):i&&e.setState(i)})}function s(t,e){this.$element=o(t),this.options=o.extend({},s.DEFAULTS,e),this.isLoading=!1}s.VERSION="3.3.7",s.DEFAULTS={loadingText:"loading..."},s.prototype.setState=function(t){var e="disabled",i=this.$element,s=i.is("input")?"val":"html",n=i.data();t+="Text",null==n.resetText&&i.data("resetText",i[s]()),setTimeout(o.proxy(function(){i[s]((null==n[t]?this.options:n)[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(e).attr(e,e).prop(e,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(e).removeAttr(e).prop(e,!1))},this),0)},s.prototype.toggle=function(){var t,e=!0,i=this.$element.closest('[data-toggle="buttons"]');i.length?("radio"==(t=this.$element.find("input")).prop("type")?(t.prop("checked")&&(e=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==t.prop("type")&&(t.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),t.prop("checked",this.$element.hasClass("active")),e&&t.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};var t=o.fn.button;o.fn.button=i,o.fn.button.Constructor=s,o.fn.button.noConflict=function(){return o.fn.button=t,this},o(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=o(t.target).closest(".btn");i.call(e,"toggle"),o(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),(e.is("input,button")?e:e.find("input:visible,button:visible").first()).trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){o(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(h){"use strict";function n(n){return this.each(function(){var t=h(this),e=t.data("bs.carousel"),i=h.extend({},c.DEFAULTS,t.data(),"object"==typeof n&&n),s="string"==typeof n?n:i.slide;e||t.data("bs.carousel",e=new c(this,i)),"number"==typeof n?e.to(n):s?e[s]():i.interval&&e.pause().cycle()})}function c(t,e){this.$element=h(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",h.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",h.proxy(this.pause,this)).on("mouseleave.bs.carousel",h.proxy(this.cycle,this))}function t(t){var e,i=h(this),s=h(i.attr("data-target")||(s=i.attr("href"))&&s.replace(/.*(?=#[^\s]+$)/,""));s.hasClass("carousel")&&(e=h.extend({},s.data(),i.data()),(i=i.attr("data-slide-to"))&&(e.interval=!1),n.call(s,e),i&&s.data("bs.carousel").to(i),t.preventDefault())}c.VERSION="3.3.7",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},c.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(h.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},c.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e);if(("prev"==t&&0===i||"next"==t&&i==this.$items.length-1)&&!this.options.wrap)return e;e=(i+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(e)},c.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||t<0?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(i<t?"next":"prev",this.$items.eq(t))},c.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&h.support.transition&&(this.$element.trigger(h.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")}
1,c.prototype.slide=function(t,e){var i=this.$element.find(".item.active"),s=e||this.getItemForDirection(t,i),e=this.interval,n="next"==t?"left":"right",o=this;if(s.hasClass("active"))return this.sliding=!1;var r,a=s[0],l=h.Event("slide.bs.carousel",{relatedTarget:a,direction:n});return this.$element.trigger(l),l.isDefaultPrevented()?void 0:(this.sliding=!0,e&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),(l=h(this.$indicators.children()[this.getItemIndex(s)]))&&l.addClass("active")),r=h.Event("slid.bs.carousel",{relatedTarget:a,direction:n}),h.support.transition&&this.$element.hasClass("slide")?(s.addClass(t),s[0].offsetWidth,i.addClass(n),s.addClass(n),i.one("bsTransitionEnd",function(){s.removeClass([t,n].join(" ")).addClass("active"),i.removeClass(["active",n].join(" ")),o.sliding=!1,setTimeout(function(){o.$element.trigger(r)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(i.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(r)),e&&this.cycle(),this)};var e=h.fn.carousel;h.fn.carousel=n,h.fn.carousel.Constructor=c,h.fn.carousel.noConflict=function(){return h.fn.carousel=e,this};h(document).on("click.bs.carousel.data-api","[data-slide]",t).on("click.bs.carousel.data-api","[data-slide-to]",t),h(window).on("load",function(){h('[data-ride="carousel"]').each(function(){var t=h(this);n.call(t,t.data())})})}(jQuery),function(n){"use strict";function o(t){var e=t.attr("data-target"),e=(e=e?e:(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))&&n(e);return e&&e.length?e:t.parent()}function r(s){s&&3===s.which||(n(".dropdown-backdrop").remove(),n(a).each(function(){var t=n(this),e=o(t),i={relatedTarget:this};!e.hasClass("open")||s&&"click"==s.type&&/input|textarea/i.test(s.target.tagName)&&n.contains(e[0],s.target)||(e.trigger(s=n.Event("hide.bs.dropdown",i)),s.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(n.Event("hidden.bs.dropdown",i))))}))}function s(t){n(t).on("click.bs.dropdown",this.toggle)}var a='[data-toggle="dropdown"]',t=(s.VERSION="3.3.7",s.prototype.toggle=function(t){var e=n(this);if(!e.is(".disabled, :disabled")){var i=o(e),s=i.hasClass("open");if(r(),!s){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",r);s={relatedTarget:this};if(i.trigger(t=n.Event("show.bs.dropdown",s)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(n.Event("shown.bs.dropdown",s))}return!1}},s.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=n(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var i=o(e),s=i.hasClass("open");if(!s&&27!=t.which||s&&27==t.which)return 27==t.which&&i.find(a).trigger("focus"),e.trigger("click");s=i.find(".dropdown-menu li:not(.disabled):visible a");s.length&&(e=s.index(t.target),38==t.which&&0<e&&e--,40==t.which&&e<s.length-1&&e++,s.eq(e=~e?e:0).trigger("focus"))}}},n.fn.dropdown);n.fn.dropdown=function(i){return this.each(function(){var t=n(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new s(this)),"string"==typeof i&&e[i].call(t)})},n.fn.dropdown.Constructor=s,n.fn.dropdown.noConflict=function(){return n.fn.dropdown=t,this},n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",a,s.prototype.toggle).on("keydown.bs.dropdown.data-api",a,s.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",s.prototype.keydown)}(jQuery),function(o){"use strict";function n(s,n){return this.each(function(){var t=o(this),e=t.data("bs.modal"),i=o.extend({},r.DEFAULTS,t.data(),"object"==typeof s&&s);e||t.data("bs.modal",e=new r(this,i)),"string"==typeof s?e[s](n):i.show&&e.show(n)})}function r(t,e){this.options=e,this.$body=o(document.body),this.$element=o(t),this.$dialog=this.$element.find(".modal
1-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,o.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}r.VERSION="3.3.7",r.TRANSITION_DURATION=300,r.BACKDROP_TRANSITION_DURATION=150,r.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},r.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},r.prototype.show=function(i){var s=this,t=o.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',o.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){s.$element.one("mouseup.dismiss.bs.modal",function(t){o(t.target).is(s.$element)&&(s.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=o.support.transition&&s.$element.hasClass("fade"),e=(s.$element.parent().length||s.$element.appendTo(s.$body),s.$element.show().scrollTop(0),s.adjustDialog(),t&&s.$element[0].offsetWidth,s.$element.addClass("in"),s.enforceFocus(),o.Event("shown.bs.modal",{relatedTarget:i}));t?s.$dialog.one("bsTransitionEnd",function(){s.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(r.TRANSITION_DURATION):s.$element.trigger("focus").trigger(e)}))},r.prototype.hide=function(t){t&&t.preventDefault(),t=o.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),o(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),o.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",o.proxy(this.hideModal,this)).emulateTransitionEnd(r.TRANSITION_DURATION):this.hideModal())},r.prototype.enforceFocus=function(){o(document).off("focusin.bs.modal").on("focusin.bs.modal",o.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},r.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",o.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},r.prototype.resize=function(){this.isShown?o(window).on("resize.bs.modal",o.proxy(this.handleUpdate,this)):o(window).off("resize.bs.modal")},r.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},r.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},r.prototype.backdrop=function(t){var e,i=this,s=this.$element.hasClass("fade")?"fade":"";this.isShown&&this.options.backdrop?(e=o.support.transition&&s,this.$backdrop=o(document.createElement("div")).addClass("modal-backdrop "+s).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",o.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),t&&(e?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):t())):!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),s=function(){i.removeBackdrop(),t&&t()},o.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):s()):t&&t()},r.prototype.handleUpdate=function(){this.adjustDialog()},r.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},r.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},r.prototype.checkScrollbar=function(){var t,e=window.innerWidth;e||(e=(t=document.documentElement.getBoundingClientRect()).right-Math.abs(t.left)),this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},r.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},r.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},r.prototype.measureScrollbar=function(){var t=document.createElement("div"),e=(t.className="modal-scrollbar-measure",this.$body.append(t),t.offsetWidth-t.clientWidth);return this.$body[0].removeChild(t),e};var t=o.fn.modal;o.fn.modal=n,o.fn.modal.Constructor=r,o.fn.modal.noConflict=function(){return o.fn.modal=t,this},o(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=o(this),i=e.attr("href"),s=o(e.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),i=s.data("bs.modal")?"toggle":o.extend({remote:!/#/.test(i)&&i},s.data(),e.data());e.is("a")&&t.preventDefault(),s.one("show.bs.modal",function(t){t.isDefaultPrevented()||s.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),n.call(s,i,this)})}(jQuery),function(l){"use strict";function h(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)}h.VERSION="3.3.7",h.TRANSITION_DURATION=150,h.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}}
vendor: 10,811 bytes, line 1
1,h.prototype.init=function(t,e,i){if(this.enabled=!0,this.type=t,this.$element=l(e),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&l(l.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var s=this.options.trigger.split(" "),n=s.length;n--;){var o,r=s[n];"click"==r?this.$element.on("click."+this.type,this.options.selector,l.proxy(this.toggle,this)):"manual"!=r&&(o="hover"==r?"mouseleave":"focusout",this.$element.on(("hover"==r?"mouseenter":"focusin")+"."+this.type,this.options.selector,l.proxy(this.enter,this)),this.$element.on(o+"."+this.type,this.options.selector,l.proxy(this.leave,this)))}this.options.selector?this._options=l.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},h.prototype.getDefaults=function(){return h.DEFAULTS},h.prototype.getOptions=function(t){return(t=l.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},h.prototype.getDelegateOptions=function(){var i={},s=this.getDefaults();return this._options&&l.each(this._options,function(t,e){s[t]!=e&&(i[t]=e)}),i},h.prototype.enter=function(t){var e=t instanceof this.constructor?t:l(t.currentTarget).data("bs."+this.type);return e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e)),t instanceof l.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState?void(e.hoverState="in"):(clearTimeout(e.timeout),e.hoverState="in",e.options.delay&&e.options.delay.show?void(e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)):e.show())},h.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},h.prototype.leave=function(t){var e=t instanceof this.constructor?t:l(t.currentTarget).data("bs."+this.type);return e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e)),t instanceof l.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),e.isInStateTrue()?void 0:(clearTimeout(e.timeout),e.hoverState="out",e.options.delay&&e.options.delay.hide?void(e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)):e.hide())},h.prototype.show=function(){var e,t,i,s,n,o,r,a=l.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(a),n=l.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!a.isDefaultPrevented()&&n&&(a=(e=this).tip(),n=this.getUID(this.type),this.setContent(),a.attr("id",n),this.$element.attr("aria-describedby",n),this.options.animation&&a.addClass("fade"),n="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,(r=(t=/\s?auto?\s?/i).test(n))&&(n=n.replace(t,"")||"top"),a.detach().css({top:0,left:0,display:"block"}).addClass(n).data("bs."+this.type,this),this.options.container?a.appendTo(this.options.container):a.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),t=this.getPosition(),i=a[0].offsetWidth,s=a[0].offsetHeight,r&&(r=n,o=this.getPosition(this.$viewport),n="bottom"==n&&t.bottom+s>o.bottom?"top":"top"==n&&t.top-s<o.top?"bottom":"right"==n&&t.right+i>o.width?"left":"left"==n&&t.left-i<o.left?"right":n,a.removeClass(r).addClass(n)),o=this.getCalculatedOffset(n,t,i,s),this.applyPlacement(o,n),r=function(){var t=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==t&&e.leave(e)},l.support.transition&&this.$tip.hasClass("fade")?a.one("bsTransitionEnd",r).emulateTransitionEnd(h.TRANSITION_DURATION):r()))},h.prototype.applyPlacement=function(t,e){var i=this.tip(),s=i[0].offsetWidth,n=i[0].offsetHeight,o=parseInt(i.css("margin-top"),10),r=parseInt(i.css("margin-left"),10),o=(isNaN(o)&&(o=0),isNaN(r)&&(r=0),t.top+=o,t.left+=r,l.offset.setOffset(i[0],l.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),i.addClass("in"),i[0].offsetWidth),r=i[0].offsetHeight,a=("top"==e&&r!=n&&(t.top=t.top+n-r),this.getViewportAdjustedDelta(e,t,o,r)),e=(a.left?t.left+=a.left:t.top+=a.top,/top|bottom/.test(e)),s=e?2*a.left-s+o:2*a.top-n+r,o=e?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(s,i[0][o],e)},h.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},h.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},h.prototype.hide=function(t){function e(){"in"!=i.hoverState&&s.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),t&&t()}var i=this,s=l(this.$tip),n=l.Event("hide.bs."+this.type);return this.$element.trigger(n),n.isDefaultPrevented()?void 0:(s.removeClass("in"),l.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",e).emulateTransitionEnd(h.TRANSITION_DURATION):e(),this.hoverState=null,this)},h.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},h.prototype.hasContent=function(){return this.getTitle()},h.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],i="BODY"==e.tagName,s=e.getBoundingClientRect(),e=(null==s.width&&(s=l.extend({},s,{width:s.right-s.left,height:s.bottom-s.top})),window.SVGElement&&e instanceof window.SVGElement),e=i?{top:0,left:0}:e?null:t.offset(),t={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},i=i?{width:l(window).width(),height:l(window).height()}:null;return l.extend({},s,t,i,e)},h.prototype.getCalculatedOffset=function(t,e,i,s){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-s,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-s/2,left:e.left-i}:{top:e.top+e.height/2-s/2,left:e.left+e.width}},h.prototype.getViewportAdjustedDelta=function(t,e,i,s){var n={top:0,left:0};if(!this.$viewport)return n;var o=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);return/right|left/.test(t)?(t=e.top-o-r.scroll,s=e.top+o-r.scroll+s,t<r.top?n.top=r.top-t:s>r.top+r.height&&(n.top=r.top+r.height-s)):(t=e.left-o,s=e.left+o+i,t<r.left?n.left=r.left-t:s>r.right&&(n.left=r.left+r.width-s)),n},h.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},h.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},h.prototype.tip=function(){if(this.$tip||(this.$tip=l(this.options.template),1==this.$tip.length))return this.$tip;throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!")},h.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},h.prototype.enable=function(){this.enabled=!0},h.prototype.disable=function(){this.enabled=!1},h.prototype.toggleEnabled=function(){this.enabled=!this.enabled},h.prototype.toggle=function(t){var e=this;t&&!(e=l(t.currentTarget).data("bs."+this.type))&&(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e)),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},h.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var t=l.fn.tooltip;l.fn.tooltip=function(s){return this.each(function(){var t=l(this),e=t.data("bs.tooltip"),i="object"==typeof s&&s;!e&&/destroy|hide/.test(s)||(e||t.data("bs.tooltip",e=new h(this,i)),"string"==typeof s&&e[s]())})},l.fn.tooltip.Constructor=h,l.fn.tooltip.noConflict=function(){return l.fn.tooltip=t,this}}(jQuery),function(n){"use strict";function o(t,e){this.init("popover",t,e)}if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.3.7",o.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((o.prototype=n.extend({},n.fn.tooltip.Constructor.prototype)).constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=n.fn.popover;n.fn.popover=function(s){return this.each(function(){var t=n(this),e=t.data("bs.popover"),i="object"==typeof s&&s;!e&&/destroy|hide/.test(s)||(e||t.data("bs.popover",e=new o(this,i)),"string"==typeof s&&e[s]())})},n.fn.popover.Constructor=o,n.fn.popover.noConflict=function(){return n.fn.popover=t,this}}(jQuery),function(r){"use strict";function e(i){return this.each(function(){var t=r(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new a(this)),"string"==typeof i&&e[i]()})}function a(t){this.element=r(t)}function t(t){t.preventDefault(),e.call(r(this),"show")}a.VERSION="3.3.7",a.TRANSITION_DURATION=150,a.prototype.show=function(){var t,e,i,s=this.element,n=s.closest("ul:not(.dropdown-menu)"),o=s.data("target");o||(o=(o=s.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"")),s.parent("li").hasClass("active")||(t=n.find(".active:last a"),e=r.Event("hide.bs.tab",{relatedTarget:s[0]}),i=r.Event("show.bs.tab",{relatedTarget:t[0]}),t.trigger(e),s.trigger(i),i.isDefaultPrevented()||e.isDefaultPrevented()||(i=r(o),this.activate(s.closest("li"),n),this.activate(i,i.parent(),function(){t.trigger({type:"hidden.bs.tab",relatedTarget:s[0]}),s.trigger({type:"shown.bs.tab",relatedTarget:t[0]})})))}
1,a.prototype.activate=function(t,e,i){function s(){n.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}var n=e.find("> .active"),o=i&&r.support.transition&&(n.length&&n.hasClass("fade")||!!e.find("> .fade").length);n.length&&o?n.one("bsTransitionEnd",s).emulateTransitionEnd(a.TRANSITION_DURATION):s(),n.removeClass("in")};var i=r.fn.tab;r.fn.tab=e,r.fn.tab.Constructor=a,r.fn.tab.noConflict=function(){return r.fn.tab=i,this};r(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',t).on("click.bs.tab.data-api",'[data-toggle="pill"]',t)}(jQuery),function(r){"use strict";function i(i){return this.each(function(){var t=r(this),e=t.data("bs.affix");e||t.data("bs.affix",e=new a(this,"object"==typeof i&&i)),"string"==typeof i&&e[i]()})}function a(t,e){this.options=r.extend({},a.DEFAULTS,e),this.$target=r(this.options.target).on("scroll.bs.affix.data-api",r.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",r.proxy(this.checkPositionWithEventLoop,this)),this.$element=r(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()}a.VERSION="3.3.7",a.RESET="affix affix-top affix-bottom",a.DEFAULTS={offset:0,target:window},a.prototype.getState=function(t,e,i,s){var n=this.$target.scrollTop(),o=this.$element.offset(),r=this.$target.height();if(null!=i&&"top"==this.affixed)return n<i&&"top";if("bottom"==this.affixed)return null!=i?!(n+this.unpin<=o.top)&&"bottom":!(n+r<=t-s)&&"bottom";var a=null==this.affixed,o=a?n:o.top;return null!=i&&n<=i?"top":null!=s&&t-s<=o+(a?r:e)&&"bottom"},a.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(a.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},a.prototype.checkPositionWithEventLoop=function(){setTimeout(r.proxy(this.checkPosition,this),1)},a.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.options.offset,i=e.top,s=e.bottom,n=Math.max(r(document).height(),r(document.body).height()),e=("object"!=typeof e&&(s=i=e),"function"==typeof i&&(i=e.top(this.$element)),"function"==typeof s&&(s=e.bottom(this.$element)),this.get
1State(n,t,i,s));if(this.affixed!=e){null!=this.unpin&&this.$element.css("top","");var i="affix"+(e?"-"+e:""),o=r.Event(i+".bs.affix");if(this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=e,this.unpin="bottom"==e?this.getPinnedOffset():null,this.$element.removeClass(a.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==e&&this.$element.offset({top:n-t-s})}};var t=r.fn.affix;r.fn.affix=i,r.fn.affix.Constructor=a,r.fn.affix.noConflict=function(){return r.fn.affix=t,this},r(window).on("load",function(){r('[data-spy="affix"]').each(function(){var t=r(this),e=t.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),i.call(t,e)})})}(jQuery),function(n){"use strict";function i(t){t=t.attr("data-target")||(t=t.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");return n(t)}function o(s){return this.each(function(){var t=n(this),e=t.data("bs.collapse"),i=n.extend({},r.DEFAULTS,t.data(),"object"==typeof s&&s);!e&&i.toggle&&/show|hide/.test(s)&&(i.toggle=!1),e||t.data("bs.collapse",e=new r(this,i)),"string"==typeof s&&e[s]()})}function r(t,e){this.$element=n(t),this.options=n.extend({},r.DEFAULTS,e),this.$trigger=n('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()}r.VERSION="3.3.7",r.TRANSITION_DURATION=350,r.DEFAULTS={toggle:!0},r.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},r.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(t&&t.length&&((s=t.data("bs.collapse"))&&s.transitioning))){var e=n.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){t&&t.length&&(o.call(t,"hide"),s||t.data("bs.collapse",null));var i=this.dimension(),e=(this.$element.removeClass("collapse").addClass("collapsing")[i](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")});if(!n.support.transition)return e.call(this);var s=n.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",n.proxy(e,this)).emulateTransitionEnd(r.TRANSITION_DURATION)[i](this.$element[0][s])}}}},r.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t,e=n.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented())return e=this.dimension(),this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,t=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},n.support.transition?void this.$element[e](0).one("bsTransitionEnd",n.proxy(t,this)).emulateTransitionEnd(r.TRANSITION_DURATION):t.call(this)}},r.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},r.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,e){e=n(e);this.addAriaAndCollapsedClass(i(e),e)},this)).end()},r.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var t=n.fn.collapse;n.fn.collapse=o,n.fn.collapse.Constructor=r,n.fn.collapse.noConflict=function(){return n.fn.collapse=t,this},n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=n(this),t=(e.attr("data-target")||t.preventDefault(),i(e)),e=t.data("bs.collapse")?"toggle":e.data();o.call(t,e)})}(jQuery),function(n){"use strict";function s(t,e){this.$body=n(document.body),this.$scrollElement=n(n(t).is(document.body)?window:t),this.options=n.extend({},s.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this)),this.refresh(),this.process()}function e(i){return this.each(function(){var t=n(this),e=t.data("bs.scrollspy");e||t.data("bs.scrollspy",e=new s(this,"object"==typeof i&&i)),"string"==typeof i&&e[i]()})}s.VERSION="3.3.7",s.DEFAULTS={offset:10},s.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},s.prototype.refresh=function(){var t=this,i="offset",s=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),n.isWindow(this.$scrollElement[0])||(i="position",s=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=n(this),t=t.data("target")||t.attr("href"),e=/^#./.test(t)&&n(t);return e&&e.length&&e.is(":visible")?[[e[i]().top+s,t]]:null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},s.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),s=this.options.offset+i-this.$scrollElement.height(),n=this.offsets,o=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),s<=e)return r!=(t=o[o.length-1])&&this.activate(t);if(r&&e<n[0])return this.activeTarget=null,this.clear();for(t=n.length;t--;)r!=o[t]&&e>=n[t]&&(void 0===n[t+1]||e<n[t+1])&&this.activate(o[t])},s.prototype.activate=function(t){this.activeTarget=t,this.clear();t=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',t=n(t).parents("li").addClass("active");(t=t.parent(".dropdown-menu").length?t.closest("li.dropdown").addClass("active"):t).trigger("activate.bs.scrollspy")},s.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var t=n.fn.scrollspy;n.fn.scrollspy=e,n.fn.scrollspy.Constructor=s,n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=t,this},n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);e.call(t,t.data())})})}(jQuery),function(s){"use strict";s.fn.emulateTransitionEnd=function(t){var e=!1,i=this;s(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||s(i).trigger(s.support.transition.end)},t),this},s(function(){s.support.transition=function(){var t,e=document.createElement("bootstrap"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in i)if(void 0!==e.style[t])return{end:i[t]};return!1}(),s.support.transition&&(s.event.special.bsTransitionEnd={bindType:s.support.transition.end,delegateType:s.support.transition.end,handle:function(t){return s(t.target).is(this)?t.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),function(){var t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||this||{},j=t._,s=Array.prototype,r=Object.prototype,c="undefined"!=typeof Symbol?Symbol.prototype:null,H=s.push,l=s.slice,u=r.toString,o=r.hasOwnProperty,e=Array.isArray,n=Object.keys,i=Object.create,a=function(){},p=function(t){return t instanceof p?t:this instanceof p?void(this._wrapped=t):new p(t)};"undefined"==typeof exports||exports.nodeType?t._=p:(exports="undefined"!=typeof module&&!module.nodeType&&module.exports?module.exports=p:exports)._=p,p.VERSION="1.9.1";function h(n,o){return o=null==o?n.length-1:+o,function(){for(var t=Math.max(arguments.length-o,0
1),e=Array(t),i=0;i<t;i++)e[i]=arguments[i+o];switch(o){case 0:return n.call(this,e);case 1:return n.call(this,arguments[0],e);case 2:return n.call(this,arguments[0],arguments[1],e)}for(var s=Array(o+1),i=0;i<o;i++)s[i]=arguments[i];return s[o]=e,n.apply(this,s)}}function d(e){return function(t){return null==t?void 0:t[e]}}function f(t,e){for(var i=e.length,s=0;s<i;s++){if(null==t)return;t=t[e[s]]}return i?t:void 0}function g(d){return function(t,e,i,s){var n=3<=arguments.length,o=t,r=C(e,s,4),a=i,l=!$(o)&&p.keys(o),h=(l||o).length,c=0<d?0:h-1;for(n||(a=o[l?l[c]:c],c+=d);0<=c&&c<h;c+=d){var u=l?l[c]:c;a=r(a,o[u],u,o)}return a}}function m(o,e){return function(i,s,t){var n=e?[[],[]]:{};return s=T(s,t),p.each(i,function(t,e){e=s(t,e,i);o(n,t,e)}),n}}function v(o){return function(t,e,i){e=T(e,i);for(var s=E(t),n=0<o?0:s-1;0<=n&&n<s;n+=o)if(e(t[n],n,t))return n;return-1}}function y(o,r,a){return function(t,e,i){var s=0,n=E(t);if("number"==typeof i)0<o?s=0<=i?i:Math.max(i+n,s):n=0<=i?Math.min(i+1,n):i+n+1;else if(a&&i&&n)return t[i=a(t,e)]===e?i:-1;if(e!=e)return 0<=(i=r(l.call(t,s,n),p.isNaN))?i+s:-1;for(i=0<o?s:n-1;0<=i&&i<n;i+=o)if(t[i]===e)return i;return-1}}function _(t,e,i,s,n){return s instanceof e?(s=x(t.prototype),e=t.apply(s,n),p.isObject(e)?e:s):t.apply(i,n)}function b(t,e){var i=I.length,s=t.constructor,n=p.isFunction(s)&&s.prototype||r,o="constructor";for(S(t,o)&&!p.contains(e,o)&&e.push(o);i--;)(o=I[i])in t&&t[o]!==n[o]&&!p.contains(e,o)&&e.push(o)}function w(l,h){return function(t){var e=arguments.length;if(h&&(t=Object(t)),e<2||null==t)return t;for(var i=1;i<e;i++)for(var s=arguments[i],n=l(s),o=n.length,r=0;r<o;r++){var a=n[r];h&&void 0!==t[a]||(t[a]=s[a])}return t}}var k,C=function(n,o,t){if(void 0===o)return n;switch(null==t?3:t){case 1:return function(t){return n.call(o,t)};case 3:return function(t,e,i){return n.call(o,t,e,i)};case 4:return function(t,e,i,s){return n.call(o,t,e,i,s)}}return function(){return n.apply(o,arguments)}},T=function(t,e,i){return p.iteratee!==k?p.iteratee(t,e):null==t?p.identity:p.isFunction(t)?C(t,e,i):p.isObject(t)&&!p.isArray(t)?p.matcher(t):p.property(t)},x=(p.iteratee=k=function(t,e){return T(t,e,1/0)},function(t){if(!p.isObject(t))return{};if(i)return i(t);a.prototype=t;t=new a;return a.prototype=null,t}),S=function(t,e){return null!=t&&o.call(t,e)},L=Math.pow(2,53)-1,E=d("length"),$=function(t){t=E(t);return"number"==typeof t&&0<=t&&t<=L},F=(p.each=p.forEach=function(t,e,i){if(e=C(e,i),$(t))for(n=0,o=t.length;n<o;n++)e(t[n],n,t);else for(var s=p.keys(t),n=0,o=s.length;n<o;n++)e(t[s[n]],s[n],t);return t},p.map=p.collect=function(t,e,i){e=T(e,i);for(var s=!$(t)&&p.keys(t),n=(s||t).length,o=Array(n),r=0;r<n;r++){var a=s?s[r]:r;o[r]=e(t[a],a,t)}return o},p.reduce=p.foldl=p.inject=g(1),p.reduceRight=p.foldr=g(-1),p.find=p.detect=function(t,e,i){e=($(t)?p.findIndex:p.findKey)(t,e,i);if(void 0!==e&&-1!==e)return t[e]},p.filter=p.select=function(t,s,e){var n=[];return s=T(s,e),p.each(t,function(t,e,i){s(t,e,i)&&n.push(t)}),n},p.reject=function(t,e,i){return p.filter(t,p.negate(T(e)),i)},p.every=p.all=function(t,e,i){e=T(e,i);for(var s=!$(t)&&p.keys(t),n=(s||t).length,o=0;o<n;o++){var r=s?s[o]:o;if(!e(t[r],r,t))return!1}return!0},p.some=p.any=function(t,e,i){e=T(e,i);for(var s=!$(t)&&p.keys(t),n=(s||t).length,o=0;o<n;o++){var r=s?s[o]:o;if(e(t[r],r,t))return!0}return!1},p.contains=p.includes=p.include=function(t,e,i,s){return $(t)||(t=p.values(t)),0<=p.indexOf(t,e,i="number"==typeof i&&!s?i:0)},p.invoke=h(function(t,i,s){var n,o;return p.isFunction(i)?o=i:p.isArray(i)&&(n=i.slice(0,-1),i=i[i.length-1]),p.map(t,function(t){var e=o;if(!e){if(null==(t=n&&n.length?f(t,n):t))return;e=t[i]}return null==e?e:e.apply(t,s)})}),p.pluck=function(t,e){return p.map(t,p.property(e))},p.where=function(t,e){return p.filter(t,p.matcher(e))},p.findWhere=function(t,e){return p.find(t,p.matcher(e))},p.max=function(t,s,e){var i,n,o=-1/0,r=-1/0;if(null==s||"number"==typeof s&&"object"!=typeof t[0]&&null!=t)for(var a=0,l=(t=$(t)?t:p.values(t)).length;a<l;a++)null!=(i=t[a])&&o<i&&(o=i);
1else s=T(s,e),p.each(t,function(t,e,i){n=s(t,e,i),(r<n||n===-1/0&&o===-1/0)&&(o=t,r=n)});return o},p.min=function(t,s,e){var i,n,o=1/0,r=1/0;if(null==s||"number"==typeof s&&"object"!=typeof t[0]&&null!=t)for(var a=0,l=(t=$(t)?t:p.values(t)).length;a<l;a++)null!=(i=t[a])&&i<o&&(o=i);else s=T(s,e),p.each(t,function(t,e,i){((n=s(t,e,i))<r||n===1/0&&o===1/0)&&(o=t,r=n)});return o},p.shuffle=function(t){return p.sample(t,1/0)},p.sample=function(t,e,i){if(null==e||i)return(t=$(t)?t:p.values(t))[p.random(t.length-1)];var s=$(t)?p.clone(t):p.values(t),i=E(s);e=Math.max(Math.min(e,i),0);for(var n=i-1,o=0;o<e;o++){var r=p.random(o,n),a=s[o];s[o]=s[r],s[r]=a}return s.slice(0,e)},p.sortBy=function(t,s,e){var n=0;return s=T(s,e),p.pluck(p.map(t,function(t,e,i){return{value:t,index:n++,criteria:s(t,e,i)}}).sort(function(t,e){var i=t.criteria,s=e.criteria;if(i!==s){if(s<i||void 0===i)return 1;if(i<s||void 0===s)return-1}return t.index-e.index}),"value")},p.groupBy=m(function(t,e,i){S(t,i)?t[i].push(e):t[i]=[e]}),p.indexBy=m(function(t,e,i){t[i]=e}),p.countBy=m(function(t,e,i){S(t,i)?t[i]++:t[i]=1}),/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g),D=(p.toArray=function(t){return t?p.isArray(t)?l.call(t):p.isString(t)?t.match(F):$(t)?p.map(t,p.identity):p.values(t):[]},p.size=function(t){return null==t?0:($(t)?t:p.keys(t)).length},p.partition=m(function(t,e,i){t[i?0:1].push(e)},!0),p.first=p.head=p.take=function(t,e,i){return null==t||t.length<1?null==e?void 0:[]:null==e||i?t[0]:p.initial(t,t.length-e)},p.initial=function(t,e,i){return l.call(t,0,Math.max(0,t.length-(null==e||i?1:e)))},p.last=function(t,e,i){return null==t||t.length<1?null==e?void 0:[]:null==e||i?t[t.length-1]:p.rest(t,Math.max(0,t.length-e))},p.rest=p.tail=p.drop=function(t,e,i){return l.call(t,null==e||i?1:e)},p.compact=function(t){return p.filter(t,Boolean)},function(t,e,i,s){for(var n=(s=s||[]).length,o=0,r=E(t);o<r;o++){var a=t[o];if($(a)&&(p.isArray(a)||p.isArguments(a)))if(e)for(var l=0,h=a.length;l<h;)s[n++]=a[l++];else D(a,e,i,s),n=s.length;else i||(s[n++]=a)}return s}),P=(p.flatten=function(t,e){return D(t,e,!1)},p.without=h(function(t,e){return p.difference(t,e)}),p.uniq=p.unique=function(t,e,i,s){p.isBoolean(e)||(s=i,i=e,e=!1),null!=i&&(i=T(i,s));for(var n=[],o=[],r=0,a=E(t);r<a;r++){var l=t[r],h=i?i(l,r,t):l;e&&!i?(r&&o===h||n.push(l),o=h):i?p.contains(o,h)||(o.push(h),n.push(l)):p.contains(n,l)||n.push(l)}return n},p.union=h(function(t){return p.uniq(D(t,!0,!0))}),p.intersection=function(t){for(var e=[],i=arguments.length,s=0,n=E(t);s<n;s++){var o=t[s];if(!p.contains(e,o)){for(var r=1;r<i&&p.contains(arguments[r],o);r++);r===i&&e.push(o)}}return e},p.difference=h(function(t,e){return e=D(e,!0,!0),p.filter(t,function(t){return!p.contains(e,t)})}),p.unzip=function(t){for(var e=t&&p.max(t,E).length||0,i=Array(e),s=0;s<e;s++)i[s]=p.pluck(t,s);return i},p.zip=h(p.unzip),p.object=function(t,e){for(var i={},s=0,n=E(t);s<n;s++)e?i[t[s]]=e[s]:i[t[s][0]]=t[s][1];return i},p.findIndex=v(1),p.findLastIndex=v(-1),p.sortedIndex=function(t,e,i,s){for(var n=(i=T(i,s,1))(e),o=0,r=E(t);o<r;){var a=Math.floor((o+r)/2);i(t[a])<n?o=a+1:r=a}return o},p.indexOf=y(1,p.findIndex,p.sortedIndex),p.lastIndexOf=y(-1,p.findLastIndex),p.range=function(t,e,i){null==e&&(e=t||0,t=0),i=i||(e<t?-1:1);for(var s=Math.max(Math.ceil((e-t)/i),0),n=Array(s),o=0;o<s;o++,t+=i)n[o]=t;return n},p.chunk=function(t,e){if(null==e||e<1)return[];for(var i=[],s=0,n=t.length;s<n;)i.push(l.call(t,s,s+=e));return i},p.bind=h(function(e,i,s){if(!p.isFunction(e))throw new TypeError("Bind must be called on a function");var n=h(function(t){return _(e,n,i,this,s.concat(t))});return n}),p.partial=h(function(n,o){function r(){for(var t=0,e=o.length,i=Array(e),s=0;s<e;s++)i[s]=o[s]===a?arguments[t++]:o[s];for(;t<arguments.length;)i.push(arguments[t++]);return _(n,r,this,this,i)}var a=p.partial.placeholder;return r}),(p.partial.placeholder=p).bindAll=h(function(t,e){var i=(e=D(e,!1,!1)).length;if(i<1)throw new Error("bindAll must be passed function names");for(;i--;){var s=e[i];t[s]=p.bind(t[s],t)}}),p.memoize=function(s,n){function o(t){var e=o.cache,i=""+(n?n.apply(this,arguments):t);return S(e,i)||(e[i]=s.apply(this,arguments)),e[i]}return o.cache={},o}
1,p.delay=h(function(t,e,i){return setTimeout(function(){return t.apply(null,i)},e)}),p.defer=p.partial(p.delay,p,1),p.throttle=function(i,s,n){function o(){c=!1===n.leading?0:p.now(),r=null,h=i.apply(a,l),r||(a=l=null)}function t(){var t=p.now(),e=(c||!1!==n.leading||(c=t),s-(t-c));return a=this,l=arguments,e<=0||s<e?(r&&(clearTimeout(r),r=null),c=t,h=i.apply(a,l),r||(a=l=null)):r||!1===n.trailing||(r=setTimeout(o,e)),h}var r,a,l,h,c=0;n=n||{};return t.cancel=function(){clearTimeout(r),c=0,r=a=l=null},t},p.debounce=function(i,s,n){function o(t,e){r=null,e&&(a=i.apply(t,e))}var r,a,t=h(function(t){var e;return r&&clearTimeout(r),n?(e=!r,r=setTimeout(o,s),e&&(a=i.apply(this,t))):r=p.delay(o,s,this,t),a});return t.cancel=function(){clearTimeout(r),r=null},t},p.wrap=function(t,e){return p.partial(e,t)},p.negate=function(t){return function(){return!t.apply(this,arguments)}},p.compose=function(){var i=arguments,s=i.length-1;return function(){for(var t=s,e=i[s].apply(this,arguments);t--;)e=i[t].call(this,e);return e}},p.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},p.before=function(t,e){var i;return function(){return 0<--t&&(i=e.apply(this,arguments)),t<=1&&(e=null),i}},p.once=p.partial(p.before,2),p.restArguments=h,!{toString:null}.propertyIsEnumerable("toString")),I=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];p.keys=function(t){if(!p.isObject(t))return[];if(n)return n(t);var e,i=[];for(e in t)S(t,e)&&i.push(e);return P&&b(t,i),i},p.allKeys=function(t){if(!p.isObject(t))return[];var e,i=[];for(e in t)i.push(e);return P&&b(t,i),i},p.values=function(t){for(var e=p.keys(t),i=e.length,s=Array(i),n=0;n<i;n++)s[n]=t[e[n]];return s},p.mapObject=function(t,e,i){e=T(e,i);for(var s=p.keys(t),n=s.length,o={},r=0;r<n;r++){var a=s[r];o[a]=e(t[a],a,t)}return o},p.pairs=function(t){for(var e=p.keys(t),i=e.length,s=Array(i),n=0;n<i;n++)s[n]=[e[n],t[e[n]]];return s},p.invert=function(t){for(var e={}
1,i=p.keys(t),s=0,n=i.length;s<n;s++)e[t[i[s]]]=i[s];return e},p.functions=p.methods=function(t){var e,i=[];for(e in t)p.isFunction(t[e])&&i.push(e);return i.sort()};p.extend=w(p.allKeys),p.extendOwn=p.assign=w(p.keys),p.findKey=function(t,e,i){e=T(e,i);for(var s,n=p.keys(t),o=0,r=n.length;o<r;o++)if(e(t[s=n[o]],s,t))return s};function R(t,e,i){return e in i}function A(e){function i(t){return e[t]}var t="(?:"+p.keys(e).join("|")+")",s=RegExp(t),n=RegExp(t,"g");return function(t){return s.test(t=null==t?"":""+t)?t.replace(n,i):t}}function z(t){return"\\"+U[t]}function M(t,e){return t._chain?p(e).chain():e}p.pick=h(function(t,e){var i={},s=e[0];if(null==t)return i;p.isFunction(s)?(1<e.length&&(s=C(s,e[1])),e=p.allKeys(t)):(s=R,e=D(e,!1,!1),t=Object(t));for(var n=0,o=e.length;n<o;n++){var r=e[n],a=t[r];s(a,r,t)&&(i[r]=a)}return i}),p.omit=h(function(t,i){var e,s=i[0];return p.isFunction(s)?(s=p.negate(s),1<i.length&&(e=i[1])):(i=p.map(D(i,!1,!1),String),s=function(t,e){return!p.contains(i,e)}),p.pick(t,s,e)}),p.defaults=w(p.allKeys,!0),p.create=function(t,e){t=x(t);return e&&p.extendOwn(t,e),t},p.clone=function(t){return p.isObject(t)?p.isArray(t)?t.slice():p.extend({},t):t},p.tap=function(t,e){return e(t),t},p.isMatch=function(t,e){var i=p.keys(e),s=i.length;if(null==t)return!s;for(var n=Object(t),o=0;o<s;o++){var r=i[o];if(e[r]!==n[r]||!(r in n))return!1}return!0},O=function(t,e,i,s){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var n=typeof t;return("function"==n||"object"==n||"object"==typeof e)&&B(t,e,i,s)},B=function(t,e,i,s){t instanceof p&&(t=t._wrapped),e instanceof p&&(e=e._wrapped);var n=u.call(t);if(n!==u.call(e))return!1;switch(n){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return c.valueOf.call(t)===c.valueOf.call(e)}n="[object Array]"===n;if(!n){if("object"!=typeof t||"object"!=typeof e)return!1;var o=t.constructor,r=e.constructor;if(o!==r&&!(p.isFunction(o)&&o instanceof o&&p.isFunction(r)&&r instanceof r)&&"constructor"in t&&"constructor"in e)return!1}s=s||[];for(var a=(i=i||[]).length;a--;)if(i[a]===t)return s[a]===e;if(i.push(t),s.push(e),n){if((a=t.length)!==e.length)return!1;for(;a--;)if(!O(t[a],e[a],i,s))return!1}else{var l,h=p.keys(t),a=h.length;if(p.keys(e).length!==a)return!1;for(;a--;)if(l=h[a],!S(e,l)||!O(t[l],e[l],i,s))return!1}return i.pop(),s.pop(),!0},p.isEqual=function(t,e){return O(t,e)},p.isEmpty=function(t){return null==t||($(t)&&(p.isArray(t)||p.isString(t)||p.isArguments(t))?0===t.length:0===p.keys(t).length)},p.isElement=function(t){return!(!t||1!==t.nodeType)},p.isArray=e||function(t){return"[object Array]"===u.call(t)},p.isObject=function(t){var e=typeof t;return"function"==e||"object"==e&&!!t},p.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){p["is"+e]=function(t){return u.call(t)==="[object "+e+"]"}}),p.isArguments(arguments)||(p.isArguments=function(t){return S(t,"callee")});var O,B,e=t.document&&t.document.childNodes,e=("function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e&&(p.isFunction=function(t){return"function"==typeof t||!1}),p.isFinite=function(t){return!p.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},p.isNaN=function(t){return p.isNumber(t)&&isNaN(t)},p.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===u.call(t)},p.isNull=function(t){return null===t},p.isUndefined=function(t){return void 0===t},p.has=function(t,e){if(!p.isArray(e))return S(t,e);for(var i=e.length,s=0;s<i;s++){var n=e[s];if(null==t||!o.call(t,n))return!1;t=t[n]}return!!i},p.noConflict=function(){return t._=j,this},p.identity=function(t){return t},p.constant=function(t){return function(){return t}},p.noop=function(){},p.property=function(e){return p.isArray(e)?function(t){return f(t,e)}:d(e)},p.propertyOf=function(e){return null==e?function(){}:function(t){return p.isArray(t)?f(e,t):e[t]}},p.matcher=p.matches=function(e){return e=p.extendOwn({},e),function(t){return p.isMatch(t,e)}}
1,p.times=function(t,e,i){var s=Array(Math.max(0,t));e=C(e,i,1);for(var n=0;n<t;n++)s[n]=e(n);return s},p.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},p.now=Date.now||function(){return(new Date).getTime()},{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"}),W=p.invert(e),V=(p.escape=A(e),p.unescape=A(W),p.result=function(t,e,i){var s=(e=p.isArray(e)?e:[e]).length;if(!s)return p.isFunction(i)?i.call(t):i;for(var n=0;n<s;n++){var o=null==t?void 0:t[e[n]];void 0===o&&(o=i,n=s),t=p.isFunction(o)?o.call(t):o}return t},0),N=(p.uniqueId=function(t){var e=++V+"";return t?t+e:e},p.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},/(.)^/),U={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Y=/\\|'|\r|\n|\u2028|\u2029/g;p.template=function(o,t,e){t=p.defaults({},t=!t&&e?e:t,p.templateSettings);var i,e=RegExp([(t.escape||N).source,(t.interpolate||N).source,(t.evaluate||N).source].join("|")+"|$","g"),r=0,a="__p+='";o.replace(e,function(t,e,i,s,n){return a+=o.slice(r,n).replace(Y,z),r=n+t.length,e?a+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":i?a+="'+\n((__t=("+i+"))==null?'':__t)+\n'":s&&(a+="';\n"+s+"\n__p+='"),t}),a+="';\n",a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+(a=t.variable?a:"with(obj||{}){\n"+a+"}\n")+"return __p;\n";try{i=new Function(t.variable||"obj","_",a)}catch(t){throw t.source=a,t}function s(t){return i.call(this,t,p)}e=t.variable||"obj";return s.source="function("+e+"){\n"+a+"}",s},p.chain=function(t){t=p(t);return t._chain=!0,t};p.mixin=function(i){return p.each(p.functions(i),function(t){var e=p[t]=i[t];p.prototype[t]=function(){var t=[this._wrapped];return H.apply(t,arguments),M(this,e.apply(p,t))}}),p},p.mixin(p),p.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var i=s[e];p.prototype[e]=function(){var t=this._wrapped;return i.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],M(this,t)}}),p.each(["concat","join","slice"],function(t){var e=s[t];p.prototype[t]=function(){return M(this,e.apply(this._wrapped,arguments))}}),p.prototype.value=function(){return this._wrapped},p.prototype.valueOf=p.prototype.toJSON=p.prototype.value,p.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return p})}(),function(t){function c(t){return""===t||t&&t.charCodeAt&&t.substr}function u(t){return i?i(t):"[object Array]"===s.call(t)}function d(t){return"[object Object]"===s.call(t)}function p(t,e){var i,t=t||{};for(i in e=e||{})e.hasOwnProperty(i)&&null==t[i]&&(t[i]=e[i]);return t}function f(t,e,i){var s,n,o=[];if(!t)return o;if(r&&t.map===r)return t.map(e,i);for(s=0,n=t.length;s<n;s++)o[s]=e.call(i,t[s],s,t);return o}function g(t,e){return t=Math.round(Math.abs(t)),isNaN(t)?e:t}function m(t){var e=v.settings.currency.format;return c(t="function"==typeof t?t():t)&&t.match("%v")?{pos:t,neg:t.replace("-","").replace("%v","-%v"),zero:t}:t&&t.pos&&t.pos.match("%v")?t:c(e)?v.settings.currency.format={pos:e,neg:e.replace("%v","-%v"),zero:e}:e}var e,v={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},r=Array.prototype.map,i=Array.isArray,s=Object.prototype.toString,y=v.unformat=v.parse=function(t,e){if(u(t))return f(t,function(t){return y(t,e)});if("number"==typeof(t=t||0))return t;var e=e||".",i=RegExp("[^0-9-"+e+"]",["g"]),i=parseFloat((""+t).replace(/\((.*)\)/,"-$1").replace(i,"").replace(e,"."));return isNaN(i)?0:i},h=v.toFixed=function(t,e){var e=g(e,v.settings.number.precision),i=Math.pow(10,e);return(Math.round(v.unformat(t)*i)/i).toFixed(e)},_=v.formatNumber=v.format=function(t,e,i,s){if(u(t))return f(t,function(t){return _(t,e,i,s)});var t=y(t),n=p(d(e)?e:{precision:e,thousand:i,decimal:s},v.settings.number),o=g(n.precision),r=t<0?"-":"",a=parseInt(h(Math.abs(t||0),o),10)+"",l=3<a.length?a.length%3:0;return r+(l?a.substr(0,l)+n.thousand:"")+a.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+n.thousand)+(o?n.decimal+h(Math.abs(t),o).split(".")[1]:"")}
1,l=v.formatMoney=function(t,e,i,s,n,o){if(u(t))return f(t,function(t){return l(t,e,i,s,n,o)});var t=y(t),r=p(d(e)?e:{symbol:e,precision:i,thousand:s,decimal:n,format:o},v.settings.currency),a=m(r.format);return(0<t?a.pos:t<0?a.neg:a.zero).replace("%s",r.symbol).replace("%v",_(Math.abs(t),g(r.precision),r.thousand,r.decimal))};v.formatColumn=function(t,e,i,s,n,o){if(!t)return[];var r=p(d(e)?e:{symbol:e,precision:i,thousand:s,decimal:n,format:o},v.settings.currency),a=m(r.format),l=a.pos.indexOf("%s")<a.pos.indexOf("%v"),h=0,t=f(t,function(t){return u(t)?v.formatColumn(t,r):((t=(0<(t=y(t))?a.pos:t<0?a.neg:a.zero).replace("%s",r.symbol).replace("%v",_(Math.abs(t),g(r.precision),r.thousand,r.decimal))).length>h&&(h=t.length),t)});return f(t,function(t){return c(t)&&t.length<h?l?t.replace(r.symbol,r.symbol+Array(h-t.length+1).join(" ")):Array(h-t.length+1).join(" ")+t:t})},"undefined"!=typeof exports?(exports="undefined"!=typeof module&&module.exports?module.exports=v:exports).accounting=v:"function"==typeof define&&define.amd?define([],function(){return v}):(v.noConflict=(e=t.accounting,function(){return t.accounting=e,v.noConflict=void 0,v}),t.accounting=v)}(this),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(s){"use strict";function e(u){return function(t){var e,i,s=t.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(s)for(var n=0,o=s.length;n<o;++n){var r=s[n].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),a=(a=(a=r[0]).toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),new RegExp(a)),l=r[1]||"",h=r[3]||"",c=null,r=r[2];d.hasOwnProperty(r)&&(c=d[r],c=Number(u[c])),null!==c&&("!"===l&&(r=c,i=e=void 0,e="s",i="",(h=h)&&(e=1===(h=h.replace(/(:|;|\s)/gi,"").split(/\,/)).length?h[0]:(i=h[0],h[1])),c=1<Math.abs(r)?e:i),""===l&&c<10&&(c="0"+c.toString()),t=t.replace(a,c.toString()))}return t.replace(/%%/,"%")}}function n(t,e,i){this.el=t,this.$el=s(t),this.interval=null,this.offset={},this.options=s.extend({},r),this.instanceNumber=o.length,o.push(this),this.$el.data("countdown-instance",this.instanceNumber),i&&("function"==typeof i?(this.$el.on("update.countdown",i),this.$el.on("stoped.countdown",i),this.$el.on("finish.countdown",i)):this.options=s.extend({},r,i)),this.setFinalDate(e),!1===this.options.defer&&this.start()}var o=[],i=[],r={precision:100,elapse:!1,defer:!1},d=(i.push(/^[0-9]*$/.source),i.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),i.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),i=new RegExp(i.join("|")),{Y:"years",m:"months",n:"daysToMonth",d:"daysToWeek",w:"weeks",W:"weeksToMonth",H:"hours",M:"minutes",S:"seconds",D:"totalDays",I:"totalHours",N:"totalMinutes",T:"totalSeconds"});s.extend(n.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var t=this;this.update(),this.interval=setInterval(function(){t.update.call(t)},this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),o[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(t){this.finalDate=function(t){if(t instanceof Date)return t;if(String(t).match(i))return String(t).match(/^[0-9]*$/)&&(t=Number(t)),String(t).match(/\-/)&&(t=String(t).replace(/\-/g,"/")),new Date(t);throw new Error("Couldn't cast `"+t+"` to a date object.")}(t)},update:function(){var t,e,i;0===this.$el.closest("html").length?this.remove():(t=void 0!==s._data(this.el,"events"),e=new Date,i=this.finalDate.getTime()-e.getTime(),i=Math.ceil(i/1e3),i=!this.options.elapse&&i<0?0:Math.abs(i),this.totalSecsLeft!==i&&t&&(this.totalSecsLeft=i,this.elapsed=e>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),weeksToMonth:Math.floor(this.totalSecsLeft/60/60/24/7)%4,months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-e.getFullYear()),totalDays:Math.floor(this.totalSecsLeft/60/60/24),totalHours:Math.floor(this.totalSecsLeft/60/60),totalMinutes:Math.floor(this.totalSecsLeft/60),totalSeconds:this.totalSecsLeft},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish"))))},dispatchEvent:function(t){t=s.Event(t+".countdown");t.finalDate=this.finalDate,t.elapsed=this.elapsed,t.offset=s.extend({},this.offset),t.strftime=e(this.offset),this.$el.trigger(t)}}),s.fn.countdown=function(){var i=Array.prototype.slice.call(arguments,0);
1return this.each(function(){var t,e=s(this).data("countdown-instance");void 0!==e?(e=o[e],t=i[0],n.prototype.hasOwnProperty(t)?e[t].apply(e,i.slice(1)):null===String(t).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(e.setFinalDate.call(e,t),e.start()):s.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,t))):new n(this,i[0],i[1])})}}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(h){"use strict";var s,o=window.Slick||{};s=0,(o=function(t,e){var i=this;i.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:h(t),appendDots:h(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button"><span>Prev</span></button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button"><span>Next</span></button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return h('<button type="button" />').text(e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!1,pauseOnFocus:!1,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},i.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},h.extend(i,i.initials),i.activeBreakpoint=null,i.animType=null,i.animProp=null,i.breakpoints=[],i.breakpointSettings=[],i.cssTransitions=!1,i.focussed=!1,i.interrupted=!1,i.hidden="hidden",i.paused=!0,i.positionProp=null,i.respondTo=null,i.rowCount=1,i.shouldClick=!0,i.$slider=h(t),i.$slidesCache=null,i.transformType=null,i.transitionType=null,i.visibilityChange="visibilitychange",i.windowWidth=0,i.windowTimer=null,t=h(t).data("slick")||{},i.options=h.extend({},i.defaults,e,t),i.currentSlide=i.options.initialSlide,i.originalSettings=i.options,void 0!==document.mozHidden?(i.hidden="mozHidden",i.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(i.hidden="webkitHidden",i.visibilityChange="webkitvisibilitychange"),i.autoPlay=h.proxy(i.autoPlay,i),i.autoPlayClear=h.proxy(i.autoPlayClear,i),i.autoPlayIterator=h.proxy(i.autoPlayIterator,i),i.changeSlide=h.proxy(i.changeSlide,i),i.clickHandler=h.proxy(i.clickHandler,i),i.selectHandler=h.proxy(i.selectHandler,i),i.setPosition=h.proxy(i.setPosition,i),i.swipeHandler=h.proxy(i.swipeHandler,i),i.dragHandler=h.proxy(i.dragHandler,i),i.keyHandler=h.proxy(i.keyHandler,i),i.instanceUid=s++,i.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,i.registerBreakpoints(),i.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},o.prototype.addSlide=o.prototype.slickAdd=function(t,e,i){var s=this;if("boolean"==typeof e)i=e,e=null;else if(e<0||e>=s.slideCount)return!1;s.unload(),"number"==typeof e?0===e&&0===s.$slides.length?h(t).appendTo(s.$slideTrack):i?h(t).insertBefore(s.$slides.eq(e)):h(t).insertAfter(s.$slides.eq(e)):!0===i?h(t).prependTo(s.$slideTrack):h(t).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(t,e){h(e).attr("data-slick-index",t)}),s.$slidesCache=s.$slides,s.reinit()},o.prototype.animateHeight=function(){var t;1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical&&(t=this.$slides.eq(this.currentSlide).outerHeight(!0),this.$list.animate({height:t},this.options.speed))},o.prototype.animateSlide=function(t,e){var i={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(t=-t),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:t},s.options.speed,s.options.easing,e):s.$slideTrack.animate({top:t},s.options.speed,s.options.easing,e):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),h({animStart:s.currentLeft}).animate({animStart:t},{duration:s.options.speed,easing:s.options.easing,step:function(t){t=Math.ceil(t),!1===s.options.vertical?i[s.animType]="translate("+t+"px, 0px)":i[s.animType]="translate(0px,"+t+"px)",s.$slideTrack.css(i)},complete:function(){e&&e.call()}})):(s.applyTransition(),t=Math.ceil(t),!1===s.options.vertical?i[s.animType]="translate3d("+t+"px, 0px, 0px)":i[s.animType]="translate3d(0px,"+t+"px, 0px)",s.$slideTrack.css(i),e&&setTimeout(function(){s.disableTransition(),e.call()},s.options.speed))},o.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t=t&&null!==t?h(t).not(this.$slider):t},o.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=h(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},o.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,(!1===e.options.fade?e.$slideTrack:e.$slides.eq(t)).css(i)},o.prototype.autoPlay=function(){this.autoPlayClear(),this.slideCount>this.options.slidesToShow&&(this.autoPlayTimer=setInterval(this.autoPlayIterator,this.options.autoplaySpeed))},o.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},o.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;
vendor: 4,844 bytes, line 1
1t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},o.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=h(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=h(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},o.prototype.buildDots=function(){var t,e;if(!0===this.options.dots){for(this.$slider.addClass("slick-dotted"),e=h("<ul />").addClass(this.options.dotsClass),t=0;t<=this.getDotCount();t+=1)e.append(h("<li />").append(this.options.customPaging.call(this,this,t)));this.$dots=e.appendTo(this.options.appendDots),this.$dots.find("li").first().addClass("slick-active")}},o.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,e){h(e).attr("data-slick-index",t).data("originalStyling",h(e).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?h('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),h("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},o.prototype.buildRows=function(){var t,e,i,s=this,n=document.createDocumentFragment(),o=s.$slider.children();if(1<s.options.rows){for(i=s.options.slidesPerRow*s.options.rows,e=Math.ceil(o.length/i),t=0;t<e;t++){for(var r=document.createElement("div"),a=0;a<s.options.rows;a++){for(var l=document.createElement("div"),h=0;h<s.options.slidesPerRow;h++){var c=t*i+(a*s.options.slidesPerRow+h);o.get(c)&&l.appendChild(o.get(c))}r.appendChild(l)}n.appendChild(r)}s.$slider.empty().append(n),s.$slider.children().children().children().css({width:100/s.options.slidesPerRow+"%",display:"inline-block"})}},o.prototype.checkResponsive=function(t,e){var i,s,n,o=this,r=!1,a=o.$slider.width(),l=window.innerWidth||h(window).width();if("window"===o.respondTo?n=l:"slider"===o.respondTo?n=a:"min"===o.respondTo&&(n=Math.min(l,a)),o.options.responsive&&o.options.responsive.length&&null!==o.options.responsive){for(i in s=null,o.breakpoints)o.breakpoints.hasOwnProperty(i)&&(!1===o.originalSettings.mobileFirst?n<o.breakpoints[i]&&(s=o.breakpoints[i]):n>o.breakpoints[i]&&(s=o.breakpoints[i]));null!==s?null!==o.activeBreakpoint&&s===o.activeBreakpoint&&!e||(o.activeBreakpoint=s,"unslick"===o.breakpointSettings[s]?o.unslick(s):(o.options=h.extend({},o.originalSettings,o.breakpointSettings[s]),!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t)),r=s):null!==o.activeBreakpoint&&(o.activeBreakpoint=null,o.options=o.originalSettings,!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t),r=s),t||!1===r||o.$slider.trigger("breakpoint",[o,r])}},o.prototype.changeSlide=function(t,e){var i,s=this,n=h(t.currentTarget);switch(n.is("a")&&t.preventDefault(),n.is("li")||(n=n.closest("li")),i=s.slideCount%s.options.slidesToScroll!=0?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,t.data.message){case"previous":o=0==i?s.options.slidesToScroll:s.options.slidesToShow-i,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-o,!1,e);break;case"next":o=0==i?s.options.slidesToScroll:i,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+o,!1,e);break;case"index":var o=0===t.data.index?0:t.data.index||n.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(o),!1,e),n.children().trigger("focus");break;default:return}},o.prototype.checkNavigable=function(t){var e=this.getNavigableIndexes(),i=0;if(t>e[e.length-1])t=e[e.length-1];else for(var s in e){if(t<e[s]){t=i;break}i=e[s]}return t},o.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(h("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",h.proxy(t.
1interrupt,t,!0)).off("mouseleave.slick",h.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),h(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&h(t.$slideTrack).children().off("click.slick",t.selectHandler),h(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),h(window).off("resize.slick.slick-"+t.instanceUid,t.resize),h("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),h(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},o.prototype.cleanUpSlideEvents=function(){this.$list.off("mouseenter.slick",h.proxy(this.interrupt,this,!0)),this.$list.off("mouseleave.slick",h.proxy(this.interrupt,this,!1))},o.prototype.cleanUpRows=function(){var t;1<this.options.rows&&((t=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(t))},o.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},o.prototype.destroy=function(t){var e=this;e.autoPlayClear(),e.touchObject={},e.cleanUpEvents(),h(".slick-cloned",e.$slider).detach(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.$prevArrow.length&&(e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove()),e.$nextArrow&&e.$nextArrow.length&&(e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove()),e.$slides&&(e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){h(this).attr("style",h(this).data("originalStyling"))}),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.detach(),e.$list.detach(),e.$slider.append(e.$slides)),e.cleanUpRows(),e.$slider.removeClass("slick-slider"),e.$slider.removeClass("slick-initialized"),e.$slider.removeClass("slick-dotted"),e.unslicked=!0,t||e.$slider.trigger("destroy",[e])},o.prototype.disableTransition=function(t){var e={};e[this.transitionType]="",(!1===this.options.fade?this.$slideTrack:this.$slides.eq(t)).css(e)},o.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},o.prototype.fadeSlideOut=function(t){!1===this.cssTransitions?this.$slides.eq(t).animate({opacity:0,zIndex:this.options.zIndex-2},this.options.speed,this.options.easing):(this.applyTransition(t),this.$slides.eq(t).css({opacity:0,zIndex:this.options.zIndex-2}))},o.prototype.filterSlides=o.prototype.slickFilter=function(t){null!==t&&(this.$slidesCache=this.$slides,this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.filter(t).appendTo(this.$slideTrack),this.reinit())},o.prototype.focusHandler=function(){var i=this;i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var e=h(this);setTimeout(function(){i.options.pauseOnFocus&&(i.focussed=e.is(":focus"),i.autoPlay())}
1,0)})},o.prototype.getCurrent=o.prototype.slickCurrentSlide=function(){return this.currentSlide},o.prototype.getDotCount=function(){var t=this,e=0,i=0,s=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++s;else for(;e<t.slideCount;)++s,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)s=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++s,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else s=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return s-1},o.prototype.getLeft=function(t){var e,i,s=this,n=0;return s.slideOffset=0,e=s.$slides.first().outerHeight(!0),!0===s.options.infinite?(s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.slideWidth*s.options.slidesToShow*-1,i=-1,!0===s.options.vertical&&!0===s.options.centerMode&&(2===s.options.slidesToShow?i=-1.5:1===s.options.slidesToShow&&(i=-2)),n=e*s.options.slidesToShow*i),s.slideCount%s.options.slidesToScroll!=0&&t+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(n=t>s.slideCount?(s.slideOffset=(s.options.slidesToShow-(t-s.slideCount))*s.slideWidth*-1,(s.options.slidesToShow-(t-s.slideCount))*e*-1):(s.slideOffset=s.slideCount%s.options.slidesToScroll*s.slideWidth*-1,s.slideCount%s.options.slidesToScroll*e*-1))):t+s.options.slidesToShow>s.slideCount&&(s.slideOffset=(t+s.options.slidesToShow-s.slideCount)*s.slideWidth,n=(t+s.options.slidesToShow-s.slideCount)*e),s.slideCount<=s.options.slidesToShow&&(n=s.slideOffset=0),!0===s.options.centerMode&&s.slideCount<=s.options.slidesToShow?s.slideOffset=s.slideWidth*Math.floor(s.options.slidesToShow)/2-s.slideWidth*s.slideCount/2:!0===s.options.centerMode&&!0===s.options.infinite?s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)-s.slideWidth:!0===s.options.centerMode&&(s.slideOffset=0,s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)),i=!1===s.options.vertical?t*s.slideWidth*-1+s.slideOffset:t*e*-1+n,!0===s.options.variableWidth&&(e=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow),i=!0===s.options.rtl?e[0]?-1*(s.$slideTrack.width()-e[0].offsetLeft-e.width()):0:e[0]?-1*e[0].offsetLeft:0,!0===s.options.centerMode&&(e=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow+1),i=!0===s.options.rtl?e[0]?-1*(s.$slideTrack.width()-e[0].offsetLeft-e.width()):0:e[0]?-1*e[0].offsetLeft:0,i+=(s.$list.width()-e.outerWidth())/2)),i},o.prototype.getOption=o.prototype.slickGetOption=function(t){return this.options[t]},o.prototype.getNavigableIndexes=function(){for(var t=this,e=0,i=0,s=[],n=!1===t.options.infinite?t.slideCount:(e=-1*t.options.slidesToScroll,i=-1*t.options.slidesToScroll,2*t.slideCount);e<n;)s.push(e),e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return s},o.prototype.getSlick=function(){return this},o.prototype.getSlideCount=function(){var i,s=this,n=!0===s.options.centerMode?s.slideWidth*Math.floor(s.options.slidesToShow/2):0;return!0===s.options.swipeToSlide?(s.$slideTrack.find(".slick-slide").each(function(t,e){if(e.offsetLeft-n+h(e).outerWidth()/2>-1*s.swipeLeft)return i=e,!1}),Math.abs(h(i).attr("data-slick-index")-s.currentSlide)||1):s.options.slidesToScroll},o.prototype.goTo=o.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},o.prototype.init=function(t){var e=this;h(e.$slider).hasClass("slick-initialized")||(h(e.$slider).addClass("slick-initialized"),e.buildRows(),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.updateArrows(),e.updateDots(),e.checkResponsive(!0),e.focusHandler()),t&&e.$slider.trigger("init",[e]),!0===e.options.accessibility&&e.initADA(),e.options.autoplay&&(e.paused=!1,e.autoPlay())},o.prototype.initADA=function(){var i=this,s=Math.ceil(i.slideCount/i.options.slidesToShow),n=i.getNavigableIndexes().filter(function(t){return 0<=t&&t<i.slideCount});i.$slides.add(i.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==i.$dots&&(i.$slides.not(i.$slideTrack.find(".slick-cloned")).each(function(t){var e=n.indexOf(t);h(this).attr({role:"tabpanel",id:"slick-slide"+i.instanceUid+t,tabindex:-1}),-1!==e&&h(this).attr({"aria-describedby":"slick-slide-control"+i.instanceUid+e})}),i.$dots.attr("role","tablist").find("li").each(function(t){var e=n[t];h(this).attr({role:"presentation"}),h(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+i.instanceUid+t,"aria-controls":"slick-slide"+i.instanceUid+e,"aria-label":t+1+" of "+s,"aria-selected":null,tabindex:"-1"})}).eq(i.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var t=i.currentSlide,e=t+i.options.slidesToShow;t<e;t++)i.$slides.eq(t).attr("tabindex",0);i.activateADA()},o.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},o.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&(h("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&h("li",t.$dots).on("mouseenter.slick",h.proxy(t.
1interrupt,t,!0)).on("mouseleave.slick",h.proxy(t.interrupt,t,!1))},o.prototype.initSlideEvents=function(){this.options.pauseOnHover&&(this.$list.on("mouseenter.slick",h.proxy(this.interrupt,this,!0)),this.$list.on("mouseleave.slick",h.proxy(this.interrupt,this,!1)))},o.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),h(document).on(t.visibilityChange,h.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&h(t.$slideTrack).children().on("click.slick",t.selectHandler),h(window).on("orientationchange.slick.slick-"+t.instanceUid,h.proxy(t.orientationChange,t)),h(window).on("resize.slick.slick-"+t.instanceUid,h.proxy(t.resize,t)),h("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),h(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),h(t.setPosition)},o.prototype.initUI=function(){!0===this.options.arrows&&this.slideCount>this.options.slidesToShow&&(this.$prevArrow.show(),this.$nextArrow.show()),!0===this.options.dots&&this.slideCount>this.options.slidesToShow&&this.$dots.show()},o.prototype.keyHandler=function(t){t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===this.options.accessibility?this.changeSlide({data:{message:!0===this.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===this.options.accessibility&&this.changeSlide({data:{message:!0===this.options.rtl?"previous":"next"}}))},o.prototype.lazyLoad=function(){function t(t){h("img[data-lazy]",t).each(function(){var t=h(this),e=h(this).attr("data-lazy"),i=h(this).attr("data-srcset"),s=h(this).attr("data-sizes")||o.$slider.attr("data-sizes"),n=document.createElement("img");n.onload=function(){t.animate({opacity:0}
vendor: 7,051 bytes, line 1
1,100,function(){i&&(t.attr("srcset",i),s&&t.attr("sizes",s)),t.attr("src",e).animate({opacity:1},200,function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),o.$slider.trigger("lazyLoaded",[o,t,e])})},n.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,t,e])},n.src=e})}var e,i,s,o=this;if(!0===o.options.centerMode?s=!0===o.options.infinite?(i=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(i=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),o.options.slidesToShow/2+1+2+o.currentSlide):(i=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,s=Math.ceil(i+o.options.slidesToShow),!0===o.options.fade&&(0<i&&i--,s<=o.slideCount&&s++)),e=o.$slider.find(".slick-slide").slice(i,s),"anticipated"===o.options.lazyLoad)for(var n=i-1,r=s,a=o.$slider.find(".slick-slide"),l=0;l<o.options.slidesToScroll;l++)n<0&&(n=o.slideCount-1),e=(e=e.add(a.eq(n))).add(a.eq(r)),n--,r++;t(e),o.slideCount<=o.options.slidesToShow?t(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?t(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&t(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},o.prototype.loadSlider=function(){this.setPosition(),this.$slideTrack.css({opacity:1}),this.$slider.removeClass("slick-loading"),this.initUI(),"progressive"===this.options.lazyLoad&&this.progressiveLazyLoad()},o.prototype.next=o.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},o.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},o.prototype.pause=o.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},o.prototype.play=o.prototype.slickPlay=function(){this.autoPlay(),this.options.autoplay=!0,this.paused=!1,this.focussed=!1,this.interrupted=!1},o.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.slideCount>e.options.slidesToShow&&e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),!0===e.options.accessibility&&(e.initADA(),e.options.focusOnChange&&h(e.$slides.get(e.currentSlide)).attr("tabindex",0).focus()))},o.prototype.prev=o.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},o.prototype.preventDefault=function(t){t.preventDefault()},o.prototype.progressiveLazyLoad=function(t){t=t||1;var e,i,s,n,o=this,r=h("img[data-lazy]",o.$slider);r.length?(e=r.first(),i=e.attr("data-lazy"),s=e.attr("data-srcset"),n=e.attr("data-sizes")||o.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(e.attr("srcset",s),n&&e.attr("sizes",n)),e.attr("src",i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===o.options.adaptiveHeight&&o.setPosition(),o.$slider.trigger("lazyLoaded",[o,e,i]),o.progressiveLazyLoad()},r.onerror=function(){t<3?setTimeout(function(){o.progressiveLazyLoad(t+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,e,i]),o.progressiveLazyLoad())},r.src=i):o.$slider.trigger("allImagesLoaded",[o])},o.prototype.refresh=function(t){var e=this,i=e.slideCount-e.options.slidesToShow;!e.options.infinite&&e.currentSlide>i&&(e.currentSlide=i),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),i=e.currentSlide,e.destroy(!0),h.extend(e,e.initials,{currentSlide:i}),e.init(),t||e.changeSlide({data:{message:"index",index:i}},!1)},o.prototype.registerBreakpoints=function(){var t,e,i,s=this,n=s.options.responsive||null;if("array"===h.type(n)&&n.length){for(t in s.respondTo=s.options.respondTo||"window",n)if(i=s.breakpoints.length-1,n.hasOwnProperty(t)){for(e=n[t].breakpoint;0<=i;)s.breakpoints[i]&&s.breakpoints[i]===e&&s.breakpoints.splice(i,1),i--;s.breakpoints.push(e),s.breakpointSettings[e]=n[t].settings}s.breakpoints.sort(function(t,e){return s.options.mobileFirst?t-e:e-t})}},o.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&h(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},o.prototype.resize=function(){var t=this;h(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=h(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},o.prototype.removeSlide=o.prototype.slickRemove=function(t,e,i){var s=this;if(t="boolean"==typeof t?!0===(e=t)?0:s.slideCount-1:!0===e?--t:t,s.slideCount<1||t<0||t>s.slideCount-1)return!1;s.unload(),(!0===i?s.$slideTrack.children():s.$slideTrack.children(this.options.slide).eq(t)).remove(),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slidesCache=s.$slides,s.reinit()},o.prototype.setCSS=function(t){var e,i,s=this,n={};!0===s.options.rtl&&(t=-t),e="left"==s.positionProp?Math.ceil(t)+"px":"0px",i="top"==s.positionProp?Math.ceil(t)+"px":"0px",n[s.positionProp]=t,!1!==s.transformsEnabled&&(!(n={})===s.cssTransitions?n[s.animType]="translate("+e+", "+i+")":n[s.animType]="translate3d("+e+", "+i+", 0px)"),s.$slideTrack.css(n)},o.prototype.setDimensions=function(){var t=this,e=(!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length))),t.$slides.first().outerWidth(!0)-t.$slides.first().width());!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},o.prototype.setFade=function(){var i,s=this;s.$slides.each(function(t,e){i=s.slideWidth*t*-1,!0===s.options.rtl?h(e).css({position:"relative",right:i,top:0,zIndex:s.options.zIndex-2,opacity:0}
1):h(e).css({position:"relative",left:i,top:0,zIndex:s.options.zIndex-2,opacity:0})}),s.$slides.eq(s.currentSlide).css({zIndex:s.options.zIndex-1,opacity:1})},o.prototype.setHeight=function(){var t;1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical&&(t=this.$slides.eq(this.currentSlide).outerHeight(!0),this.$list.css("height",t))},o.prototype.setOption=o.prototype.slickSetOption=function(){var t,e,i,s,n,o=this,r=!1;if("object"===h.type(arguments[0])?(i=arguments[0],r=arguments[1],n="multiple"):"string"===h.type(arguments[0])&&(i=arguments[0],s=arguments[1],r=arguments[2],"responsive"===arguments[0]&&"array"===h.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)o.options[i]=s;else if("multiple"===n)h.each(i,function(t,e){o.options[t]=e});else if("responsive"===n)for(e in s)if("array"!==h.type(o.options.responsive))o.options.responsive=[s[e]];else{for(t=o.options.responsive.length-1;0<=t;)o.options.responsive[t].breakpoint===s[e].breakpoint&&o.options.responsive.splice(t,1),t--;o.options.responsive.push(s[e])}r&&(o.unload(),o.reinit())},o.prototype.setPosition=function(){this.setDimensions(),this.setHeight(),!1===this.options.fade?this.setCSS(this.getLeft(this.currentSlide)):this.setFade(),this.$slider.trigger("setPosition",[this])},o.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},o.prototype.setSlideClasses=function(t){var e,i,s,n=this,o=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");n.$slides.eq(t).addClass("slick-current"),!0===n.options.centerMode?(i=n.options.slidesToShow%2==0?1:0,s=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(s<=t&&t<=n.slideCount-1-s?n.$slides.slice(t-s+i,t+s+1).addClass("slick-active").attr("aria-hidden","false"):(e=n.options.slidesToShow+t,o.slice(e-s+1+i,e+s+2).addClass("slick-active").attr("aria-hidden","false")),0===t?o.eq(o.length-1-n.options.slidesToShow).addClass("slick-center"):t===n.slideCount-1&&o.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(t).addClass("slick-center")):0<=t&&t<=n.slideCount-n.options.slidesToShow?n.$slides.slice(t,t+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):o.length<=n.options.slidesToShow?o.addClass("slick-active").attr("aria-hidden","false"):(i=n.slideCount%n.options.slidesToShow,e=!0===n.options.infinite?n.options.slidesToShow+t:t,(n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-t<n.options.slidesToShow?o.slice(e-(n.options.slidesToShow-i),e+i):o.slice(e,e+n.options.slidesToShow)).addClass("slick-active").attr("aria-hidden","false")),"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},o.prototype.setupInfinite=function(){var t,e,i,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(e=null,s.slideCount>s.options.slidesToShow)){for(i=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,t=s.slideCount;t>s.slideCount-i;--t)h(s.$slides[e=t-1]).clone(!0).attr("id","").attr("data-slick-index",e-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(t=0;t<i+s.slideCount;t+=1)e=t,h(s.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){h(this).attr("id","")})}},o.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},o.prototype.selectHandler=function(t){t=h(t.target).is(".slick-slide")?h(t.target):h(t.target).parents(".slick-slide"),t=parseInt(t.attr("data-slick-index"))||0;this.slideCount<=this.options.slidesToShow?this.slideHandler(t,!1,!0):this.slideHandler(t)}
vendor: 5,894 bytes, line 1
1,o.prototype.slideHandler=function(t,e,i){var s,n,o,r=this;if(e=e||!1,!(!0===r.animating&&!0===r.options.waitForAnimate||!0===r.options.fade&&r.currentSlide===t))if(!1===e&&r.asNavFor(t),s=t,e=r.getLeft(s),o=r.getLeft(r.currentSlide),r.currentLeft=null===r.swipeLeft?o:r.swipeLeft,!1===r.options.infinite&&!1===r.options.centerMode&&(t<0||t>r.getDotCount()*r.options.slidesToScroll))!1===r.options.fade&&(s=r.currentSlide,!0!==i?r.animateSlide(o,function(){r.postSlide(s)}):r.postSlide(s));else if(!1===r.options.infinite&&!0===r.options.centerMode&&(t<0||t>r.slideCount-r.options.slidesToScroll))!1===r.options.fade&&(s=r.currentSlide,!0!==i?r.animateSlide(o,function(){r.postSlide(s)}):r.postSlide(s));else{if(r.options.autoplay&&clearInterval(r.autoPlayTimer),n=s<0?r.slideCount%r.options.slidesToScroll!=0?r.slideCount-r.slideCount%r.options.slidesToScroll:r.slideCount+s:s>=r.slideCount?r.slideCount%r.options.slidesToScroll!=0?0:s-r.slideCount:s,r.animating=!0,r.$slider.trigger("beforeChange",[r,r.currentSlide,n]),t=r.currentSlide,r.currentSlide=n,r.setSlideClasses(r.currentSlide),r.options.asNavFor&&(o=(o=r.getNavTarget()).slick("getSlick")).slideCount<=o.options.slidesToShow&&o.setSlideClasses(r.currentSlide),r.updateDots(),r.updateArrows(),!0===r.options.fade)return!0!==i?(r.fadeSlideOut(t),r.fadeSlide(n,function(){r.postSlide(n)})):r.postSlide(n),void r.animateHeight();!0!==i?r.animateSlide(e,function(){r.postSlide(n)}):r.postSlide(n)}},o.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},o.prototype.swipeDirection=function(){var t=this.touchObject.startX-this.touchObject.curX,e=this.touchObject.startY-this.touchObject.curY,e=Math.atan2(e,t);return(t=(t=Math.round(180*e/Math.PI))<0?360-Math.abs(t):t)<=45&&0<=t||t<=360&&315<=t?!1===this.options.rtl?"left":"right":135<=t&&t<=225?!1===this.options.rtl?"right":"left":!0===this.options.verticalSwiping?35<=t&&t<=135?"down":"up":"vertical"},o.prototype.swipeEnd=function(t){var e,i,s=this;if(s.dragging=!1,s.swiping=!1,s.scrolling)return s.scrolling=!1;if(s.interrupted=!1,s.shouldClick=!(10<s.touchObject.swipeLength),void 0===s.touchObject.curX)return!1;if(!0===s.touchObject.edgeHit&&s.$slider.trigger("edge",[s,s.swipeDirection()]),s.touchObject.swipeLength>=s.touchObject.minSwipe){switch(i=s.swipeDirection()){case"left":case"down":e=s.options.swipeToSlide?s.checkNavigable(s.currentSlide+s.getSlideCount()):s.currentSlide+s.getSlideCount(),s.currentDirection=0;break;case"right":case"up":e=s.options.swipeToSlide?s.checkNavigable(s.currentSlide-s.getSlideCount()):s.currentSlide-s.getSlideCount(),s.currentDirection=1}"vertical"!=i&&(s.slideHandler(e),s.touchObject={},s.$slider.trigger("swipe",[s,i]))}else s.touchObject.startX!==s.touchObject.curX&&(s.slideHandler(s.currentSlide),s.touchObject={})},o.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},o.prototype.swipeMove=function(t){var e,i,s=this,n=void 0!==t.originalEvent?t.originalEvent.touches:null;return!(!s.dragging||s.scrolling||n&&1!==n.length)&&(e=s.getLeft(s.currentSlide),s.touchObject.curX=void 0!==n?n[0].pageX:t.clientX,s.touchObject.curY=void 0!==n?n[0].pageY:t.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),n=Math.round(Math.sqrt(Math.pow(s.touchObject.curY-s.touchObject.startY,2))),!s.options.verticalSwiping&&!s.swiping&&4<n?!(s.scrolling=!0):(!0===s.options.verticalSwiping&&(s.touchObject.swipeLength=n),n=s.swipeDirection(),void 0!==t.originalEvent&&4<s.touchObject.swipeLength&&(s.swiping=!0,t.preventDefault()),t=(!1===s.options.rtl?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),!0===s.options.verticalSwiping&&(t=s.touchObject.curY>s.touchObject.startY?1:-1),i=s.touchObject.swipeLength,(s.touchObject.edgeHit=!1)===s.options.infinite&&(0===s.currentSlide&&"right"===n||s.currentSlide>=s.getDotCount()&&"left"===n)&&(i=s.touchObject.swipeLength*s.options.edgeFriction,s.touchObject.edgeHit=!0),!1===s.options.vertical?s.swipeLeft=e+i*t:s.swipeLeft=e+i*(s.$list.height()/s.listWidth)*t,!0===s.options.verticalSwiping&&(s.swipeLeft=e+i*t),!0!==s.options.fade&&!1!==s.options.touchMove&&(!0===s.animating?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft))))},o.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return!(i.touchObject={});void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},o.prototype.unfilterSlides=o.prototype.slickUnfilter=function(){null!==this.$slidesCache&&(this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.appendTo(this.$slideTrack),this.reinit())},o.prototype.unload=function(){var t=this;h(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
1,o.prototype.unslick=function(t){this.$slider.trigger("unslick",[this,t]),this.destroy()},o.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},o.prototype.updateDots=function(){null!==this.$dots&&(this.$dots.find("li").removeClass("slick-active").end(),this.$dots.find("li").eq(Math.floor(this.currentSlide/this.options.slidesToScroll)).addClass("slick-active"))},o.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},h.fn.slick=function(){for(var t,e=arguments[0],i=Array.prototype.slice.call(arguments,1),s=this.length,n=0;n<s;n++)if("object"==typeof e||void 0===e?this[n].slick=new o(this[n],e):t=this[n].slick[e].apply(this[n].slick,i),void 0!==t)return t;return this}}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.videojs=e()}(this,function(){function j(t,e){return t(e={exports:{}},e.exports),e.exports}function H(e,i){Zt(e).forEach(function(t){return i(e[t],t)})}function c(i){for(var t=arguments.length,e=Array(1<t?t-1:0),s=1;s<t;s++)e[s-1]=arguments[s];
1return Object.assign?Object.assign.apply(Object,[i].concat(e)):(e.forEach(function(t){t&&H(t,function(t,e){i[e]=t})}),i)}function L(t){return!!t&&"object"===(void 0===t?"undefined":me(t))}function F(t){return L(t)&&"[object Object]"===ve.call(t)&&t.constructor===Object}function R(t,e){return t&&e?"function"==typeof m.getComputedStyle?(i=m.getComputedStyle(t))?i[e]:"":t.currentStyle[e]||"":"";var i}function z(t){return"string"==typeof t&&/\S/.test(t)}function B(t){if(/\s/.test(t))throw new Error("class has illegal whitespace characters")}function W(){return v===m.document&&void 0!==v.createElement}function V(t){return L(t)&&1===t.nodeType}function U(i){return function(t,e){if(!z(t))return v[i](null);e=V(e=z(e)?v.querySelector(e):e)?e:v;return e[i]&&e[i](t)}}function u(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"div",i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},s=arguments[3],n=v.createElement(t);return Object.getOwnPropertyNames(i).forEach(function(t){var e=i[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(_.warn(ee(we,t,e)),n.setAttribute(t,e)):"textContent"===t?Y(n,e):n[t]=e}),Object.getOwnPropertyNames(e).forEach(function(t){n.setAttribute(t,e[t])}),s&&ut(n,s),n}function Y(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}function q(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function K(t,e){return B(e),t.classList?t.classList.contains(e):new RegExp("(^|\\s)"+e+"($|\\s)").test(t.className)}function X(t,e){return t.classList?t.classList.add(e):K(t,e)||(t.className=(t.className+" "+e).trim()),t}function G(t,e){return t.classList?t.classList.remove(e):(B(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t}function Q(t,e,i){var s=K(t,e);if((i="boolean"!=typeof(i="function"==typeof i?i(t,e):i)?!s:i)!==s)return(i?X:G)(t,e),t}function J(i,s){Object.getOwnPropertyNames(s).forEach(function(t){var e=s[t];null==e||!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})}function Z(t){var e={};if(t&&t.attributes&&0<t.attributes.length)for(var i=t.attributes,s=i.length-1;0<=s;s--){var n=i[s].name,o=i[s].value;
1"boolean"!=typeof t[n]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+n+",")||(o=null!==o),e[n]=o}return e}function tt(t,e){return t.getAttribute(e)}function et(t,e,i){t.setAttribute(e,i)}function it(t,e){t.removeAttribute(e)}function st(){v.body.focus(),v.onselectstart=function(){return!1}}function nt(){v.onselectstart=function(){return!0}}function ot(t){var e,i;if(t&&t.getBoundingClientRect&&t.parentNode)return e=t.getBoundingClientRect(),i={},["bottom","height","left","right","top","width"].forEach(function(t){void 0!==e[t]&&(i[t]=e[t])}),i.height||(i.height=parseFloat(R(t,"height"))),i.width||(i.width=parseFloat(R(t,"width"))),i}function rt(t){var e=void 0;if(!(e=t.getBoundingClientRect&&t.parentNode?t.getBoundingClientRect():e))return{left:0,top:0};var t=v.documentElement,i=v.body,s=t.clientLeft||i.clientLeft||0,n=m.pageXOffset||i.scrollLeft,n=e.left+n-s,s=t.clientTop||i.clientTop||0,t=m.pageYOffset||i.scrollTop,i=e.top+t-s;return{left:Math.round(n),top:Math.round(i)}}function at(t,e){var i={},s=rt(t),n=t.offsetWidth,t=t.offsetHeight,o=s.top,s=s.left,r=e.pageY,a=e.pageX;return e.changedTouches&&(a=e.changedTouches[0].pageX,r=e.changedTouches[0].pageY),i.y=Math.max(0,Math.min(1,(o-r+t)/t)),i.x=Math.max(0,Math.min(1,(a-s)/n)),i}function lt(t){return L(t)&&3===t.nodeType}function ht(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function ct(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return V(t="function"==typeof t?t():t)||lt(t)?t:"string"==typeof t&&/\S/.test(t)?v.createTextNode(t):void 0}).filter(function(t){return t})}function ut(e,t){return ct(t).forEach(function(t){return e.appendChild(t)}),e}function dt(t,e){return ut(ht(t),e)}function pt(t){var e=(e=t[Ee])||(t[Ee]=xe++);return Se[e]||(Se[e]={}),Se[e]}function ft(t){t=t[Ee];return t&&Object.getOwnPropertyNames(Se[t]).length}function gt(t){var e=t[Ee];if(e){delete Se[e];try{delete t[Ee]}catch(e){t.removeAttribute?t.removeAttribute(Ee):t[Ee]=null}}}function mt(t,e){var i=pt(t);0===i.handlers[e].length&&(delete i.handlers[e],t.removeEventListener?t.removeEventListener(e,i.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&&gt(t)}function vt(e,i,t,s){t.forEach(function(t){e(i,t,s)})}function yt(t){function e(){return!0}function i(){return!1}if(!t||!t.isPropagationStopped){var s,n,o,r=t||m.event;for(s in t={},r)"layerX"===s||"layerY"===s||"keyLocation"===s||"webkitMovementX"===s||"webkitMovementY"===s||"returnValue"===s&&r.preventDefault||(t[s]=r[s]);t.target||(t.target=t.srcElement||v),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){r.preventDefault&&r.preventDefault(),t.returnValue=!1,r.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),t.cancelBubble=!0,r.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=i,t.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=i,null!==t.clientX&&void 0!==t.clientX&&(n=v.documentElement,o=v.body,t.pageX=t.clientX+(n&&n.scrollLeft||o&&o.scrollLeft||0)-(n&&n.clientLeft||o&&o.clientLeft||0),t.pageY=t.clientY+(n&&n.scrollTop||o&&o.scrollTop||0)-(n&&n.clientTop||o&&o.clientTop||0)),t.which=t.charCode||t.keyCode,null!==t.button&&void 0!==t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}function _t(r,t,e){if(Array.isArray(t))return vt(_t,r,t,e);var a=pt(r);a.handlers||(a.handlers={}),a.handlers[t]||(a.handlers[t]=[]),e.guid||(e.guid=xe++),a.handlers[t].push(e),a.dispatcher||(a.disabled=!1,a.dispatcher=function(t,e){if(!a.disabled){t=yt(t);var i=a.handlers[t.type];if(i)for(var s=i.slice(0),n=0,o=s.length;n<o&&!t.isImmediatePropagationStopped();n++)try{s[n].call(r,t,e)}catch(t){_.error(t)}}}),1===a.handlers[t].length&&(r.addEventListener?(e=!1,$e&&-1<Re.indexOf(t)&&(e={passive:!0}),r.addEventListener(t,a.dispatcher,e)):r.attachEvent&&r.attachEvent("on"+t,a.dispatcher))}function bt(e,t,i){if(ft(e)){var s=pt(e);
1if(s.handlers){if(Array.isArray(t))return vt(bt,e,t,i);function n(t){s.handlers[t]=[],mt(e,t)}if(t){var o=s.handlers[t];if(o)if(i){if(i.guid)for(var r=0;r<o.length;r++)o[r].guid===i.guid&&o.splice(r--,1);mt(e,t)}else n(t)}else for(var a in s.handlers)n(a)}}}function wt(t,e,i){var s=ft(t)?pt(t):{},n=t.parentNode||t.ownerDocument;return e=yt(e="string"==typeof e?{type:e,target:t}:e),s.dispatcher&&s.dispatcher.call(t,e,i),n&&!e.isPropagationStopped()&&!0===e.bubbles?wt.call(null,n,e,i):n||e.defaultPrevented||(s=pt(e.target),e.target[e.type]&&(s.disabled=!0,"function"==typeof e.target[e.type]&&e.target[e.type](),s.disabled=!1)),!e.defaultPrevented}function kt(t,e,i){if(Array.isArray(e))return vt(kt,t,e,i);function s(){bt(t,e,s),i.apply(this,arguments)}s.guid=i.guid=i.guid||xe++,_t(t,e,s)}function Ct(t,e){e&&(We=e),m.setTimeout(Pe,t)}function Tt(t,e){var i=(1<arguments.length&&void 0!==e?e:{}).eventBusKey;if(i){if(!t[i].nodeName)throw new Error('The eventBusKey "'+i+'" does not refer to an element.');t.eventBusEl_=t[i]}else t.eventBusEl_=u("span",{className:"vjs-event-bus"});c(t,Ye),t.on("dispose",function(){return t.off()})}function xt(t,e){c(t,qe),t.state=c({},t.state,e),"function"==typeof t.handleStateChanged&&Ve(t)&&t.on("statechanged",t.handleStateChanged)}function l(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function d(){for(var i={},t=arguments.length,e=Array(t),s=0;s<t;s++)e[s]=arguments[s];return e.forEach(function(t){t&&H(t,function(t,e){F(t)?(F(i[e])||(i[e]={}),i[e]=d(i[e],t)):i[e]=t})}),i}function St(t,e,i,s){var n=s,o=i.length-1;if("number"!=typeof n||n<0||o<n)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+n+") is non-numeric or out of bounds (0-"+o+").");return i[s][e]}function Et(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:St.bind(null,"start",0,t),end:St.bind(null,"end",1,t)}}function $t(t,e){return Array.isArray(t)?Et(t):void 0===t||void 0===e?Et():Et([[t,e]])}function Dt(t,e){var i,s=0,n=void 0;if(!e)return 0;t&&t.length||(t=$t(0,0));for(var o=0;o<t.length;o++)i=t.start(o),s+=(n=e<(n=t.end(o))?e:n)-i;return s/e}function e(t){if(t instanceof e)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:L(t)&&("number"==typeof t.code&&(this.code=t.code),c(this,t)),this.message||(this.message=e.defaultMessages[this.code]||"")}function Pt(t,e,i){var s=t;return $i(e)?(i=e,"string"==typeof t&&(s={uri:t})):s=Ni(e,{uri:t}),s.callback=i,s}function It(t,e,i){return At(e=Pt(t,e,i))}function At(s){function n(){var t=void 0,t=h.response||h.responseText||function(t){if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;return""!==t.responseType||e?null:t.responseXML}(h);if(g)try{t=JSON.parse(t)}catch(t){}return t}function e(t){return clearTimeout(r),(t=t instanceof Error?t:new Error(""+(t||"Unknown XMLHttpRequest Error"))).statusCode=0,l(t,m)}function t(){var t,e,i;if(!o)return clearTimeout(r),t=s.useXDR&&void 0===h.status?200:1223===h.status?204:h.status,e=m,i=null,0!==t?(e={body:n(),statusCode:t,method:u,headers:{},url:c,rawRequest:h},h.getAllResponseHeaders&&(e.headers=Oi(h.getAllResponseHeaders()))):i=new Error("Internal XMLHttpRequest Error"),l(i,e,e.body)}if(void 0===s.callback)throw new Error("callback argument missing");var i,o,r,a=!1,l=function(t,e,i){a||(a=!0,s.callback(t,e,i))},h=s.xhr||null,c=(h=h||new(s.cors||s.useXDR?It.XDomainRequest:It.XMLHttpRequest)).url=s.uri||s.url,u=h.method=s.method||"GET",d=s.body||s.data,p=h.headers=s.headers||{},f=!!s.sync,g=!1,m={body:void 0,headers:{},statusCode:0,method:u,url:c,rawRequest:h};if("json"in s&&!1!==s.json&&(g=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==u&&"HEAD"!==u&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),d=JSON.stringify(!0===s.json?d:s.json))),h.onreadystatechange=function(){4===h.readyState&&setTimeout(t,0)},h.onload=t,h.onerror=e,h.onprogress=function(){},h.onabort=function(){o=!0},h.ontimeout=e,h.open(u,c,!f,s.username,s.password),f||(h.withCredentials=!!s.withCredentials),!f&&0<s.timeout&&(r=setTimeout(function(){var t;o||(o=!0,h.abort("timeout"),(t=new Error("XMLHttpRequest timeout")).code="ETIMEDOUT",e(t))},s.timeout)),h.setRequestHeader)for(i in p)p.hasOwnProperty(i)&&h.setRequestHeader(i,p[i]);else if(s.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return;return 1}(s.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in s&&(h.responseType=s.responseType),"beforeSend"in s&&"function"==typeof s.beforeSend&&s.beforeSend(h),h.send(d||null),h}
1function Mt(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function Ot(t){function e(t,e,i,s){return 3600*(0|t)+60*(0|e)+(0|i)+(0|s)/1e3}t=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return t?t[3]?e(t[1],t[2],t[3].replace(":",""),t[4]):59<t[1]?e(t[1],t[2],0,t[4]):e(0,t[1],t[2],t[4]):null}function Nt(){this.values=rs(null)}function jt(t,e,i,s){var n,o,r=s?t.split(s):[t];for(n in r)"string"!=typeof r[n]||2===(o=r[n].split(i)).length&&e(o[0],o[1])}function Ht(n,e){function i(t){return cs[t]}for(var t,s=n.document.createElement("div"),o=s,r=[];null!==(t=function(){if(!e)return null;var t=e.match(/^([^<]*)(<[^>]+>?)?/);return t=t[1]||t[2],e=e.substr(t.length),t}());)if("<"!==t[0])o.appendChild(n.document.createTextNode(function(t){for(;h=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(h[0],i);return t}(t)));else{if("/"===t[1]){r.length&&r[r.length-1]===t.substr(2).replace(">","")&&(r.pop(),o=o.parentNode);continue}var a,l=Ot(t.substr(1,t.length-2));if(l){a=n.document.createProcessingInstruction("timestamp",l),o.appendChild(a);continue}var h=t.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h)continue;if(!(a=function(t,e){var i=us[t];if(!i)return null;var s=n.document.createElement(i),i=(s.localName=i,ds[t]);return i&&e&&(s[i]=e.trim()),s}(h[1],h[3])))continue;if(l=o,ps[(t=a).localName]&&ps[t.localName]!==l.localName)continue;h[2]&&(a.className=h[2].substr(1).replace("."," ")),r.push(h[1]),o.appendChild(a),o=a}return s}function Lt(t){function o(t,e){for(var i=e.childNodes.length-1;0<=i;i--)t.push(e.childNodes[i])}var e=[],i="";if(!t||!t.childNodes)return"ltr";for(o(e,t);i=function t(e){if(!e||!e.length)return null;var i,s=e.pop(),n=s.textContent||s.innerText;return n?(i=n.match(/^.*(\n|\r)/))?i[e.length=0]:n:"ruby"===s.tagName?t(e):s.childNodes?(o(e,s),t(e)):void 0}(e);)for(var s=0;s<i.length;s++)if(function(t){for(var e=0;e<fs.length;e++){var i=fs[e];if(t>=i[0]&&t<=i[1])return 1}}(i.charCodeAt(s)))return"rtl";return"ltr"}function Ft(){}function Rt(t,e,i){var s=/MSIE\s8\.0/.test(navigator.userAgent),n="rgba(255, 255, 255, 1)",o="rgba(0, 0, 0, 0.8)",n=(s&&(n="rgb(255, 255, 255)",o="rgb(0, 0, 0)"),Ft.call(this),this.cue=e,this.cueDiv=Ht(t,e.text),{color:n,backgroundColor:o,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"}),r=(s||(n.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",n.unicodeBidi="plaintext"),this.applyStyles(n,this.cueDiv),this.div=t.document.createElement("div"),n={textAlign:"middle"===e.align?"center":e.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},s||(n.direction=Lt(this.cueDiv),n.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"plaintext"),this.applyStyles(n),this.div.appendChild(this.cueDiv),0);switch(e.positionAlign){case"start":r=e.position;break;case"middle":r=e.position-e.size/2;break;case"end":r=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function f(t){var e,i,s,n,o=/MSIE\s8\.0/.test(navigator.userAgent);t.div&&(e=t.div.offsetHeight,i=t.div.offsetWidth,s=t.div.offsetTop,n=(n=t.div.childNodes)&&(n=n[0])&&n.getClientRects&&n.getClientRects(),t=t.div.getBoundingClientRect(),n=n?Math.max(n[0]&&n[0].height||0,t.height/n.length):0),this.left=t.left,this.right=t.right,this.top=t.top||s,this.height=t.height||e,this.bottom=t.bottom||s+(t.height||e),this.width=t.width||i,this.lineHeight=void 0!==n?n:t.lineHeight,o&&!this.lineHeight&&(this.lineHeight=13)}function zt(t,e,a,l){var i,s=new f(e),n=e.cue,o=function(t){if("number"==typeof t.line&&(t.snapToLines||0<=t.line&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,i=e.textTrackList,s=0,n=0;n<i.length&&i[n]!==e;n++)"showing"===i[n].mode&&s++;return-1*++s}(n),r=[];if(n.snapToLines){switch(n.vertical){case"":r=["+y","-y"],i="height";break;case"rl":r=["+x","-x"],i="width";break;case"lr":r=["-x","+x"],i="width"}var h=s.lineHeight,c=h*Math.round(o),u=a[i]+h,d=r[0];Math.abs(c)>u&&(c=c<0?-1:1,c*=Math.ceil(u/h)*h),o<0&&(c+=""===n.vertical?a.height:a.width,r=r.reverse()),s.move(d,c)}else{var p=s.lineHeight/a.height*100;switch(n.lineAlign){case"middle":o-=p/2;break;case"end":o-=p}switch(n.vertical){case"":e.applyStyles({top:e.formatStyle(o,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(o,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(o,"%")})}r=["+y","-x","+x","-y"],s=new f(e)}u=function(t,e){for(var i,s=new f(t),n=1,o=0;o<e.length;o++){for(;t.overlapsOppositeAxis(a,e[o])||t.within(a)&&t.overlapsAny(l);)t.move(e[o]);if(t.within(a))return t;var r=t.intersectPercentage(a);r<n&&(i=new f(t),n=r),t=new f(s)}return i||s}(s,r);
1e.move(u.toCSSCompatValues(a))}function Bt(){}function Wt(t){return"string"==typeof t&&!!vs[t.toLowerCase()]&&t.toLowerCase()}function b(t){for(var e=1;e<arguments.length;e++){var i,s=arguments[e];for(i in s)t[i]=s[i]}return t}function Vt(t,e,i){var s=this,n=/MSIE\s8\.0/.test(navigator.userAgent),o={},r=(n?s=document.createElement("custom"):o.enumerable=!0,s.hasBeenReset=!1,""),a=!1,l=t,h=e,c=i,u=null,d="",p=!0,f="auto",g="start",m=50,v="middle",y=50,_="middle";if(Object.defineProperty(s,"id",b({},o,{get:function(){return r},set:function(t){r=""+t}})),Object.defineProperty(s,"pauseOnExit",b({},o,{get:function(){return a},set:function(t){a=!!t}})),Object.defineProperty(s,"startTime",b({},o,{get:function(){return l},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");l=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",b({},o,{get:function(){return h},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");h=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",b({},o,{get:function(){return c},set:function(t){c=""+t,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",b({},o,{get:function(){return u},set:function(t){u=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",b({},o,{get:function(){return d},set:function(t){t="string"==typeof(t=t)&&!!ms[t.toLowerCase()]&&t.toLowerCase();if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");d=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",b({},o,{get:function(){return p},set:function(t){p=!!t,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",b({},o,{get:function(){return f},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("An invalid number or illegal string was specified.");f=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",b({},o,{get:function(){return g},set:function(t){t=Wt(t);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");g=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",b({},o,{get:function(){return m},set:function(t){if(t<0||100<t)throw new Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",b({},o,{get:function(){return v},set:function(t){t=Wt(t);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",b({},o,{get:function(){return y},set:function(t){if(t<0||100<t)throw new Error("Size must be between 0 and 100.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",b({},o,{get:function(){return _},set:function(t){t=Wt(t);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");_=t,this.hasBeenReset=!0}})),s.displayState=void 0,n)return s}function Ut(t){return"number"==typeof t&&0<=t&&t<=100}function Yt(t,e,i){t.setTimeout(function(){return function i(){var s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2],o=arguments[3],r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:[],a=5<arguments.length&&void 0!==arguments[5]&&arguments[5],e=t[0],l=t.slice(1);{var h;"string"==typeof e?i(s,Cs[e],n,o,r,a):e?(h=e(o)).setSource(c({},s),function(t,e){if(t)return i(s,l,n,o,r,a);r.push(h),i(e,s.type===e.type?l:Cs[e.type],n,o,r,a)}):l.length?i(s,l,n,o,r,a):a?n(s,r):i(s,Cs["*"],n,o,r,!0)}}(e,Cs[e.type],i,t)},1)}function qt(i){return function(t,e){return e[i]?e[i](t):t}}function Kt(t,e){return"rgba("+parseInt(t[1]+t[1],16)+","+parseInt(t[2]+t[2],16)+","+parseInt(t[3]+t[3],16)+","+e+")"}function Xt(t,e,i){try{t.style[e]=i}catch(t){return}}function Gt(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,i=(t=t<0?0:t,Math.floor(t%60)),s=Math.floor(t/60%60),n=Math.floor(t/3600),o=Math.floor(e/60%60),e=Math.floor(e/3600);return(n=0<(n=!isNaN(t)&&t!==1/0?n:s=i="-")||0<e?n+":":"")+(s=((n||10<=o)&&s<10?"0"+s:s)+":")+(i=i<10?"0"+i:i)}function Qt(t,e){if((t=e?e(t):t)&&"none"!==t)return t}function r(t,e,i){var s=void 0;if("string"==typeof t){var n=r.getPlayers();if(n[t=0===t.indexOf("#")?t.slice(1):t])return e&&_.warn('Player "'+t+'" is already initialised. Options will not be applied.'),i&&n[t].ready(i),n[t];s=ke("#"+t)}else s=t;if(!s||!s.nodeName)throw new TypeError("The element or ID supplied is not val
1id. (videojs)");if(s.player||M.players[s.playerId])return s.player||M.players[s.playerId];e=e||{},r.hooks("beforesetup").forEach(function(t){t=t(s,d(e));!L(t)||Array.isArray(t)?_.error("please return an object in beforesetup hooks"):e=d(e,t)});var o=new(h.getComponent("Player"))(s,e,i);return r.hooks("setup").forEach(function(t){return t(o)}),o}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function t(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function g(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function Jt(t,e){return t.raw=e,t}function Zt(t){return L(t)?Object.keys(t):[]}function te(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!!de&&de<11,s=ye.levels[_e],n=new RegExp("^("+s+")$"),o=("log"!==t&&e.unshift(t.toUpperCase()+":"),be&&be.push([].concat(e)),e.unshift("VIDEOJS:"),m.console&&m.console[t]);o&&s&&n.test(t)&&(i&&(e=e.map(function(e){if(L(e)||Array.isArray(e))try{return JSON.stringify(e)}catch(t){return String(e)}return String(e)}).join(" ")),o.apply?o[Array.isArray(e)?"apply":"call"](m.console,e):o(e))}function ee(t){for(var e="",i=0;i<arguments.length;i++)e+=t[i].replace(/\n\r?\s*/g,"")+(arguments[i+1]||"");return e}var i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},m="undefined"!=typeof window?window:i,ie={},s=(Object.freeze||Object)({default:ie}),v=("undefined"!=typeof document?o=document:(o=i["__GLOBAL_DOCUMENT_CACHE@4"])||(o=i["__GLOBAL_DOCUMENT_CACHE@4"]=s&&ie),o),n=m.navigator&&m.navigator.userAgent||"",i=/AppleWebKit\/([\d.]+)/i.exec(n),s=i?parseFloat(i.pop()):null,ie=/iPad/i.test(n),se=/iPhone/i.test(n)&&!ie,o=/iPod/i.test(n),ne=se||ie||o,i=(i=n.match(/OS (\d+)_/i))&&i[1]?i[1]:null,oe=/Android/i.test(n),re=function(){var t=n.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&&parseFloat(t[1]),i=t[2]&&parseFloat(t[2]);return e&&i?parseFloat(t[1]+"."+t[2]):e||null}(),ae=oe&&/webkit/i.test(n)&&re<2.3,le=oe&&re<5&&s<537,he=/Firefox/i.test(n),s=/Edge/i.test(n),ce=!s&&/Chrome/i.test(n),ue=(a=n.match(/Chrome\/(\d+)/))&&a[1]?parseFloat(a[1]):null,y=/MSIE\s8\.0/.test(n),de=a=!(a=(a=/MSIE\s(\d+)\.\d/.exec(n))&&parseFloat(a[1]))&&/Trident\/7.0/i.test(n)&&/rv:11.0/.test(n)?11:a,a=/Safari/i.test(n)&&!ce&&!oe&&!s,pe=a||ne,fe=W()&&("ontouchstart"in m||m.DocumentTouch&&m.document instanceof m.DocumentTouch),ge=W()&&"backgroundSize"in m.document.createElement("video").style,ie=(Object.freeze||Object)({IS_IPAD:ie,IS_IPHONE:se,IS_IPOD:o,IS_IOS:ne,IOS_VERSION:i,IS_ANDROID:oe,ANDROID_VERSION:re,IS_OLD_ANDROID:ae,IS_NATIVE_ANDROID:le,IS_FIREFOX:he,IS_EDGE:s,IS_CHROME:ce,CHROME_VERSION:ue,IS_IE8:y,IE_VERSION:de,IS_SAFARI:a,IS_ANY_SAFARI:pe,TOUCH_ENABLED:fe,BACKGROUND_SIZE_SUPPORTED:ge}),me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ve=Object.prototype.toString,ye=void 0,_e="all",be=[],_=((ye=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];te("log",e)}).levels={all:"log|warn|error",error:"error",off:"",warn:"warn|error",DEFAULT:_e},ye.level=function(t){if("string"==typeof t){if(!ye.levels.hasOwnProperty(t))throw new Error('"'+t+'" in not a valid log level');_e=t}return _e},ye.history=function(){return be?[].concat(be):[]},ye.history.clear=function(){be&&(be.length=0)},ye.history.disable=function(){null!==be&&(be.length=0,be=null)},ye.history.enable=function(){null===be&&(be=[])},ye.error=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return te("error",e)},ye.warn=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return te("warn",e)},ye),we=Jt(["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."]),ke=U("querySelector"),Ce=U("querySelectorAll"),Te=(Object.freeze||Object)({isReal:W,isEl:V,createEl:u,textContent:Y,prependTo:q,hasClass:K,addClass:X,removeClass:G,toggleClass:Q,setAttributes:J,getAttributes:Z,getAttribute:tt,setAttribute:et,removeAttribute:it,blockTextSelection:st,unblockTextSelection:nt,getBoundingClientRect:ot,findPosition:rt,getPointerPosition:at,isTextNode:lt,emptyEl:ht,normalizeContent:ct,appendContent:ut,insertContent:dt,$:ke,$$:Ce}),xe=1,Se={},Ee="vdata"+(new Date).getTime(),$e=!1;try{var De=Object.defineProperty({},"passive",{get:function(){$e=!0}});m.addEventListener("test",null,De)}catch(De){}function Pe(){if(W()){var t=v.getElementsByTagName("video"),e=v.getElementsByTagName("audio"),i=[];if(t&&0<t.length)for(var s=0,n=t.length;s<n;s++)i.push(t[s]);if(e&&0<e.length)for(var o=0,r=e.length;o<r;o++)i.push(e[o]);if(i&&0<i.length)for(var a=0,l=i.length;a<l;a++){var h=i[a];
1if(!h||!h.getAttribute){Ct(1);break}void 0===h.player&&null!==h.getAttribute("data-setup")&&We(h)}else Be||Ct(1)}}function Ie(t){var e=v.createElement("style");return e.className=t,e}function Ae(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e}function Me(e,i){var s=Date.now();return function(){var t=Date.now();i<=t-s&&(e.apply(void 0,arguments),s=t)}}function Oe(){}function Ne(t){if(!t.nodeName&&!Ve(t))throw new Error("Invalid target; must be a DOM node or evented object.")}function je(t){if(!Ue(t))throw new Error("Invalid event type; must be a non-empty string or array.")}function He(t){if("function"!=typeof t)throw new Error("Invalid listener; must be a function.")}function Le(t,e){var i=e.length<3||e[0]===t||e[0]===t.eventBusEl_,s=void 0,n=void 0,o=void 0,o=i?(s=t.eventBusEl_,3<=e.length&&e.shift(),n=e[0],e[1]):(s=e[0],n=e[1],e[2]);return Ne(s),je(n),He(o),{isTargetingSelf:i,target:s,type:n,listener:o=w(t,o)}}function Fe(t,e,i,s){Ne(t),t.nodeName?ze[e](t,i,s):t[e](i,s)}var Re=["touchstart","touchmove"],ze=(Object.freeze||Object)({fixEvent:yt,on:_t,off:bt,trigger:wt,one:kt}),Be=!1,We=void 0,w=(W()&&"complete"===v.readyState?Be=!0:kt(m,"load",function(){Be=!0}),function(t,e,i){e.guid||(e.guid=xe++);function s(){return e.apply(t,arguments)}return s.guid=i?i+"_"+e.guid:e.guid,s}),Ve=(Oe.prototype.allowedEvents_={},Oe.prototype.addEventListener=Oe.prototype.on=function(t,e){var i=this.addEventListener;this.addEventListener=function(){},_t(this,t,e),this.addEventListener=i},Oe.prototype.removeEventListener=Oe.prototype.off=function(t,e){bt(this,t,e)},Oe.prototype.one=function(t,e){var i=this.addEventListener;this.addEventListener=function(){},kt(this,t,e),this.addEventListener=i},Oe.prototype.dispatchEvent=Oe.prototype.trigger=function(t){var e=t.type||t;t=yt(t="string"==typeof t?{type:e}:t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),wt(this,t)},function(e){return e instanceof Oe||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})}),Ue=function(t){return"string"==typeof t&&/\S/.test(t)||Array.isArray(t)&&!!t.length},Ye={on:function(){for(var t=this,e=arguments.length,i=Array(e),s=0;s<e;s++)i[s]=arguments[s];var n,o=Le(this,i),r=o.isTargetingSelf,a=o.target,l=o.type,h=o.listener;Fe(a,"on",l,h),r||((n=function(){return t.off(a,l,h)}).guid=h.guid,(o=function(){return t.off("dispose",n)}).guid=h.guid,Fe(this,"on","dispose",n),Fe(a,"on","dispose",o))},one:function(){for(var n=this,t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var s=Le(this,e),o=s.isTargetingSelf,r=s.target,a=s.type,l=s.listener;o?Fe(r,"one",a,l):((s=function t(){for(var e=arguments.length,i=Array(e),s=0;s<e;s++)i[s]=arguments[s];n.off(r,a,t),l.apply(null,i)}).guid=l.guid,Fe(r,"one",a,s))},off:function(t,e,i){!t||Ue(t)?bt(this.eventBusEl_,t,e):(e=e,Ne(t=t),je(e),He(i),i=w(this,i),this.off("dispose",i),t.nodeName?(bt(t,e,i),bt(t,"dispose",i)):Ve(t)&&(t.off(e,i),t.off("dispose",i)))},trigger:function(t,e){return wt(this.eventBusEl_,t,e)}},qe={state:{},setState:function(t){var i=this,s=("function"==typeof t&&(t=t()),void 0);return H(t,function(t,e){i.state[e]!==t&&((s=s||{})[e]={from:i.state[e],to:t}),i.state[e]=t}),s&&Ve(this)&&this.trigger({changes:s,type:"statechanged"}),s}},h=(k.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;0<=t;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),gt(this.el_),this.el_=null)},k.prototype.player=function(){return this.player_},k.prototype.options=function(t){return _.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t&&(this.options_=d(this.options_,t)),this.options_},k.prototype.el=function(){return this.el_},k.prototype.createEl=function(t,e,i){return u(t,e,i)},k.prototype.localize=function(t,i){var e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:t,s=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages(),o=n&&n[s],s=s&&s.split("-")[0],n=n&&n[s],s=e;return o&&o[t]?s=o[t]:n&&n[t]&&(s=n[t]),s=i?s.replace(/\{(\d+)\}/g,function(t,e){e=i[e-1];return void 0===e?t:e}):s},k.prototype.contentEl=function(){return this.contentEl_||this.el_},k.prototype.id=function(){return this.id_},k.prototype.name=function(){return this.name_},k.prototype.children=function(){return this.children_},k.prototype.getChildById=function(t){return this.childIndex_[t]},k.prototype.getChild=function(t){if(t)return t=l(t),this.childNameIndex_[t]},k.prototype.addChild=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:this.children_.length,s=void 0,n=void 0;if("string"==typeof t){var n=l(t),o=e.componentClass||n,r=(e.name=n,k.getComponent(o));if(!r)throw new Error("Component "+o+" does not exist");if("function"!=typeof r)return null;s=new r(this.player_||this,e)}else s=t;return this.children_.splice(i,0,s),"function"==typeof s.id&&(this.childIndex_[s.id()]=s),(n=n||s.name&&l(s.name()))&&(this.childNameIndex_[n]=s),"function"==typeof s.el&&s.el()&&(o=this.contentEl().children[i]||null,this.contentEl().insertBefore(s.el(),o)),s},k.prototype.removeChild=function(t){if((t="string"==typeof t?this.getChild(t):t)&&this.children_){for(var e,i=!1,s=this.children_.length-1;0<=s;s--)if(this.children_[s]===t){i=!0,this.children_.splice(s,1);break}i&&(this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null,(e=t.el())&&e.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el()))}},k.prototype.initChildren=function(){var i,e,t,s=this,n=this.options_.children;n&&(i=this.options_,t=void 0,e=k.getComponent("Tech"),(t=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(e){return!t.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(t){var e=void 0,i=void 0,i="string"==typeof t?n[e=t]||s.options_[e]||{}:(e=t.name,t);return{name:e,opts:i}}).filter(function(t){t=k.getComponent(t.opts.componentClass||l(t.name));return t&&!e.isTech(t)}
1).forEach(function(t){var e=t.name,t=t.opts;!1!==(t=void 0!==i[e]?i[e]:t)&&((t=!0===t?{}:t).playerOptions=s.options_.playerOptions,(t=s.addChild(e,t))&&(s[e]=t))}))},k.prototype.buildCSSClass=function(){return""},k.prototype.ready=function(t){t&&(this.isReady_?1<arguments.length&&void 0!==arguments[1]&&arguments[1]?t.call(this):this.setTimeout(t,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(t)))},k.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&0<t.length&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},k.prototype.$=function(t,e){return ke(t,e||this.contentEl())},k.prototype.$$=function(t,e){return Ce(t,e||this.contentEl())},k.prototype.hasClass=function(t){return K(this.el_,t)},k.prototype.addClass=function(t){X(this.el_,t)},k.prototype.removeClass=function(t){G(this.el_,t)},k.prototype.toggleClass=function(t,e){Q(this.el_,t,e)},k.prototype.show=function(){this.removeClass("vjs-hidden")},k.prototype.hide=function(){this.addClass("vjs-hidden")},k.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},k.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},k.prototype.getAttribute=function(t){return tt(this.el_,t)},k.prototype.setAttribute=function(t,e){et(this.el_,t,e)},k.prototype.removeAttribute=function(t){it(this.el_,t)},k.prototype.width=function(t,e){return this.dimension("width",t,e)},k.prototype.height=function(t,e){return this.dimension("height",t,e)},k.prototype.dimensions=function(t,e){this.width(t,!0),this.height(e)},k.prototype.dimension=function(t,e,i){if(void 0!==e)return-1!==(""+(e=null!==e&&e==e?e:0)).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;e=this.el_.style[t],i=e.indexOf("px");return-1!==i?parseInt(e.slice(0,i),10):parseInt(this.el_["offset"+l(t)],10)},k.prototype.currentDimension=function(t){var e,i=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");return"function"==typeof m.getComputedStyle&&(i=(e=m.getComputedStyle(this.el_)).getPropertyValue(t)||e[t]),0===(i=parseFloat(i))&&(e="offset"+l(t),i=this.el_[e]),i},k.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},k.prototype.currentWidth=function(){return this.currentDimension("width")},k.prototype.currentHeight=function(){return this.currentDimension("height")},k.prototype.focus=function(){this.el_.focus()},k.prototype.blur=function(){this.el_.blur()},k.prototype.emitTapEvents=function(){function t(){s=!1}var e=0,i=null,s=void 0;this.on("touchstart",function(t){1===t.touches.length&&(i={pageX:t.touches[0].pageX,pageY:t.touches[0].pageY},e=(new Date).getTime(),s=!0)}),this.on("touchmove",function(t){var e;1<t.touches.length?s=!1:i&&(e=t.touches[0].pageX-i.pageX,t=t.touches[0].pageY-i.pageY,10<Math.sqrt(e*e+t*t)&&(s=!1))});this.on("touchleave",t),this.on("touchcancel",t),this.on("touchend",function(t){!(i=null)!==s||(new Date).getTime()-e<200&&(t.preventDefault(),this.trigger("tap"))})}
1,k.prototype.enableTouchActivity=function(){var e,i,t;this.player()&&this.player().reportUserActivity&&(e=w(this.player(),this.player().reportUserActivity),i=void 0,this.on("touchstart",function(){e(),this.clearInterval(i),i=this.setInterval(e,250)}),t=function(t){e(),this.clearInterval(i)},this.on("touchmove",e),this.on("touchend",t),this.on("touchcancel",t))},k.prototype.setTimeout=function(t,e){t=w(this,t);function i(){this.clearTimeout(s)}var s=m.setTimeout(t,e);return i.guid="vjs-timeout-"+s,this.on("dispose",i),s},k.prototype.clearTimeout=function(t){m.clearTimeout(t);function e(){}return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},k.prototype.setInterval=function(t,e){t=w(this,t);function i(){this.clearInterval(s)}var s=m.setInterval(t,e);return i.guid="vjs-interval-"+s,this.on("dispose",i),s},k.prototype.clearInterval=function(t){m.clearInterval(t);function e(){}return e.guid="vjs-interval-"+t,this.off("dispose",e),t},k.prototype.requestAnimationFrame=function(t){var e,i,s=this;return this.supportsRaf_?(t=w(this,t),e=m.requestAnimationFrame(t),(i=function(){return s.cancelAnimationFrame(e)}).guid="vjs-raf-"+e,this.on("dispose",i),e):this.setTimeout(t,1e3/60)},k.prototype.cancelAnimationFrame=function(t){var e;return this.supportsRaf_?(m.cancelAnimationFrame(t),(e=function(){}).guid="vjs-raf-"+t,this.off("dispose",e),t):this.clearTimeout(t)},k.registerComponent=function(t,e){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var i=k.getComponent("Tech"),i=i&&i.isTech(e),s=k===e||k.prototype.isPrototypeOf(e.prototype);if(i||!s)throw new Error('Illegal component, "'+t+'"; '+(i?"techs must be registered using Tech.registerTech()":"must be a Component subclass")+".");t=l(t),k.components_||(k.components_={});s=k.getComponent("Player");if("Player"===t&&s&&s.players){var n=s.players,i=Object.keys(n);if(n&&0<i.length&&i.map(function(t){return n[t]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return k.components_[t]=e},k.getComponent=function(t){if(t)return t=l(t),k.components_&&k.components_[t]?k.components_[t]:void 0},k);function k(t,e,i){p(this,k),!t&&this.play?this.player_=t=this:this.player_=t,this.options_=d({},this.options_),e=this.options_=d(this.options_,e),this.id_=e.id||e.el&&e.el.id,this.id_||(t=t&&t.id&&t.id()||"no_player",this.id_=t+"_component_"+xe++),this.name_=e.name||null,e.el?this.el_=e.el:!1!==e.createEl&&(this.el_=this.createEl()),Tt(this,{eventBusKey:this.el_?"el_":null}),xt(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},!(this.childNameIndex_={})!==e.initChildren&&this.initChildren(),this.ready(i),!1!==e.reportTouchActivity&&this.enableTouchActivity()}h.prototype.supportsRaf_="function"==typeof m.requestAnimationFrame&&"function"==typeof m.cancelAnimationFrame,h.registerComponent("Component",h);for(var Ke={},Xe=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Ge=Xe[0],Qe=void 0,Je=0;Je<Xe.length;Je++)if(Xe[Je][1]in v){Qe=Xe[Je];break}if(Qe)for(var Ze=0;Ze<Qe.length;Ze++)Ke[Ge[Ze]]=Qe[Ze];e.prototype.code=0,e.prototype.message="",e.prototype.status=null,e.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],e.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var ti=0;ti<e.errorTypes.length;ti++)e[e.errorTypes[ti]]=ti,e.prototype[e.errorTypes[ti]]=ti;function ei(s){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,e,
1i){return s[e]&&(t[e]=s[e]),t},{cues:s.cues&&Array.prototype.map.call(s.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})}var ii,si=function(t,e){var i,s=null;try{i=JSON.parse(t,e)}catch(t){s=t}return[s,i]},ni=function(t){var e=t.$$("track"),i=Array.prototype.map.call(e,function(t){return t.track});return Array.prototype.map.call(e,function(t){var e=ei(t.track);return t.src&&(e.src=t.src),e}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return-1===i.indexOf(t)}).map(ei))},oi=function(t,i){return t.forEach(function(t){var e=i.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach(function(t){return e.addCue(t)})}),i.textTracks()},ri="vjs-modal-dialog",ai=(t(C,ii=h),C.prototype.createEl=function(){return ii.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},C.prototype.buildCSSClass=function(){return ri+" vjs-hidden "+ii.prototype.buildCSSClass.call(this)},C.prototype.handleKeyPress=function(t){27===t.which&&this.closeable()&&this.close()},C.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},C.prototype.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},C.prototype.open=function(){var t;this.opened_||(t=this.player(),this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&t.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",w(this,this.handleKeyPress)),t.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0)},C.prototype.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},C.prototype.close=function(){var t;this.opened_&&(t=this.player(),this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&t.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",w(this,this.handleKeyPress)),t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose())},C.prototype.closeable=function(t){var e,i;return"boolean"==typeof t&&(t=this.closeable_=!!t,e=this.getChild("closeButton"),t&&!e&&(i=this.contentEl_,this.contentEl_=this.el_,e=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=i,this.on(e,"close",this.close)),!t&&e&&(this.off(e,"close",this.close),this.removeChild(e),e.dispose())),this.closeable_},C.prototype.fill=function(){this.fillWith(this.content())},C.prototype.fillWith=function(t){var e=this.contentEl(),i=e.parentNode,s=e.nextSibling,t=(this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(e),this.empty(),dt(e,t),this.trigger("modalfill"),s?i.insertBefore(e,s):i.appendChild(e),this.getChild("closeButton"));t&&i.appendChild(t.el_)},C.prototype.empty=function(){this.trigger("beforemodalempty"),ht(this.contentEl()),this.trigger("modalempty")},C.prototype.content=function(t){return void 0!==t&&(this.content_=t),this.content_},C.prototype.conditionalFocus_=function(){var t=v.activeElement,e=this.player_.el_;this.previouslyActiveEl_=null,!e.contains(t)&&e!==t||(this.previouslyActiveEl_=t,this.focus(),this.on(v,"keydown",this.handleKeyDown))},C.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(v,"keydown",this.handleKeyDown)},C.prototype.handleKeyDown=function(t){if(9===t.which){for(var e=this.focusableEls_(),i=this.el_.querySelector(":focus"),s=void 0,n=0;n<e.length;n++)if(i===e[n]){s=n;break}v.activeElement===this.el_&&(s=0),t.shiftKey&&0===s?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||s!==e.length-1||(e[0].focus(),t.preventDefault())}}
1,C.prototype.focusableEls_=function(){var t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,function(t){return(t instanceof m.HTMLAnchorElement||t instanceof m.HTMLAreaElement)&&t.hasAttribute("href")||(t instanceof m.HTMLInputElement||t instanceof m.HTMLSelectElement||t instanceof m.HTMLTextAreaElement||t instanceof m.HTMLButtonElement)&&!t.hasAttribute("disabled")||t instanceof m.HTMLIFrameElement||t instanceof m.HTMLObjectElement||t instanceof m.HTMLEmbedElement||t.hasAttribute("tabindex")&&-1!==t.getAttribute("tabindex")||t.hasAttribute("contenteditable")})},C);function C(t,e){p(this,C);t=g(this,ii.call(this,t,e));return t.opened_=t.hasBeenOpened_=t.hasBeenFilled_=!1,t.closeable(!t.options_.uncloseable),t.content(t.options_.content),t.contentEl_=u("div",{className:ri+"-content"},{role:"document"}),t.descEl_=u("p",{className:ri+"-description vjs-control-text",id:t.el().getAttribute("aria-describedby")}),Y(t.descEl_,t.description()),t.el_.appendChild(t.descEl_),t.el_.appendChild(t.contentEl_),t}ai.prototype.options_={pauseOnOpen:!0,temporary:!0},h.registerComponent("ModalDialog",ai);t(ui,li=Oe),ui.prototype.addTrack=function(t){var e=this.tracks_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.tracks_[e]}}),-1===this.tracks_.indexOf(t)&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack"}))},ui.prototype.removeTrack=function(t){for(var e=void 0,i=0,s=this.length;i<s;i++)if(this[i]===t){(e=this[i]).off&&e.off(),this.tracks_.splice(i,1);break}e&&this.trigger({track:e,type:"removetrack"})},ui.prototype.getTrackById=function(t){for(var e=null,i=0,s=this.length;i<s;i++){var n=this[i];if(n.id===t){e=n;break}}return e};var li,hi,ci=ui;function ui(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,i=(p(this,ui),g(this,li.call(this)));if(!e&&(e=i,y))for(var s in e=v.createElement("custom"),ui.prototype)"constructor"!==s&&(e[s]=ui.prototype[s]);e.tracks_=[],Object.defineProperty(e,"length",{get:function(){return this.tracks_.length}});for(var n=0;n<t.length;n++)e.addTrack(t[n]);return g(i,e)}for(hi in ci.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},ci.prototype.allowedEvents_)ci.prototype["on"+hi]=null;function di(t,e){for(var i=0;i<t.length;i++)Object.keys(t[i]).length&&e.id!==t[i].id&&(t[i].enabled=!1)}function pi(t,e){for(var i=0;i<t.length;i++)Object.keys(t[i]).length&&e.id!==t[i].id&&(t[i].selected=!1)}function fi(t){var e=["protocol","hostname","port","pathname","search","hash","host"],i=v.createElement("a"),s=(i.href=t,""===i.host&&"file:"!==i.protocol),n=void 0;s&&((n=v.createElement("div")).innerHTML='<a href="'+t+'"></a>',i=n.firstChild,n.setAttribute("style","display:none; position:absolute;"),v.body.appendChild(n));for(var o={},r=0;r<e.length;r++)o[e[r]]=i[e[r]];return"http:"===o.protocol&&(o.host=o.host.replace(/:80$/,"")),"https:"===o.protocol&&(o.host=o.host.replace(/:443$/,"")),s&&v.body.removeChild(n),o}function gi(t){if("string"==typeof t){t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(t)return t.pop().toLowerCase()}return""}t(Wi,_i=ci),Wi.prototype.addTrack=function(t){var e=this;t.enabled&&di(this,t),_i.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",function(){e.changing_||(e.changing_=!0,di(e,t),e.changing_=!1,e.trigger("change"))})};var mi,vi,yi,_i,o=Wi,i=(t(Bi,yi=ci),Bi.prototype.addTrack=function(t){var e=this;t.selected&&pi(this,t),yi.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("selectedchange",function(){e.changing_||(e.changing_=!0,pi(e,t),e.changing_=!1,e.trigger("change"))})},Bi),s=(t(zi,vi=ci),zi.prototype.addTrack=function(t){vi.prototype.addTrack.call(this,t),t.addEventListener("modechange",w(this,function(){this.trigger("change")})),-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",w(this,function(){this.trigger("selectedlanguagechange")}))},zi),a=(Ri.prototype.addTrackElement_=function(t){var e=this.trackElements_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.trackElements_[e]}}
1),-1===this.trackElements_.indexOf(t)&&this.trackElements_.push(t)},Ri.prototype.getTrackElementByTrack_=function(t){for(var e=void 0,i=0,s=this.trackElements_.length;i<s;i++)if(t===this.trackElements_[i].track){e=this.trackElements_[i];break}return e},Ri.prototype.removeTrackElement_=function(t){for(var e=0,i=this.trackElements_.length;e<i;e++)if(t===this.trackElements_[e]){this.trackElements_.splice(e,1);break}},Ri),bi=(Fi.prototype.setCues_=function(t){function e(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})}var i=this.length||0,s=0,n=t.length;this.cues_=t,this.length_=t.length;if(i<n)for(s=i;s<n;s++)e.call(this,s)},Fi.prototype.getCueById=function(t){for(var e=null,i=0,s=this.length;i<s;i++){var n=this[i];if(n.id===t){e=n;break}}return e},Fi),wi={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},ki={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Ci={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Ti={disabled:"disabled",hidden:"hidden",showing:"showing"},xi=(t(Li,mi=Oe),Li),Si=function(t){var e=m.location,t=fi(t);return(":"===t.protocol?e:t).protocol+t.host!==e.protocol+e.host},Ei=(Object.freeze||Object)({parseUrl:fi,getAbsoluteURL:function(t){var e;return t.match(/^https?:\/\//)||((e=v.createElement("div")).innerHTML='<a href="'+t+'">x</a>',t=e.firstChild.href),t},getFileExtension:gi,isCrossOrigin:Si}),$i=function(t){var e=Di.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)},Di=Object.prototype.toString,Pi=j(function(t,e){(e=t.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},e.right=function(t){return t.replace(/\s*$/,"")}}),Ii=function(t,e,i){if(!$i(e))throw new TypeError("iterator must be a function");arguments.length<3&&(i=this),("[object Array]"===Ai.call(t)?function(t,e,i){for(var s=0,n=t.length;s<n;s++)Mi.call(t,s)&&e.call(i,t[s],s,t)}:"string"==typeof t?function(t,e,i){for(var s=0,n=t.length;s<n;s++)e.call(i,t.charAt(s),s,t)}:function(t,e,i){for(var s in t)Mi.call(t,s)&&e.call(i,t[s],s,t)})(t,e,i)},Ai=Object.prototype.toString,Mi=Object.prototype.hasOwnProperty,Oi=function(t){if(!t)return{};var s={};return Ii(Pi(t).split("\n"),function(t){var e=t.indexOf(":"),i=Pi(t.slice(0,e)).toLowerCase(),t=Pi(t.slice(e+1));void 0===s[i]?s[i]=t:(e=s[i],"[object Array]"===Object.prototype.toString.call(e)?s[i].push(t):s[i]=[s[i],t])}),s},Ni=function(){for(var t={},e=0;e<arguments.length;e++){var i,s=arguments[e];for(i in s)ji.call(s,i)&&(t[i]=s[i])}return t},ji=Object.prototype.hasOwnProperty,Hi=It;function Li(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=(p(this,Li),g(this,mi.call(this))),i=e;if(y)for(var s in i=v.createElement("custom"),Li.prototype)"constructor"!==s&&(i[s]=Li.prototype[s]);var n,o={id:t.id||"vjs_track_"+xe++,kind:t.kind||"",label:t.label||"",language:t.language||""};for(n in o)!function(t){Object.defineProperty(i,t,{get:function(){return o[t]},set:function(){}})}(n);return g(e,i)}function Fi(t){p(this,Fi);var e=this;if(y)for(var i in e=v.createElement("custom"),Fi.prototype)"constructor"!==i&&(e[i]=Fi.prototype[i]);if(Fi.prototype.setCues_.call(e,t),Object.defineProperty(e,"length",{get:function(){return this.length_}}),y)return e}function Ri(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=(p(this,Ri),this);if(y)for(var i in e=v.createElement("custom"),Ri.prototype)"constructor"!==i&&(e[i]=Ri.prototype[i]);e.trackElements_=[],Object.defineProperty(e,"length",{get:function(){return this.trackElements_.length}});for(var s=0,n=t.length;s<n;s++)e.addTrackElement_(t[s]);if(y)return e}function zi(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=(p(this,zi),void 0);if(y){for(var i in e=v.createElement("custom"),ci.prototype)"constructor"!==i&&(e[i]=ci.prototype[i]);for(var s in zi.prototype)"constructor"!==s&&(e[s]=zi.prototype[s])}return e=t=g(this,vi.call(this,t,e)),g(t,e)}function Bi(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];p(this,Bi);for(var i=void 0,s=e.length-1;0<=s;s--)if(e[s].selected){pi(e,e[s]);break}if(y){for(var n in i=v.createElement("custom"),ci.prototype)"constructor"!==n&&(i[n]=ci.prototype[n]);for(var o in Bi.prototype)"constructor"!==o&&(i[o]=Bi.prototype[o])}return(i=t=g(this,yi.call(this,e,i))).changing_=!1,Object.defineProperty(i,"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),g(t,i)}function Wi(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];p(this,Wi);for(var i=void 0,s=e.length-1;0<=s;s--)if(e[s].enabled){di(e,e[s]);break}if(y){for(var n in i=v.createElement("custom"),ci.prototype)"constructor"!==n&&(i[n]=ci.prototype[n]);for(var o in Wi.prototype)"constructor"!==o&&(i[o]=Wi.prototype[o])}return(i=t=g(this,_i.call(this,e,i))).changing_=!1,g(t,i)}It.XMLHttpRequest=m.XMLHttpRequest||function(){},It.XDomainRequest="withCredentials"in new It.XMLHttpRequest?It.XMLHttpRequest:m.XDomainRequest;for(var Vi=["get","put","post","patch","head","delete"],Ui=0;Ui<Vi.length;
1Ui++)!function(s){It["delete"===s?"del":s]=function(t,e,i){return e=Pt(t,e,i),e.method=s.toUpperCase(),At(e)}}(Vi[Ui]);var Yi,qi=function(t,e){var i=new m.WebVTT.Parser(m,m.vttjs,m.WebVTT.StringDecoder()),s=[];i.oncue=function(t){e.addCue(t)},i.onparsingerror=function(t){s.push(t)},i.onflush=function(){e.trigger({type:"loadeddata",target:e})},i.parse(t),0<s.length&&(m.console&&m.console.groupCollapsed&&m.console.groupCollapsed("Text Track parsing errors for "+e.src),s.forEach(function(t){return _.error(t)}),m.console&&m.console.groupEnd&&m.console.groupEnd()),i.flush()},Ki=(t(Xi,Yi=xi),Xi.prototype.addCue=function(t){var e=t;if(m.vttjs&&!(t instanceof m.vttjs.VTTCue)){for(var i in e=new m.vttjs.VTTCue(t.startTime,t.endTime,t.text),t)i in e||(e[i]=t[i]);e.id=t.id,e.originalCue_=t}for(var s=this.tech_.textTracks(),n=0;n<s.length;n++)s[n]!==this&&s[n].removeCue(e);this.cues_.push(e),this.cues.setCues_(this.cues_)},Xi.prototype.removeCue=function(t){for(var e=this.cues_.length;e--;){var i=this.cues_[e];if(i===t||i.originalCue_&&i.originalCue_===t){this.cues_.splice(e,1),this.cues.setCues_(this.cues_);break}}},Xi);function Xi(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(p(this,Xi),!e.tech)throw new Error("A tech was not provided.");var e=d(e,{kind:Ci[e.kind]||"subtitles",language:e.language||e.srclang||""}),i=Ti[e.mode]||"disabled",s=e.default,n=("metadata"!==e.kind&&"chapters"!==e.kind||(i="hidden"),t=g(this,Yi.call(this,e)));if(n.tech_=e.tech,y)for(var o in Xi.prototype)"constructor"!==o&&(n[o]=Xi.prototype[o]);n.cues_=[],n.activeCues_=[];var r=new bi(n.cues_),a=new bi(n.activeCues_),l=!1,h=w(n,function(){this.activeCues,l&&(this.trigger("cuechange"),l=!1)});return"disabled"!==i&&n.tech_.ready(function(){n.tech_.on("timeupdate",h)},!0),Object.defineProperty(n,"default",{get:function(){return s},set:function(){}}),Object.defineProperty(n,"mode",{get:function(){return i},set:function(t){var e=this;Ti[t]&&("showing"===(i=t)&&this.tech_.ready(function(){e.tech_.on("timeupdate",h)},!0),this.trigger("modechange"))}}),Object.defineProperty(n,"cues",{get:function(){return this.loaded_?r:null},set:function(){}}),Object.defineProperty(n,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return a;for(var t=this.tech_.currentTime(),e=[],i=0,s=this.cues.length;i<s;i++){var n=this.cues[i];(n.startTime<=t&&n.endTime>=t||n.startTime===n.endTime&&n.startTime<=t&&n.startTime+.5>=t)&&e.push(n)}if(l=!1,e.length!==this.activeCues_.length)l=!0;else for(var o=0;o<e.length;o++)-1===this.activeCues_.indexOf(e[o])&&(l=!0);return this.activeCues_=e,a.setCues_(this.activeCues_),a},set:function(){}}),e.src?(n.src=e.src,function(t,n){var e={uri:t},t=Si(t);t&&(e.cors=t),Hi(e,w(this,function(t,e,i){if(t)return _.error(t,e);var s;n.loaded_=!0,"function"!=typeof m.WebVTT?n.tech_&&(n.tech_.on("vttjsloaded",s=function(){return qi(i,n)}),n.tech_.on("vttjserror",function(){_.error("vttjs failed to load, stopping trying to process "+n.src),n.tech_.off("vttjsloaded",s)})):qi(i,n)}))}(e.src,n)):n.loaded_=!0,g(t,n)}Ki.prototype.allowedEvents_={cuechange:"cuechange"};t(is,Ji=xi);var Gi,Qi,Ji,Zi=is,xi=(t(es,Qi=xi),es),T=(t(ts,Gi=Oe),ts);function ts(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=(p(this,ts),g(this,Gi.call(this))),i=void 0,s=e;if(y)for(var n in s=v.createElement("custom"),ts.prototype)"constructor"!==n&&(s[n]=ts.prototype[n]);var o=new Ki(t);return s.kind=o.kind,s.src=o.src,s.srclang=o.language,s.label=o.label,s.default=o.default,Object.defineProperty(s,"readyState",{get:function(){return i}}),Object.defineProperty(s,"track",{get:function(){return o}}),i=0,o.addEventListener("loadeddata",function(){i=2,s.trigger({type:"load",target:s})}),y?g(e,s):e}function es(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=(p(this,es),d(e,{kind:wi[e.kind]||""})),i=t=g(this,Qi.call(this,e)),s=!1;if(y)for(var n in es.prototype)"constructor"!==n&&(i[n]=es.prototype[n]);return Object.defineProperty(i,"selected",{get:function(){return s},set:function(t){"boolean"==typeof t&&t!==s&&(s=t,this.trigger("selectedchange"))}}),e.selected&&(i.selected=e.selected),g(t,i)}function is(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=(p(this,is),d(e,{kind:ki[e.kind]||""})),i=t=g(this,Ji.call(this,e)),s=!1;if(y)for(var n in is.prototype)"constructor"!==n&&(i[n]=is.prototype[n]);return Object.defineProperty(i,"enabled",{get:function(){return s},set:function(t){"boolean"==typeof t&&t!==s&&(s=t,this.trigger("enabledchange"))}}),e.enabled&&(i.enabled=e.enabled),i.loaded_=!0,g(t,i)}T.prototype.allowedEvents_={load:"load"},T.NONE=0,T.LOADING=1,T.LOADED=2,T.ERROR=3;
vendor: 2,458 bytes, line 1
1var ss={audio:{ListClass:o,TrackClass:Zi,capitalName:"Audio"},video:{ListClass:i,TrackClass:xi,capitalName:"Video"},text:{ListClass:s,TrackClass:Ki,capitalName:"Text"}},ns=(Object.keys(ss).forEach(function(t){ss[t].getterName=t+"Tracks",ss[t].privateName=t+"Tracks_"}),{remoteText:{ListClass:s,TrackClass:Ki,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:a,TrackClass:T,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}}),os=d(ss,ns),rs=(ns.names=Object.keys(ns),ss.names=Object.keys(ss),os.names=[].concat(ns.names).concat(ss.names),Object.create||function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return as.prototype=t,new as});function as(){}((Mt.prototype=rs(Error.prototype)).constructor=Mt).Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},Nt.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,i){return i?this.has(t)?this.values[t]:e[i]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,i){for(var s=0;s<i.length;++s)if(e===i[s]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(e=parseFloat(e))&&e<=100)&&(this.set(t,e),!0)}};function ls(){var e=100,i=3,s=0,n=100,o=0,r=100,a="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!Ut(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return i},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");i=t}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(t){if(!Ut(t))throw new Error("RegionAnchorX must be between 0 and 100.");n=t}},regionAnchorX:{enumerable:!0,get:function(){return s},set:function(t){if(!Ut(t))throw new Error("RegionAnchorY must be between 0 and 100.");s=t}},viewportAnchorY:{enumerable:!0,get:function(){return r},set:function(t){if(!Ut(t))throw new Error("ViewportAnchorY must be between 0 and 100.");r=t}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!Ut(t))throw new Error("ViewportAnchorX must be between 0 and 100.");o=t}},scroll:{enumerable:!0,get:function(){return a}
vendor: 4,546 bytes, line 1
1,set:function(t){t="string"==typeof(t=t)&&!!_s[t.toLowerCase()]&&t.toLowerCase();if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");a=t}}})}var hs,cs={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},us={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},ds={v:"title",lang:"lang"},ps={rt:"ruby"},fs=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]],gs=(Ft.prototype.applyStyles=function(t,e){for(var i in e=e||this.div,t)t.hasOwnProperty(i)&&(e.style[i]=t[i])},Ft.prototype.formatStyle=function(t,e){return 0===t?0:t+e},(Rt.prototype=rs(Ft.prototype)).constructor=Rt,f.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},f.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},f.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},f.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},f.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},f.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},f.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},f.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,i=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,s=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||s,height:t.height||e,bottom:t.bottom||s+(t.height||e),width:t.width||i}},Bt.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},Bt.convertCueToDOMTree=function(t,e){return t&&e?Ht(t,e):null},Bt.processCues=function(t,e,i){if(!t||!e||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);var s=t.document.createElement("div");if(s.style.position="absolute",s.style.left="0",s.style.right="0",s.style.top="0",s.style.bottom="0",s.style.margin="1.5%",i.appendChild(s),function(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return 1}(e))for(var n,o,r=[],a=f.getSimpleBoxPosition(s),l={font:Math.round(.05*a.height*100)/100+"px sans-serif"},h=0;h<e.length;h++)o=e[h],n=new Rt(t,o,l),s.appendChild(n.div),zt(0,n,a,r),o.displayState=n.div,r.push(f.getSimpleBoxPosition(n));else for(var c=0;c<e.length;c++)s.appendChild(e[c].displayState)}
1,(Bt.Parser=function(t,e,i){i||(i=e,e={}),e=e||{},this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(t){if(!(t instanceof Mt))throw t;this.onparsingerror&&this.onparsingerror(t)},parse:function(t){function e(){for(var t=s.buffer,e=0;e<t.length&&"\r"!==t[e]&&"\n"!==t[e];)++e;var i=t.substr(0,e);return"\r"===t[e]&&++e,"\n"===t[e]&&++e,s.buffer=t.substr(e),i}var i,s=this;t&&(s.buffer+=s.decoder.decode(t,{stream:!0}));try{if("INITIAL"===s.state){if(!/\r\n|\n/.test(s.buffer))return this;var n,o=(n=e()).match(/^WEBVTT([ \t].*)?$/);if(!o||!o[0])throw new Mt(Mt.Errors.BadSignature);s.state="HEADER"}for(var r=!1;s.buffer;){if(!/\r\n|\n/.test(s.buffer))return this;switch(r?r=!1:n=e(),s.state){case"HEADER":/:/.test(n)?(i=n).match(/X-TIMESTAMP-MAP/)?jt(i,function(t,e){var i;"X-TIMESTAMP-MAP"===t&&(t=e,i=new Nt,jt(t,function(t,e){switch(t){case"MPEGT":i.integer(t+"S",e);break;case"LOCA":i.set(t+"L",Ot(e))}},/[^\d]:/,/,/),s.ontimestampmap&&s.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")}))},/=/):jt(i,function(t,e){var n;"Region"===t&&(t=e,n=new Nt,jt(t,function(t,e){switch(t){case"id":n.set(t,e);break;case"width":n.percent(t,e);break;case"lines":n.integer(t,e);break;case"regionanchor":case"viewportanchor":var i=e.split(",");if(2!==i.length)break;var s=new Nt;if(s.percent("x",i[0]),s.percent("y",i[1]),!s.has("x")||!s.has("y"))break;n.set(t+"X",s.get("x")),n.set(t+"Y",s.get("y"));break;case"scroll":n.alt(t,e,["up"])}},/=/,/\s/),n.has("id")&&((t=new(s.vttjs.VTTRegion||s.window.VTTRegion)).width=n.get("width",100),t.lines=n.get("lines",3),t.regionAnchorX=n.get("regionanchorX",0),t.regionAnchorY=n.get("regionanchorY",100),t.viewportAnchorX=n.get("viewportanchorX",0),t.viewportAnchorY=n.get("viewportanchorY",100),t.scroll=n.get("scroll",""),s.onregion&&s.onregion(t),s.regionList.push({id:n.get("id"),region:t})))},/:/):n||(s.state="ID");continue;case"NOTE":n||(s.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(n)){s.state="NOTE";break}if(!n)continue;if(s.cue=new(s.vttjs.VTTCue||s.window.VTTCue)(0,0,""),s.state="CUE",-1===n.indexOf("--\x3e")){s.cue.id=n;continue}case"CUE":try{!function(e,t,o){function i(){var t=Ot(e);if(null===t)throw new Mt(Mt.Errors.BadTimeStamp,"Malformed timestamp: "+a);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function s(){e=e.replace(/^\s+/,"")}var n,r,a=e;if(s(),t.startTime=i(),s(),"--\x3e"!==e.substr(0,3))throw new Mt(Mt.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+a);e=e.substr(3),s(),t.endTime=i(),s(),n=e,t=t,r=new Nt,jt(n,function(t,e){switch(t){case"region":for(var i=o.length-1;0<=i;i--)if(o[i].id===e){r.set(t,o[i].region);break}break;case"vertical":r.alt(t,e,["rl","lr"]);break;case"line":var s=e.split(","),n=s[0];r.integer(t,n),r.percent(t,n)&&r.set("snapToLines",!1),r.alt(t,n,["auto"]),2===s.length&&r.alt("lineAlign",s[1],["start","middle","end"]);break;case"position":s=e.split(","),r.percent(t,s[0]),2===s.length&&r.alt("positionAlign",s[1],["start","middle","end"]);break;case"size":r.percent(t,e);break;case"align":r.alt(t,e,["start","middle","end","left","right"])}},/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical",""),t.line=r.get("line","auto"),t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100),t.align=r.get("align","middle"),t.position=r.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align),t.positionAlign=r.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}(n,s.cue,s.regionList)}catch(t){s.reportOrThrowError(t),s.cue=null,s.state="BADCUE";continue}s.state="CUETEXT";continue;case"CUETEXT":var a=-1!==n.indexOf("--\x3e");if(!n||a&&(r=!0)){s.oncue&&s.oncue(s.cue),s.cue=null,s.state="ID";continue}s.cue.text&&(s.cue.text+="\n"),s.cue.text+=n;continue;case"BADCUE":n||(s.state="ID");continue}}}catch(t){s.reportOrThrowError(t),"CUETEXT"===s.state&&s.cue&&s.oncue&&s.oncue(s.cue),s.cue=null,s.state="INITIAL"===s.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),!e.cue&&"HEADER"!==e.state||(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new Mt(Mt.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},Bt),ms={"":!0,lr:!0,rl:!0},vs={start:!0,middle:!0,end:!0,left:!0,right:!0},ys=(Vt.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},Vt),_s={"":!0,up:!0},bs=j(function(t){var t=t.exports={WebVTT:gs,VTTCue:ys,VTTRegion:ls},e=(m.vttjs=t,m.WebVTT=t.WebVTT,t.VTTCue),i=t.VTTRegion,s=m.VTTCue,n=m.VTTRegion;t.shim=function(){m.VTTCue=e,m.VTTRegion=i},t.restore=function(){m.VTTCue=s,m.VTTRegion=n},m.VTTCue||t.shim()}),x=(t(S,hs=h),S.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},S.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},S.prototype.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(w(this,function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),1===(this.bufferedPercent_=t)&&this.stopTrackingProgress()}),500)},S.prototype.onDurationChange=function(t){this.duration_=this.duration()},S.prototype.buffered=function(){return $t(0,0)},S.prototype.bufferedPercent=function(){return Dt(this.buffered(),this.duration_)},S.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},S.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},S.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},S.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},S.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},S.prototype.dispose=function(){this.clearTracks(ss.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),hs.prototype.dispose.call(this)},S.prototype.clearTracks=function(t){var n=this;
1(t=[].concat(t)).forEach(function(t){for(var e=n[t+"Tracks"]()||[],i=e.length;i--;){var s=e[i];"text"===t&&n.removeRemoteTextTrack(s),e.removeTrack(s)}})},S.prototype.cleanupAutoTextTracks=function(){for(var t=this.autoRemoteTextTracks_||[],e=t.length;e--;){var i=t[e];this.removeRemoteTextTrack(i)}},S.prototype.reset=function(){},S.prototype.error=function(t){return void 0!==t&&(this.error_=new e(t),this.trigger("error")),this.error_},S.prototype.played=function(){return this.hasStarted_?$t(0,0):$t()},S.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},S.prototype.initTrackListeners=function(){var n=this;ss.names.forEach(function(t){function e(){n.trigger(t+"trackchange")}var i=ss[t],s=n[i.getterName]();s.addEventListener("removetrack",e),s.addEventListener("addtrack",e),n.on("dispose",function(){s.removeEventListener("removetrack",e),s.removeEventListener("addtrack",e)})})},S.prototype.addWebVttScript_=function(){var t,e=this;m.WebVTT||(v.body.contains(this.el())?!this.options_["vtt.js"]&&F(bs)&&0<Object.keys(bs).length?this.trigger("vttjsloaded"):((t=v.createElement("script")).src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),m.WebVTT=!0,this.el().parentNode.appendChild(t)):this.ready(this.addWebVttScript_))},S.prototype.emulateTextTracks=function(){function e(t){return n.addTrack(t.track)}function i(t){return n.removeTrack(t.track)}function s(){r();for(var t=0;t<n.length;t++){var e=n[t];e.removeEventListener("cuechange",r),"showing"===e.mode&&e.addEventListener("cuechange",r)}}var t=this,n=this.textTracks(),o=this.remoteTextTracks(),r=(o.on("addtrack",e),o.on("removetrack",i),this.addWebVttScript_(),function(){return t.trigger("texttrackchange")});s(),n.addEventListener("change",s),n.addEventListener("addtrack",s),n.addEventListener("removetrack",s),this.on("dispose",function(){o.off("addtrack",e),o.off("removetrack",i),n.removeEventListener("change",s),n.removeEventListener("addtrack",s),n.removeEventListener("removetrack",s);for(var t=0;t<n.length;t++)n[t].removeEventListener("cuechange",r)})},S.prototype.addTextTrack=function(t,e,i){if(t)return function(t,e,i,s,n){var o=4<arguments.length&&void 0!==n?n:{},r=t.textTracks(),o=(o.kind=e,i&&(o.label=i),s&&(o.language=s),o.tech=t,new os.text.TrackClass(o));return r.addTrack(o),o}(this,t,e,i);throw new Error("TextTrack kind is required but was not provided")},S.prototype.createRemoteTextTrack=function(t){t=d(t,{tech:this});return new ns.remoteTextEl.TrackClass(t)},S.prototype.addRemoteTextTrack=function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=arguments[1],s=this.createRemoteTextTrack(e);return!0!==i&&!1!==i&&(_.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),i=!0),this.remoteTextTrackEls().addTrackElement_(s),this.remoteTextTracks().addTrack(s.track),!0!==i&&this.ready(function(){return t.autoRemoteTextTracks_.addTrack(s.track)}),s},S.prototype.removeRemoteTextTrack=function(t){var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack(t),this.autoRemoteTextTracks_.removeTrack(t)},S.prototype.getVideoPlaybackQuality=function(){return{}},S.prototype.setPoster=function(){},S.prototype.playsinline=function(){},S.prototype.setPlaysinline=function(){},S.prototype.canPlayType=function(){return""},S.canPlayType=function(){return""},S.canPlaySource=function(t,e){return S.canPlayType(t.type)},S.isTech=function(t){return t.prototype instanceof S||t instanceof S||t===S},S.registerTech=function(t,e){if(S.techs_||(S.techs_={}),!S.isTech(e))throw new Error("Tech "+t+" must be a Tech");if(!S.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(S.canPlaySource)return t=l(t),S.techs_[t]=e,"Tech"!==t&&S.defaultTechOrder_.push(t),e;throw new Error("Techs must have a static canPlaySource method on them")}
1,S.getTech=function(t){if(t)return t=l(t),S.techs_&&S.techs_[t]?S.techs_[t]:m&&m.videojs&&m.videojs[t]?(_.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),m.videojs[t]):void 0},S);function S(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(){},i=(p(this,S),e.reportTouchActivity=!1,g(this,hs.call(this,null,e,t)));return i.hasStarted_=!1,i.on("playing",function(){this.hasStarted_=!0}),i.on("loadstart",function(){this.hasStarted_=!1}),os.names.forEach(function(t){t=os[t];e&&e[t.getterName]&&(i[t.privateName]=e[t.getterName])}),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){!1===e["native"+t+"Tracks"]&&(i["featuresNative"+t+"Tracks"]=!1)}),!1===e.nativeCaptions||!1===e.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==e.nativeCaptions&&!0!==e.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.autoRemoteTextTracks_=new os.text.ListClass,i.initTrackListeners(),e.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}os.names.forEach(function(t){var e=os[t];x.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}}),x.prototype.featuresVolumeControl=!0,x.prototype.featuresFullscreenResize=!1,x.prototype.featuresPlaybackRate=!1,x.prototype.featuresProgressEvents=!1,x.prototype.featuresTimeupdateEvents=!1,x.prototype.featuresNativeTextTracks=!1,x.withSourceHandlers=function(n){n.registerSourceHandler=function(t,e){var i=(i=n.sourceHandlers)||(n.sourceHandlers=[]);void 0===e&&(e=i.length),i.splice(e,0,t)},n.canPlayType=function(t){for(var e,i=n.sourceHandlers||[],s=0;s<i.length;s++)if(e=i[s].canPlayType(t))return e;return""},n.selectSourceHandler=function(t,e){for(var i=n.sourceHandlers||[],s=0;s<i.length;s++)if(i[s].canHandleSource(t,e))return i[s];return null},n.canPlaySource=function(t,e){var i=n.selectSourceHandler(t,e);return i?i.canHandleSource(t,e):""},["seekable","duration"].forEach(function(t){var e=this[t];"function"==typeof e&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})},n.prototype),n.prototype.setSource=function(t){var e=n.selectSourceHandler(t,this.options_);e||(n.nativeSourceHandler?e=n.nativeSourceHandler:_.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),e!==n.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=e.handleSource(t,this,this.options_),this.on("dispose",this.disposeSourceHandler)},n.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},h.registerComponent("Tech",x),x.registerTech("Tech",x),x.defaultTechOrder_=[];function ws(t){var e;return t=Array.isArray(t)?(e=[],t.forEach(function(t){t=ws(t),Array.isArray(t)?e=e.concat(t):L(t)&&e.push(t)}),e):"string"==typeof t&&t.trim()?[{src:t}]:L(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[t]:[]}var ks,Cs={},Ts={buffered:1,currentTime:1,duration:1,seekable:1,played:1},xs={setCurrentTime:1},o=(t(Ss,ks=h),Ss);function Ss(t,e,i){p(this,Ss);var s=d({createEl:!1},e),s=g(this,ks.call(this,t,s,i));if(e.playerOptions.sources&&0!==e.playerOptions.sources.length)t.src(e.playerOptions.sources);else for(var n=0,o=e.playerOptions.techOrder;n<o.length;n++){var r=l(o[n]),a=x.getTech(r);if((a=r?a:h.getComponent(r))&&a.isSupported()){t.loadTech_(r);break}}return s}h.registerComponent("MediaLoader",o);t($s,Es=h),$s.prototype.createEl=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"div",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},e=c({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},e),t=("button"===t&&_.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),i=c({role:"button","aria-live":"polite"},i),this.tabIndex_=e.tabIndex,Es.prototype.createEl.call(this,t,e,i));return this.createControlTextEl(t),t},$s.prototype.createControlTextEl=function(t){return this.controlTextEl_=u("span",{className:"vjs-control-text"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},$s.prototype.controlText=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.el();if(!t)return this.controlText_||"Need Text";var i=this.localize(t);this.controlText_=t,Y(this.controlTextEl_,i),this.nonIconControl||e.setAttribute("title",i)},$s.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+Es.prototype.buildCSSClass.call(this)},$s.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},$s.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},$s.prototype.handleClick=function(t){},$s.prototype.handleFocus=function(t){_t(v,"keydown",w(this,this.handleKeyPress))},$s.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.trigger("click")):Es.prototype.handleKeyPress&&Es.prototype.handleKeyPress.call(this,t)},$s.prototype.handleBlur=function(t){bt(v,"keydown",w(this,this.handleKeyPress))};var Es,i=$s;function $s(t,e){p(this,$s);t=g(this,Es.call(this,t,e));return t.emitTapEvents(),t.enable(),t}h.registerComponent("ClickableComponent",i);t(Ps,Ds=i),Ps.prototype.dispose=function(){this.player().off("posterchange",this.update),Ds.prototype.dispose.call(this)},Ps.prototype.createEl=function(){var t=u("div",{className:"vjs-poster",tabIndex:-1});return ge||(this.fallbackImg_=u("img"),t.appendChild(this.fallbackImg_)),t},Ps.prototype.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},Ps.prototype.setSrc=function(t){this.fallbackImg_?this.fallbackImg_.src=t:this.el_.style.backgroundImage=t?'url("'+t+'")':""},Ps.prototype.handleClick=function(t){this.player_.controls()&&(this.player_.paused()?this.player_.play():this.player_.pause())};var Ds,s=Ps;function Ps(t,e){p(this,Ps);e=g(this,Ds.call(this,t,e));
1return e.update(),t.on("posterchange",w(e,e.update)),e}h.registerComponent("PosterImage",s);var Is,As={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},a=(t(Ms,Is=h),Ms.prototype.preselectTrack=function(){for(var t={captions:1,subtitles:1},e=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage,s=void 0,n=void 0,o=void 0,r=0;r<e.length;r++){var a=e[r];i&&i.enabled&&i.language===a.language?o=a.kind!==i.kind&&o||a:i&&!i.enabled?n=s=o=null:a.default&&("descriptions"!==a.kind||s?a.kind in t&&!n&&(n=a):s=a)}o?o.mode="showing":n?n.mode="showing":s&&(s.mode="showing")},Ms.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},Ms.prototype.createEl=function(){return Is.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},Ms.prototype.clearDisplay=function(){"function"==typeof m.WebVTT&&m.WebVTT.processCues(m,[],this.el_)},Ms.prototype.updateDisplay=function(){var t=this.player_.textTracks();this.clearDisplay();for(var e=null,i=null,s=t.length;s--;){var n=t[s];"showing"===n.mode&&("descriptions"===n.kind?e=n:i=n)}i?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(i)):e&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(e))},Ms.prototype.updateForTrack=function(t){if("function"==typeof m.WebVTT&&t.activeCues){for(var e=this.player_.textTrackSettings.getValues(),i=[],s=0;s<t.activeCues.length;s++)i.push(t.activeCues[s]);m.WebVTT.processCues(m,i,this.el_);for(var n=i.length;n--;){var o,r=i[n];r&&(r=r.displayState,e.color&&(r.firstChild.style.color=e.color),e.textOpacity&&Xt(r.firstChild,"color",Kt(e.color||"#fff",e.textOpacity)),e.backgroundColor&&(r.firstChild.style.backgroundColor=e.backgroundColor),e.backgroundOpacity&&Xt(r.firstChild,"backgroundColor",Kt(e.backgroundColor||"#000",e.backgroundOpacity)),e.windowColor&&(e.windowOpacity?Xt(r,"backgroundColor",Kt(e.windowColor,e.windowOpacity)):r.style.backgroundColor=e.windowColor),e.edgeStyle&&("dropshadow"===e.edgeStyle?r.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===e.edgeStyle?r.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===e.edgeStyle?r.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===e.edgeStyle&&(r.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),e.fontPercent&&1!==e.fontPercent&&(o=m.parseFloat(r.style.fontSize),r.style.fontSize=o*e.fontPercent+"px",r.style.height="auto",r.style.top="auto",r.style.bottom="2px"),e.fontFamily&&"default"!==e.fontFamily&&("small-caps"===e.fontFamily?r.firstChild.style.fontVariant="small-caps":r.firstChild.style.fontFamily=As[e.fontFamily]))}}},Ms);function Ms(i,t,e){p(this,Ms);t=g(this,Is.call(this,i,t,e));return i.on("loadstart",w(t,t.toggleDisplay)),i.on("texttrackchange",w(t,t.updateDisplay)),i.on("loadstart",w(t,t.preselectTrack)),i.ready(w(t,function(){if(i.tech_&&i.tech_.featuresNativeTextTracks)this.hide();else{i.on("fullscreenchange",w(this,this.updateDisplay));for(var t=this.options_.playerOptions.tracks||[],e=0;e<t.length;e++)this.player_.addRemoteTextTrack(t[e],!0);this.preselectTrack()}})),t}h.registerComponent("TextTrackDisplay",a);t(Ns,Os=h),Ns.prototype.createEl=function(){return Os.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})};var Os,T=Ns;function Ns(){return p(this,Ns),g(this,Os.apply(this,arguments))}h.registerComponent("LoadingSpinner",T);t(Ls,js=i),Ls.prototype.createEl=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},e=(t="button",e=c({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},e),i=c({type:"button","aria-live":"polite"},i),h.prototype.createEl.call(this,t,e,i));return this.createControlTextEl(e),e},Ls.prototype.addChild=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=this.constructor.name;return _.warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),h.prototype.addChild.call(this,t,e)},Ls.prototype.enable=function(){js.prototype.enable.call(this),this.el_.removeAttribute("disabled")},Ls.prototype.disable=function(){js.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},Ls.prototype.handleKeyPress=function(t){32!==t.which&&13!==t.which&&js.prototype.handleKeyPress.call(this,t)};var js,Hs=Ls;function Ls(){return p(this,Ls),g(this,js.apply(this,arguments))}h.registerComponent("Button",Hs);t(Rs,Fs=Hs),Rs.prototype.buildCSSClass=function(){return"vjs-big-play-button"},Rs.prototype.handleClick=function(t){var e,i=this.player_.play();this.mouseused_&&t.clientX&&t.clientY||(t=this.player_.getChild("controlBar"),
1(e=t&&t.getChild("playToggle"))?(t=function(){return e.focus()},i&&i.then?i.then(t,function(){}):this.setTimeout(t,1)):this.player_.focus())},Rs.prototype.handleKeyPress=function(t){this.mouseused_=!1,Fs.prototype.handleKeyPress.call(this,t)},Rs.prototype.handleMouseDown=function(t){this.mouseused_=!0};var Fs,o=Rs;function Rs(t,e){p(this,Rs);t=g(this,Fs.call(this,t,e));return t.mouseused_=!1,t.on("mousedown",t.handleMouseDown),t}o.prototype.controlText_="Play Video",h.registerComponent("BigPlayButton",o);t(Bs,zs=Hs),Bs.prototype.buildCSSClass=function(){return"vjs-close-button "+zs.prototype.buildCSSClass.call(this)},Bs.prototype.handleClick=function(t){this.trigger({type:"close",bubbles:!1})};var zs,s=Bs;function Bs(t,e){p(this,Bs);t=g(this,zs.call(this,t,e));return t.controlText(e&&e.controlText||t.localize("Close")),t}h.registerComponent("CloseButton",s);t(Vs,Ws=Hs),Vs.prototype.buildCSSClass=function(){return"vjs-play-control "+Ws.prototype.buildCSSClass.call(this)},Vs.prototype.handleClick=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},Vs.prototype.handlePlay=function(t){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},Vs.prototype.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},Vs.prototype.handleEnded=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay")};var Ws,a=Vs;function Vs(t,e){p(this,Vs);e=g(this,Ws.call(this,t,e));return e.on(t,"play",e.handlePlay),e.on(t,"pause",e.handlePause),e.on(t,"ended",e.handleEnded),e}a.prototype.controlText_="Play",h.registerComponent("PlayToggle",a);t(Ys,Us=h),Ys.prototype.createEl=function(){var t=Us.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.contentEl_=u("div",{className:"vjs-current-time-display"},{"aria-live":"off"},u("span",{className:"vjs-control-text",textContent:this.localize("Current Time")})),this.updateTextNode_(),t.appendChild(this.contentEl_),t},Ys.prototype.updateTextNode_=function(){this.textNode_&&this.contentEl_.removeChild(this.textNode_),this.textNode_=v.createTextNode(" "+(this.formattedTime_||"0:00")),this.contentEl_.appendChild(this.textNode_)},Ys.prototype.updateContent=function(t){var e=Gt(this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.player_.duration());e!==this.formattedTime_&&(this.formattedTime_=e,this.requestAnimationFrame(this.updateTextNode_))};var Us,T=Ys;function Ys(t,e){p(this,Ys);e=g(this,Us.call(this,t,e));return e.throttledUpdateContent=Me(w(e,e.updateContent),25),e.on(t,"timeupdate",e.throttledUpdateContent),e}h.registerComponent("CurrentTimeDisplay",T);t(Ks,qs=h),Ks.prototype.createEl=function(){var t=qs.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=u("div",{className:"vjs-duration-display"},{"aria-live":"off"},u("span",{className:"vjs-control-text",textContent:this.localize("Duration Time")})),this.updateTextNode_(),t.appendChild(this.contentEl_),t},Ks.prototype.updateTextNode_=function(){this.textNode_&&this.contentEl_.removeChild(this.textNode_),this.textNode_=v.createTextNode(" "+(this.formattedTime_||"0:00")),this.contentEl_.appendChild(this.textNode_)},Ks.prototype.updateContent=function(t){var e=this.player_.duration();e&&this.duration_!==e&&(this.duration_=e,this.formattedTime_=Gt(e),this.requestAnimationFrame(this.updateTextNode_))};var qs,o=Ks;function Ks(t,e){p(this,Ks);e=g(this,qs.call(this,t,e));return e.throttledUpdateContent=Me(w(e,e.updateContent),25),e.on(t,["durationchange","loadedmetadata","timeupdate"],e.throttledUpdateContent),e}h.registerComponent("DurationDisplay",o);t(Gs,Xs=h),Gs.prototype.createEl=function(){return Xs.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})};var Xs,s=Gs;function Gs(){return p(this,Gs),g(this,Xs.apply(this,arguments))}h.registerComponent("TimeDivider",s);t(Js,Qs=h),Js.prototype.createEl=function(){var t=Qs.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=u("div",{className:"vjs-remaining-time-display"},{"aria-live":"off"},u("span",{className:"vjs-control-text",textContent:this.localize("Remaining Time")})),this.updateTextNode_(),t.appendChild(this.contentEl_),t},Js.prototype.updateTextNode_=function(){this.textNode_&&this.contentEl_.removeChild(this.textNode_),this.textNode_=v.createTextNode(" -"+(this.formattedTime_||"0:00")),this.contentEl_.appendChild(this.textNode_)},Js.prototype.updateContent=function(t){var e;this.player_.duration()&&(e=Gt(this.player_.remainingTime()))!==this.formattedTime_&&(this.formattedTime_=e,this.requestAnimationFrame(this.updateTextNode_))};var Qs,a=Js;function Js(t,e){p(this,Js);e=g(this,Qs.call(this,t,e));return e.throttledUpdateContent=Me(w(e,e.updateContent),25),e.on(t,["timeupdate","durationchange"],e.throttledUpdateContent),e}h.registerComponent("RemainingTimeDisplay",a);t(tn,Zs=h),tn.prototype.createEl=function(){var t=Zs.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=u("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},tn.prototype.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()};var Zs,T=tn;function tn(t,e){p(this,tn);t=g(this,Zs.call(this,t,e));return t.updateShowing(),t.on(t.player(),"durationchange",t.updateShowing),t}h.registerComponent("LiveDisplay",T);t(E,en=h),E.prototype.createEl=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return e.className=e.className+" vjs-slider",e=c({tabIndex:0},e),i=c({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),en.prototype.createEl.call(this,t,e,i)},E.prototype.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;t.preventDefault(),st(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchmove",this.handleMouseMove),this.on(e,"touchend",this.handleMouseUp),this.handleMouseMove(t)},E.prototype.handleMouseMove=function(t){},E.prototype.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;nt(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},E.prototype.update=function(){if(this.el_){var t,e=this.getPercent(),i=this.bar;if(i)return t=(100*(e="number"!=typeof e||e!=e||e<0||e===1/0?0:e)).toFixed(2)+"%",i=i.el().style,this.vertical()?i.height=t:i.width=t,e}},E.prototype.calculateDistance=function(t){t=at(this.el_,t);return this.vertical()?t.y:t.x},E.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},E.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepForward())},E.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},E.prototype.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},E.prototype.vertical=function(t){if(void 0===t)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")};var en,o=E;function E(t,e){p(this,E);e=g(this,en.call(this,t,e));return e.bar=e.getChild(e.options_.barName),e.vertical(!!e.options_.vertical),e.on("mousedown",e.handleMouseDown),e.on("touchstart",e.handleMouseDown),e.on("focus",e.handleFocus),e.on("blur",e.handleBlur),e.on("click",e.handleClick),e.on(t,"controlsvisible",e.update),e.playerEvent&&e.on(t,e.playerEvent,e.update),e}h.registerComponent("Slider",o);t(nn,sn=h),nn.prototype.createEl=function(){return sn.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},nn.prototype.update=function(t){function e(t,e){return 100*(1<=(t=t/e||0)?1:t)+"%"}var i=this.player_.buffered(),s=this.player_.duration(),n=this.player_.bufferedEnd(),o=this.partEls_;this.el_.style.width=e(n,s);for(var r=0;r<i.length;r++){var a=i.start(r),l=i.end(r),h=o[r];h||(h=this.el_.appendChild(u()),o[r]=h),h.style.left=e(a,n),h.style.width=e(l-a,n)}for(var c=o.length;c>i.length;c--)this.el_.removeChild(o[c-1]);o.length=i.length};var sn,s=nn;function nn(t,e){p(this,nn);e=g(this,sn.call(this,t,e));return e.partEls_=[],e.on(t,"progress",e.update),e}h.registerComponent("LoadProgressBar",s);t(rn,on=h),rn.prototype.createEl=function(){return on.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})}
1,rn.prototype.update=function(t,e,i){var s,n=ot(this.el_),o=ot(this.player_.el()),e=t.width*e;o&&n&&(s=t.left-o.left+e,e=t.width-e+(o.right-t.right),s<(o=n.width/2)?o+=o-s:e<o&&(o=e),o<0?o=0:o>n.width&&(o=n.width),this.el_.style.right="-"+o+"px",Y(this.el_,i))};var on,a=rn;function rn(){return p(this,rn),g(this,on.apply(this,arguments))}h.registerComponent("TimeTooltip",a);t(ln,an=h),ln.prototype.createEl=function(){return an.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},ln.prototype.update=function(i,s){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var t=Gt(n.player_.scrubbing()?n.player_.getCache().currentTime:n.player_.currentTime(),n.player_.duration()),e=n.getChild("timeTooltip");e&&e.update(i,s,t)})};var an,T=ln;function ln(){return p(this,ln),g(this,an.apply(this,arguments))}T.prototype.options_={children:[]},de&&!(8<de)||ne||oe||T.prototype.options_.children.push("timeTooltip"),h.registerComponent("PlayProgressBar",T);t(cn,hn=h),cn.prototype.createEl=function(){return hn.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},cn.prototype.update=function(e,i){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var t=s.player_.duration(),t=Gt(i*t,t);s.el_.style.left=e.width*i+"px",s.getChild("timeTooltip").update(e,i,t)})};var hn,s=cn;function cn(t,e){p(this,cn);t=g(this,hn.call(this,t,e));return t.update=Me(w(t,t.update),25),t}s.prototype.options_={children:["timeTooltip"]},h.registerComponent("MouseTimeDisplay",s);t(dn,un=o),dn.prototype.createEl=function(){return un.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},dn.prototype.update=function(){var t=un.prototype.update.call(this),e=this.player_.duration(),i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();return this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[Gt(i,e),Gt(e,e)],"{1} of {2}")),this.bar.update(ot(this.el_),t),t},dn.prototype.getPercent=function(){var t=(this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime())/this.player_.duration();return 1<=t?1:t},dn.prototype.handleMouseDown=function(t){this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),un.prototype.handleMouseDown.call(this,t)},dn.prototype.handleMouseMove=function(t){t=this.calculateDistance(t)*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t)},dn.prototype.handleMouseUp=function(t){un.prototype.handleMouseUp.call(this,t),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},dn.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},dn.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},dn.prototype.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},dn.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleAction(t)):un.prototype.handleKeyPress&&un.prototype.handleKeyPress.call(this,t)};var un,a=dn;function dn(t,e){p(this,dn);e=g(this,un.call(this,t,e));return e.update=Me(w(e,e.update),50),e.on(t,["timeupdate","ended"],e.update),e}a.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},de&&!(8<de)||ne||oe||a.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),a.prototype.playerEvent="timeupdate",h.registerComponent("SeekBar",a);t(fn,pn=h),fn.prototype.createEl=function(){return pn.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},fn.prototype.handleMouseMove=function(t){var e=this.getChild("seekBar"),i=e.getChild("mouseTimeDisplay"),e=e.el(),s=ot(e),e=at(e,t).x;1<e?e=1:e<0&&(e=0),i&&i.update(s,e)},fn.prototype.handleMouseSeek=function(t){this.getChild("seekBar").handleMouseMove(t)},fn.prototype.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseSeek),this.on(e,"touchmove",this.throttledHandleMouseSeek),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},fn.prototype.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)};var pn,T=fn;function fn(t,e){p(this,fn);t=g(this,pn.call(this,t,e));return t.handleMouseMove=Me(w(t,t.handleMouseMove),25),t.on(t.el_,"mousemove",t.handleMouseMove),t.throttledHandleMouseSeek=Me(w(t,t.handleMouseSeek),25),t.on(["mousedown","touchstart"],t.handleMouseDown),t}T.prototype.options_={children:["seekBar"]},h.registerComponent("ProgressControl",T);t(mn,gn=Hs),mn.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+gn.prototype.buildCSSClass.call(this)},mn.prototype.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},mn.prototype.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()};var gn,s=mn;function mn(t,e){p(this,mn);e=g(this,gn.call(this,t,e));return e.on(t,"fullscreenchange",e.handleFullscreenChange),e}s.prototype.controlText_="Fullscreen",h.registerComponent("FullscreenToggle",s);function vn(t,e){e.tech_&&!e.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})}
1t(_n,yn=h),_n.prototype.createEl=function(){return yn.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})};var yn,a=_n;function _n(){return p(this,_n),g(this,yn.apply(this,arguments))}h.registerComponent("VolumeLevel",a);t(wn,bn=o),wn.prototype.createEl=function(){return bn.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},wn.prototype.handleMouseMove=function(t){this.checkMuted(),this.player_.volume(this.calculateDistance(t))},wn.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},wn.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},wn.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},wn.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},wn.prototype.updateARIAAttributes=function(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},wn.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},wn.prototype.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",function(){0===t.player_.volume()&&t.player_.lastVolume_(e)})};var bn,T=wn;function wn(t,e){p(this,wn);var i=g(this,bn.call(this,t,e));return i.on("slideractive",i.updateLastVolume_),i.on(t,"volumechange",i.updateARIAAttributes),t.ready(function(){return i.updateARIAAttributes()}),i}T.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},T.prototype.playerEvent="volumechange",h.registerComponent("VolumeBar",T);t(Cn,kn=h),Cn.prototype.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),kn.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},Cn.prototype.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseMove),this.on(e,"touchmove",this.throttledHandleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},Cn.prototype.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseMove),this.off(e,"touchmove",this.throttledHandleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},Cn.prototype.handleMouseMove=function(t){this.volumeBar.handleMouseMove(t)};var kn,s=Cn;function Cn(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=(p(this,Cn),e.vertical=e.vertical||!1,void 0!==e.volumeBar&&!F(e.volumeBar)||(e.volumeBar=e.volumeBar||{},e.volumeBar.vertical=e.vertical),g(this,kn.call(this,t,e)));return vn(i,t),i.throttledHandleMouseMove=Me(w(i,i.handleMouseMove),25),i.on("mousedown",i.handleMouseDown),i.on("touchstart",i.handleMouseDown),i.on(i.volumeBar,["focus","slideractive"],function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")}),i.on(i.volumeBar,["blur","sliderinactive"],function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")}),i}s.prototype.options_={children:["volumeBar"]},h.registerComponent("VolumeControl",s);t(xn,Tn=Hs),xn.prototype.buildCSSClass=function(){return"vjs-mute-control "+Tn.prototype.buildCSSClass.call(this)},xn.prototype.handleClick=function(t){var e=this.player_.volume(),i=this.player_.lastVolume_();0===e?(this.player_.volume(i<.1?.1:i),this.player_.muted(!1)):this.player_.muted(!this.player_.muted())},xn.prototype.update=function(t){this.updateIcon_(),this.updateControlText_()},xn.prototype.updateIcon_=function(){var t=this.player_.volume(),e=3;0===t||this.player_.muted()?e=0:t<.33?e=1:t<.67&&(e=2);for(var i=0;i<4;i++)G(this.el_,"vjs-vol-"+i);X(this.el_,"vjs-vol-"+e)},xn.prototype.updateControlText_=function(){var t=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)};var Tn,a=xn;function xn(t,e){p(this,xn);e=g(this,Tn.call(this,t,e));return vn(e,t),e.on(t,["loadstart","volumechange"],e.update),e}a.prototype.controlText_="Mute",h.registerComponent("MuteToggle",a);t(En,Sn=h),En.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},En.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},En.prototype.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),Sn.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})};var Sn,T=En;function En(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=(p(this,En),void 0!==e.inline?e.inline=e.inline:e.inline=!0,void 0!==e.volumeControl&&!F(e.volumeControl)||(e.volumeControl=e.volumeControl||{},e.volumeControl.vertical=!e.inline),g(this,Sn.call(this,t,e)));return vn(e,t),e.on(e.volumeControl,["slideractive"],e.sliderActive_),e.on(e.muteToggle,"focus",e.sliderActive_),e.on(e.volumeControl,["sliderinactive"],e.sliderInactive_),e.on(e.muteToggle,"blur",e.sliderInactive_),e}T.prototype.options_={children:["muteToggle","volumeControl"]}
1,h.registerComponent("VolumePanel",T);t(Pn,$n=h),Pn.prototype.addItem=function(e){this.addChild(e),e.on("click",w(this,function(t){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==e.name()&&this.menuButton_.focus())}))},Pn.prototype.createEl=function(){var t=this.options_.contentElType||"ul",t=(this.contentEl_=u(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu"),$n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"}));return t.appendChild(this.contentEl_),_t(t,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),t},Pn.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepBack())},Pn.prototype.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},Pn.prototype.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},Pn.prototype.focus=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=this.children().slice();e.length&&e[0].className&&/vjs-menu-title/.test(e[0].className)&&e.shift(),0<e.length&&(t<0?t=0:t>=e.length&&(t=e.length-1),e[this.focusedChild_=t].el_.focus())};var $n,Dn=Pn;function Pn(t,e){p(this,Pn);t=g(this,$n.call(this,t,e));return e&&(t.menuButton_=e.menuButton),t.focusedChild_=-1,t.on("keydown",t.handleKeyPress),t}h.registerComponent("Menu",Dn);t($,In=h),$.prototype.update=function(){var t=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},$.prototype.createMenu=function(){var t,e=new Dn(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title&&(t=u("li",{className:"vjs-menu-title",innerHTML:l(this.options_.title),tabIndex:-1}),this.hideThreshold_+=1,e.children_.unshift(t),q(t,e.contentEl())),this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)e.addItem(this.items[i]);return e},$.prototype.createItems=function(){},$.prototype.createEl=function(){return In.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},$.prototype.buildWrapperCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+Hs.prototype.buildCSSClass()+" "+In.prototype.buildCSSClass.call(this)},$.prototype.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+In.prototype.buildCSSClass.call(this)},$.prototype.controlText=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(t,e)},$.prototype.handleClick=function(t){this.one(this.menu.contentEl(),"mouseleave",w(this,function(t){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},$.prototype.focus=function(){this.menuButton_.focus()},$.prototype.blur=function(){this.menuButton_.blur()},$.prototype.handleFocus=function(){_t(v,"keydown",w(this,this.handleKeyPress))},$.prototype.handleBlur=function(){bt(v,"keydown",w(this,this.handleKeyPress))},$.prototype.handleKeyPress=function(t){27===t.which||9===t.which?(this.buttonPressed_&&this.unpressButton(),9!==t.which&&(t.preventDefault(),this.menuButton_.el_.focus())):38!==t.which&&40!==t.which||this.buttonPressed_||(this.pressButton(),t.preventDefault())},$.prototype.handleSubmenuKeyPress=function(t){27!==t.which&&9!==t.which||(this.buttonPressed_&&this.unpressButton(),9!==t.which&&(t.preventDefault(),this.menuButton_.el_.focus()))},$.prototype.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),this.menu.focus())},$.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","fal
1se"))},$.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},$.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()};var In,s=$;function $(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=(p(this,$),g(this,In.call(this,t,e))),e=(i.menuButton_=new Hs(t,e),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true"),Hs.prototype.buildCSSClass());return i.menuButton_.el_.className=i.buildCSSClass()+" "+e,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0,i.on(i.menuButton_,"tap",i.handleClick),i.on(i.menuButton_,"click",i.handleClick),i.on(i.menuButton_,"focus",i.handleFocus),i.on(i.menuButton_,"blur",i.handleBlur),i.on("keydown",i.handleSubmenuKeyPress),i}h.registerComponent("MenuButton",s);t(Mn,An=s);var An,a=Mn;function Mn(t,e){p(this,Mn);var i=e.tracks,t=g(this,An.call(this,t,e));if(t.items.length<=1&&t.hide(),!i)return g(t);var s=w(t,t.update);return i.addEventListener("removetrack",s),i.addEventListener("addtrack",s),t.player_.on("ready",s),t.player_.on("dispose",function(){i.removeEventListener("removetrack",s),i.removeEventListener("addtrack",s)}),t}h.registerComponent("TrackButton",a);t(Nn,On=i),Nn.prototype.createEl=function(t,e,i){return this.nonIconControl=!0,On.prototype.createEl.call(this,"li",c({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},e),i)},Nn.prototype.handleClick=function(t){this.selected(!0)},Nn.prototype.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(" ")))};var On,T=Nn;function Nn(t,e){p(this,Nn);t=g(this,On.call(this,t,e));return t.selectable=e.selectable,t.selected(e.selected),t.selectable?t.el_.setAttribute("role","menuitemcheckbox"):t.el_.setAttribute("role","menuitem"),t}h.registerComponent("MenuItem",T);t(Ln,jn=T),Ln.prototype.handleClick=function(t){var e=this.track.kind,i=this.track.kinds,s=this.player_.textTracks(),i=i||[e];if(jn.prototype.handleClick.call(this,t),s)for(var n=0;n<s.length;n++){var o=s[n];o===this.track&&-1<i.indexOf(o.kind)?"showing"!==o.mode&&(o.mode="showing"):"disabled"!==o.mode&&(o.mode="disabled")}},Ln.prototype.handleTracksChange=function(t){this.selected("showing"===this.track.mode)},Ln.prototype.handleSelectedLanguageChange=function(t){var e;"showing"!==this.track.mode||(e=this.player_.cache_.selectedLanguage)&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind||(this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind})};var jn,Hn=Ln;function Ln(t,e){p(this,Ln);var i,s=e.track,n=t.textTracks(),e=(e.label=s.label||s.language||"Unknown",e.selected="showing"===s.mode,g(this,jn.call(this,t,e))),o=(e.track=s,w(e,e.handleTracksChange)),r=w(e,e.handleSelectedLanguageChange);return t.on(["loadstart","texttrackchange"],o),n.addEventListener("change",o),n.addEventListener("selectedlanguagechange",r),e.on("dispose",function(){n.removeEventListener("change",o),n.removeEventListener("selectedlanguagechange",r)}),void 0===n.onchange&&(i=void 0,e.on(["tap","click"],function(){if("object"!==me(m.Event))try{i=new m.Event("change")}catch(t){}i||(i=v.createEvent("Event")).initEvent("change",!0,!0),n.dispatchEvent(i)})),e}h.registerComponent("TextTrackMenuItem",Hn);t(zn,Fn=Hn),zn.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),i=!0,s=0,n=e.length;s<n;s++){var o=e[s];if(-1<this.options_.kinds.indexOf(o.kind)&&"showing"===o.mode){i=!1;break}}this.selected(i)},zn.prototype.handleSelectedLanguageChange=function(t){for(var e=this.player().textTracks(),i=!0,s=0,n=e.length;s<n;s++){var o=e[s];if(-1<["captions","descriptions","subtitles"].indexOf(o.kind)&&"showing"===o.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})};var Fn,Rn=zn;function zn(t,e){p(this,zn),e.track={player:t,kind:e.kind,kinds:e.kinds,default:!1,mode:"disabled"},e.kinds||(e.kinds=[e.kind]),e.label?e.track.label=e.label:e.track.label=e.kinds.join(" and ")+" off",e.selectable=!0;t=g(this,Fn.call(this,t,e));return t.selected(!0),t}h.registerComponent("OffTextTrackMenuItem",Rn);t(Wn,Bn=a),Wn.prototype.createItems=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Hn,i=void 0,s=(this.label_&&(i=this.label_+" off"),t.push(new Rn(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1,this.player_.textTracks());Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var n=0;n<s.length;n++){var o,r=s[n];-1<this.kinds_.indexOf(r.kind)&&((o=new e(this.player_,{track:r,selectable:!0}
1)).addClass("vjs-"+r.kind+"-menu-item"),t.push(o))}return t};var Bn,i=Wn;function Wn(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return p(this,Wn),e.tracks=t.textTracks(),g(this,Bn.call(this,t,e))}h.registerComponent("TextTrackButton",i);t(Yn,Vn=T),Yn.prototype.handleClick=function(t){Vn.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},Yn.prototype.update=function(t){var e=this.cue,i=this.player_.currentTime();this.selected(e.startTime<=i&&i<e.endTime)};var Vn,Un=Yn;function Yn(t,e){p(this,Yn);var i=e.track,s=e.cue,n=t.currentTime(),n=(e.selectable=!0,e.label=s.text,e.selected=s.startTime<=n&&n<s.endTime,g(this,Vn.call(this,t,e)));return n.track=i,n.cue=s,i.addEventListener("cuechange",w(n,n.update)),n}h.registerComponent("ChaptersTrackMenuItem",Un);t(Kn,qn=i),Kn.prototype.buildCSSClass=function(){return"vjs-chapters-button "+qn.prototype.buildCSSClass.call(this)},Kn.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+qn.prototype.buildWrapperCSSClass.call(this)},Kn.prototype.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),qn.prototype.update.call(this)},Kn.prototype.setTrack=function(t){var e;this.track_!==t&&(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_&&((e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_))&&e.removeEventListener("load",this.updateHandler_),this.track_=null),this.track_=t,this.track_&&(this.track_.mode="hidden",(e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_))&&e.addEventListener("load",this.updateHandler_)))}
1,Kn.prototype.findChaptersTrack=function(){for(var t=this.player_.textTracks()||[],e=t.length-1;0<=e;e--){var i=t[e];if(i.kind===this.kind_)return i}},Kn.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(l(this.kind_))},Kn.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),qn.prototype.createMenu.call(this)},Kn.prototype.createItems=function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var i=0,s=e.length;i<s;i++){var n=e[i],n=new Un(this.player_,{track:this.track_,cue:n});t.push(n)}return t};var qn,D=Kn;function Kn(t,e,i){return p(this,Kn),g(this,qn.call(this,t,e,i))}D.prototype.kind_="chapters",D.prototype.controlText_="Chapters",h.registerComponent("ChaptersButton",D);t(Gn,Xn=i),Gn.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),i=!1,s=0,n=e.length;s<n;s++){var o=e[s];if(o.kind!==this.kind_&&"showing"===o.mode){i=!0;break}}i?this.disable():this.enable()},Gn.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+Xn.prototype.buildCSSClass.call(this)},Gn.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+Xn.prototype.buildWrapperCSSClass.call(this)};var Xn,D=Gn;function Gn(t,e,i){p(this,Gn);var e=g(this,Xn.call(this,t,e,i)),s=t.textTracks(),n=w(e,e.handleTracksChange);return s.addEventListener("change",n),e.on("dispose",function(){s.removeEventListener("change",n)}),e}D.prototype.kind_="descriptions",D.prototype.controlText_="Descriptions",h.registerComponent("DescriptionsButton",D);t(Jn,Qn=i),Jn.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+Qn.prototype.buildCSSClass.call(this)},Jn.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+Qn.prototype.buildWrapperCSSClass.call(this)};var Qn,D=Jn;function Jn(t,e,i){return p(this,Jn),g(this,Qn.call(this,t,e,i))}D.prototype.kind_="subtitles",D.prototype.controlText_="Subtitles",h.registerComponent("SubtitlesButton",D);t(eo,Zn=Hn),eo.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").open()};var Zn,to=eo;function eo(t,e){p(this,eo),e.track={player:t,kind:e.kind,label:e.kind+" settings",selectable:!1,default:!1,mode:"disabled"},e.selectable=!1,e.name="CaptionSettingsMenuItem";t=g(this,Zn.call(this,t,e));return t.addClass("vjs-texttrack-settings"),t.controlText(", opens "+e.kind+" settings dialog"),t}h.registerComponent("CaptionSettingsMenuItem",to);t(so,io=i),so.prototype.buildCSSClass=function(){return"vjs-captions-button "+io.prototype.buildCSSClass.call(this)},so.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+io.prototype.buildWrapperCSSClass.call(this)},so.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(t.push(new to(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),io.prototype.createItems.call(this,t)};var io,D=so;function so(t,e,i){return p(this,so),g(this,io.call(this,t,e,i))}D.prototype.kind_="captions",D.prototype.controlText_="Captions",h.registerComponent("CaptionsButton",D);t(ro,no=Hn),ro.prototype.createEl=function(t,e,i){var s='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&&(s+='\n        <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n        <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n      "),no.prototype.createEl.call(this,t,c({innerHTML:s+="</span>"},e),i)};var no,oo=ro;function ro(){return p(this,ro),g(this,no.apply(this,arguments))}h.registerComponent("SubsCapsMenuItem",oo);t(lo,ao=i),lo.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+ao.prototype.buildCSSClass.call(this)},lo.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+ao.prototype.buildWrapperCSSClass.call(this)},lo.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(t.push(new to(this.player_,{kind:this.label_})),this.hideThreshold_+=1),ao.prototype.createItems.call(this,t,oo)};var ao,D=lo;function lo(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=(p(this,lo),g(this,ao.call(this,t,e)));return e.label_="subtitles",-1<["en","en-us","en-ca","fr-ca"].indexOf(e.player_.language_)&&(e.label_="captions"),e.menuButton_.controlText(l(e.label_)),e}D.prototype.kinds_=["captions","subtitles"],D.prototype.controlText_="Subtitles",h.registerComponent("SubsCapsButton",D);t(uo,ho=T),uo.prototype.handleClick=function(t){var e=this.player_.audioTracks();ho.prototype.handleClick.call(this,t);for(var i=0;i<e.length;i++){var s=e[i];s.enabled=s===this.track}},uo.prototype.handleTracksChange=function(t){this.selected(this.track.enabled)};var ho,co=uo;function uo(t,e){p(this,uo);var i=e.track,s=t.audioTracks(),t=(e.label=i.label||i.language||"Unknown",e.selected=i.enabled,g(this,ho.call(this,t,e))),n=(t.track=i,w(t,t.handleTracksChange));return s.addEventListener("change",n),t.on("dispose",function(){s.removeEventListener("change",n)}),t}h.registerComponent("AudioTrackMenuItem",co);t(fo,po=a),fo.prototype.buildCSSClass=function(){return"vjs-audio-button "+po.prototype.buildCSSClass.call(this)},fo.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+po.prototype.buildWrapperCSSClass.call(this)},fo.prototype.createItems=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;for(var e=this.player_.audioTracks(),i=0;i<e.length;i++){var s=e[i];t.push(new co(this.player_,{track:s,selectable:!0}))}return t};var po,i=fo;function fo(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return p(this,fo),e.tracks=t.audioTracks(),g(this,po.call(this,t,e))}i.prototype.controlText_="Audio Track",h.registerComponent("AudioTrackButton",i);t(vo,go=T),vo.prototype.handleClick=function(t){go.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},vo.prototype.update=function(t){this.selected(this.player().playbackRate()===this.rate)};var go,mo=vo;function vo(t,e){p(this,vo);var i=e.rate,s=parseFloat(i,10),e=(e.label=i,e.selected=1===s,e.selectable=!0,g(this,go.call(this,t,e)));return e.label=i,e.rate=s,e.on(t,"ratechange",e.update),e}mo.prototype.contentElType="button",h.registerComponent("PlaybackRateMenuItem",mo);t(_o,yo=s),_o.prototype.createEl=function(){var t=yo.prototype.createEl.call(this);return this.labelEl_=u("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),t.appendChild(this.labelEl_),t},_o.prototype.buildCSSClass=function(){return"vjs-playback-rate "+yo.prototype.buildCSSClass.call(this)},_o.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+yo.prototype.buildWrapperCSSClass.call(this)},_o.prototype.createMenu=function(){var t=new Dn(this.player()),e=this.playbackRates();if(e)for(var i=e.length-1;0<=i;i--)t.addChild(new mo(this.player(),{rate:e[i]+"x"}));return t},_o.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},_o.prototype.handleClick=function(t){for(var e=this.player().playbackRate(),i=this.playbackRates(),s=i[0],n=0;n<i.length;n++)if(i[n]>e){s=i[n];break}this.player().playbackRate(s)},_o.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},_o.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&0<this.playbackRates().length},_o.prototype.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},_o.prototype.updateLabel=function(t){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")};var yo,D=_o;function _o(t,e){p(this,_o);e=g(this,yo.call(this,t,e));return e.updateVisibility(),e.updateLabel(),e.on(t,"loadstart",e.updateVisibility),e.on(t,"ratechange",e.updateLabel),e}D.prototype.controlText_="Playback Rate",h.registerComponent("PlaybackRateMenuButton",D);t(wo,bo=h),wo.prototype.buildCSSClass=function(){return"vjs-spacer "+bo.prototype.buildCSSClass.call(this)},wo.prototype.createEl=function(){return bo.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})};var bo,a=wo;function wo(){return p(this,wo),g(this,bo.apply(this,arguments))}h.registerComponent("Spacer",a);t(Co,ko=a),Co.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+ko.prototype.buildCSSClass.call(this)},Co.prototype.createEl=function(){var t=ko.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML="&nbsp;",t};var ko,i=Co;function Co(){return p(this,Co),g(this,ko.apply(this,arguments))}h.registerComponent("CustomControlSpacer",i);t(xo,To=h),xo.prototype.createEl=function(){return To.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})};var To,T=xo;function xo(){return p(this,xo),g(this,To.apply(this,arguments))}T.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},h.registerComponent("ControlBar",T);t(Eo,So=ai),Eo.prototype.buildCSSClass=function(){return"vjs-error-display "+So.prototype.buildCSSClass.call(this)},Eo.prototype.content=function(){var t=this.player().error();return t?this.localize(t.message):""};var So,s=Eo;function Eo(t,e){p(this,Eo);e=g(this,So.call(this,t,e));return e.on(t,"error",e.open),e}
1s.prototype.options_=d(ai.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),h.registerComponent("ErrorDisplay",s);var $o,D=["#000","Black"],a=["#00F","Blue"],i=["#0FF","Cyan"],T=["#0F0","Green"],s=["#F0F","Magenta"],Do=["#F00","Red"],Po=["#FFF","White"],Io=["#FF0","Yellow"],Ao=["1","Opaque"],Mo=["0.5","Semi-Transparent"],Oo=["0","Transparent"],No={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[D,Po,Do,T,a,Io,s,i]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Ao,Mo,Oo]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Po,D,Do,T,a,Io,s,i]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Ao,Mo]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Oo,Mo,Ao]}},Po=(No.windowColor.options=No.backgroundColor.options,t(P,$o=ai),P.prototype.createElSelect_=function(t){var i=this,s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"label",n=No[t],o=n.id.replace("%s",this.id_);return["<"+e+' id="'+o+'" class="'+("label"===e?"vjs-label":"")+'">',this.localize(n.label),"</"+e+">",'<select aria-labelledby="'+s+" "+o+'">'].concat(n.options.map(function(t){var e=o+"-"+t[1];return['<option id="'+e+'" value="'+t[0]+'" ','aria-labelledby="'+s+" "+o+" "+e+'">',i.localize(t[1]),"</option>"].join("")})).concat("</select>").join("")},P.prototype.createElFgColor_=function(){var t="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",t),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",t),"</span>","</fieldset>"].join("")},P.prototype.createElBgColor_=function(){var t="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",t),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",t),"</span>","</fieldset>"].join("")},P.prototype.createElWinColor_=function(){var t="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",t),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",t),"</span>","</fieldset>"].join("")},P.prototype.createElColors_=function(){return u("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},P.prototype.createElFont_=function(){return u("div",{className:'vjs-track-settings-font">',innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},P.prototype.createElControls_=function(){var t=this.localize("restore all settings to the default values");return u("div",{className:"vjs-track-settings-controls",innerHTML:['<button class="vjs-default-button" title="'+t+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+t+"</span>","</button>",'<button class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},P.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},P.prototype.label=function(){return this.localize("Caption Settings Dialog")},P.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},P.prototype.buildCSSClass=function(){return $o.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},P.prototype.getValues=function(){var n=this;return function(i,s,t){var e=2<arguments.length&&void 0!==t?t:0;return Zt(i).reduce(function(t,e){return s(t,i[e],e)},e)}
1(No,function(t,e,i){s=n.$(e.selector),e=e.parser;var s=Qt(s.options[s.options.selectedIndex].value,e);return void 0!==s&&(t[i]=s),t},{})},P.prototype.setValues=function(r){var a=this;H(No,function(t,e){var i=a.$(t.selector),s=r[e],n=t.parser;if(s)for(var o=0;o<i.options.length;o++)if(Qt(i.options[o].value,n)===s){i.selectedIndex=o;break}})},P.prototype.setDefaults=function(){var i=this;H(No,function(t){var e=t.hasOwnProperty("default")?t.default:0;i.$(t.selector).selectedIndex=e})},P.prototype.restoreSettings=function(){var t=void 0;try{t=JSON.parse(m.localStorage.getItem("vjs-text-track-settings"))}catch(t){_.warn(t)}t&&this.setValues(t)},P.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.keys(t).length?m.localStorage.setItem("vjs-text-track-settings",JSON.stringify(t)):m.localStorage.removeItem("vjs-text-track-settings")}catch(t){_.warn(t)}}},P.prototype.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},P.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(v,"keydown",this.handleKeyDown);var t=this.player_.controlBar,e=t&&t.subsCapsButton,t=t&&t.captionsButton;e?e.focus():t&&t.focus()},P);function P(t,e){p(this,P),e.temporary=!1;var i=g(this,$o.call(this,t,e));return i.updateDisplay=w(i,i.updateDisplay),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=u("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===e.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",function(){i.saveSettings(),i.close()}),i.on(i.$(".vjs-default-button"),"click",function(){i.setDefaults(),i.updateDisplay()}),H(No,function(t){i.on(i.$(t.selector),"change",i.updateDisplay)}),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}h.registerComponent("TextTrackSettings",Po);var jo,Ho=Jt(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."]),I=(t(A,jo=x),A.prototype.dispose=function(){A.disposeMediaElement(this.el_),jo.prototype.dispose.call(this)},A.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){function t(){n=[];for(var t=0;t<s.length;t++){var e=s[t];"metadata"===e.kind&&n.push({track:e,storedMode:e.mode})}}function i(){for(var t=0;t<n.length;t++){var e=n[t];"disabled"===e.track.mode&&e.track.mode!==e.storedMode&&(e.track.mode=e.storedMode)}s.removeEventListener("change",i)}var s=this.textTracks(),n=void 0;t(),s.addEventListener("change",t);this.on("webkitbeginfullscreen",function(){s.removeEventListener("change",t),s.removeEventListener("change",i),s.addEventListener("change",i)}),this.on("webkitendfullscreen",function(){s.removeEventListener("change",t),s.addEventListener("change",t),s.removeEventListener("change",i)})},A.prototype.proxyNativeTracks_=function(){var r=this;ss.names.forEach(function(t){var s,e,t=ss[t],n=r.el()[t.getterName],o=r[t.getterName]();r["featuresNative"+t.capitalName+"Tracks"]&&n&&n.addEventListener&&(s={change:function(t){o.trigger({type:"change",target:o,currentTarget:o,srcElement:o})},addtrack:function(t){o.addTrack(t.track)},removetrack:function(t){o.removeTrack(t.track)}},e=function(){for(var t=[],e=0;e<o.length;e++){for(var i=!1,s=0;s<n.length;s++)if(n[s]===o[e]){i=!0;break}i||t.push(o[e])}for(;t.length;)o.removeTrack(t.shift())},Object.keys(s).forEach(function(e){var i=s[e];n.addEventListener(e,i),r.on("dispose",function(t){return n.removeEventListener(e,i)})}),r.on("loadstart",e),r.on("dispose",function(t){return r.off("loadstart",e)}))})},A.prototype.createEl=function(){var t,e=this.options_.tag;e&&(this.options_.playerElIngest||this.movingMediaElementInDOM)||(e?(t=e.cloneNode(!0),e.parentNode&&e.parentNode.insertBefore(t,e),A.disposeMediaElement(e),e=t):(e=v.createElement("video"),t=d({},this.options_.tag&&Z(this.options_.tag)),fe&&!0===this.options_.nativeControlsForTouch||delete t.controls,J(e,c(t,{id:this.options_.techId,class:"vjs-tech"}))),e.playerId=this.options_.playerId),void 0!==this.options_.preload&&et(e,"preload",this.options_.preload);for(var i=["loop","muted","playsinline","autoplay"],s=i.length-1;0<=s;s--){var n=i[s],o=this.options_[n];void 0!==o&&(o?et(e,n,n):it(e,n),e[n]=o)}return e},A.prototype.handleLateInit_=function(t){if(0!==t.networkState&&3!==t.networkState){var e,i,s;if(0===t.readyState)return e=!1,this.on("loadstart",i=function(){e=!0}),this.on("loadedmetadata",s=function(){e||this.trigger("loadstart")}),void this.ready(function(){this.off("loadstart",i),this.off("loadedmetadata",s),e||this.trigger("loadstart")});var n=["loadstart"];n.push("loadedmetadata"),2<=t.readyState&&n.push("loadeddata"),3<=t.readyState&&n.push("canplay"),4<=t.readyState&&n.push("canplaythrough"),this.ready(function(){n.forEac
1h(function(t){this.trigger(t)},this)})}},A.prototype.setCurrentTime=function(t){try{this.el_.currentTime=t}catch(t){_(t,"Video is not ready. (Video.js)")}},A.prototype.duration=function(){var e=this;return this.el_.duration===1/0&&oe&&ce&&0===this.el_.currentTime?(this.on("timeupdate",function t(){0<e.el_.currentTime&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))}),NaN):this.el_.duration||NaN},A.prototype.width=function(){return this.el_.offsetWidth},A.prototype.height=function(){return this.el_.offsetHeight},A.prototype.proxyWebkitFullscreen_=function(){var t,e,i=this;"webkitDisplayingFullscreen"in this.el_&&(t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},this.on("webkitbeginfullscreen",e=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0}))}),this.on("dispose",function(){i.off("webkitbeginfullscreen",e),i.off("webkitendfullscreen",t)}))},A.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=m.navigator&&m.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},A.prototype.enterFullScreen=function(){var t=this.el_;t.paused&&t.networkState<=t.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},A.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},A.prototype.src=function(t){if(void 0===t)return this.el_.src;this.setSrc(t)},A.prototype.reset=function(){A.resetMediaElement(this.el_)},A.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},A.prototype.setControls=function(t){this.el_.controls=!!t},A.prototype.addTextTrack=function(t,e,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,e,i):jo.prototype.addTextTrack.call(this,t,e,i)},A.prototype.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return jo.prototype.createRemoteTextTrack.call(this,t);var e=v.createElement("track");return t.kind&&(e.kind=t.kind),t.label&&(e.label=t.label),(t.language||t.srclang)&&(e.srclang=t.language||t.srclang),t.default&&(e.default=t.default),t.id&&(e.id=t.id),t.src&&(e.src=t.src),e},A.prototype.addRemoteTextTrack=function(t,e){t=jo.prototype.addRemoteTextTrack.call(this,t,e);return this.featuresNativeTextTracks&&this.el().appendChild(t),t},A.prototype.removeRemoteTextTrack=function(t){if(jo.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var e=this.$$("track"),i=e.length;i--;)t!==e[i]&&t!==e[i].track||this.el().removeChild(e[i])},A.prototype.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var t={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),m.performance&&"function"==typeof m.performance.now?t.creationTime=m.performance.now():m.performance&&m.performance.timing&&"number"==typeof m.performance.timing.navigationStart&&(t.creationTime=m.Date.now()-m.performance.timing.navigationStart),t},A);function A(t,e){p(this,A);var i=g(this,jo.call(this,t,e)),e=t.source,s=!1;if(e&&(i.el_.currentSrc!==e.src||t.tag&&3===t.tag.initNetworkState_)?i.setSource(e):i.handleLateInit_(i.el_),i.el_.hasChildNodes()){for(var n=i.el_.childNodes,o=n.length,r=[];o--;){var a=n[o];"track"===a.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(a),i.remoteTextTracks().addTrack(a.track),i.textTracks().addTrack(a.track),s||i.el_.hasAttribute("crossorigin")||!Si(a.src)||(s=!0)):r.push(a))}for(var l=0;l<r.length;l++)i.el_.removeChild(r[l])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&s&&_.warn(ee(Ho)),i.restoreMetadataTracksInIOSNativePlayer_(),(fe||se||le)&&!0===t.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}W()&&(I.TEST_VID=v.createElement("video"),(D=v.createElement("track")).kind="captions",D.srclang="en",D.label="English",I.TEST_
1VID.appendChild(D)),I.isSupported=function(){try{I.TEST_VID.volume=.5}catch(t){return!1}return!(!I.TEST_VID||!I.TEST_VID.canPlayType)},I.canPlayType=function(t){return I.TEST_VID.canPlayType(t)},I.canPlaySource=function(t,e){return I.canPlayType(t.type)},I.canControlVolume=function(){try{var t=I.TEST_VID.volume;return I.TEST_VID.volume=t/2+.1,t!==I.TEST_VID.volume}catch(t){return!1}},I.canControlPlaybackRate=function(){if(oe&&ce&&ue<58)return!1;try{var t=I.TEST_VID.playbackRate;return I.TEST_VID.playbackRate=t/2+.1,t!==I.TEST_VID.playbackRate}catch(t){return!1}},I.supportsNativeTextTracks=function(){return pe},I.supportsNativeVideoTracks=function(){return!(!I.TEST_VID||!I.TEST_VID.videoTracks)},I.supportsNativeAudioTracks=function(){return!(!I.TEST_VID||!I.TEST_VID.audioTracks)},I.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],I.prototype.featuresVolumeControl=I.canControlVolume(),I.prototype.featuresPlaybackRate=I.canControlPlaybackRate(),I.prototype.movingMediaElementInDOM=!ne,I.prototype.featuresFullscreenResize=!0,I.prototype.featuresProgressEvents=!0,I.prototype.featuresTimeupdateEvents=!0,I.prototype.featuresNativeTextTracks=I.supportsNativeTextTracks(),I.prototype.featuresNativeVideoTracks=I.supportsNativeVideoTracks(),I.prototype.featuresNativeAudioTracks=I.supportsNativeAudioTracks();var Lo,Fo=I.TEST_VID&&I.TEST_VID.constructor.prototype.canPlayType,Ro=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,zo=/^video\/mp4/i,Bo=(I.patchCanPlayType=function(){4<=re&&!he?I.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&Ro.test(t)?"maybe":Fo.call(this,t)}:ae&&(I.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&zo.test(t)?"maybe":Fo.call(this,t)})},I.unpatchCanPlayType=function(){var t=I.TEST_VID.constructor.prototype.canPlayType;return I.TEST_VID.constructor.prototype.canPlayType=Fo,t},I.patchCanPlayType(),I.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);if(t.removeAttribute("src"),"function"==typeof t.load)try{t.load()}catch(t){}}},I.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),i=e.length;i--;)t.removeChild(e[i]);if(t.removeAttribute("src"),"function"==typeof t.load)try{t.load()}catch(t){}}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(t){I.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){I.prototype["set"+l(e)]=function(t){(this.el_[e]=t)?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(t){I.prototype[t]=function(){return this.el_[t]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(e){I.prototype["set"+l(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(t){I.prototype[t]=function(){return this.el_[t]()}}),x.withSourceHandlers(I),I.nativeSourceHandler={},I.nativeSourceHandler.canPlayType=function(t){try{return I.TEST_VID.canPlayType(t)}catch(t){return""}},I.nativeSourceHandler.canHandleSource=function(t,e){return t.type?I.nativeSourceHandler.canPlayType(t.type):t.src?(t=gi(t.src),I.nativeSourceHandler.canPlayType("video/"+t)):""},I.nativeSourceHandler.handleSource=function(t,e,i){e.setSrc(t.src)},I.nativeSourceHandler.dispose=function(){},I.registerSourceHandler(I.nativeSourceHandler),x.registerTech("Html5",I),Jt(["\n        Using the tech directly can be dangerous. I hope you know 
1what you're doing.\n        See https://github.com/videojs/video.js/issues/2617 for more info.\n      "],["\n        Using the tech directly can be dangerous. I hope you know what you're doing.\n        See https://github.com/videojs/video.js/issues/2617 for more info.\n      "])),Wo=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","resize","volumechange","texttrackchange"],M=(t(O,Lo=h),O.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),O.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),Lo.prototype.dispose.call(this)},O.prototype.createEl=function(){var t,e,i=this.tag,s=void 0,n=this.playerElIngest_=i.parentNode&&i.parentNode.hasAttribute&&i.parentNode.hasAttribute("data-vjs-player"),s=this.el_=n?i.parentNode:Lo.prototype.createEl.call(this,"div"),o=(i.setAttribute("tabindex","-1"),i.removeAttribute("width"),i.removeAttribute("height"),Z(i));Object.getOwnPropertyNames(o).forEach(function(t){"class"===t?s.className+=" "+o[t]:s.setAttribute(t,o[t])}),i.playerId=i.id,i.id+="_html5_api",i.className="vjs-tech",(i.player=s.player=this).addClass("vjs-paused"),!0!==m.VIDEOJS_NO_DYNAMIC_STYLE&&(this.styleEl_=Ie("vjs-styles-dimensions"),t=ke(".vjs-styles-defaults"),(e=ke("head")).insertBefore(this.styleEl_,t?t.nextSibling:e.firstChild)),this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var r=i.getElementsByTagName("a"),a=0;a<r.length;a++){var l=r.item(a);X(l,"vjs-hidden"),l.setAttribute("hidden","hidden")}return i.initNetworkState_=i.networkState,i.parentNode&&!n&&i.parentNode.insertBefore(s,i),q(i,s),this.children_.unshift(i),this.el_.setAttribute("lang",this.language_),this.el_=s},O.prototype.width=function(t){return this.dimension("width",t)},O.prototype.height=function(t){return this.dimension("height",t)},O.prototype.dimension=function(t,e){var i=t+"_";if(void 0===e)return this[i]||0;if(""===e)this[i]=void 0;else{var s=parseFloat(e);if(isNaN(s))return void _.error('Improper value "'+e+'" supplied for for '+t);this[i]=s}this.updateStyleEl_()},O.prototype.fluid=function(t){if(void 0===t)return!!this.fluid_;this.fluid_=!!t,t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.updateStyleEl_()},O.prototype.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},O.prototype.updateStyleEl_=function(){if(!0===m.VIDEOJS_NO_DYNAMIC_STYLE)return t="number"==typeof this.width_?this.width_:this.options_.width,i="number"==typeof this.height_?this.height_:this.options_.height,void((e=this.tech_&&this.tech_.el())&&(0<=t&&(e.width=t),0<=i&&(e.height=i)));var t=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:0<this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),e=t[1]/t[0],i=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/e:this.videoWidth()||300,t=void 0!==this.height_?this.height_:i*e,s=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions";this.addClass(s),Ae(this.styleEl_,"\n      ."+s+" {\n        width: "+i+"px;\n        height: "+t+"px;\n      }\n\n      ."+s+".vjs-fluid {\n        padding-top: "+100*e+"%;\n      }\n    ")},O.prototype.loadTech_=function(t,e){var i=this,s=(this.tech_&&this.unloadTech_(),l(t)),n=t.charAt(0).toLowerCase()+t.slice(1),o=("Html5"!==s&&this.tag&&(x.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=s,this.isReady_=!1,{source:e,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+s+"_api",autoplay:this.options_.autoplay,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"]}
1),n=(os.names.forEach(function(t){t=os[t];o[t.getterName]=i[t.privateName]}),c(o,this.options_[s]),c(o,this.options_[n]),c(o,this.options_[t.toLowerCase()]),this.tag&&(o.tag=this.tag),e&&e.src===this.cache_.src&&0<this.cache_.currentTime&&(o.startTime=this.cache_.currentTime),x.getTech(t));if(!n)throw new Error("No Tech named '"+s+"' exists! '"+s+"' should be registered using videojs.registerTech()'");this.tech_=new n(o),this.tech_.ready(w(this,this.handleTechReady_),!0),oi(this.textTracksJson_||[],this.tech_),Wo.forEach(function(t){i.on(i.tech_,t,i["handleTech"+l(t)+"_"])}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===s&&this.tag||q(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},O.prototype.unloadTech_=function(){var e=this;os.names.forEach(function(t){t=os[t];e[t.privateName]=e[t.getterName]()}),this.textTracksJson_=ni(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},O.prototype.tech=function(t){return void 0===t&&_.warn(ee(Bo)),this.tech_},O.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},O.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},O.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused())try{delete this.tag.poster}catch(t){_("deleting tag.poster throws in some browsers",t)}},O.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},O.prototype.hasStarted=function(t){return void 0!==t?void(this.hasStarted_!==t&&((this.hasStarted_=t)?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))):!!this.hasStarted_},O.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},O.prototype.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return t.removeClass("vjs-waiting")})},O.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},O.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},O.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},O.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},O.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},O.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(_.warn("Passing the `starttime` option to the player will be deprecated 
1in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},O.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},O.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},O.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},O.prototype.handleTechClick_=function(t){0===t.button&&this.controls()&&(this.paused()?this.play():this.pause())},O.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},O.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},O.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},O.prototype.handleTechTouchEnd_=function(t){t.preventDefault()},O.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},O.prototype.handleStageClick_=function(){this.reportUserActivity()},O.prototype.handleTechFullscreenChange_=function(t,e){e&&this.isFullscreen(e.isFullscreen),this.trigger("fullscreenchange")},O.prototype.handleTechError_=function(){var t=this.tech_.error();this.error(t)},O.prototype.handleTechTextData_=function(){var t=1<arguments.length?arguments[1]:null;this.trigger("textdata",t)},O.prototype.getCache=function(){return this.cache_},O.prototype.techCall_=function(e,i){this.ready(function(){if(e in xs)return t=this.middleware_,this.tech_[e](t.reduce(qt(e),i));var t;try{this.tech_&&this.tech_[e](i)}catch(t){throw _(t),t}},!0)},O.prototype.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Ts)return t=this.middleware_,i=this.tech_,t.reduceRight(qt(e),i[e]());try{return this.tech_[e]()}catch(t){throw void 0===this.tech_[e]?_("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t):"TypeError"===t.name?(_("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1):_(t),t}}var t,i},O.prototype.play=function(){if(this.changingSrc_)this.ready(function(){var t=this.techGet_("play");void 0!==t&&"function"==typeof t.then&&t.then(null,function(t){})});else{if(this.isReady_&&(this.src()||this.currentSrc()))return this.techGet_("play");this.ready(function(){this.tech_.one("loadstart",function(){var t=this.play();void 0!==t&&"function"==typeof t.then&&t.then(null,function(t){})})})}},O.prototype.pause=function(){this.techCall_("pause")},O.prototype.paused=function(){return!1!==this.techGet_("paused")},O.prototype.played=function(){return this.techGet_("played")||$t(0,0)},O.prototype.scrubbing=function(t){if(void 0===t)return this.scrubbing_;this.scrubbing_=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},O.prototype.currentTime=function(t){return void 0!==t?void this.techCall_("setCurrentTime",t):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},O.prototype.duration=function(t){if(void 0===t)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(t=(t=parseFloat(t))<0?1/0:t)!==this.cache_.duration&&((this.cache_.duration=t)===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},O.prototype.remainingTime=function(){return this.duration()-this.currentTime()},O.prototype.buffered=function(){var t=this.techGet_("buffered");return t=t&&t.length?t:$t(0,0)},O.prototype.bufferedPercent=function(){return Dt(this.buffered(),this.duration())},O.prototype.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),t=t.end(t.length-1);return t=e<t?e:t},O.prototype.volume=function(t){var e=void 0;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),void(0<e&&this.lastVolume_(e))):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},O.prototype.muted=function(t){return void 0!==t?void this.techCall_("setMuted",t):this.techGet_("muted")||!1},O.prototype.defaultMuted=function(t){return void 0!==t?this.techCall_("setDefaultMuted",t):this.techGet_("defaultMuted")||!1},O.prototype.lastVolume_=function(t){return void 0!==t&&0!==t?void(this.cache_.lastVolume=t):this.cache_.lastVolume},O.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},O.prototype.isFullscreen=function(t){return void 0!==t?void(this.isFullscreen_=!!t):!!this.isFullscreen_},O.prototype.requestFullscreen=function(){var i=Ke;this.isFullscreen(!0),i.requestFullscreen?(_t(v,i.fullscreenchange,w(this,function t(e){this.isFullscreen(v[i.fullscreenElement]),!1===this.isFullscreen()&&bt(v,i.fullscreenchange,t),this.trigger("fullscreenchange")})),this.el_[i.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},O.prototype.exitFullscreen=function(){var t=Ke;this.isFullscreen(!1),t.requestFullscreen?v[t.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},O.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=v.documentElement.style.overflow,_t(v,"keydown",w(this,this.fullWindowOnEscKey)),v.documentElement.style.overflow="hidden",X(v.body,"vjs-full-window"),this.trigger("enterFullWindow")},O.prototype.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},O.prototype.exitFullWindow=function(){this.isFullWindow=!1,bt(v,"keydown",this.fullWindowOnEscKey),v.documentElement.style.overflow=this.docOrigOverflow,G(v.body,"vjs-full-window"),this.trigger("exitFullWindow")},O.prototype.canPlayType=function(t){for(var e=void 0,i=0,s=this.options_.techOrder;i<s.length;i++){var n=s[i],o=x.getTech(n);
1if(o=o||h.getComponent(n)){if(o.isSupported()&&(e=o.canPlayType(t)))return e}else _.error('The "'+n+'" tech is undefined. Skipped browser support check for that tech.')}return""},O.prototype.selectSource=function(t){function e(t,i,s){var n=void 0;return t.some(function(e){return i.some(function(t){if(n=s(e,t))return!0})}),n}function i(t,e){var i=t[0];if(t[1].canPlaySource(e,n.options_[i.toLowerCase()]))return{source:e,tech:i}}var s,n=this,o=this.options_.techOrder.map(function(t){return[t,x.getTech(t)]}).filter(function(t){var e=t[0],t=t[1];return t?t.isSupported():(_.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)});return(this.options_.sourceOrder?e(t,o,(s=i,function(t,e){return s(e,t)})):e(o,t,i))||!1},O.prototype.src=function(t){var s=this;if(void 0===t)return this.cache_.src;var n=ws(t);n.length?(this.cache_.sources=n,this.changingSrc_=!0,this.cache_.source=n[0],Yt(this,n[0],function(t,e){if(s.middleware_=e,s.src_(t))return 1<n.length?s.src(n.slice(1)):(s.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void s.triggerReady());var i;s.changingSrc_=!1,s.cache_.src=t.src,i=s.tech_,e.forEach(function(t){return t.setTech&&t.setTech(i)})})):this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},O.prototype.src_=function(t){var e,i,s=this.selectSource([t]);return!s||(e=s.tech,i=this.techName_,l(e)===l(i)?this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),"auto"===this.options_.preload&&this.load()},!0):(this.changingSrc_=!0,this.loadTech_(s.tech,s.source)),!1)},O.prototype.load=function(){this.techCall_("load")},O.prototype.reset=function(){this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},O.prototype.currentSources=function(){var t=this.currentSource(),e=[];return 0!==Object.keys(t).length&&e.push(t),this.cache_.sources||e},O.prototype.currentSource=function(){return this.cache_.source||{}},O.prototype.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},O.prototype.currentType=function(){return this.currentSource()&&this.currentSource().type||""},O.prototype.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),void(this.options_.preload=t)):this.techGet_("preload")},O.prototype.autoplay=function(t){return void 0!==t?(this.techCall_("setAutoplay",t),void(this.options_.autoplay=t)):this.techGet_("autoplay",t)},O.prototype.playsinline=function(t){return void 0!==t?(this.techCall_("setPlaysinline",t),this.options_.playsinline=t,this):this.techGet_("playsinline")},O.prototype.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),void(this.options_.loop=t)):this.techGet_("loop")},O.prototype.poster=function(t){if(void 0===t)return this.poster_;this.poster_=t=t||"",this.techCall_("setPoster",t),this.trigger("posterchange")},O.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},O.prototype.controls=function(t){return void 0!==t?void(this.controls_!==(t=!!t)&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),t?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))):!!this.controls_},O.prototype.usingNativeControls=function(t){return void 0!==t?void(this.usingNativeControls_!==(t=!!t)&&((this.usingNativeControls_=t)?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))):!!this.usingNativeControls_},O.prototype.error=function(t){return void 0===t?this.error_||null:null===t?(this.error_=t,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new e(t),this.addClass("vjs-error"),_.error("(CODE:"+this.error_.code+" "+e.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger("error"))},O.prototype.reportUserActivity=function(t){this.userActivity_=!0},O.prototype.userActive=function(t){return void 0!==t?void((t=!!t)!==this.userActive_&&((this.userActive_=t)?(this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.userActivity_=!1,this.tech_&&this.tech_.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")))):this.userActive_},O.prototype.listenForUserActivity_=function(){var e=void 0,i=void 0,s=void 0,n=w(this,this.reportUserActivity),o=(this.on("mousedown",function(){n(),this.clearInterval(e),e=this.setInterval(n,250)}),this.on("mousemove",function(t){t.screenX===i&&t.screenY===s||(i=t.screenX,s=t.screenY,n())}),this.on("mouseup",function(t){n(),this.clearInterval(e)}),this.on("keydown",n),this.on("keyup",n),void 0);this.setInterval(function(){var t;this.userActivity_&&(this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o),0<(t=this.options_.inactivityTimeout)&&(o=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},t)))},250)},O.prototype.playbackRate=function(t){return void 0!==t?void this.techCall_("setPlaybackRate",t):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},O.prototype.defaultPlaybackRate=function(t){return void 0!==t?this.techCall_("setDefaultPlaybackRate",t):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},O.prototype.isAudio=function(t){return void 0!==t?void(this.isAudio_=!!t):!!this.isAudio_}
1,O.prototype.addTextTrack=function(t,e,i){if(this.tech_)return this.tech_.addTextTrack(t,e,i)},O.prototype.addRemoteTextTrack=function(t,e){if(this.tech_)return this.tech_.addRemoteTextTrack(t,e)},O.prototype.removeRemoteTextTrack=function(){var t=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).track;if(this.tech_)return this.tech_.removeRemoteTextTrack(void 0===t?arguments[0]:t)},O.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},O.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},O.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},O.prototype.language=function(t){if(void 0===t)return this.language_;this.language_=String(t).toLowerCase()},O.prototype.languages=function(){return d(O.prototype.options_.languages,this.languages_)},O.prototype.toJSON=function(){var t=d(this.options_),e=t.tracks;t.tracks=[];for(var i=0;i<e.length;i++){var s=e[i];(s=d(s)).player=void 0,t.tracks[i]=s}return t},O.prototype.createModal=function(t,e){var i=this,s=((e=e||{}).content=t||"",new ai(this,e));return this.addChild(s),s.on("dispose",function(){i.removeChild(s)}),s.open(),s},O.getTagSettings=function(t){var e,i={sources:[],tracks:[]},s=Z(t),n=s["data-setup"];if(K(t,"vjs-fluid")&&(s.fluid=!0),null!==n&&(e=(n=si(n||"{}"))[0],n=n[1],e&&_.error(e),c(s,n)),c(i,s),t.hasChildNodes())for(var o=t.childNodes,r=0,a=o.length;r<a;r++){var l=o[r],h=l.nodeName.toLowerCase();"source"===h?i.sources.push(Z(l)):"track"===h&&i.tracks.push(Z(l))}return i},O.prototype.flexNotSupported_=function(){var t=v.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},O);function O(t,e,i){if(p(this,O),t.id=t.id||"vjs_video_"+xe++,(e=c(O.getTagSettings(t),e)).initChildren=!1,e.createEl=!1,e.reportTouchActivity=!1,!e.language)if("function"==typeof t.closest){var s=t.closest("[lang]");s&&(e.language=s.getAttribute("lang"))}else for(var n=t;n&&1===n.nodeType;){if(Z(n).hasOwnProperty("lang")){e.language=n.getAttribute("lang");break}n=n.parentNode}var o,s=g(this,Lo.call(this,null,e,i));if(s.isReady_=!1,!s.options_||!s.options_.techOrder||!s.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");s.tag=t,s.tagAttributes=t&&Z(t),s.language(s.options_.language),e.languages?(o={},Object.getOwnPropertyNames(e.languages).forEach(function(t){o[t.toLowerCase()]=e.languages[t]}),s.languages_=o):s.languages_=O.prototype.options_.languages,s.cache_={},s.poster_=e.poster||"",s.controls_=!!e.controls,s.cache_.lastVolume=1,t.controls=!1,s.scrubbing_=!1,s.el_=s.createEl(),Tt(s,{eventBusKey:"el_"});var r,i=d(s.options_),i=(e.plugins&&(r=e.plugins,Object.keys(r).forEach(function(t){if("function"!=typeof this[t])throw new Error('plugin "'+t+'" does not exist');this[t](r[t])},s)),s.options_.playerOptions=i,s.middleware_=[],s.initChildren(),s.isAudio("audio"===t.nodeName.toLowerCase()),s.controls()?s.addClass("vjs-controls-enabled"):s.addClass("vjs-controls-disabled"),s.el_.setAttribute("role","region"),s.isAudio()?s.el_.setAttribute("aria-label",s.localize("Audio Player")):s.el_.setAttribute("aria-label",s.localize("Video Player")),s.isAudio()&&s.addClass("vjs-audio"),s.flexNotSupported_()&&s.addClass("vjs-no-flex"),ne||s.addClass("vjs-workinghover"),O.players[s.id_]=s,"6.2.8".split(".")[0]);return s.addClass("vjs-v"+i),s.userActive(!0),s.reportUserActivity(),s.listenForUserActivity_(),s.on("fullscreenchange",s.handleFullscreenChange_),s.on("stageclick",s.handleStageClick_),s.changingSrc_=!1,s}os.names.forEach(function(t){var e=os[t];M.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}}),M.players={};function Vo(t){return Go.hasOwnProperty(t)}function Uo(t){return Vo(t)?Go[t]:void 0}function Yo(t,e){t.activePlugins_=t.activePlugins_||{},t.activePlugins_[e]=!0}function qo(t,e,i){i=(i?"before":"")+"pluginsetup",t.trigger(i,e),t.trigger(i+":"+e.name,e)}function Ko(e,i){function s(){qo(this,{name:e,plugin:i,instance:null},!0);var t=i.apply(this,arguments);return Yo(this,e),qo(this,{name:e,plugin:i,instance:t}),t}
1return Object.keys(i).forEach(function(t){s[t]=i[t]}),s}function Xo(n,o){return o.prototype.name=n,function(){qo(this,{name:n,plugin:o,instance:null},!0);for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var s=new(Function.prototype.bind.apply(o,[null].concat([this].concat(e))));return this[n]=function(){return s},qo(this,s.getEventHash()),s}}var Do=m.navigator,Go=(M.prototype.options_={techOrder:x.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:Do&&(Do.languages&&Do.languages[0]||Do.userLanguage||Do.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},["ended","seeking","seekable","networkState","readyState"].forEach(function(t){M.prototype[t]=function(){return this.techGet_(t)}}),Wo.forEach(function(t){M.prototype["handleTech"+l(t)+"_"]=function(){return this.trigger(t)}}),h.registerComponent("Player",M),{}),Qo=(N.prototype.getEventHash=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return t.name=this.name,t.plugin=this.constructor,t.instance=this,t},N.prototype.trigger=function(t){return wt(this.eventBusEl_,t,this.getEventHash(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}))},N.prototype.handleStateChanged=function(t){},N.prototype.dispose=function(){var t=this.name,e=this.player;this.trigger("dispose"),this.off(),e.off("dispose",this.dispose),e.activePlugins_[t]=!1,this.player=this.state=null,e[t]=Xo(t,Go[t])},N.isBasic=function(t){t="string"==typeof t?Uo(t):t;return"function"==typeof t&&!N.prototype.isPrototypeOf(t.prototype)},N.registerPlugin=function(t,e){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+(void 0===t?"undefined":me(t))+".");if(Vo(t))_.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(M.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof e)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+(void 0===e?"undefined":me(e))+".");return Go[t]=e,"plugin"!==t&&(N.isBasic(e)?M.prototype[t]=Ko(t,e):M.prototype[t]=Xo(t,e)),e},N.deregisterPlugin=function(t){if("plugin"===t)throw new Error("Cannot de-register base plugin.");Vo(t)&&(delete Go[t],delete M.prototype[t])},N.getPlugins=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Object.keys(Go),i=void 0;return t.forEach(function(t){var e=Uo(t);e&&((i=i||{})[t]=e)}),i},N.getPluginVersion=function(t){t=Uo(t);return t&&t.VERSION||""},N);function N(t){if(p(this,N),this.constructor===N)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,Tt(this),delete this.trigger,xt(this,this.constructor.defaultState),Yo(t,this.name),this.dispose=w(this,this.dispose),t.on("dispose",this.dispose)}Qo.getPlugin=Uo,Qo.BASE_PLUGIN_NAME="plugin",Qo.registerPlugin("plugin",Qo),M.prototype.usingPlugin=function(t){return!!this.activePlugins_&&!0===this.activePlugins_[t]},M.prototype.hasPlugin=function(t){return!!Vo(t)};return"undefined"==typeof HTMLVideoElement&&W()&&(v.createElement("video"),v.createElement("audio"),v.createElement("track")),r.hooks_={},r.hooks=function(t,e){return r.hooks_[t]=r.hooks_[t]||[],e&&(r.hooks_[t]=r.hooks_[t].concat(e)),r.hooks_[t]},r.hook=function(t,e){r.hooks(t,e)},r.removeHook=function(t,e){e=r.hooks(t).indexOf(e);return!(e<=-1||(r.hooks_[t]=r.hooks_[t].slice(),r.hooks_[t].splice(e,1),0))},!0!==m.VIDEOJS_NO_DYNAMIC_STYLE&&W()&&!(T=ke(".vjs-styles-defaults"))&&(T=Ie("vjs-styles-defaults"),(a=ke("head"))&&a.insertBefore(T,a.firstChild),Ae(T,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")),Ct(1,r),r.VERSION="6.2.8",r.options=M.prototype.options_,r.getPlayers=function(){return M.players},r.players=M.players,r.getComponent=h.getComponent,r.registerComponent=function(t,e){x.isTech(e)&&_.warn("The "+t+" tech w
1as registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),h.registerComponent.call(h,t,e)},r.getTech=x.getTech,r.registerTech=x.registerTech,r.use=function(t,e){Cs[t]=Cs[t]||[],Cs[t].push(e)},r.browser=ie,r.TOUCH_ENABLED=fe,r.extend=function(t){var e,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},s=function(){t.apply(this,arguments)},n={},i=("object"===(void 0===i?"undefined":me(i))?(i.constructor!==Object.prototype.constructor&&(s=i.constructor),n=i):"function"==typeof i&&(s=i),s),o=t;if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function, not "+(void 0===o?"undefined":me(o)));for(e in i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o&&(i.super_=o),n)n.hasOwnProperty(e)&&(s.prototype[e]=n[e]);return s},r.mergeOptions=d,r.bind=w,r.registerPlugin=Qo.registerPlugin,r.plugin=function(t,e){return _.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Qo.registerPlugin(t,e)},r.getPlugins=Qo.getPlugins,r.getPlugin=Qo.getPlugin,r.getPluginVersion=Qo.getPluginVersion,r.addLanguage=function(t,e){var i;return t=(""+t).toLowerCase(),r.options.languages=d(r.options.languages,((i={})[t]=e,i)),r.options.languages[t]},r.log=_,r.createTimeRange=r.createTimeRanges=$t,r.formatTime=Gt,r.parseUrl=fi,r.isCrossOrigin=Si,r.EventTarget=Oe,r.on=_t,r.one=kt,r.off=bt,r.trigger=wt,r.xhr=Hi,r.TextTrack=Ki,r.AudioTrack=Zi,r.VideoTrack=xi,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(t){r[t]=function(){return _.warn("videojs."+t+"() is deprecated; use videojs.dom."+t+"() instead"),Te[t].apply(null,arguments)}}),r.computedStyle=R,r.dom=Te,r.url=Ei,r}),function(e,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i(require("video.js")):"function"==typeof define&&define.amd?define(["videojs"],function(t){return e.Youtube=i(t)}):e.Youtube=i(e.videojs)}(this,function(e){"use strict";var t,i,s,n,o,r=e.browser.IS_IOS||e.browser.IS_ANDROID,a=e.getTech("Tech"),l=e.extend(a,{constructor:function(t,e){a.call(this,t,e),this.setPoster(t.poster),this.setSrc(this.options_.source,!0),this.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=" vjs-youtube",r&&(this.el_.parentNode.className+=" vjs-youtube-mobile"),l.isApiReady?this.initYTPlayer():l.apiReadyQueue.push(this))}.bind(this))},dispose:function(){var t;this.ytPlayer?(this.ytPlayer.stopVideo&&this.ytPlayer.stopVideo(),this.ytPlayer.destroy&&this.ytPlayer.destroy()):-1!==(t=l.apiReadyQueue.indexOf(this))&&l.apiReadyQueue.splice(t,1),this.ytPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile",""),this.el_.parentNode.removeChild(this.el_),a.prototype.dispose.call(this)},createEl:function(){var t=document.createElement("div"),e=(t.setAttribute("id",this.options_.techId),t.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute"),t.setAttribute("class","vjs-tech"),document.createElement("div"));return e.appendChild(t),r||this.options_.ytControls||((t=document.createElement("div")).setAttribute("class","vjs-iframe-blocker"),t.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),t.onclick=function(){this.pause()}.bind(this),e.appendChild(t)),e},initYTPlayer:function(){var e,i={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};void 0!==this.options_.autohide&&(i.autohide=this.options_.autohide),void 0!==this.options_.cc_load_policy&&(i.cc_load_policy=this.options_.cc_load_policy),void 0!==this.options_.ytControls&&(i.controls=this.options_.ytControls),void 0!==this.options_.disablekb&&(i.disablekb=this.options_.disablekb),void 0!==this.options_.end&&(i.end=this.options_.end),void 0!==this.options_.color&&(i.color=this.options_.color),i.controls?void 0!==this.options_.fs&&(i.fs=this.options_.fs):i.fs=0,void 0!==this.options_.end&&(i.end=this.options_.end),void 0!==this.options_.hl?i.hl=this.options_.hl:void 0!==this.options_.language&&(i.hl=this.options_.language.substr(0,2)),void 0!==this.options_.iv_load_policy&&(i.iv_load_policy=this.options_.iv_load_policy),void 0!==this.options_.list?i.list=this.options_.list:this.url&&void 0!==this.url.listId&&(i.list=this.url.listId),void 0!==this.options_.listType&&(i.listType=this.options_.listType),void 0!==this.options_.modestbranding&&(i.modestbranding=this.options_.modestbranding),void 0!==this.options_.playlist&&(i.playlist=this.options_.playlist),void 0!==this.options_.playsinline&&(i.playsinline=this.options_.playsinline),void 0!==this.options_.rel&&(i.rel=this.options_.rel),void 0!==this.options_.showinfo&&(i.showinfo=this.options_.showinfo),void 0!==this.options_.start&&(i.start=this.options_.start),void 0!==this.options_.theme&&(i.theme=this.options_.theme),void 0!==this.options_.customVars&&(e=this.options_.customVars,Object.keys(e).forEach(function(t){i[t]=e[t]})),this.activeVideoId=this.url?this.url.videoId:null,this.activeList=i.list,this.ytPlayer=new YT.Player(this.options_.techId,{videoId:this.activeVideoId,playerVars:i,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onPlaybackRateChange:this.onPlayerPlaybackRateChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onVolumeChange:this.onPlayerVolumeChange.bind(this),onError:this.onPlayerError.bind(this)}})},onPlayerReady:function(){this.options_.muted&&this.ytPlayer.mute(),1<this.ytPlayer.getAvailablePlaybackRates().length&&(this.featuresPlaybackRate=!0),this.playerReady_=!0,this.triggerReady(),this.playOnReady?this.play():this.cueOnReady&&(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)},onPlayerPlaybackQualityChange:function(){},onPlayerPlaybackRateChange:function(){this.trigger("ratechange")},onPlayerStateChange:function(t){t=t.data;if(t!==this.lastState&&!this.errorNumber)switch(this.lastState=t){case-1:this.trigger("loadstart"),this.trigger("loadedmetadata"),this.trigger("durationchange"),this.trigger("ratechange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay"),this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}},onPlayerVolumeChange:function(){this.trigger("volumechange")},onPlayerError:function(t){this.errorNumber=t.data,this.trigger("pause"),this.trigger("error")},error:function(){var t=1e3+this.errorNumber;switch(this.errorNumber){case 5:return{code:t,message:"Error while trying to play the video"};case 2:case 100:return{code:t,message:"Unable to find the video"};case 101:case 150:return{code:t,message:"Playback on other Websites has been disabled by the video owner."}}return{code:t,message:"YouTube unknown error ("+this.errorNumber+")"}},loadVideoById_:function(t){t={videoId:t};this.options_.start&&(t.startSeconds=this.options_.start),this.options_.end&&(t.endEnd=this.options_.end),this.ytPlayer.loadVideoById(t)},cueVideoById_:function(t){t={videoId:t};this.options_.start&&(t.startSeconds=this.options_.start),this.options_.end&&(t.endEnd=this.options_.end),this.ytPlayer.cueVideoById(t)},src:function(t){return t&&this.setSrc({src:t}),this.source},poster:function(){return r?null:this.poster_},setPoster:function(t){this.poster_=t},setSrc:function(t){t&&t.src&&(delete this.errorNumber,this.source=t,this.url=l.parseUrl(t.src),this.options_.poster||this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg",this.trigger("posterchange"),this.checkHighResPoster()),this.options_.autoplay&&!r?this.isReady_?this.play():this.playOnReady=!0:this.activeVideoId!==this.url.videoId&&(this.isReady_?(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):this.cueOnReady=!0))},autoplay:function(){return this.options_.autoplay},setAutoplay:function(t){this.options_.autoplay=t},loop:function(){return this.options_.loop},setLoop:function(t){this.options_.loop=t},play:function(){this.url&&this.url.videoId&&(this.wasPausedBeforeSeek=!1,this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.loadVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))},pause:function(){this.ytPlayer&&this.ytPlayer.pauseVideo()},paused:function(){return!this.ytPlayer||this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING},currentTime:function(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0},setCurrentTime:function(t){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(t,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==t&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval(function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked()):clearInterval(this.checkSeekedInPauseInterval)}.bind(this),250))},seeking:function(){return this.isSeeking},seekable:function(){return this.ytPlayer?e.createTimeRange(0,this.ytPlayer.getDuration()):e.createTimeRange()},onSeeked:function(){clearInterval(this.checkSeekedInPauseInterval),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause(),this.trigger("seeked")},playbackRate:function(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1},setPlaybackRate:function(t){this.ytPlayer&&this.ytPlayer.setPlaybackRate(t)},duration:function(){return this.ytPlayer?this.ytPlayer.getDuration():0},currentSrc:function(){return this.source&&this.source.src},ended:function(){return!!this.ytPlayer&&this.lastState===YT.PlayerState.ENDED},volume:function(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1},setVolume:function(t){this.ytPlayer&&this.ytPlayer.setVolume(100*t)},muted:function(){return!!this.ytPlayer&&this.ytPlayer.isMuted()},setMuted:function(t){this.ytPlayer&&(this.muted(!0),t?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout(function(){this.trigger("volumechange")},50))},buffered:function(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return e.createTimeRange();var t=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return e.createTimeRange(0,t)},preload:function(){},load:function(){},reset:function(){},supportsFullScreen:function(){return!0},checkHighResPoster:function(){var t="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var e=new Image;e.onload=function(){if("naturalHeight"in e){if(e.naturalHeight<=90||e.naturalWi
1dth<=120)return}else if(e.height<=90||e.width<=120)return;this.poster_=t,this.trigger("posterchange")}.bind(this),e.onerror=function(){},e.src=t}catch(t){}}});l.isSupported=function(){return!0},l.canPlaySource=function(t){return l.canPlayType(t.type)},l.canPlayType=function(t){return"video/youtube"===t},l.parseUrl=function(t){var e={videoId:null},i=t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);i&&11===i[2].length&&(e.videoId=i[2]);return(i=t.match(/[?&]list=([^#\&\?]+)/))&&i[1]&&(e.listId=i[1]),e},l.apiReadyQueue=[],"undefined"!=typeof document&&(t="https://www.youtube.com/iframe_api",s=!(i=function(){YT.ready(function(){l.isApiReady=!0;for(var t=0;t<l.apiReadyQueue.length;++t)l.apiReadyQueue[t].initYTPlayer()})}),n=document.createElement("script"),(o=document.getElementsByTagName("script")[0]).parentNode.insertBefore(n,o),n.onload=function(){s||(s=!0,i())},n.onreadystatechange=function(){s||"complete"!==this.readyState&&"loaded"!==this.readyState||(s=!0,i())},n.src=t,o=".vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }.vjs-youtube-mobile .vjs-big-play-button { display: none; }",n=document.head||document.getElementsByTagName("head")[0],(t=document.createElement("style")).type="text/css",t.styleSheet?t.styleSheet.cssText=o:t.appendChild(document.createTextNode(o)),n.appendChild(t)),void 0!==e.registerTech?e.registerTech("Youtube",l):e.registerComponent("Youtube",l)});var supportsTouch="ontouchstart"in window||0<navigator.maxTouchPoints,width=window.innerWidth,moreHTML='<li class="more-link"><a href="#">More</a><ul class="child-nav"></ul></li>',iOS=/(iPad|iPhone|iPod)/g.test(navigator.userAgent);function mobileNav(){$("nav").addClass("showMobile"),$(".close-nav").addClass("showMobile"),$(".hamburger-menu").hide(),$("body").css("top",-document.body.scrollTop+"px").addClass("noScroll");var t=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",t+"px")}function mobileNavClose(){var t=$("body").attr("style").slice(6).slice(0,-3);$("nav").removeClass("showMobile"),$(".close-nav").removeClass("showMobile"),$(".hamburger-menu").show(),$("body").removeClass("noScroll"),window.scrollTo(0,t),$(".child-nav").removeClass("showMobile"),$(".fa-minus").each(function(){$(this).removeClass("fa-minus").addClass("fa-plus")})}function mobileNavExpand(t){$(t).toggleClass("fa-plus").toggleClass("fa-minus"),$(t).siblings(".child-nav").toggleClass("showMobile")}function appendLink(){var e,i=$(".fullmenu nav").width();moreLinkWidth=$(".top-nav").children().hasClass("more-link")?(e=$(".more-link").width(),$(".more-link").width()):e=70,$("#divMainMenu").css("overflow","hidden"),$(".top-nav > li").each(function(t){e+=$(this).width()+2,i<=e&&($(this).hide(),$(".top-nav").children().hasClass("more-link")?$(this).show().appendTo(".more-link > .child-nav"):($(moreHTML).appendTo(".top-nav"),$(this).show().appendTo(".more-link > ul.child-nav")))})}var appendLinkCondense=_.throttle(function(){var i,s=$("#divMainMenu").width(),n=($(".top-nav").children().hasClass("more-link"),$(this).hasClass("more-link")),o=(currentLiWidth=$(".top-nav").children().hasClass("more-link")?(i=$(".more-link").width()+20,moreLinkWidth=$(".more-link").width()+20,$(".more-link").width()+20):(moreLinkWidth=i=70,0),$(".more-link > .child-nav")),r=2;$(".top-nav > li").each(function(){var t,e=$(this);n||(t=e.children()[0].offsetWidth,e.children()[0].innerText.length,i+=t),s<i&&($(".top-nav").children().hasClass("more-link")||($(moreHTML).appendTo(".top-nav"),r=1),n||$(".top-nav ").children("li:nth-last-child("+r+")").prependTo(o))})},300,{leading:!1}),appendLinkExpand=_.throttle(function(){var t,s,e,n,o,r,a,l,h,c,u=$("#divMainMenu").width(),d=$(".top-nav").children().hasClass("more-link"),p=$(".more-link > .child-nav").children().length;moreLinkWidth=$(".top-nav").children().hasClass("more-link")?(n=$(".more-link").width()+20,$(".more-link").width()+20):n=70;$(".top-nav > li").each(function(){if($(this).hasClass("more-link")){if(0<$(this).children(".child-nav").children().length)for(i=0;i<p;i++)n<u&&(s=$(".more-link > .child-nav").children()[i],e=s.offsetWidth,n+=e)}else n+=$(this).width()}),t=n,iOS=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),u<t&&!d&&0==iOS?(c=$("#divMainMenu").width(),moreLinkWidth=$(".top-nav").children().hasClass("more-link")?(h=$(".more-link").width()+20,$(".more-link").width()+20):h=70,$(".top-nav >
1 li").each(function(t){var e=$(".top-nav").children().hasClass("more-link"),i=$(this),s=i.width();c<(h+=s)&&!e?($(moreHTML).appendTo(".top-nav"),i.appendTo(".more-link > .child-nav")):c<h&&e&&i.appendTo(".more-link > .child-nav")})):u<t&&d&&0==iOS&&(a=$("#divMainMenu").width(),l=$(".top-nav").children().hasClass("more-link")?(r=$(".more-link").width()+20,$(".more-link").width()+20):r=70,$(".top-nav > li").each(function(){if($(this).hasClass("more-link")){if(0<$(this).children(".child-nav").children().length){var t=$(".more-link > .child-nav").children().length,e=[];for(i=0;i<t;i++)s=$(".more-link > .child-nav").children()[i],o=$(".more-link > .child-nav").children("li").children("a")[i].innerHTML.length,(r+=9.5*o+40)<a&&(e.push($(".more-link > .child-nav").children()[i]),$(".more-link > .child-nav").children().length<=1&&($(".more-link").remove(),r-=l));$(e).insertBefore("li.more-link")}}else r+=$(this).width()}))},300,{leading:!1});function childNavDirection(){var i;!supportsTouch&&width<1025||(i=$(window).width(),$(".child-nav > li a").mouseenter(function(){var t,e;$(this).siblings().hasClass("child-nav")&&(t=$(this).parent("li").width(),e=$(this).parent("li").offset().left,t<i-(t+e)?$(this).siblings(".child-nav").css({position:"absolute",width:"auto"}):$(this).siblings(".child-nav").css({position:"absolute",right:t,left:"auto",width:"auto"}))}),$(".child-nav > li a").focus(function(){var t,e;$(this).siblings().hasClass("child-nav")&&(t=$(this).parent("li").width(),e=$(this).parent("li").offset().left,t<i-(t+e)?$(this).siblings(".child-nav").css({position:"absolute",width:"auto"}):$(this).siblings(".child-nav").css({position:"absolute",right:t,left:"auto",width:"auto"}))}),$(".top-nav > li > a").mouseenter(function(){var t,e;$(this).siblings().hasClass("child-nav")&&(t=$(this).parent("li").width(),e=$(this).parent("li").offset().left,t<i-(t+e)?$(this).siblings(".child-nav").css({position:"absolute",width:"auto"}):$(this).siblings(".child-nav").css({position:"absolute",right:0,left:"auto",width:"auto"}))}),$(".top-nav > li > a").focus(function(){var t,e;$(this).siblings().hasClass("child-nav")&&(t=$(this).parent("li").width(),e=$(this).parent("li").offset().left,t<i-(t+e)?$(this).siblings(".child-nav").css({position:"absolute",width:"auto"}):$(this).siblings(".child-nav").css({position:"absolute",right:0,left:"auto",width:"auto"}))}),$(".more-link").mouseenter(function(){$(" > .child-nav",this).width(),$(this).offset().left;$(this).children(".child-nav").css({position:"absolute",width:"auto"})}),$(".more-link > a").focus(function(){$(" > .child-nav",this).width(),$(this).offset().left;$(this).siblings(".child-nav").css({position:"absolute",width:"auto"})}))}function disableChildNavDirection(){$("li > a").mouseenter(function(){$(this).removeAttr("style"),$(this).siblings(".child-nav").removeAttr("style")}),$(".dropdown-scroll, .child-nav").unbind(),$(".dropdown-scroll, .child-nav").bind("DOMMouseScroll mousewheel",function(t){$(".child-nav").removeAttr("style")})}function childNavScroll(){var t;!supportsTouch&&width<1025||($(".dropdown-scroll, .child-nav").unbind(),t=$(window).height()-$("header").height(),$(".top-nav > li a").mouseenter(function(){$(this).siblings(".child-nav").css("transform","translateY(0px)");var i=0,e=0;$(this).siblings().hasClass("child-nav")&&($($(this).siblings(".child-nav").children("li")).each(function(t){e+=$(this).height()}),t<e&&t!=e&&($(this).siblings(".child-nav").css({height:t}),$(this).siblings(".child-nav").addClass("dropdown-scroll"),$(".dropdown-scroll").bind("DOMMouseScroll mousewheel",function(t){t.preventDefault();var e=$(this).children().children("a").height();0<t.originalEvent.wheelDelta||t.originalEvent.detail<0?(i=i+30+e)<0?$(this).css({transform:"translateY("+i+"px)"}):$(this).css({transform:"translateY(0px)"}):(i=i-30-e)<0?$(this).css({transform:"translateY("+i+"px)"}):$(this).css({transform:"translateY(0px)"})})))}).mouseleave(function(){scrollDistance=0,$(this).siblings(".child-nav").css("transform","translateY(0px)"),$(".dropdown-scroll").removeClass("dropdown-scroll")}))}
1function grandchildNavScroll(){var t;!supportsTouch&&width<1025||($(".dropdown-scroll, .child-nav").unbind(),t=$(window).height()-$("header").height(),$($("nav ul.child-nav > li > a ")).mouseenter(function(){$(this).siblings(".child-nav").css("transform","translateY(0px)");var i=0,e=0;$(this).siblings().hasClass("child-nav")&&($($(this).siblings(".child-nav").children("li")).each(function(t){e+=$(this).height()}),t<e&&t!=e&&($(this).siblings(".child-nav").css({height:t}),$(this).siblings(".child-nav").addClass("dropdown-scroll"),$(".dropdown-scroll").bind("DOMMouseScroll mousewheel",function(t){t.preventDefault();var e=$(this).children().children("a").height();0<t.originalEvent.wheelDelta||t.originalEvent.detail<0?(i++,(i+=e)<0?$(this).css({transform:"translateY("+i+"px)"}):$(this).css({transform:"translateY(0px)"})):(i--,(i-=e)<0?$(this).css({transform:"translateY("+i+"px)"}):$(this).css({transform:"translateY(0px)"}))})))}).mouseleave(function(){scrollDistance=0,$(this).siblings(".child-nav").css("transform","translateY(0px)"),$(".dropdown-scroll").removeClass("dropdown-scroll")}))}function navAfterWidth(){var t=$("#main-menu").width(),e=$(window).width();document.documentElement.style.setProperty("--afterWidth",(e-t)/2+"px")}var timeoutId,timeoutId1,timeoutId2,timeoutId3,resizeWidth,noScroll=function(){var t,e,i=$("header.fixed-shrink").height();$(window).on("scroll",function(){t=document.documentElement.scrollTop}),$("nav").mouseenter(function(){t=-(e=t)+"px",$("body").css("top",t),$(document).height()>$(window).height()?$("body").addClass("noScrollTall"):$("body").addClass("noScrollShort"),i<e&&$("header").addClass("scrolled-head-temp")}).mouseleave(function(){$("body").css("top","auto").removeClass("noScrollTall noScrollShort"),$(window).scrollTop(e),$("header").removeClass("scrolled-head-temp")})};function tabFunction(){window.addEventListener("keydown",function(t){s[t.keyCode]=!0,9===(i=t.which||t.keyCode)&&t.shiftKey&&($(".itemFocus").focusout(function(){$(this).removeClass("itemFocus")}),s[t.shiftKey]=!1,i=!1,$(":focus").offset().top>=$(window).height()-100&&0<$(":focus").closest(".child-nav").length?(e=parseInt($(":focus").closest(".child-nav").css("margin-top").replace("px","")),e-=40,$(":focus").closest(".child-nav").css("marginTop",e+"px")):$(":focus").offset().top<=100&&0<$(":focus").closest(".child-nav").length&&(e=parseInt($(":focus").closest(".child-nav").css("margin-top").replace("px","")),e/=2,$(":focus").closest(".child-nav").css("margin-top",e+"px")));{var e;9!==i||t.shiftKey||($(".itemFocus").focusout(function(){$(this).hasClass("itemFocus")||$(this).addClass("itemFocus")}),$(".child-nav > li > a.itemFocus ~ .child-nav > li:last-child").children("a").focusout(function(){$(this).parent("li").parent(".child-nav").siblings(".itemFocus").removeClass("itemFocus")}),$(".top-nav > li > a.itemFocus ~ .child-nav > li:last-child").children("a").focusout(function(){$(this).siblings(".child-nav").children().hasClass("itemFocus")||$(this).parent("li").parent(".child-nav").siblings(".itemFocus").removeClass("itemFocus")}),$(":focus").offset().top>=$(window).height()-100&&0<$(":focus").closest(".child-nav").length?(e=parseInt($(":focus").closest(".child-nav").css("margin-top").replace("px","")),e-=80,$(":focus").closest(".child-nav").css("marginTop",e+"px")):$(":focus").offset().top<=100&&0<$(":focus").closest(".child-nav").length&&(t=parseInt($(":focus").closest(".child-nav").css("margin-top").replace("px","")),t/=2,$(":focus").closest(".child-nav").css("margin-top",t+"px")))}$(":focus").closest("ul").hasClass("top-nav")&&($("ul.child-nav").each(function(){$(this).css("margin-top","0px")}),window.scrollTo(0,0));$("ul.child-nav").each(function(){$(this).removeClass("nav-item-focused")}),$(":focus").parents("ul.child-nav").each(function(){$(this).addClass("nav-item-focused")})}),window.addEventListener("keyup",function(t){s[t.keyCode]=!1,s[t.shiftKey]=!1,i=!1,$("ul.child-nav").each(function(){$(this).removeClass("nav-item-focused")}),$(":focus").parents("ul.child-nav").each(function(){$(this).addClass("nav-item-focused")})});var i,s=[];$("#main-menu li a").on("focus",function(){$(this).siblings().hasClass("child-nav")&&$(this).addClass("itemFocus")}),$(window).on("click",function(){$(".itemFocus").removeClass("itemFocus"),$("ul.child-nav").each(function(){$(this).removeClass("nav-item-focused")})})}$(function(){1025<=width&&($("header").css("overflow","hidden"),$("#divMainMenu").css("overflow","hidden"),appendLink(),childNavDirection(),navAfterWidth(),childNavScroll(),grandchildNav
1Scroll(),tabFunction()),$("header").css("overflow","visible"),$("#divMainMenu").css("overflow","visible")}),window.onresize=function(){iOS=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),window.clearTimeout(timeoutId),window.clearTimeout(timeoutId1),window.clearTimeout(timeoutId2),window.clearTimeout(timeoutId3),$(window).width()!=width&&(preAction(),timeoutId=window.setTimeout(action1,300),timeoutId1=window.setTimeout(action2,500),timeoutId2=window.setTimeout(action3,1e3),timeoutId3=window.setTimeout(action4,1500))};var memberId,viewStmt,etsmemberID,memberFirstName,memberLastName,unbilledBalance,currentStmtPeriod,lastStmtBalance,unspentMinimumTitle,unspentMinimumBalance,domain,showMin,showAmount,etsClientID,stmtLandingPage,totalLevyBalance,preAction=function(){resizeWidth=window.innerWidth,(!supportsTouch&&1025<=width||!supportsTouch&&1025<=resizeWidth)&&($("header").css("overflow","hidden"),$("#divMainMenu").css("overflow","hidden"))},action1=function(){var t;(supportsTouch||resizeWidth<1025)&&(t=.01*window.innerHeight,document.documentElement.style.setProperty("--vh",t+"px"),t=$(".more-link > .child-nav").children(),$(t).insertBefore("li.more-link"),$(".more-link > .child-nav").children().length<1&&$(".more-link").remove(),$(".child-nav").removeAttr("style"))},action2=function(){!supportsTouch&&1025<=resizeWidth&&(resizeWidth<width?appendLinkCondense:appendLinkExpand)(),width=resizeWidth},action3=function(){!supportsTouch&&1025<=width&&(childNavScroll(),grandchildNavScroll(),navAfterWidth()),(supportsTouch||width<1025)&&disableChildNavDirection()},action4=function(){!supportsTouch&&1025<=resizeWidth&&(childNavDirection(),tabFunction()),$("header").css("overflow","visible"),$("#divMainMenu").css("overflow","visible")}
1,accountApp=($(function(){var e=$("header").height();$(".skip-link").click(function(){return $("html, body").animate({scrollTop:$("#content").offset().top-e},500),$("#content").focus(),!1}),$(".skip-link").keypress(function(t){if(13==t.which)return t.preventDefault(),$("html, body").animate({scrollTop:$("#content").offset().top-e},500),$("#content").focus(),!1})}),{}),memberAccount={},companySetting={},accountSummary={};function tabSmall(){$(".small .full-width-tabmenu").hide(),$(".small #tab-mobile-selection").click(function(){$(this).next().show()}),$(".small .tab-content-nav li").click(function(t){$(this).parent().siblings("#tab-mobile-selection").text($(this).text()),$(this).parent(".small .full-width-tabmenu").hide(),$(".small li").removeAttr("style"),$(this).addClass("active-tab")})}accountApp.init=function(){memberAccount=$.ajax({method:"GET",datatype:"application/json",cache:!1,url:"/api/v1/roster/getcurrentMember",success:function(t){memberId=t.memberId,viewStmt=t.allowViewStatement,etsmemberID=t.etseMoneyCustomerID,memberFirstName=t.firstName,memberLastName=t.lastName}}),$.when(memberAccount).then(function(t){memberId=t.memberId,accountSummary=$.ajax({method:"GET",datatype:"application/json",cache:!1,url:"/api/v1/statements/GetAccountSummary/"+memberId+"/true",success:function(t){accountApp.loadData(t)}})})},accountApp.loadData=function(t){domain=t.statementSettings.currentDomain,etsClientID=t.statementSettings.etsEmoneyClientID,currentStmtPeriod=t.accountLastUpdated,lastStmtBalance=null!=t.unbilledStatements?t.unbilledStatements[0].balance:"N/A",showMin=t.statementSettings.showMinimums,showAmount=t.statementSettings.showAmount,stmtLandingPage=t.statementSettings.statementLandingPage,unbilledBalance=t.currentBalanceDueStr||t.lastStatementBalanceStr||"N/A",null==lastStmtBalance&&(lastStmtBalance="N/A"),totalLevyBalance=null!=t.totalLevyBalance?t.totalLevyBalance:"N/A",0==showMin&&$(".minium-plan").addClass("hidden");var e="",e=(0==stmtLandingPage?e="/Statements.aspx#!/period/"+(null!=t.unbilledStatements&&null!=t.unbilledStatements[0].id?t.unbilledStatements[0].id:""):1==stmtLandingPage?e="/Statements.aspx#!/period/"+(null!=t.billedStatements&&null!=t.billedStatements[0].id?t.billedStatements[0].id:""):2==stmtLandingPage?e="/Statements.aspx/Summary":3==stmtLandingPage&&(e="/Statements.aspx#!/levy/"+(null!=t.unbilledStatements&&null!=t.unbilledStatements[0].id?t.unbilledStatements[0].id:"")),$(".balance-amount").html(unbilledBalance),$(".last-stmt-period").html(currentStmtPeriod),$(".last-stmt-balance").html(lastStmtBalance),$(".stmtLandingLink").attr("href",e),$(".account-widget-paynow").attr("href",e),$(".levyBalance-balance").html(totalLevyBalance),t.minimums),t=(e=null===e?[0]:e).map(function(t){var e=t.description,t=t.unspentMinimum;return'<div class="minimum-section"><div class="min-title">'+(e=null==t?"N/A":e)+'</div><div class="unspent-min">'+(t=null==t?"N/A":t)+"</div></div>"});$(".minium-plan .balance-acct-section").html(t)},$(function(){($(".account-summary-widget")[0]||$(".mobile-account-summary-widget")[0])&&accountApp.init()}),$(function(){var t,s=[],e=localStorage.getItem("close");null!=e&&(t=e.split(","),0<(s=t).length&&$(".announcement-slide").each(function(){var t=$(this).data("content");e.includes(t)&&$(this).remove()})),0<$(".announcement-widget-content .announcebar-badge").length&&$(".announcement-widget-content").removeClass("hidden"),$(".announcement-widget-content").slick({slidesToShow:1,slidesToScroll:1,autoplaySpeed:7e3,autoplay:!0,arrows:!1,fade:!0,adaptiveHeight:!0,cssEase:"linear",dots:!1}),$(".announcement-widget-content .announcebar-badge").length<=1&&$(".announcebar-badge").remove(),document.querySelectorAll(".announcement-bar-widget").forEach(function(t){var e=t.querySelectorAll(".slick-slide");e.forEach(function(t){t=t.querySelector(".announcebar-badge");$(t).text(e.length)})}),$(".slick-slide .slide-close").keypress(function(t){13==t.which&&$(this).click()}),$(".slick-slide .slide-close").on("click",function(t){var e=t.currentTarget.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.id,i=0,t=$(this).parent().parent().attr("data-slick-index");1==$("#"+e+" .announcement-widget-content .slick-slide").length&&setTimeout(function(){document.getElementById(e).remove()},1e3);1<$("#"+e+" .announcement-widget-content .slick-slide").length&&($("#"+e+" .announcement-widget-content").slick("slickRemove",t),$("#"+e+" .announcement-widget-content .slick-slide").each(function(){$(this).attr("data-slick-index",i),i++,$("#"+e+" .announcebar-badge").text($("#"+e+" .announcement-widget-content .slick-slide").length)}));$(".announcement-widget-content .announcebar-badge").length;
1t=$(this).parent().parent().data("content");return s.push(t),localStorage.setItem("close",JSON.stringify(s)),s})}),$(function(){var e;$(".FormPanel")&&(e=0,$('input[type="submit"].FormButton').on("click",function(t){1<++e&&(this.disabled=!0,this.value="Submitting...")}))}),$(function(){var e;$("#locale")&&(e=$("#locale")[0].value||"en-US",$(".blog-news-date")[0]&&$(".blog-news-date").each(function(){var t=new Date(this.innerText);isNaN(Date.parse(t))||(this.innerText=t.toLocaleString(e,{timeStyle:"medium",dateStyle:"short"}))}))}),$(".cards-carousel").slick({infinite:!0,slidesToShow:3,slidesToScroll:1,arrows:!0,responsive:[{breakpoint:1200,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:767,settings:{arrows:!1,centerMode:!0,centerPadding:"30px",slidesToShow:1,slidesToScroll:1}}]});var blogWidget={theme:function(){var t=$(".blog-news-top-content").attr("class").split(" ").pop();$(".blog-news-article-widget").addClass(t)}};function countdownWidget(){var t=new Date,e=t.getDate(),i=t.getMonth()+1,s=t.getFullYear();e<10&&(e="0"+e),i<10&&(i="0"+i);$(".countdown-widget").each(function(){t=s+"/"+i+"/"+e+" 00:00:00",$(".countdown-container").countdown(t).on("update.countdown",function(t){$(this).children().children("#countdown-days").text(t.strftime("%D")),$(this).children().children("#countdown-hours").text(t.strftime("%-H")),$(this).children().children("#countdown-mins").text(t.strftime("%M")),$(this).children().children("#countdown-secs").text(t.strftime("%S"))}).on("finish.countdown",function(t){$(this).html('<h3 class="col-xs-12 text-center">This offer has expired!</h3> <img src="img/lion.jpg" alt="alternative text">').parent().addClass("disabled")})})}$(function(){var e,i,t=$("header.fixed-shrink"),s=$(window).height(),n=$(document).height(),o=(0<t.length&&(e=$("header.fixed-shrink").height(),$(window).scroll(function(){var t=$(window).scrollTop();t+s!=n&&(e<t?$("header.fixed-shrink").addClass("scrolled-head"):$("header.fixed-shrink").removeClass("scrolled-head"))})),$(".app_prompt_install"));0<o.length&&(i=o.height(),$(window).scroll(function(){var t=$(window).scrollTop();t+s!=n&&(i<t?o.addClass("scrolled-head"):o.removeClass("scrolled-head"))})),$(".skip-link").on("focus",function(){$(".wgt-header").addClass("sr-on")}),$(".skip-link").focusout(function(){$(".wgt-header").removeClass("sr-on")}),$(".blog-news-article-widget")[0]&&blogWidget.theme(),$(".scroll-chevron .fa").click(function(){$("html, body").animate({scrollTop:$(this).offset().top},300)}),$(".tab-content .tab-content-nav li").each(function(){$(this).click(function(){$(this).parents(".tab-content").find(".active-tab").removeClass("active-tab");var t=$(this).attr("data-tab"),e="div[data-tab='"+t+"']";$(this).addClass("active-tab"),$(".tab-content .tab-content-nav select").val(t),$(this).hasClass("active-tab")&&$(this).parents(".tab-content-nav").next().find($(e)).addClass("active-tab")}),$(this).parent().siblings($(".small #tab-mobile-selection")).text($(this).parent().children("li.active-tab").text()),1==$(this).parents(".col-50-left, .col-50-right, .col-30-left, .col-30-right").length&&($(this).parents(".tab-content").addClass("small"),tabSmall()),$(window).width()<1199&&($(this).parents(".tab-content").addClass("small"),tabSmall()),1199<$(window).width()&&($(this).parents(".tab-content").removeClass("small"),$(this).parent().removeAttr("style"),$(this).removeAttr("style"))}),$(window).resize(function(){$(".tab-content .tab-content-nav li").each(function(){$(window).width()<1199&&($(this).parents(".tab-content").addClass("small"),tabSmall()),1199<$(window).width()&&($(this).parents(".tab-content").removeClass("small"),$(this).parent().removeAttr("style"),$(this).removeAttr("style"))})}),$(".amenities-carousel-active").slick({infinite:!0,slidesToShow:5,slidesToScroll:1,responsive:[{breakpoint:1200,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}),$(".collapse").on("shown.bs.collapse",function(){$(this).parent().find(".fa-angle-down").removeClass("fa-angle-down").addClass("fa-angle-up")}).on("hidden.bs.collapse",function(){$(this).parent().find(".fa-angle-up").removeClass("fa-angle-up").addClass("fa-angle-down")}),$(".sitemap-heading").click(function(){$(window).width()<=767&&($(this).parent().find(".sitemap-list-group").hasClass("sitemap-hide")?($(this).parent().find(".sitemap-list-group").slideDown().removeClass("sitemap-hide"),$(this).parent().find(".fa-angle-down").removeClass("fa-angle-down").addClass("fa-angle-up")):($(this).parent().find(".sitemap-list-group").slide
1Up().addClass("sitemap-hide"),$(this).parent().find(".fa-angle-up").removeClass("fa-angle-up").addClass("fa-angle-down"))),$(window).resize(function(){$(window).width()<=767?($(".sitemap-heading").parent().find(".sitemap-list-group").slideUp().addClass("sitemap-hide"),$(this).parent().find(".sitemap-list-group").hasClass("sitemap-hide")?($(this).parent().find(".sitemap-list-group").slideDown().removeClass("sitemap-hide"),$(this).parent().find(".fa-angle-down").removeClass("fa-angle-down").addClass("fa-angle-up")):($(this).parent().find(".sitemap-list-group").slideUp().addClass("sitemap-hide"),$(this).parent().find(".fa-angle-up").removeClass("fa-angle-up").addClass("fa-angle-down"))):$(".sitemap-heading").parent().find(".sitemap-list-group").slideDown().removeClass("sitemap-hide")})}),$(".testimonial-widget-content").slick({slidesToShow:1,slidesToScroll:1,interval:1e4,autoplay:!0,arrows:!1,dots:!0}),$(".side-menu-list li a").click(function(t){t.preventDefault(),$(this).closest("li").find(".submenu-list").first().slideToggle(300).addClass("expanded"),$(this).closest("li").find(".expand-arrow").hasClass("fa-angle-down")?$(this).closest("li").find(".expand-arrow").removeClass("fa-angle-down").addClass("fa-angle-up"):$(this).closest("li").find(".expand-arrow").removeClass("fa-angle-up").addClass("fa-angle-down")}),countdownWidget()}),$(function(){$(".list-view .contact-card-item > a").click(function(t){t.preventDefault(),$(this).siblings(".card-details").slideToggle(300),$(this).parent().toggleClass("expand"),$(this).parent().find(".expand-arrow").toggleClass("fa-angle-down fa-angle-up")}),$(".contact-card-widget .contact-card-item .read-more").click(function(t){t.preventDefault(),$(this).siblings(".card-details").children(".card-bio").toggleClass("expand"),$("i",this).toggleClass("fa-angle-down fa-angle-up")})}),$(function(){document.getElementById("menu-button2")&&document.getElementById("menu-button2").addEventListener("click",function(){document.getElementById("menu-button").removeAttribute("style")})}),window.addEventListener("keydown",function(t){"1"==t.key&&(localStorage.removeItem("firstAccess"),localStorage.removeItem("toDate"),localStorage.removeItem("weatherForecast"),localStorage.removeItem("weatherFullListing"))},!0),$(function(){$(window).width()<768&&$(".dropdown-nav-selected-tab .dropdown-nav-selection").on("click",function(t){t.preventDefault(),$(this).parent().siblings(".dropdown-nav-submenu-list").toggleClass("display-block position-absolute"),$(this).toggleClass("dropdown-expand"),$(".dropdown-nav-submenu-list .dropdown-nav-submenu").each(function(){$(this).click(function(t){t.preventDefault();var t=$(this).attr("data-tab"),t=$("div[data-tab='"+t+"']"),e=$(this).html();$(this).parents(".dropdown-nav-submenu-list").find(".active-tab").removeClass("active-tab"),$(this).addClass("active-tab"),$(this).parent().siblings().children().removeClass("dropdown-expand"),$(this).hasClass("active-tab")&&($(this).parents(".dropdown-nav-submenu-list").parent().siblings().children().children(".order-menu-list").removeClass("active-tab").addClass("hidden"),$(this).parents(".dropdown-nav-submenu-list").parent().siblings().children().find(t).removeClass("hidden").addClass("active-tab")),$(".dropdown-nav-submenu-list").removeClass("display-block position-absolute"),$(this).parent().siblings().children().html(e)})})})}),$(function(){$(".widget-scorecard-title .hole").each(function(){$(this).click(function(t){t.preventDefault();t=$(this).attr("data-tab"),t=$("div[data-tab='"+t+"']");$(this).parents(".widget-scorecard-title").find(".active-tab").removeClass("active-tab"),$(this).parents(".widget-scorecard-title-wrapper").siblings().addClass("hidden"),$(".widget-scorecard-stats-par, .widget-scorecard-title-static div").addClass("hidden"),$(this).addClass("active-tab"),$(window).width()<1025&&$(".widget-scorecard-display-holes-title").addClass("add-bkgd-color"),$(this).hasClass("active-tab")&&($(this).parents(".widget-scorecard-display-holes").next().children().removeClass("active-tab").addClass("hidden"),$(this).parents(".widget-scorecard-display-holes").siblings().find(t).removeClass("hidden").addClass("active-tab"))}),$(".close-details").on("click",function(){$(".widget-scorecard-display-holes-title div, .widget-scorecard-display-holes div").removeClass("hidden"),$(".widget-scorecard-detail
1s > div").addClass("hidden"),$(".widget-scorecard-display-holes-title").removeClass("add-bkgd-color")})}),$(window).width()<768?$(".widget-scorecard-selected-tab .tab").on("click",function(t){t.preventDefault(),$(".widget-scorecard-tab").toggleClass("display-block position-absolute"),$(this).toggleClass("expanded-tab"),$(".widget-scorecard-tab .tab").each(function(){$(this).click(function(t){t.preventDefault();var t=$(this).attr("data-tab"),t=$("div[data-tab='"+t+"']"),e=$(this).html();$(this).parents(".widget-scorecard-tab").find(".active-tab").removeClass("active-tab"),$(this).addClass("active-tab"),$(this).parent().siblings().children().removeClass("expanded-tab"),$(this).hasClass("active-tab")&&($(this).parents(".widget-scorecard-tab").parent().siblings().children().removeClass("active-tab").addClass("hidden"),$(this).parents(".widget-scorecard-tab").parent().siblings().find(t).removeClass("hidden").addClass("active-tab")),$(".widget-scorecard-display-holes-title div, .widget-scorecard-display-holes div").removeClass("hidden"),$(".widget-scorecard-details > div").addClass("hidden"),$(".widget-scorecard-tab").removeClass("display-block position-absolute"),$(this).parent().siblings().children().html(e)})})}):($(".widget-scorecard-tab .tab:first").addClass("active-tab"),$(".widget-scorecard-tab .tab").each(function(){$(this).click(function(t){t.preventDefault();t=$(this).attr("data-tab"),t=$("div[data-tab='"+t+"']");$(this).parents(".widget-scorecard-tab").find(".active-tab").removeClass("active-tab"),$(this).addClass("active-tab"),$(window).width()<768&&($(this).parent().children().toggleClass("tab-expand"),$(this).parent().toggleClass("position-absolute")),$(this).parent().hasClass("position-absolute")&&$(this).prependTo(".position-absolute"),$(this).hasClass("active-tab")&&($(this).parents(".widget-scorecard-tab").parent().siblings().children().removeClass("active-tab").addClass("hidden"),$(this).parents(".widget-scorecard-tab").parent().siblings().find(t).removeClass("hidden").addClass("active-tab")),$(".widget-scorecard-display-holes-title div, .widget-scorecard-display-holes div").removeClass("hidden"),$(".widget-scorecard-details > div").addClass("hidden")})}))}),$(function(){var t=$("header").height();$(".header-space").css("height",t),$(window).resize(function(){var t=$("header").height();$(".header-space").css("height",t)})}),$(".image-carousel-wrapper").slick({slidesToShow:1,slidesToScroll:1,responsive:[{breakpoint:1200,settings:{arrows:!1,fade:!0,asNavFor:".image-carousel-nav"}},{breakpoint:767,settings:{arrows:!0,fade:!0}}]}),$(".image-carousel-nav").slick({slidesToShow:5,slidesToScroll:1,asNavFor:".image-carousel-wrapper",dots:!1,centerMode:!0,focusOnSelect:!0});var finalPrice=0,BasketPrice=0,OnlineOrdering={plusItem:function(t,e){var i={};null!=e.currentTarget?(i=e.currentTarget,e.preventDefault()):i=e;e=(e=this.getItemQuantity($(i))+1).toString(),$(i).siblings("span").html(e),i=this.getItemPrice("add",$(i));addPriceInt=parseFloat(i),"menu"==t?(BasketPrice=accounting.unformat(BasketPrice),BasketPrice+=addPriceInt,BasketPrice=accounting.formatMoney(BasketPrice),$(".order-form-add-item button").html("Add to Cart - "+BasketPrice)):this.calculateTotals("add",addPriceInt),0<e&&($(".order-form-basket-output, .ordered-form-basket-btn").removeClass("hidden"),$(".order-form-empty-basket").addClass("hidden"),$(".order-form-add-item button").removeClass("disabled"))},minusItem:function(t,e){var i={};null!=e.currentTarget?(i=e.currentTarget,e.preventDefault()):i=e,0<$(i).siblings("span").html()&&((e
1=(e=this.getItemQuantity($(i))-1).toString())<=0?($(i).siblings("span").html(e),$(i).parents("li.basket-info").remove(),$(".order-form-add-item button").addClass("disabled")):($(i).siblings("span").html(e),$(".order-form-add-item button").removeClass("disabled")),$(".ordered-item ul").children("li").length<1&&e<=0&&($(".order-form-basket-output, .ordered-form-basket-btn").addClass("hidden"),$(".order-form-empty-basket").removeClass("hidden")),i=this.getItemPrice("minus",$(i)),minusPriceInt=parseFloat(i),"menu"==t&&0<=e?(BasketPrice=accounting.unformat(BasketPrice),BasketPrice-=minusPriceInt,BasketPrice=accounting.formatMoney(BasketPrice),$(".order-form-add-item button").html("Add to Cart - "+BasketPrice)):this.calculateTotals("subtract",minusPriceInt))},getItemQuantity:function(t){return parseFloat($(t).siblings("span").text())},getItemPrice:function(t,e){var i="0",i=("remove"==t?$(e).parent().siblings(".ordered-item-stats").children(".menu-item-price"):$(e).parent().siblings(".menu-item-price")).text();return accounting.unformat(i)},removeItem:function(t){var e={},t=(null!=t.currentTarget?(e=t.currentTarget,t.preventDefault()):e=t,parseFloat($(e).parent().siblings().children(".menu-item-qty").children("span").html())),i=this.getItemPrice("remove",$(e)),i=accounting.unformat(i);this.calculateTotals("subtract",i*=t),$(e).parents("li.basket-info").remove(),$(".ordered-item ul").children("li").length<1&&($(".order-form-basket-output, .ordered-form-basket-btn").addClass("hidden"),$(".order-form-empty-basket").removeClass("hidden"),$(".ordered-form-basket-btn button").addClass("disabled"))},calculateTotals:function(t,e){finalPrice=accounting.unformat(finalPrice),e=parseFloat(e),"add"==t?finalPrice+=e:(finalPrice-=e)<0&&(finalPrice=0),finalPrice=accounting.formatMoney(finalPrice),$(".ordered-total").children(".basket-info").html(finalPrice)},onSubmit:function(){$(".order-form-confirmation").show(),$(".order-form-widget-wrapper").hide()},onError:function(){$(".order-form-error").show(),$(".order-form-widget-wrapper").hide()},onGoBack:function(){$("#order-form-confirmation").hide(),$("#order-form-error").hide(),$(".order-form-widget-wrapper").show()}};function onKeydown(t,e,i){var s=t.srcElement,n=Number(s.dataset.tab);switch(t.code){case"ArrowLeft":case"ArrowUp":t.preventDefault(),(0==n?e[e.length-1]:e[n-1]).focus();break;case"ArrowRight":case"ArrowDown":t.preventDefault(),(n==e.length-1?e[0]:e[n+1]).focus();break;case"Enter":case"Space":e.forEach(function(t){t.classList.remove("active-tab"),t.ariaSelected=!1}),i.forEach(function(t){t.classList.remove("active-tab")}),s.classList.add("active-tab"),s.ariaSelected=!0,document.getElementById(s.getAttribute("aria-controls")).classList.add("active-tab")}}$(function(){$(".order-form-widget")[0]&&($(".order-form-menu-list li").on("click touchstart",function(){$(".order-form-menu-list li").removeClass("current"),$(this).addClass("current")}),$(".order-form-widget select, .dropdown-nav.order-form-category").hide(),finalPrice=$(".ordered-total").children(".basket-info").html(),finalPrice=accounting.unformat(finalPrice),finalPrice=parseFloat(finalPrice),finalPrice=accounting.formatMoney(finalPrice),BasketPrice=0,$(".order-form-add-item button").on("click touchstart",function(t){t.preventDefault(),$(".menu-item").each(function(){var t,e,i,s,n;0!=$(this).children(".menu-item-right").children(".menu-item-qty").children("span").html()&&(n=$(this).children(".menu-item-details").children("h4").text(),t=$(this).children(".menu-item-right").children(".menu-item-price").children("h4").text(),e=parseFloat($(this).children(".menu-item-right").children(".menu-item-qty").children("span").html()),n='<li class="basket-info">                                        <div class="ordered-item-text col-xs-8">                                            <span class="ordered-item-title col-xs-12">'+(s=n)+'</span>                                            <a class="remove-item" onclick="OnlineOrdering.removeItem(this)">Remove</a>                                        </div>                                        <div class="ordered-item-stats col-xs-4">                                            <div class="menu-item-price col-xs-12">                                            '+t+'                                            </div>                                            <div class="menu-item-qty col-xs-12">                                                <i class="menu-item-minus fa fa-minus-circle" aria-hidden="true" onclick="OnlineOrdering.minusItem(cart, this)"></i>
1                                                 <span>'+(i=e)+'</span>                                                 <i class="menu-item-add fa fa-plus-circle" aria-hidden="true" onclick="OnlineOrdering.plusItem(cart, this)"></i>                                            </div>                                        </div>                                    </li>',0!=$(".ordered-item li").length&&$(".ordered-item").html().includes(s)?$(".ordered-item .basket-info").each(function(){var t;$(this).children().children(".ordered-item-title").html().includes(s)&&(t=parseFloat($(this).children().children(".menu-item-qty").children("span").html()),i+=t,$(this).children().children(".menu-item-qty").children("span").html(i))}):$(n).appendTo(".ordered-item ul"),$(this).children(".menu-item-right").children(".menu-item-qty").children("span").html("0"),$(window).width()<768&&($(".order-form-result").addClass("display"),$(".order-form-container").removeClass("display"),$(".order-form-main-info, .order-form-category").addClass("hidden")))}),$(".ordered-form-basket-btn button").removeClass("disabled"),"Add to Cart"!=$(".order-form-add-item button").html()&&"Add to Cart - $0"!=$(".order-form-add-item button").html()&&"Add to Cart - $0.00"!=$(".order-form-add-item button").html()&&(BasketPrice=accounting.unformat(BasketPrice),finalPrice=accounting.unformat(finalPrice),finalPrice+=BasketPrice,finalPrice=accounting.formatMoney(finalPrice),$(".ordered-total").children(".basket-info").html(finalPrice),$(".order-form-add-item button").html("Add to Cart")),BasketPrice=0,$(".order-form-add-item button").addClass("disabled")}),$(".order-form-basket-title i").on("click touchstart",function(){$(".order-form-container").addClass("display"),$(".order-form-main-info, .order-form-category").removeClass("hidden"),$(".order-form-result").removeClass("display")}),$(".ordered-form-basket-btn button").on("click touchstart",function(t){t.preventDefault(),$(".user-input-info").addClass("display"),$(".order-form-selection").addClass("hidden"),$(".order-form-result, .order-form-container").removeClass("display"),768<=$(window).width()&&$(".order-form-widget").addClass("desktop-view")}),$(".user-input-info i").on("click touchstart",function(){$(".order-form-result").addClass("display"),$(".user-input-info").removeClass("display"),$(".order-form-selection").removeClass("hidden"),768<=$(window).width()&&($(".order-form-container").addClass("display"),$(".order-form-widget").removeClass("desktop-view"))}),$(".user-input-info .order-button").on("click touchstart",function(t){t.preventDefault(),$(".order-form-confirmation").addClass("display"),$(".user-input-info").removeClass("display"),$(".widget-form").addClass("hidden"),768<=$(window).width()&&$(".order-form-widget").removeClass("desktop-view")}),$(".menu-item .menu-item-minus").on("click touchstart",function(t){t.preventDefault(),OnlineOrdering.minusItem("menu",t)}),$(".menu-item .menu-item-add").on("click touchstart",function(t){t.preventDefault(),OnlineOrdering.plusItem("menu",t)}),768<=$(window).width()&&$(".order-form-result").addClass("display"))}),$(".rotating-image-banner-slider").slick({infinite:!0,slidesToShow:1,slidesToScroll:1,arrows:!0,autoplay:!0,fade:!0,useTransform:!1,cssEase:"linear"}),window.addEventListener("load",function(t){0<document.getElementsByClassName("rotating-image-banner-slider").length&&($("header").addClass("rotating-image-banner-parallax-fix"),$(".rotating-image-banner-slider .slick-list").addClass("rotating-image-banner-parallax-fix"),$(".rotating-image-banner-slider .slick-track").addClass("rotating-image-banner-parallax-fix"))}),$(function(){$(".tab-content").toArray().forEach(t=>{for(var e=t.querySelectorAll('.tab-content-nav ul[role="tablist"] li[role="tab"]'),i=t.querySelectorAll('.tab-content-content .tab-content-item[role="tabpanel"]'),s=0;s<e.length;s++){var n=e[s],o=i[s];n.setAttribute("aria-controls",o.id),o.setAttribute("aria-labelledby",n.id),n.addEventListener("keydown",t=>{onKeydown(t,e,i)})}})}),$(function(){function e(t){document.getElementsByClassName("mobile-nav-btn")[0].offsetParent&&mobileNavClose();var e,t=document.getElementById(t);if(t.parentElement.closest(".tab-content-item")&&!t.parentElement.closest(".tab-content-item").classList.contains("active-tab")){var i=t.parentElement.closest(".tab-content-item").getAttribute("data-tab"),s=t.parentElement.closest(".tab-content").querySelector(".tab-content-nav > ul"),n=t.parentElement.closest(".tab-content").getElementsByClassName("tab-content-content")[0];for(let t=0;t<s.children.length;t++)s.children[t].classList.remove("active-tab"),n.children[t].classList.remove("active-tab"),t==i&&(s.children[t].classList.add("active-tab"),n.children[t].classList.add("active-tab"))}t.parentElement.closest(".expandable-container")&&!(e=t.parentElement.closest(".panel-collapse")).classList.contains("in")&&e.classList.add("in"),t.scrollIntoView({block:"center"})}window.addEventListener("load",t=>{window.location.hash&&e(window.location.hash.substring(1))}),$('a[href*="#"]:not([href="#"]):not([href*="ExpandableContent"])').on("click",function(t){return window.location.href.split("#")[0]==t.currentTarget.href.split("#")[0]?e(this.hash.split("#")[1]):(window.location.href=t.currentTarget.href,window.addEventListener("popstate",function(){e(this.hash.split("#")[1])})),!1})}),$(function(){var t;document.getElementsByClassName("video-widget-showvideomobile").length<=0&&$(window).width()<768&&$(".video-js").remove(),0!=$("#vid1").length&&(videojs("vid1").ready(function(){this.volume(0)}),$(".video-sound").on("click",function(){$(".video-sound").toggleClass("off"),$(this).hasClass("off")?$(this).siblings().children(videojs("vid1").volume(0)):$(this).siblings().children(videojs("vid1").volume(1))})),$(".video-widget")[0]&&(t=$("header").height()+$(".video-widget").position().top,$(window).scrollTop()>=t?$(".video-widget .cho-hero-textwidget-content, .video-widget .video-sound, .video-widget .scroll-chevron").removeClass("position-fixed"):$(".video-widget .cho-hero-textwidget-content, .video-widget .video-sound, .video-widget .scroll-chevron").addClass("position-fixed"),$(window).on("scroll",function(){$(window).scrollTop()>=t?$(".video-widget .cho-hero-textwidget-content, .video-widget .video-sound, .video-widget .scroll-chevron").removeClass("position-fixed"):$(".video-widget .cho-hero-textwidget-content, .video-widget .video-sound, .video-widget .scroll-chevron").addClass("position-fixed")}))});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.