resolveDataSource(path) {
    try {
      const parts2 = path.split(/[\.\[\]\'\"]/).filter(Boolean);
      let data = window;
      for (const part of parts2) {
        data = data == null ? void 0 : data[part];
      }
      return data;
    } catch (error) {
      log("error", "uibuilder:resolveDataSource", 'Error resolving data source "'.concat(path, "\", returned 'null'. ").concat(error.message))();
      return null;
    }
  }
Convert a string attribute into an variable/constant reference
Used to resolve data sources in attributes
@param {string} path The string path to resolve, must be relative to the `window` global scope
@returns {*} The resolved data source or null