/* * # Fomantic UI - 2.8.8 * https://github.com/fomantic/Fomantic-UI * http://fomantic-ui.com/ * * Copyright 2021 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ !function(p,h,v,b){p.isFunction=p.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},p.site=p.fn.site=function(e){var s,i=(new Date).getTime(),o=[],t=e,n="string"==typeof t,l=[].slice.call(arguments,1),c=p.isPlainObject(e)?p.extend(!0,{},p.site.settings,e):p.extend({},p.site.settings),a=c.namespace,u=c.error,r="module-"+a,d=p(v),f=this,m=d.data(r),g={initialize:function(){g.instantiate()},instantiate:function(){g.verbose("Storing instance of site",g),m=g,d.data(r,g)},normalize:function(){g.fix.console(),g.fix.requestAnimationFrame()},fix:{console:function(){g.debug("Normalizing window.console"),console!==b&&console.log!==b||(g.verbose("Console not available, normalizing events"),g.disable.console()),void 0!==console.group&&void 0!==console.groupEnd&&void 0!==console.groupCollapsed||(g.verbose("Console group not available, normalizing events"),h.console.group=function(){},h.console.groupEnd=function(){},h.console.groupCollapsed=function(){}),void 0===console.markTimeline&&(g.verbose("Mark timeline not available, normalizing events"),h.console.markTimeline=function(){})},consoleClear:function(){g.debug("Disabling programmatic console clearing"),h.console.clear=function(){}},requestAnimationFrame:function(){g.debug("Normalizing requestAnimationFrame"),h.requestAnimationFrame===b&&(g.debug("RequestAnimationFrame not available, normalizing event"),h.requestAnimationFrame=h.requestAnimationFrame||h.mozRequestAnimationFrame||h.webkitRequestAnimationFrame||h.msRequestAnimationFrame||function(e){setTimeout(e,0)})}},moduleExists:function(e){return p.fn[e]!==b&&p.fn[e].settings!==b},enabled:{modules:function(e){var n=[];return e=e||c.modules,p.each(e,function(e,t){g.moduleExists(t)&&n.push(t)}),n}},disabled:{modules:function(e){var n=[];return e=e||c.modules,p.each(e,function(e,t){g.moduleExists(t)||n.push(t)}),n}},change:{setting:function(o,a,e,r){e="string"==typeof e?"all"===e?c.modules:[e]:e||c.modules,r=r===b||r,p.each(e,function(e,t){var n,i=!g.moduleExists(t)||(p.fn[t].settings.namespace||!1);g.moduleExists(t)&&(g.verbose("Changing default setting",o,a,t),p.fn[t].settings[o]=a,r&&i&&0<(n=p(":data(module-"+i+")")).length&&(g.verbose("Modifying existing settings",n),n[t]("setting",o,a)))})},settings:function(i,e,o){e="string"==typeof e?[e]:e||c.modules,o=o===b||o,p.each(e,function(e,t){var n;g.moduleExists(t)&&(g.verbose("Changing default setting",i,t),p.extend(!0,p.fn[t].settings,i),o&&a&&0<(n=p(":data(module-"+a+")")).length&&(g.verbose("Modifying existing settings",n),n[t]("setting",i)))})}},enable:{console:function(){g.console(!0)},debug:function(e,t){e=e||c.modules,g.debug("Enabling debug for modules",e),g.change.setting("debug",!0,e,t)},verbose:function(e,t){e=e||c.modules,g.debug("Enabling verbose debug for modules",e),g.change.setting("verbose",!0,e,t)}},disable:{console:function(){g.console(!1)},debug:function(e,t){e=e||c.modules,g.debug("Disabling debug for modules",e),g.change.setting("debug",!1,e,t)},verbose:function(e,t){e=e||c.modules,g.debug("Disabling verbose debug for modules",e),g.change.setting("verbose",!1,e,t)}},console:function(e){e?m.cache.console!==b?(g.debug("Restoring console function"),h.console=m.cache.console):g.error(u.console):(g.debug("Disabling console function"),m.cache.console=h.console,h.console={clear:function(){},error:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},info:function(){},log:function(){},markTimeline:function(){},warn:function(){}})},destroy:function(){g.verbose("Destroying previous site for",d),d.removeData(r)},cache:{},setting:function(e,t){if(p.isPlainObject(e))p.extend(!0,c,e);else{if(t===b)return c[e];c[e]=t}},internal:function(e,t){if(p.isPlainObject(e))p.extend(!0,g,e);else{if(t===b)return g[e];g[e]=t}},debug:function(){c.debug&&(c.performance?g.performance.log(arguments):(g.debug=Function.prototype.bind.call(console.info,console,c.name+":"),g.debug.apply(console,arguments)))},verbose:function(){c.verbose&&c.debug&&(c.performance?g.performance.log(arguments):(g.verbose=Function.prototype.bind.call(console.info,console,c.name+":"),g.verbose.apply(console,arguments)))},error:function(){g.error=Function.prototype.bind.call(console.error,console,c.name+":"),g.error.apply(console,arguments)},performance:{log:function(e){var t,n;c.performance&&(n=(t=(new Date).getTime())-(i||t),i=t,o.push({Element:f,Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":n})),clearTimeout(g.performance.timer),g.performance.timer=setTimeout(g.performance.display,500)},display:function(){var e=c.name+":",n=0;i=!1,clearTimeout(g.performance.timer),p.each(o,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",(console.group!==b||console.table!==b)&&0")},fields:function(e){var n=M();return M.each(e,function(e,t){n=n.add(w.get.field(t))}),n},validation:function(i){var o,a;return!!l&&(M.each(l,function(e,n){a=n.identifier||e,M.each(w.get.field(a),function(e,t){if(t==i[0])return n.identifier=a,o=n,!1})}),o||!1)},value:function(e){var t=[];return t.push(e),w.get.values.call(v,t)[e]},values:function(e){var e=Array.isArray(e)?w.get.fields(e):n,d={};return e.each(function(e,t){var n=M(t),i=n.closest(g.uiCalendar),o=n.prop("name"),a=n.val(),r=n.is(g.checkbox),s=n.is(g.radio),l=-1!==o.indexOf("[]"),t=0"}),M(n+="")},prompt:function(e,t){return M("
").addClass(t).html(e[0])}},formatter:{date:function(e){return Intl.DateTimeFormat("en-GB").format(e)},datetime:function(e){return Intl.DateTimeFormat("en-GB",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(e)},time:function(e){return Intl.DateTimeFormat("en-GB",{hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(e)},month:function(e){return Intl.DateTimeFormat("en-GB",{month:"2-digit",year:"numeric"}).format(e)},year:function(e){return Intl.DateTimeFormat("en-GB",{year:"numeric"}).format(e)}},rules:{empty:function(e){return!(e===L||""===e||Array.isArray(e)&&0===e.length)},checked:function(){return 0=t},length:function(e,t){return e!==L&&e.length>=t},exactLength:function(e,t){return e!==L&&e.length==t},maxLength:function(e,t){return e!==L&&e.length<=t},match:function(e,t,n){var i,o;return 0<(o=n.find('[data-validate="'+t+'"]')).length||0<(o=n.find("#"+t)).length||0<(o=n.find('[name="'+t+'"]')).length?i=o.val():0<(o=n.find('[name="'+t+'[]"]')).length&&(i=o),i!==L&&e.toString()==i.toString()},different:function(e,t,n){var i,o;return 0<(o=n.find('[data-validate="'+t+'"]')).length||0<(o=n.find("#"+t)).length||0<(o=n.find('[name="'+t+'"]')).length?i=o.val():0<(o=n.find('[name="'+t+'[]"]')).length&&(i=o),i!==L&&e.toString()!==i.toString()},creditCard:function(n,e){var i,o,a={visa:{pattern:/^4/,length:[16]},amex:{pattern:/^3[47]/,length:[15]},mastercard:{pattern:/^5[1-5]/,length:[16]},discover:{pattern:/^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)/,length:[16]},unionPay:{pattern:/^(62|88)/,length:[16,17,18,19]},jcb:{pattern:/^35(2[89]|[3-8][0-9])/,length:[16]},maestro:{pattern:/^(5018|5020|5038|6304|6759|676[1-3])/,length:[12,13,14,15,16,17,18,19]},dinersClub:{pattern:/^(30[0-5]|^36)/,length:[14]},laser:{pattern:/^(6304|670[69]|6771)/,length:[16,17,18,19]},visaElectron:{pattern:/^(4026|417500|4508|4844|491(3|7))/,length:[16]}},r=!1,e="string"==typeof e&&e.split(",");if("string"==typeof n&&0!==n.length){if(n=n.replace(/[\s\-]/g,""),e&&(M.each(e,function(e,t){(o=a[t])&&(i={length:-1!==M.inArray(n.length,o.length),pattern:-1!==n.search(o.pattern)}).length&&i.pattern&&(r=!0)}),!r))return!1;if((e={number:-1!==M.inArray(n.length,a.unionPay.length),pattern:-1!==n.search(a.unionPay.pattern)}).number&&e.pattern)return!0;for(var t=n.length,s=0,l=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],c=0;t--;)c+=l[s][parseInt(n.charAt(t),10)],s^=1;return c%10==0&&0=t)},exactCount:function(e,t){return 0==t?""===e:1==t?""!==e&&-1===e.search(","):e.split(",").length==t},maxCount:function(e,t){return 0!=t&&(1==t?-1===e.search(","):e.split(",").length<=t)}}}}(jQuery,window,document),function(k,T,S){"use strict";k.isFunction=k.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},T=void 0!==T&&T.Math==Math?T:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),k.fn.accordion=function(a){var h,v=k(this),b=(new Date).getTime(),y=[],x=a,C="string"==typeof x,w=[].slice.call(arguments,1);return v.each(function(){var e,r=k.isPlainObject(a)?k.extend(!0,{},k.fn.accordion.settings,a):k.extend({},k.fn.accordion.settings),s=r.className,t=r.namespace,l=r.selector,c=r.error,n="."+t,i="module-"+t,o=v.selector||"",u=k(this),d=u.find(l.title),f=u.find(l.content),m=this,g=u.data(i),p={initialize:function(){p.debug("Initializing",u),p.bind.events(),r.observeChanges&&p.observeChanges(),p.instantiate()},instantiate:function(){g=p,u.data(i,p)},destroy:function(){p.debug("Destroying previous instance",u),u.off(n).removeData(i)},refresh:function(){d=u.find(l.title),f=u.find(l.content)},observeChanges:function(){"MutationObserver"in T&&((e=new MutationObserver(function(e){p.debug("DOM tree modified, updating selector cache"),p.refresh()})).observe(m,{childList:!0,subtree:!0}),p.debug("Setting up mutation observer",e))},bind:{events:function(){p.debug("Binding delegated events"),u.on(r.on+n,l.trigger,p.event.click)}},event:{click:function(){p.toggle.call(this)}},toggle:function(e){var t=e!==S?"number"==typeof e?d.eq(e):k(e).closest(l.title):k(this).closest(l.title),n=t.next(f),i=n.hasClass(s.animating),e=n.hasClass(s.active),n=e&&!i,i=!e&&i;p.debug("Toggling visibility of content",t),n||i?r.collapsible?p.close.call(t):p.debug("Cannot close accordion content collapsing is disabled"):p.open.call(t)},open:function(e){var t=e!==S?"number"==typeof e?d.eq(e):k(e).closest(l.title):k(this).closest(l.title),n=t.next(f),e=n.hasClass(s.animating);n.hasClass(s.active)||e?p.debug("Accordion already open, skipping",n):(p.debug("Opening accordion content",t),r.onOpening.call(n),r.onChanging.call(n),r.exclusive&&p.closeOthers.call(t),t.addClass(s.active),n.stop(!0,!0).addClass(s.animating),r.animateChildren&&(k.fn.transition!==S&&u.transition("is supported")?n.children().transition({animation:"fade in",queue:!1,useFailSafe:!0,debug:r.debug,verbose:r.verbose,duration:r.duration,skipInlineHidden:!0,onComplete:function(){n.children().removeClass(s.transition)}}):n.children().stop(!0,!0).animate({opacity:1},r.duration,p.resetOpacity)),n.slideDown(r.duration,r.easing,function(){n.removeClass(s.animating).addClass(s.active),p.reset.display.call(this),r.onOpen.call(this),r.onChange.call(this)}))},close:function(e){var t=e!==S?"number"==typeof e?d.eq(e):k(e).closest(l.title):k(this).closest(l.title),n=t.next(f),i=n.hasClass(s.animating),e=n.hasClass(s.active);!e&&!(!e&&i)||e&&i||(p.debug("Closing accordion content",n),r.onClosing.call(n),r.onChanging.call(n),t.removeClass(s.active),n.stop(!0,!0).addClass(s.animating),r.animateChildren&&(k.fn.transition!==S&&u.transition("is supported")?n.children().transition({animation:"fade out",queue:!1,useFailSafe:!0,debug:r.debug,verbose:r.verbose,duration:r.duration,skipInlineHidden:!0}):n.children().stop(!0,!0).animate({opacity:0},r.duration,p.resetOpacity)),n.slideUp(r.duration,r.easing,function(){n.removeClass(s.animating).removeClass(s.active),p.reset.display.call(this),r.onClose.call(this),r.onChange.call(this)}))},closeOthers:function(e){var t,n=e!==S?d.eq(e):k(this).closest(l.title),i=n.parents(l.content).prev(l.title),o=n.closest(l.accordion),e=l.title+"."+s.active+":visible",n=l.content+"."+s.active+":visible",a=r.closeNested?(t=o.find(e).not(i)).next(f):(t=o.find(e).not(i),a=o.find(n).find(e).not(i),(t=t.not(a)).next(f));0").addClass(G.popup)[n](t)),ee.addClass(G.calendar),te&&ee.addClass(G.inverted),e=function(){return ne.refreshTooltips(),$.onVisible.apply(ee,arguments)},n=$.onHidden,l.length||(ee.attr("tabindex","0"),e=function(){return ne.refreshTooltips(),ne.focus(),$.onVisible.apply(ee,arguments)},n=function(){return ne.blur(),$.onHidden.apply(ee,arguments)}),t=ne.setting("on"),n=oe.extend({},$.popupOptions,{popup:ee,on:t,hoverable:"hover"===t,closable:"click"===t,onShow:function(){return ne.set.focusDate(ne.get.date()),ne.set.mode(ne.get.validatedMode($.startMode)),$.onShow.apply(ee,arguments)},onVisible:e,onHide:$.onHide,onHidden:n}),ne.popup(n)):ne.error(s.popup))},inline:function(){c.length&&!$.inline||($.inline=!0,ee=oe("
").addClass(G.calendar).appendTo(r),l.length||ee.attr("tabindex","0"))},input:function(){$.touchReadonly&&l.length&&d&&l.prop("readonly",!0),ne.check.disabled()},date:function(){var e;$.initialDate?e=n.date($.initialDate,$):r.data(Z.date)!==ae?e=n.date(r.data(Z.date),$):l.length&&(e=n.date(l.val(),$)),ne.set.date(e,$.formatInput,!1),ne.set.mode(ne.get.mode(),!1)}},trigger:{change:function(){var e,t=l[0];t&&(e=D.createEvent("HTMLEvents"),ne.verbose("Triggering native change event"),e.initEvent("change",!0,!1),t.dispatchEvent(e))}},create:{calendar:function(){var e,t,n,i=ne.get.mode(),o=new Date,a=ne.get.date(),r=ne.get.focusDate(),s=ne.helper.dateInRange(r||a||$.initialDate||o);r||ne.set.focusDate(r=s,!1,!1);var l="year"===i,c="month"===i,u="day"===i,d="hour"===i,f="minute"===i,m="time"===$.type,g=Math.max($.multiMonth,1),p=u?ne.get.monthOffset():0,h=s.getMinutes(),v=s.getHours(),b=s.getDate(),y=s.getMonth()+p,x=s.getFullYear(),C=u?$.showWeekNumbers?8:7:d?4:_.column,w=u||d?6:_.row,k=u?g:1,T=ee,S=T.hasClass("left")?"right center":"left center";for(T.empty(),1").addClass(G.grid).appendTo(T)),t=0;t").addClass(G.column).appendTo(n));var D=y+t,A=(new Date(x,D,1).getDay()-$.firstDayOfWeek%7+7)%7;!$.constantHeight&&u&&(j=new Date(x,D+1,0).getDate()+A,w=Math.ceil(j/7));var E=l?10:c?1:0,F=u?1:0,P=d||f?1:0,O=d||f?b:1,R=new Date(x-E,D-F,O-P,v),M=new Date(x+E,D+F,O+P,v),I=l?new Date(10*Math.ceil(x/10)-9,0,0):c?new Date(x,0,0):u?new Date(x,D,0):new Date(x,D,b,-1),j=l?new Date(10*Math.ceil(x/10)+1,0,1):c?new Date(x+1,0,1):u?new Date(x,D+1,1):new Date(x,D,b+1),E=i;u&&$.showWeekNumbers&&(E+=" andweek");F=oe("").addClass(G.table).addClass(E).addClass(ie[C]+" column").appendTo(T);te&&F.addClass(G.inverted);var L=C;if(!m){var O=oe("").appendTo(F),V=oe("").appendTo(O),q=oe("").appendTo(O),$.showWeekNumbers&&((q=oe("").appendTo(F),H=l?10*Math.ceil(x/10)-9:u?1-A:0,U=0;U").appendTo(N),u&&$.showWeekNumbers&&((q=oe("").appendTo(N),(A=oe("
").attr("colspan",""+C).appendTo(V),P=l||c?new Date(x,0,1):u?new Date(x,D,1):new Date(x,D,b,v,h),E=oe("").addClass(G.link).appendTo(q);E.text(J.header(P,i,$));var z,P=c?$.disableYear?"day":"year":u?$.disableMonth?"year":"month":"day";if(E.data(Z.mode,P),0===t&&((z=oe("").addClass(G.prev).appendTo(q)).data(Z.focusDate,R),z.toggleClass(G.disabledCell,!ne.helper.isDateInRange(I,i)),oe("").addClass(G.prevIcon).appendTo(z)),t===k-1&&((z=oe("").addClass(G.next).appendTo(q)).data(Z.focusDate,M),z.toggleClass(G.disabledCell,!ne.helper.isDateInRange(j,i)),oe("").addClass(G.nextIcon).appendTo(z)),u)for(V=oe("
").appendTo(V)).text($.text.weekNo),q.addClass(G.weekCell),L--),H=0;H").appendTo(V)).text(J.dayColumnHeader((H+$.firstDayOfWeek)%7,$))}for(var N=oe("
").appendTo(V)).text(ne.get.weekOfYear(x,D,H+1-$.firstDayOfWeek)),q.addClass(G.weekCell)),e=0;e").addClass(G.cell).appendTo(V)).text(W),q.data(Z.date,B);var Y,Q=u&&B.getMonth()!==(D+12)%12,X=!$.selectAdjacentDays&&Q||!ne.helper.isDateInRange(B,i)||$.isDisabled(B,i)||ne.helper.isDisabled(B,i)||!ne.helper.isEnabled(B,i);X?null!==(K=ne.helper.findDayAsObject(B,i,$.disabledDates))&&K[Z.message]&&(q.attr("data-tooltip",K[Z.message]),q.attr("data-position",K[Z.position]||S),(K[Z.inverted]||te&&K[Z.inverted]===ae)&&q.attr("data-inverted",""),K[Z.variation]&&q.attr("data-variation",K[Z.variation])):null!==(Y=ne.helper.findDayAsObject(B,i,$.eventDates))&&(q.addClass(Y[Z.class]||$.eventClass),Y[Z.message]&&(q.attr("data-tooltip",Y[Z.message]),q.attr("data-position",Y[Z.position]||S),(Y[Z.inverted]||te&&Y[Z.inverted]===ae)&&q.attr("data-inverted",""),Y[Z.variation]&&q.attr("data-variation",Y[Z.variation])));var W=ne.helper.dateEqual(B,a,i),K=ne.helper.dateEqual(B,o,i);q.toggleClass(G.adjacentCell,Q&&!Y),q.toggleClass(G.disabledCell,X),q.toggleClass(G.activeCell,W&&!(Q&&X)),d||f||q.toggleClass(G.todayCell,!Q&&K),J.cell(q,B,{mode:i,adjacent:Q,disabled:X,active:W,today:K}),ne.helper.dateEqual(B,r,i)&&ne.set.focusDate(B,!1,!1)}$.today&&(A=oe("
").attr("colspan",""+C).addClass(G.today).appendTo(A)).text(J.today($)),A.data(Z.date,o)),ne.update.focus(!1,F),$.inline&&ne.refreshTooltips()}}},update:{focus:function(e,t){t=t||ee;var r=ne.get.mode(),n=ne.get.date(),s=ne.get.focusDate(),l=ne.get.startDate(),c=ne.get.endDate(),u=(e?s:null)||n||(d?null:s);t.find("td").each(function(){var e,t,n,i,o=oe(this),a=o.data(Z.date);a&&(e=o.hasClass(G.disabledCell),t=o.hasClass(G.activeCell),n=o.hasClass(G.adjacentCell),i=ne.helper.dateEqual(a,s,r),a=!!u&&(!!l&&ne.helper.isDateInRange(a,r,l,u)||!!c&&ne.helper.isDateInRange(a,r,u,c)),o.toggleClass(G.focusCell,i&&(!d||m)&&(!n||$.selectAdjacentDays&&n)&&!e),ne.helper.isTodayButton(o)||o.toggleClass(G.rangeCell,a&&!t&&!e))})}},refresh:function(){ne.create.calendar()},refreshTooltips:function(){var i=oe(S).width();ee.find("td[data-position]").each(function(){var e=oe(this),t=S.getComputedStyle(e[0],":after").width.replace(/[^0-9\.]/g,""),n=e.attr("data-position"),t=i-e.width()-(parseInt(t,10)||250)>e.offset().left?"right":"left";-1===n.indexOf(t)&&e.attr("data-position",n.replace(/(left|right)/,t))})},bind:{events:function(){ne.debug("Binding events"),ee.on("mousedown"+o,ne.event.mousedown),ee.on("touchstart"+o,ne.event.mousedown),ee.on("mouseup"+o,ne.event.mouseup),ee.on("touchend"+o,ne.event.mouseup),ee.on("mouseover"+o,ne.event.mouseover),l.length?(l.on("input"+o,ne.event.inputChange),l.on("focus"+o,ne.event.inputFocus),l.on("blur"+o,ne.event.inputBlur),l.on("keydown"+o,ne.event.keydown)):ee.on("keydown"+o,ne.event.keydown)}},unbind:{events:function(){ne.debug("Unbinding events"),ee.off(o),l.length&&l.off(o)}},event:{mouseover:function(e){var t=oe(e.target).data(Z.date),e=1===e.buttons;t&&ne.set.focusDate(t,!1,!0,e)},mousedown:function(e){l.length&&e.preventDefault(),m=0<=e.type.indexOf("touch");e=oe(e.target).data(Z.date);e&&ne.set.focusDate(e,!1,!0,!0)},mouseup:function(e){ne.focus(),e.preventDefault(),e.stopPropagation(),m=!1;var t,n,i=oe(e.target);i.hasClass("disabled")||(t=(i=(n=i.parent()).data(Z.date)||n.data(Z.focusDate)||n.data(Z.mode)?n:i).data(Z.date),e=i.data(Z.focusDate),n=i.data(Z.mode),t&&!1!==$.onSelect.call(u,t,ne.get.mode())?(i=i.hasClass(G.today),ne.selectDate(t,i)):e?ne.set.focusDate(e):n&&ne.set.mode(n))},keydown:function(e){var t,n,i,o,a,r,s,l=e.which;27!==l&&9!==l||ne.popup("hide"),ne.popup("is visible")&&(37===l||38===l||39===l||40===l?(a="day"===(r=ne.get.mode())?7:"hour"===r?4:"minute"===r?_.column:3,s=37===l?-1:38===l?-a:39==l?1:a,s*="minute"===r?$.minTimeGap:1,n=(t=ne.get.focusDate()||ne.get.date()||new Date).getFullYear()+("year"===r?s:0),i=t.getMonth()+("month"===r?s:0),o=t.getDate()+("day"===r?s:0),a=t.getHours()+("hour"===r?s:0),s=t.getMinutes()+("minute"===r?s:0),s=new Date(n,i,o,a,s),"time"===$.type&&(s=ne.helper.mergeDateTime(t,s)),ne.helper.isDateInRange(s,r)&&ne.set.focusDate(s)):13===l&&(r=ne.get.mode(),(s=ne.get.focusDate())&&!$.isDisabled(s,r)&&!ne.helper.isDisabled(s,r)&&ne.helper.isEnabled(s,r)&&ne.selectDate(s),e.preventDefault(),e.stopPropagation())),38!==l&&40!==l||(e.preventDefault(),ne.popup("show"))},inputChange:function(){var e=l.val(),e=n.date(e,$);ne.set.date(e,!1)},inputFocus:function(){ee.addClass(G.active)},inputBlur:function(){var e;ee.removeClass(G.active),$.formatInput&&(e=ne.get.date(),e=J.datetime(e,$),l.val(e)),p&&(ne.trigger.change(),p=!1)},class:{mutation:function(e){e.forEach(function(e){"class"===e.attributeName&&ne.check.disabled()})}}},observeChanges:function(){"MutationObserver"in S&&(e=new MutationObserver(ne.event.class.mutation),ne.debug("Setting up mutation observer",e),ne.observe.class())},disconnect:{classObserver:function(){l.length&&e&&e.disconnect()}},observe:{class:function(){l.length&&e&&e.observe(r[0],{attributes:!0})}},is:{disabled:function(){return r.hasClass(G.disabled)}},check:{disabled:function(){l.attr("tabindex",ne.is.disabled()?-1:0)}},get:{weekOfYear:function(e,t,n){return t=Date.UTC(e,t,n+3)/864e5,n=Math.floor(t/7),t=new Date(6048e5*n).getUTCFullYear(),n-Math.floor(Date.UTC(t,0,7)/6048e5)+1},date:function(){return ne.helper.sanitiseDate(r.data(Z.date))||null},inputDate:function(){return l.val()},focusDate:function(){return r.data(Z.focusDate)||null},startDate:function(){var e=ne.get.calendarModule($.startCalendar);return(e?e.get.date():r.data(Z.startDate))||null},endDate:function(){var e=ne.get.calendarModule($.endCalendar);return(e?e.get.date():r.data(Z.endDate))||null},minDate:function(){return r.data(Z.minDate)||null},maxDate:function(){return r.data(Z.maxDate)||null},monthOffset:function(){return r.data(Z.monthOffset)||0},mode:function(){var e=r.data(Z.mode)||$.startMode;return ne.get.validatedMode(e)},validatedMode:function(e){var t=ne.get.validModes();return 0<=oe.inArray(e,t)?e:"time"===$.type?"hour":"month"===$.type?"month":"year"===$.type?"year":"day"},type:function(){return r.data(Z.type)||$.type},validModes:function(){var e=[];return"time"!==$.type&&($.disableYear&&"year"!==$.type||e.push("year"),($.disableMonth||"year"===$.type)&&"month"!==$.type||e.push("month"),0<=$.type.indexOf("date")&&e.push("day")),0<=$.type.indexOf("time")&&(e.push("hour"),$.disableMinute||e.push("minute")),e},isTouch:function(){try{return D.createEvent("TouchEvent"),!0}catch(e){return!1}},calendarModule:function(e){return e?(e=!(e instanceof oe)?oe(e).first():e).data(a):null}},set:{date:function(e,t,n){t=!1!==t,n=!1!==n,e=ne.helper.sanitiseDate(e),e=ne.helper.dateInRange(e);var i=ne.get.mode(),o=J.datetime(e,$);if(n&&!1===$.onBeforeChange.call(u,e,o,i))return!1;if(ne.set.focusDate(e),$.isDisabled(e,i))return!1;var a=ne.get.endDate();a&&e&&a=e?ne.verbose("Unable to set maxDate variable lower that minDate variable",e,$.minDate):(ne.setting("maxDate",e),ne.set.dataKeyValue(Z.maxDate,e))},monthOffset:function(e,t){var n=Math.max($.multiMonth,1);e=Math.max(1-n,Math.min(0,e)),ne.set.dataKeyValue(Z.monthOffset,e,t)},mode:function(e,t){ne.set.dataKeyValue(Z.mode,e,t)},dataKeyValue:function(e,t,n){var i=r.data(e),i=i===t||i<=t&&t<=i;return t?r.data(e,t):r.removeData(e),(n=!1!==n&&!i)&&ne.refresh(),!i}},selectDate:function(e,t){ne.verbose("New date selection",e);var n,i=ne.get.mode();t||"minute"===i||$.disableMinute&&"hour"===i||"date"===$.type&&"day"===i||"month"===$.type&&"month"===i||"year"===$.type&&"year"===i?!1===ne.set.date(e)||(p=!0,$.closable&&(ne.popup("hide"),(n=ne.get.calendarModule($.endCalendar))&&("focus"!==n.setting("on")&&n.popup("show"),n.focus()))):(n="year"===i?$.disableMonth?"day":"month":"month"===i?"day":"day"===i?"hour":"minute",ne.set.mode(n),"hour"===i||"day"===i&&ne.get.date()?ne.set.date(e,!0,!1):ne.set.focusDate(e))},changeDate:function(e){ne.set.date(e)},clear:function(){ne.set.date(ae)},popup:function(){return c.popup.apply(c,arguments)},focus:function(){(l.length?l:ee).focus()},blur:function(){(l.length?l:ee).blur()},helper:{isDisabled:function(n,i){return("day"===i||"month"===i||"year"===i)&&("day"===i&&-1!==$.disabledDaysOfWeek.indexOf(n.getDay())||$.disabledDates.some(function(e){if((e="string"==typeof e?ne.helper.sanitiseDate(e):e)instanceof Date)return ne.helper.dateEqual(n,e,i);if(null!==e&&"object"==typeof e){if(e[Z.year])return"number"==typeof e[Z.year]?n.getFullYear()==e[Z.year]:Array.isArray(e[Z.year])?-1=t.centuryBreak&&n===v.length-1){i<=99&&(i+=t.currentCentury-100),m=i,v.splice(n,1);break}if(f<0)for(n=0;n adjusting invoked element"),p=p.closest(g.checkbox),y.refresh())}},setup:function(){y.set.initialLoad(),y.is.indeterminate()?(y.debug("Initial value is indeterminate"),y.indeterminate()):y.is.checked()?(y.debug("Initial value is checked"),y.check()):(y.debug("Initial value is unchecked"),y.uncheck()),y.remove.initialLoad()},refresh:function(){a=p.children(g.label),h=p.children(g.input),v=h[0]},hide:{input:function(){y.verbose("Modifying z-index to be unselectable"),h.addClass(t.hidden)}},show:{input:function(){y.verbose("Modifying z-index to be selectable"),h.removeClass(t.hidden)}},observeChanges:function(){"MutationObserver"in D&&((e=new MutationObserver(function(e){y.debug("DOM tree modified, updating selector cache"),y.refresh()})).observe(c,{childList:!0,subtree:!0}),y.debug("Setting up mutation observer",e))},attachEvents:function(e,t){var n=S(e);t=S.isFunction(y[t])?y[t]:y.toggle,0").insertAfter(h),y.debug("Creating label",a))}},has:{label:function(){return 0 .ui.dimmer",content:".ui.dimmer > .content, .ui.dimmer > .content > .center"},template:{dimmer:function(e){var t,n=k("
").addClass("ui dimmer");return e.displayLoader&&(t=k("
").addClass(e.className.loader).addClass(e.loaderVariation),e.loaderText&&(t.text(e.loaderText),t.addClass("text")),n.append(t)),n}}}}(jQuery,window,document),function(te,ne,ie,oe){"use strict";te.isFunction=te.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},ne=void 0!==ne&&ne.Math==Math?ne:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),te.fn.dropdown=function(B){var W,Y=te(this),Q=te(ie),X=Y.selector||"",K="ontouchstart"in ie.documentElement,$=K?"touchstart":"click",G=(new Date).getTime(),J=[],Z=B,_="string"==typeof Z,ee=[].slice.call(arguments,1);return Y.each(function(n){var d,e,t,i,o,a,r,s,l,f=te.isPlainObject(B)?te.extend(!0,{},te.fn.dropdown.settings,B):te.extend({},te.fn.dropdown.settings),m=f.className,g=f.message,c=f.fields,p=f.keys,h=f.metadata,u=f.namespace,v=f.regExp,b=f.selector,y=f.error,x=f.templates,C="."+u,w="module-"+u,k=te(this),T=te(f.context),S=k.find(b.text),D=k.find(b.search),A=k.find(b.sizer),E=k.find(b.input),F=k.find(b.icon),P=k.find(b.clearIcon),O=0").html(i).attr("data-"+h.value,t).attr("data-"+h.text,t).addClass(m.addition).addClass(m.item),f.hideAdditions&&i.addClass(m.hidden),n=n===oe?i:n.add(i),U.verbose("Creating user choices for value",t,i))}),n)},userLabels:function(e){var t=U.get.userValues();t&&(U.debug("Adding user labels",t),te.each(t,function(e,t){U.verbose("Adding custom user value"),U.add.label(t,t)}))},menu:function(){R=te("
").addClass(m.menu).appendTo(k)},sizer:function(){A=te("").addClass(m.sizer).insertAfter(D)}},search:function(e){e=e!==oe?e:U.get.query(),U.verbose("Searching for query",e),!1===f.fireOnInit&&U.is.initialLoad()?U.verbose("Skipping callback on initial load",f.onSearch):U.has.minCharacters(e)&&!1!==f.onSearch.call(z,e)?U.filter(e):U.hide(null,!0)},select:{firstUnfiltered:function(){U.verbose("Selecting first non-filtered element"),U.remove.selectedItem(),M.not(b.unselectable).not(b.addition+b.hidden).eq(0).addClass(m.selected)},nextAvailable:function(e){var t=(e=e.eq(0)).nextAll(b.item).not(b.unselectable).eq(0),e=e.prevAll(b.item).not(b.unselectable).eq(0);0").addClass("remove icon").insertBefore(S)),U.is.search()&&!U.has.search()&&(U.verbose("Adding search input"),D=te("").addClass(m.search).prop("autocomplete",U.is.chrome()?"fomantic-search":"off").insertBefore(S)),U.is.multiple()&&U.is.searchSelection()&&!U.has.sizer()&&U.create.sizer(),f.allowTab&&U.set.tabbable()},select:function(){var e=U.get.selectValues();U.debug("Dropdown initialized on a select",e),0<(E=k.is("select")?k:E).parent(b.dropdown).length?(U.debug("UI dropdown already exists. Creating dropdown menu only"),k=E.closest(b.dropdown),U.has.menu()||U.create.menu(),R=k.children(b.menu),U.setup.menu(e)):(U.debug("Creating entire dropdown from select"),k=te("
").attr("class",E.attr("class")).addClass(m.selection).addClass(m.dropdown).html(x.dropdown(e,c,f.preserveHTML,f.className)).insertBefore(E),E.hasClass(m.multiple)&&!1===E.prop("multiple")&&(U.error(y.missingMultiple),E.prop("multiple",!0)),E.is("[multiple]")&&U.set.multiple(),E.prop("disabled")&&(U.debug("Disabling dropdown"),k.addClass(m.disabled)),E.removeAttr("required").removeAttr("class").detach().prependTo(k)),U.refresh()},menu:function(e){R.html(x.menu(e,c,f.preserveHTML,f.className)),M=R.find(b.item),I=f.hideDividers?M.parent().children(b.divider):te()},reference:function(){U.debug("Dropdown behavior was called on select, replacing with closest dropdown"),k=k.parent(b.dropdown),H=k.data(w),z=k.get(0),U.refresh(),U.setup.returnedObject()},returnedObject:function(){var e=Y.slice(0,n),t=Y.slice(n+1);Y=e.add(k).add(t)}},refresh:function(){U.refreshSelectors(),U.refreshData()},refreshItems:function(){M=R.find(b.item),I=f.hideDividers?M.parent().children(b.divider):te()},refreshSelectors:function(){U.verbose("Refreshing selector cache"),S=k.find(b.text),D=k.find(b.search),E=k.find(b.input),F=k.find(b.icon),O=0"),te.each(e,function(e,t){var n=f.templates.deQuote(t[c.value]),t=f.templates.escape(t[c.name]||"",f.preserveHTML);E.append('")}),U.observe.select())}},event:{change:function(){V||(U.debug("Input changed, updating selection"),U.set.selected())},focus:function(){f.showOnFocus&&!j&&U.is.hidden()&&!t&&(N=!0,U.show())},blur:function(e){t=ie.activeElement===this,j||t||(U.remove.activeLabel(),U.hide())},mousedown:function(){U.is.searchSelection()?i=!0:j=!0},mouseup:function(){U.is.searchSelection()?i=!1:j=!1},click:function(e){te(e.target).is(k)&&(U.is.focusedOnSearch()?U.show():U.focusSearch())},search:{focus:function(e){j=!0,U.is.multiple()&&U.remove.activeLabel(),N||U.is.active()||!(f.showOnFocus||"focus"!==e.type&&"focusin"!==e.type)||(N=!0,U.search())},blur:function(e){t=ie.activeElement===this,U.is.searchSelection()&&!i&&(L||t||(f.forceSelection?U.forceSelection():f.allowAdditions||U.remove.searchTerm(),U.hide())),i=!1}},clearIcon:{click:function(e){U.clear(),U.is.searchSelection()&&U.remove.searchTerm(),U.hide(),e.stopPropagation()}},icon:{click:function(e){q=!0,U.has.search()?U.is.active()?U.blurSearch():f.showOnFocus?U.focusSearch():U.toggle():U.toggle(),e.stopPropagation()}},text:{focus:function(e){j=!0,U.focusSearch()}},input:function(e){(U.is.multiple()||U.is.searchSelection())&&U.set.filtered(),clearTimeout(U.timer),U.timer=setTimeout(U.search,f.delay.search)},label:{click:function(e){var t=te(this),n=k.find(b.label),i=n.filter("."+m.active),o=t.nextAll("."+m.active),a=t.prevAll("."+m.active),a=(0 modified, recreating menu"),U.is.selectMutation(e)&&(U.disconnect.selectObserver(),U.refresh(),U.setup.select(),U.set.selected(),U.observe.select())}},menu:{mutation:function(e){var t=e[0],e=t.addedNodes?te(t.addedNodes[0]):te(!1),t=t.removedNodes?te(t.removedNodes[0]):te(!1),e=e.add(t),t=e.is(b.addition)||0=f.maxSelections?(U.debug("Maximum selection count reached"),f.useLabels&&(M.addClass(m.filtered),U.add.message(g.maxSelections)),!0):(U.verbose("No longer at maximum selection count"),U.remove.message(),U.remove.filteredItem(),U.is.searchSelection()&&U.filterItems(),!1))},disabled:function(){D.attr("tabindex",U.is.disabled()?-1:0)}},restore:{defaults:function(e){U.clear(e),U.restore.defaultText(),U.restore.defaultValue()},defaultText:function(){var e=U.get.defaultText();e===U.get.placeholderText?(U.debug("Restoring default placeholder text",e),U.set.placeholderText(e)):(U.debug("Restoring default text",e),U.set.text(e))},placeholderText:function(){U.set.placeholderText()},defaultValue:function(){var e=U.get.defaultValue();e!==oe&&(U.debug("Restoring default value",e),""!==e?(U.set.value(e),U.set.selected()):(U.remove.activeItem(),U.remove.selectedItem()))},labels:function(){f.allowAdditions&&(f.useLabels||(U.error(y.labels),f.useLabels=!0),U.debug("Restoring selected values"),U.create.userLabels()),U.check.maxSelections()},selected:function(){U.restore.values(),U.is.multiple()?(U.debug("Restoring previously selected values and labels"),U.restore.labels()):U.debug("Restoring previously selected values")},values:function(){U.set.initialLoad(),f.apiSettings&&f.saveRemoteData&&U.get.remoteValues()?U.restore.remoteValues():U.set.selected();var e=U.get.value();!e||""===e||Array.isArray(e)&&0===e.length?E.addClass(m.noselection):E.removeClass(m.noselection),U.remove.initialLoad()},remoteValues:function(){var e=U.get.remoteValues();U.debug("Recreating selected from session data",e),e&&(U.is.single()?te.each(e,function(e,t){U.set.text(t)}):te.each(e,function(e,t){U.add.label(e,t)}))}},read:{remoteData:function(e){if(ne.Storage!==oe)return(e=sessionStorage.getItem(e))!==oe&&e;U.error(y.noStorage)}},save:{defaults:function(){U.save.defaultText(),U.save.placeholderText(),U.save.defaultValue()},defaultValue:function(){var e=U.get.value();U.verbose("Saving default value as",e),k.data(h.defaultValue,e)},defaultText:function(){var e=U.get.text();U.verbose("Saving default text as",e),k.data(h.defaultText,e)},placeholderText:function(){var e;!1!==f.placeholder&&S.hasClass(m.placeholder)&&(e=U.get.text(),U.verbose("Saving placeholder text as",e),k.data(h.placeholderText,e))},remoteData:function(e,t){ne.Storage!==oe?(U.verbose("Saving remote data to session storage",t,e),sessionStorage.setItem(t,e)):U.error(y.noStorage)}},clear:function(e){U.is.multiple()&&f.useLabels?U.remove.labels(k.find(b.label),e):(U.remove.activeItem(),U.remove.selectedItem(),U.remove.filteredItem()),U.set.placeholderText(),U.clearValue(e)},clearValue:function(e){U.set.value("",null,null,e)},scrollPage:function(e,t){var n=t||U.get.selectedItem(),i=n.closest(b.menu),o=i.outerHeight(),a=i.scrollTop(),t=M.eq(0).outerHeight(),o=Math.floor(o/t),a=(i.prop("scrollHeight"),"up"==e?a-t*o:a+t*o),t=M.not(b.unselectable),o="up"==e?t.index(n)-o:t.index(n)+o,t=("up"==e?0<=o:o").addClass(m.label).attr("data-"+h.value,a).html(x.label(a,t,f.preserveHTML,f.className)),i=f.onLabelCreate.call(i,a,t),U.has.label(e)?U.debug("User selection already exists, skipping",a):(f.label.variation&&i.addClass(f.label.variation),!0===n?(U.debug("Animating in label",i),i.addClass(m.hidden).insertBefore(o).transition({animation:f.label.transition,debug:f.debug,verbose:f.verbose,duration:f.label.duration})):(U.debug("Adding selection label",i),i.insertBefore(o)))},message:function(e){var t=R.children(b.message),e=f.templates.message(U.add.variables(e));0").html(e).addClass(m.message).appendTo(R)},optionValue:function(e){var t=U.escape.value(e);0").prop("value",t).addClass(m.addition).html(e).appendTo(E),U.verbose("Adding user addition as an