/* * # 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,T,P){"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.progress=function(m){var b,e=E(this),h=e.selector||"",y=(new Date).getTime(),x=[],w=m,A="string"==typeof w,V=[].slice.call(arguments,1);return e.each(function(){var u,s=E.isPlainObject(m)?E.extend(!0,{},E.fn.progress.settings,m):E.extend({},E.fn.progress.settings),n=s.className,t=s.metadata,e=s.namespace,r=s.selector,l=s.error,a="."+e,o="module-"+e,c=E(this),p=E(this).find(r.bar),i=E(this).find(r.progress),d=E(this).find(r.label),g=this,v=c.data(o),f=!1;u={helper:{sum:function(e){return Array.isArray(e)?e.reduce(function(e,t){return e+Number(t)},0):0},derivePrecision:function(e,t){for(var n=0,r=1,a=e/t;n<10&&!(1<(a*=r));)r=Math.pow(10,n++);return r},forceArray:function(e){return Array.isArray(e)?e:isNaN(e)?"string"==typeof e?e.split(","):[]:[e]}},initialize:function(){u.set.duration(),u.set.transitionEvent(),u.debug(g),u.read.metadata(),u.read.settings(),u.instantiate()},instantiate:function(){u.verbose("Storing instance of progress",u),v=u,c.data(o,u)},destroy:function(){u.verbose("Destroying previous progress for",c),clearInterval(v.interval),u.remove.state(),c.removeData(o),v=P},reset:function(){u.remove.nextValue(),u.update.progress(0)},complete:function(e){(u.percent===P||u.percent<100)&&(u.remove.progressPoll(),!0!==e&&u.set.percent(100))},read:{metadata:function(){var e={percent:u.helper.forceArray(c.data(t.percent)),total:c.data(t.total),value:u.helper.forceArray(c.data(t.value))};e.total&&(u.debug("Total value set from metadata",e.total),u.set.total(e.total)),0u.total)return u.debug("Value cannot increment above total",u.total),u.total}else if(100u.total)u.error(l.sumExceedsTotal,a,u.total);else if(!r&&100 .bar",label:"> .label",progress:".bar > .progress"},text:{active:!1,error:!1,success:!1,warning:!1,percent:"{percent}%",ratio:"{value} of {total}",bars:[""]},className:{active:"active",error:"error",success:"success",warning:"warning"}}}(jQuery,window,document);