'use strict';

var index = require('./index-C_OnxXhP.js');

var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
//#region src/core/platform.ts
var n = { };
//#endregion
//#region src/limetype/property.ts
function i(e) {
	return e && [
		"belongsto",
		"hasone",
		"hasmany",
		"hasandbelongstomany"
	].includes(e.type);
}
function a(e) {
	return e && ["belongsto", "hasone"].includes(e.type);
}
//#endregion
//#region src/limetype/types.ts
n.LimeTypeRepository = "state.limetypes";
//#endregion
//#region src/internal/find-descriptor.ts
function l(e, t) {
	let n = e;
	for (; n;) {
		let e = Object.getOwnPropertyDescriptor(n, t);
		if (e) return e;
		n = Object.getPrototypeOf(n);
	}
}
//#endregion
//#region src/internal/context-request.ts
var u = "context-request";
function d(e, t) {
	let n, r = {
		context: t,
		callback: (e) => {
			n = e;
		}
	};
	return e.dispatchEvent(new CustomEvent(u, {
		bubbles: true,
		composed: true,
		detail: r
	})), n;
}
function ee(e, t, n) {
	let r, i = {
		context: t,
		subscribe: true,
		callback: (e, t) => {
			n(e), t && (r = t);
		}
	};
	return e.dispatchEvent(new CustomEvent(u, {
		bubbles: true,
		composed: true,
		detail: i
	})), () => r?.();
}
//#endregion
//#region src/internal/resolve-platform.ts
function f(t) {
	if (t.platform) return t.platform;
	let n = d(index.getElement(t), "platform");
	if (!n) throw Error("Platform not available. Set the @Prop() platform value or provide it via ContextRegistry.provide('platform', ...) at boot.");
	return n;
}
//#endregion
//#region src/internal/resolve-context.ts
var p = "context";
function m(t) {
	return t.context ? t.context : d(index.getElement(t), p);
}
function te(t, n) {
	let r = index.getElement(t);
	return p in r ? ne(r, n) : ee(r, p, n);
}
function ne(e, t) {
	let n = Object.getOwnPropertyDescriptor(e, p), r = l(e, p);
	return t(r?.get?.call(e)), Object.defineProperty(e, p, {
		configurable: true,
		enumerable: true,
		get: () => r?.get?.call(e),
		set: (n) => {
			r?.set?.call(e, n), t(n);
		}
	}), () => {
		if (n) {
			Object.defineProperty(e, p, n);
			return;
		}
		Reflect.deleteProperty(e, p);
	};
}
//#endregion
//#region node_modules/tslib/tslib.es6.mjs
var h = function(e, t) {
	return h = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
		e.__proto__ = t;
	} || function(e, t) {
		for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
	}, h(e, t);
};
function g(e, t) {
	if (typeof t != "function" && t !== null) throw TypeError("Class extends value " + String(t) + " is not a constructor or null");
	h(e, t);
	function n() {
		this.constructor = e;
	}
	e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
}
function _(e) {
	var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
	if (n) return n.call(e);
	if (e && typeof e.length == "number") return { next: function() {
		return e && r >= e.length && (e = void 0), {
			value: e && e[r++],
			done: !e
		};
	} };
	throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function v(e, t) {
	var n = typeof Symbol == "function" && e[Symbol.iterator];
	if (!n) return e;
	var r = n.call(e), i, a = [], o;
	try {
		for (; !(i = r.next()).done;) a.push(i.value);
	} catch (e) {
		o = { error: e };
	} finally {
		try {
			i && !i.done && (n = r.return) && n.call(r);
		} finally {
			if (o) throw o.error;
		}
	}
	return a;
}
function y(e, t, n) {
	if (arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
	return e.concat(a || Array.prototype.slice.call(t));
}
//#endregion
//#region node_modules/rxjs/dist/esm5/internal/util/isFunction.js
function b(e) {
	return typeof e == "function";
}
//#endregion
//#region node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js
function re(e) {
	var t = e(function(e) {
		Error.call(e), e.stack = (/* @__PURE__ */ Error()).stack;
	});
	return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
}
//#endregion
//#region node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js
var x = re(function(e) {
	return function(t) {
		e(this), this.message = t ? t.length + " errors occurred during unsubscription:\n" + t.map(function(e, t) {
			return t + 1 + ") " + e.toString();
		}).join("\n  ") : "", this.name = "UnsubscriptionError", this.errors = t;
	};
});
//#endregion
//#region node_modules/rxjs/dist/esm5/internal/util/arrRemove.js
function S(e, t) {
	if (e) {
		var n = e.indexOf(t);
		0 <= n && e.splice(n, 1);
	}
}
//#endregion
//#region node_modules/rxjs/dist/esm5/internal/Subscription.js
var C = function() {
	function e(e) {
		this.initialTeardown = e, this.closed = false, this._parentage = null, this._finalizers = null;
	}
	return e.prototype.unsubscribe = function() {
		var e, t, n, r, i;
		if (!this.closed) {
			this.closed = true;
			var a = this._parentage;
			if (a) if (this._parentage = null, Array.isArray(a)) try {
				for (var o = _(a), s = o.next(); !s.done; s = o.next()) s.value.remove(this);
			} catch (t) {
				e = { error: t };
			} finally {
				try {
					s && !s.done && (t = o.return) && t.call(o);
				} finally {
					if (e) throw e.error;
				}
			}
			else a.remove(this);
			var c = this.initialTeardown;
			if (b(c)) try {
				c();
			} catch (e) {
				i = e instanceof x ? e.errors : [e];
			}
			var l = this._finalizers;
			if (l) {
				this._finalizers = null;
				try {
					for (var u = _(l), d = u.next(); !d.done; d = u.next()) {
						var ee = d.value;
						try {
							ae(ee);
						} catch (e) {
							i ??= [], e instanceof x ? i = y(y([], v(i)), v(e.errors)) : i.push(e);
						}
					}
				} catch (e) {
					n = { error: e };
				} finally {
					try {
						d && !d.done && (r = u.return) && r.call(u);
					} finally {
						if (n) throw n.error;
					}
				}
			}
			if (i) throw new x(i);
		}
	}, e.prototype.add = function(t) {
		if (t && t !== this) if (this.closed) ae(t);
		else {
			if (t instanceof e) {
				if (t.closed || t._hasParent(this)) return;
				t._addParent(this);
			}
			(this._finalizers = this._finalizers ?? []).push(t);
		}
	}, e.prototype._hasParent = function(e) {
		var t = this._parentage;
		return t === e || Array.isArray(t) && t.includes(e);
	}, e.prototype._addParent = function(e) {
		var t = this._parentage;
		this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
	}, e.prototype._removeParent = function(e) {
		var t = this._parentage;
		t === e ? this._parentage = null : Array.isArray(t) && S(t, e);
	}, e.prototype.remove = function(t) {
		var n = this._finalizers;
		n && S(n, t), t instanceof e && t._removeParent(this);
	}, e.EMPTY = (function() {
		var t = new e();
		return t.closed = true, t;
	})(), e;
}(), w = C.EMPTY;
function ie(e) {
	return e instanceof C || e && "closed" in e && b(e.remove) && b(e.add) && b(e.unsubscribe);
}
function ae(e) {
	b(e) ? e() : e.unsubscribe();
}
//#endregion
//#region node_modules/rxjs/dist/esm5/internal/config.js
var T = {
	Promise: void 0}, E = {
	setTimeout: function(e, t) {
		var n = [...arguments].slice(2);
		return setTimeout.apply(void 0, y([e, t], v(n)));
	},
	clearTimeout: function(e) {
		return (clearTimeout)(e);
	},
	delegate: void 0
};
//#endregion
//#region node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js
function oe(e) {
	E.setTimeout(function() {
		throw e;
	});
}
//#endregion
//#region node_modules/rxjs/dist/esm5/internal/util/noop.js
function D() {}
function A(e) {
	e();
}
//#endregion
//#region node_modules/rxjs/dist/esm5/internal/Subscriber.js
var de = function(e) {
	g(t, e);
	function t(t) {
		var n = e.call(this) || this;
		return n.isStopped = false, t ? (n.destination = t, ie(t) && t.add(n)) : n.destination = he, n;
	}
	return t.create = function(e, t, n) {
		return new M(e, t, n);
	}, t.prototype.next = function(e) {
		this.isStopped ? P() : this._next(e);
	}, t.prototype.error = function(e) {
		this.isStopped ? P() : (this.isStopped = true, this._error(e));
	}, t.prototype.complete = function() {
		this.isStopped ? P() : (this.isStopped = true, this._complete());
	}, t.prototype.unsubscribe = function() {
		this.closed || (this.isStopped = true, e.prototype.unsubscribe.call(this), this.destination = null);
	}, t.prototype._next = function(e) {
		this.destination.next(e);
	}, t.prototype._error = function(e) {
		try {
			this.destination.error(e);
		} finally {
			this.unsubscribe();
		}
	}, t.prototype._complete = function() {
		try {
			this.destination.complete();
		} finally {
			this.unsubscribe();
		}
	}, t;
}(C);
var pe = function() {
	function e(e) {
		this.partialObserver = e;
	}
	return e.prototype.next = function(e) {
		var t = this.partialObserver;
		if (t.next) try {
			t.next(e);
		} catch (e) {
			N(e);
		}
	}, e.prototype.error = function(e) {
		var t = this.partialObserver;
		if (t.error) try {
			t.error(e);
		} catch (e) {
			N(e);
		}
		else N(e);
	}, e.prototype.complete = function() {
		var e = this.partialObserver;
		if (e.complete) try {
			e.complete();
		} catch (e) {
			N(e);
		}
	}, e;
}(), M = function(e) {
	g(t, e);
	function t(t, n, r) {
		var i = e.call(this) || this, a;
		if (b(t) || !t) a = {
			next: t ?? void 0,
			error: n ?? void 0,
			complete: r ?? void 0
		};
		else {
			a = t;
		}
		return i.destination = new pe(a), i;
	}
	return t;
}(de);
function N(e) {
	oe(e);
}
function me(e) {
	throw e;
}
function P(e, t) {
}
var he = {
	closed: true,
	next: D,
	error: me,
	complete: D
}, ge = (function() {
	return typeof Symbol == "function" && Symbol.observable || "@@observable";
})();
//#endregion
//#region node_modules/rxjs/dist/esm5/internal/util/identity.js
function _e(e) {
	return e;
}
//#endregion
//#region node_modules/rxjs/dist/esm5/internal/util/pipe.js
function ve(e) {
	return e.length === 0 ? _e : e.length === 1 ? e[0] : function(t) {
		return e.reduce(function(e, t) {
			return t(e);
		}, t);
	};
}
//#endregion
//#region node_modules/rxjs/dist/esm5/internal/Observable.js
var F = function() {
	function e(e) {
		e && (this._subscribe = e);
	}
	return e.prototype.lift = function(t) {
		var n = new e();
		return n.source = this, n.operator = t, n;
	}, e.prototype.subscribe = function(e, t, n) {
		var r = this, i = xe(e) ? e : new M(e, t, n);
		return A(function() {
			var e = r, t = e.operator, n = e.source;
			i.add(t ? t.call(i, n) : n ? r._subscribe(i) : r._trySubscribe(i));
		}), i;
	}, e.prototype._trySubscribe = function(e) {
		try {
			return this._subscribe(e);
		} catch (t) {
			e.error(t);
		}
	}, e.prototype.forEach = function(e, t) {
		var n = this;
		return t = ye(t), new t(function(t, r) {
			var i = new M({
				next: function(t) {
					try {
						e(t);
					} catch (e) {
						r(e), i.unsubscribe();
					}
				},
				error: r,
				complete: t
			});
			n.subscribe(i);
		});
	}, e.prototype._subscribe = function(e) {
		return this.source?.subscribe(e);
	}, e.prototype[ge] = function() {
		return this;
	}, e.prototype.pipe = function() {
		return ve([...arguments])(this);
	}, e.prototype.toPromise = function(e) {
		var t = this;
		return e = ye(e), new e(function(e, n) {
			var r;
			t.subscribe(function(e) {
				return r = e;
			}, function(e) {
				return n(e);
			}, function() {
				return e(r);
			});
		});
	}, e.create = function(t) {
		return new e(t);
	}, e;
}();
function ye(e) {
	return e ?? T.Promise ?? Promise;
}
function be(e) {
	return e && b(e.next) && b(e.error) && b(e.complete);
}
function xe(e) {
	return e && e instanceof de || be(e) && ie(e);
}
//#endregion
//#region node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js
var Se = re(function(e) {
	return function() {
		e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
	};
}), Ce = function(e) {
	g(t, e);
	function t() {
		var t = e.call(this) || this;
		return t.closed = false, t.currentObservers = null, t.observers = [], t.isStopped = false, t.hasError = false, t.thrownError = null, t;
	}
	return t.prototype.lift = function(e) {
		var t = new we(this, this);
		return t.operator = e, t;
	}, t.prototype._throwIfClosed = function() {
		if (this.closed) throw new Se();
	}, t.prototype.next = function(e) {
		var t = this;
		A(function() {
			var n, r;
			if (t._throwIfClosed(), !t.isStopped) {
				t.currentObservers ||= Array.from(t.observers);
				try {
					for (var i = _(t.currentObservers), a = i.next(); !a.done; a = i.next()) a.value.next(e);
				} catch (e) {
					n = { error: e };
				} finally {
					try {
						a && !a.done && (r = i.return) && r.call(i);
					} finally {
						if (n) throw n.error;
					}
				}
			}
		});
	}, t.prototype.error = function(e) {
		var t = this;
		A(function() {
			if (t._throwIfClosed(), !t.isStopped) {
				t.hasError = t.isStopped = true, t.thrownError = e;
				for (var n = t.observers; n.length;) n.shift().error(e);
			}
		});
	}, t.prototype.complete = function() {
		var e = this;
		A(function() {
			if (e._throwIfClosed(), !e.isStopped) {
				e.isStopped = true;
				for (var t = e.observers; t.length;) t.shift().complete();
			}
		});
	}, t.prototype.unsubscribe = function() {
		this.isStopped = this.closed = true, this.observers = this.currentObservers = null;
	}, Object.defineProperty(t.prototype, "observed", {
		get: function() {
			return this.observers?.length > 0;
		},
		enumerable: false,
		configurable: true
	}), t.prototype._trySubscribe = function(t) {
		return this._throwIfClosed(), e.prototype._trySubscribe.call(this, t);
	}, t.prototype._subscribe = function(e) {
		return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
	}, t.prototype._innerSubscribe = function(e) {
		var t = this, n = this, r = n.hasError, i = n.isStopped, a = n.observers;
		return r || i ? w : (this.currentObservers = null, a.push(e), new C(function() {
			t.currentObservers = null, S(a, e);
		}));
	}, t.prototype._checkFinalizedStatuses = function(e) {
		var t = this, n = t.hasError, r = t.thrownError, i = t.isStopped;
		n ? e.error(r) : i && e.complete();
	}, t.prototype.asObservable = function() {
		var e = new F();
		return e.source = this, e;
	}, t.create = function(e, t) {
		return new we(e, t);
	}, t;
}(F), we = function(e) {
	g(t, e);
	function t(t, n) {
		var r = e.call(this) || this;
		return r.destination = t, r.source = n, r;
	}
	return t.prototype.next = function(e) {
		var t, n;
		(n = (t = this.destination)?.next) == null || n.call(t, e);
	}, t.prototype.error = function(e) {
		var t, n;
		(n = (t = this.destination)?.error) == null || n.call(t, e);
	}, t.prototype.complete = function() {
		var e, t;
		(t = (e = this.destination)?.complete) == null || t.call(e);
	}, t.prototype._subscribe = function(e) {
		return this.source?.subscribe(e) ?? w;
	}, t;
}(Ce), Te = function(e) {
	g(t, e);
	function t(t) {
		var n = e.call(this) || this;
		return n._value = t, n;
	}
	return Object.defineProperty(t.prototype, "value", {
		get: function() {
			return this.getValue();
		},
		enumerable: false,
		configurable: true
	}), t.prototype._subscribe = function(t) {
		var n = e.prototype._subscribe.call(this, t);
		return !n.closed && t.next(this._value), n;
	}, t.prototype.getValue = function() {
		var e = this, t = e.hasError, n = e.thrownError, r = e._value;
		if (t) throw n;
		return this._throwIfClosed(), r;
	}, t.prototype.next = function(t) {
		e.prototype.next.call(this, this._value = t);
	}, t;
}(Ce);
//#endregion
//#region src/core/decorators/factory.ts
function Ee(e) {
	return e;
}
function I(e, t) {
	return (n, r) => {
		let i = Oe(n, r, e, t);
		i.length === 1 && ke(n, i);
	};
}
var De = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
function Oe(e, t, n, r) {
	let i = De.get(e);
	return i || (i = [], De.set(e, i)), i.push({
		options: n,
		name: t,
		optionFactory: r.optionFactory || Ee,
		service: {
			name: r.name,
			method: r.method || "subscribe"
		}
	}), i;
}
function ke(e, t) {
	e.connectedCallback = z(e.connectedCallback, t), e.componentWillLoad = Ae(e.componentWillLoad, t), e.componentDidUnload = B(e.componentDidUnload), e.disconnectedCallback = B(e.disconnectedCallback);
}
function z(e, t) {
	return function(...n) {
		R.set(this, true);
		let r = [];
		L.set(this, r);
		let i = new Te(m(this));
		r.push(te(this, (e) => i.next(e)));
		for (let e of t) e.options = e.optionFactory(e.options, this), je(e.options) && (e.options.context = i), Me(this, e);
		if (e) return e.apply(this, n);
	};
}
function Ae(e, t) {
	return function(...n) {
		return R.get(this) === true ? e ? e.apply(this, n) : void 0 : z(e, t).apply(this, n);
	};
}
function B(e) {
	return async function(...t) {
		let n;
		return e && (n = e.apply(this, t)), Ne(this), n;
	};
}
function je(e) {
	return "context" in e;
}
function Me(e, t) {
	let n = Fe(e, t);
	typeof n == "function" && L.get(e).push(n);
}
function Ne(e) {
	let t = L.get(e);
	for (let e of t) e();
	L.set(e, []);
}
function Pe(e, t) {
	return (n) => {
		e[t] = n;
	};
}
function Fe(e, t) {
	let n = { ...t.options };
	Ie(n, e);
	let r = t.service.name, i = f(e);
	if (!i.has(r)) throw Error(`Service ${r} does not exist`);
	return i.get(r)[t.service.method](Pe(e, t.name), n);
}
function Ie(e, t) {
	e.filter &&= e.filter.map((e) => e.bind(t)), e.map &&= e.map.map((e) => e.bind(t));
}
//#endregion
//#region src/limetype/decorator.ts
function Le(e = {}) {
	return I(e, { name: n.LimeTypeRepository });
}
function Re(e = {}) {
	let t = { name: n.LimeTypeRepository };
	return e.map = [ze, ...e.map || []], e.context = null, I(e, t);
}
function ze(e) {
	let t = m(this);
	if (t) return e[t.limetype];
}
//#endregion
//#region src/limeobject/types.ts
n.LimeObjectRepository = "state.limeobjects";
function Ge(e = {}) {
	let t = { name: n.LimeObjectRepository };
	return e.map = [Ke, ...e.map || []], e.context = null, I(e, t);
}
function Ke(e) {
	let t = m(this);
	if (!t) return;
	let { limetype: n, id: r } = t;
	if (e[n]) return e[n].find((e) => e.id === r);
}
function H(e) {
	return (t) => {
		Ye(t, e.id), Xe(t, e.id);
	};
}
function Ye(e, t) {
	e.commandId = t;
}
function Xe(e, t) {
	Object.defineProperty(e, Symbol.hasInstance, { value: (e) => W(e).includes(t) });
}
function U(e) {
	return typeof e == "string" ? e : e && e.constructor && e.constructor.commandId ? e.constructor.commandId : e && e.commandId ? e.commandId : null;
}
function W(e) {
	let t = [], n, r = e;
	for (; n = U(r);) t = [...t, n], r = Object.getPrototypeOf(r);
	return [...new Set(t)];
}
//#endregion
//#region src/commandbus/types.ts
n.CommandBus = "commandBus";
//#endregion
//#region \0@oxc-project+runtime@0.132.0/helpers/decorate.js
function G(e, t, n, r) {
	var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
	if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
	else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
	return i > 3 && a && Object.defineProperty(t, n, a), a;
}
//#endregion
//#region src/limeobject/commands/bulk-create-dialog.ts
var Ze = "limeobject.bulk-create-dialog", K = class {
	context;
	filter;
	relation;
};
K = G([H({ id: Ze })], K);
//#endregion
//#region src/limeobject/commands/create-dialog.ts
var Qe = "limeobject.create-dialog", q = class {
	limetype;
	limeobject;
	route = false;
	title;
	subtitle;
	context;
	autoAttachRelation;
	saveCommand;
};
q = G([H({ id: Qe })], q);
//#endregion
//#region src/limeobject/commands/delete-object.ts
var $e = "limeobject.delete-object", J = class {
	context;
};
J = G([H({ id: $e })], J);
//#endregion
//#region src/limeobject/commands/object-access.ts
var et = "limeobject.object-access", Y = class {
	context;
};
Y = G([H({ id: et })], Y);
//#endregion
//#region src/limeobject/commands/save-object.ts
var tt = "limeobject.save-object", X = class {
	context;
	limeobject;
	route = false;
	label;
};
X = G([H({ id: tt })], X);
//#endregion
//#region src/query/query.ts
var nt = /* @__PURE__ */ function(e) {
	return e.AND = "AND", e.OR = "OR", e.NOT = "!", e.EQUALS = "=", e.NOT_EQUALS = "!=", e.GREATER = ">", e.LESS = "<", e.IN = "IN", e.BEGINS = "=?", e.LIKE = "?", e.LESS_OR_EQUAL = "<=", e.GREATER_OR_EQUAL = ">=", e.ENDS = "=$", e;
}({}), rt = {
	Count: "COUNT"};
//#endregion
//#region src/query/types.ts
n.Query = "query";
//#endregion
//#region src/http/http.ts
var it = {
	Post: "POST"};
//#endregion
//#region src/navigator/types.ts
n.Http = "http", n.EventDispatcher = "eventDispatcher", n.Translate = "translate", n.Dialog = "dialog", n.KeybindingRegistry = "keybindingRegistry", n.Navigator = "navigator";
//#endregion
//#region src/navigator/command.ts
var ot = "navigator.navigate", Z = class {
	path;
	query;
	hash;
	state;
};
//#endregion
//#region src/routeregistry/types.ts
Z = G([H({ id: ot })], Z), n.Notification = "notifications", n.RouteRegistry = "routeRegistry";
//#endregion
//#region src/config/types.ts
n.TaskRepository = "state.tasks", n.ConfigRepository = "state.configs";
//#endregion
//#region src/config/decorator.ts
function lt(e) {
	return I(e, { name: n.ConfigRepository });
}
//#endregion
//#region src/device/types.ts
n.Device = "state.device";
//#endregion
//#region src/filter/types.ts
n.FilterRepository = "state.filters";
//#endregion
//#region src/filter/decorator.ts
function dt(e = {}) {
	return I(e, { name: n.FilterRepository });
}
//#endregion
//#region src/userdata/types.ts
n.UserDataRepository = "state.user-data";
//#endregion
//#region src/application/types.ts
n.Application = "state.application";
//#endregion
//#region src/datetimeformatter/types.ts
n.UserPreferencesRepository = "userPreferences", n.DateTimeFormatter = "datetimeformatter";
//#endregion
//#region src/conditionregistry/types.ts
n.ConditionRegistry = "conditionRegistry";
//#endregion
//#region src/context/types.ts
n.ContextRegistry = "contextRegistry";
//#endregion
//#region src/poller/types.ts
n.RuleRegistry = "ruleRegistry", n.ViewFactoryRegistry = "viewFactoryRegistry", n.WebComponentRegistry = "webComponentRegistry", n.NotificationRepository = "state.notifications", n.PollerFactory = "pollerFactory";
//#endregion
//#region src/logger/types.ts
n.Logger = "logger";
//#endregion
//#region src/logger/factory.ts
var Q, $;
function jt(e) {
	let t = window.Lime?.logger?.createLogger;
	return typeof t == "function" ? ($ === void 0 && ($ = Pt(Mt())), $ && (e = `${$}:${e}`), t(e)) : (console.warn(`Logger factory is not configured. Returning console logger for scope "${e}".`), console);
}
function Mt() {
	return Q === void 0 ? typeof (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.esm-C1i_NocP.js', document.baseURI).href)) == "string" ? (Q = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.esm-C1i_NocP.js', document.baseURI).href)), Q) : (Q = Nt(), Q) : Q;
}
function Nt() {
	try {
		let e = (/* @__PURE__ */ Error(".")).stack;
		if (!e) return null;
		let t = e.split("\n");
		for (let e of t) {
			let t = e.match(/(https?:\/\/[^)\s:]+)/);
			if (t) return t[1];
		}
		return null;
	} catch {
		return null;
	}
}
function Pt(e) {
	return e && (Ft(e) || It(e) || Lt(e) || Rt(e)) || null;
}
function Ft(e) {
	let t = e.match(/\/([^/]+)-lwc-components\//);
	return t ? t[1] : null;
}
function It(e) {
	let t = e.match(/\/packages\/(?:@[^/]+\/)?([^/]+)/);
	return t ? t[1] : null;
}
function Lt(e) {
	let t = e.indexOf("+");
	if (t === -1) return null;
	let n = e.slice(0, t), r = n.lastIndexOf("/");
	return r === -1 ? null : n.slice(r + 1);
}
function Rt(e) {
	let t = e.match(/\/static\/([^/]+)\//);
	return t ? t[1] : null;
}
//#endregion
//#region src/ai-context/types.ts
n.ProblemRepository = "problemRepository", n.AIContextRegistry = "aiContextRegistry";
//#endregion
//#region src/error/error.ts
var Bt = null;
function Vt(e, t) {
	Bt ||= jt("uncaught-error");
	let n = {};
	t && (n.element = t.tagName, t.id && (n.elementId = t.id));
	let r = e instanceof Error ? e.message : String(e), i = e instanceof Error ? e : void 0;
	Bt.error(r, i, n);
}
try {
	index.setErrorHandler(Vt);
} catch {}

exports.Ge = Ge;
exports.H = H;
exports.Le = Le;
exports.Re = Re;
exports.a = a;
exports.dt = dt;
exports.i = i;
exports.it = it;
exports.jt = jt;
exports.lt = lt;
exports.n = n;
exports.nt = nt;
exports.rt = rt;
