(function (global) {
  global.ARQ = global.ARQ || {};
  ARQ.router = {
    go: function (name) {
      $('.arq-view').each(function () {
        $(this).removeClass('arq-view--active').attr('hidden', true);
      });
      $('#view-' + name).addClass('arq-view--active').removeAttr('hidden');
      ARQ.bus.emit(ARQ.EVENTS.ROUTE, name);
    },
  };
})(typeof window !== 'undefined' ? window : this);
