{"version":3,"file":"progressbar.min.js","sources":["progressbar.min.js"],"names":["e","exports","module","define","amd","f","window","global","self","ProgressBar","t","n","r","s","o","u","a","require","i","Error","code","l","call","length",1,"root","SHIFTY_DEBUG_NOW","Date","Tweenable","noop","each","obj","fn","key","Object","hasOwnProperty","shallowCopy","targetObj","srcObj","prop","defaults","target","src","tweenProps","forPosition","currentState","originalState","targetState","duration","timestamp","easing","normalizedPosition","tweenProp","formula","start","end","easingFunc","position","applyFilter","tweenable","filterName","filters","prototype","filter","args","_filterArgs","name","apply","timeoutHandler","step","schedule","timeoutHandler_endTime","timeoutHandler_currentTime","Math","min","now","timeoutHandler_isEnded","isPlaying","_timeoutHandler","UPDATE_TIME","stop","composeEasingObject","fromTweenParams","composedEasing","DEFAULT_EASING","opt_initialState","opt_config","this","_currentState","_configured","_scheduleFunction","DEFAULT_SCHEDULE_FUNCTION","setConfig","DEFAULT_DURATION","_now","requestAnimationFrame","webkitRequestAnimationFrame","oRequestAnimationFrame","msRequestAnimationFrame","mozCancelRequestAnimationFrame","mozRequestAnimationFrame","setTimeout","tween","_isTweening","undefined","_start","get","resume","config","_pausedAtTime","_step","_finish","finish","_duration","from","_originalState","_targetState","to","_timestamp","_easing","set","state","pause","_isPaused","gotoEnd","setScheduleFunction","scheduleFunction","dispose","linear","pos","easeInQuad","pow","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","easeInSine","cos","PI","easeOutSine","sin","easeInOutSine","easeInExpo","easeOutExpo","easeInOutExpo","easeInCirc","sqrt","easeOutCirc","easeInOutCirc","easeOutBounce","easeInBack","easeOutBack","easeInOutBack","elastic","swingFromTo","swingFrom","swingTo","bounce","bouncePast","easeFromTo","easeFrom","easeTo","cubicBezierAtTime","p1x","p1y","p2x","p2y","sampleCurveX","ax","bx","cx","sampleCurveY","ay","by","cy","sampleCurveDerivativeX","solveEpsilon","solve","x","epsilon","solveCurveX","fabs","t0","t1","t2","x2","d2","getCubicBezierTransition","x1","y1","y2","setBezierFunction","cubicBezierTransition","unsetBezierFunction","getInterpolatedValues","current","mockTweenable","interpolate","easingObject","filterArgs","interpolatedValues","getFormatChunksFrom","rawValues","prefix","getFormatChunksFrom_accumulator","rawValuesLength","push","getFormatStringFrom","formattedString","chunks","match","R_FORMAT_CHUNKS","R_NUMBER_COMPONENT","unshift","join","VALUE_PLACEHOLDER","sanitizeObjectForHexProps","stateObject","currentProp","R_HEX","sanitizeHexChunksToRGB","str","filterStringChunks","convertHexToRGB","hexString","rgbArr","hexToRGBArray","hex","replace","split","hexToRGBArray_returnArray","hexToDec","substr","parseInt","pattern","unfilteredString","pattenMatches","filteredString","currentChunk","pattenMatchesLength","shift","sanitizeRGBChunks","R_RGB","sanitizeRGBChunk","rgbChunk","numbers","R_UNFORMATTED_VALUES","numbersLength","sanitizedString","R_RGB_PREFIX","slice","getFormatManifests","manifestAccumulator","getValuesFrom","formatString","chunkNames","expandFormattedProperties","formatManifests","collapseFormattedProperties","formatChunks","extractPropertyChunks","valuesList","getValuesList","getFormattedValues","currentChunkName","extractedValues","chunkNamesLength","getValuesList_accumulator","formattedValueString","toFixed","expandEasingObject","tokenData","chunkLength","easingChunks","lastEasingChunk","collapseEasingObject","composedEasingString","RegExp","source","token","tweenCreated","fromState","toState","_tokenData","beforeTween","afterTween",2,"Progress","utils","Circle","_pathTemplate","arguments","constructor","_pathString","opts","strokeWidth","render","radius","2radius","_trailString","./progress","./utils",3,"Line","_initializeSvg","svg","setAttribute","center",4,"Square","Path","./circle","./line","./path","./square",5,"EASING_ALIASES","easeIn","easeOut","easeInOut","path","extend","_path","_opts","_tweenable","getTotalLength","style","strokeDasharray","strokeDashoffset","value","computedStyle","getComputedStyle","offset","getPropertyValue","parseFloat","progress","_stopTween","animate","cb","isFunction","passedOpts","defaultOpts","shiftyEasing","values","_resolveFromAndTo","getBoundingClientRect","newOffset","attachment","shifty",6,"DESTROYED_ERROR","CONSTRUCTOR_CALL_ERROR","container","element","svgView","_createSvgView","isString","document","querySelector","appendChild","newOpts","_progressPath","trail","destroy","parentNode","removeChild","color","trailColor","trailWidth","fill","createElementNS","trailPath","_createTrail","_createPath","pathString","_createPathElement",7,"_trailTemplate","w","width","halfOfStrokeWidth","startMargin",8,"destination","attrName","template","vars","rendered","val","regExpString","regExp","String"],"mappings":"CAAC,SAASA,GAAG,GAAG,gBAAiBC,UAAS,mBAAoBC,QAAOA,OAAOD,QAAQD,QAAS,IAAG,kBAAmBG,SAAQA,OAAOC,IAAID,UAAUH,OAAO,CAAC,GAAIK,EAAE,oBAAoBC,QAAOD,EAAEC,OAAO,mBAAoBC,QAAOF,EAAEE,OAAO,mBAAoBC,QAAOH,EAAEG,MAAMH,EAAEI,YAAYT,MAAM,WAAW,GAAIG,EAAsB,OAAO,SAAUH,GAAEU,EAAEC,EAAEC,GAAG,QAASC,GAAEC,EAAEC,GAAG,IAAIJ,EAAEG,GAAG,CAAC,IAAIJ,EAAEI,GAAG,CAAC,GAAIE,GAAkB,kBAATC,UAAqBA,OAAQ,KAAIF,GAAGC,EAAE,MAAOA,GAAEF,GAAE,EAAI,IAAGI,EAAE,MAAOA,GAAEJ,GAAE,EAAI,IAAIT,GAAE,GAAIc,OAAM,uBAAuBL,EAAE,IAAK,MAAMT,GAAEe,KAAK,mBAAmBf,EAAE,GAAIgB,GAAEV,EAAEG,IAAIb,WAAYS,GAAEI,GAAG,GAAGQ,KAAKD,EAAEpB,QAAQ,SAASD,GAAG,GAAIW,GAAED,EAAEI,GAAG,GAAGd,EAAG,OAAOa,GAAEF,EAAEA,EAAEX,IAAIqB,EAAEA,EAAEpB,QAAQD,EAAEU,EAAEC,EAAEC,GAAG,MAAOD,GAAEG,GAAGb,QAAkD,IAAI,GAA1CiB,GAAkB,kBAATD,UAAqBA,QAAgBH,EAAE,EAAEA,EAAEF,EAAEW,OAAOT,IAAID,EAAED,EAAEE,GAAI,OAAOD,KAAKW,GAAG,SAAS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