import { x as e, y as t, s as r, F as n } from "./antd-2abdded3.js";
import { i9 as i, hE as o, eU as a, fA as s, a8 as c, e8 as l, dI as p, ei as d, ej as u, ia as f, ib as h, el as m, dH as y, ic as g, id as b, ie as v, ig as w, ih as T, ii as j, ij as C, ik as k, eV as x, il as A, dc as E, ac as O, im as S, f7 as P, io as L, ip as I, iq as H, ir as M, is as N, it as R } from "./index-f927b013.js";
import { l as D } from "./lodash-b5661970.js";
import q, { lazy as V, useContext as z, useState as B, useCallback as _, useMemo as K, useLayoutEffect as U, Suspense as $, useEffect as F } from "react";
import { lz as Y, lI as W, lJ as G } from "./ant-design-icons-6bfdc7d5.js";
import { r as J, P as X } from "./fontawesome-3904a214.js";
import { g as Q } from "./alasql-f60045ee.js";
import { u as Z } from "./styled-components-7cfa37e6.js";
import "react-dom";
import "./dayjs-2035e031.js";
import "./axios-04f95181.js";
import "./redux-devtools-8dd21e4f.js";
import "./dnd-kit-8227a2db.js";
import "./moment-059406e8.js";
import "./numbro-47982265.js";
import "./papaparse-07642d76.js";
import "./uuid-bd83cae2.js";
import "./supabase-b2e314d0.js";
import "./fetch-648a91f6.js";
import "./react-draggable-ed505bfc.js";
import "./remark-gfm-18306abe.js";
import "./buffer-d3713d77.js";
import "./rehype-raw-6ebcba88.js";
import "./parse5-f837f753.js";
import "./rehype-sanitize-953d0761.js";
import "./simplebar-react-2133d981.js";
import "./react-best-gradient-color-picker-92c01739.js";
import "./ua-parser-js-c952c07b.js";
import "./clsx-469c2c43.js";
import "./loglevel-b4003767.js";
import "./file-saver-55285fc1.js";
import "./codemirror-8412b963.js";
import "./really-relaxed-json-056be70b.js";
import "./immer-c0428a8d.js";
import "./hotkeys-js-699906bc.js";
import "./cnchar-e1339167.js";
import "./react-documents-041601c7.js";
import "./react-sortable-hoc-4fbe0c32.js";
import "./sql-formatter-577b4ab0.js";
import "./rc-trigger-3f038851.js";
import "./react-json-view-5330ce92.js";
import "./qrcode-react-d377d762.js";
var ee, te = q, re = (ee = te) && "object" == typeof ee && "default" in ee ? ee.default : ee;
function ne(e2, t2, r2) {
  return t2 in e2 ? Object.defineProperty(e2, t2, { value: r2, enumerable: true, configurable: true, writable: true }) : e2[t2] = r2, e2;
}
var ie = !("undefined" == typeof window || !window.document || !window.document.createElement);
var oe = function(e2, t2, r2) {
  if ("function" != typeof e2)
    throw new Error("Expected reducePropsToState to be a function.");
  if ("function" != typeof t2)
    throw new Error("Expected handleStateChangeOnClient to be a function.");
  if (void 0 !== r2 && "function" != typeof r2)
    throw new Error("Expected mapStateOnServer to either be undefined or a function.");
  return function(n2) {
    if ("function" != typeof n2)
      throw new Error("Expected WrappedComponent to be a React component.");
    var i2, o2 = [];
    function a2() {
      i2 = e2(o2.map(function(e3) {
        return e3.props;
      })), s2.canUseDOM ? t2(i2) : r2 && (i2 = r2(i2));
    }
    var s2 = function(e3) {
      var t3, r3;
      function s3() {
        return e3.apply(this, arguments) || this;
      }
      r3 = e3, (t3 = s3).prototype = Object.create(r3.prototype), t3.prototype.constructor = t3, t3.__proto__ = r3, s3.peek = function() {
        return i2;
      }, s3.rewind = function() {
        if (s3.canUseDOM)
          throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");
        var e4 = i2;
        return i2 = void 0, o2 = [], e4;
      };
      var c2 = s3.prototype;
      return c2.UNSAFE_componentWillMount = function() {
        o2.push(this), a2();
      }, c2.componentDidUpdate = function() {
        a2();
      }, c2.componentWillUnmount = function() {
        var e4 = o2.indexOf(this);
        o2.splice(e4, 1), a2();
      }, c2.render = function() {
        return re.createElement(n2, this.props);
      }, s3;
    }(te.PureComponent);
    return ne(s2, "displayName", "SideEffect(" + function(e3) {
      return e3.displayName || e3.name || "Component";
    }(n2) + ")"), ne(s2, "canUseDOM", ie), s2;
  };
};
const ae = Q(oe);
const se = Q(J());
var ce, le, pe, de, ue = "bodyAttributes", fe = "htmlAttributes", he = "titleAttributes", me = { BASE: "base", BODY: "body", HEAD: "head", HTML: "html", LINK: "link", META: "meta", NOSCRIPT: "noscript", SCRIPT: "script", STYLE: "style", TITLE: "title" }, ye = Object.keys(me).map(function(e2) {
  return me[e2];
}), ge = "charset", be = "cssText", ve = "href", we = "http-equiv", Te = "innerHTML", je = "itemprop", Ce = "name", ke = "property", xe = "rel", Ae = "src", Ee = "target", Oe = { accesskey: "accessKey", charset: "charSet", class: "className", contenteditable: "contentEditable", contextmenu: "contextMenu", "http-equiv": "httpEquiv", itemprop: "itemProp", tabindex: "tabIndex" }, Se = "defaultTitle", Pe = "defer", Le = "encodeSpecialCharacters", Ie = "onChangeClientState", He = "titleTemplate", Me = Object.keys(Oe).reduce(function(e2, t2) {
  return e2[Oe[t2]] = t2, e2;
}, {}), Ne = [me.NOSCRIPT, me.SCRIPT, me.STYLE], Re = "data-react-helmet", De = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e2) {
  return typeof e2;
} : function(e2) {
  return e2 && "function" == typeof Symbol && e2.constructor === Symbol && e2 !== Symbol.prototype ? "symbol" : typeof e2;
}, qe = function() {
  function e2(e3, t2) {
    for (var r2 = 0; r2 < t2.length; r2++) {
      var n2 = t2[r2];
      n2.enumerable = n2.enumerable || false, n2.configurable = true, "value" in n2 && (n2.writable = true), Object.defineProperty(e3, n2.key, n2);
    }
  }
  return function(t2, r2, n2) {
    return r2 && e2(t2.prototype, r2), n2 && e2(t2, n2), t2;
  };
}(), Ve = Object.assign || function(e2) {
  for (var t2 = 1; t2 < arguments.length; t2++) {
    var r2 = arguments[t2];
    for (var n2 in r2)
      Object.prototype.hasOwnProperty.call(r2, n2) && (e2[n2] = r2[n2]);
  }
  return e2;
}, ze = function(e2, t2) {
  var r2 = {};
  for (var n2 in e2)
    t2.indexOf(n2) >= 0 || Object.prototype.hasOwnProperty.call(e2, n2) && (r2[n2] = e2[n2]);
  return r2;
}, Be = function(e2) {
  return false === (!(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1]) ? String(e2) : String(e2).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
}, _e = function(e2) {
  var t2 = Ye(e2, me.TITLE), r2 = Ye(e2, He);
  if (r2 && t2)
    return r2.replace(/%s/g, function() {
      return Array.isArray(t2) ? t2.join("") : t2;
    });
  var n2 = Ye(e2, Se);
  return t2 || n2 || void 0;
}, Ke = function(e2) {
  return Ye(e2, Ie) || function() {
  };
}, Ue = function(e2, t2) {
  return t2.filter(function(t3) {
    return void 0 !== t3[e2];
  }).map(function(t3) {
    return t3[e2];
  }).reduce(function(e3, t3) {
    return Ve({}, e3, t3);
  }, {});
}, $e = function(e2, t2) {
  return t2.filter(function(e3) {
    return void 0 !== e3[me.BASE];
  }).map(function(e3) {
    return e3[me.BASE];
  }).reverse().reduce(function(t3, r2) {
    if (!t3.length)
      for (var n2 = Object.keys(r2), i2 = 0; i2 < n2.length; i2++) {
        var o2 = n2[i2].toLowerCase();
        if (-1 !== e2.indexOf(o2) && r2[o2])
          return t3.concat(r2);
      }
    return t3;
  }, []);
}, Fe = function(e2, t2, r2) {
  var n2 = {};
  return r2.filter(function(t3) {
    return !!Array.isArray(t3[e2]) || (void 0 !== t3[e2] && Qe("Helmet: " + e2 + ' should be of type "Array". Instead found type "' + De(t3[e2]) + '"'), false);
  }).map(function(t3) {
    return t3[e2];
  }).reverse().reduce(function(e3, r3) {
    var i2 = {};
    r3.filter(function(e4) {
      for (var r4 = void 0, o3 = Object.keys(e4), a3 = 0; a3 < o3.length; a3++) {
        var s3 = o3[a3], c3 = s3.toLowerCase();
        -1 === t2.indexOf(c3) || r4 === xe && "canonical" === e4[r4].toLowerCase() || c3 === xe && "stylesheet" === e4[c3].toLowerCase() || (r4 = c3), -1 === t2.indexOf(s3) || s3 !== Te && s3 !== be && s3 !== je || (r4 = s3);
      }
      if (!r4 || !e4[r4])
        return false;
      var l2 = e4[r4].toLowerCase();
      return n2[r4] || (n2[r4] = {}), i2[r4] || (i2[r4] = {}), !n2[r4][l2] && (i2[r4][l2] = true, true);
    }).reverse().forEach(function(t3) {
      return e3.push(t3);
    });
    for (var o2 = Object.keys(i2), a2 = 0; a2 < o2.length; a2++) {
      var s2 = o2[a2], c2 = se({}, n2[s2], i2[s2]);
      n2[s2] = c2;
    }
    return e3;
  }, []).reverse();
}, Ye = function(e2, t2) {
  for (var r2 = e2.length - 1; r2 >= 0; r2--) {
    var n2 = e2[r2];
    if (n2.hasOwnProperty(t2))
      return n2[t2];
  }
  return null;
}, We = (ce = Date.now(), function(e2) {
  var t2 = Date.now();
  t2 - ce > 16 ? (ce = t2, e2(t2)) : setTimeout(function() {
    We(e2);
  }, 0);
}), Ge = function(e2) {
  return clearTimeout(e2);
}, Je = "undefined" != typeof window ? window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || We : global.requestAnimationFrame || We, Xe = "undefined" != typeof window ? window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || Ge : global.cancelAnimationFrame || Ge, Qe = function(e2) {
  return console && "function" == typeof console.warn && void 0;
}, Ze = null, et = function(e2, t2) {
  var r2 = e2.baseTag, n2 = e2.bodyAttributes, i2 = e2.htmlAttributes, o2 = e2.linkTags, a2 = e2.metaTags, s2 = e2.noscriptTags, c2 = e2.onChangeClientState, l2 = e2.scriptTags, p2 = e2.styleTags, d2 = e2.title, u2 = e2.titleAttributes;
  nt(me.BODY, n2), nt(me.HTML, i2), rt(d2, u2);
  var f2 = { baseTag: it(me.BASE, r2), linkTags: it(me.LINK, o2), metaTags: it(me.META, a2), noscriptTags: it(me.NOSCRIPT, s2), scriptTags: it(me.SCRIPT, l2), styleTags: it(me.STYLE, p2) }, h2 = {}, m2 = {};
  Object.keys(f2).forEach(function(e3) {
    var t3 = f2[e3], r3 = t3.newTags, n3 = t3.oldTags;
    r3.length && (h2[e3] = r3), n3.length && (m2[e3] = f2[e3].oldTags);
  }), t2 && t2(), c2(e2, h2, m2);
}, tt = function(e2) {
  return Array.isArray(e2) ? e2.join("") : e2;
}, rt = function(e2, t2) {
  void 0 !== e2 && document.title !== e2 && (document.title = tt(e2)), nt(me.TITLE, t2);
}, nt = function(e2, t2) {
  var r2 = document.getElementsByTagName(e2)[0];
  if (r2) {
    for (var n2 = r2.getAttribute(Re), i2 = n2 ? n2.split(",") : [], o2 = [].concat(i2), a2 = Object.keys(t2), s2 = 0; s2 < a2.length; s2++) {
      var c2 = a2[s2], l2 = t2[c2] || "";
      r2.getAttribute(c2) !== l2 && r2.setAttribute(c2, l2), -1 === i2.indexOf(c2) && i2.push(c2);
      var p2 = o2.indexOf(c2);
      -1 !== p2 && o2.splice(p2, 1);
    }
    for (var d2 = o2.length - 1; d2 >= 0; d2--)
      r2.removeAttribute(o2[d2]);
    i2.length === o2.length ? r2.removeAttribute(Re) : r2.getAttribute(Re) !== a2.join(",") && r2.setAttribute(Re, a2.join(","));
  }
}, it = function(e2, t2) {
  var r2 = document.head || document.querySelector(me.HEAD), n2 = r2.querySelectorAll(e2 + "[" + Re + "]"), i2 = Array.prototype.slice.call(n2), o2 = [], a2 = void 0;
  return t2 && t2.length && t2.forEach(function(t3) {
    var r3 = document.createElement(e2);
    for (var n3 in t3)
      if (t3.hasOwnProperty(n3))
        if (n3 === Te)
          r3.innerHTML = t3.innerHTML;
        else if (n3 === be)
          r3.styleSheet ? r3.styleSheet.cssText = t3.cssText : r3.appendChild(document.createTextNode(t3.cssText));
        else {
          var s2 = void 0 === t3[n3] ? "" : t3[n3];
          r3.setAttribute(n3, s2);
        }
    r3.setAttribute(Re, "true"), i2.some(function(e3, t4) {
      return a2 = t4, r3.isEqualNode(e3);
    }) ? i2.splice(a2, 1) : o2.push(r3);
  }), i2.forEach(function(e3) {
    return e3.parentNode.removeChild(e3);
  }), o2.forEach(function(e3) {
    return r2.appendChild(e3);
  }), { oldTags: i2, newTags: o2 };
}, ot = function(e2) {
  return Object.keys(e2).reduce(function(t2, r2) {
    var n2 = void 0 !== e2[r2] ? r2 + '="' + e2[r2] + '"' : "" + r2;
    return t2 ? t2 + " " + n2 : n2;
  }, "");
}, at = function(e2) {
  var t2 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
  return Object.keys(e2).reduce(function(t3, r2) {
    return t3[Oe[r2] || r2] = e2[r2], t3;
  }, t2);
}, st = function(e2, t2, r2) {
  switch (e2) {
    case me.TITLE:
      return { toComponent: function() {
        return e3 = t2.title, r3 = t2.titleAttributes, (n2 = { key: e3 })[Re] = true, i2 = at(r3, n2), [Y(me.TITLE, { ...i2, children: e3 })];
        var e3, r3, n2, i2;
      }, toString: function() {
        return function(e3, t3, r3, n2) {
          var i2 = ot(r3), o2 = tt(t3);
          return i2 ? "<" + e3 + " " + Re + '="true" ' + i2 + ">" + Be(o2, n2) + "</" + e3 + ">" : "<" + e3 + " " + Re + '="true">' + Be(o2, n2) + "</" + e3 + ">";
        }(e2, t2.title, t2.titleAttributes, r2);
      } };
    case ue:
    case fe:
      return { toComponent: function() {
        return at(t2);
      }, toString: function() {
        return ot(t2);
      } };
    default:
      return { toComponent: function() {
        return function(e3, t3) {
          return t3.map(function(t4, r3) {
            var n2, i2 = ((n2 = { key: r3 })[Re] = true, n2);
            return Object.keys(t4).forEach(function(e4) {
              var r4 = Oe[e4] || e4;
              if (r4 === Te || r4 === be) {
                var n3 = t4.innerHTML || t4.cssText;
                i2.dangerouslySetInnerHTML = { __html: n3 };
              } else
                i2[r4] = t4[e4];
            }), q.createElement(e3, i2);
          });
        }(e2, t2);
      }, toString: function() {
        return function(e3, t3, r3) {
          return t3.reduce(function(t4, n2) {
            var i2 = Object.keys(n2).filter(function(e4) {
              return !(e4 === Te || e4 === be);
            }).reduce(function(e4, t5) {
              var i3 = void 0 === n2[t5] ? t5 : t5 + '="' + Be(n2[t5], r3) + '"';
              return e4 ? e4 + " " + i3 : i3;
            }, ""), o2 = n2.innerHTML || n2.cssText || "", a2 = -1 === Ne.indexOf(e3);
            return t4 + "<" + e3 + " " + Re + '="true" ' + i2 + (a2 ? "/>" : ">" + o2 + "</" + e3 + ">");
          }, "");
        }(e2, t2, r2);
      } };
  }
}, ct = function(e2) {
  var t2 = e2.baseTag, r2 = e2.bodyAttributes, n2 = e2.encode, i2 = e2.htmlAttributes, o2 = e2.linkTags, a2 = e2.metaTags, s2 = e2.noscriptTags, c2 = e2.scriptTags, l2 = e2.styleTags, p2 = e2.title, d2 = void 0 === p2 ? "" : p2, u2 = e2.titleAttributes;
  return { base: st(me.BASE, t2, n2), bodyAttributes: st(ue, r2, n2), htmlAttributes: st(fe, i2, n2), link: st(me.LINK, o2, n2), meta: st(me.META, a2, n2), noscript: st(me.NOSCRIPT, s2, n2), script: st(me.SCRIPT, c2, n2), style: st(me.STYLE, l2, n2), title: st(me.TITLE, { title: d2, titleAttributes: u2 }, n2) };
}, lt = ae(function(e2) {
  return { baseTag: $e([ve, Ee], e2), bodyAttributes: Ue(ue, e2), defer: Ye(e2, Pe), encode: Ye(e2, Le), htmlAttributes: Ue(fe, e2), linkTags: Fe(me.LINK, [xe, ve], e2), metaTags: Fe(me.META, [Ce, ge, we, ke, je], e2), noscriptTags: Fe(me.NOSCRIPT, [Te], e2), onChangeClientState: Ke(e2), scriptTags: Fe(me.SCRIPT, [Ae, Te], e2), styleTags: Fe(me.STYLE, [be], e2), title: _e(e2), titleAttributes: Ue(he, e2) };
}, function(e2) {
  Ze && Xe(Ze), e2.defer ? Ze = Je(function() {
    et(e2, function() {
      Ze = null;
    });
  }) : (et(e2), Ze = null);
}, ct)(function() {
  return null;
}), pt = (le = lt, de = pe = function(t2) {
  function r2() {
    return function(e2, t3) {
      if (!(e2 instanceof t3))
        throw new TypeError("Cannot call a class as a function");
    }(this, r2), function(e2, t3) {
      if (!e2)
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
      return !t3 || "object" != typeof t3 && "function" != typeof t3 ? e2 : t3;
    }(this, t2.apply(this, arguments));
  }
  return function(e2, t3) {
    if ("function" != typeof t3 && null !== t3)
      throw new TypeError("Super expression must either be null or a function, not " + typeof t3);
    e2.prototype = Object.create(t3 && t3.prototype, { constructor: { value: e2, enumerable: false, writable: true, configurable: true } }), t3 && (Object.setPrototypeOf ? Object.setPrototypeOf(e2, t3) : e2.__proto__ = t3);
  }(r2, t2), r2.prototype.shouldComponentUpdate = function(t3) {
    return !e(this.props, t3);
  }, r2.prototype.mapNestedChildrenToProps = function(e2, t3) {
    if (!t3)
      return null;
    switch (e2.type) {
      case me.SCRIPT:
      case me.NOSCRIPT:
        return { innerHTML: t3 };
      case me.STYLE:
        return { cssText: t3 };
    }
    throw new Error("<" + e2.type + " /> elements are self-closing and can not contain children. Refer to our API for more information.");
  }, r2.prototype.flattenArrayTypeChildren = function(e2) {
    var t3, r3 = e2.child, n2 = e2.arrayTypeChildren, i2 = e2.newChildProps, o2 = e2.nestedChildren;
    return Ve({}, n2, ((t3 = {})[r3.type] = [].concat(n2[r3.type] || [], [Ve({}, i2, this.mapNestedChildrenToProps(r3, o2))]), t3));
  }, r2.prototype.mapObjectTypeChildren = function(e2) {
    var t3, r3, n2 = e2.child, i2 = e2.newProps, o2 = e2.newChildProps, a2 = e2.nestedChildren;
    switch (n2.type) {
      case me.TITLE:
        return Ve({}, i2, ((t3 = {})[n2.type] = a2, t3.titleAttributes = Ve({}, o2), t3));
      case me.BODY:
        return Ve({}, i2, { bodyAttributes: Ve({}, o2) });
      case me.HTML:
        return Ve({}, i2, { htmlAttributes: Ve({}, o2) });
    }
    return Ve({}, i2, ((r3 = {})[n2.type] = Ve({}, o2), r3));
  }, r2.prototype.mapArrayTypeChildrenToProps = function(e2, t3) {
    var r3 = Ve({}, t3);
    return Object.keys(e2).forEach(function(t4) {
      var n2;
      r3 = Ve({}, r3, ((n2 = {})[t4] = e2[t4], n2));
    }), r3;
  }, r2.prototype.warnOnInvalidChildren = function(e2, t3) {
    if ("production" !== process.env.NODE_ENV) {
      if (!ye.some(function(t4) {
        return e2.type === t4;
      }))
        return "function" == typeof e2.type ? Qe("You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.") : Qe("Only elements types " + ye.join(", ") + " are allowed. Helmet does not support rendering <" + e2.type + "> elements. Refer to our API for more information.");
      if (t3 && "string" != typeof t3 && (!Array.isArray(t3) || t3.some(function(e3) {
        return "string" != typeof e3;
      })))
        throw new Error("Helmet expects a string as a child of <" + e2.type + ">. Did you forget to wrap your children in braces? ( <" + e2.type + ">{``}</" + e2.type + "> ) Refer to our API for more information.");
    }
    return true;
  }, r2.prototype.mapChildrenToProps = function(e2, t3) {
    var r3 = this, n2 = {};
    return q.Children.forEach(e2, function(e3) {
      if (e3 && e3.props) {
        var i2 = e3.props, o2 = i2.children, a2 = function(e4) {
          var t4 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
          return Object.keys(e4).reduce(function(t5, r4) {
            return t5[Me[r4] || r4] = e4[r4], t5;
          }, t4);
        }(ze(i2, ["children"]));
        switch (r3.warnOnInvalidChildren(e3, o2), e3.type) {
          case me.LINK:
          case me.META:
          case me.NOSCRIPT:
          case me.SCRIPT:
          case me.STYLE:
            n2 = r3.flattenArrayTypeChildren({ child: e3, arrayTypeChildren: n2, newChildProps: a2, nestedChildren: o2 });
            break;
          default:
            t3 = r3.mapObjectTypeChildren({ child: e3, newProps: t3, newChildProps: a2, nestedChildren: o2 });
        }
      }
    }), t3 = this.mapArrayTypeChildrenToProps(n2, t3);
  }, r2.prototype.render = function() {
    var e2 = this.props, t3 = e2.children, r3 = ze(e2, ["children"]), n2 = Ve({}, r3);
    return t3 && (n2 = this.mapChildrenToProps(t3, n2)), Y(le, { ...n2 });
  }, qe(r2, null, [{ key: "canUseDOM", set: function(e2) {
    le.canUseDOM = e2;
  } }]), r2;
}(q.Component), pe.propTypes = { base: X.object, bodyAttributes: X.object, children: X.oneOfType([X.arrayOf(X.node), X.node]), defaultTitle: X.string, defer: X.bool, encodeSpecialCharacters: X.bool, htmlAttributes: X.object, link: X.arrayOf(X.object), meta: X.arrayOf(X.object), noscript: X.arrayOf(X.object), onChangeClientState: X.func, script: X.arrayOf(X.object), style: X.arrayOf(X.object), title: X.string, titleAttributes: X.object, titleTemplate: X.string }, pe.defaultProps = { defer: true, encodeSpecialCharacters: true }, pe.peek = le.peek, pe.rewind = function() {
  var e2 = le.rewind();
  return e2 || (e2 = ct({ baseTag: [], bodyAttributes: {}, encodeSpecialCharacters: true, htmlAttributes: {}, linkTags: [], metaTags: [], noscriptTags: [], scriptTags: [], styleTags: [], title: "", titleAttributes: {} })), e2;
}, de);
pt.renderStatic = pt.rewind;
const dt = V(() => import("./header-44540994.js").then((e2) => ({ default: e2.default }))), ut = V(() => import("./BottomContent-64f5e769.js").then((e2) => ({ default: e2.BottomSkeleton }))), ft = V(() => import("./LeftContent-266502ba.js").then((e2) => ({ default: e2.LeftContent }))), ht = V(() => import("./LeftLayersContent-5c09a90b.js").then((e2) => ({ default: e2.LeftLayersContent }))), mt = V(() => import("./RightPanel-7a13abad.js")), yt = V(() => import("./editorTutorials-e02dbb63.js")), gt = V(() => import("./BottomPanel-d769e848.js")), bt = V(() => import("./editorHotKeys-a5b85dc0.js").then((e2) => ({ default: e2.CustomShortcutWrapper }))), vt = V(() => import("./editorHotKeys-a5b85dc0.js").then((e2) => ({ default: e2.EditorGlobalHotKeys }))), wt = V(() => import("./editorHotKeys-a5b85dc0.js").then((e2) => ({ default: e2.EditorHotKeys }))), Tt = V(() => import("./index-f927b013.js").then((e2) => e2.zk).then((e2) => ({ default: e2.Body }))), jt = V(() => import("./index-f927b013.js").then((e2) => e2.zk).then((e2) => ({ default: e2.EditorContainer }))), Ct = V(() => import("./index-f927b013.js").then((e2) => e2.zk).then((e2) => ({ default: e2.EditorContainerWithViewMode }))), kt = V(() => import("./index-f927b013.js").then((e2) => e2.zk).then((e2) => ({ default: e2.Height100Div }))), xt = V(() => import("./index-f927b013.js").then((e2) => e2.zk).then((e2) => ({ default: e2.LeftPanel }))), At = V(() => import("./index-f927b013.js").then((e2) => e2.zk).then((e2) => ({ default: e2.MiddlePanel }))), Et = V(() => import("./help-c16d8ce7.js").then((e2) => ({ default: e2.HelpDropdown }))), Ot = V(() => import("./previewHeader-742c550f.js").then((e2) => ({ default: e2.PreviewHeader }))), St = Z.div`
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  contain: paint;
  z-index: ${o.hooksCompContainer};
`, Pt = Z.div`
  height: ${(e2) => `calc(${e2.$height ? e2.$height + "px" : "100vh"} - env(safe-area-inset-bottom) -
      ${e2.$hideBodyHeader ? "0px" : a}
  )`};
`, Lt = Z.div`
  .ant-menu {
    background-color: #393b47;
    height: calc(100vh - 48px);

    .ant-menu-item {
      padding: 0 7px !important;
      width: 40px;
      height: 26px;
      margin: 12px 0 0 0;

      svg {
        height: 26px;
        width: 26px;
        padding: 5px;
      }

      &.ant-menu-item-selected,
      &:hover,
      &:active {
        background-color: #393b47;

        svg {
          background: #8b8fa37f;
          border-radius: 4px;
        }
      }
    }
  }

  z-index: ${o.leftToolbar};
`, It = Z.div`
  > div {
    left: 6px;
    right: auto;
    height: 28px;
    bottom: 36px;

    > div.shortcutList {
      left: 42px;
      bottom: 2px;
    }
  }
`;
Z.div`
  > div {
    left: 6px;
    right: auto;
    height: 28px;
    top: 15px;
  }
`;
const Ht = Z.div`
  display: flex;
  flex-direction: column;
  height: 100%;

  .ant-divider {
    margin: 16px 0;
    border-color: #e1e3eb;
  }
`, Mt = Z.div`
  font-weight: 500;
  font-size: 14px;
  color: #8b8fa3;
  line-height: 14px;
  margin: 16px;
`, Nt = Z.div`
  margin: 16px 8px;
  height: 33px;
  display: flex;
  align-items: center;
  padding: 0 8px 0 7px;
  color: #333;
  cursor: pointer;

  svg {
    margin-right: 8px;

    path {
      fill: #222222;
    }
  }

  &:hover,
  &:active {
    background: #f2f7fc;
    border-radius: 4px;

    svg path {
      fill: #315efb;
    }
  }
`, Rt = Z.div`
  overflow: auto;
  position: relative;
  flex: 1 1 0;
`, Dt = Z(n)`
  margin: 2% 0 0;
  .device-mockup.portrait {
    > div:first-child {
      > div:first-child {
        > div:first-child {
          > div:nth-child(2) {
            display: block !important;
            overflow: hidden auto !important;
          } 
        } 
      }
    }
  }
  .device-mockup.landscape {
    > div:first-child {
      > div:first-child {
        > div:first-child {
          > div:nth-child(2) {
            > div:first-child {
              display: block !important;
              overflow: hidden auto !important;
            }
          } 
        } 
      }
    }
  }
`, qt = [{ key: "state", icon: Y(L, {}) }, { key: "setting", icon: Y(I, {}) }, { key: "canvas", icon: Y(H, {}) }, { key: "js", icon: Y(M, {}) }, { key: "layout", icon: Y(N, {}) }], Vt = [{ key: "state", icon: Y(L, {}) }, { key: "setting", icon: Y(I, {}) }], zt = ({ deviceType: e2, deviceOrientation: t2, children: r2 }) => {
  const [n2, i2] = B(null);
  F(() => {
    (async () => {
      if ("tablet" === e2) {
        const { IPadMockup: e3 } = await import("./index-a91876ae.js");
        i2(() => e3);
      } else if ("mobile" === e2) {
        const { IPhoneMockup: e3 } = await import("./index-a91876ae.js");
        i2(() => e3);
      } else
        i2(() => null);
    })();
  }, [e2]);
  const o2 = K(() => "tablet" === e2 && "portrait" === t2 ? 850 : "tablet" === e2 && "landscape" === t2 ? 1100 : "mobile" === e2 && "portrait" === t2 ? 450 : "mobile" === e2 && "landscape" === t2 ? 1200 : void 0, [e2, t2]);
  return n2 ? Y(Dt, { justify: "center", children: Y(n2, { isLandscape: "landscape" === t2, screenWidth: o2, className: `device-mockup ${"landscape" === t2 && "mobile" === e2 ? "landscape" : "portrait"} `, frameColor: "background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);", children: r2 }) }) : Y(G, { children: r2 });
};
const Bt = q.memo(function(e2) {
  var _a, _b, _c, _d, _e2, _f;
  const { uiComp: n2 } = e2, a2 = s(), L2 = z(c), { readOnly: I2, hideHeader: H2 } = z(l), M2 = p(d), N2 = p(u), D2 = p(f), q2 = h().state, V2 = q2 == null ? void 0 : q2.showNewUserGuide, F2 = p(m), [J2, X2] = B(false), Q2 = _(() => X2(!J2), [J2]), [Z2, ee2] = B("state"), [te2, re2] = B(), ne2 = y(), [ie2, oe2] = B(() => V2 ? g : b()), [ae2, se2] = B(g), ce2 = "view" === a2.viewMode, le2 = L2.getAppSettingsComp(), { showHeaderInPublic: pe2 } = le2.getView(), de2 = _((e3) => {
    let t2;
    e3 ? (t2 = Object.assign({}, ie2), t2[e3] = !ie2[e3]) : Object.values(ie2).some((e4) => e4) ? (se2(ie2), t2 = { left: false, bottom: false, right: false }) : t2 = ae2, oe2(t2), v(t2);
  }, [ie2, ae2]), [ue2, fe2] = B(() => w()), he2 = _((e3) => {
    fe2(e3 || "both"), T(e3 || "both");
  }, [ue2]), me2 = _((e3) => {
    L2.setDraggingCompType(e3);
  }, [L2]), ye2 = _((e3) => {
    L2.setShowPropertyPane("property" === e3);
  }, [L2]), ge2 = K(() => Object.keys(L2.getHooksComp().children).map((e3) => Y("div", { children: L2.getHooksComp().children[e3].getView() }, e3 + "-" + (M2 == null ? void 0 : M2.applicationId))), [L2]);
  U(() => {
    function e3() {
      re2(window.innerHeight);
    }
    const t2 = "orientationchange" in window ? "orientationchange" : "resize";
    return window.addEventListener(t2, e3), e3(), () => window.removeEventListener(t2, e3);
  }, []);
  const be2 = j() || ce2 && (!pe2 || !D2.showHeaderInPublicApps), ve2 = K(() => F2 ? Y(Pt, { $hideBodyHeader: be2, $height: te2, children: Y(jt, { children: n2.getView() }) }) : n2.getView(), [F2, be2, te2, n2]), we2 = K(() => ce2 ? n2.getView() : "mobile" === L2.deviceType || "tablet" === L2.deviceType ? Y(zt, { deviceType: L2.deviceType, deviceOrientation: L2.deviceOrientation, children: n2.getView() }) : Y("div", { children: n2.getView() }), [n2, ce2, L2.deviceType, L2.deviceOrientation]), Te2 = "app.lowcoder.cloud" === window.location.hostname, je2 = "localhost" === window.location.hostname;
  if (I2 && H2)
    return W(bt, { children: [n2.getView(), Y("div", { style: { zIndex: o.hooksCompContainer }, children: ge2 })] });
  if (I2 && !F2)
    return W(bt, { children: [W(pt, { children: [M2 && Y("title", { children: ((_c = (_b = (_a = le2 == null ? void 0 : le2.children) == null ? void 0 : _a.title) == null ? void 0 : _b.getView) == null ? void 0 : _c.call(_b)) || (M2 == null ? void 0 : M2.name) }), Te2 || je2 && [(M2 == null ? void 0 : M2.name) ? [Y("meta", { property: "iframely:title", content: M2.name }, "iframely:title"), Y("meta", { property: "iframely:description", content: M2.description }, "iframely:description")] : [Y("meta", { property: "iframely:title", content: "Lowcoder 3" }, "iframely:title"), Y("meta", { property: "iframely:description", content: "Lowcoder | rapid App & VideoMeeting builder for everyone." }, "iframely:description")], Y("link", { rel: "iframely", type: "text/html", href: window.location.href, media: "(aspect-ratio: 1280/720)" }), Y("link", { rel: "preconnect", href: "https://fonts.googleapis.com" }, "preconnect-googleapis"), Y("link", { rel: "preconnect", href: "https://fonts.gstatic.com", crossOrigin: "anonymous" }, "preconnect-gstatic"), Y("link", { href: "https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,700;1,400&display=swap", rel: "stylesheet" }, "font-ubuntu"), Y("script", { async: true, defer: true, src: "//js-eu1.hs-scripts.com/144574215.js", type: "text/javascript", id: "hs-script-loader" })]] }), W($, { fallback: Y(C, {}), children: [!be2 && Y(Ot, {}), W(Ct, { children: [Y(Pt, { $hideBodyHeader: be2, $height: te2, children: we2 }), Y("div", { style: { zIndex: o.hooksCompContainer }, children: ge2 })] })] })] });
  const Ce2 = ie2.right || F2;
  return W(G, { children: [W(pt, { children: [M2 && Y("title", { children: ((_f = (_e2 = (_d = le2 == null ? void 0 : le2.children) == null ? void 0 : _d.title) == null ? void 0 : _e2.getView) == null ? void 0 : _f.call(_e2)) || (M2 == null ? void 0 : M2.name) }), Te2 || je2 && [(M2 == null ? void 0 : M2.name) ? [Y("meta", { property: "iframely:title", content: M2.name }, "iframely:title"), Y("meta", { property: "iframely:description", content: M2.description }, "iframely:description")] : [Y("meta", { property: "iframely:title", content: "Lowcoder 3" }, "iframely:title"), Y("meta", { property: "iframely:description", content: "Lowcoder | rapid App & VideoMeeting builder for everyone." }, "iframely:description")], Y("link", { rel: "iframely", type: "text/html", href: window.location.href, media: "(aspect-ratio: 1280/720)" }, "iframely"), Y("link", { rel: "preconnect", href: "https://fonts.googleapis.com" }, "preconnect-googleapis"), Y("link", { rel: "preconnect", href: "https://fonts.gstatic.com", crossOrigin: "anonymous" }, "preconnect-gstatic"), Y("link", { href: "https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,700;1,400&display=swap", rel: "stylesheet" }, "font-ubuntu"), Y("script", { async: true, defer: true, src: "//js-eu1.hs-scripts.com/144574215.js", type: "text/javascript", id: "hs-script-loader" })]] }), W(kt, { onDragEnd: (e3) => {
    L2.setDragging(false), k.clearData();
  }, children: [N2 ? Y(Ot, {}) : Y(dt, { togglePanel: de2, panelStatus: ie2, toggleEditorModeStatus: he2, editorModeStatus: ue2 }), V2 && Y(yt, {}), Y(vt, { disabled: I2, togglePanel: de2, panelStatus: ie2, toggleShortcutList: Q2, children: W(Tt, { children: [Y(Lt, { children: W(t, { width: 40, children: [Y(r, { theme: "dark", mode: "inline", defaultSelectedKeys: ["state"], selectedKeys: ie2.left ? [Z2] : [""], items: M2 && !x(R[M2.applicationType]) ? qt : Vt, disabled: F2, onClick: (e3) => ((e4) => {
    let t2 = true;
    ie2.left && e4.key === Z2 && (t2 = false), oe2({ ...ie2, left: t2 }), v({ ...ie2, left: t2 }), ee2(e4.key);
  })(e3) }), !F2 && Y(It, { children: Y(Et, { showShortcutList: J2, setShowShortcutList: X2, isEdit: true }) })] }) }), Y($, { fallback: null, children: ie2.left && "layout" !== ue2 && W(xt, { children: ["state" === Z2 && Y(ft, { uiComp: n2 }), Y(A.Provider, { value: { settingType: Z2 }, children: W(G, { children: ["setting" === Z2 && Y(Ht, { children: Y(E, { children: M2 && !x(R[M2.applicationType]) && Y(G, { children: le2.getPropertyView() }) }) }), "canvas" === Z2 && Y(Ht, { children: Y(E, { children: M2 && !x(R[M2.applicationType]) && Y(G, { children: le2.getPropertyView() }) }) })] }) }), "js" === Z2 && W(G, { children: [Y(Mt, { children: O("leftPanel.toolbarTitle") }), e2.preloadComp.getPropertyView(), W(Nt, { onClick: () => {
    return ne2((e3 = { showScriptsAndStyleModal: true }, { type: i.SET_EDITOR_EXTERNAL_STATE, payload: e3 }));
    var e3;
  }, children: [Y(S, {}), O("leftPanel.toolbarPreload")] }), e2.preloadComp.getJSLibraryPropertyView()] }), "layout" === Z2 && Y(ht, { uiComp: n2 })] }) }), W(At, { children: [Y(Rt, { className: P, children: Y(wt, { disabled: I2, children: W(Ct, { children: [ve2, Y(St, { children: ge2 })] }) }) }), Y($, { fallback: Y(ut, {}), children: ie2.bottom && "layout" !== ue2 && Y(gt, {}) })] }), Y($, { fallback: null, children: Ce2 && Y(mt, { uiComp: n2, onCompDrag: me2, showPropertyPane: L2.showPropertyPane, onTabChange: ye2 }) })] }) })] })] });
}, (e2, t2) => D.isEqual(e2, t2));
export {
  Rt as EditorWrapper,
  Bt as default
};
