"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// packages/dev-tools/angular/index.ts
var index_exports = {};
__export(index_exports, {
  builderDevTools: () => builderDevTools
});
module.exports = __toCommonJS(index_exports);
async function builderDevTools() {
  if (typeof document !== "undefined" && window.location.hostname === "localhost") {
    let devToolsScript = document.head.querySelector(
      "script[data-builder-dev-tools]"
    );
    if (!devToolsScript) {
      devToolsScript = document.createElement("script");
      devToolsScript.setAttribute(
        "src",
        "http://localhost:5273/~builder-dev-tools.js"
      );
      devToolsScript.setAttribute("data-builder-dev-tools", "");
      devToolsScript.setAttribute("async", "");
      document.head.appendChild(devToolsScript);
    }
  }
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  builderDevTools
});
