s3.amazonaws.com Open in urlscan Pro
52.217.135.24  Public Scan

URL: https://s3.amazonaws.com/appforest_uf/f1653801289839x298259557076639100/progressbar.js
Submission: On March 26 via api from AE — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).ProgressBar=t()}((function(){return function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[a]={exports:{}};e[a][0].call(f.exports,(function(t){return i(e[a][1][t]||t)}),f,f.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){var r,i;r=window,i=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([function(t,e,n){"use strict";(function(t){n.d(e,"e",(function(){return d})),n.d(e,"c",(function(){return v})),n.d(e,"b",(function(){return _})),n.d(e,"a",(function(){return w})),n.d(e,"d",(function(){return m}));var r=n(1);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u="undefined"!=typeof window?window:t,c=u.requestAnimationFrame||u.webkitRequestAnimationFrame||u.oRequestAnimationFrame||u.msRequestAnimationFrame||u.mozCancelRequestAnimationFrame&&u.mozRequestAnimationFrame||setTimeout,f=function(){},h=null,l=null,p=a({},r),d=function(t,e,n,r,i,o,a){var s=t<o?0:(t-o)/i;for(var u in e){var c=a[u],f=c.call?c:p[c],h=n[u];e[u]=h+(r[u]-h)*f(s)}return e},y=function(t,e){var n=t._attachment,r=t._currentState,i=t._delay,o=t._easing,a=t._originalState,s=t._duration,u=t._step,c=t._targetState,f=t._timestamp,h=f+i+s,l=e>h?h:e,p=s-(h-l);l>=h?(u(c,n,p),t.stop(!0)):(t._applyFilter("beforeTween"),l<f+i?(l=1,s=1,f=1):f+=i,d(l,r,a,c,s,f,o),t._applyFilter("afterTween"),u(r,n,p))},v=function(){for(var t=w.now(),e=h;e;){var n=e._next;y(e,t),e=n}},_=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"linear",n={},r=i(e);if("string"===r||"function"===r)for(var o in t)n[o]=e;else for(var a in t)n[a]=e[a]||"linear";return n},g=function(t){if(t===h)(h=t._next)?h._previous=null:l=null;else if(t===l)(l=t._previous)?l._next=null:h=null;else{var e=t._previous,n=t._next;e._next=n,n._previous=e}t._previous=t._next=null},w=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._currentState=e,this._configured=!1,this._filters=[],this._timestamp=null,this._next=null,this._previous=null,n&&this.setConfig(n)}var e;return(e=[{key:"_applyFilter",value:function(t){var e=!0,n=!1,r=void 0;try{for(var i,o=this._filters[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var a=i.value[t];a&&a(this)}}catch(t){n=!0,r=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw r}}}},{key:"tween",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=this._attachment,r=this._configured;return!e&&r||this.setConfig(e),this._pausedAtTime=null,this._timestamp=t.now(),this._start(this.get(),n),this.resume()}},{key:"setConfig",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.attachment,i=n.delay,o=void 0===i?0:i,s=n.duration,u=void 0===s?500:s,c=n.easing,h=n.from,l=n.promise,p=void 0===l?Promise:l,d=n.start,y=void 0===d?f:d,v=n.step,g=void 0===v?f:v,w=n.to;this._configured=!0,this._attachment=r,this._isPlaying=!1,this._pausedAtTime=null,this._scheduleId=null,this._delay=o,this._start=y,this._step=g,this._duration=u,this._currentState=a({},h||this.get()),this._originalState=this.get(),this._targetState=a({},w||this.get());var m=this._currentState;this._targetState=a({},m,{},this._targetState),this._easing=_(m,c);var b=t.filters;for(var S in this._filters.length=0,b)b[S].doesApply(this)&&this._filters.push(b[S]);return this._applyFilter("tweenCreated"),this._promise=new p((function(t,n){e._resolve=t,e._reject=n})),this._promise.catch(f),this}},{key:"get",value:function(){return a({},this._currentState)}},{key:"set",value:function(t){this._currentState=t}},{key:"pause",value:function(){if(this._isPlaying)return this._pausedAtTime=t.now(),this._isPlaying=!1,g(this),this}},{key:"resume",value:function(){if(null===this._timestamp)return this.tween();if(this._isPlaying)return this._promise;var e=t.now();return this._pausedAtTime&&(this._timestamp+=e-this._pausedAtTime,this._pausedAtTime=null),this._isPlaying=!0,null===h?(h=this,l=this,function t(){h&&(c.call(u,t,1e3/60),v())}()):(this._previous=l,l._next=this,l=this),this._promise}},{key:"seek",value:function(e){e=Math.max(e,0);var n=t.now();return this._timestamp+e===0||(this._timestamp=n-e,this._isPlaying||y(this,n)),this}},{key:"stop",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._attachment,n=this._currentState,r=this._easing,i=this._originalState,o=this._targetState;if(this._isPlaying)return this._isPlaying=!1,g(this),t?(this._applyFilter("beforeTween"),d(1,n,i,o,1,0,r),this._applyFilter("afterTween"),this._applyFilter("afterTweenEnd"),this._resolve(n,e)):this._reject(n,e),this}},{key:"isPlaying",value:function(){return this._isPlaying}},{key:"setScheduleFunction",value:function(e){t.setScheduleFunction(e)}},{key:"dispose",value:function(){for(var t in this)delete this[t]}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e),t}();function m(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new w,n=e.tween(t);return n.tweenable=e,n}w.setScheduleFunction=function(t){return c=t},w.formulas=p,w.filters={},w.now=Date.now||function(){return+new Date}}).call(this,n(2))},function(t,e,n){"use strict";n.r(e),n.d(e,"linear",(function(){return r})),n.d(e,"easeInQuad",(function(){return i})),n.d(e,"easeOutQuad",(function(){return o})),n.d(e,"easeInOutQuad",(function(){return a})),n.d(e,"easeInCubic",(function(){return s})),n.d(e,"easeOutCubic",(function(){return u})),n.d(e,"easeInOutCubic",(function(){return c})),n.d(e,"easeInQuart",(function(){return f})),n.d(e,"easeOutQuart",(function(){return h})),n.d(e,"easeInOutQuart",(function(){return l})),n.d(e,"easeInQuint",(function(){return p})),n.d(e,"easeOutQuint",(function(){return d})),n.d(e,"easeInOutQuint",(function(){return y})),n.d(e,"easeInSine",(function(){return v})),n.d(e,"easeOutSine",(function(){return _})),n.d(e,"easeInOutSine",(function(){return g})),n.d(e,"easeInExpo",(function(){return w})),n.d(e,"easeOutExpo",(function(){return m})),n.d(e,"easeInOutExpo",(function(){return b})),n.d(e,"easeInCirc",(function(){return S})),n.d(e,"easeOutCirc",(function(){return O})),n.d(e,"easeInOutCirc",(function(){return x})),n.d(e,"easeOutBounce",(function(){return k})),n.d(e,"easeInBack",(function(){return P})),n.d(e,"easeOutBack",(function(){return T})),n.d(e,"easeInOutBack",(function(){return j})),n.d(e,"elastic",(function(){return C})),n.d(e,"swingFromTo",(function(){return M})),n.d(e,"swingFrom",(function(){return E})),n.d(e,"swingTo",(function(){return A})),n.d(e,"bounce",(function(){return F})),n.d(e,"bouncePast",(function(){return W})),n.d(e,"easeFromTo",(function(){return I})),n.d(e,"easeFrom",(function(){return D})),n.d(e,"easeTo",(function(){return q}));var r=function(t){return t},i=function(t){return Math.pow(t,2)},o=function(t){return-(Math.pow(t-1,2)-1)},a=function(t){return(t/=.5)<1?.5*Math.pow(t,2):-.5*((t-=2)*t-2)},s=function(t){return Math.pow(t,3)},u=function(t){return Math.pow(t-1,3)+1},c=function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},f=function(t){return Math.pow(t,4)},h=function(t){return-(Math.pow(t-1,4)-1)},l=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},p=function(t){return Math.pow(t,5)},d=function(t){return Math.pow(t-1,5)+1},y=function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)},v=function(t){return 1-Math.cos(t*(Math.PI/2))},_=function(t){return Math.sin(t*(Math.PI/2))},g=function(t){return-.5*(Math.cos(Math.PI*t)-1)},w=function(t){return 0===t?0:Math.pow(2,10*(t-1))},m=function(t){return 1===t?1:1-Math.pow(2,-10*t)},b=function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},S=function(t){return-(Math.sqrt(1-t*t)-1)},O=function(t){return Math.sqrt(1-Math.pow(t-1,2))},x=function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},k=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},P=function(t){var e=1.70158;return t*t*((e+1)*t-e)},T=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},j=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},C=function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},M=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},E=function(t){var e=1.70158;return t*t*((e+1)*t-e)},A=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},F=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},W=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?2-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},I=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},D=function(t){return Math.pow(t,4)},q=function(t){return Math.pow(t,.25)}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"doesApply",(function(){return O})),n.d(r,"tweenCreated",(function(){return x})),n.d(r,"beforeTween",(function(){return k})),n.d(r,"afterTween",(function(){return P}));var i,o,a=n(0),s=/(\d|-|\.)/,u=/([^\-0-9.]+)/g,c=/[0-9.-]+/g,f=(i=c.source,o=/,\s*/.source,new RegExp("rgb\\(".concat(i).concat(o).concat(i).concat(o).concat(i,"\\)"),"g")),h=/^.*\(/,l=/#([0-9]|[a-f]){3,6}/gi,p=function(t,e){return t.map((function(t,n){return"_".concat(e,"_").concat(n)}))};function d(t){return parseInt(t,16)}var y=function(t){return"rgb(".concat((e=t,3===(e=e.replace(/#/,"")).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[d(e.substr(0,2)),d(e.substr(2,2)),d(e.substr(4,2))]).join(","),")");var e},v=function(t,e,n){var r=e.match(t),i=e.replace(t,"VAL");return r&&r.forEach((function(t){return i=i.replace("VAL",n(t))})),i},_=function(t){for(var e in t){var n=t[e];"string"==typeof n&&n.match(l)&&(t[e]=v(l,n,y))}},g=function(t){var e=t.match(c).map(Math.floor),n=t.match(h)[0];return"".concat(n).concat(e.join(","),")")},w=function(t){return t.match(c)},m=function(t,e){var n={};return e.forEach((function(e){n[e]=t[e],delete t[e]})),n},b=function(t,e){return e.map((function(e){return t[e]}))},S=function(t,e){return e.forEach((function(e){return t=t.replace("VAL",+e.toFixed(4))})),t},O=function(t){var e=t._currentState;return Object.keys(e).some((function(t){return"string"==typeof e[t]}))};function x(t){var e=t._currentState;[e,t._originalState,t._targetState].forEach(_),t._tokenData=function(t){var e,n,r={};for(var i in t){var o=t[i];"string"==typeof o&&(r[i]={formatString:(e=o,n=void 0,n=e.match(u),n?(1===n.length||e.charAt(0).match(s))&&n.unshift(""):n=["",""],n.join("VAL")),chunkNames:p(w(o),i)})}return r}(e)}function k(t){var e=t._currentState,n=t._originalState,r=t._targetState,i=t._easing,o=t._tokenData;(function(t,e){var n=function(n){var r=e[n].chunkNames,i=t[n];if("string"==typeof i){var o=i.split(" "),a=o[o.length-1];r.forEach((function(e,n){return t[e]=o[n]||a}))}else r.forEach((function(e){return t[e]=i}));delete t[n]};for(var r in e)n(r)})(i,o),[e,n,r].forEach((function(t){return function(t,e){var n=function(n){w(t[n]).forEach((function(r,i){return t[e[n].chunkNames[i]]=+r})),delete t[n]};for(var r in e)n(r)}(t,o)}))}function P(t){var e=t._currentState,n=t._originalState,r=t._targetState,i=t._easing,o=t._tokenData;[e,n,r].forEach((function(t){return function(t,e){for(var n in e){var r=e[n],i=r.chunkNames,o=r.formatString,a=S(o,b(m(t,i),i));t[n]=v(f,a,g)}}(t,o)})),function(t,e){for(var n in e){var r=e[n].chunkNames,i=t[r[0]];t[n]="string"==typeof i?r.map((function(e){var n=t[e];return delete t[e],n})).join(" "):i}}(i,o)}function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){C(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function C(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var M=new a.a,E=a.a.filters,A=function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=j({},t),s=Object(a.b)(t,r);for(var u in M._filters.length=0,M.set({}),M._currentState=o,M._originalState=t,M._targetState=e,M._easing=s,E)E[u].doesApply(M)&&M._filters.push(E[u]);M._applyFilter("tweenCreated"),M._applyFilter("beforeTween");var c=Object(a.e)(n,o,t,e,1,i,s);return M._applyFilter("afterTween"),c};function F(t,e){var n=e.get(t);if(!n)throw new TypeError("attempted to get private field on non-instance");return n.get?n.get.call(t):n.value}var W=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),I.set(this,{writable:!0,value:[]});for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(this.add.bind(this))}var e;return(e=[{key:"add",value:function(t){return F(this,I).push(t),t}},{key:"remove",value:function(t){var e=F(this,I).indexOf(t);return~e&&F(this,I).splice(e,1),t}},{key:"empty",value:function(){return this.tweenables.map(this.remove.bind(this))}},{key:"isPlaying",value:function(){return F(this,I).some((function(t){return t.isPlaying()}))}},{key:"play",value:function(){return F(this,I).forEach((function(t){return t.tween()})),this}},{key:"pause",value:function(){return F(this,I).forEach((function(t){return t.pause()})),this}},{key:"resume",value:function(){return F(this,I).forEach((function(t){return t.resume()})),this}},{key:"stop",value:function(t){return F(this,I).forEach((function(e){return e.stop(t)})),this}},{key:"tweenables",get:function(){return function(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(F(this,I))}},{key:"promises",get:function(){return F(this,I).map((function(t){return t._promise}))}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e),t}(),I=new WeakMap,D=function(t,e,n,r,i){var o=function(t,e,n,r){return function(i){return function(t,e,n,r,i,o){var a,s,u,c,f,h=0,l=0,p=0,d=function(t){return((h*t+l)*t+p)*t},y=function(t){return(3*h*t+2*l)*t+p},v=function(t){return t>=0?t:0-t};return h=1-(p=3*e)-(l=3*(r-e)-p),u=1-(f=3*n)-(c=3*(i-n)-f),a=t,s=function(t){return 1/(200*t)}(o),function(t){return((u*t+c)*t+f)*t}(function(t,e){var n,r,i,o,a,s;for(i=t,s=0;s<8;s++){if(o=d(i)-t,v(o)<e)return i;if(a=y(i),v(a)<1e-6)break;i-=o/a}if((i=t)<(n=0))return n;if(i>(r=1))return r;for(;n<r;){if(o=d(i),v(o-t)<e)return i;t>o?n=i:r=i,i=.5*(r-n)+n}return i}(a,s))}(i,t,e,n,r,1)}}(e,n,r,i);return o.displayName=t,o.x1=e,o.y1=n,o.x2=r,o.y2=i,a.a.formulas[t]=o},q=function(t){return delete a.a.formulas[t]};n.d(e,"processTweens",(function(){return a.c})),n.d(e,"Tweenable",(function(){return a.a})),n.d(e,"tween",(function(){return a.d})),n.d(e,"interpolate",(function(){return A})),n.d(e,"Scene",(function(){return W})),n.d(e,"setBezierFunction",(function(){return D})),n.d(e,"unsetBezierFunction",(function(){return q})),a.a.filters.token=r}])},"object"==typeof n&&"object"==typeof e?e.exports=i():"object"==typeof n?n.shifty=i():r.shifty=i()},{}],2:[function(t,e,n){var r=t("./shape"),i=t("./utils"),o=function(t,e){this._pathTemplate="M 50,50 m 0,-{radius} a {radius},{radius} 0 1 1 0,{2radius} a {radius},{radius} 0 1 1 0,-{2radius}",this.containerAspectRatio=1,r.apply(this,arguments)};(o.prototype=new r).constructor=o,o.prototype._pathString=function(t){var e=t.strokeWidth;t.trailWidth&&t.trailWidth>t.strokeWidth&&(e=t.trailWidth);var n=50-e/2;return i.render(this._pathTemplate,{radius:n,"2radius":2*n})},o.prototype._trailString=function(t){return this._pathString(t)},e.exports=o},{"./shape":7,"./utils":9}],3:[function(t,e,n){var r=t("./shape"),i=t("./utils"),o=function(t,e){this._pathTemplate=e.vertical?"M {center},100 L {center},0":"M 0,{center} L 100,{center}",r.apply(this,arguments)};(o.prototype=new r).constructor=o,o.prototype._initializeSvg=function(t,e){var n=e.vertical?"0 0 "+e.strokeWidth+" 100":"0 0 100 "+e.strokeWidth;t.setAttribute("viewBox",n),t.setAttribute("preserveAspectRatio","none")},o.prototype._pathString=function(t){return i.render(this._pathTemplate,{center:t.strokeWidth/2})},o.prototype._trailString=function(t){return this._pathString(t)},e.exports=o},{"./shape":7,"./utils":9}],4:[function(t,e,n){e.exports={Line:t("./line"),Circle:t("./circle"),SemiCircle:t("./semicircle"),Square:t("./square"),Path:t("./path"),Shape:t("./shape"),utils:t("./utils")}},{"./circle":2,"./line":3,"./path":5,"./semicircle":6,"./shape":7,"./square":8,"./utils":9}],5:[function(t,e,n){var r=t("shifty"),i=t("./utils"),o=r.Tweenable,a={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},s=function t(e,n){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");var r;n=i.extend({delay:0,duration:800,easing:"linear",from:{},to:{},step:function(){}},n),r=i.isString(e)?document.querySelector(e):e,this.path=r,this._opts=n,this._tweenable=null;var o=this.path.getTotalLength();this.path.style.strokeDasharray=o+" "+o,this.set(0)};s.prototype.value=function(){var t=this._getComputedDashOffset(),e=this.path.getTotalLength();return parseFloat((1-t/e).toFixed(6),10)},s.prototype.set=function(t){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(t);var e=this._opts.step;if(i.isFunction(e)){var n=this._easing(this._opts.easing);e(this._calculateTo(t,n),this._opts.shape||this,this._opts.attachment)}},s.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},s.prototype.animate=function(t,e,n){e=e||{},i.isFunction(e)&&(n=e,e={});var r=i.extend({},e),a=i.extend({},this._opts);e=i.extend(a,e);var s=this._easing(e.easing),u=this._resolveFromAndTo(t,s,r);this.stop(),this.path.getBoundingClientRect();var c=this._getComputedDashOffset(),f=this._progressToOffset(t),h=this;this._tweenable=new o,this._tweenable.tween({from:i.extend({offset:c},u.from),to:i.extend({offset:f},u.to),duration:e.duration,delay:e.delay,easing:s,step:function(t){h.path.style.strokeDashoffset=t.offset;var n=e.shape||h;e.step(t,n,e.attachment)}}).then((function(t){i.isFunction(n)&&n()})).catch((function(t){throw t}))},s.prototype._getComputedDashOffset=function(){var t=window.getComputedStyle(this.path,null);return parseFloat(t.getPropertyValue("stroke-dashoffset"),10)},s.prototype._progressToOffset=function(t){var e=this.path.getTotalLength();return e-t*e},s.prototype._resolveFromAndTo=function(t,e,n){return n.from&&n.to?{from:n.from,to:n.to}:{from:this._calculateFrom(e),to:this._calculateTo(t,e)}},s.prototype._calculateFrom=function(t){return r.interpolate(this._opts.from,this._opts.to,this.value(),t)},s.prototype._calculateTo=function(t,e){return r.interpolate(this._opts.from,this._opts.to,t,e)},s.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(!0),this._tweenable=null)},s.prototype._easing=function(t){return a.hasOwnProperty(t)?a[t]:t},e.exports=s},{"./utils":9,shifty:1}],6:[function(t,e,n){var r=t("./shape"),i=t("./circle"),o=t("./utils"),a=function(t,e){this._pathTemplate="M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0",this.containerAspectRatio=2,r.apply(this,arguments)};(a.prototype=new r).constructor=a,a.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 50")},a.prototype._initializeTextContainer=function(t,e,n){t.text.style&&(n.style.top="auto",n.style.bottom="0",t.text.alignToBottom?o.setStyle(n,"transform","translate(-50%, 0)"):o.setStyle(n,"transform","translate(-50%, 50%)"))},a.prototype._pathString=i.prototype._pathString,a.prototype._trailString=i.prototype._trailString,e.exports=a},{"./circle":2,"./shape":7,"./utils":9}],7:[function(t,e,n){var r=t("./path"),i=t("./utils"),o="Object is destroyed",a=function t(e,n){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=i.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},n,!0),i.isObject(n)&&void 0!==n.svgStyle&&(this._opts.svgStyle=n.svgStyle),i.isObject(n)&&i.isObject(n.text)&&void 0!==n.text.style&&(this._opts.text.style=n.text.style);var o,a=this._createSvgView(this._opts);if(!(o=i.isString(e)?document.querySelector(e):e))throw new Error("Container does not exist: "+e);this._container=o,this._container.appendChild(a.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&i.setStyles(a.svg,this._opts.svgStyle),this.svg=a.svg,this.path=a.path,this.trail=a.trail,this.text=null;var s=i.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new r(a.path,s),i.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};a.prototype.animate=function(t,e,n){if(null===this._progressPath)throw new Error(o);this._progressPath.animate(t,e,n)},a.prototype.stop=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath.stop()},a.prototype.pause=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.pause()},a.prototype.resume=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.resume()},a.prototype.destroy=function(){if(null===this._progressPath)throw new Error(o);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null,null!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},a.prototype.set=function(t){if(null===this._progressPath)throw new Error(o);this._progressPath.set(t)},a.prototype.value=function(){if(null===this._progressPath)throw new Error(o);return void 0===this._progressPath?0:this._progressPath.value()},a.prototype.setText=function(t){if(null===this._progressPath)throw new Error(o);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),i.isObject(t)?(i.removeChildren(this.text),this.text.appendChild(t)):this.text.innerHTML=t},a.prototype._createSvgView=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(e,t);var n=null;(t.trailColor||t.trailWidth)&&(n=this._createTrail(t),e.appendChild(n));var r=this._createPath(t);return e.appendChild(r),{svg:e,path:r,trail:n}},a.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 100")},a.prototype._createPath=function(t){var e=this._pathString(t);return this._createPathElement(e,t)},a.prototype._createTrail=function(t){var e=this._trailString(t),n=i.extend({},t);return n.trailColor||(n.trailColor="#eee"),n.trailWidth||(n.trailWidth=n.strokeWidth),n.color=n.trailColor,n.strokeWidth=n.trailWidth,n.fill=null,this._createPathElement(e,n)},a.prototype._createPathElement=function(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",t),n.setAttribute("stroke",e.color),n.setAttribute("stroke-width",e.strokeWidth),e.fill?n.setAttribute("fill",e.fill):n.setAttribute("fill-opacity","0"),n},a.prototype._createTextContainer=function(t,e){var n=document.createElement("div");n.className=t.text.className;var r=t.text.style;return r&&(t.text.autoStyleContainer&&(e.style.position="relative"),i.setStyles(n,r),r.color||(n.style.color=t.color)),this._initializeTextContainer(t,e,n),n},a.prototype._initializeTextContainer=function(t,e,n){},a.prototype._pathString=function(t){throw new Error("Override this function for each progress bar")},a.prototype._trailString=function(t){throw new Error("Override this function for each progress bar")},a.prototype._warnContainerAspectRatio=function(t){if(this.containerAspectRatio){var e=window.getComputedStyle(t,null),n=parseFloat(e.getPropertyValue("width"),10),r=parseFloat(e.getPropertyValue("height"),10);i.floatEquals(this.containerAspectRatio,n/r)}},e.exports=a},{"./path":5,"./utils":9}],8:[function(t,e,n){var r=t("./shape"),i=t("./utils"),o=function(t,e){this._pathTemplate="M 0,{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{strokeWidth}",this._trailTemplate="M {startMargin},{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{halfOfStrokeWidth}",r.apply(this,arguments)};(o.prototype=new r).constructor=o,o.prototype._pathString=function(t){var e=100-t.strokeWidth/2;return i.render(this._pathTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2})},o.prototype._trailString=function(t){var e=100-t.strokeWidth/2;return i.render(this._trailTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2,startMargin:t.strokeWidth/2-t.trailWidth/2})},e.exports=o},{"./shape":7,"./utils":9}],9:[function(t,e,n){var r="Webkit Moz O ms".split(" ");function i(t,e,n){for(var i=t.style,a=0;a<r.length;++a)i[r[a]+o(e)]=n;i[e]=n}function o(t){return t.charAt(0).toUpperCase()+t.slice(1)}function a(t){return!function(t){return"[object Array]"===Object.prototype.toString.call(t)}(t)&&"object"==typeof t&&!!t}function s(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}e.exports={extend:function t(e,n,r){for(var i in e=e||{},r=r||!1,n=n||{})if(n.hasOwnProperty(i)){var o=e[i],s=n[i];r&&a(o)&&a(s)?e[i]=t(o,s,r):e[i]=s}return e},render:function(t,e){var n=t;for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=new RegExp("\\{"+r+"\\}","g");n=n.replace(o,i)}return n},setStyle:i,setStyles:function(t,e){s(e,(function(e,n){null!=e&&(a(e)&&!0===e.prefix?i(t,n,e.value):t.style[n]=e)}))},capitalize:o,isString:function(t){return"string"==typeof t||t instanceof String},isFunction:function(t){return"function"==typeof t},isObject:a,forEachObject:s,floatEquals:function(t,e){return Math.abs(t-e)<.001},removeChildren:function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}}},{}]},{},[4])(4)}));