Ubuntu

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ !function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports&&"function"==typeof require?t(require("jquery")):t(jQuery)}(function(g){"use strict";var i={escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},createNode:function(t){var e=document.createElement("div");return e.className=t,e.style.position="absolute",e.style.display="none",e}},n=27,o=9,r=13,s=38,a=39,l=40;function u(t,e){function i(){}var n=this,o={ajaxSettings:{},autoSelectFirst:!1,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:u.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:i,onSearchComplete:i,onSearchError:i,preserveInput:!1,containerClass:"wd-search-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(t,e,i){return-1!==t.value.toLowerCase().indexOf(i)},paramName:"query",transformResult:function(t){return"string"==typeof t?JSON.parse(t):t},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1};n.element=t,n.el=g(t),n.suggestions=[],n.badQueries=[],n.selectedIndex=-1,n.currentValue=n.element.value,n.intervalId=0,n.cachedResponse={},n.onChangeInterval=null,n.onChange=null,n.isLocal=!1,n.suggestionsContainer=null,n.noSuggestionsContainer=null,n.options=g.extend({},o,e),n.classes={selected:"wd-active",suggestion:"wd-suggestion"},n.hint=null,n.hintValue="",n.selection=null,n.initialize(),n.setOptions(e)}u.utils=i,(g.Autocomplete=u).formatResult=function(t,e){e="("+i.escapeRegExChars(e)+")";return t.value.replace(new RegExp(e,"gi"),"$1").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/<(\/?strong)>/g,"<$1>")},u.prototype={killerFn:null,initialize:function(){var t,e=this,i="."+e.classes.suggestion,n=e.classes.selected,o=e.options,o=(e.element.setAttribute("autocomplete","off"),e.killerFn=function(t){0===g(t.target).closest("."+e.options.containerClass).length&&(e.killSuggestions(t),e.disableKillerFn())},e.noSuggestionsContainer=g('
').html(this.options.noSuggestionNotice).get(0),e.suggestionsContainer=u.utils.createNode(o.containerClass),(t=g(e.suggestionsContainer)).appendTo(o.appendTo),"auto"!==o.width&&t.width(o.width),t.on("mouseover.autocomplete",i,function(t){if(g(this).hasClass("wd-not-found"))return t.preventDefault(),!1;e.activate(g(this).data("index"))}),t.on("mouseout.autocomplete",function(){e.selectedIndex=-1,t.find("."+n).removeClass(n)}),t.on("click.autocomplete",i,function(t){if(g(this).hasClass("wd-not-found")||g(this).hasClass("wd-search-title"))return t.preventDefault(),!1;t=0 a").length;e.select(g(this).data("index"),t)}),e.fixPositionCapture=function(){e.visible&&e.fixPosition()},g(window).on("resize.autocomplete",e.fixPositionCapture),e.el.on("keydown.autocomplete",function(t){e.onKeyPress(t)}),e.el.on("keyup.autocomplete",function(t){e.onKeyUp(t)}),e.el.on("blur.autocomplete",function(){e.onBlur()}),e.el.on("focus.autocomplete",function(){e.onFocus()}),e.el.on("change.autocomplete",function(t){e.onKeyUp(t)}),e.el.on("input.autocomplete",function(t){e.onKeyUp(t)}),e.el.parent().find(".wd-clear-search"));o&&o.on("click",function(t){e.onClearSearch(t)})},onClearSearch:function(t){var e=this;t.target.classList.contains("wd-clear-search")&&t.target.classList.add("wd-hide"),e.clear(),e.killSuggestions(t),e.el.trigger("focus")},onFocus:function(){var t=this;t.fixPosition(),0===t.options.minChars&&0===t.el.val().length&&t.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){var t=this;t.currentRequest&&(t.currentRequest.abort(),t.currentRequest=null)},setOptions:function(t){var e=this,i=e.options;g.extend(i,t),e.isLocal=Array.isArray(i.lookup),e.isLocal&&(i.lookup=e.verifySuggestionsFormat(i.lookup)),i.orientation=e.validateOrientation(i.orientation,"bottom"),g(e.suggestionsContainer).css({"max-height":i.maxHeight+"px",width:i.width+"px","z-index":i.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var t=this;t.disabled=!0,clearInterval(t.onChangeInterval),t.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var t,e,i,n,o,r,s,a,l=this,u=g(l.suggestionsContainer),c=u.parent().get(0);c!==document.body&&!l.options.forceFixPosition||(r=l.options.orientation,t=u.outerHeight(),e=l.el.outerHeight(),i={top:(a=l.el.offset()).top,left:a.left},"auto"===r&&(s=g(window).height(),n=-(o=g(window).scrollTop())+a.top-t,o=o+s-(a.top+e+t),r=Math.max(n,o)===n?"top":"bottom"),i.top+="top"===r?-t:e,c!==document.body&&(s=u.css("opacity"),l.visible||u.css("opacity",0).show(),a=u.offsetParent().offset(),i.top-=a.top,i.left-=a.left,l.visible||u.css("opacity",s).hide()),"auto"===l.options.width&&(i.width=l.el.outerWidth()-2+"px"),u.css(i))},enableKillerFn:function(){g(document).on("click.autocomplete",this.killerFn)},disableKillerFn:function(){g(document).off("click.autocomplete",this.killerFn)},killSuggestions:function(t){var e=this,i=g(t.target).hasClass("wd-clear-search");e.stopKillSuggestions(),e.intervalId=window.setInterval(function(){e.visible&&(e.el.val(e.currentValue),e.hide(!1,i)),e.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var t=this.el.val().length,e=this.element.selectionStart;return"number"==typeof e?e===t:!document.selection||((e=document.selection.createRange()).moveStart("character",-t),t===e.text.length)},onKeyPress:function(t){var e=this;if(e.disabled||e.visible||t.which!==l||!e.currentValue){if(!e.disabled&&e.visible){switch(t.which){case n:e.el.val(e.currentValue),e.hide();break;case a:if(e.hint&&e.options.onHint&&e.isCursorAtEnd()){e.selectHint();break}return;case o:if(e.hint&&e.options.onHint)return void e.selectHint();if(-1===e.selectedIndex)return void e.hide();if(e.select(e.selectedIndex),!1===e.options.tabDisabled)return;break;case r:if(-1===e.selectedIndex)return void e.hide(!0);e.select(e.selectedIndex,!0);break;case s:e.moveUp();break;case l:e.moveDown();break;default:return}t.stopImmediatePropagation(),t.preventDefault()}}else e.suggest()},onKeyUp:function(t){var e=this;if(!e.disabled){switch(t.which){case s:case l:return}clearInterval(e.onChangeInterval),e.currentValue!==e.el.val()&&(e.findBestHint(),0o&&(t.suggestions=t.suggestions.slice(0,o)),t},getSuggestions:function(n){var t,e,i,o=this,r=o.options,s=r.serviceUrl;r.params[r.paramName]=n,t=r.ignoreParams?null:r.params,!1!==r.onSearchStart.call(o.element,r.params)&&("function"==typeof r.lookup?r.lookup(n,function(t){o.suggestions=t.suggestions,o.suggest(),r.onSearchComplete.call(o.element,n,t.suggestions)}):(i=o.isLocal?o.getSuggestionsLocal(n):("function"==typeof s&&(s=s.call(o.element,n)),e=s+"?"+g.param(t||{}),o.cachedResponse[e]))&&Array.isArray(i.suggestions)?(o.suggestions=i.suggestions,o.suggest(),r.onSearchComplete.call(o.element,n,i.suggestions)):o.isBadQuery(n)?r.onSearchComplete.call(o.element,n,[]):(o.abortAjax(),i={url:s,data:t,type:r.type,dataType:r.dataType},g.extend(i,r.ajaxSettings),o.currentRequest=g.ajax(i).done(function(t){o.currentRequest=null,t=r.transformResult(t,n),o.processResponse(t,n,e),r.onSearchComplete.call(o.element,n,t.suggestions)}).fail(function(t,e,i){r.onSearchError.call(o.element,n,t,e,i)})))},isBadQuery:function(t){if(this.options.preventBadQueries)for(var e=this.badQueries,i=e.length;i--;)if(0===t.indexOf(e[i]))return!0;return!1},hide:function(t=!1,e=!1){var i;t||(i=g((t=this).suggestionsContainer),"function"==typeof t.options.onHide&&t.visible&&t.options.onHide.call(t.element,i,e),t.visible=!1,t.selectedIndex=-1,clearInterval(t.onChangeInterval),g(t.suggestionsContainer).hide(),t.signalHint(null))},suggest:function(){var t,e,o,r,s,a,i,n,l,u,c,h,d,p,f,m;0===this.suggestions.length?this.options.showNoSuggestionNotice?this.noSuggestions():this.hide():(e=(t=this).options,o=e.groupBy,r=e.formatResult,s=t.getQuery(t.currentValue),a=t.classes.suggestion,i=t.classes.selected,n=g(t.suggestionsContainer),l=g(t.noSuggestionsContainer),u=e.beforeRender,c="",d=function(t,e){t=t.data[o];return h===t?"":'
'+(h=t)+"
"},e.triggerSelectOnValidInput&&t.isExactMatch(s)?t.select(0):(p=function(t,n=""){return g.each(t,function(t,e){o&&(n+=d(e,s,t));var i=a;e.item_classes&&(i+=" "+e.item_classes),n+='
'+r(e,s)+"
"}),n},f=0,(m=t.suggestions.reduce((t,e)=>{var i=e.group||"default";t[i]||(t[i]={});t[i][f]=e;f++;return t},{}))?g.each(m,function(t,i){g.each(i,function(t,e){e&&e.divider&&(c+='
'+e.divider+"
",delete i[t])}),c=p(i,c+='
'),c+="
"}):c=p(t.suggestions),this.adjustContainerWidth(),l.detach(),n.html(c),"function"==typeof u&&u.call(t.element,n),t.fixPosition(),n.show(),e.autoSelectFirst&&(t.selectedIndex=0,n.scrollTop(0),n.children("."+a).first().addClass(i)),t.visible=!0,t.findBestHint()))},noSuggestions:function(){var t=g(this.suggestionsContainer),e=g(this.noSuggestionsContainer);this.adjustContainerWidth(),e.detach(),t.empty(),t.append(e),this.fixPosition(),t.show(),this.visible=!0},adjustContainerWidth:function(){var t=this.options,e=g(this.suggestionsContainer);"auto"===t.width&&(t=this.el.outerWidth()-2,e.width(0=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),totalDays:Math.floor(this.totalSecsLeft/60/60/24),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-e.getFullYear())},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish"))))},dispatchEvent:function(t){t=n.Event(t+".countdown");t.finalDate=this.finalDate,t.elapsed=this.elapsed,t.offset=n.extend({},this.offset),t.strftime=i(this.offset),this.$el.trigger(t)}}),n.fn.countdown=function(){var i=Array.prototype.slice.call(arguments,0);return this.each(function(){var t,e=n(this).data("countdown-instance");void 0!==e?(e=o[e],t=i[0],s.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()):n.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,t))):new s(this,i[0],i[1])})}}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.dayjs=e()}(this,function(){"use strict";function n(t,e,i){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(i)+t}function i(t){return t instanceof b}function o(t,e,i){var n;return t?("string"==typeof t?(c[t]&&(n=t),e&&(c[t]=e,n=t)):(e=t.name,c[e]=t,n=e),!i&&n&&(u=n),n||!i&&u):u}function s(t,e){return i(t)?t.clone():((e="object"==typeof e?e:{}).date=t,e.args=arguments,new b(e))}var r="millisecond",h="second",d="minute",p="hour",f="day",m="week",g="month",a="quarter",v="year",y="date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,_=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,t={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},e={s:n,z:function(t){var t=-t.utcOffset(),e=Math.abs(t),i=Math.floor(e/60),e=e%60;return(t<=0?"+":"-")+n(i,2,"0")+":"+n(e,2,"0")},m:function t(e,i){var n,o,r;return e.date()