{"version":3,"sources":["firmin.js"],"names":["Firmin","prefix","i","test","document","createElement","prefixes","style","cssText","TransformMatrix","vector","c","this","prototype","multiply","t","n","Array","build","join","Transform","origin","ctm","centre","pointToVector","methods","parse","description","context","rest","transform","property","toVector","getOrigin","indexOf","result","remainder","matrix","properties","translate","distances","x","y","parseInt","translateX","distance","translateY","scale","magnitudes","scaleX","magnitude","scaleY","skew","parseAngle","Parser","angle2rads","angleToRadians","apply","Math","tan","skewX","skewY","rotate","angle","cos","sin","Transition","duration","delay","timingFunction","transition","p","parseTime","hasDuration","getDuration","hasDelay","getDelay","Animation","tsp","trp","callback","getTotalDuration","exec","element","Animated","operations","index","run","animation","self","setTimeout","fireCallback","fired","call","__animate__","push","animate","animateR","previous","length","el","animated","forEach","method","relativeMethod","value","NUMBER_PATTERN","parseNumeric","units","def","input","unit","match","filter","u","substr","parseFloat","type","ratio","PI","point","z"],"mappings":"AAUAA,OAA4B,oBAAXA,OAA0B,GAAKA,OAYhDA,OAAOC,OAAS,WACZ,IAEIA,EAAQC,EAFRC,EAAWC,SAASC,cAAc,OAClCC,EAAW,CAAC,IAAK,MAAO,UAG5B,IAAKJ,EAAI,EAAGA,EAAI,EAAGA,IAIf,GAHAD,EAASK,EAASJ,GAClBC,EAAKI,MAAMC,QAAU,IAAMP,EAAS,iCACrB,QAAXA,IAAkBA,EAAS,YAC0B,IAA9CE,EAAKI,MAAMN,EAAS,sBAC3B,OAAOA,EAVH,GAkChBD,OAAOS,gBAAkB,SAASC,GAC9B,IAAIR,EAAGS,EAIP,GAFAC,KAAKF,OAAS,CAAC,EAAG,EAAG,EAAG,EAAG,EAAG,GAER,iBAAXA,EACP,IAAKR,EAAI,EAAGA,EAAI,EAAGA,IACfU,KAAKF,OAAOR,GAAgC,iBAAnBS,EAAID,EAAOR,IAAmBS,EAAIC,KAAKF,OAAOR,IAKnFF,OAAOS,gBAAgBI,UAAUC,SAAW,SAASC,GACjD,IAAIC,EAAI,IAAIC,MAAM,GAAIN,EAA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