/* * # 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(E,e,Y,F){"use strict";E.isFunction=E.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),E.fn.shape=function(b){var x,y=E(this),w=(new Date).getTime(),C=[],S=b,T="string"==typeof S,W=[].slice.call(arguments,1),A=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||e.msRequestAnimationFrame||function(e){setTimeout(e,0)};return y.each(function(){var n,o,e,t=y.selector||"",r=E.isPlainObject(b)?E.extend(!0,{},E.fn.shape.settings,b):E.extend({},E.fn.shape.settings),i=r.namespace,s=r.selector,a=r.error,d=r.className,l="."+i,u="module-"+i,c=E(this),f=c.find(">"+s.sides),g=f.find(">"+s.side),h=!1,m=this,p=c.data(u),v={initialize:function(){v.verbose("Initializing module for",m),v.set.defaultSide(),v.instantiate()},instantiate:function(){v.verbose("Storing instance of module",v),p=v,c.data(u,p)},destroy:function(){v.verbose("Destroying previous module for",m),c.removeData(u).off(l)},refresh:function(){v.verbose("Refreshing selector cache for",m),c=E(m),f=E(this).find(s.sides),g=E(this).find(s.side)},repaint:function(){v.verbose("Forcing repaint event");(f[0]||Y.createElement("div")).offsetWidth},animate:function(e,t){v.verbose("Animating box with properties",e),t=t||function(e){v.verbose("Executing animation callback"),e!==F&&e.stopPropagation(),v.reset(),v.set.active()},r.beforeChange.call(o[0]),v.get.transitionEvent()?(v.verbose("Starting CSS animation"),c.addClass(d.animating),f.css(e).one(v.get.transitionEvent(),t),v.set.duration(r.duration),A(function(){c.addClass(d.animating),n.addClass(d.hidden)})):t()},queue:function(e){v.debug("Queueing animation of",e),f.one(v.get.transitionEvent(),function(){v.debug("Executing queued animation"),setTimeout(function(){c.shape(e)},0)})},reset:function(){v.verbose("Animating states reset"),c.removeClass(d.animating).attr("style","").removeAttr("style"),f.attr("style","").removeAttr("style"),g.attr("style","").removeAttr("style").removeClass(d.hidden),o.removeClass(d.animating).attr("style","").removeAttr("style")},is:{complete:function(){return g.filter("."+d.active)[0]==o[0]},animating:function(){return c.hasClass(d.animating)},hidden:function(){return 0"+s.sides+">"+s.side),i=t.filter("."+r.className.active),n=h?t.eq(h):0