module.exports = "(function(e,t,i){var r=i(5894),n=i(4527),o=i(3896),l=i(4021),a=i(7152),c=n.get(\"stores/directive\"),f=\"optimizelyPreview\",v=function(e){a.getGlobal(f).push(e)};t.initialize=function(e){c.isSlave()&&function(e){var t=!1;if(r.isArray(__GLOBAL__)&&r.each(__GLOBAL__,(function(i){r.isArray(i)&&\"verifyPreviewProject\"===i[0]&&String(i[1])===e&&(t=!0)})),!t)throw new Error(\"Preview projectId: \"+e+\" does not match expected\")}(e),o.on({filter:{type:l.TYPES.ANALYTICS,name:\"trackEvent\"},handler:v}),o.on({filter:{type:l.TYPES.LIFECYCLE,name:\"viewActivated\"},handler:v}),o.on({filter:{type:l.TYPES.LIFECYCLE,name:\"layerDecided\"},handler:v}),o.on({filter:{type:\"error\"},publicOnly:!0,handler:v})},t.setupPreviewGlobal=function(){a.getGlobal(f)||a.setGlobal(f,[])},t.pushToPreviewGlobal=function(e){v(e)}})";