/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/

(function initCjs() {
  // eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
  const globalThisRecord = globalThis;
  globalThisRecord['__name'] ??= name;
  const originalRequire = require;
  if (originalRequire && !originalRequire.__isPatched) {
    // eslint-disable-next-line no-global-assign, no-implicit-globals -- We need to patch the `require()` function.
    require = Object.assign(
      (id) => requirePatched(id),
      originalRequire,
      {
        __isPatched: true
      }
    );
  }

  const newFuncs = {
    __extractDefault() {
      return extractDefault;
    },
    process() {
      const browserProcess = {
        browser: true,
        cwd() {
          return '/';
        },
        env: {},
        platform: 'android'
      };
      return browserProcess;
    }
  };

  for (const key of Object.keys(newFuncs)) {
    globalThisRecord[key] ??= newFuncs[key]?.();
  }

  function name(obj) {
    return obj;
  }

  function extractDefault(module) {
    return module && module.__esModule && 'default' in module ? module.default : module;
  }

  const OBSIDIAN_BUILT_IN_MODULE_NAMES = [
  'obsidian',
  '@codemirror/autocomplete',
  '@codemirror/collab',
  '@codemirror/commands',
  '@codemirror/language',
  '@codemirror/lint',
  '@codemirror/search',
  '@codemirror/state',
  '@codemirror/text',
  '@codemirror/view',
  '@lezer/common',
  '@lezer/lr',
  '@lezer/highlight'];


  const DEPRECATED_OBSIDIAN_BUILT_IN_MODULE_NAMES = [
  '@codemirror/closebrackets',
  '@codemirror/comment',
  '@codemirror/fold',
  '@codemirror/gutter',
  '@codemirror/highlight',
  '@codemirror/history',
  '@codemirror/matchbrackets',
  '@codemirror/panel',
  '@codemirror/rangeset',
  '@codemirror/rectangular-selection',
  '@codemirror/stream-parser',
  '@codemirror/tooltip'];


  function requirePatched(id) {
    if (OBSIDIAN_BUILT_IN_MODULE_NAMES.includes(id) || DEPRECATED_OBSIDIAN_BUILT_IN_MODULE_NAMES.includes(id)) {
      return originalRequire?.(id);
    }

    // eslint-disable-next-line @typescript-eslint/no-deprecated, obsidianmd/no-global-this  -- Need access to app. Actively use globalThis.
    if (globalThis.app.isMobile) {
      if (id === 'process' || id === 'node:process') {
        // eslint-disable-next-line no-console -- Valid usage.
        console.debug(`The most likely you can safely ignore this error. Module not found: ${id}. Fake process object is returned instead.`);
        // eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
        return globalThis.process;
      }
    } else {
      const module = originalRequire?.(id);
      if (module) {
        return extractDefault(module);
      }
    }

    // eslint-disable-next-line no-console -- Valid usage.
    console.debug(`The most likely you can safely ignore this error. Module not found: ${id}. Empty object is returned instead.`);
    return {};
  }
})();

