PageSourceSearch

https://online.firstcitizens.org/static/semantic-ui/semantic.min.1448957a73eb.js

js firstcitizens.org collected 2026-10-02 15:01:14 UTC 358,398 bytes, 160 lines download raw bytes

1/*!
2 * # Semantic UI 2.4.2 - Site
3 * http://github.com/semantic-org/semantic-ui/
4 *
5 *
6 * Released under the MIT license
7 * http://opensource.org/licenses/MIT
8 *
9 */
10!function($,window,document){$.site=$.fn.site=function(parameters){var module,returnedValue,time=(new Date).getTime(),performance=[],query=arguments[0],methodInvoked="string"==typeof query,queryArguments=[].slice.call(arguments,1),settings=$.isPlainObject(parameters)?$.extend(!0,{},$.site.settings,parameters):$.extend({},$.site.settings),namespace=settings.namespace,error=settings.error,moduleNamespace="module-"+namespace,$module=$(document),element=this,instance=$module.data(moduleNamespace);return module={initialize:function(){module.instantiate()},instantiate:function(){module.verbose("Storing instance of site",module),instance=module,$module.data(moduleNamespace,module)},normalize:function(){module.fix.console(),module.fix.requestAnimationFrame()},fix:{console:function(){module.debug("Normalizing window.console"),undefined!==console&&undefined!==console.log||(module.verbose("Console not available, normalizing events"),module.disable.console()),void 0!==console.group&&void 0!==console.groupEnd&&void 0!==console.groupCollapsed||(module.verbose("Console group not available, normalizing events"),window.console.group=function(){},window.console.groupEnd=function(){},window.console.groupCollapsed=function(){}),void 0===console.markTimeline&&(module.verbose("Mark timeline not available, normalizing events"),window.console.markTimeline=function(){})},consoleClear:function(){module.debug("Disabling programmatic console clearing"),window.console.clear=function(){}},requestAnimationFrame:function(){module.debug("Normalizing requestAnimationFrame"),undefined===window.requestAnimationFrame&&(module.debug("RequestAnimationFrame not available, normalizing event"),window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){setTimeout(callback,0)})}},moduleExists:function(name){return undefined!==$.fn[name]&&undefined!==$.fn[name].settings},enabled:{modules:function(modules){var enabledModules=[];return modules=modules||settings.modules,$.each(modules,(function(index,name){module.moduleExists(name)&&enabledModules.push(name)})),enabledModules}},disabled:{modules:function(modules){var disabledModules=[];return modules=modules||settings.modules,$.each(modules,(function(index,name){module.moduleExists(name)||disabledModules.push(name)})),disabledModules}},change:{setting:function(setting,value,modules,modifyExisting){modules="string"==typeof modules?"all"===modules?settings.modules:[modules]:modules||settings.modules,modifyExisting=undefined===modifyExisting||modifyExisting,$.each(modules,(function(index,name){var $existingModules,namespace=!module.moduleExists(name)||($.fn[name].settings.namespace||!1);module.moduleExists(name)&&(module.verbose("Changing default setting",setting,value,name),$.fn[name].settings[setting]=value,modifyExisting&&namespace&&($existingModules=$(":data(module-"+namespace+")")).length>0&&(module.verbose("Modifying existing settings",$existingModules),$existingModules[name]("setting",setting,value)))}))},settings:function(newSettings,modules,modifyExisting){modules="string"==typeof modules?[modules]:modules||settings.modules,modifyExisting=undefined===modifyExisting||modifyExisting,$.each(modules,(function(index,name){var $existingModules;module.moduleExists(name)&&(module.verbose("Changing default setting",newSettings,name),$.extend(!0,$.fn[name].settings,newSettings),modifyExisting&&namespace&&($existingModules=$(":data(module-"+namespace+")")).length>0&&(module.verbose("Modifying existing settings",$existingModules),$existingModules[name]("setting",newSettings)))}))}},enable:{console:function(){module.console(!0)},debug:function(modules,modifyExisting){modules=modules||settings.modules,module.debug("Enabling debug for modules",modules),module.change.setting("debug",!0,modules,modifyExisting)},verbose:function(modules,modifyExisting){modules=modules||settings.modules,module.debug("Enabling verbose debug for modules",modules),module.change.setting("verbose",!0,modules,modifyExisting)}},disable:{console:function(){module.console(!1)},debug:function(modules,modifyExisting){modules=modules||settings.modules,module.debug("Disabling debug for modules",modules),module.change.setting("debug",!1,modules,modifyExisting)}
10,verbose:function(modules,modifyExisting){modules=modules||settings.modules,module.debug("Disabling verbose debug for modules",modules),module.change.setting("verbose",!1,modules,modifyExisting)}},console:function(enable){if(enable){if(undefined===instance.cache.console)return void module.error(error.console);module.debug("Restoring console function"),window.console=instance.cache.console}else module.debug("Disabling console function"),instance.cache.console=window.console,window.console={clear:function(){},error:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},info:function(){},log:function(){},markTimeline:function(){},warn:function(){}}},destroy:function(){module.verbose("Destroying previous site for",$module),$module.removeData(moduleNamespace)},cache:{},setting:function(name,value){if($.isPlainObject(name))$.extend(!0,settings,name);else{if(undefined===value)return settings[name];settings[name]=value}},internal:function(name,value){if($.isPlainObject(name))$.extend(!0,module,name);else{if(undefined===value)return module[name];module[name]=value}},debug:function(){settings.debug&&(settings.performance?module.performance.log(arguments):(module.debug=Function.prototype.bind.call(console.info,console,settings.name+":"),module.debug.apply(console,arguments)))},verbose:function(){settings.verbose&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.verbose=Function.prototype.bind.call(console.info,console,settings.name+":"),module.verbose.apply(console,arguments)))},error:function(){module.error=Function.prototype.bind.call(console.error,console,settings.name+":"),module.error.apply(console,arguments)},performance:{log:function(message){var currentTime,executionTime;settings.performance&&(executionTime=(currentTime=(new Date).getTime())-(time||currentTime),time=currentTime,performance.push({Element:element,Name:message[0],Arguments:[].slice.call(message,1)||"","Execution Time":executionTime})),clearTimeout(module.performance.timer),module.performance.timer=setTimeout(module.performance.display,500)},display:function(){var title=settings.name+":",totalTime=0;time=!1,clearTimeout(module.performance.timer),$.each(performance,(function(index,data){totalTime+=data["Execution Time"]})),title+=" "+totalTime+"ms",(undefined!==console.group||undefined!==console.table)&&performance.length>0&&(console.groupCollapsed(title),console.table?console.table(performance):$.each(performance,(function(index,data){console.log(data.Name+": "+data["Execution Time"]+"ms")})),console.groupEnd()),performance=[]}},invoke:function(query,passedArguments,context){var maxDepth,found,response,object=instance;return passedArguments=passedArguments||queryArguments,context=element||context,"string"==typeof query&&undefined!==object&&(query=query.split(/[\. ]/),maxDepth=query.length-1,$.each(query,(function(depth,value){var camelCaseValue=depth!=maxDepth?value+query[depth+1].charAt(0).toUpperCase()+query[depth+1].slice(1):query;if($.isPlainObject(object[camelCaseValue])&&depth!=maxDepth)object=object[camelCaseValue];else{if(undefined!==object[camelCaseValue])return found=object[camelCaseValue],!1;if(!$.isPlainObject(object[value])||depth==maxDepth)return undefined!==object[value]?(found=object[value],!1):(module.error(error.method,query),!1);object=object[value]}}))),$.isFunction(found)?response=found.apply(context,passedArguments):undefined!==found&&(response=found),$.isArray(returnedValue)?returnedValue.push(response):undefined!==returnedValue?returnedValue=[returnedValue,response]:undefined!==response&&(returnedValue=response),found}},methodInvoked?(undefined===instance&&module.initialize(),module.invoke(query)):(undefined!==instance&&module.destroy(),module.initialize()),undefined!==returnedValue?returnedValue:this},$.site.settings={name:"Site",namespace:"site",error:{console:"Console cannot be restored, most likely it was overwritten outside of module",method:"The method you called is not defined."},debug:!1,verbose:!1,performance:!0,modules:["accordion","api","checkbox","dimmer","dropdown","embed","form","modal","nag","popup","rating","shape","sidebar","state","sticky","tab","transition","visit","visibility"],siteNamespace:"site",namespaceStub:{cache:{}
vendor: 4,395 bytes, lines 10-20
10,config:{},sections:{},section:{},utilities:{}}},$.extend($.expr[":"],{data:$.expr.createPseudo?$.expr.createPseudo((function(dataName){return function(elem){return!!$.data(elem,dataName)}})):function(elem,i,match){return!!$.data(elem,match[3])}})}(jQuery,window,document),
11/*!
12 * # Semantic UI 2.4.2 - Dimmer
13 * http://github.com/semantic-org/semantic-ui/
14 *
15 *
16 * Released under the MIT license
17 * http://opensource.org/licenses/MIT
18 *
19 */
20function($,window,document){"use strict";window=void 0!==window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),$.fn.dimmer=function(parameters){var returnedValue,$allModules=$(this),time=(new Date).getTime(),performance=[],query=arguments[0],methodInvoked="string"==typeof query,queryArguments=[].slice.call(arguments,1);return $allModules.each((function(){var $dimmer,$dimmable,module,settings=$.isPlainObject(parameters)?$.extend(!0,{},$.fn.dimmer.settings,parameters):$.extend({},$.fn.dimmer.settings),selector=settings.selector,namespace=settings.namespace,className=settings.className,error=settings.error,eventNamespace="."+namespace,moduleNamespace="module-"+namespace,moduleSelector=$allModules.selector||"",clickEvent="ontouchstart"in document.documentElement?"touchstart":"click",$module=$(this),element=this,instance=$module.data(moduleNamespace);module={preinitialize:function(){module.is.dimmer()?($dimmable=$module.parent(),$dimmer=$module):($dimmable=$module,$dimmer=module.has.dimmer()?settings.dimmerName?$dimmable.find(selector.dimmer).filter("."+settings.dimmerName):$dimmable.find(selector.dimmer):module.create())},initialize:function(){module.debug("Initializing dimmer",settings),module.bind.events(),module.set.dimmable(),module.instantiate()},instantiate:function(){module.verbose("Storing instance of module",module),instance=module,$module.data(moduleNamespace,instance)},destroy:function(){module.verbose("Destroying previous module",$dimmer),module.unbind.events(),module.remove.variation(),$dimmable.off(eventNamespace)},bind:{events:function(){"hover"==settings.on?$dimmable.on("mouseenter"+eventNamespace,module.show).on("mouseleave"+eventNamespace,module.hide):"click"==settings.on&&$dimmable.on(clickEvent+eventNamespace,module.toggle),module.is.page()&&(module.debug("Setting as a page dimmer",$dimmable),module.set.pageDimmer()),module.is.closable()&&(module.verbose("Adding dimmer close event",$dimmer),$dimmable.on(clickEvent+eventNamespace,selector.dimmer,module.event.click))}},unbind:{events:function(){$module.removeData(moduleNamespace),$dimmable.off(eventNamespace)}},event:{click:function(event){module.verbose("Determining if event occurred on dimmer",event),(0===$dimmer.find(event.target).length||$(event.target).is(selector.content))&&(module.hide(),event.stopImmediatePropagation())}},addContent:function(element){var $content=$(element);module.debug("Add content to dimmer",$content),$content.parent()[0]!==$dimmer[0]&&$content.detach().appendTo($dimmer)},create:function(){var $element=$(settings.template.dimmer());return settings.dimmerName&&(module.debug("Creating named dimmer",settings.dimmerName),$element.addClass(settings.dimmerName)),$element.appendTo($dimmable),$element},show:function(callback){callback=$.isFunction(callback)?callback:function(){},module.debug("Showing dimmer",$dimmer,settings),module.set.variation(),module.is.dimmed()&&!module.is.animating()||!module.is.enabled()?module.debug("Dimmer is already shown or disabled"):(module.animate.show(callback),settings.onShow.call(element),settings.onChange.call(element))},hide:function(callback){callback=$.isFunction(callback)?callback:function(){},module.is.dimmed()||module.is.animating()?(module.debug("Hiding dimmer",$dimmer),module.animate.hide(callback),settings.onHide.call(element),settings.onChange.call(element)):module.debug("Dimmer is not visible")},toggle:function(){module.verbose("Toggling dimmer visibility",$dimmer),module.is.dimmed()?module.hide():module.show()},animate:{show:function(callback){callback=$.isFunction(callback)?callback:function(){},settings.useCSS&&undefined!==$.fn.transition&&$dimmer.transition("is supported")?(settings.useFlex?(module.debug("Using flex dimmer"),module.remove.legacy()):(module.debug("Using legacy non-flex dimmer"),module.set.legacy()),"auto"!==settings.opacity&&module.set.opacity(),$dimmer.transition({displayType:sett
20ings.useFlex?"flex":"block",animation:settings.transition+" in",queue:!1,duration:module.get.duration(),useFailSafe:!0,onStart:function(){module.set.dimmed()},onComplete:function(){module.set.active(),callback()}})):(module.verbose("Showing dimmer animation with javascript"),module.set.dimmed(),"auto"==settings.opacity&&(settings.opacity=.8),$dimmer.stop().css({opacity:0,width:"100%",height:"100%"}).fadeTo(module.get.duration(),settings.opacity,(function(){$dimmer.removeAttr("style"),module.set.active(),callback()})))},hide:function(callback){callback=$.isFunction(callback)?callback:function(){},settings.useCSS&&undefined!==$.fn.transition&&$dimmer.transition("is supported")?(module.verbose("Hiding dimmer with css"),$dimmer.transition({displayType:settings.useFlex?"flex":"block",animation:settings.transition+" out",queue:!1,duration:module.get.duration(),useFailSafe:!0,onStart:function(){module.remove.dimmed()},onComplete:function(){module.remove.variation(),module.remove.active(),callback()}})):(module.verbose("Hiding dimmer with javascript"),module.remove.dimmed(),$dimmer.stop().fadeOut(module.get.duration(),(function(){module.remove.active(),$dimmer.removeAttr("style"),callback()})))}},get:{dimmer:function(){return $dimmer},duration:function(){return"object"==typeof settings.duration?module.is.active()?settings.duration.hide:settings.duration.show:settings.duration}},has:{dimmer:function(){return settings.dimmerName?$module.find(selector.dimmer).filter("."+settings.dimmerName).length>0:$module.find(selector.dimmer).length>0}},is:{active:function(){return $dimmer.hasClass(className.active)},animating:function(){return $dimmer.is(":animated")||$dimmer.hasClass(className.animating)},closable:function(){return"auto"==settings.closable?"hover"!=settings.on:settings.closable},dimmer:function(){return $module.hasClass(className.dimmer)},dimmable:function(){return $module.hasClass(className.dimmable)},dimmed:function(){return $dimmable.hasClass(className.dimmed)},disabled:function(){return $dimmable.hasClass(className.disabled)},enabled:function(){return!module.is.disabled()},page:function(){return $dimmable.is("body")},pageDimmer:function(){return $dimmer.hasClass(className.pageDimmer)}},can:{show:function(){return!$dimmer.hasClass(className.disabled)}},set:{opacity:function(opacity){var color=$dimmer.css("background-color"),colorArray=color.split(","),isRGB=colorArray&&3==colorArray.length,isRGBA=colorArray&&4==colorArray.length;opacity=0===settings.opacity?0:settings.opacity||opacity,isRGB||isRGBA?(colorArray[3]=opacity+")",color=colorArray.join(",")):color="rgba(0, 0, 0, "+opacity+")",module.debug("Setting opacity to",opacity),$dimmer.css("background-color",color)},legacy:function(){$dimmer.addClass(className.legacy)},active:function(){$dimmer.addClass(className.active)},dimmable:function(){$dimmable.addClass(className.dimmable)},dimmed:function(){$dimmable.addClass(className.dimmed)},pageDimmer:function(){$dimmer.addClass(className.pageDimmer)},disabled:function(){$dimmer.addClass(className.disabled)},variation:function(variation){(variation=variation||settings.variation)&&$dimmer.addClass(variation)}},remove:{active:function(){$dimmer.removeClass(className.active)},legacy:function(){$dimmer.removeClass(className.legacy)},dimmed:function(){$dimmable.removeClass(className.dimmed)},disabled:function(){$dimmer.removeClass(className.disabled)},variation:function(variation){(variation=variation||settings.variation)&&$dimmer.removeClass(variation)}},setting:function(name,value){if(module.debug("Changing setting",name,value),$.isPlainObject(name))$.extend(!0,settings,name);else{if(undefined===value)return settings[name];$.isPlainObject(settings[name])?$.extend(!0,settings[name],value):settings[name]=value}},internal:function(name,value){if($.isPlainObject(name))$.extend(!0,module,name);else{if(undefined===value)return module[name];module[name]=value}},debug:function(){!settings.silent&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.debug=Function.prototype.bind.call(console.info,console,settings.name+":"),module.debug.apply(console,arguments)))}
20,verbose:function(){!settings.silent&&settings.verbose&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.verbose=Function.prototype.bind.call(console.info,console,settings.name+":"),module.verbose.apply(console,arguments)))},error:function(){settings.silent||(module.error=Function.prototype.bind.call(console.error,console,settings.name+":"),module.error.apply(console,arguments))},performance:{log:function(message){var currentTime,executionTime;settings.performance&&(executionTime=(currentTime=(new Date).getTime())-(time||currentTime),time=currentTime,performance.push({Name:message[0],Arguments:[].slice.call(message,1)||"",Element:element,"Execution Time":executionTime})),clearTimeout(module.performance.timer),module.performance.timer=setTimeout(module.performance.display,500)},display:function(){var title=settings.name+":",totalTime=0;time=!1,clearTimeout(module.performance.timer),$.each(performance,(function(index,data){totalTime+=data["Execution Time"]})),title+=" "+totalTime+"ms",moduleSelector&&(title+=" '"+moduleSelector+"'"),$allModules.length>1&&(title+=" ("+$allModules.length+")"),(undefined!==console.group||undefined!==console.table)&&performance.length>0&&(console.groupCollapsed(title),console.table?console.table(performance):$.each(performance,(function(index,data){console.log(data.Name+": "+data["Execution Time"]+"ms")})),console.groupEnd()),performance=[]}},invoke:function(query,passedArguments,context){var maxDepth,found,response,object=instance;return passedArguments=passedArguments||queryArguments,context=element||context,"string"==typeof query&&undefined!==object&&(query=query.split(/[\. ]/),maxDepth=query.length-1,$.each(query,(function(depth,value){var camelCaseValue=depth!=maxDepth?value+query[depth+1].charAt(0).toUpperCase()+query[depth+1].slice(1):query;if($.isPlainObject(object[camelCaseValue])&&depth!=maxDepth)object=object[camelCaseValue];else{if(undefined!==object[camelCaseValue])return found=object[camelCaseValue],!1;if(!$.isPlainObject(object[value])||depth==maxDepth)return undefined!==object[value]?(found=object[value],!1):(module.error(error.method,query),!1);object=object[value]}}))),$.isFunction(found)?response=found.apply(context,passedArguments):undefined!==found&&(response=found),$.isArray(returnedValue)?returnedValue.push(response):undefined!==returnedValue?returnedValue=[returnedValue,response]:undefined!==response&&(returnedValue=response),found}},module.preinitialize(),methodInvoked?(undefined===instance&&module.initialize(),module.invoke(query)):(undefined!==instance&&instance.invoke("destroy"),module.initialize())})),undefined!==returnedValue?returnedValue:this}
vendor: 5,642 bytes, lines 20-30
20,$.fn.dimmer.settings={name:"Dimmer",namespace:"dimmer",silent:!1,debug:!1,verbose:!1,performance:!0,useFlex:!0,dimmerName:!1,variation:!1,closable:"auto",useCSS:!0,transition:"fade",on:!1,opacity:"auto",duration:{show:500,hide:500},onChange:function(){},onShow:function(){},onHide:function(){},error:{method:"The method you called is not defined."},className:{active:"active",animating:"animating",dimmable:"dimmable",dimmed:"dimmed",dimmer:"dimmer",disabled:"disabled",hide:"hide",legacy:"legacy",pageDimmer:"page",show:"show"},selector:{dimmer:"> .ui.dimmer",content:".ui.dimmer > .content, .ui.dimmer > .content > .center"},template:{dimmer:function(){return $("<div />").attr("class","ui dimmer")}}}}(jQuery,window,document),
21/*!
22 * # Semantic UI 2.4.2 - Form Validation
23 * http://github.com/semantic-org/semantic-ui/
24 *
25 *
26 * Released under the MIT license
27 * http://opensource.org/licenses/MIT
28 *
29 */
30function($,window,document){"use strict";window=void 0!==window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),$.fn.form=function(parameters){var returnedValue,$allModules=$(this),moduleSelector=$allModules.selector||"",time=(new Date).getTime(),performance=[],query=arguments[0],legacyParameters=arguments[1],methodInvoked="string"==typeof query,queryArguments=[].slice.call(arguments,1);return $allModules.each((function(){var $field,$group,$message,$submit,settings,validation,metadata,selector,className,regExp,error,namespace,moduleNamespace,eventNamespace,instance,module,$module=$(this),element=this,formErrors=[],keyHeldDown=!1;module={initialize:function(){module.get.settings(),methodInvoked?(undefined===instance&&module.instantiate(),module.invoke(query)):(undefined!==instance&&instance.invoke("destroy"),module.verbose("Initializing form validation",$module,settings),module.bindEvents(),module.set.defaults(),module.instantiate())},instantiate:function(){module.verbose("Storing instance of module",module),instance=module,$module.data(moduleNamespace,module)},destroy:function(){module.verbose("Destroying previous module",instance),module.removeEvents(),$module.removeData(moduleNamespace)},refresh:function(){module.verbose("Refreshing selector cache"),$field=$module.find(selector.field),$group=$module.find(selector.group),$message=$module.find(selector.message),$module.find(selector.prompt),$submit=$module.find(selector.submit),$module.find(selector.clear),$module.find(selector.reset)},submit:function(){module.verbose("Submitting form",$module),$module.submit()},attachEvents:function(selector,action){action=action||"submit",$(selector).on("click"+eventNamespace,(function(event){module[action](),event.preventDefault()}))},bindEvents:function(){module.verbose("Attaching form events"),$module.on("submit"+eventNamespace,module.validate.form).on("blur"+eventNamespace,selector.field,module.event.field.blur).on("click"+eventNamespace,selector.submit,module.submit).on("click"+eventNamespace,selector.reset,module.reset).on("click"+eventNamespace,selector.clear,module.clear),settings.keyboardShortcuts&&$module.on("keydown"+eventNamespace,selector.field,module.event.field.keydown),$field.each((function(){var $input=$(this),type=$input.prop("type"),inputEvent=module.get.changeEvent(type,$input);$(this).on(inputEvent+eventNamespace,module.event.field.change)}))},clear:function(){$field.each((function(){var $field=$(this),$element=$field.parent(),$fieldGroup=$field.closest($group),$prompt=$fieldGroup.find(selector.prompt),defaultValue=$field.data(metadata.defaultValue)||"",isCheckbox=$element.is(selector.uiCheckbox),isDropdown=$element.is(selector.uiDropdown);$fieldGroup.hasClass(className.error)&&(module.verbose("Resetting error on field",$fieldGroup),$fieldGroup.removeClass(className.error),$prompt.remove()),isDropdown?(module.verbose("Resetting dropdown value",$element,defaultValue),$element.dropdown("clear")):isCheckbox?$field.prop("checked",!1):(module.verbose("Resetting field value",$field,defaultValue),$field.val(""))}))},reset:function(){$field.each((function(){var $field=$(this),$element=$field.parent(),$fieldGroup=$field.closest($group),$prompt=$fieldGroup.find(selector.prompt),defaultValue=$field.data(metadata.defaultValue),isCheckbox=$element.is(selector.uiCheckbox),isDropdown=$element.is(selector.uiDropdown),isErrored=$fieldGroup.hasClass(className.error);undefined!==defaultValue&&(isErrored&&(module.verbose("Resetting error on field",$fieldGroup),$fieldGroup.removeClass(className.error),$prompt.remove()),isDropdown?(module.verbose("Resetting dropdown value",$element,defaultValue),$element.dropdown("restore defaults")):isCheckbox?(module.verbose("Resetting checkbox value",$element,defaultValue),$field.prop("checked",defaultValue)):(module.verbose("Resetting field value",$field,defaultValue),$field.val(defaultValue)))}))},determine:{isValid:function(){var allValid=!0;return $.each(validation,(function(fieldName,field){module.validate.field(field,fieldName,!0)||(allValid=!1)})),allValid}},is:{bracketedRule:function(rule){return rule.type&&rule.type.match(settings.regExp.bracket)},shorthandFields:function(fields){var firstRule=fields[Object.keys(fields)[0]];return module.is.shorthandRules(firstRule)},shorthandRules:function(rules){return"string"==typeof rules||$.isArray(rules)},empty:function($field){return!$field||0===$field.length||($field.is('input[type="checkbox"]')?!$field.is(":checked"):module.is.blank($field))},blank:function($field){return""===$.trim($field.val())},valid:function(field){var allValid=!0;return field?(module.verbose("Checking if field is valid",field),module.validate.field(vali
30dation[field],field,!1)):(module.verbose("Checking if form is valid"),$.each(validation,(function(fieldName,field){module.is.valid(fieldName)||(allValid=!1)})),allValid)}},removeEvents:function(){$module.off(eventNamespace),$field.off(eventNamespace),$submit.off(eventNamespace),$field.off(eventNamespace)},event:{field:{keydown:function(event){var $field=$(this),key=event.which,isInput=$field.is(selector.input),isCheckbox=$field.is(selector.checkbox),isInDropdown=$field.closest(selector.uiDropdown).length>0,keyCode_enter=13;key==27&&(module.verbose("Escape key pressed blurring field"),$field.blur()),event.ctrlKey||key!=keyCode_enter||!isInput||isInDropdown||isCheckbox||(keyHeldDown||($field.one("keyup"+eventNamespace,module.event.field.keyup),module.submit(),module.debug("Enter pressed on input submitting form")),keyHeldDown=!0)},keyup:function(){keyHeldDown=!1},blur:function(event){var $field=$(this),$fieldGroup=$field.closest($group),validationRules=module.get.validation($field);$fieldGroup.hasClass(className.error)?(module.debug("Revalidating field",$field,validationRules),validationRules&&module.validate.field(validationRules)):"blur"==settings.on&&validationRules&&module.validate.field(validationRules)},change:function(event){var $field=$(this),$fieldGroup=$field.closest($group),validationRules=module.get.validation($field);validationRules&&("change"==settings.on||$fieldGroup.hasClass(className.error)&&settings.revalidate)&&(clearTimeout(module.timer),module.timer=setTimeout((function(){module.debug("Revalidating field",$field,module.get.validation($field)),module.validate.field(validationRules)}),settings.delay))}}},get:{ancillaryValue:function(rule){return!(!rule.type||!rule.value&&!module.is.bracketedRule(rule))&&(undefined!==rule.value?rule.value:rule.type.match(settings.regExp.bracket)[1]+"")},ruleName:function(rule){return module.is.bracketedRule(rule)?rule.type.replace(rule.type.match(settings.regExp.bracket)[0],""):rule.type},changeEvent:function(type,$input){return"checkbox"==type||"radio"==type||"hidden"==type||$input.is("select")?"change":module.get.inputEvent()},inputEvent:function(){return undefined!==document.createElement("input").oninput?"input":undefined!==document.createElement("input").onpropertychange?"propertychange":"keyup"},fieldsFromShorthand:function(fields){var fullFields={};return $.each(fields,(function(name,rules){"string"==typeof rules&&(rules=[rules]),fullFields[name]={rules:[]},$.each(rules,(function(index,rule){fullFields[name].rules.push({type:rule})}))})),fullFields},prompt:function(rule,field){var $label,name,ruleName=module.get.ruleName(rule),ancillary=module.get.ancillaryValue(rule),$field=module.get.field(field.identifier),value=$field.val(),prompt=$.isFunction(rule.prompt)?rule.prompt(value):rule.prompt||settings.prompt[ruleName]||settings.text.unspecifiedRule,requiresValue=-1!==prompt.search("{value}"),requiresName=-1!==prompt.search("{name}");return requiresValue&&(prompt=prompt.replace("{value}",$field.val())),requiresName&&(name=1==($label=$field.closest(selector.group).find("label").eq(0)).length?$label.text():$field.prop("placeholder")||settings.text.unspecifiedField,prompt=prompt.replace("{name}",name)),prompt=(prompt=prompt.replace("{identifier}",field.identifier)).replace("{ruleValue}",ancillary),rule.prompt||module.verbose("Using default validation prompt for type",prompt,ruleName),prompt},settings:function(){if($.isPlainObject(parameters)){var keys=Object.keys(parameters);keys.length>0&&(undefined!==parameters[keys[0]].identifier&&undefined!==parameters[keys[0]].rules)?(settings=$.extend(!0,{},$.fn.form.settings,legacyParameters),validation=$.extend({},$.fn.form.settings.defaults,parameters),module.error(settings.error.oldSyntax,element),module.verbose("Extending settings from legacy parameters",validation,settings)):(parameters.fields&&module.is.shorthandFields(parameters.fields)&&(parameters.fields=module.get.fieldsFromShorthand(parameters.fields)),settings=$.extend(!0,{},$.fn.form.settings,parameters),validation=$.extend({},$.fn.form.settings.defaults,settings.fields),module.verbose("Extending settings",validation,settings))}else settings=$.fn.form.settings,validation=$.fn.form.settings.defaults,module.verbose("Using default form validation",validation,settings);namespace=settings.namespace,metadata=settings.metadata,selector=settings.selector,className=settings.className,regExp=settings.regExp,error=settings.error,moduleNamespace="module-"+namespace,eventNamespace="."+namespace,instance=$module.data(moduleNamespace),module.refresh()},field:function(identifier){return module.verbose("Finding field with identifier",identifier),identifier=module.escape.string(identifier),$field.filter("#"+identifier).length>0?$field.filter("#"+identifier):$field.filter('[name="'+identifier+'"]').length>0?$field.filter('[name="'+identifier+'"]'):$field.filter('[name="'+identifier+'[]"]').length>0?$field.filter('[name="'+identifier+'[]"]'):$field.filter("[data-"+metadata.validate+'="'+identifier+'"]').length>0?$field.filter("[data-"+metadata.validate+'="'+identifier+'"]'):$("<input/>")},fields:function(fields){var $fields=$();return $.each(fields,(function(index,name){$fields=$fields.add(module.get.field(name))})),$fields},validation:function($field){var fieldValidation,identifier;return!!validation&&($.each(validation,(function(fieldName,field){identifier=field.identifier||fieldName,module.get.field(identifier)[0]==$field[0]&&(field.identifier=identifier,fieldValidation=field)})),fieldValidation||!1)},value:function(field){var fields=[];return fields.push(field),module.get.values.call(element,fields)[field]},values:function(fields){var $fields=$.isArray(fields)?module.get.fields(fields):$field,values={};return $fields.each((function(index,field){var $field=$(field),name=($field.prop("type"),$f
30ield.prop("name")),value=$field.val(),isCheckbox=$field.is(selector.checkbox),isRadio=$field.is(selector.radio),isMultiple=-1!==name.indexOf("[]"),isChecked=!!isCheckbox&&$field.is(":checked");name&&(isMultiple?(name=name.replace("[]",""),values[name]||(values[name]=[]),isCheckbox?isChecked?values[name].push(value||!0):values[name].push(!1):values[name].push(value)):isRadio?undefined!==values[name]&&0!=values[name]||(values[name]=!!isChecked&&(value||!0)):values[name]=isCheckbox?!!isChecked&&(value||!0):value)})),values}},has:{field:function(identifier){return module.verbose("Checking for existence of a field with identifier",identifier),"string"!=typeof(identifier=module.escape.string(identifier))&&module.error(error.identifier,identifier),$field.filter("#"+identifier).length>0||($field.filter('[name="'+identifier+'"]').length>0||$field.filter("[data-"+metadata.validate+'="'+identifier+'"]').length>0)}},escape:{string:function(text){return(text=String(text)).replace(regExp.escape,"\\$&")}},add:{rule:function(name,rules){module.add.field(name,rules)},field:function(name,rules){var newValidation={};module.is.shorthandRules(rules)?(rules=$.isArray(rules)?rules:[rules],newValidation[name]={rules:[]},$.each(rules,(function(index,rule){newValidation[name].rules.push({type:rule})}))):newValidation[name]=rules,validation=$.extend({},validation,newValidation),module.debug("Adding rules",newValidation,validation)},fields:function(fields){var newValidation;newValidation=fields&&module.is.shorthandFields(fields)?module.get.fieldsFromShorthand(fields):fields,validation=$.extend({},validation,newValidation)},prompt:function(identifier,errors){var $fieldGroup=module.get.field(identifier).closest($group),$prompt=$fieldGroup.children(selector.prompt),promptExists=0!==$prompt.length;errors="string"==typeof errors?[errors]:errors,module.verbose("Adding field error state",identifier),$fieldGroup.addClass(className.error),settings.inline&&(promptExists||($prompt=settings.templates.prompt(errors)).appendTo($fieldGroup),$prompt.html(errors[0]),promptExists?module.verbose("Inline errors are disabled, no inline error added",identifier):settings.transition&&undefined!==$.fn.transition&&$module.transition("is supported")?(module.verbose("Displaying error with css transition",settings.transition),$prompt.transition(settings.transition+" in",settings.duration)):(module.verbose("Displaying error with fallback javascript animation"),$prompt.fadeIn(settings.duration)))},errors:function(errors){module.debug("Adding form error messages",errors),module.set.error(),$message.html(settings.templates.error(errors))}},remove:{rule:function(field,rule){var rules=$.isArray(rule)?rule:[rule];if(null==rule)return module.debug("Removed all rules"),void(validation[field].rules=[]);null!=validation[field]&&$.isArray(validation[field].rules)&&$.each(validation[field].rules,(function(index,rule){-1!==rules.indexOf(rule.type)&&(module.debug("Removed rule",rule.type),validation[field].rules.splice(index,1))}))},field:function(field){var fields=$.isArray(field)?field:[field];$.each(fields,(function(index,field){module.remove.rule(field)}))},rules:function(field,rules){$.isArray(field)?$.each(fields,(function(index,field){module.remove.rule(field,rules)})):module.remove.rule(field,rules)},fields:function(fields){module.remove.field(fields)},prompt:function(identifier){var $fieldGroup=module.get.field(identifier).closest($group),$prompt=$fieldGroup.children(selector.prompt);$fieldGroup.removeClass(className.error),settings.inline&&$prompt.is(":visible")&&(module.verbose("Removing prompt for field",identifier),settings.transition&&undefined!==$.fn.transition&&$module.transition("is supported")?$prompt.transition(settings.transition+" out",settings.duration,(function(){$prompt.remove()})):$prompt.fadeOut(settings.duration,(function(){$prompt.remove()})))}},set:{success:function(){$module.removeClass(className.error).addClass(className.success)},defaults:function(){$field.each((function(){var $field=$(this),value=$field.filter(selector.checkbox).length>0?$field.is(":checked"):$field.val();$field.data(metadata.defaultValue,value)}))},error:function(){$module.removeClass(className.success).addClass(className.error)},value:function(field,value){var fields={};return fields[field]=value,module.set.values.call(element,fields)},values:function(fields){$.isEmptyObject(fields)||$.each(fields,(function(key,value){var $multipleField,$field=module.get.field(key),$element=$field.parent(),isMultiple=$.isArray(value),isCheckbox=$element.is(selector.uiCheckbox),isDropdown=$element.is(selector.uiDropdown),isRadio=$field.is(selector.radio)&&isCheckbox;$field.length>0&&(isMultiple&&isCheckbox?(module.verbose("Selecting multiple",value,$field),$element.checkbox("uncheck"),$.each(value,(function(index,value){$multipleField=$field.filter('[value="'+value+'"]'),$element=$multipleField.parent(),$multipleField.length>0&&$element.checkbox("check")}))):isRadio?(module.verbose("Selecting radio value",value,$field),$field.filter('[value="'+value+'"]').parent(selector.uiCheckbox).checkbox("check")):isCheckbox?(module.verbose("Setting checkbox value",value,$element),!0===value?$element.checkbox("check"):$element.checkbox("uncheck")):isDropdown?(module.verbose("Setting dropdown value",value,$element),$element.dropdown("set selected",value)):(module.verbose("Setting field value",value,$field),$field.val(value)))}))}}
30,validate:{form:function(event,ignoreCallbacks){var values=module.get.values();if(keyHeldDown)return!1;if(formErrors=[],module.determine.isValid()){if(module.debug("Form has no validation errors, submitting"),module.set.success(),!0!==ignoreCallbacks)return settings.onSuccess.call(element,event,values)}else if(module.debug("Form has errors"),module.set.error(),settings.inline||module.add.errors(formErrors),undefined!==$module.data("moduleApi")&&event.stopImmediatePropagation(),!0!==ignoreCallbacks)return settings.onFailure.call(element,formErrors,values)},field:function(field,fieldName,showErrors){showErrors=undefined===showErrors||showErrors,"string"==typeof field&&(module.verbose("Validating field",field),fieldName=field,field=validation[field]);var identifier=field.identifier||fieldName,$field=module.get.field(identifier),$dependsField=!!field.depends&&module.get.field(field.depends),fieldValid=!0,fieldErrors=[];return field.identifier||(module.debug("Using field name as identifier",identifier),field.identifier=identifier),$field.prop("disabled")?(module.debug("Field is disabled. Skipping",identifier),fieldValid=!0):field.optional&&module.is.blank($field)?(module.debug("Field is optional and blank. Skipping",identifier),fieldValid=!0):field.depends&&module.is.empty($dependsField)?(module.debug("Field depends on another value that is not present or empty. Skipping",$dependsField),fieldValid=!0):undefined!==field.rules&&$.each(field.rules,(function(index,rule){module.has.field(identifier)&&!module.validate.rule(field,rule)&&(module.debug("Field is invalid",identifier,rule.type),fieldErrors.push(module.get.prompt(rule,field)),fieldValid=!1)})),fieldValid?(showErrors&&(module.remove.prompt(identifier,fieldErrors),settings.onValid.call($field)),!0):(showErrors&&(formErrors=formErrors.concat(fieldErrors),module.add.prompt(identifier,fieldErrors),settings.onInvalid.call($field,fieldErrors)),!1)},rule:function(field,rule){var $field=module.get.field(field.identifier),value=(rule.type,$field.val()),ancillary=module.get.ancillaryValue(rule),ruleName=module.get.ruleName(rule),ruleFunction=settings.rules[ruleName];if($.isFunction(ruleFunction))return value=undefined===value||""===value||null===value?"":$.trim(value+""),ruleFunction.call($field,value,ancillary);module.error(error.noRule,ruleName)}},setting:function(name,value){if($.isPlainObject(name))$.extend(!0,settings,name);else{if(undefined===value)return settings[name];settings[name]=value}},internal:function(name,value){if($.isPlainObject(name))$.extend(!0,module,name);else{if(undefined===value)return module[name];module[name]=value}},debug:function(){!settings.silent&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.debug=Function.prototype.bind.call(console.info,console,settings.name+":"),module.debug.apply(console,arguments)))},verbose:function(){!settings.silent&&settings.verbose&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.verbose=Function.prototype.bind.call(console.info,console,settings.name+":"),module.verbose.apply(console,arguments)))},error:function(){settings.silent||(module.error=Function.prototype.bind.call(console.error,console,settings.name+":"),module.error.apply(console,arguments))},performance:{log:function(message){var currentTime,executionTime;settings.performance&&(executionTime=(currentTime=(new Date).getTime())-(time||currentTime),time=currentTime,performance.push({Name:message[0],Arguments:[].slice.call(message,1)||"",Element:element,"Execution Time":executionTime})),clearTimeout(module.performance.timer),module.performance.timer=setTimeout(module.performance.display,500)},display:function(){var title=settings.name+":",totalTime=0;time=!1,clearTimeout(module.performance.timer),$.each(performance,(function(index,data){totalTime+=data["Execution Time"]})),title+=" "+totalTime+"ms",moduleSelector&&(title+=" '"+moduleSelector+"'"),$allModules.length>1&&(title+=" ("+$allModules.length+")"),(undefined!==console.group||undefined!==console.table)&&performance.length>0&&(console.groupCollapsed(title),console.table?console.table(performance):$.each(performance,(function(index,data){console.log(data.Name+": "+data["Execution Time"]+"ms")})),console.groupEnd()),performance=[]}},invoke:function(query,passedArguments,context){var maxDepth,found,response,object=instance;return passedArguments=passedArguments||queryArguments,context=element||context,"string"==typeof query&&undefined!==object&&(query=query.split(/[\. ]/),maxDepth=query.length-1,$.each(query,(function(depth,value){var camel
30CaseValue=depth!=maxDepth?value+query[depth+1].charAt(0).toUpperCase()+query[depth+1].slice(1):query;if($.isPlainObject(object[camelCaseValue])&&depth!=maxDepth)object=object[camelCaseValue];else{if(undefined!==object[camelCaseValue])return found=object[camelCaseValue],!1;if(!$.isPlainObject(object[value])||depth==maxDepth)return undefined!==object[value]&&(found=object[value],!1);object=object[value]}}))),$.isFunction(found)?response=found.apply(context,passedArguments):undefined!==found&&(response=found),$.isArray(returnedValue)?returnedValue.push(response):undefined!==returnedValue?returnedValue=[returnedValue,response]:undefined!==response&&(returnedValue=response),found}},module.initialize()})),undefined!==returnedValue?returnedValue:this},$.fn.form.settings={name:"Form",namespace:"form",debug:!1,verbose:!1,performance:!0,fields:!1,keyboardShortcuts:!0,on:"submit",inline:!1,delay:200,revalidate:!0,transition:"scale",duration:200,onValid:function(){},onInvalid:function(){},onSuccess:function(){return!0},onFailure:function(){return!1},metadata:{defaultValue:"default",validate:"validate"}
30,regExp:{htmlID:/^[a-zA-Z][\w:.-]*$/g,bracket:/\[(.*)\]/i,decimal:/^\d+\.?\d*$/,email:/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,escape:/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,flags:/^\/(.*)\/(.*)?/,integer:/^\-?\d+$/,number:/^\-?\d*(\.\d+)?$/,url:/(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/i},text:{unspecifiedRule:"Please enter a valid value",unspecifiedField:"This field"},prompt:{empty:"{name} must have a value",checked:"{name} must be checked",email:"{name} must be a valid e-mail",url:"{name} must be a valid url",regExp:"{name} is not formatted correctly",integer:"{name} must be an integer",decimal:"{name} must be a decimal number",number:"{name} must be set to a number",is:'{name} must be "{ruleValue}"',isExactly:'{name} must be exactly "{ruleValue}"',not:'{name} cannot be set to "{ruleValue}"',notExactly:'{name} cannot be set to exactly "{ruleValue}"',contain:'{name} must contain "{ruleValue}"',containExactly:'{name} must contain exactly "{ruleValue}"',doesntContain:'{name} cannot contain  "{ruleValue}"',doesntContainExactly:'{name} cannot contain exactly "{ruleValue}"',minLength:"{name} must be at least {ruleValue} characters",length:"{name} must be at least {ruleValue} characters",exactLength:"{name} must be exactly {ruleValue} characters",maxLength:"{name} cannot be longer than {ruleValue} characters",match:"{name} must match {ruleValue} field",different:"{name} must have a different value than {ruleValue} field",creditCard:"{name} must be a valid credit card number",minCount:"{name} must have at least {ruleValue} choices",exactCount:"{name} must have exactly {ruleValue} choices",maxCount:"{name} must have {ruleValue} or less choices"},selector:{checkbox:'input[type="checkbox"], input[type="radio"]',clear:".clear",field:"input, textarea, select",group:".field",input:"input",message:".error.message",prompt:".prompt.label",radio:'input[type="radio"]',reset:'.reset:not([type="reset"])',submit:'.submit:not([type="submit"])',uiCheckbox:".ui.checkbox",uiDropdown:".ui.dropdown"},className:{error:"error",label:"ui prompt label",pressed:"down",success:"success"},error:{identifier:"You must specify a string identifier for each field",method:"The method you called is not defined.",noRule:"There is no rule matching the one you specified",oldSyntax:"Starting in 2.0 forms now only take a single settings object. Validation settings converted to new syntax automatically."},templates:{error:function(errors){var html='<ul class="list">';return $.each(errors,(function(index,value){html+="<li>"+value+"</li>"})),$(html+="</ul>")},prompt:function(errors){return $("<div/>").addClass("ui basic red pointing prompt label").html(errors[0])}},rules:{empty:function(value){return!(undefined===value||""===value||$.isArray(value)&&0===value.length)},checked:function(){return $(this).filter(":checked").length>0},email:function(value){return $.fn.form.settings.regExp.email.test(value)},url:function(value){return $.fn.form.settings.regExp.url.test(value)}
vendor: 5,674 bytes, lines 30-40
30,regExp:function(value,regExp){if(regExp instanceof RegExp)return value.match(regExp);var flags,regExpParts=regExp.match($.fn.form.settings.regExp.flags);return regExpParts&&(regExp=regExpParts.length>=2?regExpParts[1]:regExp,flags=regExpParts.length>=3?regExpParts[2]:""),value.match(new RegExp(regExp,flags))},integer:function(value,range){var min,max,parts,intRegExp=$.fn.form.settings.regExp.integer;return range&&-1===["",".."].indexOf(range)&&(-1==range.indexOf("..")?intRegExp.test(range)&&(min=max=range-0):(parts=range.split("..",2),intRegExp.test(parts[0])&&(min=parts[0]-0),intRegExp.test(parts[1])&&(max=parts[1]-0))),intRegExp.test(value)&&(undefined===min||value>=min)&&(undefined===max||value<=max)},decimal:function(value){return $.fn.form.settings.regExp.decimal.test(value)},number:function(value){return $.fn.form.settings.regExp.number.test(value)},is:function(value,text){return text="string"==typeof text?text.toLowerCase():text,(value="string"==typeof value?value.toLowerCase():value)==text},isExactly:function(value,text){return value==text},not:function(value,notValue){return(value="string"==typeof value?value.toLowerCase():value)!=(notValue="string"==typeof notValue?notValue.toLowerCase():notValue)},notExactly:function(value,notValue){return value!=notValue},contains:function(value,text){return text=text.replace($.fn.form.settings.regExp.escape,"\\$&"),-1!==value.search(new RegExp(text,"i"))},containsExactly:function(value,text){return text=text.replace($.fn.form.settings.regExp.escape,"\\$&"),-1!==value.search(new RegExp(text))},doesntContain:function(value,text){return text=text.replace($.fn.form.settings.regExp.escape,"\\$&"),-1===value.search(new RegExp(text,"i"))},doesntContainExactly:function(value,text){return text=text.replace($.fn.form.settings.regExp.escape,"\\$&"),-1===value.search(new RegExp(text))},minLength:function(value,requiredLength){return undefined!==value&&value.length>=requiredLength},length:function(value,requiredLength){return undefined!==value&&value.length>=requiredLength},exactLength:function(value,requiredLength){return undefined!==value&&value.length==requiredLength},maxLength:function(value,maxLength){return undefined!==value&&value.length<=maxLength},match:function(value,identifier){var matchingValue;$(this);return $('[data-validate="'+identifier+'"]').length>0?matchingValue=$('[data-validate="'+identifier+'"]').val():$("#"+identifier).length>0?matchingValue=$("#"+identifier).val():$('[name="'+identifier+'"]').length>0?matchingValue=$('[name="'+identifier+'"]').val():$('[name="'+identifier+'[]"]').length>0&&(matchingValue=$('[name="'+identifier+'[]"]')),undefined!==matchingValue&&value.toString()==matchingValue.toString()},different:function(value,identifier){var matchingValue;$(this);return $('[data-validate="'+identifier+'"]').length>0?matchingValue=$('[data-validate="'+identifier+'"]').val():$("#"+identifier).length>0?matchingValue=$("#"+identifier).val():$('[name="'+identifier+'"]').length>0?matchingValue=$('[name="'+identifier+'"]').val():$('[name="'+identifier+'[]"]').length>0&&(matchingValue=$('[name="'+identifier+'[]"]')),undefined!==matchingValue&&value.toString()!==matchingValue.toString()},creditCard:function(cardNumber,cardTypes){var unionPay,validation,cards={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]}},valid={},validCard=!1,requiredTypes="string"==typeof cardTypes&&cardTypes.split(",");if("string"==typeof cardNumber&&0!==cardNumber.length){if(cardNumber=cardNumber.replace(/[\-]/g,""),requiredTypes&&($.each(requiredTypes,(function(index,type){(validation=cards[type])&&(valid={length:-1!==$.inArray(cardNumber.length,validation.length),pattern:-1!==cardNumber.search(validation.pattern)}).length&&valid.pattern&&(validCard=!0)})),!validCard))return!1;if((unionPay={number:-1!==$.inArray(cardNumber.length,cards.unionPay.length),pattern:-1!==cardNumber.search(cards.unionPay.pattern)}).number&&unionPay.pattern)return!0;for(var length=cardNumber.length,multiple=0,producedValue=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],sum=0;length--;)sum+=producedValue[multiple][parseInt(cardNumber.charAt(length),10)],multiple^=1;return sum%10==0&&sum>0}},minCount:function(value,minCount){return 0==minCount||(1==minCount?""!==value:value.split(",").length>=minCount)},exactCount:function(value,exactCount){return 0==exactCount?""===value:1==exactCount?""!==value&&-1===value.search(","):value.split(",").length==exactCount},maxCount:function(value,maxCount){return 0!=maxCount&&(1==maxCount?-1===value.search(","):value.split(",").length<=maxCount)}}}}(jQuery,window,document),
31/*!
32 * # Semantic UI 2.4.2 - Accordion
33 * http://github.com/semantic-org/semantic-ui/
34 *
35 *
36 * Released under the MIT license
37 * http://opensource.org/licenses/MIT
38 *
39 */
40function($,window){"use strict";window=void 0!==window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),$.fn.accordion=function(parameters){var returnedValue,$allModules=$(this),time=(new Date).getTime(),performance=[],query=arguments[0],methodInvoked="string"==typeof query,queryArguments=[].slice.call(arguments,1
vendor: 4,395 bytes, line 40
40);window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame;return $allModules.each((function(){var observer,module,settings=$.isPlainObject(parameters)?$.extend(!0,{},$.fn.accordion.settings,parameters):$.extend({},$.fn.accordion.settings),className=settings.className,namespace=settings.namespace,selector=settings.selector,error=settings.error,eventNamespace="."+namespace,moduleNamespace="module-"+namespace,moduleSelector=$allModules.selector||"",$module=$(this),$title=$module.find(selector.title),$content=$module.find(selector.content),element=this,instance=$module.data(moduleNamespace);module={initialize:function(){module.debug("Initializing",$module),module.bind.events(),settings.observeChanges&&module.observeChanges(),module.instantiate()},instantiate:function(){instance=module,$module.data(moduleNamespace,module)},destroy:function(){module.debug("Destroying previous instance",$module),$module.off(eventNamespace).removeData(moduleNamespace)},refresh:function(){$title=$module.find(selector.title),$content=$module.find(selector.content)},observeChanges:function(){"MutationObserver"in window&&((observer=new MutationObserver((function(mutations){module.debug("DOM tree modified, updating selector cache"),module.refresh()}))).observe(element,{childList:!0,subtree:!0}),module.debug("Setting up mutation observer",observer))},bind:{events:function(){module.debug("Binding delegated events"),$module.on(settings.on+eventNamespace,selector.trigger,module.event.click)}},event:{click:function(){module.toggle.call(this)}},toggle:function(query){var $activeTitle=undefined!==query?"number"==typeof query?$title.eq(query):$(query).closest(selector.title):$(this).closest(selector.title),$activeContent=$activeTitle.next($content),isAnimating=$activeContent.hasClass(className.animating),isActive=$activeContent.hasClass(className.active),isOpen=isActive&&!isAnimating,isOpening=!isActive&&isAnimating;module.debug("Toggling visibility of content",$activeTitle),isOpen||isOpening?settings.collapsible?module.close.call($activeTitle):module.debug("Cannot close accordion content collapsing is disabled"):module.open.call($activeTitle)},open:function(query){var $activeTitle=undefined!==query?"number"==typeof query?$title.eq(query):$(query).closest(selector.title):$(this).closest(selector.title),$activeContent=$activeTitle.next($content),isAnimating=$activeContent.hasClass(className.animating);$activeContent.hasClass(className.active)||isAnimating?module.debug("Accordion already open, skipping",$activeContent):(module.debug("Opening accordion content",$activeTitle),settings.onOpening.call($activeContent),settings.onChanging.call($activeContent),settings.exclusive&&module.closeOthers.call($activeTitle),$activeTitle.addClass(className.active),$activeContent.stop(!0,!0).addClass(className.animating),settings.animateChildren&&(undefined!==$.fn.transition&&$module.transition("is supported")?$activeContent.children().transition({animation:"fade in",queue:!1,useFailSafe:!0,debug:settings.debug,verbose:settings.verbose,duration:settings.duration}):$activeContent.children().stop(!0,!0).animate({opacity:1},settings.duration,module.resetOpacity)),$activeContent.slideDown(settings.duration,settings.easing,(function(){$activeContent.removeClass(className.animating).addClass(className.active),module.reset.display.call(this),settings.onOpen.call(this),settings.onChange.call(this)})))},close:function(query){var $activeTitle=undefined!==query?"number"==typeof query?$title.eq(query):$(query).closest(selector.title):$(this).closest(selector.title),$activeContent=$activeTitle.next($content),isAnimating=$activeContent.hasClass(className.animating),isActive=$activeContent.hasClass(className.active);!isActive&&!(!isActive&&isAnimating)||isActive&&isAnimating||(module.debug("Closing accordion content",$activeContent),settings.onClosing.call($activeContent),settings.onChanging.call($activeContent),$activeTitle.removeClass(className.active),$activeContent.stop(!0,!0).addClass(className.animating),settings.animateChildren&&(undefined!==$.fn.transition&&$module.transition("is supported")?$activeContent.children().transition({animation:"fade out",queue:!1,useFailSafe:!0,debug:settings.debug,verbose:settings.verbose,duration:settings.duration}):$activeContent.children().stop(!0,!0).animate({opacity:0}
40,settings.duration,module.resetOpacity)),$activeContent.slideUp(settings.duration,settings.easing,(function(){$activeContent.removeClass(className.animating).removeClass(className.active),module.reset.display.call(this),settings.onClose.call(this),settings.onChange.call(this)})))},closeOthers:function(index){var $openTitles,$nestedTitles,$openContents,$activeTitle=undefined!==index?$title.eq(index):$(this).closest(selector.title),$parentTitles=$activeTitle.parents(selector.content).prev(selector.title),$activeAccordion=$activeTitle.closest(selector.accordion),activeSelector=selector.title+"."+className.active+":visible",activeContent=selector.content+"."+className.active+":visible";settings.closeNested?$openContents=($openTitles=$activeAccordion.find(activeSelector).not($parentTitles)).next($content):($openTitles=$activeAccordion.find(activeSelector).not($parentTitles),$nestedTitles=$activeAccordion.find(activeContent).find(activeSelector).not($parentTitles),$openContents=($openTitles=$openTitles.not($nestedTitles)).next($content)),$openTitles.length>0&&(module.debug("Exclusive enabled, closing other content",$openTitles),$openTitles.removeClass(className.active),$openContents.removeClass(className.animating).stop(!0,!0),settings.animateChildren&&(undefined!==$.fn.transition&&$module.transition("is supported")?$openContents.children().transition({animation:"fade out",useFailSafe:!0,debug:settings.debug,verbose:settings.verbose,duration:settings.duration}):$openContents.children().stop(!0,!0).animate({opacity:0}
40,settings.duration,module.resetOpacity)),$openContents.slideUp(settings.duration,settings.easing,(function(){$(this).removeClass(className.active),module.reset.display.call(this)})))},reset:{display:function(){module.verbose("Removing inline display from element",this),$(this).css("display",""),""===$(this).attr("style")&&$(this).attr("style","").removeAttr("style")},opacity:function(){module.verbose("Removing inline opacity from element",this),$(this).css("opacity",""),""===$(this).attr("style")&&$(this).attr("style","").removeAttr("style")}},setting:function(name,value){if(module.debug("Changing setting",name,value),$.isPlainObject(name))$.extend(!0,settings,name);else{if(undefined===value)return settings[name];$.isPlainObject(settings[name])?$.extend(!0,settings[name],value):settings[name]=value}},internal:function(name,value){if(module.debug("Changing internal",name,value),undefined===value)return module[name];$.isPlainObject(name)?$.extend(!0,module,name):module[name]=value},debug:function(){!settings.silent&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.debug=Function.prototype.bind.call(console.info,console,settings.name+":"),module.debug.apply(console,arguments)))},verbose:function(){!settings.silent&&settings.verbose&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.verbose=Function.prototype.bind.call(console.info,console,settings.name+":"),module.verbose.apply(console,arguments)))},error:function(){settings.silent||(module.error=Function.prototype.bind.call(console.error,console,settings.name+":"),module.error.apply(console,arguments))},performance:{log:function(message){var currentTime,executionTime;settings.performance&&(executionTime=(currentTime=(new Date).getTime())-(time||currentTime),time=currentTime,performance.push({Name:message[0],Arguments:[].slice.call(message,1)||"",Element:element,"Execution Time":executionTime})),clearTimeout(module.performance.timer),module.performance.timer=setTimeout(module.performance.display,500)},display:function(){var title=settings.name+":",totalTime=0;time=!1,clearTimeout(module.performance.timer),$.each(performance,(function(index,data){totalTime+=data["Execution Time"]})),title+=" "+totalTime+"ms",moduleSelector&&(title+=" '"+moduleSelector+"'"),(undefined!==console.group||undefined!==console.table)&&performance.length>0&&(console.groupCollapsed(title),console.table?console.table(performance):$.each(performance,(function(index,data){console.log(data.Name+": "+data["Execution Time"]+"ms")})),console.groupEnd()),performance=[]}},invoke:function(query,passedArguments,context){var maxDepth,found,response,object=instance;return passedArguments=passedArguments||queryArguments,context=element||context,"string"==typeof query&&undefined!==object&&(query=query.split(/[\. ]/),maxDepth=query.length-1,$.each(query,(function(depth,value){var camelCaseValue=depth!=maxDepth?value+query[depth+1].charAt(0).toUpperCase()+query[depth+1].slice(1):query;if($.isPlainObject(object[camelCaseValue])&&depth!=maxDepth)object=object[camelCaseValue];else{if(undefined!==object[camelCaseValue])return found=object[camelCaseValue],!1;if(!$.isPlainObject(object[value])||depth==maxDepth)return undefined!==object[value]?(found=object[value],!1):(module.error(error.method,query),!1);object=object[value]}}))),$.isFunction(found)?response=found.apply(context,passedArguments):undefined!==found&&(response=found),$.isArray(returnedValue)?returnedValue.push(response):undefined!==returnedValue?returnedValue=[returnedValue,response]:undefined!==response&&(returnedValue=response),found}},methodInvoked?(undefined===instance&&module.initialize(),module.invoke(query)):(undefined!==instance&&instance.invoke("destroy"),module.initialize())})),undefined!==returnedValue?returnedValue:this},$.fn.accordion.settings={name:"Accordion",namespace:"accordion",silent:!1,debug:!1,verbose:!1,performance:!0,on:"click",observeChanges:!0,exclusive:!0,collapsible:!0,closeNested:!1,animateChildren:!0,duration:350,easing:"easeOutQuad",onOpening:function(){},onClosing:function(){},onChanging:function(){},onOpen:function(){},onClose:function(){},onChange:function(){},error:{method:"The method you called is not defined"},className:{active:"active",animating:"animating"},selector:{accordion:".accordion",title:".title",trigger:".title",content:".content"}},$.extend($.easing,{easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b}})}(jQuery,window,document),
41/*!
42 * # Semantic UI 2.4.2 - Checkbox
43 * http://github.com/semantic-org/semantic-ui/
44 *
45 *
46 * Released under the MIT license
47 * http://opensource.org/licenses/MIT
48 *
49 */
50function($,window,document){"use strict";window=void 0!==window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),$.fn.checkbox=function(parameters){var returnedValue,$allModules=$(this),moduleSelector=$allModules.selector||"",time=(new Date).getTime(),performance=[],query=arguments[0],methodInvoked="string"==typeof query,queryArguments=[].slice.call(arguments,1
vendor: 10,906 bytes, line 50
50);return $allModules.each((function(){var observer,module,settings=$.extend(!0,{},$.fn.checkbox.settings,parameters),className=settings.className,namespace=settings.namespace,selector=settings.selector,error=settings.error,eventNamespace="."+namespace,moduleNamespace="module-"+namespace,$module=$(this),$label=$(this).children(selector.label),$input=$(this).children(selector.input),input=$input[0],initialLoad=!1,shortcutPressed=!1,instance=$module.data(moduleNamespace),element=this;module={initialize:function(){module.verbose("Initializing checkbox",settings),module.create.label(),module.bind.events(),module.set.tabbable(),module.hide.input(),module.observeChanges(),module.instantiate(),module.setup()},instantiate:function(){module.verbose("Storing instance of module",module),instance=module,$module.data(moduleNamespace,module)},destroy:function(){module.verbose("Destroying module"),module.unbind.events(),module.show.input(),$module.removeData(moduleNamespace)},fix:{reference:function(){$module.is(selector.input)&&(module.debug("Behavior called on <input> adjusting invoked element"),$module=$module.closest(selector.checkbox),module.refresh())}},setup:function(){module.set.initialLoad(),module.is.indeterminate()?(module.debug("Initial value is indeterminate"),module.indeterminate()):module.is.checked()?(module.debug("Initial value is checked"),module.check()):(module.debug("Initial value is unchecked"),module.uncheck()),module.remove.initialLoad()},refresh:function(){$label=$module.children(selector.label),$input=$module.children(selector.input),input=$input[0]},hide:{input:function(){module.verbose("Modifying <input> z-index to be unselectable"),$input.addClass(className.hidden)}},show:{input:function(){module.verbose("Modifying <input> z-index to be selectable"),$input.removeClass(className.hidden)}},observeChanges:function(){"MutationObserver"in window&&((observer=new MutationObserver((function(mutations){module.debug("DOM tree modified, updating selector cache"),module.refresh()}))).observe(element,{childList:!0,subtree:!0}),module.debug("Setting up mutation observer",observer))},attachEvents:function(selector,event){var $element=$(selector);event=$.isFunction(module[event])?module[event]:module.toggle,$element.length>0?(module.debug("Attaching checkbox events to element",selector,event),$element.on("click"+eventNamespace,event)):module.error(error.notFound)},event:{click:function(event){var $target=$(event.target);$target.is(selector.input)?module.verbose("Using default check action on initialized checkbox"):$target.is(selector.link)?module.debug("Clicking link inside checkbox, skipping toggle"):(module.toggle(),$input.focus(),event.preventDefault())},keydown:function(event){var key=event.which,keyCode_enter=13,keyCode_space=32;key==27?(module.verbose("Escape key pressed blurring field"),$input.blur(),shortcutPressed=!0):event.ctrlKey||key!=keyCode_space&&key!=keyCode_enter?shortcutPressed=!1:(module.verbose("Enter/space key pressed, toggling checkbox"),module.toggle(),shortcutPressed=!0)},keyup:function(event){shortcutPressed&&event.preventDefault()}},check:function(){module.should.allowCheck()&&(module.debug("Checking checkbox",$input),module.set.checked(),module.should.ignoreCallbacks()||(settings.onChecked.call(input),settings.onChange.call(input)))},uncheck:function(){module.should.allowUncheck()&&(module.debug("Unchecking checkbox"),module.set.unchecked(),module.should.ignoreCallbacks()||(settings.onUnchecked.call(input),settings.onChange.call(input)))},indeterminate:function(){module.should.allowIndeterminate()?module.debug("Checkbox is already indeterminate"):(module.debug("Making checkbox indeterminate"),module.set.indeterminate(),module.should.ignoreCallbacks()||(settings.onIndeterminate.call(input),settings.onChange.call(input)))},determinate:function(){module.should.allowDeterminate()?module.debug("Checkbox is already determinate"):(module.debug("Making checkbox determinate"),module.set.determinate(),module.should.ignoreCallbacks()||(settings.onDeterminate.call(input),settings.onChange.call(input)))},enable:function(){module.is.enabled()?module.debug("Checkbox is already enabled"):(module.debug("Enabling checkbox"),module.set.enabled(),settings.onEnable.call(input),settings.onEnabled.call(input))},disable:function(){module.is.disabled()?module.debug("Checkbox is already disabled"):(module.debug("Disabling checkbox"),module.set.disabled(),settings.onDisable.call(input),settings.onDisabled.call(input))},get:{radios:function(){var name=module.get.name();return $('input[name="'+name+'"]').closest(selector.checkbox)},otherRadios:function(){return module.get.radios().not($module)},name:function(){return $input.attr("name")}},is:{initialLoad:function(){return initialLoad},radio:function(){return $input.hasClass(className.radio)||"radio"==$input.attr("type")},indeterminate:function(){return undefined!==$input.prop("indeterminate")&&$input.prop("indeterminate")},checked:function(){return undefined!==$input.prop("checked")&&$input.prop("checked")},disabled:function(){return undefined!==$input.prop("disabled")&&$input.prop("disabled")},enabled:function(){return!module.is.disabled()},determinate:function(){return!module.is.indeterminate()},unchecked:function(){return!module.is.checked()}},should:{allowCheck:function(){return module.is.determinate()&&module.is.checked()&&!module.should.forceCallbacks()?(module.debug("Should not allow check, checkbox is already checked"),!1):!1!==settings.beforeChecked.apply(input)||(module.debug("Should not allow check, beforeChecked cancelled"),!1)},allowUncheck:function(){return module.is.determinate()&&module.is.unchecked()&&!module.should.forceCallbacks()?(module.debug("Should not allow uncheck, checkbox is already unchecked"),!1):!1!==settings.beforeUnchecked.apply(input)||(module.debug("Should not allow uncheck, beforeUnchecked cancelled"),!1)},allowIndeterminate:function(){return module.is.indeterminate()&&!module.should.forceCallbacks()?(module.debug("Should not allow indeterminate, checkbox is already indeterminate"),!1):!1!==settings.beforeIndeterminate.apply(input)||(module.debug("Should not allow indeterminate, beforeIndeterminate cancelled"),!1)},allowDeterminate:function(){return module.is.determinate()&&!module.should.forceCallbacks()?(module.debug("Should not allow determinate, checkbox is already determinate"),!1):!1!==settings.beforeDeterminate.apply(input)||(module.debug("Should not allow determinate, beforeDeterminate cancelled"),!1)},forceCallbacks:function(){return module.is.initialLoad()&&settings.fireOnInit},ignoreCallbacks:function(){return initialLoad&&!settings.fireOnInit}},can:{change:function(){return!($module.hasClass(className.disabled)||$module.hasClass(className.readOnly)||$input.prop("disabled")||$input.prop("readonly"))},uncheck:function(){return"boolean"==typeof settings.uncheckable?settings.uncheckable:!module.is.radio()}},set:{initialLoad:function(){initialLoad=!0},checked:function(){module.verbose("Setting class to checked"),$module.removeClass(className.indeterminate).addClass(className.checked),module.is.radio()&&module.uncheckOthers(),module.is.indeterminate()||!module.is.checked()?(module.verbose("Setting state to checked",input),$input.prop("indeterminate",!1).prop("checked",!0),module.trigger.change()):module.debug("Input is already checked, skipping input property change")},unchecked:function(){module.verbose("Removing checked class"),$module.removeClass(className.indeterminate).removeClass(className.checked),module.is.indeterminate()||!module.is.unchecked()?(module.debug("Setting state to unchecked"),$input.prop("indeterminate",!1).prop("checked",!1),module.trigger.change()):module.debug("Input is already unchecked")},indeterminate:function(){module.verbose("Setting class to indeterminate"),$module.addClass(className.indeterminate),module.is.indeterminate()?module.debug("Input is already indeterminate, skipping input property change"):(module.debug("Setting state to indeterminate"),$input.prop("indeterminate",!0),module.trigger.change())},determinate:function(){module.verbose("Removing indeterminate class"),$module.removeClass(className.indeterminate),module.is.determinate()?module.debug("Input is already determinate, skipping input property change"):(module.debug("Setting state to determinate"),$input.prop("indeterminate",!1))},disabled:function(){module.verbose("Setting class to disabled"),$module.addClass(className.disabled),module.is.disabled()?module.debug("Input is already disabled, skipping input property change"):(module.debug("Setting state to disabled"),$input.prop("disabled","disabled"),module.trigger.change())},enabled:function(){module.verbose("Removing disabled class"),$module.removeClass(className.disabled),module.is.enabled()?module.debug("Input is already enabled, skipping input property change"):(module.debug("Setting state to enabled"),$input.prop("disabled",!1),module.trigger.change())},tabbable:function(){module.verbose("Adding tabindex to checkbox"),undefined===$input.attr("tabindex")&&$input.attr("tabindex",0)}},remove:{initialLoad:function(){initialLoad=!1}},trigger:{change:function(){var events=document.createEvent("HTMLEvents"),inputElement=$input[0];inputElement&&(module.verbose("Triggering native change event"),events.initEvent("change",!0,!1),inputElement.dispatchEvent(events))}},create:{label:function(){$input.prevAll(selector.label).length>0?($input.prev(selector.label).detach().insertAfter($input),module.debug("Moving existing label",$label)):module.has.label()||($label=$("<label>").insertAfter($input),module.debug("Creating label",$label))}},has:{label:function(){return $label.length>0}},bind:{events:function(){module.verbose("Attaching checkbox events"),$module.on("click"+eventNamespace,module.event.click).on("keydown"+eventNamespace,selector.input,module.event.keydown).on("keyup"+eventNamespace,selector.input,module.event.keyup)}},unbind:{events:function(){module.debug("Removing events"),$module.off(eventNamespace)}},uncheckOthers:function(){var $radios=module.get.otherRadios();module.debug("Unchecking other radios",$radios),$radios.removeClass(className.checked)},toggle:function(){module.can.change()?module.is.indeterminate()||module.is.unchecked()?(module.debug("Currently unchecked"),module.check()):module.is.checked()&&module.can.uncheck()&&(module.debug("Currently checked"),module.uncheck()):module.is.radio()||module.debug("Checkbox is read-only or disabled, ignoring toggle")},setting:function(name,value){if(module.debug("Changing setting",name,value),$.isPlainObject(name))$.extend(!0,settings,name);else{if(undefined===value)return settings[name];$.isPlainObject(settings[name])?$.extend(!0,settings[name],value):settings[name]=value}},internal:function(name,value){if($.isPlainObject(name))$.extend(!0,module,name);else{if(undefined===value)return module[name];module[name]=value}}
50,debug:function(){!settings.silent&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.debug=Function.prototype.bind.call(console.info,console,settings.name+":"),module.debug.apply(console,arguments)))},verbose:function(){!settings.silent&&settings.verbose&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.verbose=Function.prototype.bind.call(console.info,console,settings.name+":"),module.verbose.apply(console,arguments)))},error:function(){settings.silent||(module.error=Function.prototype.bind.call(console.error,console,settings.name+":"),module.error.apply(console,arguments))},performance:{log:function(message){var currentTime,executionTime;settings.performance&&(executionTime=(currentTime=(new Date).getTime())-(time||currentTime),time=currentTime,performance.push({Name:message[0],Arguments:[].slice.call(message,1)||"",Element:element,"Execution Time":executionTime})),clearTimeout(module.performance.timer),module.performance.timer=setTimeout(module.performance.display,500)},display:function(){var title=settings.name+":",totalTime=0;time=!1,clearTimeout(module.performance.timer),$.each(performance,(function(index,data){totalTime+=data["Execution Time"]})),title+=" "+totalTime+"ms",moduleSelector&&(title+=" '"+moduleSelector+"'"),(undefined!==console.group||undefined!==console.table)&&performance.length>0&&(console.groupCollapsed(title),console.table?console.table(performance):$.each(performance,(function(index,data){console.log(data.Name+": "+data["Execution Time"]+"ms")})),console.groupEnd()),performance=[]}},invoke:function(query,passedArguments,context){var maxDepth,found,response,object=instance;return passedArguments=passedArguments||queryArguments,context=element||context,"string"==typeof query&&undefined!==object&&(query=query.split(/[\. ]/),maxDepth=query.length-1,$.each(query,(function(depth,value){var camelCaseValue=depth!=maxDepth?value+query[depth+1].charAt(0).toUpperCase()+query[depth+1].slice(1):query;if($.isPlainObject(object[camelCaseValue])&&depth!=maxDepth)object=object[camelCaseValue];else{if(undefined!==object[camelCaseValue])return found=object[camelCaseValue],!1;if(!$.isPlainObject(object[value])||depth==maxDepth)return undefined!==object[value]?(found=object[value],!1):(module.error(error.method,query),!1);object=object[value]}}))),$.isFunction(found)?response=found.apply(context,passedArguments):undefined!==found&&(response=found),$.isArray(returnedValue)?returnedValue.push(response):undefined!==returnedValue?returnedValue=[returnedValue,response]:undefined!==response&&(returnedValue=response),found}},methodInvoked?(undefined===instance&&module.initialize(),module.invoke(query)):(undefined!==instance&&instance.invoke("destroy"),module.initialize())})),undefined!==returnedValue?returnedValue:this},$.fn.checkbox.settings={name:"Checkbox",namespace:"checkbox",silent:!1,debug:!1,verbose:!0,performance:!0,uncheckable:"auto",fireOnInit:!1,onChange:function(){},beforeChecked:function(){},beforeUnchecked:function(){},beforeDeterminate:function(){},beforeIndeterminate:function(){},onChecked:function(){},onUnchecked:function(){},onDeterminate:function(){},onIndeterminate:function(){},onEnable:function(){},onDisable:function(){},onEnabled:function(){},onDisabled:function(){},className:{checked:"checked",indeterminate:"indeterminate",disabled:"disabled",hidden:"hidden",radio:"radio",readOnly:"read-only"},error:{method:"The method you called is not defined"},selector:{checkbox:".ui.checkbox",label:"label, .box",input:'input[type="checkbox"], input[type="radio"]',link:"a[href]"}}}(jQuery,window,document),
51/*!
52 * # Semantic UI 2.4.2 - Dropdown
53 * http://github.com/semantic-org/semantic-ui/
54 *
55 *
56 * Released under the MIT license
57 * http://opensource.org/licenses/MIT
58 *
59 */
60function($,window,document){"use strict";window=void 0!==window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),$.fn.dropdown=function(parameters){var returnedValue,$allModules=$(this),$document=$(document),moduleSelector=$allModules.selector||"",hasTouch="ontouchstart"in document.documentElement,time=(new Date).getTime(),performance=[],query=arguments[0],methodInvoked="string"==typeof query,queryArguments=[].slice.call(arguments,1
vendor: 5,188 bytes, line 60
60);return $allModules.each((function(elementIndex){var initialLoad,pageLostFocus,willRefocus,elementNamespace,id,selectObserver,menuObserver,module,settings=$.isPlainObject(parameters)?$.extend(!0,{},$.fn.dropdown.settings,parameters):$.extend({},$.fn.dropdown.settings),className=settings.className,message=settings.message,fields=settings.fields,keys=settings.keys,metadata=settings.metadata,namespace=settings.namespace,regExp=settings.regExp,selector=settings.selector,error=settings.error,templates=settings.templates,eventNamespace="."+namespace,moduleNamespace="module-"+namespace,$module=$(this),$context=$(settings.context),$text=$module.find(selector.text),$search=$module.find(selector.search),$sizer=$module.find(selector.sizer),$input=$module.find(selector.input),$icon=$module.find(selector.icon),$combo=$module.prev().find(selector.text).length>0?$module.prev().find(selector.text):$module.prev(),$menu=$module.children(selector.menu),$item=$menu.find(selector.item),activated=!1,itemActivated=!1,internalChange=!1,element=this,instance=$module.data(moduleNamespace);module={initialize:function(){module.debug("Initializing dropdown",settings),module.is.alreadySetup()?module.setup.reference():(module.setup.layout(),settings.values&&module.change.values(settings.values),module.refreshData(),module.save.defaults(),module.restore.selected(),module.create.id(),module.bind.events(),module.observeChanges(),module.instantiate())},instantiate:function(){module.verbose("Storing instance of dropdown",module),instance=module,$module.data(moduleNamespace,module)},destroy:function(){module.verbose("Destroying previous dropdown",$module),module.remove.tabbable(),$module.off(eventNamespace).removeData(moduleNamespace),$menu.off(eventNamespace),$document.off(elementNamespace),module.disconnect.menuObserver(),module.disconnect.selectObserver()},observeChanges:function(){"MutationObserver"in window&&(selectObserver=new MutationObserver(module.event.select.mutation),menuObserver=new MutationObserver(module.event.menu.mutation),module.debug("Setting up mutation observer",selectObserver,menuObserver),module.observe.select(),module.observe.menu())},disconnect:{menuObserver:function(){menuObserver&&menuObserver.disconnect()},selectObserver:function(){selectObserver&&selectObserver.disconnect()}},observe:{select:function(){module.has.input()&&selectObserver.observe($module[0],{childList:!0,subtree:!0})},menu:function(){module.has.menu()&&menuObserver.observe($menu[0],{childList:!0,subtree:!0})}},create:{id:function(){id=(Math.random().toString(16)+"000000000").substr(2,8),elementNamespace="."+id,module.verbose("Creating unique id for element",id)},userChoice:function(values){var $userChoices,$userChoice,html;return!!(values=values||module.get.userValues())&&(values=$.isArray(values)?values:[values],$.each(values,(function(index,value){!1===module.get.item(value)&&(html=settings.templates.addition(module.add.variables(message.addResult,value)),$userChoice=$("<div />").html(html).attr("data-"+metadata.value,value).attr("data-"+metadata.text,value).addClass(className.addition).addClass(className.item),settings.hideAdditions&&$userChoice.addClass(className.hidden),$userChoices=undefined===$userChoices?$userChoice:$userChoices.add($userChoice),module.verbose("Creating user choices for value",value,$userChoice))})),$userChoices)},userLabels:function(value){var userValues=module.get.userValues();userValues&&(module.debug("Adding user labels",userValues),$.each(userValues,(function(index,value){module.verbose("Adding custom user value"),module.add.label(value,value)})))},menu:function(){$menu=$("<div />").addClass(className.menu).appendTo($module)},sizer:function(){$sizer=$("<span />").addClass(className.sizer).insertAfter($search)}},search:function(query){query=undefined!==query?query:module.get.query(),module.verbose("Searching for query",query),module.has.minCharacters(query)?module.filter(query):module.hide()},select:{firstUnfiltered:function(){module.verbose("Selecting first non-filtered element"),module.remove.selectedItem(),$item.not(selector.unselectable).not(selector.addition+selector.hidden).eq(0).addClass(className.selected)},nextAvailable:function($selected){var $nextAvailable=($selected=$selected.eq(0)).nextAll(selector.item).not(selector.unselectable).eq(0),$prevAvailable=$selected.prevAll(selector.item).not(selector.unselectable).eq(0);$nextAvailable.length>0?(module.verbose("Moving selection to",$nextAvailable),$nextAvailable.addClass(className.selected)):(module.verbose("Moving selection to",$prevAvailable),$prevAvailable.addClass(className.selected))}},setup:{api:function(){var apiSettings={debug:settings.debug,urlData:{value:module.get.value(),query:module.get.query()},on:!1};module.verbose("First request, initializing API"),$module.api(apiSettings)},layout:function(){$module.is("select")&&(module.setup.select(),module.setup.returnedObject()),module.has.menu()||module.create.menu(),module.is.search()&&!module.has.search()&&(module.verbose("Adding search input"),$search=$("<input />").addClass(className.search).prop("autocomplete","off").insertBefore($text)),module.is.multiple()&&module.is.searchSelection()&&
vendor: 4,556 bytes, line 60
60!module.has.sizer()&&module.create.sizer(),settings.allowTab&&module.set.tabbable()},select:function(){var selectValues=module.get.selectValues();module.debug("Dropdown initialized on a select",selectValues),$module.is("select")&&($input=$module),$input.parent(selector.dropdown).length>0?(module.debug("UI dropdown already exists. Creating dropdown menu only"),$module=$input.closest(selector.dropdown),module.has.menu()||module.create.menu(),$menu=$module.children(selector.menu),module.setup.menu(selectValues)):(module.debug("Creating entire dropdown from select"),$module=$("<div />").attr("class",$input.attr("class")).addClass(className.selection).addClass(className.dropdown).html(templates.dropdown(selectValues)).insertBefore($input),$input.hasClass(className.multiple)&&!1===$input.prop("multiple")&&(module.error(error.missingMultiple),$input.prop("multiple",!0)),$input.is("[multiple]")&&module.set.multiple(),$input.prop("disabled")&&(module.debug("Disabling dropdown"),$module.addClass(className.disabled)),$input.removeAttr("class").detach().prependTo($module)),module.refresh()},menu:function(values){$menu.html(templates.menu(values,fields)),$item=$menu.find(selector.item)},reference:function(){module.debug("Dropdown behavior was called on select, replacing with closest dropdown"),$module=$module.parent(selector.dropdown),instance=$module.data(moduleNamespace),element=$module.get(0),module.refresh(),module.setup.returnedObject()},returnedObject:function(){var $firstModules=$allModules.slice(0,elementIndex),$lastModules=$allModules.slice(elementIndex+1);$allModules=$firstModules.add($module).add($lastModules)}},refresh:function(){module.refreshSelectors(),module.refreshData()},refreshItems:function(){$item=$menu.find(selector.item)},refreshSelectors:function(){module.verbose("Refreshing selector cache"),$text=$module.find(selector.text),$search=$module.find(selector.search),$input=$module.find(selector.input),$icon=$module.find(selector.icon),$combo=$module.prev().find(selector.text).length>0?$module.prev().find(selector.text):$module.prev(),$menu=$module.children(selector.menu),$item=$menu.find(selector.item)},refreshData:function(){module.verbose("Refreshing cached metadata"),$item.removeData(metadata.text).removeData(metadata.value)},clearData:function(){module.verbose("Clearing metadata"),$item.removeData(metadata.text).removeData(metadata.value),$module.removeData(metadata.defaultText).removeData(metadata.defaultValue).removeData(metadata.placeholderText)},toggle:function(){module.verbose("Toggling menu visibility"),module.is.active()?module.hide():setTimeout((function(){module.show()}),0)},show:function(callback){if(callback=$.isFunction(callback)?callback:function(){},!module.can.show()&&module.is.remote()&&(module.debug("No API results retrieved, searching before show"),module.queryRemote(module.get.query(),module.show)),module.can.show()&&!module.is.active()){if(module.debug("Showing dropdown"),!module.has.message()||module.has.maxSelections()||module.has.allResultsFiltered()||module.remove.message(),module.is.allFiltered())return!0;!1!==settings.onShow.call(element)&&module.animate.show((function(){module.can.click()&&module.bind.intent(),module.has.menuSearch()&&module.focusSearch(),module.set.visible(),callback.call(element)}))}},hide:function(callback){callback=$.isFunction(callback)?callback:function(){},module.is.active()&&!module.is.animatingOutward()&&(module.debug("Hiding dropdown"),!1!==settings.onHide.call(element)&&module.animate.hide((function(){module.remove.visible(),callback.call(element)})))},hideOthers:function(){module.verbose("Finding other dropdowns to hide"),$allModules.not($module).has(selector.menu+"."+className.visible).dropdown("hide")},hideMenu:function(){module.verbose("Hiding menu  instantaneously"),module.remove.active(),module.remove.visible(),$menu.transition("hide")},hideSubMenus:function(){var $subMenus=$menu.children(selector.item).find(selector.menu);module.verbose("Hiding sub menus",$subMenus),$subMenus.transition("hide")},bind:{events:function(){hasTouch&&module.bind.touchEvents(),module.bind.keyboardEvents(),module.bind.inputEvents(),module.bind.mouseEvents()},touchEvents:function(){module.debug("Touch device detected binding additional touch events"),module.is.searchSelection()||module.is.single()&&$module.on("touchstart"+eventNamespace,module.event.test.toggle),$menu.on("touchstart"+eventNamespace,selector.item,module.event.item.mouseenter)},keyboardEvents:function(){module.verbose("Binding keyboard events"),$module.on("key
60down"+eventNamespace,module.event.keydown),module.has.search()&&$module.on(module.get.inputEvent()+eventNamespace,selector.search,module.event.input),module.is.multiple()&&$document.on("keydown"+elementNamespace,module.event.document.keydown)},inputEvents:function(){module.verbose("Binding input change events"),$module.on("change"+eventNamespace,selector.input,module.event.change)},mouseEvents:function(){module.verbose("Binding mouse events"),module.is.multiple()&&$module.on("click"+eventNamespace,selector.label,module.event.label.click).on("click"+eventNamespace,selector.remove,module.event.remove.click),module.is.searchSelection()?($module.on("mousedown"+eventNamespace,module.event.mousedown).on("mouseup"+eventNamespace,module.event.mouseup).on("mousedown"+eventNamespace,selector.menu,module.event.menu.mousedown).on("mouseup"+eventNamespace,selector.menu,module.event.menu.mouseup).on("click"+eventNamespace,selector.icon,module.event.icon.click).on("focus"+eventNamespace,selector.search,module.event.search.focus).on("click"+eventNamespace,selector.search,module.event.search.focus).on("blur"+eventNamespace,selector.search,module.event.search.blur).on("click"+eventNamespace,selector.text,module.event.text.focus),module.is.multiple()&&$module.on("click"+eventNamespace,module.event.click)):("click"==settings.on?$module.on("click"+eventNamespace,module.event.test.toggle):"hover"==settings.on?$module.on("mouseenter"+eventNamespace,module.delay.show).on("mouseleave"+eventNamespace,module.delay.hide):$module.on(settings.on+eventNamespace,module.toggle),$module.on("click"+eventNamespace,selector.icon,module.event.icon.click).on("mousedown"+eventNamespace,module.event.mousedown).on("mouseup"+eventNamespace,module.event.mouseup).on("focus"+eventNamespace,module.event.focus),module.has.menuSearch()?$module.on("blur"+eventNamespace,selector.search,module.event.search.blur):$module.on("blur"+eventNamespace,module.event.blur)),$menu.on("mouseenter"+eventNamespace,selector.item,module.event.item.mouseenter).on("mouseleave"+eventNamespace,selector.item,module.event.item.mouseleave).on("click"+eventNamespace,selector.item,module.event.item.click)},intent:function(){module.verbose("Binding hide intent event to document"),hasTouch&&$document.on("touchstart"+elementNamespace,module.event.test.touch).on("touchmove"+elementNamespace,module.event.test.touch),$document.on("click"+elementNamespace,module.event.test.hide)}},unbind:{intent:function(){module.verbose("Removing hide intent event from document"),hasTouch&&$document.off("touchstart"+elementNamespace).off("touchmove"+elementNamespace),$document.off("click"+elementNamespace)}},filter:function(query){var searchTerm=undefined!==query?query:module.get.query(),afterFiltered=function(){module.is.multiple()&&module.filterActive(),(query||!query&&0==module.get.activeItem().length)&&module.select.firstUnfiltered(),module.has.allResultsFiltered()?settings.onNoResults.call(element,searchTerm)?settings.allowAdditions?settings.hideAdditions&&(module.verbose("User addition with no menu, setting empty style"),module.set.empty(),module.hideMenu()):(module.verbose("All items filtered, showing message",searchTerm),module.add.message(message.noResults)):(module.verbose("All items filtered, hiding dropdown",searchTerm),module.hideMenu()):(module.remove.empty(),module.remove.message()),settings.allowAdditions&&module.add.userSuggestion(query),module.is.searchSelection()&&module.can.show()&&module.is.focusedOnSearch()&&module.show()};settings.useLabels&&module.has.maxSelections()||(settings.apiSettings?module.can.useAPI()?module.queryRemote(searchTerm,(function(){settings.filterRemoteData&&module.filterItems(searchTerm),afterFiltered()})):module.error(error.noAPI):(module.filterItems(searchTerm),afterFiltered()))},queryRemote:function(query,callback){var apiSettings={errorDuration:!1,cache:"local",throttle:settings.throttle,urlData:{query:query},onError:function(){module.add.message(message.serverError),callback()},onFailure:function(){module.add.message(message.serverError),callback()},onSuccess:function(response){var values=response[fields.remoteValues];$.isArray(values)&&values.length>0?(module.remove.message(),module.setup.menu({values:response[fields.remoteValues]})):module.add.message(message.noResults),callback()}};$module.api("get request")||module.setup.api(),apiSettings=$.extend(!0,{},apiSettings,settings.apiSettings),$module.api("setting",apiSettings).api("query")},filterItems:function(query){var searchTerm=undefined!==query?query:module.get.query(),results=null,escapedTerm=module.escape.string(searchTerm),beginsWithRegExp=new RegExp("^"+escapedTerm,"igm");module.has.query()&&(results=[],module.verbose("Searching for matching values",searchTerm),$item.each((function(){var text,value,$choice=$(this);
vendor: 5,027 bytes, line 60
60if("both"==settings.match||"text"==settings.match){if(-1!==(text=String(module.get.choiceText($choice,!1))).search(beginsWithRegExp))return results.push(this),!0;if("exact"===settings.fullTextSearch&&module.exactSearch(searchTerm,text))return results.push(this),!0;if(!0===settings.fullTextSearch&&module.fuzzySearch(searchTerm,text))return results.push(this),!0}if("both"==settings.match||"value"==settings.match){if(-1!==(value=String(module.get.choiceValue($choice,text))).search(beginsWithRegExp))return results.push(this),!0;if("exact"===settings.fullTextSearch&&module.exactSearch(searchTerm,value))return results.push(this),!0;if(!0===settings.fullTextSearch&&module.fuzzySearch(searchTerm,value))return results.push(this),!0}}))),module.debug("Showing only matched items",searchTerm),module.remove.filteredItem(),results&&$item.not(results).addClass(className.filtered)},fuzzySearch:function(query,term){var termLength=term.length,queryLength=query.length;if(query=query.toLowerCase(),term=term.toLowerCase(),queryLength>termLength)return!1;if(queryLength===termLength)return query===term;search:for(var characterIndex=0,nextCharacterIndex=0;characterIndex<queryLength;characterIndex++){for(var queryCharacter=query.charCodeAt(characterIndex);nextCharacterIndex<termLength;)if(term.charCodeAt(nextCharacterIndex++)===queryCharacter)continue search;return!1}return!0},exactSearch:function(query,term){return query=query.toLowerCase(),(term=term.toLowerCase()).indexOf(query)>-1},filterActive:function(){settings.useLabels&&$item.filter("."+className.active).addClass(className.filtered)},focusSearch:function(skipHandler){module.has.search()&&!module.is.focusedOnSearch()&&(skipHandler?($module.off("focus"+eventNamespace,selector.search),$search.focus(),$module.on("focus"+eventNamespace,selector.search,module.event.search.focus)):$search.focus())},forceSelection:function(){var $currentlySelected=$item.not(className.filtered).filter("."+className.selected).eq(0),$activeItem=$item.not(className.filtered).filter("."+className.active).eq(0),$selectedItem=$currentlySelected.length>0?$currentlySelected:$activeItem;if($selectedItem.length>0&&!module.is.multiple())return module.debug("Forcing partial selection to selected item",$selectedItem),void module.event.item.click.call($selectedItem,{},!0);settings.allowAdditions?(module.set.selected(module.get.query()),module.remove.searchTerm()):module.remove.searchTerm()},change:{values:function(values){settings.allowAdditions||module.clear(),module.debug("Creating dropdown with specified values",values),module.setup.menu({values:values}),$.each(values,(function(index,item){if(1==item.selected)return module.debug("Setting initial selection to",item.value),module.set.selected(item.value),!0}))}},event:{change:function(){internalChange||(module.debug("Input changed, updating selection"),module.set.selected())},focus:function(){settings.showOnFocus&&!activated&&module.is.hidden()&&!pageLostFocus&&module.show()},blur:function(event){pageLostFocus=document.activeElement===this,activated||pageLostFocus||(module.remove.activeLabel(),module.hide())},mousedown:function(){module.is.searchSelection()?willRefocus=!0:activated=!0},mouseup:function(){module.is.searchSelection()?willRefocus=!1:activated=!1},click:function(event){$(event.target).is($module)&&(module.is.focusedOnSearch()?module.show():module.focusSearch())},search:{focus:function(){activated=!0,module.is.multiple()&&module.remove.activeLabel(),settings.showOnFocus&&module.search()},blur:function(event){pageLostFocus=document.activeElement===this,module.is.searchSelection()&&!willRefocus&&(itemActivated||pageLostFocus||(settings.forceSelection&&module.forceSelection(),module.hide())),willRefocus=!1}},icon:{click:function(event){$icon.hasClass(className.clear)?module.clear():module.can.click()&&module.toggle()}},text:{focus:function(event){activated=!0,module.focusSearch()}},input:function(event){(module.is.multiple()||module.is.searchSelection())&&module.set.filtered(),clearTimeout(module.timer),module.timer=setTimeout(module.search,settings.delay.search)},label:{click:function(event){var $label=$(this),$labels=$module.find(selector.label),$activeLabels=$labels.filter("."+className.active),$nextActive=$label.nextAll("."+className.active),$prevActive=$label.prevAll("."+className.active),$range=$nextActive.length>0?$label.nextUntil($nextActive).add($activeLabels).add($label):$label.prevUntil($prevActive).add($activeLabels).add($label);event.shiftKey?($activeLabels.removeClass(className.active),$range.addClass(className.active)):event.ctrlKey?$label.toggleClass(className.active):($activeLabels.removeClass(className.active),$label.addClass(className.active)),settings.onLabelSelect.apply(this,$labels.filter("."+className.active))}},remove:{click:function(){var $label=$(this).parent();$label.hasClass(className.active)?module.remove.activeLabels():module.remove.activeLabels($label)}},test:{toggle:function(event){var toggleBehavior=module.is.multiple()?module.show:module.toggle;
60module.is.bubbledLabelClick(event)||module.is.bubbledIconClick(event)||module.determine.eventOnElement(event,toggleBehavior)&&event.preventDefault()},touch:function(event){module.determine.eventOnElement(event,(function(){"touchstart"==event.type?module.timer=setTimeout((function(){module.hide()}),settings.delay.touch):"touchmove"==event.type&&clearTimeout(module.timer)})),event.stopPropagation()},hide:function(event){module.determine.eventInModule(event,module.hide)}},select:{mutation:function(mutations){module.debug("<select> modified, recreating menu");var isSelectMutation=!1;$.each(mutations,(function(index,mutation){if($(mutation.target).is("select")||$(mutation.addedNodes).is("select"))return isSelectMutation=!0,!0})),isSelectMutation&&(module.disconnect.selectObserver(),module.refresh(),module.setup.select(),module.set.selected(),module.observe.select())}},menu:{mutation:function(mutations){var mutation=mutations[0],$addedNode=mutation.addedNodes?$(mutation.addedNodes[0]):$(!1),$removedNode=mutation.removedNodes?$(mutation.removedNodes[0]):$(!1),$changedNodes=$addedNode.add($removedNode),isUserAddition=$changedNodes.is(selector.addition)||$changedNodes.closest(selector.addition).length>0,isMessage=$changedNodes.is(selector.message)||$changedNodes.closest(selector.message).length>0;isUserAddition||isMessage?(module.debug("Updating item selector cache"),module.refreshItems()):(module.debug("Menu modified, updating selector cache"),module.refresh())},mousedown:function(){itemActivated=!0},mouseup:function(){itemActivated=!1}},item:{mouseenter:function(event){var $target=$(event.target),$item=$(this),$subMenu=$item.children(selector.menu),$otherMenus=$item.siblings(selector.item).children(selector.menu),hasSubMenu=$subMenu.length>0;!($subMenu.find($target).length>0)&&hasSubMenu&&(clearTimeout(module.itemTimer),module.itemTimer=setTimeout((function(){module.verbose("Showing sub-menu",$subMenu),$.each($otherMenus,(function(){module.animate.hide(!1,$(this))})),module.animate.show(!1,$subMenu)}),settings.delay.show),event.preventDefault())},mouseleave:function(event){var $subMenu=$(this).children(selector.menu);$subMenu.length>0&&(clearTimeout(module.itemTimer),module.itemTimer=setTimeout((function(){module.verbose("Hiding sub-menu",$subMenu),module.animate.hide(!1,$subMenu)}),settings.delay.hide))},click:function(event,skipRefocus){var $choice=$(this),$target=$(event?event.target:""),$subMenu=$choice.find(selector.menu),text=module.get.choiceText($choice),value=module.get.choiceValue($choice,text),hasSubMenu=$subMenu.length>0,isBubbledEvent=$subMenu.find($target).length>0;module.has.menuSearch()&&$(document.activeElement).blur(),isBubbledEvent||hasSubMenu&&!settings.allowCategorySelection||(module.is.searchSelection()&&(settings.allowAdditions&&module.remove.userAddition(),module.remove.searchTerm(),module.is.focusedOnSearch()||1==skipRefocus||module.focusSearch(!0)),settings.useLabels||(module.remove.filteredItem(),module.set.scrollPosition($choice)),module.determine.selectAction.call(this,text,value))}},document:{keydown:function(event){var pressedKey=event.which;if(module.is.inObject(pressedKey,keys)){var $label=$module.find(selector.label),$activeLabel=$label.filter("."+className.active),labelIndex=($activeLabel.data(metadata.value),$label.index($activeLabel)),labelCount=$label.length,hasActiveLabel=$activeLabel.length>0,hasMultipleActive=$activeLabel.length>1,isFirstLabel=0===labelIndex,isLastLabel=labelIndex+1==labelCount,isSearch=module.is.searchSelection(),isFocusedOnSearch=module.is.focusedOnSearch(),isFocused=module.is.focused(),caretAtStart=isFocusedOnSearch&&0===module.get.caretPosition();if(isSearch&&!hasActiveLabel&&!isFocusedOnSearch)return;pressedKey==keys.leftArrow?!isFocused&&!caretAtStart||hasActiveLabel?hasActiveLabel&&(event.shiftKey?module.verbose("Adding previous label to selection"):(module.verbose("Selecting previous label"),$label.removeClass(className.active)),isFirstLabel&&!hasMultipleActive?$activeLabel.addClass(className.active):$activeLabel.prev(selector.siblingLabel).addClass(className.active).end(),event.preventDefault()):(module.verbose("Selecting previous label"),$label.last().addClass(className.active)):pressedKey==keys.rightArrow?(isFocused&&!hasActiveLabel&&$label.first().addClass(className.active),hasActiveLabel&&(event.shiftKey?module.verbose("Adding next label to selection"):(module.verbose("Selecting next label"),$label.removeClass(className.active)),isLastLabel?isSearch?isFocusedOnSearch?$label.removeClass(className.active):module.focusSearch():hasMultipleActive?$activeLabel.next(selector.siblingLabel).addClass(className.active):$activeLabel.addClass(className.active):$activeLabel.next(selector.siblingLabel).addClass(className.active),event.preventDefault())):pressedKey==keys.deleteKey||pressedKey==keys.backspace?hasActiveLabel?(module.verbose("Removing active labels"),isLastLabel&&isSearch&&!isFocusedOnSearch&&module.focusSearch(),$activeLabel.last().next(selector.siblingLabel).addClass(className.active),module.remove.activeLabels($activeLabel),event.preventDefault()):caretAtStart&&!hasActiveLabel&&pressedKey==keys.backspace&&(module.verbose("Removing last label on input backspace"),$activeLabel=$label.last().addClass(className.active),module.remove.activeLabels($activeLabel)):$activeLabel.removeClass(className.active)}}},keydown:function(event){var pressedKey=event.which;if(module.is.inObject(pressedKey,keys)){var $nextItem,$currentlySelected=$item.not(selector.unselectable).filter("."+className.selected).eq(0),$activeItem=$menu.children("."+className.active).eq(0),$selectedItem=$currentlySelected.length>0?$currentlySelected:$activeItem,$visibleItems=$selectedItem.length>0?$selectedItem.siblings(":not(."+className.filtered+")").addBack():$menu.children(":not(."+className.filtered+")"),$subMenu=$selectedItem.children(selector.menu),$parentMenu=$selectedItem.closest(selector.menu),inVisibleMenu=$parentMenu.hasClass(className.visible)||$parentMenu.hasClass(className.animating)||$parentMenu.parent(selector.menu).length>0,hasSubMenu=$subMenu.length>0,hasSelectedItem=$selectedItem.length>0,selectedIsSelectable=$selectedItem.not(selector.unselectable).length>0,delimiterPressed=pressedKey==keys.delimiter&&settings.allowAdditions&&module.is.multiple();if(settings.allowAdditions&&settings.hideAdditions&&(pressedKey==keys.enter||delimiterPressed)&&selectedIsSelectable&&(module.verbose("Selecting item from keyboard shortcut",$selectedItem),module.event.item.click.call($selectedItem,event),module.is.searchSelection()&&module.remove.searchTerm()),module.is.visible()){if((pressedKey==keys.enter||delimiterPressed)&&(pressedKey==keys.enter&&hasSelectedItem&&hasSubMenu&&!sett
vendor: 4,287 bytes, line 60
60ings.allowCategorySelection?(module.verbose("Pressed enter on unselectable category, opening sub menu"),pressedKey=keys.rightArrow):selectedIsSelectable&&(module.verbose("Selecting item from keyboard shortcut",$selectedItem),module.event.item.click.call($selectedItem,event),module.is.searchSelection()&&module.remove.searchTerm()),event.preventDefault()),hasSelectedItem&&(pressedKey==keys.leftArrow&&$parentMenu[0]!==$menu[0]&&(module.verbose("Left key pressed, closing sub-menu"),module.animate.hide(!1,$parentMenu),$selectedItem.removeClass(className.selected),$parentMenu.closest(selector.item).addClass(className.selected),event.preventDefault()),pressedKey==keys.rightArrow&&hasSubMenu&&(module.verbose("Right key pressed, opening sub-menu"),module.animate.show(!1,$subMenu),$selectedItem.removeClass(className.selected),$subMenu.find(selector.item).eq(0).addClass(className.selected),event.preventDefault())),pressedKey==keys.upArrow){if($nextItem=hasSelectedItem&&inVisibleMenu?$selectedItem.prevAll(selector.item+":not("+selector.unselectable+")").eq(0):$item.eq(0),$visibleItems.index($nextItem)<0)return module.verbose("Up key pressed but reached top of current menu"),void event.preventDefault();module.verbose("Up key pressed, changing active item"),$selectedItem.removeClass(className.selected),$nextItem.addClass(className.selected),module.set.scrollPosition($nextItem),settings.selectOnKeydown&&module.is.single()&&module.set.selectedItem($nextItem),event.preventDefault()}if(pressedKey==keys.downArrow){if(0===($nextItem=hasSelectedItem&&inVisibleMenu?$nextItem=$selectedItem.nextAll(selector.item+":not("+selector.unselectable+")").eq(0):$item.eq(0)).length)return module.verbose("Down key pressed but reached bottom of current menu"),void event.preventDefault();module.verbose("Down key pressed, changing active item"),$item.removeClass(className.selected),$nextItem.addClass(className.selected),module.set.scrollPosition($nextItem),settings.selectOnKeydown&&module.is.single()&&module.set.selectedItem($nextItem),event.preventDefault()}pressedKey==keys.pageUp&&(module.scrollPage("up"),event.preventDefault()),pressedKey==keys.pageDown&&(module.scrollPage("down"),event.preventDefault()),pressedKey==keys.escape&&(module.verbose("Escape key pressed, closing dropdown"),module.hide())}else delimiterPressed&&event.preventDefault(),pressedKey!=keys.downArrow||module.is.visible()||(module.verbose("Down key pressed, showing dropdown"),module.show(),event.preventDefault())}else module.has.search()||module.set.selectedLetter(String.fromCharCode(pressedKey))}},trigger:{change:function(){var events=document.createEvent("HTMLEvents"),inputElement=$input[0];inputElement&&(module.verbose("Triggering native change event"),events.initEvent("change",!0,!1),inputElement.dispatchEvent(events))}},determine:{selectAction:function(text,value){module.verbose("Determining action",settings.action),$.isFunction(module.action[settings.action])?(module.verbose("Triggering preset action",settings.action,text,value),module.action[settings.action].call(element,text,value,this)):$.isFunction(settings.action)?(module.verbose("Triggering user action",settings.action,text,value),settings.action.call(element,text,value,this)):module.error(error.action,settings.action)},eventInModule:function(event,callback){var $target=$(event.target),inDocument=$target.closest(document.documentElement).length>0,inModule=$target.closest($module).length>0;return callback=$.isFunction(callback)?callback:function(){},inDocument&&!inModule?(module.verbose("Triggering event",callback),callback(),!0):(module.verbose("Event occurred in dropdown, canceling callback"),!1)},eventOnElement:function(event,callback){var $target=$(event.target),$label=$target.closest(selector.siblingLabel),inVisibleDOM=document.body.contains(event.target),notOnLabel=0===$module.find($label).length,notInMenu=0===$target.closest($menu).length;return callback=$.isFunction(callback)?callback:function(){},inVisibleDOM&&notOnLabel&&notInMenu?(module.verbose("Triggering event",callback),callback(),!0):(module.verbose("Event occurred in dropdown menu, canceling callback"),!1)}},action:{nothing:function(){},activate:function(text,value,element){if(value=undefined!==value?value:text,module.can.activate($(element))){if
vendor: 16,384 bytes, line 60
60(module.set.selected(value,$(element)),module.is.multiple()&&!module.is.allFiltered())return;module.hideAndClear()}},select:function(text,value,element){if(value=undefined!==value?value:text,module.can.activate($(element))){if(module.set.value(value,text,$(element)),module.is.multiple()&&!module.is.allFiltered())return;module.hideAndClear()}},combo:function(text,value,element){value=undefined!==value?value:text,module.set.selected(value,$(element)),module.hideAndClear()},hide:function(text,value,element){module.set.value(value,text,$(element)),module.hideAndClear()}},get:{id:function(){return id},defaultText:function(){return $module.data(metadata.defaultText)},defaultValue:function(){return $module.data(metadata.defaultValue)},placeholderText:function(){return"auto"!=settings.placeholder&&"string"==typeof settings.placeholder?settings.placeholder:$module.data(metadata.placeholderText)||""},text:function(){return $text.text()},query:function(){return $.trim($search.val())},searchWidth:function(value){return value=undefined!==value?value:$search.val(),$sizer.text(value),Math.ceil($sizer.width()+1)},selectionCount:function(){var values=module.get.values();return module.is.multiple()?$.isArray(values)?values.length:0:""!==module.get.value()?1:0},transition:function($subMenu){return"auto"==settings.transition?module.is.upward($subMenu)?"slide up":"slide down":settings.transition},userValues:function(){var values=module.get.values();return!!values&&(values=$.isArray(values)?values:[values],$.grep(values,(function(value){return!1===module.get.item(value)})))},uniqueArray:function(array){return $.grep(array,(function(value,index){return $.inArray(value,array)===index}))},caretPosition:function(){var range,rangeLength,input=$search.get(0);return"selectionStart"in input?input.selectionStart:document.selection?(input.focus(),rangeLength=(range=document.selection.createRange()).text.length,range.moveStart("character",-input.value.length),range.text.length-rangeLength):void 0},value:function(){var value=$input.length>0?$input.val():$module.data(metadata.value),isEmptyMultiselect=$.isArray(value)&&1===value.length&&""===value[0];return undefined===value||isEmptyMultiselect?"":value},values:function(){var value=module.get.value();return""===value?"":!module.has.selectInput()&&module.is.multiple()?"string"==typeof value?value.split(settings.delimiter):"":value},remoteValues:function(){var values=module.get.values(),remoteValues=!1;return values&&("string"==typeof values&&(values=[values]),$.each(values,(function(index,value){var name=module.read.remoteData(value);module.verbose("Restoring value from session data",name,value),name&&(remoteValues||(remoteValues={}),remoteValues[value]=name)}))),remoteValues},choiceText:function($choice,preserveHTML){if(preserveHTML=undefined!==preserveHTML?preserveHTML:settings.preserveHTML,$choice)return $choice.find(selector.menu).length>0&&(module.verbose("Retrieving text of element with sub-menu"),($choice=$choice.clone()).find(selector.menu).remove(),$choice.find(selector.menuIcon).remove()),undefined!==$choice.data(metadata.text)?$choice.data(metadata.text):preserveHTML?$.trim($choice.html()):$.trim($choice.text())},choiceValue:function($choice,choiceText){return choiceText=choiceText||module.get.choiceText($choice),!!$choice&&(undefined!==$choice.data(metadata.value)?String($choice.data(metadata.value)):"string"==typeof choiceText?$.trim(choiceText.toLowerCase()):String(choiceText))},inputEvent:function(){var input=$search[0];return!!input&&(undefined!==input.oninput?"input":undefined!==input.onpropertychange?"propertychange":"keyup")},selectValues:function(){var select={values:[]};return $module.find("option").each((function(){var $option=$(this),name=$option.html(),disabled=$option.attr("disabled"),value=undefined!==$option.attr("value")?$option.attr("value"):name;"auto"===settings.placeholder&&""===value?select.placeholder=name:select.values.push({name:name,value:value,disabled:disabled})})),settings.placeholder&&"auto"!==settings.placeholder&&(module.debug("Setting placeholder value to",settings.placeholder),select.placeholder=settings.placeholder),settings.sortSelect?(select.values.sort((function(a,b){return a.name>b.name?1:-1})),module.debug("Retrieved and sorted values from select",select)):module.debug("Retrieved values from select",select),select},activeItem:function(){return $item.filter("."+className.active)},selectedItem:function(){var $selectedItem=$item.not(selector.unselectable).filter("."+className.selected);return $selectedItem.length>0?$selectedItem:$item.eq(0)},itemWithAdditions:function(value){var $items=module.get.item(value),$userItems=module.create.userChoice(value);return $userItems&&$userItems.length>0&&($items=$items.length>0?$items.add($userItems):$userItems),$items},item:function(value,strict){var shouldSearch,isMultiple,$selectedItem=!1;return value=undefined!==value?value:undefined!==module.get.values()?module.get.values():module.get.text(),shouldSearch=isMultiple?value.length>0:null!=value,isMultiple=module.is.multiple()&&$.isArray(value),strict=""===value||0===value||(strict||!1),shouldSearch&&$item.each((function(){var $choice=$(this),optionText=module.get.choiceText($choice),optionValue=module.get.choiceValue($choice,optionText);if(null!=optionValue)if(isMultiple)-1===$.inArray(String(optionValue),value)&&-1===$.inArray(optionText,value)||($selectedItem=$selectedItem?$selectedItem.add($choice):$choice);else if(strict){if(module.verbose("Ambiguous dropdown value using strict type check",$choice,value),optionValue===value||optionText===value)return $selectedItem=$choice,!0}else if(String(optionValue)==String(value)||optionText==value)return module.verbose("Found select item by value",optionValue,value),$selectedItem=$choice,!0})),$selectedItem}},check:{maxSelections:function(selectionCount){return!settings.maxSelections||((selectionCount=undefined!==selectionCount?selectionCount:module.get.selectionCount())>=settings.maxSelections?(module.debug("Maximum selection count reached"),settings.useLabels&&($item.addClass(className.filtered),module.add.message(message.maxSelections)),!0):(module.verbose("No longer at maximum selection count"),module.remove.message(),module.remove.filteredItem(),module.is.searchSelection()&&module.filterItems(),!1))}},restore:{defaults:function(){module.clear(),module.restore.defaultText(),module.restore.defaultValue()},defaultText:function(){var defaultText=module.get.defaultText();defaultText===module.get.placeholderText?(module.debug("Restoring default placeholder text",defaultText),module.set.placeholderText(defaultText)):(module.debug("Restoring default text",defaultText),module.set.text(defaultText))},placeholderText:function(){module.set.placeholderText()},defaultValue:function(){var defaultValue=module.get.defaultValue();undefined!==defaultValue&&(module.debug("Restoring default value",defaultValue),""!==defaultValue?(module.set.value(defaultValue),module.set.selected()):(module.remove.activeItem(),module.remove.selectedItem()))},labels:function(){settings.allowAdditions&&(settings.useLabels||(module.error(error.labels),settings.useLabels=!0),module.debug("Restoring selected values"),module.create.userLabels()),module.check.maxSelections()},selected:function(){module.restore.values(),module.is.multiple()?(module.debug("Restoring previously selected values and labels"),module.restore.labels()):module.debug("Restoring previously selected values")},values:function(){module.set.initialLoad(),settings.apiSettings&&settings.saveRemoteData&&module.get.remoteValues()?module.restore.remoteValues():module.set.selected(),module.remove.initialLoad()},remoteValues:function(){var values=module.get.remoteValues();module.debug("Recreating selected from session data",values),values&&(module.is.single()?$.each(values,(function(value,name){module.set.text(name)})):$.each(values,(function(value,name){module.add.label(value,name)})))}},read:{remoteData:function(value){var name;if(undefined!==window.Storage)return undefined!==(name=sessionStorage.getItem(value))&&name;module.error(error.noStorage)}},save:{defaults:function(){module.save.defaultText(),module.save.placeholderText(),module.save.defaultValue()},defaultValue:function(){var value=module.get.value();module.verbose("Saving default value as",value),$module.data(metadata.defaultValue,value)},defaultText:function(){var text=module.get.text();module.verbose("Saving default text as",text),$module.data(metadata.defaultText,text)},placeholderText:function(){var text;!1!==settings.placeholder&&$text.hasClass(className.placeholder)&&(text=module.get.text(),module.verbose("Saving placeholder text as",text),$module.data(metadata.placeholderText,text))},remoteData:function(name,value){undefined!==window.Storage?(module.verbose("Saving remote data to session storage",value,name),sessionStorage.setItem(value,name)):module.error(error.noStorage)}},clear:function(){module.is.multiple()&&settings.useLabels?module.remove.labels():(module.remove.activeItem(),module.remove.selectedItem()),module.set.placeholderText(),module.clearValue()},clearValue:function(){module.set.value("")},scrollPage:function(direction,$selectedItem){var $nextSelectedItem,elementIndex,$currentItem=$selectedItem||module.get.selectedItem(),$menu=$currentItem.closest(selector.menu),menuHeight=$menu.outerHeight(),currentScroll=$menu.scrollTop(),itemHeight=$item.eq(0).outerHeight(),itemsPerPage=Math.floor(menuHeight/itemHeight),newScroll=($menu.prop("scrollHeight"),"up"==direction?currentScroll-itemHeight*itemsPerPage:currentScroll+itemHeight*itemsPerPage),$selectableItem=$item.not(selector.unselectable);elementIndex="up"==direction?$selectableItem.index($currentItem)-itemsPerPage:$selectableItem.index($currentItem)+itemsPerPage,($nextSelectedItem=("up"==direction?elementIndex>=0:elementIndex<$selectableItem.length)?$selectableItem.eq(elementIndex):"up"==direction?$selectableItem.first():$selectableItem.last()).length>0&&(module.debug("Scrolling page",direction,$nextSelectedItem),$currentItem.removeClass(className.selected),$nextSelectedItem.addClass(className.selected),settings.selectOnKeydown&&module.is.single()&&module.set.selectedItem($nextSelectedItem),$menu.scrollTop(newScroll))},set:{filtered:function(){var isMultiple=module.is.multiple(),isSearch=module.is.searchSelection(),isSearchMultiple=isMultiple&&isSearch,searchValue=isSearch?module.get.query():"",hasSearchValue="string"==typeof searchValue&&searchValue.length>0,searchWidth=module.get.searchWidth(),valueIsSet=""!==searchValue;isMultiple&&hasSearchValue&&(module.verbose("Adjusting input width",searchWidth,settings.glyphWidth),$search.css("width",searchWidth)),hasSearchValue||isSearchMultiple&&valueIsSet?(module.verbose("Hiding placeholder text"),$text.addClass(className.filtered)):(!isMultiple||isSearchMultiple&&!valueIsSet)&&(module.verbose("Showing placeholder text"),$text.removeClass(className.filtered))},empty:function(){$module.addClass(className.empty)},loading:function(){$module.addClass(className.loading)},placeholderText:function(text){text=text||module.get.placeholderText(),module.debug("Setting placeholder text",text),module.set.text(text),$text.addClass(className.placeholder)},tabbable:function(){module.is.searchSelection()?(module.debug("Added tabindex to searchable dropdown"),$search.val("").attr("tabindex",0),$menu.attr("tabindex",-1)):(module.debug("Added tabindex to dropdown"),undefined===$module.attr("tabindex")&&($module.attr("tabindex",0),$menu.attr("tabindex",-1)))},initialLoad:function(){module.verbose("Setting initial load"),initialLoad=!0},activeItem:function($item){settings.allowAdditions&&$item.filter(selector.addition).length>0?$item.addClass(className.filtered):$item.addClass(className.active)},partialSearch:function(text){var length=module.get.query().length;$search.val(text.substr(0,length))},scrollPosition:function($item,forceScroll){var $menu,hasActive,offset,menuScroll,abovePage,belowPage;$menu=($item=$item||module.get.selectedItem()).closest(selector.menu),hasActive=$item&&$item.length>0,forceScroll=undefined!==forceScroll&&forceScroll,$item&&$menu.length>0&&hasActive&&($item.position().top,$menu.addClass(className.loading),offset=(menuScroll=$menu.scrollTop())-$menu.offset().top+$item.offset().top,forceScroll||(belowPage=menuScroll+$menu.height()<offset+5,abovePage=offset-5<menuScroll),module.debug("Scrolling to active item",offset),(forceScroll||abovePage||belowPage)&&$menu.scrollTop(offset),$menu.removeClass(className.loading))},text:function(text){"select"!==settings.action&&("combo"==settings.action?(module.debug("Changing combo button text",text,$combo),settings.preserveHTML?$combo.html(text):$combo.text(text)):(text!==module.get.placeholderText()&&$text.removeClass(className.placeholder),module.debug("Changing text",text,$text),$text.removeClass(className.filtered),settings.preserveHTML?$text.html(text):$text.text(text)))},selectedItem:function($item){var value=module.get.choiceValue($item),searchText=module.get.choiceText($item,!1),text=module.get.choiceText($item,!0);module.debug("Setting user selection to item",$item),module.remove.activeItem(),module.set.partialSearch(searchText),module.set.activeItem($item),module.set.selected(value,$item),module.set.text(text)},selectedLetter:function(letter){var $nextItem,$selectedItem=$item.filter("."+className.selected),alreadySelectedLetter=$selectedItem.length>0&&module.has.firstLetter($selectedItem,letter),$nextValue=!1;alreadySelectedLetter&&($nextItem=$selectedItem.nextAll($item).eq(0),module.has.firstLetter($nextItem,letter)&&($nextValue=$nextItem)),$nextValue||$item.each((function(){if(module.has.firstLetter($(this),letter))return $nextValue=$(this),!1})),$nextValue&&(module.verbose("Scrolling to next value with letter",letter),module.set.scrollPosition($nextValue),$selectedItem.removeClass(className.selected),$nextValue.addClass(className.selected),settings.selectOnKeydown&&module.is.single()&&module.set.selectedItem($nextValue))},direction:function($menu){"auto"==settings.direction?(module.remove.upward(),module.can.openDownward($menu)?module.remove.upward($menu):module.set.upward($menu),module.is.leftward($menu)||module.can.openRightward($menu)||module.set.leftward($menu)):"upward"==settings.direction&&module.set.upward($menu)},upward:function($currentMenu){($currentMenu||$module).addClass(className.upward)},leftward:function($currentMenu){($currentMenu||$menu).addClass(className.leftward)},value:function(value,text,$selected){var escapedValue=module.escape.value(value),hasInput=$input.length>0,currentValue=module.get.values(),stringValue=undefined!==value?String(value):value;if(hasInput){if(!settings.allowReselection&&stringValue==currentValue&&(module.verbose("Skipping value update already same value",value,currentValue),!module.is.initialLoad()))return;module.is.single()&&module.has.selectInput()&&module.can.extendSelect()&&(module.debug("Adding user option",value),module.add.optionValue(value)),module.debug("Updating input value",escapedValue,currentValue),internalChange=!0,$input.val(escapedValue),!1===settings.fireOnInit&&module.is.initialLoad()?module.debug("Input native change event ignored on initial load"):module.trigger.change(),internalChange=!1}else module.verbose("Storing value in metadata",escapedValue,$input),escapedValue!==currentValue&&$module.data(metadata.value,stringValue);module.is.single()&&settings.clearable&&(escapedValue?module.set.clearable():module.remove.clearable()),!1===settings.fireOnInit&&module.is.initialLoad()?module.verbose("No callback on initial load",settings.onChange):settings.onChange.call(element,value,text,$selected)},active:function(){$module.addClass(className.active)},multiple:function(){$module.addClass(className.multiple)},visible:function(){$module.addClass(className.visible)},exactly:function(value,$selectedItem){module.debug("Setting selected to exact values"),module.clear(),module.set.selected(value,$selectedItem)},selected:function(value,$selectedItem){var isMultiple=module.is.multiple();($selectedItem=settings.allowAdditions?$selectedItem||module.get.itemWithAdditions(value):$selectedItem||module.get.item(value))&&(module.debug("Setting selected menu item to",$selectedItem),module.is.multiple()&&module.remove.searchWidth(),module.is.single()?(module.remove.activeItem(),module.remove.se
vendor: 19,839 bytes, line 60
60lectedItem()):settings.useLabels&&module.remove.selectedItem(),$selectedItem.each((function(){var $selected=$(this),selectedText=module.get.choiceText($selected),selectedValue=module.get.choiceValue($selected,selectedText),isFiltered=$selected.hasClass(className.filtered),isActive=$selected.hasClass(className.active),isUserValue=$selected.hasClass(className.addition),shouldAnimate=isMultiple&&1==$selectedItem.length;isMultiple?!isActive||isUserValue?(settings.apiSettings&&settings.saveRemoteData&&module.save.remoteData(selectedText,selectedValue),settings.useLabels?(module.add.label(selectedValue,selectedText,shouldAnimate),module.add.value(selectedValue,selectedText,$selected),module.set.activeItem($selected),module.filterActive(),module.select.nextAvailable($selectedItem)):(module.add.value(selectedValue,selectedText,$selected),module.set.text(module.add.variables(message.count)),module.set.activeItem($selected))):isFiltered||(module.debug("Selected active value, removing label"),module.remove.selected(selectedValue)):(settings.apiSettings&&settings.saveRemoteData&&module.save.remoteData(selectedText,selectedValue),module.set.text(selectedText),module.set.value(selectedValue,selectedText,$selected),$selected.addClass(className.active).addClass(className.selected))})))},clearable:function(){$icon.addClass(className.clear)}},add:{label:function(value,text,shouldAnimate){var $label,$next=module.is.searchSelection()?$search:$text,escapedValue=module.escape.value(value);settings.ignoreCase&&(escapedValue=escapedValue.toLowerCase()),$label=$("<a />").addClass(className.label).attr("data-"+metadata.value,escapedValue).html(templates.label(escapedValue,text)),$label=settings.onLabelCreate.call($label,escapedValue,text),module.has.label(value)?module.debug("User selection already exists, skipping",escapedValue):(settings.label.variation&&$label.addClass(settings.label.variation),!0===shouldAnimate?(module.debug("Animating in label",$label),$label.addClass(className.hidden).insertBefore($next).transition(settings.label.transition,settings.label.duration)):(module.debug("Adding selection label",$label),$label.insertBefore($next)))},message:function(message){var $message=$menu.children(selector.message),html=settings.templates.message(module.add.variables(message));$message.length>0?$message.html(html):$message=$("<div/>").html(html).addClass(className.message).appendTo($menu)},optionValue:function(value){var escapedValue=module.escape.value(value);$input.find('option[value="'+module.escape.string(escapedValue)+'"]').length>0||(module.disconnect.selectObserver(),module.is.single()&&(module.verbose("Removing previous user addition"),$input.find("option."+className.addition).remove()),$("<option/>").prop("value",escapedValue).addClass(className.addition).html(value).appendTo($input),module.verbose("Adding user addition as an <option>",value),module.observe.select())},userSuggestion:function(value){var html,$addition=$menu.children(selector.addition),$existingItem=module.get.item(value),alreadyHasValue=$existingItem&&$existingItem.not(selector.addition).length,hasUserSuggestion=$addition.length>0;settings.useLabels&&module.has.maxSelections()||(""===value||alreadyHasValue?$addition.remove():(hasUserSuggestion?($addition.data(metadata.value,value).data(metadata.text,value).attr("data-"+metadata.value,value).attr("data-"+metadata.text,value).removeClass(className.filtered),settings.hideAdditions||(html=settings.templates.addition(module.add.variables(message.addResult,value)),$addition.html(html)),module.verbose("Replacing user suggestion with new value",$addition)):(($addition=module.create.userChoice(value)).prependTo($menu),module.verbose("Adding item choice to menu corresponding with user choice addition",$addition)),settings.hideAdditions&&!module.is.allFiltered()||$addition.addClass(className.selected).siblings().removeClass(className.selected),module.refreshItems()))},variables:function(message,term){var count,query,hasCount=-1!==message.search("{count}"),hasMaxCount=-1!==message.search("{maxCount}"),hasTerm=-1!==message.search("{term}");return module.verbose("Adding templated variables to message",message),hasCount&&(count=module.get.selectionCount(),message=message.replace("{count}",count)),hasMaxCount&&(count=module.get.selectionCount(),message=message.replace("{maxCount}",settings.maxSelections)),hasTerm&&(query=term||module.get.query(),message=message.replace("{term}",query)),message},value:function(addedValue,addedText,$selectedItem){var newValue,currentValue=module.get.values();module.has.value(addedValue)?module.debug("Value already selected"):""!==addedValue?($.isArray(currentValue)?(newValue=currentValue.concat([addedValue]),newValue=module.get.uniqueArray(newValue)):newValue=[addedValue],module.has.selectInput()?module.can.extendSelect()&&(module.debug("Adding value to select",addedValue,newValue,$input),module.add.optionValue(addedValue)):(newValue=newValue.join(settings.delimiter),module.debug("Setting hidden input to delimited value",newValue,$input)),!1===settings.fireOnInit&&module.is.initialLoad()?module.verbose("Skipping onadd callback on initial load",settings.onAdd):settings.onAdd.call(element,addedValue,addedText,$selectedItem),module.set.value(newValue,addedValue,addedText,$selectedItem),module.check.maxSelections()):module.debug("Cannot select blank values from multiselect")}},remove:{active:function(){$module.removeClass(className.active)},activeLabel:function(){$module.find(selector.label).removeClass(className.active)},empty:function(){$module.removeClass(className.empty)},loading:function(){$module.removeClass(className.loading)},initialLoad:function(){initialLoad=!1},upward:function($currentMenu){($currentMenu||$module).removeClass(className.upward)},leftward:function($currentMenu){($currentMenu||$menu).removeClass(className.leftward)},visible:function(){$module.removeClass(className.visible)},activeItem:function(){$item.removeClass(className.active)},filteredItem:function(){settings.useLabels&&module.has.maxSelections()||(settings.useLabels&&module.is.multiple()?$item.not("."+className.active).removeClass(className.filtered):$item.removeClass(className.filtered),module.remove.empty())},optionValue:function(value){var escapedValue=module.escape.value(value),$option=$input.find('option[value="'+module.escape.string(escapedValue)+'"]');$option.length>0&&$option.hasClass(className.addition)&&(selectObserver&&(selectObserver.disconnect(),module.verbose("Temporarily disconnecting mutation observer")),$option.remove(),module.verbose("Removing user addition as an <option>",escapedValue),selectObserver&&selectObserver.observe($input[0],{childList:!0,subtree:!0}))},message:function(){$menu.children(selector.message).remove()},searchWidth:function(){$search.css("width","")},searchTerm:function(){module.verbose("Cleared search term"),$search.val(""),module.set.filtered()},userAddition:function(){$item.filter(selector.addition).remove()},selected:function(value,$selectedItem){if(!($selectedItem=settings.allowAdditions?$selectedItem||module.get.itemWithAdditions(value):$selectedItem||module.get.item(value)))return!1;$selectedItem.each((function(){var $selected=$(this),selectedText=module.get.choiceText($selected),selectedValue=module.get.choiceValue($selected,selectedText);module.is.multiple()?settings.useLabels?(module.remove.value(selectedValue,selectedText,$selected),module.remove.label(selectedValue)):(module.remove.value(selectedValue,selectedText,$selected),0===module.get.selectionCount()?module.set.placeholderText():module.set.text(module.add.variables(message.count))):module.remove.value(selectedValue,selectedText,$selected),$selected.removeClass(className.filtered).removeClass(className.active),settings.useLabels&&$selected.removeClass(className.selected)}))},selectedItem:function(){$item.removeClass(className.selected)},value:function(removedValue,removedText,$removedItem){var newValue,values=module.get.values();module.has.selectInput()?(module.verbose("Input is <select> removing selected option",removedValue),newValue=module.remove.arrayValue(removedValue,values),module.remove.optionValue(removedValue)):(module.verbose("Removing from delimited values",removedValue),newValue=(newValue=module.remove.arrayValue(removedValue,values)).join(settings.delimiter)),!1===settings.fireOnInit&&module.is.initialLoad()?module.verbose("No callback on initial load",settings.onRemove):settings.onRemove.call(element,removedValue,removedText,$removedItem),module.set.value(newValue,removedText,$removedItem),module.check.maxSelections()},arrayValue:function(removedValue,values){return $.isArray(values)||(values=[values]),values=$.grep(values,(function(value){return removedValue!=value})),module.verbose("Removed value from delimited string",removedValue,values),values},label:function(value,shouldAnimate){var $removedLabel=$module.find(selector.label).filter("[data-"+metadata.value+'="'+module.escape.string(value)+'"]');module.verbose("Removing label",$removedLabel),$removedLabel.remove()},activeLabels:function($activeLabels){$activeLabels=$activeLabels||$module.find(selector.label).filter("."+className.active),module.verbose("Removing active label selections",$activeLabels),module.remove.labels($activeLabels)},labels:function($labels){$labels=$labels||$module.find(selector.label),module.verbose("Removing labels",$labels),$labels.each((function(){var $label=$(this),value=$label.data(metadata.value),stringValue=undefined!==value?String(value):value,isUserValue=module.is.userValue(stringValue);!1!==settings.onLabelRemove.call($label,value)?(module.remove.message(),isUserValue?(module.remove.value(stringValue),module.remove.label(stringValue)):module.remove.selected(stringValue)):module.debug("Label remove callback cancelled removal")}))},tabbable:function(){module.is.searchSelection()?(module.debug("Searchable dropdown initialized"),$search.removeAttr("tabindex"),$menu.removeAttr("tabindex")):(module.debug("Simple selection dropdown initialized"),$module.removeAttr("tabindex"),$menu.removeAttr("tabindex"))},clearable:function(){$icon.removeClass(className.clear)}},has:{menuSearch:function(){return module.has.search()&&$search.closest($menu).length>0},search:function(){return $search.length>0},sizer:function(){return $sizer.length>0},selectInput:function(){return $input.is("select")},minCharacters:function(searchTerm){return!settings.minCharacters||(searchTerm=String(undefined!==searchTerm?searchTerm:module.get.query())).length>=settings.minCharacters},firstLetter:function($item,letter){var text;return!(!$item||0===$item.length||"string"!=typeof letter)&&(text=module.get.choiceText($item,!1),(letter=letter.toLowerCase())==String(text).charAt(0).toLowerCase())},input:function(){return $input.length>0},items:function(){return $item.length>0},menu:function(){return $menu.length>0},message:function(){return 0!==$menu.children(selector.message).length},label:function(value){var escapedValue=module.escape.value(value),$labels=$module.find(selector.label);return settings.ignoreCase&&(escapedValue=escapedValue.toLowerCase()),$labels.filter("[data-"+metadata.value+'="'+module.escape.string(escapedValue)+'"]').length>0},maxSelections:function(){return settings.maxSelections&&module.get.selectionCount()>=settings.maxSelections},allResultsFiltered:function(){var $normalResults=$item.not(selector.addition);return $normalResults.filter(selector.unselectable).length===$normalResults.length},userSuggestion:function(){return $menu.children(selector.addition).length>0},query:function(){return""!==module.get.query()},value:function(value){return settings.ignoreCase?module.has.valueIgnoringCase(value):module.has.valueMatchingCase(value)},valueMatchingCase:function(value){var values=module.get.values();return!!($.isArray(values)?values&&-1!==$.inArray(value,values):values==value)},valueIgnoringCase:function(value){var values=module.get.values(),hasValue=!1;return $.isArray(values)||(values=[values]),$.each(values,(function(index,existingValue){if(String(value).toLowerCase()==String(existingValue).toLowerCase())return hasValue=!0,!1})),hasValue}},is:{active:function(){return $module.hasClass(className.active)},animatingInward:function(){return $menu.transition("is inward")},animatingOutward:function(){return $menu.transition("is outward")},bubbledLabelClick:function(event){return $(event.target).is("select, input")&&$module.closest("label").length>0},bubbledIconClick:function(event){return $(event.target).closest($icon).length>0},alreadySetup:function(){return $module.is("select")&&undefined!==$module.parent(selector.dropdown).data(moduleNamespace)&&0===$module.prev().length},animating:function($subMenu){return $subMenu?$subMenu.transition&&$subMenu.transition("is animating"):$menu.transition&&$menu.transition("is animating")},leftward:function($subMenu){return($subMenu||$menu).hasClass(className.leftward)},disabled:function(){return $module.hasClass(className.disabled)},focused:function(){return document.activeElement===$module[0]},focusedOnSearch:function(){return document.activeElement===$search[0]},allFiltered:function(){return(module.is.multiple()||module.has.search())&&!(0==settings.hideAdditions&&module.has.userSuggestion())&&!module.has.message()&&module.has.allResultsFiltered()},hidden:function($subMenu){return!module.is.visible($subMenu)},initialLoad:function(){return initialLoad},inObject:function(needle,object){var found=!1;return $.each(object,(function(index,property){if(property==needle)return found=!0,!0})),found},multiple:function(){return $module.hasClass(className.multiple)},remote:function(){return settings.apiSettings&&module.can.useAPI()},single:function(){return!module.is.multiple()},selectMutation:function(mutations){var selectChanged=!1;return $.each(mutations,(function(index,mutation){if(mutation.target&&$(mutation.target).is("select"))return selectChanged=!0,!0})),selectChanged},search:function(){return $module.hasClass(className.search)},searchSelection:function(){return module.has.search()&&1===$search.parent(selector.dropdown).length},selection:function(){return $module.hasClass(className.selection)},userValue:function(value){return-1!==$.inArray(value,module.get.userValues())},upward:function($menu){return($menu||$module).hasClass(className.upward)},visible:function($subMenu){return $subMenu?$subMenu.hasClass(className.visible):$menu.hasClass(className.visible)},verticallyScrollableContext:function(){var overflowY=$context.get(0)!==window&&$context.css("overflow-y");return"auto"==overflowY||"scroll"==overflowY},horizontallyScrollableContext:function(){var overflowX=$context.get(0)!==window&&$context.css("overflow-X");return"auto"==overflowX||"scroll"==overflowX}},can:{activate:function($item){return!!settings.useLabels||(!module.has.maxSelections()||!(!module.has.maxSelections()||!$item.hasClass(className.active)))},openDownward:function($subMenu){var onScreen,calculations,$currentMenu=$subMenu||$menu,canOpenDownward=!0;return $currentMenu.addClass(className.loading),calculations={context:{offset:$context.get(0)===window?{top:0,left:0}:$context.offset(),scrollTop:$context.scrollTop(),height:$context.outerHeight()},menu:{offset:$currentMenu.offset(),height:$currentMenu.outerHeight()}},module.is.verticallyScrollableContext()&&(calculations.menu.offset.top+=calculations.context.scrollTop),(onScreen={above:calculations.context.scrollTop<=calculations.menu.offset.top-calculations.context.offset.top-calculations.menu.height,below:calculations.context.scrollTop+calculations.context.height>=calculations.menu.offset.top-calculations.context.offset.top+calculations.menu.height}).below?(module.verbose("Dropdown can fit in context downward",onScreen),canOpenDownward=!0):onScreen.below||onScreen.above?(module.verbose("Dropdown cannot fit below, opening upward",onScreen),canOpenDownward=!1):(module.verbose("Dropdown cannot fit in either direction, favoring downward",onScreen),canOpenDownward=!0),$currentMenu.removeClass(className.loading),canOpenDownward},openRightward:function($subMenu){var isOffscreenRight,calculations,$currentMenu=$subMenu||$menu,canOpenRightward=!0;return $currentMenu.addClass(className.loading),calculations={context:{offset:$context.get(0)===window?{top:0,left:0}:$context.offset(),scrollLeft:$context.scrollLeft(),width:$context.outerWidth()},menu:{offset:$currentMenu.offset(),width:$currentMenu.outerWidth()}},module.is.horizontallyScrollableContext()&&(calculations.menu.offset.left+=calculations.context.scrollLeft),(isOffscreenRight=calculations.menu.offset.left-calculations.context.offset.left+calculations.menu.width>=calculations.context.scrollLeft+calculations.context.width)&&(module.verbose("Dropdown cannot fit in context rightward",isOffscreenRight),canOpenRightward=!1),$currentMenu.removeClass(className.loading),canOpenRightward},click:function(){return hasTouch||"click"==settings.on},extendSelect:function(){return settings.allowAdditions||settings.apiSettings},show:function(){return!module.is.disabled()&&(module.has.items()||module.has.message())},useAPI:function(){return undefined!==$.fn.api}},animate:{show:function(callback,$subMenu){var transition,$currentMenu=$subMenu||$menu,start=$subMenu?function(){}:function(){module.hideSubMenus(),module.hideOthers(),module.set.active()};callback=$.isFunction(callback)?callback:function(){},module.verbose("Doing menu show animation",$currentMenu),module.set.direction($subMenu),transition=module.get.transition($subMenu),module.is.selection()&&module.set.scrollPosition(module.get.selectedItem(),!0),(module.is.hidden($currentMenu)||module.is.animating($currentMenu))&&("none"==transition?(start(),$currentMenu.transition("show"),callback.call(element)):undefined!==$.fn.transition&&$module.transition("is supported")?$currentMenu.transition({animation:transition+" in",debug:settings.debug,verbose:settings.verbose,duration:settings.duration,queue:!0,onStart:start,onComplete:function(){callback.call(element)}}):module.error(error.noTransition,transition))},hide:function(callback,$subMenu){var $currentMenu=$subMenu||$menu,start=($subMenu?settings.duration:settings.duration,$subMenu?function(){}:function(){module.can.click()&&module.unbind.intent(),module.remove.active()}),transition=module.get.transition($subMenu);callback=$.isFunction(callback)?callback:function(){},(module.is.visible($currentMenu)||module.is.animating($currentMenu))&&(module.verbose("Doing menu hide animation",$currentMenu),"none"==transition?(start(),$currentMenu.transition("hide"),callback.call(element)):undefined!==$.fn.transition&&$module.transition("is supported")?$currentMenu.transition({animation:transition+" out",duration:settings.duration,debug:settings.debug,verbose:settings.verbose,queue:!1,onStart:start,onComplete:function(){callback.call(element)}}):module.error(error.transition))}},hideAndClear:function(){module.remove.searchTerm(),module.has.maxSelections()||(module.has.search()?module.hide((function(){module.remove.filteredItem()})):module.hide())},delay:{show:function(){module.verbose("Delaying show event to ensure user intent"),clearTimeout(module.timer),module.timer=setTimeout(module.show,settings.delay.show)},hide:function(){module.verbose("Delaying hide event to ensure user intent"),clearTimeout(module.timer),module.timer=setTimeout(module.hide,settings.delay.hide)}},escape:{value:function(value){var multipleValues=$.isArray(value),stringValue="string"==typeof value,isUnparsable=!stringValue&&!multipleValues,hasQuotes=stringValue&&-1!==value.search(regExp.quote),values=[];return isUnparsable||!hasQuotes?value:(module.debug("Encoding quote values for use in select",value),multipleValues?($.each(value,(function(index,value){values.push(value.replace(regExp.quote,"&quot;"))})),values):value.replace(regExp.quote,"&quot;"))}
60,string:function(text){return(text=String(text)).replace(regExp.escape,"\\$&")}},setting:function(name,value){if(module.debug("Changing setting",name,value),$.isPlainObject(name))$.extend(!0,settings,name);else{if(undefined===value)return settings[name];$.isPlainObject(settings[name])?$.extend(!0,settings[name],value):settings[name]=value}},internal:function(name,value){if($.isPlainObject(name))$.extend(!0,module,name);else{if(undefined===value)return module[name];module[name]=value}},debug:function(){!settings.silent&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.debug=Function.prototype.bind.call(console.info,console,settings.name+":"),module.debug.apply(console,arguments)))},verbose:function(){!settings.silent&&settings.verbose&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.verbose=Function.prototype.bind.call(console.info,console,settings.name+":"),module.verbose.apply(console,arguments)))},error:function(){settings.silent||(module.error=Function.prototype.bind.call(console.error,console,settings.name+":"),module.error.apply(console,arguments))},performance:{log:function(message){var currentTime,executionTime;settings.performance&&(executionTime=(currentTime=(new Date).getTime())-(time||currentTime),time=currentTime,performance.push({Name:message[0],Arguments:[].slice.call(message,1)||"",Element:element,"Execution Time":executionTime})),clearTimeout(module.performance.timer),module.performance.timer=setTimeout(module.performance.display,500)},display:function(){var title=settings.name+":",totalTime=0;time=!1,clearTimeout(module.performance.timer),$.each(performance,(function(index,data){totalTime+=data["Execution Time"]})),title+=" "+totalTime+"ms",moduleSelector&&(title+=" '"+moduleSelector+"'"),(undefined!==console.group||undefined!==console.table)&&performance.length>0&&(console.groupCollapsed(title),console.table?console.table(performance):$.each(performance,(function(index,data){console.log(data.Name+": "+data["Execution Time"]+"ms")})),console.groupEnd()),performance=[]}},invoke:function(query,passedArguments,context){var maxDepth,found,response,object=instance;return passedArguments=passedArguments||queryArguments,context=element||context,"string"==typeof query&&undefined!==object&&(query=query.split(/[\. ]/),maxDepth=query.length-1,$.each(query,(function(depth,value){var camelCaseValue=depth!=maxDepth?value+query[depth+1].charAt(0).toUpperCase()+query[depth+1].slice(1):query;if($.isPlainObject(object[camelCaseValue])&&depth!=maxDepth)object=object[camelCaseValue];else{if(undefined!==object[camelCaseValue])return found=object[camelCaseValue],!1;if(!$.isPlainObject(object[value])||depth==maxDepth)return undefined!==object[value]?(found=object[value],!1):(module.error(error.method,query),!1);object=object[value]}}))),$.isFunction(found)?response=found.apply(context,passedArguments):undefined!==found&&(response=found),$.isArray(returnedValue)?returnedValue.push(response):undefined!==returnedValue?returnedValue=[returnedValue,response]:undefined!==response&&(returnedValue=response),found}},methodInvoked?(undefined===instance&&module.initialize(),module.invoke(query)):(undefined!==instance&&instance.invoke("destroy"),module.initialize())})),undefined!==returnedValue?returnedValue:$allModules},$.fn.dropdown.settings={silent:!1,debug:!1,verbose:!1,performance:!0,on:"click",action:"activate",values:!1,clearable:!1,apiSettings:!1,selectOnKeydown:!0,minCharacters:0,filterRemoteData:!1,saveRemoteData:!0,throttle:200,context:window,direction:"auto",keepOnScreen:!0,match:"both",fullTextSearch:!1,placeholder:"auto",preserveHTML:!0,sortSelect:!1,forceSelection:!0,allowAdditions:!1,ignoreCase:!1,hideAdditions:!0,maxSelections:!1,useLabels:!0,delimiter:",",showOnFocus:!0,allowReselection:!1,allowTab:!0,allowCategorySelection:!1,fireOnInit:!1,transition:"auto",duration:200,glyphWidth:1.037,label:{transition:"scale",duration:200,variation:!1},delay:{hide:300,show:200,search:20,touch:50},onChange:function(value,text,$selected){},onAdd:function(value,text,$selected){},onRemove:function(value,text,$selected){},onLabelSelect:function($selectedLabels){},onLabelCreate:function(value,text){return $(this)},onLabelRemove:function(value){return!0},onNoResults:function(searchTerm){return!0},onShow:function(){},onHide:function(){},name:"Dropdown",namespace:"dropdown",message:{addResult:"Add <b>{term}</b>",count:"{count} selected",maxSelections:"Max {maxCount} selections",noResults:"No results found.",serverError:"There was an error contacting the server"},error:{action:"You called a dropdown action that was not defined",alreadySetup:"Once a select has been initialized behaviors must be called on the created ui dropdown",labels:"Allowing user additions currently requires the use of labels.",missingMultiple:"<select> requires multiple property to be set to correctly preserve multiple values",method:"The method you called is not defined.",noAPI:"The API module is required to load resources remotely",noStorage:"Saving remote data requires session storage",noTransition:"This module requires ui transitions <https://github.com/Semantic-Org/UI-Transition>"},regExp:{escape:/[-[\]{}()*+?.,\\^$|#\s]/g,quote:/"/g},metadata:{defaultText:"defaultText",defaultValue:"defaultValue",placeholderText:"placeholder",text:"text",value:"value"},fields:{remoteValues:"results",values:"values",disabled:"disabled",name:"name",value:"value",text:"text"},keys:{backspace:8,delimiter:188,deleteKey:46,enter:13,escape:27,pageUp:33,pageDown:34,leftArrow:37,upArrow:38,rightArrow:39,downArrow:40},selector:{addition:".addition",dropdown:".ui.dropdown",hidden:".hidden",icon:"> .dropdown.icon",input:'> input[type="hidden"], > select',item:".item",label:"> .label",remove:"> .label > .delete.icon",siblingLabel:".label",menu:".menu",message:".message",menuIcon:".dropdown.icon",search:"input.search, .menu > .search > input, .menu input.search",sizer:"> input.sizer",text:"> .text:not(.icon)",unselectable:".disabled, .filtered"},className:{active:"active",addition:"addition",animating:"animating",clear:"clear",disabled:"disabled",empty:"empty",dropdown:"ui dropdown",filtered:"filtered",hidden:"hidden transition",item:"item",label:"ui label",loading:"loading",menu:"menu",message:"message",multiple:"multiple",placeholder:"default",sizer:"sizer",search:"search",selected:"selected",selection:"selection",upward:"upward",leftward:"left",visible:"visible"}},$.fn.dropdown.settings.templates={dropdown:function(select){var placeholder=select.placeholder||!1,html=(select.values,"");return html+='<i class="dropdown icon"></i>',select.placeholder?html+='<div class="default text">'+placeholder+"</div>":html+='<div class="text"></div>',html+='<div class="menu">',$.each(select.values,(function(index,option){html+=option.disabled?'<div class="disabled item" data-value="'+option.value+'">'+option.name+"</div>":'<div class="item" data-value="'+option.value+'">'+option.name+"</div>"})),html+="</div>"},menu:function(response,fields){var values=response[fields.values]||{},html="";return $.each(values,(function(index,option){var maybeText=option[fields.text]?'data-text="'+option[fields.text]+'"':"",maybeDisabled=option[fields.disabled]?"disabled ":"";html+='<div class="'+maybeDisabled+'item" data-value="'+option[fields.value]+'"'+maybeText+">",html+=option[fields.name],html+="</div>"})),html},label:function(value,text){return text+'<i class="delete icon"></i>'},message:function(message){return message},addition:function(choice){return choice}}}(jQuery,window,document),
61/*!
62 * # Semantic UI 2.4.2 - Modal
63 * http://github.com/semantic-org/semantic-ui/
64 *
65 *
66 * Released under the MIT license
67 * http://opensource.org/licenses/MIT
68 *
69 */
70function($,window,document){"use strict";window=void 0!==window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),$.fn.modal=function(parameters){var returnedValue,$allModules=$(this),$window=$(window),$document=$(document),$body=$("body"),moduleSelector=$allModules.selector||"",time=(new Date).getTime(),performance=[],query=arguments[0],methodInvoked="string"==typeof query,queryArguments=[].slice.call(arguments,1
vendor: 5,724 bytes, line 70
70),requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){setTimeout(callback,0)};return $allModules.each((function(){var $allModals,$otherModals,$focusedElement,$dimmable,$dimmer,elementEventNamespace,id,observer,module,settings=$.isPlainObject(parameters)?$.extend(!0,{},$.fn.modal.settings,parameters):$.extend({},$.fn.modal.settings),selector=settings.selector,className=settings.className,namespace=settings.namespace,error=settings.error,eventNamespace="."+namespace,moduleNamespace="module-"+namespace,$module=$(this),$context=$(settings.context),$close=$module.find(selector.close),element=this,instance=$module.data(moduleNamespace),ignoreRepeatedEvents=!1;module={initialize:function(){module.verbose("Initializing dimmer",$context),module.create.id(),module.create.dimmer(),module.refreshModals(),module.bind.events(),settings.observeChanges&&module.observeChanges(),module.instantiate()},instantiate:function(){module.verbose("Storing instance of modal"),instance=module,$module.data(moduleNamespace,instance)},create:{dimmer:function(){var defaultSettings={debug:settings.debug,variation:!settings.centered&&"top aligned",dimmerName:"modals"},dimmerSettings=$.extend(!0,defaultSettings,settings.dimmerSettings);undefined!==$.fn.dimmer?(module.debug("Creating dimmer"),$dimmable=$context.dimmer(dimmerSettings),settings.detachable?(module.verbose("Modal is detachable, moving content into dimmer"),$dimmable.dimmer("add content",$module)):module.set.undetached(),$dimmer=$dimmable.dimmer("get dimmer")):module.error(error.dimmer)},id:function(){id=(Math.random().toString(16)+"000000000").substr(2,8),elementEventNamespace="."+id,module.verbose("Creating unique id for element",id)}},destroy:function(){module.verbose("Destroying previous modal"),$module.removeData(moduleNamespace).off(eventNamespace),$window.off(elementEventNamespace),$dimmer.off(elementEventNamespace),$close.off(eventNamespace),$context.dimmer("destroy")},observeChanges:function(){"MutationObserver"in window&&((observer=new MutationObserver((function(mutations){module.debug("DOM tree modified, refreshing"),module.refresh()}))).observe(element,{childList:!0,subtree:!0}),module.debug("Setting up mutation observer",observer))},refresh:function(){module.remove.scrolling(),module.cacheSizes(),module.can.useFlex()||module.set.modalOffset(),module.set.screenHeight(),module.set.type()},refreshModals:function(){$otherModals=$module.siblings(selector.modal),$allModals=$otherModals.add($module)},attachEvents:function(selector,event){var $toggle=$(selector);event=$.isFunction(module[event])?module[event]:module.toggle,$toggle.length>0?(module.debug("Attaching modal events to element",selector,event),$toggle.off(eventNamespace).on("click"+eventNamespace,event)):module.error(error.notFound,selector)},bind:{events:function(){module.verbose("Attaching events"),$module.on("click"+eventNamespace,selector.close,module.event.close).on("click"+eventNamespace,selector.approve,module.event.approve).on("click"+eventNamespace,selector.deny,module.event.deny),$window.on("resize"+elementEventNamespace,module.event.resize)},scrollLock:function(){$dimmable.get(0).addEventListener("touchmove",module.event.preventScroll,{passive:!1})}},unbind:{scrollLock:function(){$dimmable.get(0).removeEventListener("touchmove",module.event.preventScroll,{passive:!1})}},get:{id:function(){return(Math.random().toString(16)+"000000000").substr(2,8)}},event:{approve:function(){ignoreRepeatedEvents||!1===settings.onApprove.call(element,$(this))?module.verbose("Approve callback returned false cancelling hide"):(ignoreRepeatedEvents=!0,module.hide((function(){ignoreRepeatedEvents=!1})))},preventScroll:function(event){event.preventDefault()},deny:function(){ignoreRepeatedEvents||!1===settings.onDeny.call(element,$(this))?module.verbose("Deny callback returned false cancelling hide"):(ignoreRepeatedEvents=!0,module.hide((function(){ignoreRepeatedEvents=!1})))},close:function(){module.hide()},click:function(event){if(settings.closable){var isInModal=$(event.target).closest(selector.modal).length>0,isInDOM=$.contains(document.documentElement,event.target);!isInModal&&isInDOM&&module.is.active()&&(module.debug("Dimmer clicked, hiding all modals"),module.remove.clickaway(),settings.allowMultiple?module.hide():module.hideAll())}else module.verbose("Dimmer clicked but closable setting is disabled")},debounce:function(method,delay){clearTimeout(module.timer),module.timer=setTimeout(method,delay)},keyboard:function(event){27==event.which&&(settings.closable?(module.debug("Escape key pressed hiding modal"),module.hide()):module.debug("Escape key pressed, but closable is set to false"),event.preventDefault())},resize:function(){$dimmable.dimmer("is active")&&(module.is.animating()||module.is.active())&&requestAnimationFrame(module.refresh)}},toggle:function(){module.is.active()||module.is.animating()?module.hide():module.show()},show:function(callback){callback=$.isFunction(callback)?callback:function(){},module.refreshModals(),module.set.dimmerSettings(),module.set.dimmerStyles(),module.showModal(callback)},hide:function(callback){callback=$.isFunction(callback)?callback:function(){},module.refreshModals(),module.hideModal(callback)},showModal:function(callback){callback=$.isFunction(callback)?callback:function(){},module.is.animating()||!module.is.active()?(module.showDimmer(),module.cacheSizes(),module.can.useFlex()?module.remove.legacy():(module.set.legacy(),module.set.modalOffset(),module.debug("Using non-flex legacy modal positioning.")),module.set.screenHeight(),module.set.type(),module.set.clickaway(),!sett
vendor: 5,362 bytes, line 70
70ings.allowMultiple&&module.others.active()?module.hideOthers(module.showModal):(settings.allowMultiple&&settings.detachable&&$module.detach().appendTo($dimmer),settings.onShow.call(element),settings.transition&&undefined!==$.fn.transition&&$module.transition("is supported")?(module.debug("Showing modal with css animations"),$module.transition({debug:settings.debug,animation:settings.transition+" in",queue:settings.queue,duration:settings.duration,useFailSafe:!0,onComplete:function(){settings.onVisible.apply(element),settings.keyboardShortcuts&&module.add.keyboardShortcuts(),module.save.focus(),module.set.active(),settings.autofocus&&module.set.autofocus(),callback()}})):module.error(error.noTransition))):module.debug("Modal is already visible")},hideModal:function(callback,keepDimmed){callback=$.isFunction(callback)?callback:function(){},module.debug("Hiding modal"),!1!==settings.onHide.call(element,$(this))?(module.is.animating()||module.is.active())&&(settings.transition&&undefined!==$.fn.transition&&$module.transition("is supported")?(module.remove.active(),$module.transition({debug:settings.debug,animation:settings.transition+" out",queue:settings.queue,duration:settings.duration,useFailSafe:!0,onStart:function(){module.others.active()||keepDimmed||module.hideDimmer(),settings.keyboardShortcuts&&module.remove.keyboardShortcuts()},onComplete:function(){settings.onHidden.call(element),module.remove.dimmerStyles(),module.restore.focus(),callback()}})):module.error(error.noTransition)):module.verbose("Hide callback returned false cancelling hide")},showDimmer:function(){$dimmable.dimmer("is animating")||!$dimmable.dimmer("is active")?(module.debug("Showing dimmer"),$dimmable.dimmer("show")):module.debug("Dimmer already visible")},hideDimmer:function(){$dimmable.dimmer("is animating")||$dimmable.dimmer("is active")?(module.unbind.scrollLock(),$dimmable.dimmer("hide",(function(){module.remove.clickaway(),module.remove.screenHeight()}))):module.debug("Dimmer is not visible cannot hide")},hideAll:function(callback){var $visibleModals=$allModals.filter("."+className.active+", ."+className.animating);callback=$.isFunction(callback)?callback:function(){},$visibleModals.length>0&&(module.debug("Hiding all visible modals"),module.hideDimmer(),$visibleModals.modal("hide modal",callback))},hideOthers:function(callback){var $visibleModals=$otherModals.filter("."+className.active+", ."+className.animating);callback=$.isFunction(callback)?callback:function(){},$visibleModals.length>0&&(module.debug("Hiding other modals",$otherModals),$visibleModals.modal("hide modal",callback,!0))},others:{active:function(){return $otherModals.filter("."+className.active).length>0},animating:function(){return $otherModals.filter("."+className.animating).length>0}},add:{keyboardShortcuts:function(){module.verbose("Adding keyboard shortcuts"),$document.on("keyup"+eventNamespace,module.event.keyboard)}},save:{focus:function(){$(document.activeElement).closest($module).length>0||($focusedElement=$(document.activeElement).blur())}},restore:{focus:function(){$focusedElement&&$focusedElement.length>0&&$focusedElement.focus()}},remove:{active:function(){$module.removeClass(className.active)},legacy:function(){$module.removeClass(className.legacy)},clickaway:function(){$dimmer.off("click"+elementEventNamespace)},dimmerStyles:function(){$dimmer.removeClass(className.inverted),$dimmable.removeClass(className.blurring)},bodyStyle:function(){""===$body.attr("style")&&(module.verbose("Removing style attribute"),$body.removeAttr("style"))},screenHeight:function(){module.debug("Removing page height"),$body.css("height","")},keyboardShortcuts:function(){module.verbose("Removing keyboard shortcuts"),$document.off("keyup"+eventNamespace)},scrolling:function(){$dimmable.removeClass(className.scrolling),$module.removeClass(className.scrolling)}},cacheSizes:function(){$module.addClass(className.loading);var scrollHeight=$module.prop("scrollHeight"),modalWidth=$module.outerWidth(),modalHeight=$module.outerHeight();undefined!==module.cache&&0===modalHeight||(module.cache={pageHeight:$(document).outerHeight(),width:modalWidth,height:modalHeight+settings.offset,scrollHeight:scrollHeight+settings.offset,contextHeight:"body"==settings.context?$(window).height():$dimmable.height()},module.cache.topOffset=-module.cache.height/2),$module.removeClass(className.loading),module.debug("Caching modal and container sizes",module.cache)},can:{useFlex:function(){return"auto"==settings.useFlex?settings.detachable&&!module.is.ie():settings.useFlex},fit:function(){var contextHeight=module.cache.contextHeight,verticalCenter=module.cache.contextHeight/2,topOffset=module.cache.topOffset,scrollHeight=module.cache.scrollHeight,height=module.cache.height,paddingHeight=settings.padding;return scrollHeight>height?verticalCenter+topOffset+scrollHeight+paddingHeight<contextHeight:height+2*paddingHeight<contextHeight}},is:{active:function(){return $module.hasClass(className.active)},ie:function(){return!window.ActiveXObject&&"ActiveXObject"in window||"ActiveXObject"in window},animating:function(){return $module.transition("is supported")?$module.transition("is animating"):$module.is(":visible")},scrolling:function(){return $dimmable.hasClass(className.scrolling)},modernBrowser:function(){return!(window.ActiveXObject||"ActiveXObject"in window)}}
70,set:{autofocus:function(){var $inputs=$module.find("[tabindex], :input").filter(":visible"),$autofocus=$inputs.filter("[autofocus]"),$input=$autofocus.length>0?$autofocus.first():$inputs.first();$input.length>0&&$input.focus()},clickaway:function(){$dimmer.on("click"+elementEventNamespace,module.event.click)},dimmerSettings:function(){if(undefined!==$.fn.dimmer){var defaultSettings={debug:settings.debug,dimmerName:"modals",closable:"auto",useFlex:module.can.useFlex(),variation:!settings.centered&&"top aligned",duration:{show:settings.duration,hide:settings.duration}},dimmerSettings=$.extend(!0,defaultSettings,settings.dimmerSettings);settings.inverted&&(dimmerSettings.variation=undefined!==dimmerSettings.variation?dimmerSettings.variation+" inverted":"inverted"),$context.dimmer("setting",dimmerSettings)}else module.error(error.dimmer)},dimmerStyles:function(){settings.inverted?$dimmer.addClass(className.inverted):$dimmer.removeClass(className.inverted),settings.blurring?$dimmable.addClass(className.blurring):$dimmable.removeClass(className.blurring)},modalOffset:function(){var width=module.cache.width,height=module.cache.height;$module.css({marginTop:settings.centered&&module.can.fit()?-height/2:0,marginLeft:-width/2}),module.verbose("Setting modal offset for legacy mode")},screenHeight:function(){module.can.fit()?$body.css("height",""):(module.debug("Modal is taller than page content, resizing page height"),$body.css("height",module.cache.height+2*settings.padding))},active:function(){$module.addClass(className.active)},scrolling:function(){$dimmable.addClass(className.scrolling),$module.addClass(className.scrolling),module.unbind.scrollLock()},legacy:function(){$module.addClass(className.legacy)},type:function(){module.can.fit()?(module.verbose("Modal fits on screen"),module.others.active()||module.others.animating()||(module.remove.scrolling(),module.bind.scrollLock())):(module.verbose("Modal cannot fit on screen setting to scrolling"),module.set.scrolling())},undetached:function(){$dimmable.addClass(className.undetached)}},setting:function(name,value){if(module.debug("Changing setting",name,value),$.isPlainObject(name))$.extend(!0,settings,name);else{if(undefined===value)return settings[name];$.isPlainObject(settings[name])?$.extend(!0,settings[name],value):settings[name]=value}},internal:function(name,value){if($.isPlainObject(name))$.extend(!0,module,name);else{if(undefined===value)return module[name];module[name]=value}},debug:function(){!settings.silent&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.debug=Function.prototype.bind.call(console.info,console,settings.name+":"),module.debug.apply(console,arguments)))},verbose:function(){!settings.silent&&settings.verbose&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.verbose=Function.prototype.bind.call(console.info,console,settings.name+":"),module.verbose.apply(console,arguments)))},error:function(){settings.silent||(module.error=Function.prototype.bind.call(console.error,console,settings.name+":"),module.error.apply(console,arguments))},performance:{log:function(message){var currentTime,executionTime;settings.performance&&(executionTime=(currentTime=(new Date).getTime())-(time||currentTime),time=currentTime,performance.push({Name:message[0],Arguments:[].slice.call(message,1)||"",Element:element,"Execution Time":executionTime})),clearTimeout(module.performance.timer),module.performance.timer=setTimeout(module.performance.display,500)},display:function(){var title=settings.name+":",totalTime=0;time=!1,clearTimeout(module.performance.timer),$.each(performance,(function(index,data){totalTime+=data["Execution Time"]})),title+=" "+totalTime+"ms",moduleSelector&&(title+=" '"+moduleSelector+"'"),(undefined!==console.group||undefined!==console.table)&&performance.length>0&&(console.groupCollapsed(title),console.table?console.table(performance):$.each(performance,(function(index,data){console.log(data.Name+": "+data["Execution Time"]+"ms")})),console.groupEnd()),performance=[]}},invoke:function(query,passedArguments,context){var maxDepth,found,response,object=instance;return passedArguments=passedArguments||queryArguments,context=element||context,"string"==typeof query&&undefined!==object&&(query=query.split(/[\. ]/),maxDepth=query.length-1,$.each(query,(function(depth,value){var camel
vendor: 11,533 bytes, lines 70-80
70CaseValue=depth!=maxDepth?value+query[depth+1].charAt(0).toUpperCase()+query[depth+1].slice(1):query;if($.isPlainObject(object[camelCaseValue])&&depth!=maxDepth)object=object[camelCaseValue];else{if(undefined!==object[camelCaseValue])return found=object[camelCaseValue],!1;if(!$.isPlainObject(object[value])||depth==maxDepth)return undefined!==object[value]&&(found=object[value],!1);object=object[value]}}))),$.isFunction(found)?response=found.apply(context,passedArguments):undefined!==found&&(response=found),$.isArray(returnedValue)?returnedValue.push(response):undefined!==returnedValue?returnedValue=[returnedValue,response]:undefined!==response&&(returnedValue=response),found}},methodInvoked?(undefined===instance&&module.initialize(),module.invoke(query)):(undefined!==instance&&instance.invoke("destroy"),module.initialize())})),undefined!==returnedValue?returnedValue:this},$.fn.modal.settings={name:"Modal",namespace:"modal",useFlex:"auto",offset:0,silent:!1,debug:!1,verbose:!1,performance:!0,observeChanges:!1,allowMultiple:!1,detachable:!0,closable:!0,autofocus:!0,inverted:!1,blurring:!1,centered:!0,dimmerSettings:{closable:!1,useCSS:!0},keyboardShortcuts:!0,context:"body",queue:!1,duration:500,transition:"scale",padding:50,onShow:function(){},onVisible:function(){},onHide:function(){return!0},onHidden:function(){},onApprove:function(){return!0},onDeny:function(){return!0},selector:{close:"> .close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel",modal:".ui.modal"},error:{dimmer:"UI Dimmer, a required component is not included in this page",method:"The method you called is not defined.",notFound:"The element you specified could not be found"},className:{active:"active",animating:"animating",blurring:"blurring",inverted:"inverted",legacy:"legacy",loading:"loading",scrolling:"scrolling",undetached:"undetached"}}}(jQuery,window,document),
71/*!
72 * # Semantic UI 2.4.2 - Popup
73 * http://github.com/semantic-org/semantic-ui/
74 *
75 *
76 * Released under the MIT license
77 * http://opensource.org/licenses/MIT
78 *
79 */
80function($,window,document){"use strict";window=void 0!==window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),$.fn.popup=function(parameters){var returnedValue,$allModules=$(this),$document=$(document),$window=$(window),$body=$("body"),moduleSelector=$allModules.selector||"",time=(new Date).getTime(),performance=[],query=arguments[0],methodInvoked="string"==typeof query,queryArguments=[].slice.call(arguments,1);return $allModules.each((function(){var $popup,$offsetParent,documentObserver,elementNamespace,id,module,settings=$.isPlainObject(parameters)?$.extend(!0,{},$.fn.popup.settings,parameters):$.extend({},$.fn.popup.settings),selector=settings.selector,className=settings.className,error=settings.error,metadata=settings.metadata,namespace=settings.namespace,eventNamespace="."+settings.namespace,moduleNamespace="module-"+namespace,$module=$(this),$context=$(settings.context),$scrollContext=$(settings.scrollContext),$boundary=$(settings.boundary),$target=settings.target?$(settings.target):$module,searchDepth=0,triedPositions=!1,openedWithTouch=!1,element=this,instance=$module.data(moduleNamespace);module={initialize:function(){module.debug("Initializing",$module),module.createID(),module.bind.events(),!module.exists()&&settings.preserve&&module.create(),settings.observeChanges&&module.observeChanges(),module.instantiate()},instantiate:function(){module.verbose("Storing instance",module),instance=module,$module.data(moduleNamespace,instance)},observeChanges:function(){"MutationObserver"in window&&((documentObserver=new MutationObserver(module.event.documentChanged)).observe(document,{childList:!0,subtree:!0}),module.debug("Setting up mutation observer",documentObserver))},refresh:function(){settings.popup?$popup=$(settings.popup).eq(0):settings.inline&&($popup=$target.nextAll(selector.popup).eq(0),settings.popup=$popup),settings.popup?($popup.addClass(className.loading),$offsetParent=module.get.offsetParent(),$popup.removeClass(className.loading),settings.movePopup&&module.has.popup()&&module.get.offsetParent($popup)[0]!==$offsetParent[0]&&(module.debug("Moving popup to the same offset parent as target"),$popup.detach().appendTo($offsetParent))):$offsetParent=settings.inline?module.get.offsetParent($target):module.has.popup()?module.get.offsetParent($popup):$body,$offsetParent.is("html")&&$offsetParent[0]!==$body[0]&&(module.debug("Setting page as offset parent"),$offsetParent=$body),module.get.variation()&&module.set.variation()},reposition:function(){module.refresh(),module.set.position()},destroy:function(){module.debug("Destroying previous module"),documentObserver&&documentObserver.disconnect(),$popup&&!settings.preserve&&module.removePopup(),clearTimeout(module.hideTimer),clearTimeout(module.showTimer),module.unbind.close(),module.unbind.events(),$module.removeData(moduleNamespace)},event:{start:function(event){var delay=$.isPlainObject(settings.delay)?settings.delay.show:settings.delay;clearTimeout(module.hideTimer),openedWithTouch||(module.showTimer=setTimeout(module.show,delay))},end:function(){var delay=$.isPlainObject(settings.delay)?settings.delay.hide:settings.delay;clearTimeout(module.showTimer),module.hideTimer=setTimeout(module.hide,delay)},touchstart:function(event){openedWithTouch=!0,module.show()},resize:function(){module.is.visible()&&module.set.position()},documentChanged:function(mutations){[].forEach.call(mutations,(function(mutation){mutation.removedNodes&&[].forEach.call(mutation.removedNodes,(function(node){(node==element||$(node).find(element).length>0)&&(module.debug("Element removed from DOM, tearing down events"),module.destroy())}))}))},hideGracefully:function(event){var $target=$(event.target),isInDOM=$.contains(document.documentElement,event.target),inPopup=$target.closest(selector.popup).length>0;event&&!inPopup&&isInDOM?(module.debug("Click occurred outside popup hiding popup"),module.hide()):module.debug("Click was inside popup, keeping popup open")}},create:function(){var html=module.get.html(),title=module.get.title(),content=module.get.content();html||content||title?(module.debug("Creating pop-up html"),html||(html=settings.templates.popup({title:title,content:content})),$popup=$("<div/>").addClass(className.popup).data(metadata.activator,$module).html(html),settings.inline?(module.verbose("Inserting popup element inline",$popup),$popup.insertAfter($module)):(module.verbose("Appending popup element to body",$popup),$popup.appendTo($context)),module.refresh(),module.set.variation(),settings.hoverable&&module.bind.popup(),settings.onCreate.call($popup,element)):0!==$target.next(selector.popup).length?(module.verbose("Pre-existing popup found"),settings.inline=!0,settings.popup=$target.next(selector.popup).data(metadata.activator,$module),module.refresh(),settings.hoverable&&module.bind.popup()):settings.popup?($(settings.popup).data(metadata.activator,$module),module.verbose("Used popup specified in settings"),module.refresh(),settings.hoverable&&module.bind.popup()):module.debug("No content specified skipping display",element)},createID:function(){id=(Math.random().toString(16)+"000000000").substr(2,8),elementNamespace="."+id,module.verbose("Creating unique id for element",id)},toggle:function(){module.debug("Toggling pop-up"),module.is.hidden()?(module.debug("Popup is hidden, showing pop-up"),module.unbind.close(),module.show()):(module.debug("Popup is visible, hiding pop-up"),module.hide())},show:function(callback){if(callback=callback||function(){},module.debug("Showing pop-up",settings.transition),module.is.hidden()&&(!module.is.active()||!module.is.dropdown())){if(module.exists()||module.create(),!1===settings.onShow.call($popup,element))return void module.debug("onShow callback returned false, cancelling popup animation");settings.preserve||settings.popup||module.refresh(),$popup&&module.set.position()&&(module.save.conditions(),settings.exclusive&&module.hideAll(),module.animate.show(callback))}},hide:function(callback){if(callback=callback||function(){},module.is.visible()||module.is.animating()){if(!1===settings.onHide.call($popup,element))return void module.debug("onHide callback returned false, cancelling popup animation");module.remove.visible(),module.unbind.close(),module.restore.conditions(),module.animate.hide(callback)}},hideAll:function(){$(selector.popup).filter("."+className.popupVisible).each((function(){$(this).data(metadata.activator).popup("hide")}))},exists:function(){return!!$popup&&(settings.inline||settings.popup?module.has.popup():$popup.closest($context).length>=1)},removePopup:function(){module.has.popup()&&!settings.popup&&(module.debug("Removing popup",$popup),$popup.remove(),$popup=undefined,settings.onRemove.call($popup,element))},save:{conditions:function(){module.cache={title:$module.attr("title")},module.cache.title&&$module.removeAttr("title"),module.verbose("Saving original attributes",module.cache.title)}},restore:{conditions:function(){return module.cache&&module.cache.title&&($module.attr("title",module.cache.title),module.verbose("Restoring original attributes",module.cache.title)),!0}},supports:{svg:function(){return"undefined"==typeof SVGGraphicsElement}},animate:{show:function(callback){callback=$.isFunction(callback)?callback:function(){},settings.transition&&undefined!==$.fn.transition&&$module.transition("is supported")?(module.set.visible(),$popup.transition({animation:settings.transition+" in",queue:!1,debug:settings.debug,verbose:settings.verbose,duration:settings.duration,onComplete:function(){module.bind.close(),callback.call($popup,element),settings.onVisible.call($popup,element)}})):module.error(error.noTransition)},hide:function(callback){callback=$.isFunction(callback)?callback:function(){},module.debug("Hiding pop-up"),!1!==settings.onHide.call($popup,element)?settings.transition&&undefined!==$.fn.transition&&$module.transition("is supported")?$popup.transition({animation:settings.transition+" out",queue:!1,duration:settings.duration,debug:settings.debug,verbose:settings.verbose,onComplete:function(){module.reset(),callback.call($popup,element),settings.onHidden.call($popup,element)}}):module.error(error.noTransition):module.debug("onHide callback returned false, cancelling popup animation")}},change:{content:function(html){$popup.html(html)}},get:{html:function(){return $module.removeData(metadata.html),$module.data(metadata.html)||settings.html},title:function(){return $module.removeData(metadata.title),$module.data(metadata.title)||settings.title},content:function(){return $module.removeData(metadata.content),$module.data(metadata.content)||settings.content||$module.attr("title")},variation:function(){return $module.removeData(metadata.variation),$module.data(metadata.variation)||settings.variation},popup:function(){return $popup},popupOffset:function(){return $popup.offset()},calculations:function(){var screen,$popupOffsetParent=module.get.offsetParent($popup),targetElement=$target[0],isWindow=$boundary[0]==window,targetPosition=settings.inline||settings.popup&&settings.movePopup?$target.position():$target.offset(),screenPosition=isWindow?{top:0,left:0}:$boundary.offset(),calculations={},scroll=isWindow?{top:$window.scrollTop(),left:$window.scrollLeft()}:{top:0,left:0};if(calculations={target:{element:$target[0],width:$target.outerWidth(),height:$target.outerHeight(),top:targetPosition.top,left
vendor: 2,704 bytes, line 80
80:targetPosition.left,margin:{}},popup:{width:$popup.outerWidth(),height:$popup.outerHeight()},parent:{width:$offsetParent.outerWidth(),height:$offsetParent.outerHeight()},screen:{top:screenPosition.top,left:screenPosition.left,scroll:{top:scroll.top,left:scroll.left},width:$boundary.width(),height:$boundary.height()}},$popupOffsetParent.get(0)!==$offsetParent.get(0)){var popupOffset=$popupOffsetParent.offset();calculations.target.top-=popupOffset.top,calculations.target.left-=popupOffset.left,calculations.parent.width=$popupOffsetParent.outerWidth(),calculations.parent.height=$popupOffsetParent.outerHeight()}return settings.setFluidWidth&&module.is.fluid()&&(calculations.container={width:$popup.parent().outerWidth()},calculations.popup.width=calculations.container.width),calculations.target.margin.top=settings.inline?parseInt(window.getComputedStyle(targetElement).getPropertyValue("margin-top"),10):0,calculations.target.margin.left=settings.inline?module.is.rtl()?parseInt(window.getComputedStyle(targetElement).getPropertyValue("margin-right"),10):parseInt(window.getComputedStyle(targetElement).getPropertyValue("margin-left"),10):0,screen=calculations.screen,calculations.boundary={top:screen.top+screen.scroll.top,bottom:screen.top+screen.scroll.top+screen.height,left:screen.left+screen.scroll.left,right:screen.left+screen.scroll.left+screen.width},calculations},id:function(){return id},startEvent:function(){return"hover"==settings.on?"mouseenter":"focus"==settings.on&&"focus"},scrollEvent:function(){return"scroll"},endEvent:function(){return"hover"==settings.on?"mouseleave":"focus"==settings.on&&"blur"},distanceFromBoundary:function(offset,calculations){var popup,boundary,distanceFromBoundary={};return popup=(calculations=calculations||module.get.calculations()).popup,boundary=calculations.boundary,offset&&(distanceFromBoundary={top:offset.top-boundary.top,left:offset.left-boundary.left,right:boundary.right-(offset.left+popup.width),bottom:boundary.bottom-(offset.top+popup.height)},module.verbose("Distance from boundaries determined",offset,distanceFromBoundary)),distanceFromBoundary},offsetParent:function($element){var parentNode=(undefined!==$element?$element[0]:$target[0]).parentNode,$node=$(parentNode);if(parentNode)for(var is2D="none"===$node.css("transform"),isStatic="static"===$node.css("position"),isBody=$node.is("body");parentNode&&!isBody&&isStatic&&is2D;)parentNode=parentNode.parentNode,is2D="none"===($node=$(parentNode)).css("transform"),isStatic="static"===$node.css("position"),isBody=$node.is("body");return $node&&$node.length>0?$node:$()},positions:function(){return{"top left":!1,"top center":!1,"top right":!1,"bottom left":!1,"bottom center"
vendor: 3,984 bytes, line 80
80:!1,"bottom right":!1,"left center":!1,"right center":!1}},nextPosition:function(position){var positions=position.split(" "),verticalPosition=positions[0],horizontalPosition=positions[1],adjacentsAvailable="top"==verticalPosition||"bottom"==verticalPosition,oppositeTried=!1,adjacentTried=!1,nextPosition=!1;return triedPositions||(module.verbose("All available positions available"),triedPositions=module.get.positions()),module.debug("Recording last position tried",position),triedPositions[position]=!0,"opposite"===settings.prefer&&(nextPosition=(nextPosition=[{top:"bottom",bottom:"top",left:"right",right:"left"}[verticalPosition],horizontalPosition]).join(" "),oppositeTried=!0===triedPositions[nextPosition],module.debug("Trying opposite strategy",nextPosition)),"adjacent"===settings.prefer&&adjacentsAvailable&&(nextPosition=(nextPosition=[verticalPosition,{left:"center",center:"right",right:"left"}[horizontalPosition]]).join(" "),adjacentTried=!0===triedPositions[nextPosition],module.debug("Trying adjacent strategy",nextPosition)),(adjacentTried||oppositeTried)&&(module.debug("Using backup position",nextPosition),nextPosition={"top left":"top center","top center":"top right","top right":"right center","right center":"bottom right","bottom right":"bottom center","bottom center":"bottom left","bottom left":"left center","left center":"top left"}[position]),nextPosition}},set:{position:function(position,calculations){if(0!==$target.length&&0!==$popup.length){var offset,distanceAway,target,popup,parent,positioning,popupOffset,distanceFromBoundary;if(calculations=calculations||module.get.calculations(),position=position||$module.data(metadata.position)||settings.position,offset=$module.data(metadata.offset)||settings.offset,distanceAway=settings.distanceAway,target=calculations.target,popup=calculations.popup,parent=calculations.parent,module.should.centerArrow(calculations)&&(module.verbose("Adjusting offset to center arrow on small target element"),"top left"!=position&&"bottom left"!=position||(offset+=target.width/2,offset-=settings.arrowPixelsFromEdge),"top right"!=position&&"bottom right"!=position||(offset-=target.width/2,offset+=settings.arrowPixelsFromEdge)),0===target.width&&0===target.height&&!module.is.svg(target.element))return module.debug("Popup target is hidden, no action taken"),!1;switch(settings.inline&&(module.debug("Adding margin to calculation",target.margin),"left center"==position||"right center"==position?(offset+=target.margin.top,distanceAway+=-target.margin.left):"top left"==position||"top center"==position||"top right"==position?(offset+=target.margin.left,distanceAway-=target.margin.top):(offset+=target.margin.left,distanceAway+=target.margin.top)),module.debug("Determining popup position from calculations",position,calculations),module.is.rtl()&&(position=position.replace(/left|right/g,(function(match){return"left"==match?"right":"left"})),module.debug("RTL: Popup position updated",position)),searchDepth==settings.maxSearchDepth&&"string"==typeof settings.lastResort&&(position=settings.lastResort),position){case"top left":positioning={top:"auto",bottom:parent.height-target.top+distanceAway,left:target.left+offset,right:"auto"};break;case"top center":positioning={bottom:parent.height-target.top+distanceAway,left:target.left+target.width/2-popup.width/2+offset,top:"auto",right:"auto"};break;case"top right":positioning={bottom:parent.height-target.top+distanceAway,right:parent.width-target.left-target.width-offset,top:"auto",left:"auto"};break;case"left center":positioning={top:target.top+target.height/2-popup.height/2+offset,right:parent.width-target.left+distanceAway,left:"auto",bottom:"auto"};break;case"right center":positioning={top:target.top+target.height/2-popup.height/2+offset,left:target.left+target.width+distanceAway,bottom:"auto",right:"auto"};break;case"bottom left":positioning={top:target.top+target.height+distanceAway,left:target.left+offset,bottom:"auto",right:"auto"};break;
vendor: 4,039 bytes, line 80
80case"bottom center":positioning={top:target.top+target.height+distanceAway,left:target.left+target.width/2-popup.width/2+offset,bottom:"auto",right:"auto"};break;case"bottom right":positioning={top:target.top+target.height+distanceAway,right:parent.width-target.left-target.width-offset,left:"auto",bottom:"auto"}}if(undefined===positioning&&module.error(error.invalidPosition,position),module.debug("Calculated popup positioning values",positioning),$popup.css(positioning).removeClass(className.position).addClass(position).addClass(className.loading),popupOffset=module.get.popupOffset(),distanceFromBoundary=module.get.distanceFromBoundary(popupOffset,calculations),module.is.offstage(distanceFromBoundary,position)){if(module.debug("Position is outside viewport",position),searchDepth<settings.maxSearchDepth)return searchDepth++,position=module.get.nextPosition(position),module.debug("Trying new position",position),!!$popup&&module.set.position(position,calculations);if(!settings.lastResort)return module.debug("Popup could not find a position to display",$popup),module.error(error.cannotPlace,element),module.remove.attempts(),module.remove.loading(),module.reset(),settings.onUnplaceable.call($popup,element),!1;module.debug("No position found, showing with last position")}return module.debug("Position is on stage",position),module.remove.attempts(),module.remove.loading(),settings.setFluidWidth&&module.is.fluid()&&module.set.fluidWidth(calculations),!0}module.error(error.notFound)},fluidWidth:function(calculations){calculations=calculations||module.get.calculations(),module.debug("Automatically setting element width to parent width",calculations.parent.width),$popup.css("width",calculations.container.width)},variation:function(variation){(variation=variation||module.get.variation())&&module.has.popup()&&(module.verbose("Adding variation to popup",variation),$popup.addClass(variation))},visible:function(){$module.addClass(className.visible)}},remove:{loading:function(){$popup.removeClass(className.loading)},variation:function(variation){(variation=variation||module.get.variation())&&(module.verbose("Removing variation",variation),$popup.removeClass(variation))},visible:function(){$module.removeClass(className.visible)},attempts:function(){module.verbose("Resetting all searched positions"),searchDepth=0,triedPositions=!1}},bind:{events:function(){module.debug("Binding popup events to module"),"click"==settings.on&&$module.on("click"+eventNamespace,module.toggle),"hover"==settings.on&&$module.on("touchstart"+eventNamespace,module.event.touchstart),module.get.startEvent()&&$module.on(module.get.startEvent()+eventNamespace,module.event.start).on(module.get.endEvent()+eventNamespace,module.event.end),settings.target&&module.debug("Target set to element",$target),$window.on("resize"+elementNamespace,module.event.resize)},popup:function(){module.verbose("Allowing hover events on popup to prevent closing"),$popup&&module.has.popup()&&$popup.on("mouseenter"+eventNamespace,module.event.start).on("mouseleave"+eventNamespace,module.event.end)},close:function(){(!0===settings.hideOnScroll||"auto"==settings.hideOnScroll&&"click"!=settings.on)&&module.bind.closeOnScroll(),module.is.closable()?module.bind.clickaway():"hover"==settings.on&&openedWithTouch&&module.bind.touchClose()},closeOnScroll:function(){module.verbose("Binding scroll close event to document"),$scrollContext.one(module.get.scrollEvent()+elementNamespace,module.event.hideGracefully)},touchClose:function(){module.verbose("Binding popup touchclose event to document"),$document.on("touchstart"+elementNamespace,(function(event){module.verbose("Touched away from popup"),module.event.hideGracefully.call(element,event)}))},clickaway:function(){module.verbose("Binding popup close event to document"),$document.on("click"+elementNamespace,(function(event){module.verbose("Clicked away from popup"),module.event.hideGracefully.call(element,event)}))}},unbind:{events:function(){$window.off(elementNamespace),$module.off(eventNamespace)}
80,close:function(){$document.off(elementNamespace),$scrollContext.off(elementNamespace)}},has:{popup:function(){return $popup&&$popup.length>0}},should:{centerArrow:function(calculations){return!module.is.basic()&&calculations.target.width<=2*settings.arrowPixelsFromEdge}},is:{closable:function(){return"auto"==settings.closable?"hover"!=settings.on:settings.closable},offstage:function(distanceFromBoundary,position){var offstage=[];return $.each(distanceFromBoundary,(function(direction,distance){distance<-settings.jitter&&(module.debug("Position exceeds allowable distance from edge",direction,distance,position),offstage.push(direction))})),offstage.length>0},svg:function(element){return module.supports.svg()&&element instanceof SVGGraphicsElement},basic:function(){return $module.hasClass(className.basic)},active:function(){return $module.hasClass(className.active)},animating:function(){return undefined!==$popup&&$popup.hasClass(className.animating)},fluid:function(){return undefined!==$popup&&$popup.hasClass(className.fluid)},visible:function(){return undefined!==$popup&&$popup.hasClass(className.popupVisible)},dropdown:function(){return $module.hasClass(className.dropdown)},hidden:function(){return!module.is.visible()},rtl:function(){return"rtl"==$module.css("direction")}},reset:function(){module.remove.visible(),settings.preserve?undefined!==$.fn.transition&&$popup.transition("remove transition"):module.removePopup()},setting:function(name,value){if($.isPlainObject(name))$.extend(!0,settings,name);else{if(undefined===value)return settings[name];settings[name]=value}},internal:function(name,value){if($.isPlainObject(name))$.extend(!0,module,name);else{if(undefined===value)return module[name];module[name]=value}},debug:function(){!settings.silent&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.debug=Function.prototype.bind.call(console.info,console,settings.name+":"),module.debug.apply(console,arguments)))},verbose:function(){!settings.silent&&settings.verbose&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.verbose=Function.prototype.bind.call(console.info,console,settings.name+":"),module.verbose.apply(console,arguments)))},error:function(){settings.silent||(module.error=Function.prototype.bind.call(console.error,console,settings.name+":"),module.error.apply(console,arguments))},performance:{log:function(message){var currentTime,executionTime;settings.performance&&(executionTime=(currentTime=(new Date).getTime())-(time||currentTime),time=currentTime,performance.push({Name:message[0],Arguments:[].slice.call(message,1)||"",Element:element,"Execution Time":executionTime})),clearTimeout(module.performance.timer),module.performance.timer=setTimeout(module.performance.display,500)},display:function(){var title=settings.name+":",totalTime=0;time=!1,clearTimeout(module.performance.timer),$.each(performance,(function(index,data){totalTime+=data["Execution Time"]})),title+=" "+totalTime+"ms",moduleSelector&&(title+=" '"+moduleSelector+"'"),(undefined!==console.group||undefined!==console.table)&&performance.length>0&&(console.groupCollapsed(title),console.table?console.table(performance):$.each(performance,(function(index,data){console.log(data.Name+": "+data["Execution Time"]+"ms")})),console.groupEnd()),performance=[]}},invoke:function(query,passedArguments,context){var maxDepth,found,response,object=instance;return passedArguments=passedArguments||queryArguments,context=element||context,"string"==typeof query&&undefined!==object&&(query=query.split(/[\. ]/),maxDepth=query.length-1,$.each(query,(function(depth,value){var camelCaseValue=depth!=maxDepth?value+query[depth+1].charAt(0).toUpperCase()+query[depth+1].slice(1):query;if($.isPlainObject(object[camelCaseValue])&&depth!=maxDepth)object=object[camelCaseValue];else{if(undefined!==object[camelCaseValue])return found=object[camelCaseValue],!1;if(!$.isPlainObject(object[value])||depth==maxDepth)return undefined!==object[value]&&(found=object[value],!1);object=object[value]}}))),$.isFunction(found)?response=found.apply(context,passedArguments):undefined!==found&&(response=found),$.isArray(returnedValue)?returnedValue.push(response):undefined!==returnedValue?returnedValue=[returnedValue,response]:undefined!==response&&(returnedValue=response),found}},methodInvoked?(undefined===instance&&module.initialize(),module.invoke(query)):(undefined!==instance&&instance.invoke("destroy"),module.initialize())})),undefined!==returnedValue?returnedValue:this}
vendor: 7,290 bytes, lines 80-90
80,$.fn.popup.settings={name:"Popup",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"popup",observeChanges:!0,onCreate:function(){},onRemove:function(){},onShow:function(){},onVisible:function(){},onHide:function(){},onUnplaceable:function(){},onHidden:function(){},on:"hover",boundary:window,addTouchEvents:!0,position:"top left",variation:"",movePopup:!0,target:!1,popup:!1,inline:!1,preserve:!1,hoverable:!1,content:!1,html:!1,title:!1,closable:!0,hideOnScroll:"auto",exclusive:!1,context:"body",scrollContext:window,prefer:"opposite",lastResort:!1,arrowPixelsFromEdge:20,delay:{show:50,hide:70},setFluidWidth:!0,duration:200,transition:"scale",distanceAway:0,jitter:2,offset:0,maxSearchDepth:15,error:{invalidPosition:"The position you specified is not a valid position",cannotPlace:"Popup does not fit within the boundaries of the viewport",method:"The method you called is not defined.",noTransition:"This module requires ui transitions <https://github.com/Semantic-Org/UI-Transition>",notFound:"The target or popup you specified does not exist on the page"},metadata:{activator:"activator",content:"content",html:"html",offset:"offset",position:"position",title:"title",variation:"variation"},className:{active:"active",basic:"basic",animating:"animating",dropdown:"dropdown",fluid:"fluid",loading:"loading",popup:"ui popup",position:"top left center bottom right",visible:"visible",popupVisible:"visible"},selector:{popup:".ui.popup"},templates:{escape:function(string){var escape={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};return/[&<>"'`]/.test(string)?string.replace(/[&<>"'`]/g,(function(chr){return escape[chr]})):string},popup:function(text){var html="",escape=$.fn.popup.settings.templates.escape;return undefined!==typeof text&&(undefined!==typeof text.title&&text.title&&(text.title=escape(text.title),html+='<div class="header">'+text.title+"</div>"),undefined!==typeof text.content&&text.content&&(text.content=escape(text.content),html+='<div class="content">'+text.content+"</div>")),html}}}}(jQuery,window,document),
81/*!
82 * # Semantic UI 2.4.2 - Search
83 * http://github.com/semantic-org/semantic-ui/
84 *
85 *
86 * Released under the MIT license
87 * http://opensource.org/licenses/MIT
88 *
89 */
90function($,window,document){"use strict";window=void 0!==window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),$.fn.search=function(parameters){var returnedValue,$allModules=$(this),moduleSelector=$allModules.selector||"",time=(new Date).getTime(),performance=[],query=arguments[0],methodInvoked="string"==typeof query,queryArguments=[].slice.call(arguments,1);return $(this).each((function(){var module,settings=$.isPlainObject(parameters)?$.extend(!0,{},$.fn.search.settings,parameters):$.extend({},$.fn.search.settings),className=settings.className,metadata=settings.metadata,regExp=settings.regExp,fields=settings.fields,selector=settings.selector,error=settings.error,namespace=settings.namespace,eventNamespace="."+namespace,moduleNamespace=namespace+"-module",$module=$(this),$prompt=$module.find(selector.prompt),$searchButton=$module.find(selector.searchButton),$results=$module.find(selector.results),$result=$module.find(selector.result),element=($module.find(selector.category),this),instance=$module.data(moduleNamespace),disabledBubbled=!1,resultsDismissed=!1;module={initialize:function(){module.verbose("Initializing module"),module.get.settings(),module.determine.searchFields(),module.bind.events(),module.set.type(),module.create.results(),module.instantiate()},instantiate:function(){module.verbose("Storing instance of module",module),instance=module,$module.data(moduleNamespace,module)},destroy:function(){module.verbose("Destroying instance"),$module.off(eventNamespace).removeData(moduleNamespace)},refresh:function(){module.debug("Refreshing selector cache"),$prompt=$module.find(selector.prompt),$searchButton=$module.find(selector.searchButton),$module.find(selector.category),$results=$module.find(selector.results),$result=$module.find(selector.result)},refreshResults:function(){$results=$module.find(selector.results),$result=$module.find(selector.result)},bind:{events:function(){module.verbose("Binding events to search"),settings.automatic&&($module.on(module.get.inputEvent()+eventNamespace,selector.prompt,module.event.input),$prompt.attr("autocomplete","off")),$module.on("focus"+eventNamespace,selector.prompt,module.event.focus).on("blur"+eventNamespace,selector.prompt,module.event.blur).on("keydown"+eventNamespace,selector.prompt,module.handleKeyboard).on("click"+eventNamespace,selector.searchButton,module.query).on("mousedown"+eventNamespace,selector.results,module.event.result.mousedown).on("mouseup"+eventNamespace,selector.results,module.event.result.mouseup).on("click"+eventNamespace,selector.result,module.event.result.click)}},determine:{searchFields:function(){parameters&&undefined!==parameters.searchFields&&(settings.searchFields=parameters.searchFields)}},event:{input:function(){settings.searchDelay?(clearTimeout(module.timer),module.timer=setTimeout((function(){module.is.focused()&&module.query()}),settings.searchDelay)):module.query()},focus:function(){module.set.focus(),settings.searchOnFocus&&module.has.minimumCharacters()&&module.query((function(){module.can.show()&&module.showResults()}))},blur:function(event){var pageLostFocus=document.activeElement===this,callback=function(){module.cancel.query(),module.remove.focus(),module.timer=setTimeout(module.hideResults,settings.hideDelay)};pageLostFocus||(resultsDismissed=!1,module.resultsClicked?(module.debug("Determining if user action caused search to close"),$module.one("click.close"+eventNamespace,selector.results,(function(event){module.is.inMessage(event)||disabledBubbled?$prompt.focus():(disabledBubbled=!1,module.is.animating()||module.is.hidden()||callback())}))):(module.debug("Input blurred without user action, closing results"),callback()))},result:{mousedown:function(){module.resultsClicked=!0},mouseup:function(){module.resultsClicked=!1},click:function(event){module.debug("Search result selected");var $result=$(this),$title=$result.find(selector.title).eq(0),$link=$result.is("a[href]")?$result:$result.find("a[href]").eq(0),href=$link.attr("href")||!1,target=$link.attr("target")||!1,value=($title.html(),$title.length>0&&$title.text()),results=module.get.results(),result=$result.data(metadata.result)||module.get.result(value,results);if($.isFunction(settings.onSelect)&&!1===settings.onSelect.call(element,result,results))return module.debug("Custom onSelect callback cancelled default select action"),void(disabledBubbled=!0);module.hideResults(),value&&module.set.value(value),href&&(module.verbose("Opening search link found in result",$link),"_blank"==target||event.ctrlKey?window.open(href):window.location.href=href)}}},handleKeyboard:function(event){var newIndex,$result=$module.find(selector.result),$category=$module.find(selector.category),$activeResult=$result.filter("."+className.active),currentIndex=$result.index($activeResult),resultSize=$result.length,hasActiveResult=$activeResult.length>0,keyCode=event.which,keys_enter=13,keys_upArrow=38,keys_downArrow=40;if(keyCode==27&&(module.verbose("Escape key pressed, blurring search f
90ield"),module.hideResults(),resultsDismissed=!0),module.is.visible())if(keyCode==keys_enter){if(module.verbose("Enter key pressed, selecting active result"),$result.filter("."+className.active).length>0)return module.event.result.click.call($result.filter("."+className.active),event),event.preventDefault(),!1}else keyCode==keys_upArrow&&hasActiveResult?(module.verbose("Up key pressed, changing active result"),newIndex=currentIndex-1<0?currentIndex:currentIndex-1,$category.removeClass(className.active),$result.removeClass(className.active).eq(newIndex).addClass(className.active).closest($category).addClass(className.active),event.preventDefault()):keyCode==keys_downArrow&&(module.verbose("Down key pressed, changing active result"),newIndex=currentIndex+1>=resultSize?currentIndex:currentIndex+1,$category.removeClass(className.active),$result.removeClass(className.active).eq(newIndex).addClass(className.active).closest($category).addClass(className.active),event.preventDefault());else keyCode==keys_enter&&(module.verbose("Enter key pressed, executing query"),module.query(),module.set.buttonPressed(),$prompt.one("keyup",module.remove.buttonFocus))},setup:{api:function(searchTerm,callback){var apiSettings={debug:settings.debug,on:!1,cache:settings.cache,action:"search",urlData:{query:searchTerm},onSuccess:function(response){module.parse.response.call(element,response,searchTerm),callback()},onFailure:function(){module.displayMessage(error.serverError),callback()},onAbort:function(response){},onError:module.error};$.extend(!0,apiSettings,settings.apiSettings),module.verbose("Setting up API request",apiSettings),$module.api(apiSettings)}},can:{useAPI:function(){return undefined!==$.fn.api},show:function(){return module.is.focused()&&!module.is.visible()&&!module.is.empty()},transition:function(){return settings.transition&&undefined!==$.fn.transition&&$module.transition("is supported")}},is:{animating:function(){return $results.hasClass(className.animating)},hidden:function(){return $results.hasClass(className.hidden)},inMessage:function(event){if(event.target){var $target=$(event.target);return $.contains(document.documentElement,event.target)&&$target.closest(selector.message).length>0}},empty:function(){return""===$results.html()},visible:function(){return $results.filter(":visible").length>0},focused:function(){return $prompt.filter(":focus").length>0}},get:{settings:function(){$.isPlainObject(parameters)&&parameters.searchFullText&&(settings.fullTextSearch=parameters.searchFullText,module.error(settings.error.oldSearchSyntax,element))},inputEvent:function(){var prompt=$prompt[0];return undefined!==prompt&&undefined!==prompt.oninput?"input":undefined!==prompt&&undefined!==prompt.onpropertychange?"propertychange":"keyup"},value:function(){return $prompt.val()},results:function(){return $module.data(metadata.results)},result:function(value,results){var lookupFields=["title","id"],result=!1;return value=undefined!==value?value:module.get.value(),results=undefined!==results?results:module.get.results(),"category"===settings.type?(module.debug("Finding result that matches",value),$.each(results,(function(index,category){if($.isArray(category.results)&&(result=module.search.object(value,category.results,lookupFields)[0]))return!1}))):(module.debug("Finding result in results object",value),result=module.search.object(value,results,lookupFields)[0]),result||!1}},select:{firstResult:function(){module.verbose("Selecting first result"),$result.first().addClass(className.active)}},set:{focus:function(){$module.addClass(className.focus)},loading:function(){$module.addClass(className.loading)},value:function(value){module.verbose("Setting search input value",value),$prompt.val(value)},type:function(type){type=type||settings.type,"category"==settings.type&&$module.addClass(settings.type)},buttonPressed:function(){$searchButton.addClass(className.pressed)}},remove:{loading:function(){$module.removeClass(className.loading)},focus:function(){$module.removeClass(className.focus)},buttonPressed:function(){$searchButton.removeClass(className.pressed)}},query:function(callback){callback=$.isFunction(callback)?callback:function(){};var searchTerm=module.get.value(),cache=module.read.cache(searchTerm);callback=callback||function(){},module.has.minimumCharacters()?(cache?(module.debug("Reading result from cache",searchTerm),module.save.results(cache.results),module.addResults(cache.html),module.inject.id(cache.results),callback()):(module.debug("Querying for",searchTerm),$.isPlainObject(settings.source)||$.isArray(settings.source)?(module.search.local(searchTerm),callback()):module.can.useAPI()?module.search.remote(searchTerm,callback):(module.error(error.source),callback())),settings.onSearchQuery.call(element,searchTerm)):module.hideResults()},search:{local:function(searchTerm){var searchHTML,results=module.search.object(searchTerm,settings.content);module.set.loading(),module.save.results(results),module.debug("Returned full local search results",results),settings.maxResults>0&&(module.debug("Using specified max results",results),results=results.slice(0,settings.maxResults)),"category"==settings.type&&(results=module.create.categoryResults(results)),searchHTML=module.generateResults({results:results}),module.remove.loading(),module.addResults(searchHTML),module.inject.id(results),module.write.cache(searchTerm,{html:searchHTML,results:results})},remote:function(searchTerm,callback){callback=$.isFunction(callback)?callback:function(){},$module.api("is loading")&&$module.api("abort"),module.setup.api(searchTerm,callback),$module.api("query")},object:function(searchTerm,source,searchFields){var results=[],exactResults=[],fuzzyResults=[],searchExp=searchTerm.toString().replace(regExp.escape,"\\$&"),matchRegExp=new RegExp(regExp.beginsWith+searchExp,"i"),addResult=function(array,result){var notResult=-1==$.inArray(result,results),notFuzzyResult=-1==$.inArray(result,fuzzyResults),notExactResults=-1==$.inArray(result,exactResults);notResult&&notFuzzyResult&&notExactResults&&array.push(result)};
90return source=source||settings.source,searchFields=undefined!==searchFields?searchFields:settings.searchFields,$.isArray(searchFields)||(searchFields=[searchFields]),undefined===source||!1===source?(module.error(error.source),[]):($.each(searchFields,(function(index,field){$.each(source,(function(label,content){"string"==typeof content[field]&&(-1!==content[field].search(matchRegExp)?addResult(results,content):"exact"===settings.fullTextSearch&&module.exactSearch(searchTerm,content[field])?addResult(exactResults,content):1==settings.fullTextSearch&&module.fuzzySearch(searchTerm,content[field])&&addResult(fuzzyResults,content))}))})),$.merge(exactResults,fuzzyResults),$.merge(results,exactResults),results)}},exactSearch:function(query,term){return query=query.toLowerCase(),(term=term.toLowerCase()).indexOf(query)>-1},fuzzySearch:function(query,term){var termLength=term.length,queryLength=query.length;if("string"!=typeof query)return!1;if(query=query.toLowerCase(),term=term.toLowerCase(),queryLength>termLength)return!1;if(queryLength===termLength)return query===term;search:for(var characterIndex=0,nextCharacterIndex=0;characterIndex<queryLength;characterIndex++){for(var queryCharacter=query.charCodeAt(characterIndex);nextCharacterIndex<termLength;)if(term.charCodeAt(nextCharacterIndex++)===queryCharacter)continue search;return!1}return!0},parse:{response:function(response,searchTerm){var searchHTML=module.generateResults(response);module.verbose("Parsing server response",response),undefined!==response&&undefined!==searchTerm&&undefined!==response[fields.results]&&(module.addResults(searchHTML),module.inject.id(response[fields.results]),module.write.cache(searchTerm,{html:searchHTML,results:response[fields.results]}),module.save.results(response[fields.results]))}},cancel:{query:function(){module.can.useAPI()&&$module.api("abort")}},has:{minimumCharacters:function(){return module.get.value().length>=settings.minCharacters},results:function(){return 0!==$results.length&&""!=$results.html()}},clear:{cache:function(value){var cache=$module.data(metadata.cache);value?value&&cache&&cache[value]&&(module.debug("Removing value from cache",value),delete cache[value],$module.data(metadata.cache,cache)):(module.debug("Clearing cache",value),$module.removeData(metadata.cache))}},read:{cache:function(name){var cache=$module.data(metadata.cache);return!!settings.cache&&(module.verbose("Checking cache for generated html for query",name),"object"==typeof cache&&undefined!==cache[name]&&cache[name])}},create:{categoryResults:function(results){var categoryResults={};return $.each(results,(function(index,result){result.category&&(undefined===categoryResults[result.category]?(module.verbose("Creating new category of results",result.category),categoryResults[result.category]={name:result.category,results:[result]}):categoryResults[result.category].results.push(result))})),categoryResults},id:function(resultIndex,categoryIndex){var id,resultID=resultIndex+1;return undefined!==categoryIndex?(id=String.fromCharCode(97+categoryIndex)+resultID,module.verbose("Creating category result id",id)):(id=resultID,module.verbose("Creating result id",id)),id},results:function(){0===$results.length&&($results=$("<div />").addClass(className.results).appendTo($module))}},inject:{result:function(result,resultIndex,categoryIndex){module.verbose("Injecting result into results");var $selectedResult=undefined!==categoryIndex?$results.children().eq(categoryIndex).children(selector.results).first().children(selector.result).eq(resultIndex):$results.children(selector.result).eq(resultIndex);module.verbose("Injecting results metadata",$selectedResult),$selectedResult.data(metadata.result,result)},id:function(results){module.debug("Injecting unique ids into results");var categoryIndex=0,resultIndex=0;return"category"===settings.type?$.each(results,(function(index,category){resultIndex=0,$.each(category.results,(function(index,value){var result=category.results[index];undefined===result.id&&(result.id=module.create.id(resultIndex,categoryIndex)),module.inject.result(result,resultIndex,categoryIndex),resultIndex++})),categoryIndex++})):$.each(results,(function(index,value){var result=results[index];undefined===result.id&&(result.id=module.create.id(resultIndex)),module.inject.result(result,resultIndex),resultIndex++})),results}},save:{results:function(results){module.verbose("Saving current search results to metadata",results),$module.data(metadata.results,results)}},write:{cache:function(name,value){var cache=undefined!==$module.data(metadata.cache)?$module.data(metadata.cache):{};settings.cache&&(module.verbose("Writing generated html to cache",name,value),cache[name]=value,$module.data(metadata.cache,cache))}},addResults:function(html){if($.isFunction(settings.onResultsAdd)&&!1===settings.onResultsAdd.call($results,html))return module.debug("onResultsAdd callback cancelled default action"),!1;html?($results.html(html),module.refreshResults(),settings.selectFirstResult&&module.select.firstResult(),module.showResults()):module.hideResults((function(){$results.empty()}))},showResults:function(callback){callback=$.isFunction(callback)?callback:function(){},resultsDismissed||!module.is.visible()&&module.has.results()&&(module.can.transition()?(module.debug("Showing results with css animations"),$results.transition({animation:settings.transition+" in",debug:settings.debug,verbose:settings.verbose,duration:settings.duration,onComplete:function(){callback()},queue:!0})):(module.debug("Showing results with javascript"),$results.stop().fadeIn(settings.duration,settings.easing)),settings.onResultsOpen.call($results))},hideResults:function(callback){callback=$.isFunction(callback)?callback:function(){},module.is.visible()&&(module.can.transition()?(module.debug("Hiding results with css animations"),$results.transition({animation:settings.transition+" out",debug:settings.debug,verbose:settings.verbose,duration:settings.duration,onComplete:function(){callback()},queue:!0})):(module.debug("Hiding results with javascript"),$results.stop().fadeOut(settings.duration,settings.easing)),settings.onResultsClose.call($results))},generateResults:function(response){module.debug("Generating html from response",response);var template=settings.templates[settings.type],isProperObject=$.isPlainObject(response[fields.results])&&!$.isEmptyObject(response[fields.results]),isProperArray=$.isArray(response[fields.results])&&response[fields.results].length>0,html="";return isProperObject||isProperArray?(settings.maxResults>0&&(isProperObject?"standard"==settings.type&&module.error(error.maxResults):response[fields.results]=response[fields.results].slice(0,settings.maxResults)),$.isFunction(template)?html=template(response,fields):module.error(error.noTemplate,!1)):settings.showNoResults&&(html=module.displayMessage(error.noResults,"empty")),settings.onResults.call(element,response),html},displayMessage:function(text,type){return type=type||"standard",module.debug("Displaying message",text,type),module.addResults(settings.templates.message(text,type)),settings.templates.message(text,type)},setting:function(name,value){if($.isPlainObject(name))$.extend(!0,settings,name);else{if(undefined===value)return settings[name];settings[name]=value}},internal:function(name,value){if($.isPlainObject(name))$.extend(!0,module,name);else{if(undefined===value)return module[name];module[name]=value}}
90,debug:function(){!settings.silent&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.debug=Function.prototype.bind.call(console.info,console,settings.name+":"),module.debug.apply(console,arguments)))},verbose:function(){!settings.silent&&settings.verbose&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.verbose=Function.prototype.bind.call(console.info,console,settings.name+":"),module.verbose.apply(console,arguments)))},error:function(){settings.silent||(module.error=Function.prototype.bind.call(console.error,console,settings.name+":"),module.error.apply(console,arguments))},performance:{log:function(message){var currentTime,executionTime;settings.performance&&(executionTime=(currentTime=(new Date).getTime())-(time||currentTime),time=currentTime,performance.push({Name:message[0],Arguments:[].slice.call(message,1)||"",Element:element,"Execution Time":executionTime})),clearTimeout(module.performance.timer),module.performance.timer=setTimeout(module.performance.display,500)},display:function(){var title=settings.name+":",totalTime=0;time=!1,clearTimeout(module.performance.timer),$.each(performance,(function(index,data){totalTime+=data["Execution Time"]})),title+=" "+totalTime+"ms",moduleSelector&&(title+=" '"+moduleSelector+"'"),$allModules.length>1&&(title+=" ("+$allModules.length+")"),(undefined!==console.group||undefined!==console.table)&&performance.length>0&&(console.groupCollapsed(title),console.table?console.table(performance):$.each(performance,(function(index,data){console.log(data.Name+": "+data["Execution Time"]+"ms")})),console.groupEnd()),performance=[]}},invoke:function(query,passedArguments,context){var maxDepth,found,response,object=instance;return passedArguments=passedArguments||queryArguments,context=element||context,"string"==typeof query&&undefined!==object&&(query=query.split(/[\. ]/),maxDepth=query.length-1,$.each(query,(function(depth,value){var camelCaseValue=depth!=maxDepth?value+query[depth+1].charAt(0).toUpperCase()+query[depth+1].slice(1):query;if($.isPlainObject(object[camelCaseValue])&&depth!=maxDepth)object=object[camelCaseValue];else{if(undefined!==object[camelCaseValue])return found=object[camelCaseValue],!1;if(!$.isPlainObject(object[value])||depth==maxDepth)return undefined!==object[value]&&(found=object[value],!1);object=object[value]}}))),$.isFunction(found)?response=found.apply(context,passedArguments):undefined!==found&&(response=found),$.isArray(returnedValue)?returnedValue.push(response):undefined!==returnedValue?returnedValue=[returnedValue,response]:undefined!==response&&(returnedValue=response),found}},methodInvoked?(undefined===instance&&module.initialize(),module.invoke(query)):(undefined!==instance&&instance.invoke("destroy"),module.initialize())})),undefined!==returnedValue?returnedValue:this},$.fn.search.settings={name:"Search",namespace:"search",silent:!1,debug:!1,verbose:!1,performance:!0,type:"standard",minCharacters:1,selectFirstResult:!1,apiSettings:!1,source:!1,searchOnFocus:!0,searchFields:["title","description"],displayField:"",fullTextSearch:"exact",automatic:!0,hideDelay:0,searchDelay:200,maxResults:7,cache:!0,showNoResults:!0,transition:"scale",duration:200,easing:"easeOutExpo",onSelect:!1,onResultsAdd:!1,onSearchQuery:function(query){},onResults:function(response){},onResultsOpen:function(){},onResultsClose:function(){},className:{animating:"animating",active:"active",empty:"empty",focus:"focus",hidden:"hidden",loading:"loading",results:"results",pressed:"down"},error:{source:"Cannot search. No source used, and Semantic API module was not included",noResults:"Your search returned no results",logging:"Error in debug logging, exiting.",noEndpoint:"No search endpoint was specified",noTemplate:"A valid template name was not specified.",oldSearchSyntax:"searchFullText setting has been renamed fullTextSearch for consistency, please adjust your settings.",serverError:"There was an issue querying the server.",maxResults:"Results must be an array to use maxResults setting",method:"The method you called is not defined."},metadata:{cache:"cache",results:"results",result:"result"},regExp:{escape:/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,beginsWith:"(?:s|^)"},fields:{categories:"results",categoryName:"name",categoryResults:"results",description:"description",image:"image",price:"price",results:"results",title:"title",url:"url",action:"action",actionText:"text",actionURL:"url"},selector:{prompt:".prompt",searchButton:".search.button",results:".results",message:".results > .message",category:".category",result:".result",title:".title, .name"},templates:{escape:function(string){var escape={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};return/[&<>"'`]/.test(string)?string.replace(/[&<>"'`]/g,(function(chr){return escape[chr]})):string},message:function(message,type){var html="";return undefined!==message&&undefined!==type&&(html+='<div class="message '+type+'">',html+="empty"==type?'<div class="header">No Results</div class="header"><div class="description">'+message+'</div class="description">':' <div class="description">'+message+"</div>",html+="</div>"),html},category:function(response,fields){var html="";$.fn.search.settings.templates.escape;return undefined!==response[fields.categoryResults]&&($.each(response[fields.categoryResults],(function(index,category){undefined!==category[fields.results]&&category.results.length>0&&(html+='<div class="category">',undefined!==category[fields.categoryName]&&(html+='<div class="name">'+category[fields.categoryName]+"</div>"),html+='<div class="results">',$.each(category.results,(function(index,result){result[fields.url]?html+='<a class="result" href="'+result[fields.url]+'">':html+='<a class="result">',undefined!==result[fields.image]&&(html+='<div class="image"> <img src="'+result[fields.image]+'"></div>'),html+='<div class="content">',undefined!==result[fields.price]&&(html+='<div class="price">'+result[fields.price]+"</div>"),undefined!==result[fields.title]&&(html+='<div class="title">'+result[fields.title]+"</div>"),undefined!==result[fields.description]&&(html+='<div class="description">'+result[fields.description]+"</div>"),html+="</div>",html+="</a>"})),html+="</div>",html+="</div>")})),response[fields.action]&&(html+='<a href="'+response[fields.action][fields.actionURL]+'" class="action">'+response[fields.action][fields.actionText]+"</a>"),html)},standard:function(response,fields){var html="";return undefined!==response[fields.results]&&($.each(response[fields.results],(function(index,result){result[fields.url]?html+='<a class="result" href="'+result[fields.url]+'">':html+='<a class="result">',undefined!==result[fields.image]&&(html+='<div class="image"> <img src="'+result[fields.image]+'"></div>'),html+='<div class="content">',undefined!==result[fields.price]&&(html+='<div class="price">'+result[fields.price]+"</div>"),undefined!==result[fields.title]&&(html+='<div class="title">'+result[fields.title]+"</div>"),undefined!==result[fields.description]&&(html+='<div class="description">'+result[fields.description]+"</div>"),html+="</div>",html+="</a>"})),response[fields.action]&&(html+='<a href="'+response[fields.action][fields.actionURL]+'" class="action">'+response[fields.action][fields.actionText]+"</a>"),html)}}}}(jQuery,window,document),
91/*!
92 * # Semantic UI 2.4.2 - Sidebar
93 * http://github.com/semantic-org/semantic-ui/
94 *
95 *
96 * Released under the MIT license
97 * http://opensource.org/licenses/MIT
98 *
99 */
100function($,window,document){"use strict";window=void 0!==window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),$.fn.sidebar=function(parameters){var returnedValue,$allModules=$(this),$window=$(window),$document=$(document),$html=$("html"),$head=$("head"),moduleSelector=$allModules.selector||"",time=(new Date).getTime(),performance=[],query=arguments[0],methodInvoked="string"==typeof query,queryArguments=[].slice.call(arguments,1
vendor: 7,420 bytes, line 100
100),requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){setTimeout(callback,0)};return $allModules.each((function(){var $style,elementNamespace,id,currentScroll,transitionEvent,module,settings=$.isPlainObject(parameters)?$.extend(!0,{},$.fn.sidebar.settings,parameters):$.extend({},$.fn.sidebar.settings),selector=settings.selector,className=settings.className,namespace=settings.namespace,regExp=settings.regExp,error=settings.error,eventNamespace="."+namespace,moduleNamespace="module-"+namespace,$module=$(this),$context=$(settings.context),$sidebars=$module.children(selector.sidebar),$pusher=($context.children(selector.fixed),$context.children(selector.pusher)),element=this,instance=$module.data(moduleNamespace);module={initialize:function(){module.debug("Initializing sidebar",parameters),module.create.id(),transitionEvent=module.get.transitionEvent(),settings.delaySetup?requestAnimationFrame(module.setup.layout):module.setup.layout(),requestAnimationFrame((function(){module.setup.cache()})),module.instantiate()},instantiate:function(){module.verbose("Storing instance of module",module),instance=module,$module.data(moduleNamespace,module)},create:{id:function(){id=(Math.random().toString(16)+"000000000").substr(2,8),elementNamespace="."+id,module.verbose("Creating unique id for element",id)}},destroy:function(){module.verbose("Destroying previous module for",$module),$module.off(eventNamespace).removeData(moduleNamespace),module.is.ios()&&module.remove.ios(),$context.off(elementNamespace),$window.off(elementNamespace),$document.off(elementNamespace)},event:{clickaway:function(event){var clickedInPusher=$pusher.find(event.target).length>0||$pusher.is(event.target),clickedContext=$context.is(event.target);clickedInPusher&&(module.verbose("User clicked on dimmed page"),module.hide()),clickedContext&&(module.verbose("User clicked on dimmable context (scaled out page)"),module.hide())},touch:function(event){},containScroll:function(event){element.scrollTop<=0&&(element.scrollTop=1),element.scrollTop+element.offsetHeight>=element.scrollHeight&&(element.scrollTop=element.scrollHeight-element.offsetHeight-1)},scroll:function(event){0===$(event.target).closest(selector.sidebar).length&&event.preventDefault()}},bind:{clickaway:function(){module.verbose("Adding clickaway events to context",$context),settings.closable&&$context.on("click"+elementNamespace,module.event.clickaway).on("touchend"+elementNamespace,module.event.clickaway)},scrollLock:function(){settings.scrollLock&&(module.debug("Disabling page scroll"),$window.on("DOMMouseScroll"+elementNamespace,module.event.scroll)),module.verbose("Adding events to contain sidebar scroll"),$document.on("touchmove"+elementNamespace,module.event.touch),$module.on("scroll"+eventNamespace,module.event.containScroll)}},unbind:{clickaway:function(){module.verbose("Removing clickaway events from context",$context),$context.off(elementNamespace)},scrollLock:function(){module.verbose("Removing scroll lock from page"),$document.off(elementNamespace),$window.off(elementNamespace),$module.off("scroll"+eventNamespace)}},add:{inlineCSS:function(){var style,width=module.cache.width||$module.outerWidth(),height=module.cache.height||$module.outerHeight(),isRTL=module.is.rtl(),direction=module.get.direction(),distance={left:width,right:-width,top:height,bottom:-height};isRTL&&(module.verbose("RTL detected, flipping widths"),distance.left=-width,distance.right=width),style="<style>","left"===direction||"right"===direction?(module.debug("Adding CSS rules for animation distance",width),style+=" .ui.visible."+direction+".sidebar ~ .fixed, .ui.visible."+direction+".sidebar ~ .pusher {   -webkit-transform: translate3d("+distance[direction]+"px, 0, 0);           transform: translate3d("+distance[direction]+"px, 0, 0); }"):"top"!==direction&&"bottom"!=direction||(style+=" .ui.visible."+direction+".sidebar ~ .fixed, .ui.visible."+direction+".sidebar ~ .pusher {   -webkit-transform: translate3d(0, "+distance[direction]+"px, 0);           transform: translate3d(0, "+distance[direction]+"px, 0); }"),module.is.ie()&&("left"===direction||"right"===direction?(module.debug("Adding CSS rules for animation distance",width),style+=" body.pushable > .ui.visible."+direction+".sidebar ~ .pusher:after {   -webkit-transform: translate3d("+distance[direction]+"px, 0, 0);           transform: translate3d("+distance[direction]+"px, 0, 0); }"):"top"!==direction&&"bottom"!=direction||(style+=" body.pushable > .ui.visible."+direction+".sidebar ~ .pusher:after {   -webkit-transform: translate3d(0, "+distance[direction]+"px, 0);           transform: translate3d(0, "+distance[direction]+"px, 0); }"),style+=" body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher:after, body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher:after {   -webkit-transform: translate3d(0px, 0, 0);           transform: translate3d(0px, 0, 0); }"),$style=$(style+="</style>").appendTo($head),module.debug("Adding sizing css to head",$style)}},refresh:function(){module.verbose("Refreshing selector cache"),$context=$(settings.context),$sidebars=$context.children(selector.sidebar),$pusher=$context.children(selector.pusher),$context.children(selector.fixed),module.clear.cache()},refreshSidebars:function(){module.verbose("Refreshing other sidebars"),$sidebars=$context.children(selector.sidebar)},repaint:function(){module.verbose("Forcing repaint event"),element.style.display="none";element.offsetHeight;element.scrollTop=element.scrollTop,element.style.display=""},setup:{cache:function(){module.cache={width:$module.outerWidth(),height:$module.outerHeight(),rtl:"rtl"==$module.css("direction")}},layout:function(){0===$context.children(selector.pusher).length&&(module.debug("Adding wrapper element for sidebar"),module.error(error.pusher),$pusher=$('<div class="pusher" />'),$context.children().not(selector.omitted).not($sidebars).wrapAll($pusher),module.refresh()),0!==$module.nextAll(selector.pusher).length&&$module.nextAll(selector.pusher)[0]===$pusher[0]||(module.debug("Moved sidebar to correct parent element"),module.error(error.movedSidebar,element),$module.detach().prependTo($context),module.refresh()),module.clear.cache(),module.set.pushable(),module.set.direction()}},attachEvents:function(selector,event){var $toggle=$(selector);event=$.isFunction(module[event])?module[event]:module.toggle,$toggle.length>0?(module.debug("Attaching sidebar events to element",selector,event),$toggle.on("click"+eventNamespace,event)):module.error(error.notFound,selector)},show:function(callback){if(callback=$.isFunction(callback)?callback:function(){},module.is.hidden()){if(module.refreshSidebars(),settings.overlay&&(module.error(error.overlay),settings.transition="overlay"),module.refresh(),module.othersActive())if(module.debug("Other sidebars currently visible"),settings.exclusive){if("overlay"!=settings.transition)return void module.hideOthers(module.show);module.hideOthers()}else settings.transition="overlay";module.pushPage((function(){callback.call(element),settings.onShow.call(element)})),settings.onChange.call(element),settings.onVisible.call(element)}else module.debug("Sidebar is already visible")},hide:function(callback){callback=$.isFunction(callback)?callback:function(){}
vendor: 6,916 bytes, line 100
100,(module.is.visible()||module.is.animating())&&(module.debug("Hiding sidebar",callback),module.refreshSidebars(),module.pullPage((function(){callback.call(element),settings.onHidden.call(element)})),settings.onChange.call(element),settings.onHide.call(element))},othersAnimating:function(){return $sidebars.not($module).filter("."+className.animating).length>0},othersVisible:function(){return $sidebars.not($module).filter("."+className.visible).length>0},othersActive:function(){return module.othersVisible()||module.othersAnimating()},hideOthers:function(callback){var $otherSidebars=$sidebars.not($module).filter("."+className.visible),sidebarCount=$otherSidebars.length,callbackCount=0;callback=callback||function(){},$otherSidebars.sidebar("hide",(function(){++callbackCount==sidebarCount&&callback()}))},toggle:function(){module.verbose("Determining toggled direction"),module.is.hidden()?module.show():module.hide()},pushPage:function(callback){var animate,dim,transitionEnd,transition=module.get.transition(),$transition="overlay"===transition||module.othersActive()?$module:$pusher;callback=$.isFunction(callback)?callback:function(){},"scale down"==settings.transition&&module.scrollToTop(),module.set.transition(transition),module.repaint(),animate=function(){module.bind.clickaway(),module.add.inlineCSS(),module.set.animating(),module.set.visible()},dim=function(){module.set.dimmed()},transitionEnd=function(event){event.target==$transition[0]&&($transition.off(transitionEvent+elementNamespace,transitionEnd),module.remove.animating(),module.bind.scrollLock(),callback.call(element))},$transition.off(transitionEvent+elementNamespace),$transition.on(transitionEvent+elementNamespace,transitionEnd),requestAnimationFrame(animate),settings.dimPage&&!module.othersVisible()&&requestAnimationFrame(dim)},pullPage:function(callback){var animate,transitionEnd,transition=module.get.transition(),$transition="overlay"==transition||module.othersActive()?$module:$pusher;callback=$.isFunction(callback)?callback:function(){},module.verbose("Removing context push state",module.get.direction()),module.unbind.clickaway(),module.unbind.scrollLock(),animate=function(){module.set.transition(transition),module.set.animating(),module.remove.visible(),settings.dimPage&&!module.othersVisible()&&$pusher.removeClass(className.dimmed)},transitionEnd=function(event){event.target==$transition[0]&&($transition.off(transitionEvent+elementNamespace,transitionEnd),module.remove.animating(),module.remove.transition(),module.remove.inlineCSS(),("scale down"==transition||settings.returnScroll&&module.is.mobile())&&module.scrollBack(),callback.call(element))},$transition.off(transitionEvent+elementNamespace),$transition.on(transitionEvent+elementNamespace,transitionEnd),requestAnimationFrame(animate)},scrollToTop:function(){module.verbose("Scrolling to top of page to avoid animation issues"),currentScroll=$(window).scrollTop(),$module.scrollTop(0),window.scrollTo(0,0)},scrollBack:function(){module.verbose("Scrolling back to original page position"),window.scrollTo(0,currentScroll)},clear:{cache:function(){module.verbose("Clearing cached dimensions"),module.cache={}}},set:{ios:function(){$html.addClass(className.ios)},pushed:function(){$context.addClass(className.pushed)},pushable:function(){$context.addClass(className.pushable)},dimmed:function(){$pusher.addClass(className.dimmed)},active:function(){$module.addClass(className.active)},animating:function(){$module.addClass(className.animating)},transition:function(transition){transition=transition||module.get.transition(),$module.addClass(transition)},direction:function(direction){direction=direction||module.get.direction(),$module.addClass(className[direction])},visible:function(){$module.addClass(className.visible)},overlay:function(){$module.addClass(className.overlay)}},remove:{inlineCSS:function(){module.debug("Removing inline css styles",$style),$style&&$style.length>0&&$style.remove()},ios:function(){$html.removeClass(className.ios)},pushed:function(){$context.removeClass(className.pushed)},pushable:function(){$context.removeClass(className.pushable)},active:function(){$module.removeClass(className.active)},animating:function(){$module.removeClass(className.animating)},transition:function(transition){transition=transition||module.get.transition(),$module.removeClass(transition)},direction:function(direction){direction=direction||module.get.direction(),$module.removeClass(className[direction])},visible:function(){$module.removeClass(className.visible)},overlay:function(){$module.removeClass(className.overlay)}},get:{direction:function(){return $module.hasClass(className.top)?className.top:$module.hasClass(className.right)?className.right:$module.hasClass(className.bottom)?className.bottom:className.left},transition:function(){var transition,direction=module.get.direction();return transition=module.is.mobile()?"auto"==settings.mobileTransition?settings.defaultTransition.mobile[direction]:settings.mobileTransition:"auto"==settings.transition?settings.defaultTransition.computer[direction]:settings.transition,module.verbose("Determined transition",transition),transition},transitionEvent:function(){var transition,element=document.createElement("element"),transitions={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(transition in transitions)if(undefined!==element.style[transition])return transitions[transition]}},is:{ie:function(){return!window.ActiveXObject&&"ActiveXObject"in window||"ActiveXObject"in window},ios:function(){var userAgent=navigator.userAgent,isIOS=userAgent.match(regExp.ios),isMobileChrome=userAgent.match(regExp.mobileChrome);return!(!isIOS||isMobileChrome)&&(module.verbose("Browser was found to be iOS",userAgent),!0)},mobile:function(){var userAgent=navigator.userAgent;return userAgent.match(regExp.mobile)?(module.verbose("Browser was found to be mobile",userAgent),!0):(module.verbose("Browser is not mobile, using regular transition",userAgent),!1)},hidden:function(){return!module.is.visible()},visible:function(){return $module.hasClass(className.visible)},open:function(){return module.is.visible()},closed:function(){return module.is.hidden()},vertical:function(){return $module.hasClass(className.top)},animating:function(){return $context.hasClass(className.animating)},rtl:function(){return undefined===module.cache.rtl&&(module.cache.rtl="rtl"==$module.css("direction")),module.cache.rtl}},setting:function(name,value){if(module.debug("Changing setting",name,value),$.isPlainObject(name))$.extend(!0,settings,name);else{if(undefined===value)return settings[name];$.isPlainObject(settings[name])?$.extend(!0,settings[name],value):settings[name]=value}},internal:function(name,value){if($.isPlainObject(name))$.extend(!0,module,name);else{if(undefined===value)return module[name];module[name]=value}}
100,debug:function(){!settings.silent&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.debug=Function.prototype.bind.call(console.info,console,settings.name+":"),module.debug.apply(console,arguments)))},verbose:function(){!settings.silent&&settings.verbose&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.verbose=Function.prototype.bind.call(console.info,console,settings.name+":"),module.verbose.apply(console,arguments)))},error:function(){settings.silent||(module.error=Function.prototype.bind.call(console.error,console,settings.name+":"),module.error.apply(console,arguments))},performance:{log:function(message){var currentTime,executionTime;settings.performance&&(executionTime=(currentTime=(new Date).getTime())-(time||currentTime),time=currentTime,performance.push({Name:message[0],Arguments:[].slice.call(message,1)||"",Element:element,"Execution Time":executionTime})),clearTimeout(module.performance.timer),module.performance.timer=setTimeout(module.performance.display,500)},display:function(){var title=settings.name+":",totalTime=0;time=!1,clearTimeout(module.performance.timer),$.each(performance,(function(index,data){totalTime+=data["Execution Time"]})),title+=" "+totalTime+"ms",moduleSelector&&(title+=" '"+moduleSelector+"'"),(undefined!==console.group||undefined!==console.table)&&performance.length>0&&(console.groupCollapsed(title),console.table?console.table(performance):$.each(performance,(function(index,data){console.log(data.Name+": "+data["Execution Time"]+"ms")})),console.groupEnd()),performance=[]}},invoke:function(query,passedArguments,context){var maxDepth,found,response,object=instance;return passedArguments=passedArguments||queryArguments,context=element||context,"string"==typeof query&&undefined!==object&&(query=query.split(/[\. ]/),maxDepth=query.length-1,$.each(query,(function(depth,value){var camelCaseValue=depth!=maxDepth?value+query[depth+1].charAt(0).toUpperCase()+query[depth+1].slice(1):query;if($.isPlainObject(object[camelCaseValue])&&depth!=maxDepth)object=object[camelCaseValue];else{if(undefined!==object[camelCaseValue])return found=object[camelCaseValue],!1;if(!$.isPlainObject(object[value])||depth==maxDepth)return undefined!==object[value]?(found=object[value],!1):(module.error(error.method,query),!1);object=object[value]}}))),$.isFunction(found)?response=found.apply(context,passedArguments):undefined!==found&&(response=found),$.isArray(returnedValue)?returnedValue.push(response):undefined!==returnedValue?returnedValue=[returnedValue,response]:undefined!==response&&(returnedValue=response),found}},methodInvoked?(undefined===instance&&module.initialize(),module.invoke(query)):(undefined!==instance&&module.invoke("destroy"),module.initialize())})),undefined!==returnedValue?returnedValue:this},$.fn.sidebar.settings={name:"Sidebar",namespace:"sidebar",silent:!1,debug:!1,verbose:!1,performance:!0,transition:"auto",mobileTransition:"auto",defaultTransition:{computer:{left:"uncover",right:"uncover",top:"overlay",bottom:"overlay"},mobile:{left:"uncover",right:"uncover",top:"overlay",bottom:"overlay"}},context:"body",exclusive:!1,closable:!0,dimPage:!0,scrollLock:!1,returnScroll:!1,delaySetup:!1,duration:500,onChange:function(){},onShow:function(){},onHide:function(){},onHidden:function(){},onVisible:function(){},className:{active:"active",animating:"animating",dimmed:"dimmed",ios:"ios",pushable:"pushable",pushed:"pushed",right:"right",top:"top",left:"left",bottom:"bottom",visible:"visible"},selector:{fixed:".fixed",omitted:"script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed",pusher:".pusher",sidebar:".ui.sidebar"},regExp:{ios:/(iPad|iPhone|iPod)/g,mobileChrome:/(CriOS)/g,mobile:/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g},error:{method:"The method you called is not defined.",pusher:"Had to add pusher element. For optimal performance make sure body content is inside a pusher element",movedSidebar:"Had to move sidebar. For optimal performance make sure sidebar and pusher are direct children of your body tag",overlay:"The overlay setting is no longer supported, use animation: overlay",notFound:"There were no elements that matched the specified selector"}}}(jQuery,window,document),
101/*!
102 * # Semantic UI 2.4.2 - Sticky
103 * http://github.com/semantic-org/semantic-ui/
104 *
105 *
106 * Released under the MIT license
107 * http://opensource.org/licenses/MIT
108 *
109 */
110function($,window,document){"use strict";window=void 0!==window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),$.fn.sticky=function(parameters){var returnedValue,$allModules=$(this),moduleSelector=$allModules.selector||"",time=(new Date).getTime(),performance=[],query=arguments[0],methodInvoked="string"==typeof query,queryArguments=[].slice.call(arguments,1
vendor: 4,493 bytes, line 110
110);return $allModules.each((function(){var $container,$context,documentObserver,observer,module,settings=$.isPlainObject(parameters)?$.extend(!0,{},$.fn.sticky.settings,parameters):$.extend({},$.fn.sticky.settings),className=settings.className,namespace=settings.namespace,error=settings.error,eventNamespace="."+namespace,moduleNamespace="module-"+namespace,$module=$(this),$window=$(window),$scroll=$(settings.scrollContext),instance=($module.selector,$module.data(moduleNamespace)),requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){setTimeout(callback,0)},element=this;module={initialize:function(){module.determineContainer(),module.determineContext(),module.verbose("Initializing sticky",settings,$container),module.save.positions(),module.checkErrors(),module.bind.events(),settings.observeChanges&&module.observeChanges(),module.instantiate()},instantiate:function(){module.verbose("Storing instance of module",module),instance=module,$module.data(moduleNamespace,module)},destroy:function(){module.verbose("Destroying previous instance"),module.reset(),documentObserver&&documentObserver.disconnect(),observer&&observer.disconnect(),$window.off("load"+eventNamespace,module.event.load).off("resize"+eventNamespace,module.event.resize),$scroll.off("scrollchange"+eventNamespace,module.event.scrollchange),$module.removeData(moduleNamespace)},observeChanges:function(){"MutationObserver"in window&&(documentObserver=new MutationObserver(module.event.documentChanged),observer=new MutationObserver(module.event.changed),documentObserver.observe(document,{childList:!0,subtree:!0}),observer.observe(element,{childList:!0,subtree:!0}),observer.observe($context[0],{childList:!0,subtree:!0}),module.debug("Setting up mutation observer",observer))},determineContainer:function(){$container=settings.container?$(settings.container):$module.offsetParent()},determineContext:function(){0!==($context=settings.context?$(settings.context):$container).length||module.error(error.invalidContext,settings.context,$module)},checkErrors:function(){if(module.is.hidden()&&module.error(error.visible,$module),module.cache.element.height>module.cache.context.height)return module.reset(),void module.error(error.elementSize,$module)},bind:{events:function(){$window.on("load"+eventNamespace,module.event.load).on("resize"+eventNamespace,module.event.resize),$scroll.off("scroll"+eventNamespace).on("scroll"+eventNamespace,module.event.scroll).on("scrollchange"+eventNamespace,module.event.scrollchange)}},event:{changed:function(mutations){clearTimeout(module.timer),module.timer=setTimeout((function(){module.verbose("DOM tree modified, updating sticky menu",mutations),module.refresh()}),100)},documentChanged:function(mutations){[].forEach.call(mutations,(function(mutation){mutation.removedNodes&&[].forEach.call(mutation.removedNodes,(function(node){(node==element||$(node).find(element).length>0)&&(module.debug("Element removed from DOM, tearing down events"),module.destroy())}))}))},load:function(){module.verbose("Page contents finished loading"),requestAnimationFrame(module.refresh)},resize:function(){module.verbose("Window resized"),requestAnimationFrame(module.refresh)},scroll:function(){requestAnimationFrame((function(){$scroll.triggerHandler("scrollchange"+eventNamespace,$scroll.scrollTop())}))},scrollchange:function(event,scrollPosition){module.stick(scrollPosition),settings.onScroll.call(element)}},refresh:function(hardRefresh){module.reset(),settings.context||module.determineContext(),hardRefresh&&module.determineContainer(),module.save.positions(),module.stick(),settings.onReposition.call(element)},supports:{sticky:function(){var $element=$("<div/>");$element[0];return $element.addClass(className.supported),$element.css("position").match("sticky")}},save:{lastScroll:function(scroll){module.lastScroll=scroll},elementScroll:function(scroll){module.elementScroll=scroll},positions:function(){var scrollContext={height:$scroll.height()},element={margin:{top:parseInt($module.css("margin-top"),10),bottom:parseInt($module.css("margin-bottom"),10)},offset:$module.offset(),width:$module.outerWidth(),height:$module.outerHeight()},context={offset:$context.offset(),height:$context.outerHeight()};$container.outerHeight();module.is.standardScroll()||(module.debug("Non-standard scroll. Removing scroll offset from element offset"),scrollContext.top=$scroll.
vendor: 1,411 bytes, line 110
110scrollTop(),scrollContext.left=$scroll.scrollLeft(),element.offset.top+=scrollContext.top,context.offset.top+=scrollContext.top,element.offset.left+=scrollContext.left,context.offset.left+=scrollContext.left),module.cache={fits:element.height+settings.offset<=scrollContext.height,sameHeight:element.height==context.height,scrollContext:{height:scrollContext.height},element:{margin:element.margin,top:element.offset.top-element.margin.top,left:element.offset.left,width:element.width,height:element.height,bottom:element.offset.top+element.height},context:{top:context.offset.top,height:context.height,bottom:context.offset.top+context.height}},module.set.containerSize(),module.stick(),module.debug("Caching element positions",module.cache)}},get:{direction:function(scroll){var direction="down";return scroll=scroll||$scroll.scrollTop(),undefined!==module.lastScroll&&(module.lastScroll<scroll?direction="down":module.lastScroll>scroll&&(direction="up")),direction},scrollChange:function(scroll){return scroll=scroll||$scroll.scrollTop(),module.lastScroll?scroll-module.lastScroll:0},currentElementScroll:function(){return module.elementScroll?module.elementScroll:module.is.top()?Math.abs(parseInt($module.css("top"),10))||0:Math.abs(parseInt($module.css("bottom"),10))||0},elementScroll:function(scroll){scroll=scroll||$scroll.scrollTop();var element=module.cache.element,scrollContext=module.cache.scrollC
vendor: 6,658 bytes, line 110
110ontext,delta=module.get.scrollChange(scroll),maxScroll=element.height-scrollContext.height+settings.offset,elementScroll=module.get.currentElementScroll(),possibleScroll=elementScroll+delta;return elementScroll=module.cache.fits||possibleScroll<0?0:possibleScroll>maxScroll?maxScroll:possibleScroll}},remove:{lastScroll:function(){delete module.lastScroll},elementScroll:function(scroll){delete module.elementScroll},minimumSize:function(){$container.css("min-height","")},offset:function(){$module.css("margin-top","")}},set:{offset:function(){module.verbose("Setting offset on element",settings.offset),$module.css("margin-top",settings.offset)},containerSize:function(){var tagName=$container.get(0).tagName;"HTML"===tagName||"body"==tagName?module.determineContainer():Math.abs($container.outerHeight()-module.cache.context.height)>settings.jitter&&(module.debug("Context has padding, specifying exact height for container",module.cache.context.height),$container.css({height:module.cache.context.height}))},minimumSize:function(){var element=module.cache.element;$container.css("min-height",element.height)},scroll:function(scroll){module.debug("Setting scroll on element",scroll),module.elementScroll!=scroll&&(module.is.top()&&$module.css("bottom","").css("top",-scroll),module.is.bottom()&&$module.css("top","").css("bottom",scroll))},size:function(){0!==module.cache.element.height&&0!==module.cache.element.width&&(element.style.setProperty("width",module.cache.element.width+"px","important"),element.style.setProperty("height",module.cache.element.height+"px","important"))}},is:{standardScroll:function(){return $scroll[0]==window},top:function(){return $module.hasClass(className.top)},bottom:function(){return $module.hasClass(className.bottom)},initialPosition:function(){return!module.is.fixed()&&!module.is.bound()},hidden:function(){return!$module.is(":visible")},bound:function(){return $module.hasClass(className.bound)},fixed:function(){return $module.hasClass(className.fixed)}},stick:function(scroll){var cachedPosition=scroll||$scroll.scrollTop(),cache=module.cache,fits=cache.fits,sameHeight=cache.sameHeight,element=cache.element,scrollContext=cache.scrollContext,context=cache.context,offset=module.is.bottom()&&settings.pushing?settings.bottomOffset:settings.offset,elementScroll=(scroll={top:cachedPosition+offset,bottom:cachedPosition+offset+scrollContext.height},module.get.direction(scroll.top),fits?0:module.get.elementScroll(scroll.top)),doesntFit=!fits;0!==element.height&&!sameHeight&&(module.is.initialPosition()?scroll.top>=context.bottom?(module.debug("Initial element position is bottom of container"),module.bindBottom()):scroll.top>element.top&&(element.height+scroll.top-elementScroll>=context.bottom?(module.debug("Initial element position is bottom of container"),module.bindBottom()):(module.debug("Initial element position is fixed"),module.fixTop())):module.is.fixed()?module.is.top()?scroll.top<=element.top?(module.debug("Fixed element reached top of container"),module.setInitialPosition()):element.height+scroll.top-elementScroll>=context.bottom?(module.debug("Fixed element reached bottom of container"),module.bindBottom()):doesntFit&&(module.set.scroll(elementScroll),module.save.lastScroll(scroll.top),module.save.elementScroll(elementScroll)):module.is.bottom()&&(scroll.bottom-element.height<=element.top?(module.debug("Bottom fixed rail has reached top of container"),module.setInitialPosition()):scroll.bottom>=context.bottom?(module.debug("Bottom fixed rail has reached bottom of container"),module.bindBottom()):doesntFit&&(module.set.scroll(elementScroll),module.save.lastScroll(scroll.top),module.save.elementScroll(elementScroll))):module.is.bottom()&&(scroll.top<=element.top?(module.debug("Jumped from bottom fixed to top fixed, most likely used home/end button"),module.setInitialPosition()):settings.pushing?module.is.bound()&&scroll.bottom<=context.bottom&&(module.debug("Fixing bottom attached element to bottom of browser."),module.fixBottom()):module.is.bound()&&scroll.top<=context.bottom-element.height&&(module.debug("Fixing bottom attached element to top of browser."),module.fixTop())))},bindTop:function(){module.debug("Binding element to top of parent container"),module.remove.offset(),$module.css({left:"",top:"",marginBottom:""}).removeClass(className.fixed).removeClass(className.bottom).addClass(className.bound).addClass(className.top),settings.onTop.call(element),settings.onUnstick.call(element)},bindBottom:function(){module.debug("Binding element to bottom of parent container"),module.remove.offset(),$module.css({left:"",top:""}).removeClass(className.fixed).removeClass(className.top).addClass(className.bound).addClass(className.bottom),settings.onBottom.call(element),settings.onUnstick.call(element)},setInitialPosition:function(){module.debug("Returning to initial position"),module.unfix(),module.unbind()},fixTop:function(){module.debug("Fixing element to top of page"),settings.setSize&&module.set.size(),module.set.minimumSize(),module.set.offset(),$module.css({left:module.cache.element.left,bottom:"",marginBottom:""}).removeClass(className.bound).removeClass(className.bottom).addClass(className.fixed).addClass(className.top),settings.onStick.call(element)},fixBottom:function(){module.debug("Sticking element to bottom of page"),settings.setSize&&module.set.size(),module.set.minimumSize(),module.set.offset(),$module.css({left:module.cache.element.left,bottom:"",marginBottom:""}).removeClass(className.bound).removeClass(className.top).addClass(className.fixed).addClass(className.bottom),settings.onStick.call(element)},unbind:function(){module.is.bound()&&(module.debug("Removing container bound position on element"),module.remove.offset(),$module.removeClass(className.bound).removeClass(className.top).removeClass(className.bottom))},unfix:function(){module.is.fixed()&&(module.debug("Removing fixed position on element"),module.remove.minimumSize(),module.remove.offset(),$module.removeClass(className.fixed).removeClass(className.top).removeClass(className.bottom),settings.onUnstick.call(element))},reset:function(){module.debug("Resetting elements position"),module.unbind(),module.unfix(),module.resetCSS(),module.remove.offset(),module.remove.lastScroll()},resetCSS:function(){$module.css({width:"",height:""}),$container.css({height:""})},setting:function(name,value){if($.isPlainObject(name))$.extend(!0,settings,name);else{if(undefined===value)return settings[name];settings[name]=value}},internal:function(name,value){if($.isPlainObject(name))$.extend(!0,module,name);else{if(undefined===value)return module[name];module[name]=value}}
110,debug:function(){!settings.silent&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.debug=Function.prototype.bind.call(console.info,console,settings.name+":"),module.debug.apply(console,arguments)))},verbose:function(){!settings.silent&&settings.verbose&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.verbose=Function.prototype.bind.call(console.info,console,settings.name+":"),module.verbose.apply(console,arguments)))},error:function(){settings.silent||(module.error=Function.prototype.bind.call(console.error,console,settings.name+":"),module.error.apply(console,arguments))},performance:{log:function(message){var currentTime,executionTime;settings.performance&&(executionTime=(currentTime=(new Date).getTime())-(time||currentTime),time=currentTime,performance.push({Name:message[0],Arguments:[].slice.call(message,1)||"",Element:element,"Execution Time":executionTime})),clearTimeout(module.performance.timer),module.performance.timer=setTimeout(module.performance.display,0)},display:function(){var title=settings.name+":",totalTime=0;time=!1,clearTimeout(module.performance.timer),$.each(performance,(function(index,data){totalTime+=data["Execution Time"]})),title+=" "+totalTime+"ms",moduleSelector&&(title+=" '"+moduleSelector+"'"),(undefined!==console.group||undefined!==console.table)&&performance.length>0&&(console.groupCollapsed(title),console.table?console.table(performance):$.each(performance,(function(index,data){console.log(data.Name+": "+data["Execution Time"]+"ms")})),console.groupEnd()),performance=[]}},invoke:function(query,passedArguments,context){var maxDepth,found,response,object=instance;return passedArguments=passedArguments||queryArguments,context=element||context,"string"==typeof query&&undefined!==object&&(query=query.split(/[\. ]/),maxDepth=query.length-1,$.each(query,(function(depth,value){var camelCaseValue=depth!=maxDepth?value+query[depth+1].charAt(0).toUpperCase()+query[depth+1].slice(1):query;if($.isPlainObject(object[camelCaseValue])&&depth!=maxDepth)object=object[camelCaseValue];else{if(undefined!==object[camelCaseValue])return found=object[camelCaseValue],!1;if(!$.isPlainObject(object[value])||depth==maxDepth)return undefined!==object[value]&&(found=object[value],!1);object=object[value]}}))),$.isFunction(found)?response=found.apply(context,passedArguments):undefined!==found&&(response=found),$.isArray(returnedValue)?returnedValue.push(response):undefined!==returnedValue?returnedValue=[returnedValue,response]:undefined!==response&&(returnedValue=response),found}},methodInvoked?(undefined===instance&&module.initialize(),module.invoke(query)):(undefined!==instance&&instance.invoke("destroy"),module.initialize())})),undefined!==returnedValue?returnedValue:this},$.fn.sticky.settings={name:"Sticky",namespace:"sticky",silent:!1,debug:!1,verbose:!0,performance:!0,pushing:!1,context:!1,container:!1,scrollContext:window,offset:0,bottomOffset:0,jitter:5,setSize:!0,observeChanges:!1,onReposition:function(){},onScroll:function(){},onStick:function(){},onUnstick:function(){},onTop:function(){},onBottom:function(){},error:{container:"Sticky element must be inside a relative container",visible:"Element is hidden, you must call refresh after element becomes visible. Use silent setting to surpress this warning in production.",method:"The method you called is not defined.",invalidContext:"Context specified does not exist",elementSize:"Sticky element is larger than its container, cannot create sticky."}
vendor: 5,400 bytes, lines 110-120
110,className:{bound:"bound",fixed:"fixed",supported:"native",top:"top",bottom:"bottom"}}}(jQuery,window,document),
111/*!
112 * # Semantic UI 2.4.2 - Transition
113 * http://github.com/semantic-org/semantic-ui/
114 *
115 *
116 * Released under the MIT license
117 * http://opensource.org/licenses/MIT
118 *
119 */
120function($,window,document){"use strict";window=void 0!==window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),$.fn.transition=function(){var returnedValue,$allModules=$(this),moduleSelector=$allModules.selector||"",time=(new Date).getTime(),performance=[],moduleArguments=arguments,query=moduleArguments[0],queryArguments=[].slice.call(arguments,1),methodInvoked="string"==typeof query;window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame;return $allModules.each((function(index){var settings,instance,error,className,metadata,animationEnd,moduleNamespace,eventNamespace,module,$module=$(this),element=this;module={initialize:function(){settings=module.get.settings.apply(element,moduleArguments),className=settings.className,error=settings.error,metadata=settings.metadata,eventNamespace="."+settings.namespace,moduleNamespace="module-"+settings.namespace,instance=$module.data(moduleNamespace)||module,animationEnd=module.get.animationEndEvent(),methodInvoked&&(methodInvoked=module.invoke(query)),!1===methodInvoked&&(module.verbose("Converted arguments into settings object",settings),settings.interval?module.delay(settings.animate):module.animate(),module.instantiate())},instantiate:function(){module.verbose("Storing instance of module",module),instance=module,$module.data(moduleNamespace,instance)},destroy:function(){module.verbose("Destroying previous module for",element),$module.removeData(moduleNamespace)},refresh:function(){module.verbose("Refreshing display type on next animation"),delete module.displayType},forceRepaint:function(){module.verbose("Forcing element repaint");var $parentElement=$module.parent(),$nextElement=$module.next();0===$nextElement.length?$module.detach().appendTo($parentElement):$module.detach().insertBefore($nextElement)},repaint:function(){module.verbose("Repainting element");element.offsetWidth},delay:function(interval){var delay,direction=module.get.animationDirection();direction||(direction=module.can.transition()?module.get.direction():"static"),interval=undefined!==interval?interval:settings.interval,delay="auto"==settings.reverse&&direction==className.outward||1==settings.reverse?($allModules.length-index)*settings.interval:index*settings.interval,module.debug("Delaying animation by",delay),setTimeout(module.animate,delay)},animate:function(overrideSettings){if(settings=overrideSettings||settings,!module.is.supported())return module.error(error.support),!1;if(module.debug("Preparing animation",settings.animation),module.is.animating()){if(settings.queue)return!settings.allowRepeats&&module.has.direction()&&module.is.occurring()&&!0!==module.queuing?module.debug("Animation is currently occurring, preventing queueing same animation",settings.animation):module.queue(settings.animation),!1;if(!settings.allowRepeats&&module.is.occurring())return module.debug("Animation is already occurring, will not execute repeated animation",settings.animation),!1;module.debug("New animation started, completing previous early",settings.animation),instance.complete()}module.can.animate()?module.set.animating(settings.animation):module.error(error.noAnimation,settings.animation,element)},reset:function(){module.debug("Resetting animation to beginning conditions"),module.remove.animationCallbacks(),module.restore.conditions(),module.remove.animating()},queue:function(animation){module.debug("Queueing animation of",animation),module.queuing=!0,$module.one(animationEnd+".queue"+eventNamespace,(function(){module.queuing=!1,module.repaint(),module.animate.apply(this,settings)}))},complete:function(event){module.debug("Animation complete",settings.animation),module.remove.completeCallback(),module.remove.failSafe(),module.is.looping()||(module.is.outward()?(module.verbose("Animation is outward, hiding element"),module.restore.conditions(),module.hide()):module.is.inward()?(module.verbose("Animation is outward, showing element"),module.restore.conditions(),module.show()):(module.verbose("Static animation completed"),module.restore.conditions(),settings.onComplete.call(element)))},force:{visible:function(){var style=$module.attr("style"),userStyle=module.get.userStyle(),displayType=module.get.displayType(),overrideStyle=userStyle+"display: "+displayType+" !important;",emptyStyle=undefined===style||""===style;$module.css("display")!==displayType?(module.verbose("Overriding default display to show element",displayType),$module.attr("style",overrideStyle)):emptyStyle&&$module.removeAttr("style")},hidden:function(){var style=$module.attr("style"),emptyStyle=undefined===style||""===style;"none"===$module.css("display")||module.is.hidden()?emptyStyle&&$module.removeAttr("style"):(module.verbose("Overriding default display to hide element"),$module.css("display","none"))}},has:{direction:function(animation){var hasDirection=!1;return"string"==typeof(animation=animation||settings.animation)&&(animation=animation.split(" "),$.each(animation,(function(index,word){word!==className.inward&&word!==className.out
vendor: 4,291 bytes, line 120
120ward||(hasDirection=!0)}))),hasDirection},inlineDisplay:function(){var style=$module.attr("style")||"";return $.isArray(style.match(/display.*?;/,""))}},set:{animating:function(animation){var animationClass;module.remove.completeCallback(),animation=animation||settings.animation,animationClass=module.get.animationClass(animation),module.save.animation(animationClass),module.force.visible(),module.remove.hidden(),module.remove.direction(),module.start.animation(animationClass)},duration:function(animationName,duration){((duration="number"==typeof(duration=duration||settings.duration)?duration+"ms":duration)||0===duration)&&(module.verbose("Setting animation duration",duration),$module.css({"animation-duration":duration}))},direction:function(direction){(direction=direction||module.get.direction())==className.inward?module.set.inward():module.set.outward()},looping:function(){module.debug("Transition set to loop"),$module.addClass(className.looping)},hidden:function(){$module.addClass(className.transition).addClass(className.hidden)},inward:function(){module.debug("Setting direction to inward"),$module.removeClass(className.outward).addClass(className.inward)},outward:function(){module.debug("Setting direction to outward"),$module.removeClass(className.inward).addClass(className.outward)},visible:function(){$module.addClass(className.transition).addClass(className.visible)}},start:{animation:function(animationClass){animationClass=animationClass||module.get.animationClass(),module.debug("Starting tween",animationClass),$module.addClass(animationClass).one(animationEnd+".complete"+eventNamespace,module.complete),settings.useFailSafe&&module.add.failSafe(),module.set.duration(settings.duration),settings.onStart.call(element)}},save:{animation:function(animation){module.cache||(module.cache={}),module.cache.animation=animation},displayType:function(displayType){"none"!==displayType&&$module.data(metadata.displayType,displayType)},transitionExists:function(animation,exists){$.fn.transition.exists[animation]=exists,module.verbose("Saving existence of transition",animation,exists)}},restore:{conditions:function(){var animation=module.get.currentAnimation();animation&&($module.removeClass(animation),module.verbose("Removing animation class",module.cache)),module.remove.duration()}},add:{failSafe:function(){var duration=module.get.duration();module.timer=setTimeout((function(){$module.triggerHandler(animationEnd)}),duration+settings.failSafeDelay),module.verbose("Adding fail safe timer",module.timer)}},remove:{animating:function(){$module.removeClass(className.animating)},animationCallbacks:function(){module.remove.queueCallback(),module.remove.completeCallback()},queueCallback:function(){$module.off(".queue"+eventNamespace)},completeCallback:function(){$module.off(".complete"+eventNamespace)},display:function(){$module.css("display","")},direction:function(){$module.removeClass(className.inward).removeClass(className.outward)},duration:function(){$module.css("animation-duration","")},failSafe:function(){module.verbose("Removing fail safe timer",module.timer),module.timer&&clearTimeout(module.timer)},hidden:function(){$module.removeClass(className.hidden)},visible:function(){$module.removeClass(className.visible)},looping:function(){module.debug("Transitions are no longer looping"),module.is.looping()&&(module.reset(),$module.removeClass(className.looping))},transition:function(){$module.removeClass(className.visible).removeClass(className.hidden)}},get:{settings:function(animation,duration,onComplete){return"object"==typeof animation?$.extend(!0,{},$.fn.transition.settings,animation):"function"==typeof onComplete?$.extend({},$.fn.transition.settings,{animation:animation,onComplete:onComplete,duration:duration}):"string"==typeof duration||"number"==typeof duration?$.extend({},$.fn.transition.settings,{animation:animation,duration:duration}):"object"==typeof duration?$.extend({},$.fn.transition.settings,duration,{animation:animation}):"function"==typeof duration?$.extend({},$.fn.transition.settings,{animation:animation,onComplete:duration}):$.extend({},$.fn.transition.settings,{animation:animation})},animationClass:function(animation){var animationClass=animation||settings.animation,directionClass=module.can.transition()&&
120!module.has.direction()?module.get.direction()+" ":"";return className.animating+" "+className.transition+" "+directionClass+animationClass},currentAnimation:function(){return!(!module.cache||undefined===module.cache.animation)&&module.cache.animation},currentDirection:function(){return module.is.inward()?className.inward:className.outward},direction:function(){return module.is.hidden()||!module.is.visible()?className.inward:className.outward},animationDirection:function(animation){var direction;return"string"==typeof(animation=animation||settings.animation)&&(animation=animation.split(" "),$.each(animation,(function(index,word){word===className.inward?direction=className.inward:word===className.outward&&(direction=className.outward)}))),direction||!1},duration:function(duration){return!1===(duration=duration||settings.duration)&&(duration=$module.css("animation-duration")||0),"string"==typeof duration?duration.indexOf("ms")>-1?parseFloat(duration):1e3*parseFloat(duration):duration},displayType:function(shouldDetermine){return shouldDetermine=undefined===shouldDetermine||shouldDetermine,settings.displayType?settings.displayType:(shouldDetermine&&undefined===$module.data(metadata.displayType)&&module.can.transition(!0),$module.data(metadata.displayType))},userStyle:function(style){return(style=style||$module.attr("style")||"").replace(/display.*?;/,"")},transitionExists:function(animation){return $.fn.transition.exists[animation]},animationStartEvent:function(){var animation,element=document.createElement("div"),animations={animation:"animationstart",OAnimation:"oAnimationStart",MozAnimation:"mozAnimationStart",WebkitAnimation:"webkitAnimationStart"};for(animation in animations)if(undefined!==element.style[animation])return animations[animation];return!1},animationEndEvent:function(){var animation,element=document.createElement("div"),animations={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(animation in animations)if(undefined!==element.style[animation])return animations[animation];return!1}},can:{transition:function(forced){var elementClass,tagName,$clone,currentAnimation,inAnimation,directionExists,animation=settings.animation,transitionExists=module.get.transitionExists(animation),displayType=module.get.displayType(!1);if(undefined===transitionExists||forced){if(module.verbose("Determining whether animation exists"),elementClass=$module.attr("class"),tagName=$module.prop("tagName"),currentAnimation=($clone=$("<"+tagName+" />").addClass(elementClass).insertAfter($module)).addClass(animation).removeClass(className.inward).removeClass(className.outward).addClass(className.animating).addClass(className.transition).css("animationName"),inAnimation=$clone.addClass(className.inward).hide().show().css("animationName"),displayType||(displayType=$clone.attr("class",elementClass).removeAttr("style").removeClass(className.hidden).removeClass(className.visible).show().css("display"),module.verbose("Determining final display state",displayType),module.save.displayType(displayType)),$clone.remove(),currentAnimation!=inAnimation)module.debug("Direction exists for animation",animation),directionExists=!0;else{if("none"==currentAnimation||!currentAnimation)return void module.debug("No animation defined in css",animation);module.debug("Static animation found",animation,displayType),directionExists=!1}module.save.transitionExists(animation,directionExists)}return undefined!==transitionExists?transitionExists:directionExists},animate:function(){return undefined!==module.can.transition()}},is:{animating:function(){return $module.hasClass(className.animating)},inward:function(){return $module.hasClass(className.inward)},outward:function(){return $module.hasClass(className.outward)},looping:function(){return $module.hasClass(className.looping)},occurring:function(animation){return animation="."+(animation=animation||settings.animation).replace(" ","."),$module.filter(animation).length>0},visible:function(){return $module.is(":visible")},hidden:function(){return"hidden"===$module.css("visibility")},supported:function(){return!1!==animationEnd}},hide:function(){module.verbose("Hiding element"),module.is.animating()&&module.reset(),element.blur(),module.remove.display(),module.remove.visible(),module.set.hidden(),module.force.hidden(),settings.onHide.call(element),settings.onComplete.call(element)},show:function(display){module.verbose("Showing element",display),module.remove.hidden(),module.set.visible(),module.force.visible(),settings.onShow.call(element),settings.onComplete.call(element)},toggle:function(){module.is.visible()?module.hide():module.show()},stop:function(){module.debug("Stopping current animation"),$module.triggerHandler(animationEnd)},stopAll:function(){module.debug("Stopping all animation"),module.remove.queueCallback(),$module.triggerHandler(animationEnd)},clear:{queue:function(){module.debug("Clearing animation queue"),module.remove.queueCallback()}},enable:function(){module.verbose("Starting animation"),$module.removeClass(className.disabled)},disable:function(){module.debug("Stopping animation"),$module.addClass(className.disabled)},setting:function(name,value){if(module.debug("Changing setting",name,value),$.isPlainObject(name))$.extend(!0,settings,name);else{if(undefined===value)return settings[name];$.isPlainObject(settings[name])?$.extend(!0,settings[name],value):settings[name]=value}},internal:function(name,value){if($.isPlainObject(name))$.extend(!0,module,name);else{if(undefined===value)return module[name];module[name]=value}}
120,debug:function(){!settings.silent&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.debug=Function.prototype.bind.call(console.info,console,settings.name+":"),module.debug.apply(console,arguments)))},verbose:function(){!settings.silent&&settings.verbose&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.verbose=Function.prototype.bind.call(console.info,console,settings.name+":"),module.verbose.apply(console,arguments)))},error:function(){settings.silent||(module.error=Function.prototype.bind.call(console.error,console,settings.name+":"),module.error.apply(console,arguments))},performance:{log:function(message){var currentTime,executionTime;settings.performance&&(executionTime=(currentTime=(new Date).getTime())-(time||currentTime),time=currentTime,performance.push({Name:message[0],Arguments:[].slice.call(message,1)||"",Element:element,"Execution Time":executionTime})),clearTimeout(module.performance.timer),module.performance.timer=setTimeout(module.performance.display,500)},display:function(){var title=settings.name+":",totalTime=0;time=!1,clearTimeout(module.performance.timer),$.each(performance,(function(index,data){totalTime+=data["Execution Time"]})),title+=" "+totalTime+"ms",moduleSelector&&(title+=" '"+moduleSelector+"'"),$allModules.length>1&&(title+=" ("+$allModules.length+")"),(undefined!==console.group||undefined!==console.table)&&performance.length>0&&(console.groupCollapsed(title),console.table?console.table(performance):$.each(performance,(function(index,data){console.log(data.Name+": "+data["Execution Time"]+"ms")})),console.groupEnd()),performance=[]}},invoke:function(query,passedArguments,context){var maxDepth,found,response,object=instance;return passedArguments=passedArguments||queryArguments,context=element||context,"string"==typeof query&&undefined!==object&&(query=query.split(/[\. ]/),maxDepth=query.length-1,$.each(query,(function(depth,value){var camelCaseValue=depth!=maxDepth?value+query[depth+1].charAt(0).toUpperCase()+query[depth+1].slice(1):query;if($.isPlainObject(object[camelCaseValue])&&depth!=maxDepth)object=object[camelCaseValue];else{if(undefined!==object[camelCaseValue])return found=object[camelCaseValue],!1;if(!$.isPlainObject(object[value])||depth==maxDepth)return undefined!==object[value]&&(found=object[value],!1);object=object[value]}}))),$.isFunction(found)?response=found.apply(context,passedArguments):undefined!==found&&(response=found),$.isArray(returnedValue)?returnedValue.push(response):undefined!==returnedValue?returnedValue=[returnedValue,response]:undefined!==response&&(returnedValue=response),undefined!==found&&found}},module.initialize()})),undefined!==returnedValue?returnedValue:this},$.fn.transition.exists={},$.fn.transition.settings={name:"Transition",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"transition",interval:0,reverse:"auto",onStart:function(){},onComplete:function(){},onShow:function(){},onHide:function(){},useFailSafe:!0,failSafeDelay:100,allowRepeats:!1,displayType:!1,animation:"fade",duration:!1,queue:!0,metadata:{displayType:"display"},className:{animating:"animating",disabled:"disabled",hidden:"hidden",inward:"in",loading:"loading",looping:"looping",outward:"out",transition:"transition",visible:"visible"},error:{noAnimation:"Element is no longer attached to DOM. Unable to animate.  Use silent setting to surpress this warning in production.",repeated:"That animation is already occurring, cancelling repeated animation",method:"The method you called is not defined",support:"This browser does not support CSS animations"}}}(jQuery,window,document),
121/*!
122 * # Semantic UI 2.4.2 - Tab
123 * http://github.com/semantic-org/semantic-ui/
124 *
125 *
126 * Released under the MIT license
127 * http://opensource.org/licenses/MIT
128 *
129 */
130function($,window,document){"use strict";window=void 0!==window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),$.fn.tab=function(parameters){var returnedValue,$allModules=$.isFunction(this)?$(window):$(this),moduleSelector=$allModules.selector||"",time=(new Date).getTime(),performance=[],query=arguments[0],methodInvoked="string"==typeof query,queryArguments=[].slice.call(arguments,1
vendor: 13,089 bytes, line 130
130),initializedHistory=!1;return $allModules.each((function(){var $context,$tabs,activeTabPath,parameterArray,module,historyEvent,settings=$.isPlainObject(parameters)?$.extend(!0,{},$.fn.tab.settings,parameters):$.extend({},$.fn.tab.settings),className=settings.className,metadata=settings.metadata,selector=settings.selector,error=settings.error,eventNamespace="."+settings.namespace,moduleNamespace="module-"+settings.namespace,$module=$(this),cache={},firstLoad=!0,recursionDepth=0,element=this,instance=$module.data(moduleNamespace);module={initialize:function(){module.debug("Initializing tab menu item",$module),module.fix.callbacks(),module.determineTabs(),module.debug("Determining tabs",settings.context,$tabs),settings.auto&&module.set.auto(),module.bind.events(),settings.history&&!initializedHistory&&(module.initializeHistory(),initializedHistory=!0),module.instantiate()},instantiate:function(){module.verbose("Storing instance of module",module),instance=module,$module.data(moduleNamespace,module)},destroy:function(){module.debug("Destroying tabs",$module),$module.removeData(moduleNamespace).off(eventNamespace)},bind:{events:function(){$.isWindow(element)||(module.debug("Attaching tab activation events to element",$module),$module.on("click"+eventNamespace,module.event.click))}},determineTabs:function(){var $reference;"parent"===settings.context?($module.closest(selector.ui).length>0?($reference=$module.closest(selector.ui),module.verbose("Using closest UI element as parent",$reference)):$reference=$module,$context=$reference.parent(),module.verbose("Determined parent element for creating context",$context)):settings.context?($context=$(settings.context),module.verbose("Using selector for tab context",settings.context,$context)):$context=$("body"),settings.childrenOnly?($tabs=$context.children(selector.tabs),module.debug("Searching tab context children for tabs",$context,$tabs)):($tabs=$context.find(selector.tabs),module.debug("Searching tab context for tabs",$context,$tabs))},fix:{callbacks:function(){$.isPlainObject(parameters)&&(parameters.onTabLoad||parameters.onTabInit)&&(parameters.onTabLoad&&(parameters.onLoad=parameters.onTabLoad,delete parameters.onTabLoad,module.error(error.legacyLoad,parameters.onLoad)),parameters.onTabInit&&(parameters.onFirstLoad=parameters.onTabInit,delete parameters.onTabInit,module.error(error.legacyInit,parameters.onFirstLoad)),settings=$.extend(!0,{},$.fn.tab.settings,parameters))}},initializeHistory:function(){if(module.debug("Initializing page state"),undefined===$.address)return module.error(error.state),!1;if("state"==settings.historyType){if(module.debug("Using HTML5 to manage state"),!1===settings.path)return module.error(error.path),!1;$.address.history(!0).state(settings.path)}$.address.bind("change",module.event.history.change)},event:{click:function(event){var tabPath=$(this).data(metadata.tab);undefined!==tabPath?(settings.history?(module.verbose("Updating page state",event),$.address.value(tabPath)):(module.verbose("Changing tab",event),module.changeTab(tabPath)),event.preventDefault()):module.debug("No tab specified")},history:{change:function(event){var tabPath=event.pathNames.join("/")||module.get.initialPath(),pageTitle=settings.templates.determineTitle(tabPath)||!1;module.performance.display(),module.debug("History change event",tabPath,event),historyEvent=event,undefined!==tabPath&&module.changeTab(tabPath),pageTitle&&$.address.title(pageTitle)}}},refresh:function(){activeTabPath&&(module.debug("Refreshing tab",activeTabPath),module.changeTab(activeTabPath))},cache:{read:function(cacheKey){return undefined!==cacheKey&&cache[cacheKey]},add:function(cacheKey,content){cacheKey=cacheKey||activeTabPath,module.debug("Adding cached content for",cacheKey),cache[cacheKey]=content},remove:function(cacheKey){cacheKey=cacheKey||activeTabPath,module.debug("Removing cached content for",cacheKey),delete cache[cacheKey]}},set:{auto:function(){var url="string"==typeof settings.path?settings.path.replace(/\/$/,"")+"/{$tab}":"/{$tab}";module.verbose("Setting up automatic tab retrieval from server",url),$.isPlainObject(settings.apiSettings)?settings.apiSettings.url=url:settings.apiSettings={url:url}},loading:function(tabPath){var $tab=module.get.tabElement(tabPath);$tab.hasClass(className.loading)||(module.verbose("Setting loading state for",$tab),$tab.addClass(className.loading).siblings($tabs).removeClass(className.active+" "+className.loading),$tab.length>0&&settings.onRequest.call($tab[0],tabPath))},state:function(state){$.address.value(state)}},changeTab:function(tabPath){var shouldIgnoreLoad=window.history&&window.history.pushState&&settings.ignoreFirstLoad&&firstLoad,remoteContent=settings.auto||$.isPlainObject(settings.apiSettings),pathArray=remoteContent&&!shouldIgnoreLoad?module.utilities.pathToArray(tabPath):module.get.defaultPathArray(tabPath);tabPath=module.utilities.arrayToPath(pathArray),$.each(pathArray,(function(index,tab){var $anchor,nextPathArray,nextPath,isLastTab,currentPathArray=pathArray.slice(0,index+1),currentPath=module.utilities.arrayToPath(currentPathArray),isTab=module.is.tab(currentPath),isLastIndex=index+1==pathArray.length,$tab=module.get.tabElement(currentPath);if(module.verbose("Looking for tab",tab),isTab){if(module.verbose("Tab was found",tab),activeTabPath=currentPath,parameterArray=module.utilities.filterArray(pathArray,currentPathArray),isLastIndex?isLastTab=!0:(nextPathArray=pathArray.slice(0,index+2),nextPath=module.utilities.arrayToPath(nextPathArray),(isLastTab=!module.is.tab(nextPath))&&module.verbose("Tab parameters found",nextPathArray)),isLastTab&&remoteContent)return shouldIgnoreLoad?(module.debug("Ignoring remote content on first tab load",currentPath),firstLoad=!1,module.cache.add(tabPath,$tab.html()),module.activate.all(currentPath),settings.onFirstLoad.call($tab[0],currentPath,parameterArray,historyEvent),settings.onLoad.call($tab[0],currentPath,parameterArray,historyEvent)):(module.activate.navigation(currentPath),module.fetch.content(currentPath,tabPath)),!1;module.debug("Opened local tab",currentPath),module.activate.all(currentPath),module.cache.read(currentPath)||(module.cache.add(currentPath,!0),module.debug("First time tab loaded calling tab init"),settings.onFirstLoad.call($tab[0],currentPath,parameterArray,historyEvent)),settings.onLoad.call($tab[0],currentPath,parameterArray,historyEvent)}else{if(-1!=tabPath.search("/")||""===tabPath)return module.error(error.missingTab,$module,$context,currentPath),!1;if(currentPath=($anchor=$("#"+tabPath+', a[name="'+tabPath+'"]')).closest("[data-tab]").data(metadata.tab),$tab=module.get.tabElement(currentPath),$anchor&&$anchor.length>0&&currentPath)return module.debug("Anchor link used, opening parent tab",$tab,$anchor),$tab.hasClass(className.active)||setTimeout((function(){module.scrollTo($anchor)}),0),module.activate.all(currentPath),module.cache.read(currentPath)||(module.cache.add(currentPath,!0),module.debug("First time tab loaded calling tab init"),settings.onFirstLoad.call($tab[0],currentPath,parameterArray,historyEvent)),settings.onLoad.call($tab[0],currentPath,parameterArray,historyEvent),!1}}))},scrollTo:function($element){var scrollOffset=!!($element&&$element.length>0)&&$element.offset().top;!1!==scrollOffset&&(module.debug("Forcing scroll to an in-page link in a hidden tab",scrollOffset,$element),$(document).scrollTop(scrollOffset))},update:{content:function(tabPath,html,evaluateScripts){var $tab=module.get.tabElement(tabPath),tab=$tab[0];evaluateScripts=undefined!==evaluateScripts?evaluateScripts:settings.evaluateScripts,"string"==typeof settings.cacheType&&"dom"==settings.cacheType.toLowerCase()&&"string"!=typeof html?$tab.empty().append($(html).clone(!0)):evaluateScripts?(module.debug("Updating HTML and evaluating inline scripts",tabPath,html),$tab.html(html)):(module.debug("Updating HTML",tabPath,html),tab.innerHTML=html)}},fetch:{content:function(tabPath,fullTabPath){var requestSettings,cachedContent,$tab=module.get.tabElement(tabPath),apiSettings={dataType:"html",encodeParameters:!1,on:"now",cache:settings.alwaysRefresh,headers:{"X-Remote":!0},onSuccess:function(response){"response"==settings.cacheType&&module.cache.add(fullTabPath,response),module.update.content(tabPath,response),tabPath==activeTabPath?(module.debug("Content loaded",tabPath),module.activate.tab(tabPath)):module.debug("Content loaded in background",tabPath),settings.onFirstLoad.call($tab[0],tabPath,parameterArray,historyEvent),settings.onLoad.call($tab[0],tabPath,parameterArray,historyEvent),settings.loadOnce?module.cache.add(fullTabPath,!0):"string"==typeof settings.cacheType&&"dom"==settings.cacheType.toLowerCase()&&$tab.children().length>0?setTimeout((function(){var $clone=$tab.children().clone(!0);$clone=$clone.not("script"),module.cache.add(fullTabPath,$clone)}),0):module.cache.add(fullTabPath,$tab.html())},urlData:{tab:fullTabPath}},request=$tab.api("get request")||!1,existingRequest=request&&"pending"===request.state();fullTabPath=fullTabPath||tabPath,cachedContent=module.cache.read(fullTabPath),settings.cache&&cachedContent?(module.activate.tab(tabPath),module.debug("Adding cached content",fullTabPath),settings.loadOnce||("once"==settings.evaluateScripts?module.update.content(tabPath,cachedContent,!1):module.update.content(tabPath,cachedContent)),settings.onLoad.call($tab[0],tabPath,parameterArray,historyEvent)):existingRequest?(module.set.loading(tabPath),module.debug("Content is already loading",fullTabPath)):undefined!==$.api?(requestSettings=$.extend(!0,{},settings.apiSettings,apiSettings),module.debug("Retrieving remote content",fullTabPath,requestSettings),module.set.loading(tabPath),$tab.api(requestSettings)):module.error(error.api)}},activate:{all:function(tabPath){module.activate.tab(tabPath),module.activate.navigation(tabPath)},tab:function(tabPath){var $tab=module.get.tabElement(tabPath),$deactiveTabs="siblings"==settings.deactivate?$tab.siblings($tabs):$tabs.not($tab),isActive=$tab.hasClass(className.active);module.verbose("Showing tab content for",$tab),isActive||($tab.addClass(className.active),$deactiveTabs.removeClass(className.active+" "+className.loading),$tab.length>0&&settings.onVisible.call($tab[0],tabPath))},navigation:function(tabPath){var $navigation=module.get.navElement(tabPath),$deactiveNavigation="siblings"==settings.deactivate?$navigation.siblings($allModules):$allModules.not($navigation),isActive=$navigation.hasClass(className.active);module.verbose("Activating tab navigation for",$navigation,tabPath),isActive||($navigation.addClass(className.active),$deactiveNavigation.removeClass(className.active+" "+className.loading))}},deactivate:{all:function(){module.deactivate.navigation(),module.deactivate.tabs()},navigation:function(){$allModules.removeClass(className.active)},tabs:function(){$tabs.removeClass(className.active+" "+className.loading)}},is:{tab:function(tabName){return undefined!==tabName&&module.get.tabElement(tabName).length>0}},get:{initialPath:function(){return $allModules.eq(0).data(metadata.tab)||$tabs.eq(0).data(metadata.tab)},path:function(){return $.address.value()},defaultPathArray:function(tabPath){return module.utilities.pathToArray(module.get.defaultPath(tabPath))},defaultPath:function(tabPath){var defaultTab=$allModules.filter("[data-"+metadata.tab+'^="'+tabPath+'/"]').eq(0).data(metadata.tab)||!1;if(defaultTab){if(module.debug("Found default tab",defaultTab),recursionDepth<settings.maxDepth)return recursionDepth++,module.get.defaultPath(defaultTab);module.error(error.recursion)}else module.debug("No default tabs found for",tabPath,$tabs);return recursionDepth=0,tabPath},navElement:function(tabPath){return tabPath=tabPath||activeTabPath,$allModules.filter("[data-"+metadata.tab+'="'+tabPath+'"]')},tabElement:function(tabPath){var $fullPathTab,$simplePathTab,tabPathArray,lastTab;return tabPath=tabPath||activeTabPath,tabPathArray=module.utilities.pathToArray(tabPath),lastTab=module.utilities.last(tabPathArray),$fullPathTab=$tabs.filter("[data-"+metadata.tab+'="'+tabPath+'"]'),$simplePathTab=$tabs.filter("[data-"+metadata.tab+'="'+lastTab+'"]'),$fullPathTab.length>0?$fullPathTab:$simplePathTab},tab:function(){return activeTabPath}},utilities:{filterArray:function(keepArray,removeArray){return $.grep(keepArray,(function(keepValue){return-1==$.inArray(keepValue,removeArray)}))},last:function(array){return!!$.isArray(array)&&array[array.length-1]},pathToArray:function(pathName){return undefined===pathName&&(pathName=activeTabPath),"string"==typeof pathName?pathName.split("/"):[pathName]},arrayToPath:function(pathArray){return!!$.isArray(pathArray)&&pathArray.join("/")}},setting:function(name,value){if(module.debug("Changing setting",name,value),$.isPlainObject(name))$.extend(!0,settings,name);else{if(undefined===value)return settings[name];$.isPlainObject(settings[name])?$.extend(!0,settings[name],value):settings[name]=value}},internal:function(name,value){if($.isPlainObject(name))$.extend(!0,module,name);else{if(undefined===value)return module[name];module[name]=value}}
130,debug:function(){!settings.silent&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.debug=Function.prototype.bind.call(console.info,console,settings.name+":"),module.debug.apply(console,arguments)))},verbose:function(){!settings.silent&&settings.verbose&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.verbose=Function.prototype.bind.call(console.info,console,settings.name+":"),module.verbose.apply(console,arguments)))},error:function(){settings.silent||(module.error=Function.prototype.bind.call(console.error,console,settings.name+":"),module.error.apply(console,arguments))},performance:{log:function(message){var currentTime,executionTime;settings.performance&&(executionTime=(currentTime=(new Date).getTime())-(time||currentTime),time=currentTime,performance.push({Name:message[0],Arguments:[].slice.call(message,1)||"",Element:element,"Execution Time":executionTime})),clearTimeout(module.performance.timer),module.performance.timer=setTimeout(module.performance.display,500)},display:function(){var title=settings.name+":",totalTime=0;time=!1,clearTimeout(module.performance.timer),$.each(performance,(function(index,data){totalTime+=data["Execution Time"]})),title+=" "+totalTime+"ms",moduleSelector&&(title+=" '"+moduleSelector+"'"),(undefined!==console.group||undefined!==console.table)&&performance.length>0&&(console.groupCollapsed(title),console.table?console.table(performance):$.each(performance,(function(index,data){console.log(data.Name+": "+data["Execution Time"]+"ms")})),console.groupEnd()),performance=[]}},invoke:function(query,passedArguments,context){var maxDepth,found,response,object=instance;return passedArguments=passedArguments||queryArguments,context=element||context,"string"==typeof query&&undefined!==object&&(query=query.split(/[\. ]/),maxDepth=query.length-1,$.each(query,(function(depth,value){var camelCaseValue=depth!=maxDepth?value+query[depth+1].charAt(0).toUpperCase()+query[depth+1].slice(1):query;if($.isPlainObject(object[camelCaseValue])&&depth!=maxDepth)object=object[camelCaseValue];else{if(undefined!==object[camelCaseValue])return found=object[camelCaseValue],!1;if(!$.isPlainObject(object[value])||depth==maxDepth)return undefined!==object[value]?(found=object[value],!1):(module.error(error.method,query),!1);object=object[value]}}))),$.isFunction(found)?response=found.apply(context,passedArguments):undefined!==found&&(response=found),$.isArray(returnedValue)?returnedValue.push(response):undefined!==returnedValue?returnedValue=[returnedValue,response]:undefined!==response&&(returnedValue=response),found}},methodInvoked?(undefined===instance&&module.initialize(),module.invoke(query)):(undefined!==instance&&instance.invoke("destroy"),module.initialize())})),undefined!==returnedValue?returnedValue:this},$.tab=function(){$(window).tab.apply(this,arguments)},$.fn.tab.settings={name:"Tab",namespace:"tab",silent:!1,debug:!1,verbose:!1,performance:!0,auto:!1,history:!1,historyType:"hash",path:!1,context:!1,childrenOnly:!1,maxDepth:25,deactivate:"siblings",alwaysRefresh:!1,cache:!0,loadOnce:!1,cacheType:"response",ignoreFirstLoad:!1,apiSettings:!1,evaluateScripts:"once",onFirstLoad:function(tabPath,parameterArray,historyEvent){},onLoad:function(tabPath,parameterArray,historyEvent){},onVisible:function(tabPath,parameterArray,historyEvent){},onRequest:function(tabPath,parameterArray,historyEvent){},templates:{determineTitle:function(tabArray){}},error:{api:"You attempted to load content without API module",method:"The method you called is not defined",missingTab:"Activated tab cannot be found. Tabs are case-sensitive.",noContent:"The tab you specified is missing a content url.",path:"History enabled, but no path was specified",recursion:"Max recursive depth reached",legacyInit:"onTabInit has been renamed to onFirstLoad in 2.0, please adjust your code.",legacyLoad:"onTabLoad has been renamed to onLoad in 2.0. Please adjust your code",state:"History requires Asual's Address library <https://github.com/asual/jquery-address>"},metadata:{tab:"tab",loaded:"loaded",promise:"promise"},className:{loading:"loading",active:"active"},selector:{tabs:".ui.tab",ui:".ui"}}}(jQuery,window,document),
131/*!
132 * # Semantic UI 2.4.2 - API
133 * http://github.com/semantic-org/semantic-ui/
134 *
135 *
136 * Released under the MIT license
137 * http://opensource.org/licenses/MIT
138 *
139 */
140function($,window){"use strict";window=void 0!==window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();$.api=$.fn.api=function(parameters){var returnedValue,$allModules=$.isFunction(this)?$(window):$(this),moduleSelector=$allModules.selector||"",time=(new Date).getTime(),performance=[],query=arguments[0],methodInvoked="string"==typeof query,queryArguments=[].slice.call(arguments,1
140);return $allModules.each((function(){var ajaxSettings,requestSettings,url,requestStartTime,module,settings=$.isPlainObject(parameters)?$.extend(!0,{},$.fn.api.settings,parameters):$.extend({},$.fn.api.settings),namespace=settings.namespace,metadata=settings.metadata,selector=settings.selector,error=settings.error,className=settings.className,eventNamespace="."+namespace,moduleNamespace="module-"+namespace,$module=$(this),$form=$module.closest(selector.form),$context=settings.stateContext?$(settings.stateContext):$module,element=this,context=$context[0],instance=$module.data(moduleNamespace);module={initialize:function(){methodInvoked||module.bind.events(),module.instantiate()},instantiate:function(){module.verbose("Storing instance of module",module),instance=module,$module.data(moduleNamespace,instance)},destroy:function(){module.verbose("Destroying previous module for",element),$module.removeData(moduleNamespace).off(eventNamespace)},bind:{events:function(){var triggerEvent=module.get.event();triggerEvent?(module.verbose("Attaching API events to element",triggerEvent),$module.on(triggerEvent+eventNamespace,module.event.trigger)):"now"==settings.on&&(module.debug("Querying API endpoint immediately"),module.query())}},decode:{json:function(response){if(undefined!==response&&"string"==typeof response)try{response=JSON.parse(response)}catch(e){}return response}},read:{cachedResponse:function(url){var response;if(undefined!==window.Storage)return response=sessionStorage.getItem(url),module.debug("Using cached response",url,response),response=module.decode.json(response);module.error(error.noStorage)}},write:{cachedResponse:function(url,response){response&&""===response?module.debug("Response empty, not caching",response):undefined!==window.Storage?($.isPlainObject(response)&&(response=JSON.stringify(response)),sessionStorage.setItem(url,response),module.verbose("Storing cached response for url",url,response)):module.error(error.noStorage)}},query:function(){if(module.is.disabled())module.debug("Element is disabled API request aborted");else{if(module.is.loading()){if(!settings.interruptRequests)return void module.debug("Cancelling request, previous request is still pending");module.debug("Interrupting previous request"),module.abort()}if(settings.defaultData&&$.extend(!0,settings.urlData,module.get.defaultData()),settings.serializeForm&&(settings.data=module.add.formData(settings.data)),!1===(requestSettings=module.get.settings()))return module.cancelled=!0,void module.error(error.beforeSend);if(module.cancelled=!1,(url=module.get.templatedURL())||module.is.mocked()){if((url=module.add.urlData(url))||module.is.mocked()){if(requestSettings.url=settings.base+url,ajaxSettings=$.extend(!0,{},settings,{type:settings.method||settings.type,data:undefined,url:settings.base+url,beforeSend:settings.beforeXHR,success:function(){},failure:function(){},complete:function(){}}),module.debug("Querying URL",ajaxSettings.url),module.verbose("Using AJAX settings",ajaxSettings),"local"===settings.cache&&module.read.cachedResponse(url))return module.debug("Response returned from local cache"),module.request=module.create.request(),void module.request.resolveWith(context,[module.read.cachedResponse(url)]);settings.throttle?settings.throttleFirstRequest||module.timer?(module.debug("Throttling request",settings.throttle),clearTimeout(module.timer),module.timer=setTimeout((function(){module.timer&&delete module.timer,module.debug("Sending throttled request",undefined,ajaxSettings.method),module.send.request()}),settings.throttle)):(module.debug("Sending request",undefined,ajaxSettings.method),module.send.request(),module.timer=setTimeout((function(){}),settings.throttle)):(module.debug("Sending request",undefined,ajaxSettings.method),module.send.request())}}else module.error(error.missingURL)}},should:{removeError:function(){return!0===settings.hideError||"auto"===settings.hideError&&!module.is.form()}},is:{disabled:function(){return $module.filter(selector.disabled).length>0},expectingJSON:function(){return"json"===settings.dataType||"jsonp"===settings.dataType}
140,form:function(){return $module.is("form")||$context.is("form")},mocked:function(){return settings.mockResponse||settings.mockResponseAsync||settings.response||settings.responseAsync},input:function(){return $module.is("input")},loading:function(){return!!module.request&&"pending"==module.request.state()},abortedRequest:function(xhr){return xhr&&undefined!==xhr.readyState&&0===xhr.readyState?(module.verbose("XHR request determined to be aborted"),!0):(module.verbose("XHR request was not aborted"),!1)},validResponse:function(response){return module.is.expectingJSON()&&$.isFunction(settings.successTest)?(module.debug("Checking JSON returned success",settings.successTest,response),settings.successTest(response)?(module.debug("Response passed success test",response),!0):(module.debug("Response failed success test",response),!1)):(module.verbose("Response is not JSON, skipping validation",settings.successTest,response),!0)}},was:{cancelled:function(){return module.cancelled||!1},succesful:function(){return module.request&&"resolved"==module.request.state()},failure:function(){return module.request&&"rejected"==module.request.state()},complete:function(){return module.request&&("resolved"==module.request.state()||"rejected"==module.request.state())}},add:{urlData:function(url,urlData){var requiredVariables,optionalVariables;return url&&(requiredVariables=url.match(settings.regExp.required),optionalVariables=url.match(settings.regExp.optional),urlData=urlData||settings.urlData,requiredVariables&&(module.debug("Looking for required URL variables",requiredVariables),$.each(requiredVariables,(function(index,templatedString){var variable=-1!==templatedString.indexOf("$")?templatedString.substr(2,templatedString.length-3):templatedString.substr(1,templatedString.length-2),value=$.isPlainObject(urlData)&&undefined!==urlData[variable]?urlData[variable]:undefined!==$module.data(variable)?$module.data(variable):undefined!==$context.data(variable)?$context.data(variable):urlData[variable];if(undefined===value)return module.error(error.requiredParameter,variable,url),url=!1,!1;module.verbose("Found required variable",variable,value),value=settings.encodeParameters?module.get.urlEncodedValue(value):value,url=url.replace(templatedString,value)}))),optionalVariables&&(module.debug("Looking for optional URL variables",requiredVariables),$.each(optionalVariables,(function(index,templatedString){var variable=-1!==templatedString.indexOf("$")?templatedString.substr(3,templatedString.length-4):templatedString.substr(2,templatedString.length-3),value=$.isPlainObject(urlData)&&undefined!==urlData[variable]?urlData[variable]:undefined!==$module.data(variable)?$module.data(variable):undefined!==$context.data(variable)?$context.data(variable):urlData[variable];undefined!==value?(module.verbose("Optional variable Found",variable,value),url=url.replace(templatedString,value)):(module.verbose("Optional variable not found",variable),url=-1!==url.indexOf("/"+templatedString)?url.replace("/"+templatedString,""):url.replace(templatedString,""))})))),url},formData:function(data){var canSerialize=undefined!==$.fn.serializeObject,formData=canSerialize?$form.serializeObject():$form.serialize();return data=data||settings.data,$.isPlainObject(data)?canSerialize?(module.debug("Extending existing data with form data",data,formData),data=$.extend(!0,{},data,formData)):(module.error(error.missingSerialize),module.debug("Cant extend data. Replacing data with form data",data,formData),data=formData):(module.debug("Adding form data",formData),data=formData),data}},send:{request:function(){module.set.loading(),module.request=module.create.request(),module.is.mocked()?module.mockedXHR=module.create.mockedXHR():module.xhr=module.create.xhr(),settings.onRequest.call(context,module.request,module.xhr)}},event:{trigger:function(event){module.query(),"submit"!=event.type&&"click"!=event.type||event.preventDefault()},xhr:{always:function(){},done:function(response,textStatus,xhr){var context=this,elapsedTime=(new Date).getTime()-requestStartTime,timeLeft=settings.loadingDuration-elapsedTime,translatedResponse=!!$.isFunction(settings.onResponse)&&(module.is.expectingJSON()?settings.onResponse.call(context,$.extend(!0,{},response)):settings.onResponse.call(context,response));timeLeft=timeLeft>0?timeLeft:0,translatedResponse&&(module.debug("Modified API response in onResponse callback",settings.onResponse,translatedResponse,response),response=translatedResponse),timeLeft>0&&module.debug("Response completed early delaying state change by",timeLeft),setTimeout((function(){module.is.validResponse(response)?module.request.resolveWith(context,[response,xhr]):module.request.rejectWith(context,[xhr,"invali
140d"])}),timeLeft)},fail:function(xhr,status,httpMessage){var context=this,elapsedTime=(new Date).getTime()-requestStartTime,timeLeft=settings.loadingDuration-elapsedTime;(timeLeft=timeLeft>0?timeLeft:0)>0&&module.debug("Response completed early delaying state change by",timeLeft),setTimeout((function(){module.is.abortedRequest(xhr)?module.request.rejectWith(context,[xhr,"aborted",httpMessage]):module.request.rejectWith(context,[xhr,"error",status,httpMessage])}),timeLeft)}},request:{done:function(response,xhr){module.debug("Successful API Response",response),"local"===settings.cache&&url&&(module.write.cachedResponse(url,response),module.debug("Saving server response locally",module.cache)),settings.onSuccess.call(context,response,$module,xhr)},complete:function(firstParameter,secondParameter){var xhr,response;module.was.succesful()?(response=firstParameter,xhr=secondParameter):(xhr=firstParameter,response=module.get.responseFromXHR(xhr)),module.remove.loading(),settings.onComplete.call(context,response,$module,xhr)},fail:function(xhr,status,httpMessage){var response=module.get.responseFromXHR(xhr),errorMessage=module.get.errorFromRequest(response,status,httpMessage);if("aborted"==status)return module.debug("XHR Aborted (Most likely caused by page navigation or CORS Policy)",status,httpMessage),settings.onAbort.call(context,status,$module,xhr),!0;"invalid"==status?module.debug("JSON did not pass success test. A server-side error has most likely occurred",response):"error"==status&&undefined!==xhr&&(module.debug("XHR produced a server error",status,httpMessage),200!=xhr.status&&undefined!==httpMessage&&""!==httpMessage&&module.error(error.statusMessage+httpMessage,ajaxSettings.url),settings.onError.call(context,errorMessage,$module,xhr)),settings.errorDuration&&"aborted"!==status&&(module.debug("Adding error state"),module.set.error(),module.should.removeError()&&setTimeout(module.remove.error,settings.errorDuration)),module.debug("API Request failed",errorMessage,xhr),settings.onFailure.call(context,response,$module,xhr)}}},create:{request:function(){return $.Deferred().always(module.event.request.complete).done(module.event.request.done).fail(module.event.request.fail)},mockedXHR:function(){var asyncCallback,response,mockedXHR,responder=settings.mockResponse||settings.response,asyncResponder=settings.mockResponseAsync||settings.responseAsync;return mockedXHR=$.Deferred().always(module.event.xhr.complete).done(module.event.xhr.done).fail(module.event.xhr.fail),responder?($.isFunction(responder)?(module.debug("Using specified synchronous callback",responder),response=responder.call(context,requestSettings)):(module.debug("Using settings specified response",responder),response=responder),mockedXHR.resolveWith(context,[response,false,{responseText:response}])):$.isFunction(asyncResponder)&&(asyncCallback=function(response){module.debug("Async callback returned response",response),response?mockedXHR.resolveWith(context,[response,false,{responseText:response}]):mockedXHR.rejectWith(context,[{responseText:response},false,false])},module.debug("Using specified async response callback",asyncResponder),asyncResponder.call(context,requestSettings,asyncCallback)),mockedXHR},xhr:function(){var xhr;return xhr=$.ajax(ajaxSettings).always(module.event.xhr.always).done(module.event.xhr.done).fail(module.event.xhr.fail),module.verbose("Created server request",xhr,ajaxSettings),xhr}},set:{error:function(){module.verbose("Adding error state to element",$context),$context.addClass(className.error)},loading:function(){module.verbose("Adding loading state to element",$context),$context.addClass(className.loading),requestStartTime=(new Date).getTime()}},remove:{error:function(){module.verbose("Removing error state from element",$context),$context.removeClass(className.error)},loading:function(){module.verbose("Removing loading state from element",$context),$context.removeClass(className.loading)}},get:{responseFromXHR:function(xhr){return!!$.isPlainObject(xhr)&&(module.is.expectingJSON()?module.decode.json(xhr.responseText):xhr.responseText)},errorFromRequest:function(response,status,httpMessage){return $.isPlainObject(response)&&undefined!==response.error?response.error:undefined!==settings.error[status]?settings.error[status]:httpMessage},request:function(){return module.request||!1},xhr:function(){return module.xhr||!1}
140,settings:function(){var runSettings;return(runSettings=settings.beforeSend.call(context,settings))&&(undefined!==runSettings.success&&(module.debug("Legacy success callback detected",runSettings),module.error(error.legacyParameters,runSettings.success),runSettings.onSuccess=runSettings.success),undefined!==runSettings.failure&&(module.debug("Legacy failure callback detected",runSettings),module.error(error.legacyParameters,runSettings.failure),runSettings.onFailure=runSettings.failure),undefined!==runSettings.complete&&(module.debug("Legacy complete callback detected",runSettings),module.error(error.legacyParameters,runSettings.complete),runSettings.onComplete=runSettings.complete)),undefined===runSettings&&module.error(error.noReturnedValue),!1===runSettings?runSettings:undefined!==runSettings?$.extend(!0,{},runSettings):$.extend(!0,{},settings)},urlEncodedValue:function(value){var decodedValue=window.decodeURIComponent(value),encodedValue=window.encodeURIComponent(value);return decodedValue!==value?(module.debug("URL value is already encoded, avoiding double encoding",value),value):(module.verbose("Encoding value using encodeURIComponent",value,encodedValue),encodedValue)},defaultData:function(){var data={};return $.isWindow(element)||(module.is.input()?data.value=$module.val():module.is.form()||(data.text=$module.text())),data},event:function(){return $.isWindow(element)||"now"==settings.on?(module.debug("API called without element, no events attached"),!1):"auto"==settings.on?$module.is("input")?undefined!==element.oninput?"input":undefined!==element.onpropertychange?"propertychange":"keyup":$module.is("form")?"submit":"click":settings.on},templatedURL:function(action){if(action=action||$module.data(metadata.action)||settings.action||!1,url=$module.data(metadata.url)||settings.url||!1)return module.debug("Using specified url",url),url;if(action){if(module.debug("Looking up url for action",action,settings.api),undefined===settings.api[action]&&!module.is.mocked())return void module.error(error.missingAction,settings.action,settings.api);url=settings.api[action]}else module.is.form()&&(url=$module.attr("action")||$context.attr("action")||!1,module.debug("No url or action specified, defaulting to form action",url));return url}},abort:function(){var xhr=module.get.xhr();xhr&&"resolved"!==xhr.state()&&(module.debug("Cancelling API request"),xhr.abort())},reset:function(){module.remove.error(),module.remove.loading()},setting:function(name,value){if(module.debug("Changing setting",name,value),$.isPlainObject(name))$.extend(!0,settings,name);else{if(undefined===value)return settings[name];$.isPlainObject(settings[name])?$.extend(!0,settings[name],value):settings[name]=value}},internal:function(name,value){if($.isPlainObject(name))$.extend(!0,module,name);else{if(undefined===value)return module[name];module[name]=value}},debug:function(){!settings.silent&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.debug=Function.prototype.bind.call(console.info,console,settings.name+":"),module.debug.apply(console,arguments)))},verbose:function(){!settings.silent&&settings.verbose&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.verbose=Function.prototype.bind.call(console.info,console,settings.name+":"),module.verbose.apply(console,arguments)))},error:function(){settings.silent||(module.error=Function.prototype.bind.call(console.error,console,settings.name+":"),module.error.apply(console,arguments))},performance:{log:function(message){var currentTime,executionTime;settings.performance&&(executionTime=(currentTime=(new Date).getTime())-(time||currentTime),time=currentTime,performance.push({Name:message[0],Arguments:[].slice.call(message,1)||"","Execution Time":executionTime})),clearTimeout(module.performance.timer),module.performance.timer=setTimeout(module.performance.display,500)},display:function(){var title=settings.name+":",totalTime=0;time=!1,clearTimeout(module.performance.timer),$.each(performance,(function(index,data){totalTime+=data["Execution Time"]})),title+=" "+totalTime+"ms",moduleSelector&&(title+=" '"+moduleSelector+"'"),(undefined!==console.group||undefined!==console.table)&&performance.length>0&&(console.groupCollapsed(title),console.table?console.table(performance):$.each(performance,(function(index,data){console.log(data.Name+": "+data["Execution Time"]+"ms")})),console.groupEnd()),performance=[]}},invoke:function(query,passedArguments,context){var maxDepth,found,response,object=instance;return passedArguments=passedArguments||queryArguments,context=element||context,"string"==typeof query&&undefined!==object&&(query=query.split(/[\. ]/),maxDepth=query.length-1,$.each(query,(function(depth,value){var camel
140CaseValue=depth!=maxDepth?value+query[depth+1].charAt(0).toUpperCase()+query[depth+1].slice(1):query;if($.isPlainObject(object[camelCaseValue])&&depth!=maxDepth)object=object[camelCaseValue];else{if(undefined!==object[camelCaseValue])return found=object[camelCaseValue],!1;if(!$.isPlainObject(object[value])||depth==maxDepth)return undefined!==object[value]?(found=object[value],!1):(module.error(error.method,query),!1);object=object[value]}}))),$.isFunction(found)?response=found.apply(context,passedArguments):undefined!==found&&(response=found),$.isArray(returnedValue)?returnedValue.push(response):undefined!==returnedValue?returnedValue=[returnedValue,response]:undefined!==response&&(returnedValue=response),found}},methodInvoked?(undefined===instance&&module.initialize(),module.invoke(query)):(undefined!==instance&&instance.invoke("destroy"),module.initialize())})),undefined!==returnedValue?returnedValue:this},$.api.settings={name:"API",namespace:"api",debug:!1,verbose:!1,performance:!0,api:{},cache:!0,interruptRequests:!0,on:"auto",stateContext:!1,loadingDuration:0,hideError:"auto",errorDuration:2e3,encodeParameters:!0,action:!1,url:!1,base:"",urlData:{},defaultData:!0,serializeForm:!1,throttle:0,throttleFirstRequest:!0,method:"get",data:{},dataType:"json",mockResponse:!1,mockResponseAsync:!1,response:!1,responseAsync:!1,beforeSend:function(settings){return settings},beforeXHR:function(xhr){},onRequest:function(promise,xhr){},onResponse:!1,onSuccess:function(response,$module){},onComplete:function(response,$module){},onFailure:function(response,$module){},onError:function(errorMessage,$module){},onAbort:function(errorMessage,$module){},successTest:!1,error:{beforeSend:"The before send function has aborted the request",error:"There was an error with your request",exitConditions:"API Request Aborted. Exit conditions met",JSONParse:"JSON could not be parsed during error handling",legacyParameters:"You are using legacy API success callback names",method:"The method you called is not defined",missingAction:"API action used but no url was defined",missingSerialize:"jquery-serialize-object is required to add form data to an existing data object",missingURL:"No URL specified for api event",noReturnedValue:"The beforeSend callback must return a settings object, beforeSend ignored.",noStorage:"Caching responses locally requires session storage",parseError:"There was an error parsing your request",requiredParameter:"Missing a required URL parameter: ",statusMessage:"Server gave an error: ",timeout:"Your request timed out"},regExp:{required:/\{\$*[A-z0-9]+\}/g,optional:/\{\/\$*[A-z0-9]+\}/g},className:{loading:"loading",error:"error"},selector:{disabled:".disabled",form:"form"},metadata:{action:"action",url:"url"}}}(jQuery,window,document),
141/*!
142 * # Semantic UI 2.4.2 - Visibility
143 * http://github.com/semantic-org/semantic-ui/
144 *
145 *
146 * Released under the MIT license
147 * http://opensource.org/licenses/MIT
148 *
149 */
150function($,window,document){"use strict";window=void 0!==window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),$.fn.visibility=function(parameters){var returnedValue,$allModules=$(this),moduleSelector=$allModules.selector||"",time=(new Date).getTime(),performance=[],query=arguments[0],methodInvoked="string"==typeof query,queryArguments=[].slice.call(arguments,1),moduleCount=$allModules.length,loadedCount=0;return $allModules.each((function(){var $placeholder,contextObserver,observer,module,settings=$.isPlainObject(parameters)?$.extend(!0,{},$.fn.visibility.settings,parameters):$.extend({},$.fn.visibility.settings),className=settings.className,namespace=settings.namespace,error=settings.error,metadata=settings.metadata,eventNamespace="."+namespace,moduleNamespace="module-"+namespace,$window=$(window),$module=$(this),$context=$(settings.context),instance=($module.selector,$module.data(moduleNamespace)),requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){setTimeout(callback,0)},element=this,disabled=!1;
vendor: 7,105 bytes, line 150
150module={initialize:function(){module.debug("Initializing",settings),module.setup.cache(),module.should.trackChanges()&&("image"==settings.type&&module.setup.image(),"fixed"==settings.type&&module.setup.fixed(),settings.observeChanges&&module.observeChanges(),module.bind.events()),module.save.position(),module.is.visible()||module.error(error.visible,$module),settings.initialCheck&&module.checkVisibility(),module.instantiate()},instantiate:function(){module.debug("Storing instance",module),$module.data(moduleNamespace,module),instance=module},destroy:function(){module.verbose("Destroying previous module"),observer&&observer.disconnect(),contextObserver&&contextObserver.disconnect(),$window.off("load"+eventNamespace,module.event.load).off("resize"+eventNamespace,module.event.resize),$context.off("scroll"+eventNamespace,module.event.scroll).off("scrollchange"+eventNamespace,module.event.scrollchange),"fixed"==settings.type&&(module.resetFixed(),module.remove.placeholder()),$module.off(eventNamespace).removeData(moduleNamespace)},observeChanges:function(){"MutationObserver"in window&&(contextObserver=new MutationObserver(module.event.contextChanged),observer=new MutationObserver(module.event.changed),contextObserver.observe(document,{childList:!0,subtree:!0}),observer.observe(element,{childList:!0,subtree:!0}),module.debug("Setting up mutation observer",observer))},bind:{events:function(){module.verbose("Binding visibility events to scroll and resize"),settings.refreshOnLoad&&$window.on("load"+eventNamespace,module.event.load),$window.on("resize"+eventNamespace,module.event.resize),$context.off("scroll"+eventNamespace).on("scroll"+eventNamespace,module.event.scroll).on("scrollchange"+eventNamespace,module.event.scrollchange)}},event:{changed:function(mutations){module.verbose("DOM tree modified, updating visibility calculations"),module.timer=setTimeout((function(){module.verbose("DOM tree modified, updating sticky menu"),module.refresh()}),100)},contextChanged:function(mutations){[].forEach.call(mutations,(function(mutation){mutation.removedNodes&&[].forEach.call(mutation.removedNodes,(function(node){(node==element||$(node).find(element).length>0)&&(module.debug("Element removed from DOM, tearing down events"),module.destroy())}))}))},resize:function(){module.debug("Window resized"),settings.refreshOnResize&&requestAnimationFrame(module.refresh)},load:function(){module.debug("Page finished loading"),requestAnimationFrame(module.refresh)},scroll:function(){settings.throttle?(clearTimeout(module.timer),module.timer=setTimeout((function(){$context.triggerHandler("scrollchange"+eventNamespace,[$context.scrollTop()])}),settings.throttle)):requestAnimationFrame((function(){$context.triggerHandler("scrollchange"+eventNamespace,[$context.scrollTop()])}))},scrollchange:function(event,scrollPosition){module.checkVisibility(scrollPosition)}},precache:function(images,callback){images instanceof Array||(images=[images]);for(var imagesLength=images.length,loadedCounter=0,cache=[],cacheImage=document.createElement("img"),handleLoad=function(){++loadedCounter>=images.length&&$.isFunction(callback)&&callback()};imagesLength--;)(cacheImage=document.createElement("img")).onload=handleLoad,cacheImage.onerror=handleLoad,cacheImage.src=images[imagesLength],cache.push(cacheImage)},enableCallbacks:function(){module.debug("Allowing callbacks to occur"),disabled=!1},disableCallbacks:function(){module.debug("Disabling all callbacks temporarily"),disabled=!0},should:{trackChanges:function(){return methodInvoked?(module.debug("One time query, no need to bind events"),!1):(module.debug("Callbacks being attached"),!0)}},setup:{cache:function(){module.cache={occurred:{},screen:{},element:{}}},image:function(){var src=$module.data(metadata.src);src&&(module.verbose("Lazy loading image",src),settings.once=!0,settings.observeChanges=!1,settings.onOnScreen=function(){module.debug("Image on screen",element),module.precache(src,(function(){module.set.image(src,(function(){++loadedCount==moduleCount&&settings.onAllLoaded.call(this),settings.onLoad.call(this)}))}))})},fixed:function(){module.debug("Setting up fixed"),settings.once=!1,settings.observeChanges=!1,settings.initialCheck=!0,settings.refreshOnLoad=!0,parameters.transition||(settings.transition=!1),module.create.placeholder(),module.debug("Added placeholder",$placeholder),settings.onTopPassed=function(){module.debug("Element passed, adding fixed position",$module),module.show.placeholder(),module.set.fixed(),settings.transition&&undefined!==$.fn.transition&&$module.transition(settings.transition,settings.duration)},settings.onTopPassedReverse=function(){module.debug("Element returned to position, removing fixed",$module),module.hide.placeholder(),module.remove.fixed()}}},create:{placeholder:function(){module.verbose("Creating fixed position placeholder"),$placeholder=$module.clone(!1).css("display","none").addClass(className.placeholder).insertAfter($module)}},show:{placeholder:function(){module.verbose("Showing placeholder"),$placeholder.css("display","block").css("visibility","hidden")}},hide:{placeholder:function(){module.verbose("Hiding placeholder"),$placeholder.css("display","none").css("visibility","")}},set:{fixed:function(){module.verbose("Setting element to fixed position"),$module.addClass(className.fixed).css({position:"fixed",top:settings.offset+"px",left:"auto",zIndex:settings.zIndex}),settings.onFixed.call(element)},image:function(src,callback){if($module.attr("src",src),settings.transition)if(undefined!==$.fn.transition){if($module.hasClass(className.visible))return void module.debug("Transition already occurred on this image, skipping animation");$module.transition(settings.transition,settings.duration,callback)}else $module.fadeIn(settings.duration,callback);else $module.show()}},is:{onScreen:function(){return module.get.elementCalculations().onScreen},offScreen:function(){return module.get.elementCalculations().offScreen},visible:function(){return!(!module.cache||!module.cache.element)&&!(0===module.cache.element.width&&0===module.cache.element.offset.top)},verticallyScrollableContext:function(){var overflowY=$context.get(0)!==window&&$context.css("overflow-y");return"auto"==overflowY||"scroll"==overflowY},horizontallyScrollableContext:function(){var overflowX=$context.get(0)!==window&&$context.css("overflow-x");return"auto"==overflowX||"scroll"==overflowX}},refresh:function(){module.debug("Refreshing constants (width/height)"),"fixed"==settings.type&&module.resetFixed(),module.reset(),module.save.position(),settings.checkOnRefresh&&module.checkVisibility(),settings.onRefresh.call(element)},resetFixed:function(){module.remove.fixed(),module.remove.occurred()},reset:function(){module.verbose("Resetting all cached values"),$.isPlainObject(module.cache)&&(module.cache.screen={},module.cache.element={})},checkVisibility:function(scroll){module.verbose("Checking visibility of element",module.cache.element),!disabled&&module.is.visible()&&(module.save.scroll(scroll),module.save.calculations(),module.passed(),module.passingReverse(),module.to
150pVisibleReverse(),module.bottomVisibleReverse(),module.topPassedReverse(),module.bottomPassedReverse(),module.onScreen(),module.offScreen(),module.passing(),module.topVisible(),module.bottomVisible(),module.topPassed(),module.bottomPassed(),settings.onUpdate&&settings.onUpdate.call(element,module.get.elementCalculations()))},passed:function(amount,newCallback){var calculations=module.get.elementCalculations();if(amount&&newCallback)settings.onPassed[amount]=newCallback;else{if(undefined!==amount)return module.get.pixelsPassed(amount)>calculations.pixelsPassed;calculations.passing&&$.each(settings.onPassed,(function(amount,callback){calculations.bottomVisible||calculations.pixelsPassed>module.get.pixelsPassed(amount)?module.execute(callback,amount):settings.once||module.remove.occurred(callback)}))}},onScreen:function(newCallback){var calculations=module.get.elementCalculations(),callback=newCallback||settings.onOnScreen;if(newCallback&&(module.debug("Adding callback for onScreen",newCallback),settings.onOnScreen=newCallback),calculations.onScreen?module.execute(callback,"onScreen"):settings.once||module.remove.occurred("onScreen"),undefined!==newCallback)return calculations.onOnScreen},offScreen:function(newCallback){var calculations=module.get.elementCalculations(),callback=newCallback||settings.onOffScreen;if(newCallback&&(module.debug("Adding callback for offScreen",newCallback),settings.onOffScreen=newCallback),calculations.offScreen?module.execute(callback,"offScreen"):settings.once||module.remove.occurred("offScreen"),undefined!==newCallback)return calculations.onOffScreen},passing:function(newCallback){var calculations=module.get.elementCalculations(),callback=newCallback||settings.onPassing;if(newCallback&&(module.debug("Adding callback for passing",newCallback),settings.onPassing=newCallback),calculations.passing?module.execute(callback,"passing"):settings.once||module.remove.occurred("passing"),undefined!==newCallback)return calculations.passing},topVisible:function(newCallback){var calculations=module.get.elementCalculations(),callback=newCallback||settings.onTopVisible;if(newCallback&&(module.debug("Adding callback for top visible",newCallback),settings.onTopVisible=newCallback),calculations.topVisible?module.execute(callback,"topVisible"):settings.once||module.remove.occurred("topVisible"),undefined===newCallback)return calculations.topVisible},bottomVisible:function(newCallback){var calculations=module.get.elementCalculations(),callback=newCallback||settings.onBottomVisible;if(newCallback&&(module.debug("Adding callback for bottom visible",newCallback),settings.onBottomVisible=newCallback),calculations.bottomVisible?module.execute(callback,"bottomVisible"):settings.once||module.remove.occurred("bottomVisible"),undefined===newCallback)return calculations.bottomVisible},topPassed:function(newCallback){var calculations=module.get.elementCalculations(),callback=newCallback||settings.onTopPassed;if(newCallback&&(module.debug("Adding callback for top passed",newCallback),settings.onTopPassed=newCallback),calculations.topPassed?module.execute(callback,"topPassed"):settings.once||module.remove.occurred("topPassed"),undefined===newCallback)return calculations.topPassed},bottomPassed:function(newCallback){var calculations=module.get.elementCalculations(),callback=newCallback||settings.onBottomPassed;if(newCallback&&(module.debug("Adding callback for bottom passed",newCallback),settings.onBottomPassed=newCallback),calculations.bottomPassed?module.execute(callback,"bottomPassed"):settings.once||module.remove.occurred("bottomPassed"),undefined===newCallback)return calculations.bottomPassed},passingReverse:function(newCallback){var calculations=module.get.elementCalculations(),callback=newCallback||settings.onPassingReverse;if(newCallback&&(module.debug("Adding callback for passing reverse",newCallback),settings.onPassingReverse=newCallback),calculations.passing?settings.once||module.remove.occurred("passingReverse"):module.get.occurred("passing")&&module.execute(callback,"passingReverse"),undefined!==newCallback)return!calculations.passing},topVisibleReverse:function(newCallback){var calculations=module.get.elementCalculations(),callback=newCallback||settings.onTopVisibleReverse;if(newCallback&&(module.debug("Adding callback for top visible reverse",newCallback),settings.onTopVisibleReverse=newCallback),calculations.topVisible?settings.once||module.remove.occurred("topVisibleReverse"):module.get.occurred("topVisible")&&module.execute(callback,"topVisibleReverse"),undefined===newCallback)return!calculations.topVisible},bottomVisibleReverse:function(newCallback){var calculations=module.get.elementCalculations(),callback=newCallback||settings.onBottomVisibleReverse;if(newCallback&&(module.debug("Adding callback for bottom visible reverse",newCallback),settings.onBottomVisibleReverse=newCallback),calculations.bottomVisible?settings.once||module.remove.occurred("bottomVisibleReverse"):module.get.occurred("bottomVisible")&&module.execute(callback,"bottomVisibleReverse"),undefined===newCallback)return!calculations.bottomVisible},topPassedReverse:function(newCallback){var calculations=module.get.elementCalculations(),callback=newCallback||settings.onTopPassedReverse;if(newCallback&&(module.debug("Adding callback for top passed reverse",newCallback),settings.onTopPassedReverse=newCallback),calculations.topPassed?settings.once||module.remove.occurred("topPassedReverse"):module.get.occurred("topPassed")&&module.execute(callback,"topPassedReverse"),undefined===newCallback)return!calculations.onTopPassed},bottomPassedReverse:function(newCallback){var calculations=module.get.elementCalculations(),callback=newCallback||settings.onBottomPassedReverse;if(newCallback&&(module.debug("Adding callback for bottom passed reverse",newCallback),settings.onBottomPassedReverse=newCallback),calculations.bottomPassed?settings.once||module.remove.occurred("bottomPassedReverse"):module.get.occurred("bottomPassed")&&module.execute(callback,"bottomPassedReverse"),undefined===newCallback)return!calculations.bottomPassed},execute:function(callback,callbackName){var calculations=module.get.elementCalculations(),screen=module.get.screenCalculations();(callback=callback||!1)&&(settings.continuous?(module.debug("Callback being called continuously",callbackName,calculations),callback.call(element,calculations,screen)):module.get.occurred(callbackName)||(module.debug("Conditions met",callbackName,calculations),callback.call(element,calculations,screen))),module.save.occurred(callbackName)},remove:{fixed:function(){module.debug("Removing fixed position"),$module.removeClass(className.fixed).css({position:"",top:"",left:"",zIndex:""}),settings.onUnfixed.call(element)},placeholder:function(){module.debug("Removing placeholder content"),$placeholder&&$placeholder.remove()},occurred:function(callback){if(callback){var occurred=module.cache.occurred;undefined!==occurred[callback]&&!0===occurred[callback]&&(module.debug("Callback can now be called again",callback),module.cache.occurred[callback]=!1)}else module.cache.occurred={}}},save:{calculations:function(){module.verbose("Saving all calculations necessary to determine positioning"),module.save.direction(),module.save.screenCalculations(),module.save.elementCalculations()},occurred:function(callback){callback&&(undefined!==module.cache.occurred[callback]&&!0===module.cache.occurred[callback]||(module.verbose("Saving callback occurred",callback),module.cache.occurred[callback]=!0))},scroll:function(scrollPosition){scrollPosition=scrollPosition+settings.offset||$context.scrollTop()+settings.offset,module.cache.scroll=scrollPosition},direction:function(){var direction,scroll=module.get.scroll(),lastScroll=module.get.lastScroll();return direction=scroll>lastScroll&&lastScroll?"down":scroll<lastScroll&&lastScroll?"up":"static",module.cache.direction=direction,module.cache.direction},elementPosition:function(){var element=module.cache.element,screen=module.get.screenSize();return module.verbose("Saving element position"),element.fits=element.height<screen.height,element.offset=$module.offset(),element.width=$module.outerWidth(),element.height=$module.outerHeight(),module.is.verticallyScrollableContext()&&(element.offset.top+=$context.scrollTop()-$context.offset().top),module.is.horizontallyScrollableContext()&&(element.offset.left+=$context.scrollLeft-$context.offset().left),module.cache.element=element,element},elementCalculations:function(){var screen=module.get.screenCalculations(),element=module.get.elementPosition();return settings.includeMargin?(element.margin={},element.margin.top=parseInt($module.css("margin-top"),10),element.margin.bottom=parseInt($module.css("margin-bottom"),10),element.top=element.offset.top-element.margin.top,element.bottom=element.offset.top+element.height+element.margin.bottom):(element.top=element.offset.top,element.bottom=element.offset.top+element.height),element.topPassed=screen.top>=element.top,element.bottomPassed=screen.top>=element.bottom,element.topVisible=screen.bottom>=element.top&&!element.topPassed,element.bottomVisible=screen.bottom>=element.bottom&&!element.bottomPassed,element.pixelsPassed=0,element.percentagePassed=0,element.onScreen=(element.topVisible||element.passing)&&!element.bottomPassed,element.passing=element.topPassed&&!element.bottomPassed,element.off
150Screen=!element.onScreen,element.passing&&(element.pixelsPassed=screen.top-element.top,element.percentagePassed=(screen.top-element.top)/element.height),module.cache.element=element,module.verbose("Updated element calculations",element),element},screenCalculations:function(){var scroll=module.get.scroll();return module.save.direction(),module.cache.screen.top=scroll,module.cache.screen.bottom=scroll+module.cache.screen.height,module.cache.screen},screenSize:function(){module.verbose("Saving window position"),module.cache.screen={height:$context.height()}},position:function(){module.save.screenSize(),module.save.elementPosition()}},get:{pixelsPassed:function(amount){var element=module.get.elementCalculations();return amount.search("%")>-1?element.height*(parseInt(amount,10)/100):parseInt(amount,10)},occurred:function(callback){return undefined!==module.cache.occurred&&module.cache.occurred[callback]||!1},direction:function(){return undefined===module.cache.direction&&module.save.direction(),module.cache.direction},elementPosition:function(){return undefined===module.cache.element&&module.save.elementPosition(),module.cache.element},elementCalculations:function(){return undefined===module.cache.element&&module.save.elementCalculations(),module.cache.element},screenCalculations:function(){return undefined===module.cache.screen&&module.save.screenCalculations(),module.cache.screen},screenSize:function(){return undefined===module.cache.screen&&module.save.screenSize(),module.cache.screen},scroll:function(){return undefined===module.cache.scroll&&module.save.scroll(),module.cache.scroll},lastScroll:function(){return undefined===module.cache.screen?(module.debug("First scroll event, no last scroll could be found"),!1):module.cache.screen.top}},setting:function(name,value){if($.isPlainObject(name))$.extend(!0,settings,name);else{if(undefined===value)return settings[name];settings[name]=value}},internal:function(name,value){if($.isPlainObject(name))$.extend(!0,module,name);else{if(undefined===value)return module[name];module[name]=value}},debug:function(){!settings.silent&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.debug=Function.prototype.bind.call(console.info,console,settings.name+":"),module.debug.apply(console,arguments)))},verbose:function(){!settings.silent&&settings.verbose&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.verbose=Function.prototype.bind.call(console.info,console,settings.name+":"),module.verbose.apply(console,arguments)))},error:function(){settings.silent||(module.error=Function.prototype.bind.call(console.error,console,settings.name+":"),module.error.apply(console,arguments))},performance:{log:function(message){var currentTime,executionTime;settings.performance&&(executionTime=(currentTime=(new Date).getTime())-(time||currentTime),time=currentTime,performance.push({Name:message[0],Arguments:[].slice.call(message,1)||"",Element:element,"Execution Time":executionTime})),clearTimeout(module.performance.timer),module.performance.timer=setTimeout(module.performance.display,500)},display:function(){var title=settings.name+":",totalTime=0;time=!1,clearTimeout(module.performance.timer),$.each(performance,(function(index,data){totalTime+=data["Execution Time"]})),title+=" "+totalTime+"ms",moduleSelector&&(title+=" '"+moduleSelector+"'"),(undefined!==console.group||undefined!==console.table)&&performance.length>0&&(console.groupCollapsed(title),console.table?console.table(performance):$.each(performance,(function(index,data){console.log(data.Name+": "+data["Execution Time"]+"ms")})),console.groupEnd()),performance=[]}},invoke:function(query,passedArguments,context){var maxDepth,found,response,object=instance;return passedArguments=passedArguments||queryArguments,context=element||context,"string"==typeof query&&undefined!==object&&(query=query.split(/[\. ]/),maxDepth=query.length-1,$.each(query,(function(depth,value){var camelCaseValue=depth!=maxDepth?value+query[depth+1].charAt(0).toUpperCase()+query[depth+1].slice(1):query;if($.isPlainObject(object[camelCaseValue])&&depth!=maxDepth)object=object[camelCaseValue];else{if(undefined!==object[camelCaseValue])return found=object[camelCaseValue],!1;if(!$.isPlainObject(object[value])||depth==maxDepth)return undefined!==object[value]?(found=object[value],!1):(module.error(error.method,query),!1);object=object[value]}}))),$.isFunction(found)?response=found.apply(context,passedArguments):undefined!==found&&(response=found),$.isArray(returnedValue)?returnedValue.push(response):undefined!==returnedValue?returnedValue=[returnedValue,response]:undefined!==response&&(returnedValue=response),found}},methodInvoked?(undefined===instance&&module.initialize(),instance.save.scroll(),instance.save.calculations(),module.invoke(query)):(undefined!==instance&&instance.invoke("destroy"),module.initialize())})),undefined!==returnedValue?returnedValue:this},$.fn.visibility.settings={name:"Visibility",namespace:"visibility",debug:!1,verbose
vendor: 9,550 bytes, lines 150-160
150:!1,performance:!0,observeChanges:!0,initialCheck:!0,refreshOnLoad:!0,refreshOnResize:!0,checkOnRefresh:!0,once:!0,continuous:!1,offset:0,includeMargin:!1,context:window,throttle:!1,type:!1,zIndex:"10",transition:"fade in",duration:1e3,onPassed:{},onOnScreen:!1,onOffScreen:!1,onPassing:!1,onTopVisible:!1,onBottomVisible:!1,onTopPassed:!1,onBottomPassed:!1,onPassingReverse:!1,onTopVisibleReverse:!1,onBottomVisibleReverse:!1,onTopPassedReverse:!1,onBottomPassedReverse:!1,onLoad:function(){},onAllLoaded:function(){},onFixed:function(){},onUnfixed:function(){},onUpdate:!1,onRefresh:function(){},metadata:{src:"src"},className:{fixed:"fixed",placeholder:"placeholder",visible:"visible"},error:{method:"The method you called is not defined.",visible:"Element is hidden, you must call refresh after element becomes visible"}}}(jQuery,window,document),
151/*!
152 * # Semantic UI - Progress
153 * http://github.com/semantic-org/semantic-ui/
154 *
155 *
156 * Released under the MIT license
157 * http://opensource.org/licenses/MIT
158 *
159 */
160function($,window,document){"use strict";void 0!==(window=void 0!==window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")())&&window.Math==Math||("undefined"!=typeof self&&self.Math==Math?self:Function("return this")());$.fn.progress=function(parameters){var returnedValue,$allModules=$(this),moduleSelector=$allModules.selector||"",time=(new Date).getTime(),performance=[],query=arguments[0],methodInvoked="string"==typeof query,queryArguments=[].slice.call(arguments,1);return $allModules.each((function(){var module,settings=$.isPlainObject(parameters)?$.extend(!0,{},$.fn.progress.settings,parameters):$.extend({},$.fn.progress.settings),className=settings.className,metadata=settings.metadata,namespace=settings.namespace,selector=settings.selector,error=settings.error,eventNamespace="."+namespace,moduleNamespace="module-"+namespace,$module=$(this),$bar=$(this).find(selector.bar),$progress=$(this).find(selector.progress),$label=$(this).find(selector.label),element=this,instance=$module.data(moduleNamespace),animating=!1;module={initialize:function(){module.debug("Initializing progress bar",settings),module.set.duration(),module.set.transitionEvent(),module.read.metadata(),module.read.settings(),module.instantiate()},instantiate:function(){module.verbose("Storing instance of progress",module),instance=module,$module.data(moduleNamespace,module)},destroy:function(){module.verbose("Destroying previous progress for",$module),clearInterval(instance.interval),module.remove.state(),$module.removeData(moduleNamespace),instance=undefined},reset:function(){module.remove.nextValue(),module.update.progress(0)},complete:function(){(undefined===module.percent||module.percent<100)&&(module.remove.progressPoll(),module.set.percent(100))},read:{metadata:function(){var data={percent:$module.data(metadata.percent),total:$module.data(metadata.total),value:$module.data(metadata.value)};data.percent&&(module.debug("Current percent value set from metadata",data.percent),module.set.percent(data.percent)),data.total&&(module.debug("Total value set from metadata",data.total),module.set.total(data.total)),data.value&&(module.debug("Current value set from metadata",data.value),module.set.value(data.value),module.set.progress(data.value))},settings:function(){!1!==settings.total&&(module.debug("Current total set in settings",settings.total),module.set.total(settings.total)),!1!==settings.value&&(module.debug("Current value set in settings",settings.value),module.set.value(settings.value),module.set.progress(module.value)),!1!==settings.percent&&(module.debug("Current percent set in settings",settings.percent),module.set.percent(settings.percent))}},bind:{transitionEnd:function(callback){var transitionEnd=module.get.transitionEnd();$bar.one(transitionEnd+eventNamespace,(function(event){clearTimeout(module.failSafeTimer),callback.call(this,event)})),module.failSafeTimer=setTimeout((function(){$bar.triggerHandler(transitionEnd)}),settings.duration+settings.failSafeDelay),module.verbose("Adding fail safe timer",module.timer)}},increment:function(incrementValue){var startValue,newValue;module.has.total()?newValue=(startValue=module.get.value())+(incrementValue=incrementValue||1):(newValue=(startValue=module.get.percent())+(incrementValue=incrementValue||module.get.randomValue()),module.debug("Incrementing percentage by",startValue,newValue)),newValue=module.get.normalizedValue(newValue),module.set.progress(newValue)},decrement:function(decrementValue){var startValue,newValue;module.get.total()?(newValue=(startValue=module.get.value())-(decrementValue=decrementValue||1),module.debug("Decrementing value by",decrementValue,startValue)):(newValue=(startValue=module.get.percent())-(decrementValue=decrementValue||module.get.randomValue()),module.debug("Decrementing percentage by",decrementValue,startValue)),newValue=module.get.normalizedValue(newValue),module.set.progress(newValue)},has:{progressPoll:function(){return module.progressPoll},total:function(){return!1!==module.get.total()}},get:{text:function(templateText){var value=module.value||0,total=module.total||0,percent=animating?module.get.displayPercent():module.percent||0,left=module.total>0?total-value:100-percent;return templateText=(templateText=templateText||"").replace("{value}",value).replace("{total}",total).replace("{left}",left).replace("{percent}",percent),module.verbose("Adding variables to progress bar text",templateText),templateText},normalizedValue:function(value){if(value<0)return module.debug("Value cannot decrement below 0"),0;if(module.has.total()){if(value>module.total)return module.debug("Value cannot increment above total",module.total),module.total}else if(value>100)return module.debug("Value cannot increment above 100 percent"),100;return value},updateInterval:function(){return"auto"==settings.updateInterval?settings.duration:settings.updateInterval},randomValue:function(){return module.debug("Generating random increment percentage"),Math.floor(Math.random()*settings.random.max+settings.random.min)},numericValue:function(value){return"string"==typeof value?""!==value.replace(/[^\d.]/g,"")&&+value.replace(/[^\d.]/g,""):value},transitionEnd:function(){var transition,element=document.createElement("element"),transitions={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(transition in transitions)if(undefined!==element.style[transition])return transitions[transition]},displayPercent:function(){var barWidth=$bar.width(),totalWidth=$module.width(),displayPercent=barWidth>parseInt($bar.css("min-width"),10)?barWidth/totalWidth*100:module.percent;return settings.precision>0?Math.round(displayPercent*(10*settings.precision))/(10*settings.precision):Math.round(displayPercent)},percent:function(){return module.percent||0},value:function(){return module.nextValue||module.value||0},total:function(){return module.total||!1}},create:{progressPoll:function(){module.progressPoll=setTimeout((function(){module.update.toNextValue(),module.remove.progressPoll()}),module.get.updateInterval())}},is:{complete:function(){return module.is.success()||module.is.warning()||module.is.error()},success:function(){return $module.hasClass(className.success)},warning:function(){return $module.hasClass(className.warning)},error:function(){return $module.hasClass(className.error)},active:function(){return $module.hasClass(className.active)},visible:function(){return $module.is(":visible")}},remove:{progressPoll:function(){module.verbose("Removing progress poll timer"),module.progressPoll&&(clearTimeout(module.progressPoll),delete module.progressPoll)},nextValue:function(){module.verbose("Removing progress value stored for next update"),delete module.nextValue},state:function(){module.verbose("Removing stored state"),delete module.total,delete module.percent,delete module.value},active:function(){module.verbose("Removing active state"),$module.removeClass(className.active)},success:function(){module.verbose("Removing success state"),$module.removeClass(className.success)},warning:function(){module.verbose("Removing warning state"),$module.removeClass(className.warning)},error:function(){module.verbose("Removing error state"),$module.removeClass(className.error)}},set:{barWidth:function(value){value>100?module.error(error.tooHigh,value):value<0?module.error(error.tooLow,value):($bar.css("width",value+"%"),$module.attr("data-percent",parseInt(value,10)))},duration:function(duration){duration="number"==typeof(duration=duration||settings.duration)?duration+"ms":duration,module.verbose("Setting progress bar transition duration",duration),$bar.css({"transition-duration":duration})},percent:function(percent){percent="string"==typeof percent?+percent.replace("%",""):percent,percent=settings.precision>0?Math.round(percent*(10*settings.precision))/(10*settings.precision):Math.round(percent),module.percent=percent,module.has.total()||(module.value=settings.precision>0?Math.round(percent/100*module.total*(10*settings.precision))/(10*settings.precision):Math.round(percent/100*module.total*10)/10,settings.limitValues&&(module.value=module.value>100?100:module.value<0?0:module.value)),module.set.barWidth(percent),module.set.labelInterval(),module.set.labels(),settings.onChange.call(element,percent,module.value,module.total)},labelInterval:function(){clearInterval(module.interval),module.bind.transitionEnd((function(){module.verbose("Bar finished animating, remov
160ing continuous label updates"),clearInterval(module.interval),animating=!1,module.set.labels()})),animating=!0,module.interval=setInterval((function(){$.contains(document.documentElement,element)||(clearInterval(module.interval),animating=!1),module.set.labels()}),settings.framerate)},labels:function(){module.verbose("Setting both bar progress and outer label text"),module.set.barLabel(),module.set.state()},label:function(text){(text=text||"")&&(text=module.get.text(text),module.verbose("Setting label to text",text),$label.text(text))},state:function(percent){100===(percent=undefined!==percent?percent:module.percent)?settings.autoSuccess&&!(module.is.warning()||module.is.error()||module.is.success())?(module.set.success(),module.debug("Automatically triggering success at 100%")):(module.verbose("Reached 100% removing active state"),module.remove.active(),module.remove.progressPoll()):percent>0?(module.verbose("Adjusting active progress bar label",percent),module.set.active()):(module.remove.active(),module.set.label(settings.text.active))},barLabel:function(text){undefined!==text?$progress.text(module.get.text(text)):"ratio"==settings.label&&module.total?(module.verbose("Adding ratio to bar label"),$progress.text(module.get.text(settings.text.ratio))):"percent"==settings.label&&(module.verbose("Adding percentage to bar label"),$progress.text(module.get.text(settings.text.percent)))},active:function(text){text=text||settings.text.active,module.debug("Setting active state"),settings.showActivity&&!module.is.active()&&$module.addClass(className.active),module.remove.warning(),module.remove.error(),module.remove.success(),(text=settings.onLabelUpdate("active",text,module.value,module.total))&&module.set.label(text),module.bind.transitionEnd((function(){settings.onActive.call(element,module.value,module.total)}))},success:function(text){text=text||settings.text.success||settings.text.active,module.debug("Setting success state"),$module.addClass(className.success),module.remove.active(),module.remove.warning(),module.remove.error(),module.complete(),settings.text.success?(text=settings.onLabelUpdate("success",text,module.value,module.total),module.set.label(text)):(text=settings.onLabelUpdate("active",text,module.value,module.total),module.set.label(text)),module.bind.transitionEnd((function(){settings.onSuccess.call(element,module.total)}))},warning:function(text){text=text||settings.text.warning,module.debug("Setting warning state"),$module.addClass(className.warning),module.remove.active(),module.remove.success(),module.remove.error(),module.complete(),(text=settings.onLabelUpdate("warning",text,module.value,module.total))&&module.set.label(text),module.bind.transitionEnd((function(){settings.onWarning.call(element,module.value,module.total)}))},error:function(text){text=text||settings.text.error,module.debug("Setting error state"),$module.addClass(className.error),module.remove.active(),module.remove.success(),module.remove.warning(),module.complete(),(text=settings.onLabelUpdate("error",text,module.value,module.total))&&module.set.label(text),module.bind.transitionEnd((function(){settings.onError.call(element,module.value,module.total)}))},transitionEvent:function(){module.get.transitionEnd()},total:function(totalValue){module.total=totalValue},value:function(value){module.value=value},progress:function(value){module.has.progressPoll()?(module.debug("Updated within interval, setting next update to use new value",value),module.set.nextValue(value)):(module.debug("First update in progress update interval, immediately updating",value),module.update.progress(value),module.create.progressPoll())},nextValue:function(value){module.nextValue=value}},update:{toNextValue:function(){var nextValue=module.nextValue;nextValue&&(module.debug("Update interval complete using last updated value",nextValue),module.update.progress(nextValue),module.remove.nextValue())},progress:function(value){var percentComplete;!1===(value=module.get.numericValue(value))&&module.error(error.nonNumeric,value),value=module.get.normalizedValue(value),module.has.total()?(module.set.value(value),percentComplete=value/module.total*100,module.debug("Calculating percent complete from total",percentComplete),module.set.percent(percentComplete)):(percentComplete=value,module.debug("Setting value to exact percentage value",percentComplete),module.set.percent(percentComplete))}},setting:function(name,value){if(module.debug("Changing setting",name,value),$.isPlainObject(name))$.extend(!0,settings,name);else{if(undefined===value)return settings[name];$.isPlainObject(settings[name])?$.extend(!0,settings[name],value):settings[name]=value}},internal:function(name,value){if($.isPlainObject(name))$.extend(!0,module,name);else{if(undefined===value)return module[name];module[name]=value}}
160,debug:function(){!settings.silent&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.debug=Function.prototype.bind.call(console.info,console,settings.name+":"),module.debug.apply(console,arguments)))},verbose:function(){!settings.silent&&settings.verbose&&settings.debug&&(settings.performance?module.performance.log(arguments):(module.verbose=Function.prototype.bind.call(console.info,console,settings.name+":"),module.verbose.apply(console,arguments)))},error:function(){settings.silent||(module.error=Function.prototype.bind.call(console.error,console,settings.name+":"),module.error.apply(console,arguments))},performance:{log:function(message){var currentTime,executionTime;settings.performance&&(executionTime=(currentTime=(new Date).getTime())-(time||currentTime),time=currentTime,performance.push({Name:message[0],Arguments:[].slice.call(message,1)||"",Element:element,"Execution Time":executionTime})),clearTimeout(module.performance.timer),module.performance.timer=setTimeout(module.performance.display,500)},display:function(){var title=settings.name+":",totalTime=0;time=!1,clearTimeout(module.performance.timer),$.each(performance,(function(index,data){totalTime+=data["Execution Time"]})),title+=" "+totalTime+"ms",moduleSelector&&(title+=" '"+moduleSelector+"'"),(undefined!==console.group||undefined!==console.table)&&performance.length>0&&(console.groupCollapsed(title),console.table?console.table(performance):$.each(performance,(function(index,data){console.log(data.Name+": "+data["Execution Time"]+"ms")})),console.groupEnd()),performance=[]}},invoke:function(query,passedArguments,context){var maxDepth,found,response,object=instance;return passedArguments=passedArguments||queryArguments,context=element||context,"string"==typeof query&&undefined!==object&&(query=query.split(/[\. ]/),maxDepth=query.length-1,$.each(query,(function(depth,value){var camelCaseValue=depth!=maxDepth?value+query[depth+1].charAt(0).toUpperCase()+query[depth+1].slice(1):query;if($.isPlainObject(object[camelCaseValue])&&depth!=maxDepth)object=object[camelCaseValue];else{if(undefined!==object[camelCaseValue])return found=object[camelCaseValue],!1;if(!$.isPlainObject(object[value])||depth==maxDepth)return undefined!==object[value]?(found=object[value],!1):(module.error(error.method,query),!1);object=object[value]}}))),$.isFunction(found)?response=found.apply(context,passedArguments):undefined!==found&&(response=found),$.isArray(returnedValue)?returnedValue.push(response):undefined!==returnedValue?returnedValue=[returnedValue,response]:undefined!==response&&(returnedValue=response),found}},methodInvoked?(undefined===instance&&module.initialize(),module.invoke(query)):(undefined!==instance&&instance.invoke("destroy"),module.initialize())})),undefined!==returnedValue?returnedValue:this},$.fn.progress.settings={name:"Progress",namespace:"progress",silent:!1,debug:!1,verbose:!1,performance:!0,random:{min:2,max:5},duration:300,updateInterval:"auto",autoSuccess:!0,showActivity:!0,limitValues:!0,label:"percent",precision:0,framerate:1e3/30,percent:!1,total:!1,value:!1,failSafeDelay:100,onLabelUpdate:function(state,text,value,total){return text},onChange:function(percent,value,total){},onSuccess:function(total){},onActive:function(value,total){},onError:function(value,total){},onWarning:function(value,total){},error:{method:"The method you called is not defined.",nonNumeric:"Progress value is non numeric",tooHigh:"Value specified is above 100%",tooLow:"Value specified is below 0%"},regExp:{variable:/\{\$*[A-z0-9]+\}/g},metadata:{percent:"percent",total:"total",value:"value"},selector:{bar:"> .bar",label:"> .label",progress:".bar > .progress"},text:{active:!1,error:!1,success:!1,warning:!1,percent:"{percent}%",ratio:"{value} of {total}"},className:{active:"active",error:"error",success:"success",warning:"warning"}}}(jQuery,window,document);

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.