docs: function getLocation(source) {
      return {
          ...source.location,
          getPath() {
              return modeObject.value === "hash" ? this.hash.slice(1) : this.pathname
          },
          state: source.history.state,
          key: (source.history.state && source.history.state.key) || "initial"
      };
  }