module.exports = "(function(e,t,a){var r=a(5894),i=a(7358),n=a(4527),o=a(4438),h=a(3896),s=a(1571),c=n.get(\"stores/history\"),p=a(4810),g=a(4727).Promise,l=a(9498),u=a(7152);function v(e){h.emit({type:\"viewTrigger\",name:\"URLChanged\",data:{source:e,newURL:u.getHref()}},!0)}e.exports=function(e){var t;t=function(){var e=c.getOriginalPushState().apply(this,arguments);return g.resolve().then((function(){v(\"pushState\")})).catch((function(e){p.error(\"Error while wrapPushState: \",e)})),e},s.dispatch(i.ENSURE_ORIGINAL_PUSHSTATE),void(u.getGlobal(\"history\").pushState=t),function(){var e=function(){var e=c.getOriginalReplaceState().apply(this,arguments);return g.resolve().then((function(){v(\"replaceState\")})).catch((function(e){p.error(\"Error while wrapReplaceState: \",e)})),e};s.dispatch(i.ENSURE_ORIGINAL_REPLACESTATE),u.getGlobal(\"history\").replaceState=e}(),u.addEventListener(\"popstate\",d,!1),u.addEventListener(\"hashchange\",f,!1),void h.on({filter:{type:\"viewTrigger\",name:\"URLChanged\"},handler:function(){l.getViewsAndActivate(o.ViewActivationTypes.URLChanged)}}),e.registerViewTrigger(\"URLChanged\")};var d=r.partial(v,\"popstate\"),f=r.partial(v,\"hashchange\")})";