module.exports = "(function(e,r,a){var t=a(7358),n=a(280).v,i=a(9404),m=a(1571),o=a(7152),_=a(4527).get(\"stores/rum\"),u=\"optimizely:\",E=r.Error=n(\"PerformanceError\");function d(){return o.getGlobal(\"performance\")}r.time=function(e){if(__PROFILE__||_.getSampleRum()){var r=d();if(r&&r.mark){var a=u+e;r.clearMarks(a+\"Begin\"),r.mark(a+\"Begin\")}}},r.timeEnd=function(e){if(__PROFILE__||_.getSampleRum()){var r=d();if(r&&r.mark){var a=u+e,n=r.getEntriesByName(a+\"Begin\");if(0===n.length)throw new E(\"Called timeEnd without matching time: \"+e);r.clearMarks(a+\"End\"),r.mark(a+\"End\");var i=e+\"Time\",o=r.getEntriesByName(a+\"End\")[0].startTime-n[0].startTime;if(m.dispatch(t.SET_PERFORMANCE_MARKS_DATA,{name:i,data:{startTime:Math.round(1e3*n[0].startTime)/1e3,duration:Math.round(1e3*o)/1e3}}),__PROFILE__){var f=u+i;r.measure(f,a+\"Begin\",a+\"End\")}}}},r.setMark=function(e,r,a){if(__PROFILE__||_.getSampleRum()){var n=d();if(n&&n.mark){var i=u+e;n.mark(i),m.dispatch(t.SET_PERFORMANCE_MARKS_DATA,{name:e,data:{startTime:Math.round(1e3*r)/1e3,duration:Math.round(1e3*a)/1e3}})}}},r.now=function(){var e=d();return e?e.now():i.now()}})";