/* * # Fomantic UI - 2.8.4 * https://github.com/fomantic/Fomantic-UI * http://fomantic-ui.com/ * * Copyright 2014 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ !function(j,O,k,I){"use strict";j.isWindow=j.isWindow||function(e){return null!=e&&e===e.window},j.isFunction=j.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},O=void 0!==O&&O.Math==Math?O:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),j.fn.tab=function(l){var d,u=j.isFunction(this)?j(O):j(this),b=u.selector||"",g=(new Date).getTime(),f=[],F=l,w="string"==typeof F,S=[].slice.call(arguments,1),E=!1;return u.each(function(){var h,o,p,v,m,y=j.isPlainObject(l)?j.extend(!0,{},j.fn.tab.settings,l):j.extend({},j.fn.tab.settings),T=y.className,L=y.metadata,t=y.selector,x=y.error,a=y.regExp,e="."+y.namespace,n="module-"+y.namespace,A=j(this),i={},P=!0,r=0,s=this,c=A.data(n),C={initialize:function(){C.debug("Initializing tab menu item",A),C.fix.callbacks(),C.determineTabs(),C.debug("Determining tabs",y.context,o),y.auto&&C.set.auto(),C.bind.events(),y.history&&!E&&(C.initializeHistory(),E=!0),c===I&&null==C.determine.activeTab()&&(C.debug("No active tab detected, setting first tab active",C.get.initialPath()),C.changeTab(C.get.initialPath())),C.instantiate()},instantiate:function(){C.verbose("Storing instance of module",C),c=C,A.data(n,C)},destroy:function(){C.debug("Destroying tabs",A),A.removeData(n).off(e)},bind:{events:function(){j.isWindow(s)||(C.debug("Attaching tab activation events to element",A),A.on("click"+e,C.event.click))}},determineTabs:function(){var e;"parent"===y.context?(0