/*
* # Fomantic UI - 2.9.0-beta.311+116f84b
* https://github.com/fomantic/Fomantic-UI
* http://fomantic-ui.com/
*
* Copyright 2022 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
!function(g,h,v,b){g.isFunction=g.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g.site=g.fn.site=function(e){var s,i=(new Date).getTime(),a=[],t=e,n="string"==typeof t,l=[].slice.call(arguments,1),r=g.isPlainObject(e)?g.extend(!0,{},g.site.settings,e):g.extend({},g.site.settings),o=r.namespace,c=r.error,u="module-"+o,d=g(v),f=this,p=d.data(u),m={initialize:function(){m.instantiate()},instantiate:function(){m.verbose("Storing instance of site",m),p=m,d.data(u,m)},normalize:function(){m.fix.console(),m.fix.requestAnimationFrame()},fix:{console:function(){m.debug("Normalizing window.console"),console!==b&&console.log!==b||(m.verbose("Console not available, normalizing events"),m.disable.console()),void 0!==console.group&&void 0!==console.groupEnd&&void 0!==console.groupCollapsed||(m.verbose("Console group not available, normalizing events"),h.console.group=function(){},h.console.groupEnd=function(){},h.console.groupCollapsed=function(){}),void 0===console.markTimeline&&(m.verbose("Mark timeline not available, normalizing events"),h.console.markTimeline=function(){})},consoleClear:function(){m.debug("Disabling programmatic console clearing"),h.console.clear=function(){}},requestAnimationFrame:function(){m.debug("Normalizing requestAnimationFrame"),h.requestAnimationFrame===b&&(m.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 g.fn[e]!==b&&g.fn[e].settings!==b},enabled:{modules:function(e){var n=[];return e=e||r.modules,g.each(e,function(e,t){m.moduleExists(t)&&n.push(t)}),n}},disabled:{modules:function(e){var n=[];return e=e||r.modules,g.each(e,function(e,t){m.moduleExists(t)||n.push(t)}),n}},change:{setting:function(i,a,e,o){e="string"==typeof e?"all"===e?r.modules:[e]:e||r.modules,o=o===b||o,g.each(e,function(e,t){var n=!m.moduleExists(t)||(g.fn[t].settings.namespace||!1);m.moduleExists(t)&&(m.verbose("Changing default setting",i,a,t),g.fn[t].settings[i]=a,o&&n&&0<(n=g(":data(module-"+n+")")).length&&(m.verbose("Modifying existing settings",n),n[t]("setting",i,a)))})},settings:function(i,e,a){e="string"==typeof e?[e]:e||r.modules,a=a===b||a,g.each(e,function(e,t){var n;m.moduleExists(t)&&(m.verbose("Changing default setting",i,t),g.extend(!0,g.fn[t].settings,i),a&&o&&0<(n=g(":data(module-"+o+")")).length&&(m.verbose("Modifying existing settings",n),n[t]("setting",i)))})}},enable:{console:function(){m.console(!0)},debug:function(e,t){e=e||r.modules,m.debug("Enabling debug for modules",e),m.change.setting("debug",!0,e,t)},verbose:function(e,t){e=e||r.modules,m.debug("Enabling verbose debug for modules",e),m.change.setting("verbose",!0,e,t)}},disable:{console:function(){m.console(!1)},debug:function(e,t){e=e||r.modules,m.debug("Disabling debug for modules",e),m.change.setting("debug",!1,e,t)},verbose:function(e,t){e=e||r.modules,m.debug("Disabling verbose debug for modules",e),m.change.setting("verbose",!1,e,t)}},console:function(e){e?p.cache.console===b?m.error(c.console):(m.debug("Restoring console function"),h.console=p.cache.console):(m.debug("Disabling console function"),p.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(){m.verbose("Destroying previous site for",d),d.removeData(u)},cache:{},setting:function(e,t){if(g.isPlainObject(e))g.extend(!0,r,e);else{if(t===b)return r[e];r[e]=t}},internal:function(e,t){if(g.isPlainObject(e))g.extend(!0,m,e);else{if(t===b)return m[e];m[e]=t}},debug:function(){r.debug&&(r.performance?m.performance.log(arguments):(m.debug=Function.prototype.bind.call(console.info,console,r.name+":"),m.debug.apply(console,arguments)))},verbose:function(){r.verbose&&r.debug&&(r.performance?m.performance.log(arguments):(m.verbose=Function.prototype.bind.call(console.info,console,r.name+":"),m.verbose.apply(console,arguments)))},error:function(){m.error=Function.prototype.bind.call(console.error,console,r.name+":"),m.error.apply(console,arguments)},performance:{log:function(e){var t,n;r.performance&&(n=(t=(new Date).getTime())-(i||t),i=t,a.push({Element:f,Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":n})),clearTimeout(m.performance.timer),m.performance.timer=setTimeout(m.performance.display,500)},display:function(){var e=r.name+":",n=0;i=!1,clearTimeout(m.performance.timer),g.each(a,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",(console.group!==b||console.table!==b)&&0").addClass(X.popup)[e](t)),ee.addClass(X.calendar),te&&ee.addClass(X.inverted),e=function(){return ne.refreshTooltips(),G.onVisible.apply(ee,arguments)},l.length||(ee.attr("tabindex","0"),e=function(){return ne.refreshTooltips(),ne.focus(),G.onVisible.apply(ee,arguments)}),t=ne.setting("on"),t=ae.extend({},G.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(G.startMode)),G.onShow.apply(ee,arguments)},onVisible:e,onHide:G.onHide,onHidden:function(){return ne.blur(),G.onHidden.apply(ee,arguments)}}),ne.popup(t)))},inline:function(){c.length&&!G.inline||(G.inline=!0,ee=ae("
").addClass(X.calendar).appendTo(r),l.length||ee.attr("tabindex","0"))},input:function(){G.touchReadonly&&l.length&&d&&l.prop("readonly",!0),ne.check.disabled()},date:function(){var e;G.initialDate?e=i.date(G.initialDate,G):r.data(_.date)!==oe?e=i.date(r.data(_.date),G):l.length&&(e=i.date(l.val(),G)),ne.set.date(e,G.formatInput,!1),ne.set.mode(ne.get.mode(),!1)}},trigger:{change:function(){var e,t=l[0];t&&(e=S.createEvent("HTMLEvents"),ne.verbose("Triggering native change event"),e.initEvent("change",!0,!1),t.dispatchEvent(e))}},create:{calendar:function(){var e,t,q,n=ne.get.mode(),i=new Date,j=ne.get.date(),a=ne.get.focusDate(),o=ne.helper.dateInRange(a||j||G.initialDate||i),r=(a||ne.set.focusDate(a=o,!1,!1),"year"===n),s="month"===n,l="day"===n,c="hour"===n,u="minute"===n,H="time"===G.type,N=Math.max(G.multiMonth,1),V=l?ne.get.monthOffset():0,d=o.getMinutes(),f=o.getHours(),p=o.getDate(),z=o.getMonth()+V,m=o.getFullYear(),g=l?G.showWeekNumbers?8:7:c?4:Z.column,U=l||c?6:Z.row,h=l?N:1,v=(b=ee).hasClass("left")?"right center":"left center";for(b.empty(),1").addClass(X.grid).appendTo(b)),t=0;t").addClass(X.column).appendTo(q));var b,y=z+t,Y=(new Date(m,y,1).getDay()-G.firstDayOfWeek%7+7)%7,x=(!G.constantHeight&&l&&(x=new Date(m,y+1,0).getDate()+Y,U=Math.ceil(x/7)),r?10:s?1:0),w=l?1:0,C=c||u?1:0,k=c||u?p:1,T=new Date(m-x,y-w,k-C,f),w=new Date(m+x,y+w,k+C,f),k=r?new Date(10*Math.ceil(m/10)-9,0,0):s?new Date(m,0,0):l?new Date(m,y,0):new Date(m,y,p,-1),C=r?new Date(10*Math.ceil(m/10)+1,0,1):s?new Date(m+1,0,1):l?new Date(m,y+1,1):new Date(m,y,p+1),D=n,D=(l&&G.showWeekNumbers&&(D+=" andweek"),ae("").addClass(X.table).addClass(D).addClass(ie[g]+" column").appendTo(b)),W=(te&&D.addClass(X.inverted),g);if(!H){var B=ae("").appendTo(D),S=ae("
").appendTo(B),A=ae(" | ").attr("colspan",""+g).appendTo(S),E=r||s?new Date(m,0,1):l?new Date(m,y,1):new Date(m,y,p,f,d),F=ae("").addClass(X.link).appendTo(A),E=(F.text(ne.helper.dateFormat(J[n+"Header"],E)),s?G.disableYear?"day":"year":l?G.disableMonth?"year":"month":"day");if(F.data(_.mode,E),0===t&&((F=ae("").addClass(X.prev).appendTo(A)).data(_.focusDate,T),F.toggleClass(X.disabledCell,!ne.helper.isDateInRange(k,n)),ae("").addClass(X.prevIcon).appendTo(F)),t===h-1&&((E=ae("").addClass(X.next).appendTo(A)).data(_.focusDate,w),E.toggleClass(X.disabledCell,!ne.helper.isDateInRange(C,n)),ae("").addClass(X.nextIcon).appendTo(E)),l)for(S=ae("
").appendTo(B),G.showWeekNumbers&&((A=ae(" | ").appendTo(S)).text(G.text.weekNo),A.addClass(X.weekCell),W--),M=0;M").appendTo(S)).text(J.dayColumnHeader((M+G.firstDayOfWeek)%7,G))}for(var $=ae("").appendTo(D),M=r?10*Math.ceil(m/10)-9:l?1-Y:0,K=0;K").appendTo($),l&&G.showWeekNumbers&&((A=ae(" | ").appendTo(S)).text(ne.get.weekOfYear(m,y,M+1-G.firstDayOfWeek)),A.addClass(X.weekCell)),e=0;e").addClass(X.cell).appendTo(S)).text(I),A.data(_.date,P),l&&P.getMonth()!==(y+12)%12),R=!G.selectAdjacentDays&&I||!ne.helper.isDateInRange(P,n)||G.isDisabled(P,n)||ne.helper.isDisabled(P,n)||!ne.helper.isEnabled(P,n),L=(R?(null!==(L=ne.helper.findDayAsObject(P,n,G.disabledDates))&&L[_.message]&&(A.attr("data-tooltip",L[_.message]),A.attr("data-position",L[_.position]||v),(L[_.inverted]||te&&L[_.inverted]===oe)&&A.attr("data-inverted",""),L[_.variation]&&A.attr("data-variation",L[_.variation])),"hour"===n&&null!==(L=ne.helper.findHourAsObject(P,n,G.disabledHours))&&L[_.message]&&(A.attr("data-tooltip",L[_.message]),A.attr("data-position",L[_.position]||v),(L[_.inverted]||te&&L[_.inverted]===oe)&&A.attr("data-inverted",""),L[_.variation]&&A.attr("data-variation",L[_.variation]))):null!==(O=ne.helper.findDayAsObject(P,n,G.eventDates))&&(A.addClass(O[_.class]||G.eventClass),O[_.message]&&(A.attr("data-tooltip",O[_.message]),A.attr("data-position",O[_.position]||v),(O[_.inverted]||te&&O[_.inverted]===oe)&&A.attr("data-inverted",""),O[_.variation]&&A.attr("data-variation",O[_.variation]))),ne.helper.dateEqual(P,j,n)),Q=ne.helper.dateEqual(P,i,n),I=(A.toggleClass(X.adjacentCell,I&&!O),A.toggleClass(X.disabledCell,R),A.toggleClass(X.activeCell,L&&!(I&&R)),c||u||A.toggleClass(X.todayCell,!I&&Q),{mode:n,adjacent:I,disabled:R,active:L,today:Q});J.cell(A,P,I),ne.helper.dateEqual(P,a,n)&&ne.set.focusDate(P,!1,!1)}G.today&&(T=ae("
").appendTo($),(k=ae(" | ").attr("colspan",""+g).addClass(X.today).appendTo(T)).text(J.today(G)),k.data(_.date,i)),ne.update.focus(!1,D),G.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,a=ae(this),o=a.data(_.date);o&&(e=a.hasClass(X.disabledCell),t=a.hasClass(X.activeCell),n=a.hasClass(X.adjacentCell),i=ne.helper.dateEqual(o,s,r),o=!!u&&(!!l&&ne.helper.isDateInRange(o,r,l,u)||!!c&&ne.helper.isDateInRange(o,r,u,c)),a.toggleClass(X.focusCell,i&&(!d||p)&&(!n||G.selectAdjacentDays&&n)&&!e),ne.helper.isTodayButton(a)||a.toggleClass(X.rangeCell,o&&!t&&!e))})}},refresh:function(){ne.create.calendar()},refreshTooltips:function(){var i=ae(D).width();ee.find("td[data-position]").each(function(){var e=ae(this),t=D.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"+a,ne.event.mousedown),ee.on("touchstart"+a,ne.event.mousedown),ee.on("mouseup"+a,ne.event.mouseup),ee.on("touchend"+a,ne.event.mouseup),ee.on("mouseover"+a,ne.event.mouseover),(l.length?(l.on("input"+a,ne.event.inputChange),l.on("focus"+a,ne.event.inputFocus),l.on("blur"+a,ne.event.inputBlur),l):ee).on("keydown"+a,ne.event.keydown)}},unbind:{events:function(){ne.debug("Unbinding events"),ee.off(a),l.length&&l.off(a)}},event:{mouseover:function(e){var t=ae(e.target).data(_.date),e=1===e.buttons;t&&ne.set.focusDate(t,!1,!0,e)},mousedown:function(e){l.length&&e.preventDefault(),p=0<=e.type.indexOf("touch");e=ae(e.target).data(_.date);e&&ne.set.focusDate(e,!1,!0,!0)},mouseup:function(e){ne.focus(),e.preventDefault(),e.stopPropagation(),p=!1;var t,n,i,e=ae(e.target);e.hasClass("disabled")||(t=(e=(t=e.parent()).data(_.date)||t.data(_.focusDate)||t.data(_.mode)?t:e).data(_.date),n=e.data(_.focusDate),i=e.data(_.mode),t&&!1!==G.onSelect.call(u,t,ne.get.mode())?(e=e.hasClass(X.today),ne.selectDate(t,e)):n?ne.set.focusDate(n):i&&ne.set.mode(i))},keydown:function(e){var t,n,i,a,o,r,s,l=e.which;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?Z.column:3,a=37===l?-1:38===l?-a:39==l?1:a,a*="minute"===r?G.minTimeGap:1,o=(t=ne.get.focusDate()||ne.get.date()||new Date).getFullYear()+("year"===r?a:0),s=t.getMonth()+("month"===r?a:0),n=t.getDate()+("day"===r?a:0),i=t.getHours()+("hour"===r?a:0),a=t.getMinutes()+("minute"===r?a:0),o=new Date(o,s,n,i,a),"time"===G.type&&(o=ne.helper.mergeDateTime(t,o)),ne.helper.isDateInRange(o,r)&&ne.set.focusDate(o)):13===l?(r=ne.get.mode(),(s=ne.get.focusDate())&&!G.isDisabled(s,r)&&!ne.helper.isDisabled(s,r)&&ne.helper.isEnabled(s,r)&&!1!==G.onSelect.call(u,s,ne.get.mode())&&ne.selectDate(s),e.preventDefault(),e.stopPropagation()):27===l&&(ne.popup("hide"),e.stopPropagation())),38!==l&&40!==l||(e.preventDefault(),ne.popup("show"))},inputChange:function(){var e=l.val(),e=i.date(e,G);ne.set.date(e,!1)},inputFocus:function(){ee.addClass(X.active)},inputBlur:function(){var e;ee.removeClass(X.active),G.formatInput&&(e=ne.get.date(),e=ne.helper.dateFormat(J[G.type],e),l.val(e)),g&&(ne.trigger.change(),g=!1)},class:{mutation:function(e){e.forEach(function(e){"class"===e.attributeName&&ne.check.disabled()})}}},observeChanges:function(){"MutationObserver"in D&&(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(X.disabled)}},check:{disabled:function(){l.attr("tabindex",ne.is.disabled()?-1:0)}},get:{weekOfYear:function(e,t,n){return e=Date.UTC(e,t,n+3)/864e5,e=Math.floor(e/7),t=new Date(6048e5*e).getUTCFullYear(),e-Math.floor(Date.UTC(t,0,7)/6048e5)+1},formattedDate:function(e,t){return ne.helper.dateFormat(e||J[G.type],t||ne.get.date())},date:function(){return ne.helper.sanitiseDate(r.data(_.date))||null},inputDate:function(){return l.val()},focusDate:function(){return r.data(_.focusDate)||null},startDate:function(){var e=ne.get.calendarModule(G.startCalendar);return(e?e.get.date():r.data(_.startDate))||null},endDate:function(){var e=ne.get.calendarModule(G.endCalendar);return(e?e.get.date():r.data(_.endDate))||null},minDate:function(){return r.data(_.minDate)||null},maxDate:function(){return r.data(_.maxDate)||null},monthOffset:function(){return r.data(_.monthOffset)||G.monthOffset||0},mode:function(){var e=r.data(_.mode)||G.startMode;return ne.get.validatedMode(e)},validatedMode:function(e){var t=ne.get.validModes();return 0<=ae.inArray(e,t)?e:"time"===G.type?"hour":"month"===G.type?"month":"year"===G.type?"year":"day"},type:function(){return r.data(_.type)||G.type},validModes:function(){var e=[];return"time"!==G.type&&(G.disableYear&&"year"!==G.type||e.push("year"),(G.disableMonth||"year"===G.type)&&"month"!==G.type||e.push("month"),0<=G.type.indexOf("date")&&e.push("day")),0<=G.type.indexOf("time")&&(e.push("hour"),G.disableMinute||e.push("minute")),e},isTouch:function(){try{return S.createEvent("TouchEvent"),!0}catch(e){return!1}},calendarModule:function(e){return e?(e=e instanceof ae?e:ae(S).find(e).first()).data(o):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,a=ne.get.mode(),o=ne.helper.dateFormat(J[G.type],e);return(!n||!1!==G.onBeforeChange.call(u,e,o,a))&&(ne.set.focusDate(e),!G.isDisabled(e,a)&&((i=ne.get.endDate())&&e&&i=e?ne.verbose("Unable to set maxDate variable lower that minDate variable",e,G.minDate):(ne.setting("maxDate",e),ne.set.dataKeyValue(_.maxDate,e))},monthOffset:function(e,t){var n=Math.max(G.multiMonth,1);e=Math.max(1-n,Math.min(0,e)),ne.set.dataKeyValue(_.monthOffset,e,t)},mode:function(e,t){ne.set.dataKeyValue(_.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=ne.get.mode();t||"minute"===n||G.disableMinute&&"hour"===n||"date"===G.type&&"day"===n||"month"===G.type&&"month"===n||"year"===G.type&&"year"===n?!1!==ne.set.date(e)&&(g=!0,G.closable&&(ne.popup("hide"),(t=ne.get.calendarModule(G.endCalendar))&&(t.refresh(),"focus"!==t.setting("on")&&t.popup("show"),t.focus()))):(t="year"===n?G.disableMonth?"day":"month":"month"===n?"day":"day"===n?"hour":"minute",ne.set.mode(t),"hour"===n||"day"===n&&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(oe)},popup:function(){return c.popup.apply(c,arguments)},focus:function(){(l.length?l:ee).focus()},blur:function(){(l.length?l:ee).blur()},helper:{dateFormat:function(e,t){var n,i,a,o,r,s,l,c,u,d;return t instanceof Date?"function"==typeof e?e.call(ne,t,G):(n=t.getDate(),i=t.getMonth(),a=t.getFullYear(),o=t.getDay(),r=t.getHours(),s=t.getMinutes(),t=t.getSeconds(),l=ne.get.weekOfYear(a,i,n+1-G.firstDayOfWeek),c=r%12||12,u=(r<12?G.text.am:G.text.pm).toLowerCase(),d={D:n,DD:("0"+n).slice(-2),M:i+1,MM:("0"+(i+1)).slice(-2),MMM:G.text.monthsShort[i],MMMM:G.text.months[i],Y:a,YY:String(a).slice(2),YYYY:a,d:o,dd:G.text.dayNamesShort[o].slice(0,2),ddd:G.text.dayNamesShort[o],dddd:G.text.dayNames[o],h:c,hh:("0"+c).slice(-2),H:r,HH:("0"+r).slice(-2),m:s,mm:("0"+s).slice(-2),s:t,ss:("0"+t).slice(-2),a:u,A:u.toUpperCase(),S:["th","st","nd","rd"][3=t.centuryBreak&&n===v.length-1){i<=99&&(i+=t.currentCentury-100),p=i,v.splice(n,1);break}if(f<0)for(n=0;n adjusting invoked element"),g=g.closest(m.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(){o=g.children(m.label),h=g.children(m.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 S&&((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=D(e);t=D.isFunction(y[t])?y[t]:y.toggle,0").insertAfter(h),y.debug("Creating label",o))}},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(Z,ee,te,ne){"use strict";Z.isFunction=Z.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},ee=void 0!==ee&&ee.Math==Math?ee:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Z.fn.dropdown=function(Y){var W,B=Z(this),$=Z(te),K=B.selector||"",Q=(new Date).getTime(),G=[],X=Y,J="string"==typeof X,_=[].slice.call(arguments,1);return B.each(function(q){var f,e,t,n,i,a,o,r,s,p=Z.isPlainObject(Y)?Z.extend(!0,{},Z.fn.dropdown.settings,Y):Z.extend({},Z.fn.dropdown.settings),m=p.className,g=p.message,l=p.fields,h=p.keys,v=p.metadata,j=p.namespace,c=p.regExp,b=p.selector,u=p.error,H=p.templates,d="."+j,y="module-"+j,x=Z(this),w=[ee,te].indexOf(p.context)<0?$.find(p.context):Z(p.context),C=x.find(b.text),k=x.find(b.search),T=x.find(b.sizer),D=x.find(b.input),N=x.find(b.icon),V=x.find(b.clearIcon),S=0").html(i).attr("data-"+v.value,t).attr("data-"+v.text,t).addClass(m.addition).addClass(m.item),p.hideAdditions&&i.addClass(m.hidden),n=n===ne?i:n.add(i),L.verbose("Creating user choices for value",t,i))}),n)},userLabels:function(e){var t=L.get.userValues();t&&(L.debug("Adding user labels",t),Z.each(t,function(e,t){L.verbose("Adding custom user value"),L.add.label(t,t)}))},menu:function(){A=Z("").addClass(m.menu).appendTo(x)},sizer:function(){T=Z("").addClass(m.sizer).insertAfter(k)}},search:function(e){e=e!==ne?e:L.get.query(),L.verbose("Searching for query",e),!1===p.fireOnInit&&L.is.initialLoad()?L.verbose("Skipping callback on initial load",p.onSearch):L.has.minCharacters(e)&&!1!==p.onSearch.call(P,e)?L.filter(e):L.hide(null,!0)},select:{firstUnfiltered:function(){L.verbose("Selecting first non-filtered element"),L.remove.selectedItem(),E.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(C)),L.is.search()&&!L.has.search()&&(L.verbose("Adding search input"),e=x.prev("label"),k=Z("").addClass(m.search).prop("autocomplete",L.is.chrome()?"fomantic-search":"off"),e.length&&(e.attr("id")||e.attr("id",L.get.id()+"_formLabel"),k.attr("aria-labelledby",e.attr("id"))),k.insertBefore(C)),L.is.multiple()&&L.is.searchSelection()&&!L.has.sizer()&&L.create.sizer(),p.allowTab&&L.set.tabbable()},select:function(){var e=L.get.selectValues();L.debug("Dropdown initialized on a select",e),0<(D=x.is("select")?x:D).parent(b.dropdown).length?(L.debug("UI dropdown already exists. Creating dropdown menu only"),x=D.closest(b.dropdown),L.has.menu()||L.create.menu(),A=x.children(b.menu),L.setup.menu(e)):(L.debug("Creating entire dropdown from select"),x=Z("").attr("class",D.attr("class")).addClass(m.selection).addClass(m.dropdown).html(H.dropdown(e,l,p.preserveHTML,p.className)).insertBefore(D),D.hasClass(m.multiple)&&!1===D.prop("multiple")&&(L.error(u.missingMultiple),D.prop("multiple",!0)),D.is("[multiple]")&&L.set.multiple(),D.prop("disabled")&&(L.debug("Disabling dropdown"),x.addClass(m.disabled)),D.is("[required]")&&(p.forceSelection=!0),D.removeAttr("required").removeAttr("class").detach().prependTo(x)),L.refresh()},menu:function(e){A.html(H.menu(e,l,p.preserveHTML,p.className)),E=A.find(b.item),F=p.hideDividers?E.parent().children(b.divider):Z()},reference:function(){L.debug("Dropdown behavior was called on select, replacing with closest dropdown"),x=x.parent(b.dropdown),R=x.data(y),P=x[0],L.refresh(),L.setup.returnedObject()},returnedObject:function(){var e=B.slice(0,q),t=B.slice(q+1);B=e.add(x).add(t)}},refresh:function(){L.refreshSelectors(),L.refreshData()},refreshItems:function(){E=A.find(b.item),F=p.hideDividers?E.parent().children(b.divider):Z()},refreshSelectors:function(){L.verbose("Refreshing selector cache"),C=x.find(b.text),k=x.find(b.search),D=x.find(b.input),N=x.find(b.icon),S=0"),Z.each(e,function(e,t){var n=p.templates.deQuote(t[l.value]),i=p.templates.escape(t[l.name]||"",p.preserveHTML);D.append('")}),L.observe.select())}},event:{paste:function(e){(e.originalEvent.clipboardData||ee.clipboardData).getData("text").split(p.delimiter).forEach(function(e){L.set.selected(L.escape.htmlEntities(e.trim()),null,!0,!0)}),e.preventDefault()},change:function(){U||(L.debug("Input changed, updating selection"),L.set.selected())},focus:function(){p.showOnFocus&&!M&&L.is.hidden()&&!t&&(I=!0,L.show())},blur:function(e){t=te.activeElement===this,M||t||(L.remove.activeLabel(),L.hide())},mousedown:function(){L.is.searchSelection()?n=!0:M=!0},mouseup:function(){L.is.searchSelection()?n=!1:M=!1},click:function(e){Z(e.target).is(x)&&(L.is.focusedOnSearch()?L.show():L.focusSearch())},search:{focus:function(e){M=!0,L.is.multiple()&&L.remove.activeLabel(),I||L.is.active()||!(p.showOnFocus||"focus"!==e.type&&"focusin"!==e.type)||"touchstart"===e.type||(I=!0,L.search())},blur:function(e){t=te.activeElement===this,!L.is.searchSelection()||n||z||t||(p.forceSelection?L.forceSelection():p.allowAdditions||L.remove.searchTerm(),L.hide()),n=!1}},clearIcon:{click:function(e){L.clear(),L.is.searchSelection()&&L.remove.searchTerm(),L.hide(),e.stopPropagation()}},icon:{click:function(e){O=!0,L.has.search()?L.is.active()?L.blurSearch():p.showOnFocus?L.focusSearch():L.toggle():L.toggle(),e.stopPropagation()}},text:{focus:function(e){M=!0,L.focusSearch()}},input:function(e){(L.is.multiple()||L.is.searchSelection())&&L.set.filtered(),clearTimeout(L.timer),L.timer=setTimeout(L.search,p.delay.search)},label:{click:function(e){var t=Z(this),n=x.find(b.label),i=n.filter("."+m.active),a=t.nextAll("."+m.active),o=t.prevAll("."+m.active),a=(0 modified, recreating menu"),L.disconnect.selectObserver(),L.refresh(),L.setup.select(),L.set.selected(),L.observe.select())}},menu:{mutation:function(e){var e=e[0],t=e.addedNodes?Z(e.addedNodes[0]):Z(!1),e=e.removedNodes?Z(e.removedNodes[0]):Z(!1),t=t.add(e),e=t.is(b.addition)||0=p.maxSelections?(L.debug("Maximum selection count reached"),p.useLabels&&(E.addClass(m.filtered),L.add.message(g.maxSelections)),!0):(L.verbose("No longer at maximum selection count"),L.remove.message(),L.remove.filteredItem(),L.is.searchSelection()&&L.filterItems(),!1))},disabled:function(){k.attr("tabindex",L.is.disabled()?-1:0)}},restore:{defaults:function(e){L.clear(e),L.restore.defaultText(),L.restore.defaultValue()},defaultText:function(){var e=L.get.defaultText();e===L.get.placeholderText?(L.debug("Restoring default placeholder text",e),L.set.placeholderText(e)):(L.debug("Restoring default text",e),L.set.text(e))},placeholderText:function(){L.set.placeholderText()},defaultValue:function(){var e=L.get.defaultValue();e!==ne&&(L.debug("Restoring default value",e),""!==e?(L.set.value(e),L.set.selected()):(L.remove.activeItem(),L.remove.selectedItem()))},labels:function(){p.allowAdditions&&(p.useLabels||(L.error(u.labels),p.useLabels=!0),L.debug("Restoring selected values"),L.create.userLabels()),L.check.maxSelections()},selected:function(){L.restore.values(),L.is.multiple()?(L.debug("Restoring previously selected values and labels"),L.restore.labels()):L.debug("Restoring previously selected values")},values:function(){L.set.initialLoad(),p.apiSettings&&p.saveRemoteData&&L.get.remoteValues()?L.restore.remoteValues():L.set.selected();var e=L.get.value();!e||""===e||Array.isArray(e)&&0===e.length?D.addClass(m.noselection):D.removeClass(m.noselection),L.remove.initialLoad()},remoteValues:function(){var e=L.get.remoteValues();L.debug("Recreating selected from session data",e),e&&(L.is.single()?Z.each(e,function(e,t){L.set.text(t)}):Z.each(e,function(e,t){L.add.label(e,t)}))}},read:{remoteData:function(e){if(ee.Storage!==ne)return(e=sessionStorage.getItem(e+i))!==ne&&e;L.error(u.noStorage)}},save:{defaults:function(){L.save.defaultText(),L.save.placeholderText(),L.save.defaultValue()},defaultValue:function(){var e=L.get.value();L.verbose("Saving default value as",e),x.data(v.defaultValue,e)},defaultText:function(){var e=L.get.text();L.verbose("Saving default text as",e),x.data(v.defaultText,e)},placeholderText:function(){var e;!1!==p.placeholder&&C.hasClass(m.placeholder)&&(e=L.get.text(),L.verbose("Saving placeholder text as",e),x.data(v.placeholderText,e))},remoteData:function(e,t){ee.Storage===ne?L.error(u.noStorage):(L.verbose("Saving remote data to session storage",t,e),sessionStorage.setItem(t+i,e))}},clear:function(e){L.is.multiple()&&p.useLabels?L.remove.labels(x.find(b.label),e):(L.remove.activeItem(),L.remove.selectedItem(),L.remove.filteredItem()),L.set.placeholderText(),L.clearValue(e)},clearValue:function(e){L.set.value("",null,null,e)},scrollPage:function(e,t){var t=t||L.get.selectedItem(),n=t.closest(b.menu),i=n.outerHeight(),a=n.scrollTop(),o=E.eq(0).outerHeight(),i=Math.floor(i/o),a=(n.prop("scrollHeight"),"up"==e?a-o*i:a+o*i),o=E.not(b.unselectable),i="up"==e?o.index(t)-i:o.index(t)+i,i=("up"==e?0<=i:i").addClass(m.label).attr("data-"+v.value,o).html(H.label(o,t,p.preserveHTML,p.className)),i=p.onLabelCreate.call(i,o,t),L.has.label(e)?L.debug("User selection already exists, skipping",o):(p.label.variation&&i.addClass(p.label.variation),!0===n?(L.debug("Animating in label",i),i.addClass(m.hidden).insertBefore(a).transition({animation:p.label.transition,debug:p.debug,verbose:p.verbose,silent:p.silent,duration:p.label.duration})):(L.debug("Adding selection label",i),i.insertBefore(a)))},message:function(e){var t=A.children(b.message),e=p.templates.message(L.add.variables(e));0").html(e).addClass(m.message).appendTo(A)},optionValue:function(e){var t=L.escape.value(e);0").prop("value",t).addClass(m.addition).text(e).appendTo(D),L.verbose("Adding user addition as an