"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var setting_components_exports = {};
__export(setting_components_exports, {
  "checkbox-component": () => checkbox_component,
  "code-highlighter-component": () => code_highlighter_component,
  "date-component": () => date_component,
  "date-time-component": () => date_time_component,
  "email-component": () => email_component,
  "file-component": () => file_component,
  "month-component": () => month_component,
  "multiple-dropdown-component": () => multiple_dropdown_component,
  "multiple-email-component": () => multiple_email_component,
  "multiple-file-component": () => multiple_file_component,
  "multiple-text-component": () => multiple_text_component,
  "number-component": () => number_component,
  "password-component": () => password_component,
  "setting-component-wrapper": () => setting_component_wrapper,
  "telephone-component": () => telephone_component,
  "text-based-component": () => text_based_component,
  "time-component": () => time_component,
  "tri-state-checkbox-component": () => tri_state_checkbox_component,
  "typed-dropdown-component": () => typed_dropdown_component,
  "typed-multiple-dropdown-component": () => typed_multiple_dropdown_component,
  "typed-range-text-component": () => typed_range_text_component,
  "typed-text-component": () => typed_text_component,
  "url-component": () => url_component,
  "validator-component": () => validator_component,
  "value-component-with-change-tracking": () => value_component_with_change_tracking,
  "week-component": () => week_component
});
module.exports = __toCommonJS(setting_components_exports);
var checkbox_component = __toESM(__extractDefault(require('./checkbox-component.cjs')), 1);
var code_highlighter_component = __toESM(__extractDefault(require('./code-highlighter-component.cjs')), 1);
var date_component = __toESM(__extractDefault(require('./date-component.cjs')), 1);
var date_time_component = __toESM(__extractDefault(require('./date-time-component.cjs')), 1);
var email_component = __toESM(__extractDefault(require('./email-component.cjs')), 1);
var file_component = __toESM(__extractDefault(require('./file-component.cjs')), 1);
var month_component = __toESM(__extractDefault(require('./month-component.cjs')), 1);
var multiple_dropdown_component = __toESM(__extractDefault(require('./multiple-dropdown-component.cjs')), 1);
var multiple_email_component = __toESM(__extractDefault(require('./multiple-email-component.cjs')), 1);
var multiple_file_component = __toESM(__extractDefault(require('./multiple-file-component.cjs')), 1);
var multiple_text_component = __toESM(__extractDefault(require('./multiple-text-component.cjs')), 1);
var number_component = __toESM(__extractDefault(require('./number-component.cjs')), 1);
var password_component = __toESM(__extractDefault(require('./password-component.cjs')), 1);
var setting_component_wrapper = __toESM(__extractDefault(require('./setting-component-wrapper.cjs')), 1);
var telephone_component = __toESM(__extractDefault(require('./telephone-component.cjs')), 1);
var text_based_component = __toESM(__extractDefault(require('./text-based-component.cjs')), 1);
var time_component = __toESM(__extractDefault(require('./time-component.cjs')), 1);
var tri_state_checkbox_component = __toESM(__extractDefault(require('./tri-state-checkbox-component.cjs')), 1);
var typed_dropdown_component = __toESM(__extractDefault(require('./typed-dropdown-component.cjs')), 1);
var typed_multiple_dropdown_component = __toESM(__extractDefault(require('./typed-multiple-dropdown-component.cjs')), 1);
var typed_range_text_component = __toESM(__extractDefault(require('./typed-range-text-component.cjs')), 1);
var typed_text_component = __toESM(__extractDefault(require('./typed-text-component.cjs')), 1);
var url_component = __toESM(__extractDefault(require('./url-component.cjs')), 1);
var validator_component = __toESM(__extractDefault(require('./validator-component.cjs')), 1);
var value_component_with_change_tracking = __toESM(__extractDefault(require('./value-component-with-change-tracking.cjs')), 1);
var week_component = __toESM(__extractDefault(require('./week-component.cjs')), 1);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  "checkbox-component": null,
  "code-highlighter-component": null,
  "date-component": null,
  "date-time-component": null,
  "email-component": null,
  "file-component": null,
  "month-component": null,
  "multiple-dropdown-component": null,
  "multiple-email-component": null,
  "multiple-file-component": null,
  "multiple-text-component": null,
  "number-component": null,
  "password-component": null,
  "setting-component-wrapper": null,
  "telephone-component": null,
  "text-based-component": null,
  "time-component": null,
  "tri-state-checkbox-component": null,
  "typed-dropdown-component": null,
  "typed-multiple-dropdown-component": null,
  "typed-range-text-component": null,
  "typed-text-component": null,
  "url-component": null,
  "validator-component": null,
  "value-component-with-change-tracking": null,
  "week-component": null
});
//# sourceMappingURL=data:application/json;base64, 
