'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.onRoute = exports.m = undefined;

var _m = require('./components/m');

var _Router = require('./components/Router');

// Avoid `console` errors in browsers that lack a console.
(function () {
  var method = void 0;
  var noop = function noop() {};
  var methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', 'timeline', 'timelineEnd', 'timeStamp', 'trace', 'warn'];
  var length = methods.length;
  var console = window.console = window.console || {};

  while (length--) {
    method = methods[length];

    // Only stub undefined methods.
    if (!console[method]) {
      console[method] = noop;
    }
  }
})();
// Change from m to RouteWhen or sth like that
// import {TODO} from './components/Router'

// change from m to Switch(CaseWhen...
// update the switch code too, it changed in between version
// TODO: also adapt the tests!!
//import {TODO} from './components/Switch'

exports.m = _m.m;
exports.onRoute = _Router.onRoute;