@esposter/shared 2.19.2 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -201
- package/dist/index.d.ts +1218 -133
- package/dist/index.js +129 -216
- package/dist/magic-string.es-CDi1Mjxn.js +1011 -0
- package/package.json +8 -6
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
3
2
|
//#region \0rolldown/runtime.js
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -9,33 +8,24 @@ var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
|
9
8
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
10
9
|
var __exportAll = (all, no_symbols) => {
|
|
11
10
|
let target = {};
|
|
12
|
-
for (var name in all) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
if (!no_symbols) {
|
|
19
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
20
|
-
}
|
|
11
|
+
for (var name in all) __defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
15
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
21
16
|
return target;
|
|
22
17
|
};
|
|
23
18
|
var __copyProps = (to, from, except, desc) => {
|
|
24
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
20
|
+
key = keys[i];
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
22
|
+
get: ((k) => from[k]).bind(null, key),
|
|
23
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
24
|
+
});
|
|
34
25
|
}
|
|
35
26
|
return to;
|
|
36
27
|
};
|
|
37
28
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
|
-
|
|
39
29
|
//#endregion
|
|
40
30
|
//#region src/test/constants.ts
|
|
41
31
|
const AllSpecialValues = [
|
|
@@ -84,7 +74,14 @@ const AllSpecialValues = [
|
|
|
84
74
|
value: /* @__PURE__ */ new RegExp("")
|
|
85
75
|
}
|
|
86
76
|
];
|
|
87
|
-
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/models/error/ForbiddenError.ts
|
|
79
|
+
var ForbiddenError = class extends Error {
|
|
80
|
+
constructor(message) {
|
|
81
|
+
super(message);
|
|
82
|
+
this.name = "ForbiddenError";
|
|
83
|
+
}
|
|
84
|
+
};
|
|
88
85
|
//#endregion
|
|
89
86
|
//#region src/models/error/InvalidOperationError.ts
|
|
90
87
|
var InvalidOperationError = class extends Error {
|
|
@@ -93,7 +90,6 @@ var InvalidOperationError = class extends Error {
|
|
|
93
90
|
this.name = "InvalidOperationError";
|
|
94
91
|
}
|
|
95
92
|
};
|
|
96
|
-
|
|
97
93
|
//#endregion
|
|
98
94
|
//#region src/models/error/NotFoundError.ts
|
|
99
95
|
var NotFoundError = class extends Error {
|
|
@@ -102,7 +98,6 @@ var NotFoundError = class extends Error {
|
|
|
102
98
|
this.name = "NotFoundError";
|
|
103
99
|
}
|
|
104
100
|
};
|
|
105
|
-
|
|
106
101
|
//#endregion
|
|
107
102
|
//#region src/models/error/NotInitializedError.ts
|
|
108
103
|
var NotInitializedError = class extends Error {
|
|
@@ -111,19 +106,15 @@ var NotInitializedError = class extends Error {
|
|
|
111
106
|
this.name = "NotInitializedError";
|
|
112
107
|
}
|
|
113
108
|
};
|
|
114
|
-
|
|
115
109
|
//#endregion
|
|
116
110
|
//#region src/services/app/constants.ts
|
|
117
111
|
const SITE_NAME = "Esposter";
|
|
118
|
-
|
|
119
112
|
//#endregion
|
|
120
113
|
//#region src/services/survey/constants.ts
|
|
121
114
|
const SURVEY_DISPLAY_NAME = "Surveyer";
|
|
122
|
-
|
|
123
115
|
//#endregion
|
|
124
116
|
//#region src/util/text/uncapitalize.ts
|
|
125
117
|
const uncapitalize = (string) => `${string.charAt(0).toLowerCase()}${string.slice(1)}`;
|
|
126
|
-
|
|
127
118
|
//#endregion
|
|
128
119
|
//#region src/models/router/RoutePath.ts
|
|
129
120
|
const RoutePath = {
|
|
@@ -143,6 +134,7 @@ const RoutePath = {
|
|
|
143
134
|
Index: "/",
|
|
144
135
|
Login: "/login",
|
|
145
136
|
Messages: (id) => `/messages/${id}`,
|
|
137
|
+
MessagesFriends: "/messages/friends",
|
|
146
138
|
MessagesIndex: "/messages",
|
|
147
139
|
MessagesInvite: (code) => `/messages/invite/${code}`,
|
|
148
140
|
MessagesMessage: (id, rowKey) => `/messages/${id}/${rowKey}`,
|
|
@@ -156,16 +148,13 @@ const RoutePath = {
|
|
|
156
148
|
UserSettings: "/user/settings",
|
|
157
149
|
WebpageEditor: "/webpage-editor"
|
|
158
150
|
};
|
|
159
|
-
|
|
160
151
|
//#endregion
|
|
161
152
|
//#region src/util/object/getPropertyNames.ts
|
|
162
153
|
const getPropertyNames = () => new Proxy({}, { get: (_target, property) => property });
|
|
163
|
-
|
|
164
154
|
//#endregion
|
|
165
155
|
//#region src/models/shared/ItemEntityType.ts
|
|
166
156
|
const ItemEntityTypePropertyNames = getPropertyNames();
|
|
167
157
|
const createItemEntityTypeSchema = (schema) => z.object({ type: schema });
|
|
168
|
-
|
|
169
158
|
//#endregion
|
|
170
159
|
//#region src/models/shared/ItemMetadata.ts
|
|
171
160
|
var ItemMetadata = class {
|
|
@@ -179,7 +168,6 @@ const itemMetadataSchema = z.object({
|
|
|
179
168
|
deletedAt: z.date().nullable(),
|
|
180
169
|
updatedAt: z.date()
|
|
181
170
|
});
|
|
182
|
-
|
|
183
171
|
//#endregion
|
|
184
172
|
//#region src/models/shared/Operation.ts
|
|
185
173
|
let Operation = /* @__PURE__ */ function(Operation) {
|
|
@@ -191,11 +179,10 @@ let Operation = /* @__PURE__ */ function(Operation) {
|
|
|
191
179
|
Operation["Update"] = "Update";
|
|
192
180
|
return Operation;
|
|
193
181
|
}({});
|
|
194
|
-
|
|
195
182
|
//#endregion
|
|
196
|
-
//#region ../../node_modules/.pnpm/@vue+shared@3.5.
|
|
183
|
+
//#region ../../node_modules/.pnpm/@vue+shared@3.5.32/node_modules/@vue/shared/dist/shared.esm-bundler.js
|
|
197
184
|
/**
|
|
198
|
-
* @vue/shared v3.5.
|
|
185
|
+
* @vue/shared v3.5.32
|
|
199
186
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
200
187
|
* @license MIT
|
|
201
188
|
**/
|
|
@@ -206,7 +193,7 @@ function makeMap(str) {
|
|
|
206
193
|
return (val) => val in map;
|
|
207
194
|
}
|
|
208
195
|
const EMPTY_OBJ = Object.freeze({});
|
|
209
|
-
|
|
196
|
+
Object.freeze([]);
|
|
210
197
|
const NOOP = () => {};
|
|
211
198
|
const NO = () => false;
|
|
212
199
|
const extend = Object.assign;
|
|
@@ -240,11 +227,11 @@ const cacheStringFunction$1 = (fn) => {
|
|
|
240
227
|
});
|
|
241
228
|
};
|
|
242
229
|
const camelizeRE$1 = /-\w/g;
|
|
243
|
-
|
|
230
|
+
cacheStringFunction$1((str) => {
|
|
244
231
|
return str.replace(camelizeRE$1, (c) => c.slice(1).toUpperCase());
|
|
245
232
|
});
|
|
246
233
|
const hyphenateRE$1 = /\B([A-Z])/g;
|
|
247
|
-
|
|
234
|
+
cacheStringFunction$1((str) => str.replace(hyphenateRE$1, "-$1").toLowerCase());
|
|
248
235
|
const capitalize$1 = cacheStringFunction$1((str) => {
|
|
249
236
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
250
237
|
});
|
|
@@ -264,13 +251,10 @@ let _globalThis;
|
|
|
264
251
|
const getGlobalThis = () => {
|
|
265
252
|
return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
|
|
266
253
|
};
|
|
267
|
-
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
|
|
268
|
-
const isBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);
|
|
269
|
-
|
|
270
254
|
//#endregion
|
|
271
|
-
//#region ../../node_modules/.pnpm/@vue+reactivity@3.5.
|
|
255
|
+
//#region ../../node_modules/.pnpm/@vue+reactivity@3.5.32/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
|
|
272
256
|
/**
|
|
273
|
-
* @vue/reactivity v3.5.
|
|
257
|
+
* @vue/reactivity v3.5.32
|
|
274
258
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
275
259
|
* @license MIT
|
|
276
260
|
**/
|
|
@@ -307,7 +291,6 @@ var ReactiveEffect = class {
|
|
|
307
291
|
*/
|
|
308
292
|
this.cleanup = void 0;
|
|
309
293
|
this.scheduler = void 0;
|
|
310
|
-
if (activeEffectScope && activeEffectScope.active) activeEffectScope.effects.push(this);
|
|
311
294
|
}
|
|
312
295
|
pause() {
|
|
313
296
|
this.flags |= 64;
|
|
@@ -835,16 +818,25 @@ function apply(self, method, fn, thisArg, wrappedRetFn, args) {
|
|
|
835
818
|
}
|
|
836
819
|
function reduce(self, method, fn, args) {
|
|
837
820
|
const arr = shallowReadArray(self);
|
|
821
|
+
const needsWrap = arr !== self && !/* @__PURE__ */ isShallow(self);
|
|
838
822
|
let wrappedFn = fn;
|
|
823
|
+
let wrapInitialAccumulator = false;
|
|
839
824
|
if (arr !== self) {
|
|
840
|
-
if (
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
825
|
+
if (needsWrap) {
|
|
826
|
+
wrapInitialAccumulator = args.length === 0;
|
|
827
|
+
wrappedFn = function(acc, item, index) {
|
|
828
|
+
if (wrapInitialAccumulator) {
|
|
829
|
+
wrapInitialAccumulator = false;
|
|
830
|
+
acc = toWrapped(self, acc);
|
|
831
|
+
}
|
|
832
|
+
return fn.call(this, acc, toWrapped(self, item), index, self);
|
|
833
|
+
};
|
|
834
|
+
} else if (fn.length > 3) wrappedFn = function(acc, item, index) {
|
|
844
835
|
return fn.call(this, acc, item, index, self);
|
|
845
836
|
};
|
|
846
837
|
}
|
|
847
|
-
|
|
838
|
+
const result = arr[method](wrappedFn, ...args);
|
|
839
|
+
return wrapInitialAccumulator ? toWrapped(self, result) : result;
|
|
848
840
|
}
|
|
849
841
|
function searchProxy(self, method, args) {
|
|
850
842
|
const arr = /* @__PURE__ */ toRaw(self);
|
|
@@ -1049,11 +1041,13 @@ function createInstrumentations(readonly, shallow) {
|
|
|
1049
1041
|
clear: createReadonlyMethod("clear")
|
|
1050
1042
|
} : {
|
|
1051
1043
|
add(value) {
|
|
1052
|
-
if (!shallow && !/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value)) value = /* @__PURE__ */ toRaw(value);
|
|
1053
1044
|
const target = /* @__PURE__ */ toRaw(this);
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1045
|
+
const proto = getProto(target);
|
|
1046
|
+
const rawValue = /* @__PURE__ */ toRaw(value);
|
|
1047
|
+
const valueToAdd = !shallow && !/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value) ? rawValue : value;
|
|
1048
|
+
if (!(proto.has.call(target, valueToAdd) || hasChanged(value, valueToAdd) && proto.has.call(target, value) || hasChanged(rawValue, valueToAdd) && proto.has.call(target, rawValue))) {
|
|
1049
|
+
target.add(valueToAdd);
|
|
1050
|
+
trigger(target, "add", valueToAdd, valueToAdd);
|
|
1057
1051
|
}
|
|
1058
1052
|
return this;
|
|
1059
1053
|
},
|
|
@@ -1359,11 +1353,10 @@ function traverse(value, depth = Infinity, seen) {
|
|
|
1359
1353
|
}
|
|
1360
1354
|
return value;
|
|
1361
1355
|
}
|
|
1362
|
-
|
|
1363
1356
|
//#endregion
|
|
1364
|
-
//#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.
|
|
1357
|
+
//#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.32/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
|
|
1365
1358
|
/**
|
|
1366
|
-
* @vue/runtime-core v3.5.
|
|
1359
|
+
* @vue/runtime-core v3.5.32
|
|
1367
1360
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1368
1361
|
* @license MIT
|
|
1369
1362
|
**/
|
|
@@ -1449,8 +1442,8 @@ function formatProp(key, value, raw) {
|
|
|
1449
1442
|
value = JSON.stringify(value);
|
|
1450
1443
|
return raw ? value : [`${key}=${value}`];
|
|
1451
1444
|
} else if (typeof value === "number" || typeof value === "boolean" || value == null) return raw ? value : [`${key}=${value}`];
|
|
1452
|
-
else if (isRef(value)) {
|
|
1453
|
-
value = formatProp(key, toRaw(value.value), true);
|
|
1445
|
+
else if (/* @__PURE__ */ isRef(value)) {
|
|
1446
|
+
value = formatProp(key, /* @__PURE__ */ toRaw(value.value), true);
|
|
1454
1447
|
return raw ? value : [
|
|
1455
1448
|
`${key}=Ref<`,
|
|
1456
1449
|
value,
|
|
@@ -1458,7 +1451,7 @@ function formatProp(key, value, raw) {
|
|
|
1458
1451
|
];
|
|
1459
1452
|
} else if (isFunction(value)) return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];
|
|
1460
1453
|
else {
|
|
1461
|
-
value = toRaw(value);
|
|
1454
|
+
value = /* @__PURE__ */ toRaw(value);
|
|
1462
1455
|
return raw ? value : [`${key}=`, value];
|
|
1463
1456
|
}
|
|
1464
1457
|
}
|
|
@@ -1658,7 +1651,6 @@ function checkRecursiveUpdates(seen, fn) {
|
|
|
1658
1651
|
seen.set(fn, count + 1);
|
|
1659
1652
|
return false;
|
|
1660
1653
|
}
|
|
1661
|
-
let isHmrUpdating = false;
|
|
1662
1654
|
const hmrDirtyComponents = /* @__PURE__ */ new Map();
|
|
1663
1655
|
getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
|
1664
1656
|
createRecord: tryWrap(createRecord),
|
|
@@ -1687,9 +1679,7 @@ function rerender(id, newRender) {
|
|
|
1687
1679
|
normalizeClassComponent(instance.type).render = newRender;
|
|
1688
1680
|
}
|
|
1689
1681
|
instance.renderCache = [];
|
|
1690
|
-
isHmrUpdating = true;
|
|
1691
1682
|
if (!(instance.job.flags & 8)) instance.update();
|
|
1692
|
-
isHmrUpdating = false;
|
|
1693
1683
|
});
|
|
1694
1684
|
}
|
|
1695
1685
|
function reload(id, newComp) {
|
|
@@ -1716,9 +1706,7 @@ function reload(id, newComp) {
|
|
|
1716
1706
|
dirtyInstances.delete(instance);
|
|
1717
1707
|
} else if (instance.parent) queueJob(() => {
|
|
1718
1708
|
if (!(instance.job.flags & 8)) {
|
|
1719
|
-
isHmrUpdating = true;
|
|
1720
1709
|
instance.parent.update();
|
|
1721
|
-
isHmrUpdating = false;
|
|
1722
1710
|
dirtyInstances.delete(instance);
|
|
1723
1711
|
}
|
|
1724
1712
|
});
|
|
@@ -1838,8 +1826,8 @@ function createPathGetter(ctx, path) {
|
|
|
1838
1826
|
return cur;
|
|
1839
1827
|
};
|
|
1840
1828
|
}
|
|
1841
|
-
|
|
1842
|
-
|
|
1829
|
+
getGlobalThis().requestIdleCallback;
|
|
1830
|
+
getGlobalThis().cancelIdleCallback;
|
|
1843
1831
|
function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
1844
1832
|
if (target) {
|
|
1845
1833
|
const hooks = target[type] || (target[type] = []);
|
|
@@ -1859,15 +1847,15 @@ function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
|
1859
1847
|
const createHook = (lifecycle) => (hook, target = currentInstance) => {
|
|
1860
1848
|
if (!isInSSRComponentSetup || lifecycle === "sp") injectHook(lifecycle, (...args) => hook(...args), target);
|
|
1861
1849
|
};
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1850
|
+
createHook("bm");
|
|
1851
|
+
createHook("m");
|
|
1852
|
+
createHook("bu");
|
|
1853
|
+
createHook("u");
|
|
1854
|
+
createHook("bum");
|
|
1855
|
+
createHook("um");
|
|
1856
|
+
createHook("sp");
|
|
1857
|
+
createHook("rtg");
|
|
1858
|
+
createHook("rtc");
|
|
1871
1859
|
const getPublicInstance = (i) => {
|
|
1872
1860
|
if (!i) return null;
|
|
1873
1861
|
if (isStatefulComponent(i)) return getComponentPublicInstance(i);
|
|
@@ -1877,10 +1865,10 @@ const publicPropertiesMap = /* @__PURE__ */ extend(/* @__PURE__ */ Object.create
|
|
|
1877
1865
|
$: (i) => i,
|
|
1878
1866
|
$el: (i) => i.vnode.el,
|
|
1879
1867
|
$data: (i) => i.data,
|
|
1880
|
-
$props: (i) => shallowReadonly(i.props),
|
|
1881
|
-
$attrs: (i) => shallowReadonly(i.attrs),
|
|
1882
|
-
$slots: (i) => shallowReadonly(i.slots),
|
|
1883
|
-
$refs: (i) => shallowReadonly(i.refs),
|
|
1868
|
+
$props: (i) => /* @__PURE__ */ shallowReadonly(i.props),
|
|
1869
|
+
$attrs: (i) => /* @__PURE__ */ shallowReadonly(i.attrs),
|
|
1870
|
+
$slots: (i) => /* @__PURE__ */ shallowReadonly(i.slots),
|
|
1871
|
+
$refs: (i) => /* @__PURE__ */ shallowReadonly(i.refs),
|
|
1884
1872
|
$parent: (i) => getPublicInstance(i.parent),
|
|
1885
1873
|
$root: (i) => getPublicInstance(i.root),
|
|
1886
1874
|
$host: (i) => i.ce,
|
|
@@ -1892,7 +1880,6 @@ const publicPropertiesMap = /* @__PURE__ */ extend(/* @__PURE__ */ Object.create
|
|
|
1892
1880
|
$nextTick: (i) => i.n || (i.n = nextTick.bind(i.proxy)),
|
|
1893
1881
|
$watch: (i) => __VUE_OPTIONS_API__ ? instanceWatch.bind(i) : NOOP
|
|
1894
1882
|
});
|
|
1895
|
-
const isReservedPrefix = (key) => key === "_" || key === "$";
|
|
1896
1883
|
const hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn(state, key);
|
|
1897
1884
|
const PublicInstanceProxyHandlers = {
|
|
1898
1885
|
get({ _: instance }, key) {
|
|
@@ -1934,10 +1921,6 @@ const PublicInstanceProxyHandlers = {
|
|
|
1934
1921
|
accessCache[key] = 4;
|
|
1935
1922
|
return ctx[key];
|
|
1936
1923
|
} else if (globalProperties = appContext.config.globalProperties, hasOwn(globalProperties, key)) return globalProperties[key];
|
|
1937
|
-
else if (currentRenderingInstance && (!isString(key) || key.indexOf("__v") !== 0)) {
|
|
1938
|
-
if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) warn$1(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`);
|
|
1939
|
-
else if (instance === currentRenderingInstance) warn$1(`Property ${JSON.stringify(key)} was accessed during render but is not defined on instance.`);
|
|
1940
|
-
}
|
|
1941
1924
|
},
|
|
1942
1925
|
set({ _: instance }, key, value) {
|
|
1943
1926
|
const { data, setupState, ctx } = instance;
|
|
@@ -2095,21 +2078,17 @@ function createAppContext() {
|
|
|
2095
2078
|
};
|
|
2096
2079
|
}
|
|
2097
2080
|
let currentApp = null;
|
|
2098
|
-
|
|
2099
|
-
function markAttrsAccessed() {
|
|
2100
|
-
accessedAttrs = true;
|
|
2101
|
-
}
|
|
2081
|
+
function markAttrsAccessed() {}
|
|
2102
2082
|
const queuePostRenderEffect = queueEffectWithSuspense;
|
|
2103
2083
|
function queueEffectWithSuspense(fn, suspense) {
|
|
2104
2084
|
if (suspense && suspense.pendingBranch) if (isArray(fn)) suspense.effects.push(...fn);
|
|
2105
2085
|
else suspense.effects.push(fn);
|
|
2106
2086
|
else queuePostFlushCb(fn);
|
|
2107
2087
|
}
|
|
2108
|
-
|
|
2088
|
+
createAppContext();
|
|
2109
2089
|
let currentInstance = null;
|
|
2110
2090
|
const getCurrentInstance = () => currentInstance || currentRenderingInstance;
|
|
2111
2091
|
let internalSetCurrentInstance;
|
|
2112
|
-
let setInSSRSetupState;
|
|
2113
2092
|
{
|
|
2114
2093
|
const g = getGlobalThis();
|
|
2115
2094
|
const registerGlobalSetter = (key, setter) => {
|
|
@@ -2122,7 +2101,7 @@ let setInSSRSetupState;
|
|
|
2122
2101
|
};
|
|
2123
2102
|
};
|
|
2124
2103
|
internalSetCurrentInstance = registerGlobalSetter(`__VUE_INSTANCE_SETTERS__`, (v) => currentInstance = v);
|
|
2125
|
-
|
|
2104
|
+
registerGlobalSetter(`__VUE_SSR_SETTERS__`, (v) => isInSSRComponentSetup = v);
|
|
2126
2105
|
}
|
|
2127
2106
|
const setCurrentInstance = (instance) => {
|
|
2128
2107
|
const prev = currentInstance;
|
|
@@ -2186,7 +2165,7 @@ function initCustomFormatter() {
|
|
|
2186
2165
|
vueStyle,
|
|
2187
2166
|
`VueInstance`
|
|
2188
2167
|
];
|
|
2189
|
-
else if (isRef(obj)) {
|
|
2168
|
+
else if (/* @__PURE__ */ isRef(obj)) {
|
|
2190
2169
|
pauseTracking();
|
|
2191
2170
|
const value = obj.value;
|
|
2192
2171
|
resetTracking();
|
|
@@ -2202,25 +2181,25 @@ function initCustomFormatter() {
|
|
|
2202
2181
|
formatValue(value),
|
|
2203
2182
|
`>`
|
|
2204
2183
|
];
|
|
2205
|
-
} else if (isReactive(obj)) return [
|
|
2184
|
+
} else if (/* @__PURE__ */ isReactive(obj)) return [
|
|
2206
2185
|
"div",
|
|
2207
2186
|
{},
|
|
2208
2187
|
[
|
|
2209
2188
|
"span",
|
|
2210
2189
|
vueStyle,
|
|
2211
|
-
isShallow(obj) ? "ShallowReactive" : "Reactive"
|
|
2190
|
+
/* @__PURE__ */ isShallow(obj) ? "ShallowReactive" : "Reactive"
|
|
2212
2191
|
],
|
|
2213
2192
|
"<",
|
|
2214
2193
|
formatValue(obj),
|
|
2215
|
-
`>${isReadonly(obj) ? ` (readonly)` : ``}`
|
|
2194
|
+
`>${/* @__PURE__ */ isReadonly(obj) ? ` (readonly)` : ``}`
|
|
2216
2195
|
];
|
|
2217
|
-
else if (isReadonly(obj)) return [
|
|
2196
|
+
else if (/* @__PURE__ */ isReadonly(obj)) return [
|
|
2218
2197
|
"div",
|
|
2219
2198
|
{},
|
|
2220
2199
|
[
|
|
2221
2200
|
"span",
|
|
2222
2201
|
vueStyle,
|
|
2223
|
-
isShallow(obj) ? "ShallowReadonly" : "Readonly"
|
|
2202
|
+
/* @__PURE__ */ isShallow(obj) ? "ShallowReadonly" : "Readonly"
|
|
2224
2203
|
],
|
|
2225
2204
|
"<",
|
|
2226
2205
|
formatValue(obj),
|
|
@@ -2241,9 +2220,9 @@ function initCustomFormatter() {
|
|
|
2241
2220
|
};
|
|
2242
2221
|
function formatInstance(instance) {
|
|
2243
2222
|
const blocks = [];
|
|
2244
|
-
if (instance.type.props && instance.props) blocks.push(createInstanceBlock("props", toRaw(instance.props)));
|
|
2223
|
+
if (instance.type.props && instance.props) blocks.push(createInstanceBlock("props", /* @__PURE__ */ toRaw(instance.props)));
|
|
2245
2224
|
if (instance.setupState !== EMPTY_OBJ) blocks.push(createInstanceBlock("setup", instance.setupState));
|
|
2246
|
-
if (instance.data !== EMPTY_OBJ) blocks.push(createInstanceBlock("data", toRaw(instance.data)));
|
|
2225
|
+
if (instance.data !== EMPTY_OBJ) blocks.push(createInstanceBlock("data", /* @__PURE__ */ toRaw(instance.data)));
|
|
2247
2226
|
const computed = extractKeys(instance, "computed");
|
|
2248
2227
|
if (computed) blocks.push(createInstanceBlock("computed", computed));
|
|
2249
2228
|
const injected = extractKeys(instance, "inject");
|
|
@@ -2305,7 +2284,7 @@ function initCustomFormatter() {
|
|
|
2305
2284
|
keywordStyle,
|
|
2306
2285
|
v
|
|
2307
2286
|
];
|
|
2308
|
-
else if (isObject$1(v)) return ["object", { object: asRaw ? toRaw(v) : v }];
|
|
2287
|
+
else if (isObject$1(v)) return ["object", { object: asRaw ? /* @__PURE__ */ toRaw(v) : v }];
|
|
2309
2288
|
else return [
|
|
2310
2289
|
"span",
|
|
2311
2290
|
stringStyle,
|
|
@@ -2326,18 +2305,17 @@ function initCustomFormatter() {
|
|
|
2326
2305
|
if (Comp.mixins && Comp.mixins.some((m) => isKeyOfType(m, key, type))) return true;
|
|
2327
2306
|
}
|
|
2328
2307
|
function genRefFlag(v) {
|
|
2329
|
-
if (isShallow(v)) return `ShallowRef`;
|
|
2308
|
+
if (/* @__PURE__ */ isShallow(v)) return `ShallowRef`;
|
|
2330
2309
|
if (v.effect) return `ComputedRef`;
|
|
2331
2310
|
return `Ref`;
|
|
2332
2311
|
}
|
|
2333
2312
|
if (window.devtoolsFormatters) window.devtoolsFormatters.push(formatter);
|
|
2334
2313
|
else window.devtoolsFormatters = [formatter];
|
|
2335
2314
|
}
|
|
2336
|
-
|
|
2337
2315
|
//#endregion
|
|
2338
|
-
//#region ../../node_modules/.pnpm/vue@3.5.
|
|
2316
|
+
//#region ../../node_modules/.pnpm/vue@3.5.32_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
|
|
2339
2317
|
/**
|
|
2340
|
-
* vue v3.5.
|
|
2318
|
+
* vue v3.5.32
|
|
2341
2319
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
2342
2320
|
* @license MIT
|
|
2343
2321
|
**/
|
|
@@ -2345,14 +2323,10 @@ function initDev() {
|
|
|
2345
2323
|
initCustomFormatter();
|
|
2346
2324
|
}
|
|
2347
2325
|
initDev();
|
|
2348
|
-
|
|
2349
2326
|
//#endregion
|
|
2350
2327
|
//#region src/util/reactivity/getRawData.ts
|
|
2351
|
-
const getRawData = (data) => isReactive(data) ? toRaw(data) : data;
|
|
2352
|
-
|
|
2353
|
-
//#endregion
|
|
2354
|
-
//#region ../../node_modules/.pnpm/@vueuse+shared@14.2.0_vue@3.5.27_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js
|
|
2355
|
-
const isWorker = typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
2328
|
+
const getRawData = (data) => /* @__PURE__ */ isReactive(data) ? /* @__PURE__ */ toRaw(data) : data;
|
|
2329
|
+
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
2356
2330
|
const toString = Object.prototype.toString;
|
|
2357
2331
|
const isObject = (val) => toString.call(val) === "[object Object]";
|
|
2358
2332
|
function cacheStringFunction(fn) {
|
|
@@ -2362,12 +2336,11 @@ function cacheStringFunction(fn) {
|
|
|
2362
2336
|
});
|
|
2363
2337
|
}
|
|
2364
2338
|
const hyphenateRE = /\B([A-Z])/g;
|
|
2365
|
-
|
|
2339
|
+
cacheStringFunction((str) => str.replace(hyphenateRE, "-$1").toLowerCase());
|
|
2366
2340
|
const camelizeRE = /-(\w)/g;
|
|
2367
|
-
|
|
2341
|
+
cacheStringFunction((str) => {
|
|
2368
2342
|
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
|
|
2369
2343
|
});
|
|
2370
|
-
|
|
2371
2344
|
//#endregion
|
|
2372
2345
|
//#region src/util/reactivity/toRawDeep.ts
|
|
2373
2346
|
const toRawDeep = (data) => {
|
|
@@ -2379,22 +2352,21 @@ const toRawDeep = (data) => {
|
|
|
2379
2352
|
}
|
|
2380
2353
|
return rawData;
|
|
2381
2354
|
};
|
|
2382
|
-
|
|
2383
2355
|
//#endregion
|
|
2384
2356
|
//#region src/models/shared/Serializable.ts
|
|
2385
2357
|
var Serializable = class {
|
|
2386
2358
|
toJSON() {
|
|
2387
|
-
return
|
|
2359
|
+
return structuredClone(toRawDeep(this));
|
|
2388
2360
|
}
|
|
2389
2361
|
};
|
|
2390
|
-
|
|
2391
2362
|
//#endregion
|
|
2392
2363
|
//#region src/services/message/constants.ts
|
|
2393
2364
|
const MENTION_ID_ATTRIBUTE = "data-id";
|
|
2394
2365
|
const MENTION_LABEL_ATTRIBUTE = "data-label";
|
|
2395
2366
|
const MENTION_TYPE_ATTRIBUTE = "data-type";
|
|
2396
2367
|
const MENTION_TYPE = "mention";
|
|
2397
|
-
|
|
2368
|
+
const MENTION_HERE_ID = "@here";
|
|
2369
|
+
const MENTION_EVERYONE_ID = "@everyone";
|
|
2398
2370
|
//#endregion
|
|
2399
2371
|
//#region ../../node_modules/.pnpm/he@1.2.0/node_modules/he/he.js
|
|
2400
2372
|
var require_he = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -6481,9 +6453,8 @@ var require_he = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6481
6453
|
else root.he = he;
|
|
6482
6454
|
})(exports);
|
|
6483
6455
|
}));
|
|
6484
|
-
|
|
6485
6456
|
//#endregion
|
|
6486
|
-
//#region ../../node_modules/.pnpm/node-html-parser@7.0
|
|
6457
|
+
//#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/nodes/node.js
|
|
6487
6458
|
var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6488
6459
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6489
6460
|
const he_1 = require_he();
|
|
@@ -6526,9 +6497,8 @@ var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6526
6497
|
};
|
|
6527
6498
|
exports.default = Node;
|
|
6528
6499
|
}));
|
|
6529
|
-
|
|
6530
6500
|
//#endregion
|
|
6531
|
-
//#region ../../node_modules/.pnpm/node-html-parser@7.0
|
|
6501
|
+
//#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/nodes/type.js
|
|
6532
6502
|
var require_type = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6533
6503
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6534
6504
|
var NodeType;
|
|
@@ -6539,9 +6509,8 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6539
6509
|
})(NodeType || (NodeType = {}));
|
|
6540
6510
|
exports.default = NodeType;
|
|
6541
6511
|
}));
|
|
6542
|
-
|
|
6543
6512
|
//#endregion
|
|
6544
|
-
//#region ../../node_modules/.pnpm/node-html-parser@7.0
|
|
6513
|
+
//#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/nodes/comment.js
|
|
6545
6514
|
var require_comment = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6546
6515
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
6547
6516
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -6549,7 +6518,7 @@ var require_comment = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6549
6518
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6550
6519
|
const node_1 = __importDefault(require_node$1());
|
|
6551
6520
|
const type_1 = __importDefault(require_type());
|
|
6552
|
-
|
|
6521
|
+
exports.default = class CommentNode extends node_1.default {
|
|
6553
6522
|
clone() {
|
|
6554
6523
|
return new CommentNode(this.rawText, null, void 0, this.rawTagName);
|
|
6555
6524
|
}
|
|
@@ -6574,9 +6543,7 @@ var require_comment = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6574
6543
|
return `<!--${this.rawText}-->`;
|
|
6575
6544
|
}
|
|
6576
6545
|
};
|
|
6577
|
-
exports.default = CommentNode;
|
|
6578
6546
|
}));
|
|
6579
|
-
|
|
6580
6547
|
//#endregion
|
|
6581
6548
|
//#region ../../node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/index.js
|
|
6582
6549
|
var require_lib$6 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -6632,7 +6599,6 @@ var require_lib$6 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6632
6599
|
/** Type for <!doctype ...> */
|
|
6633
6600
|
exports.Doctype = ElementType.Doctype;
|
|
6634
6601
|
}));
|
|
6635
|
-
|
|
6636
6602
|
//#endregion
|
|
6637
6603
|
//#region ../../node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/node.js
|
|
6638
6604
|
var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -7065,7 +7031,6 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7065
7031
|
return children;
|
|
7066
7032
|
}
|
|
7067
7033
|
}));
|
|
7068
|
-
|
|
7069
7034
|
//#endregion
|
|
7070
7035
|
//#region ../../node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/index.js
|
|
7071
7036
|
var require_lib$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -7218,7 +7183,6 @@ var require_lib$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7218
7183
|
exports.DomHandler = DomHandler;
|
|
7219
7184
|
exports.default = DomHandler;
|
|
7220
7185
|
}));
|
|
7221
|
-
|
|
7222
7186
|
//#endregion
|
|
7223
7187
|
//#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/generated/decode-data-html.js
|
|
7224
7188
|
var require_decode_data_html = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -7227,7 +7191,6 @@ var require_decode_data_html = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7227
7191
|
return c.charCodeAt(0);
|
|
7228
7192
|
}));
|
|
7229
7193
|
}));
|
|
7230
|
-
|
|
7231
7194
|
//#endregion
|
|
7232
7195
|
//#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/generated/decode-data-xml.js
|
|
7233
7196
|
var require_decode_data_xml = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -7236,7 +7199,6 @@ var require_decode_data_xml = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7236
7199
|
return c.charCodeAt(0);
|
|
7237
7200
|
}));
|
|
7238
7201
|
}));
|
|
7239
|
-
|
|
7240
7202
|
//#endregion
|
|
7241
7203
|
//#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/decode_codepoint.js
|
|
7242
7204
|
var require_decode_codepoint = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -7309,7 +7271,6 @@ var require_decode_codepoint = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7309
7271
|
}
|
|
7310
7272
|
exports.default = decodeCodePoint;
|
|
7311
7273
|
}));
|
|
7312
|
-
|
|
7313
7274
|
//#endregion
|
|
7314
7275
|
//#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/decode.js
|
|
7315
7276
|
var require_decode = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -7771,7 +7732,6 @@ var require_decode = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7771
7732
|
}
|
|
7772
7733
|
exports.decodeXML = decodeXML;
|
|
7773
7734
|
}));
|
|
7774
|
-
|
|
7775
7735
|
//#endregion
|
|
7776
7736
|
//#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/generated/encode-html.js
|
|
7777
7737
|
var require_encode_html = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -9481,7 +9441,6 @@ var require_encode_html = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9481
9441
|
[0, "ffl"]
|
|
9482
9442
|
]));
|
|
9483
9443
|
}));
|
|
9484
|
-
|
|
9485
9444
|
//#endregion
|
|
9486
9445
|
//#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/escape.js
|
|
9487
9446
|
var require_escape = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -9591,7 +9550,6 @@ var require_escape = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9591
9550
|
[160, " "]
|
|
9592
9551
|
]));
|
|
9593
9552
|
}));
|
|
9594
|
-
|
|
9595
9553
|
//#endregion
|
|
9596
9554
|
//#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/encode.js
|
|
9597
9555
|
var require_encode = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -9663,7 +9621,6 @@ var require_encode = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9663
9621
|
return ret + str.substr(lastIdx);
|
|
9664
9622
|
}
|
|
9665
9623
|
}));
|
|
9666
|
-
|
|
9667
9624
|
//#endregion
|
|
9668
9625
|
//#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/index.js
|
|
9669
9626
|
var require_lib$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -9882,7 +9839,6 @@ var require_lib$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9882
9839
|
}
|
|
9883
9840
|
});
|
|
9884
9841
|
}));
|
|
9885
|
-
|
|
9886
9842
|
//#endregion
|
|
9887
9843
|
//#region ../../node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/foreignNames.js
|
|
9888
9844
|
var require_foreignNames = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -9993,7 +9949,6 @@ var require_foreignNames = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9993
9949
|
return [val.toLowerCase(), val];
|
|
9994
9950
|
}));
|
|
9995
9951
|
}));
|
|
9996
|
-
|
|
9997
9952
|
//#endregion
|
|
9998
9953
|
//#region ../../node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/index.js
|
|
9999
9954
|
var require_lib$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -10179,7 +10134,6 @@ var require_lib$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10179
10134
|
return "<!--".concat(elem.data, "-->");
|
|
10180
10135
|
}
|
|
10181
10136
|
}));
|
|
10182
|
-
|
|
10183
10137
|
//#endregion
|
|
10184
10138
|
//#region ../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/stringify.js
|
|
10185
10139
|
var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -10261,7 +10215,6 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10261
10215
|
return "";
|
|
10262
10216
|
}
|
|
10263
10217
|
}));
|
|
10264
|
-
|
|
10265
10218
|
//#endregion
|
|
10266
10219
|
//#region ../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/traversal.js
|
|
10267
10220
|
var require_traversal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -10384,7 +10337,6 @@ var require_traversal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10384
10337
|
return prev;
|
|
10385
10338
|
}
|
|
10386
10339
|
}));
|
|
10387
|
-
|
|
10388
10340
|
//#endregion
|
|
10389
10341
|
//#region ../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/manipulation.js
|
|
10390
10342
|
var require_manipulation = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -10510,7 +10462,6 @@ var require_manipulation = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10510
10462
|
elem.prev = prev;
|
|
10511
10463
|
}
|
|
10512
10464
|
}));
|
|
10513
|
-
|
|
10514
10465
|
//#endregion
|
|
10515
10466
|
//#region ../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/querying.js
|
|
10516
10467
|
var require_querying = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -10648,7 +10599,6 @@ var require_querying = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10648
10599
|
}
|
|
10649
10600
|
}
|
|
10650
10601
|
}));
|
|
10651
|
-
|
|
10652
10602
|
//#endregion
|
|
10653
10603
|
//#region ../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/legacy.js
|
|
10654
10604
|
var require_legacy = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -10824,7 +10774,6 @@ var require_legacy = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10824
10774
|
return (0, querying_js_1.filter)(Checks["tag_type"](type), nodes, recurse, limit);
|
|
10825
10775
|
}
|
|
10826
10776
|
}));
|
|
10827
|
-
|
|
10828
10777
|
//#endregion
|
|
10829
10778
|
//#region ../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/helpers.js
|
|
10830
10779
|
var require_helpers = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -10946,7 +10895,6 @@ var require_helpers = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10946
10895
|
return nodes;
|
|
10947
10896
|
}
|
|
10948
10897
|
}));
|
|
10949
|
-
|
|
10950
10898
|
//#endregion
|
|
10951
10899
|
//#region ../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/feeds.js
|
|
10952
10900
|
var require_feeds = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -11119,7 +11067,6 @@ var require_feeds = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
11119
11067
|
return value === "rss" || value === "feed" || value === "rdf:RDF";
|
|
11120
11068
|
}
|
|
11121
11069
|
}));
|
|
11122
|
-
|
|
11123
11070
|
//#endregion
|
|
11124
11071
|
//#region ../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/index.js
|
|
11125
11072
|
var require_lib$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -11188,7 +11135,6 @@ var require_lib$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
11188
11135
|
}
|
|
11189
11136
|
});
|
|
11190
11137
|
}));
|
|
11191
|
-
|
|
11192
11138
|
//#endregion
|
|
11193
11139
|
//#region ../../node_modules/.pnpm/boolbase@1.0.0/node_modules/boolbase/index.js
|
|
11194
11140
|
var require_boolbase = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -11201,12 +11147,10 @@ var require_boolbase = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11201
11147
|
}
|
|
11202
11148
|
};
|
|
11203
11149
|
}));
|
|
11204
|
-
|
|
11205
11150
|
//#endregion
|
|
11206
11151
|
//#region ../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/types.js
|
|
11207
11152
|
var SelectorType, IgnoreCaseMode, AttributeAction;
|
|
11208
11153
|
var init_types = __esmMin((() => {
|
|
11209
|
-
;
|
|
11210
11154
|
(function(SelectorType) {
|
|
11211
11155
|
SelectorType["Attribute"] = "attribute";
|
|
11212
11156
|
SelectorType["Pseudo"] = "pseudo";
|
|
@@ -11226,7 +11170,6 @@ var init_types = __esmMin((() => {
|
|
|
11226
11170
|
IgnoreCase: true,
|
|
11227
11171
|
CaseSensitive: false
|
|
11228
11172
|
};
|
|
11229
|
-
;
|
|
11230
11173
|
(function(AttributeAction) {
|
|
11231
11174
|
AttributeAction["Any"] = "any";
|
|
11232
11175
|
AttributeAction["Element"] = "element";
|
|
@@ -11238,7 +11181,6 @@ var init_types = __esmMin((() => {
|
|
|
11238
11181
|
AttributeAction["Start"] = "start";
|
|
11239
11182
|
})(AttributeAction || (AttributeAction = {}));
|
|
11240
11183
|
}));
|
|
11241
|
-
|
|
11242
11184
|
//#endregion
|
|
11243
11185
|
//#region ../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/parse.js
|
|
11244
11186
|
/**
|
|
@@ -11553,7 +11495,6 @@ var init_parse = __esmMin((() => {
|
|
|
11553
11495
|
]);
|
|
11554
11496
|
stripQuotesFromPseudos = new Set(["contains", "icontains"]);
|
|
11555
11497
|
}));
|
|
11556
|
-
|
|
11557
11498
|
//#endregion
|
|
11558
11499
|
//#region ../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/stringify.js
|
|
11559
11500
|
/**
|
|
@@ -11639,7 +11580,6 @@ var init_stringify = __esmMin((() => {
|
|
|
11639
11580
|
"."
|
|
11640
11581
|
].map((c) => c.charCodeAt(0)));
|
|
11641
11582
|
}));
|
|
11642
|
-
|
|
11643
11583
|
//#endregion
|
|
11644
11584
|
//#region ../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/index.js
|
|
11645
11585
|
var es_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -11655,7 +11595,6 @@ var init_es = __esmMin((() => {
|
|
|
11655
11595
|
init_parse();
|
|
11656
11596
|
init_stringify();
|
|
11657
11597
|
}));
|
|
11658
|
-
|
|
11659
11598
|
//#endregion
|
|
11660
11599
|
//#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/sort.js
|
|
11661
11600
|
var require_sort = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -11720,7 +11659,6 @@ var require_sort = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
11720
11659
|
return proc;
|
|
11721
11660
|
}
|
|
11722
11661
|
}));
|
|
11723
|
-
|
|
11724
11662
|
//#endregion
|
|
11725
11663
|
//#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/attributes.js
|
|
11726
11664
|
var require_attributes = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -11922,7 +11860,6 @@ var require_attributes = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
11922
11860
|
}
|
|
11923
11861
|
};
|
|
11924
11862
|
}));
|
|
11925
|
-
|
|
11926
11863
|
//#endregion
|
|
11927
11864
|
//#region ../../node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/parse.js
|
|
11928
11865
|
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -11987,7 +11924,6 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
11987
11924
|
}
|
|
11988
11925
|
exports.parse = parse;
|
|
11989
11926
|
}));
|
|
11990
|
-
|
|
11991
11927
|
//#endregion
|
|
11992
11928
|
//#region ../../node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/compile.js
|
|
11993
11929
|
var require_compile$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -12095,7 +12031,6 @@ var require_compile$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12095
12031
|
}
|
|
12096
12032
|
exports.generate = generate;
|
|
12097
12033
|
}));
|
|
12098
|
-
|
|
12099
12034
|
//#endregion
|
|
12100
12035
|
//#region ../../node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/index.js
|
|
12101
12036
|
var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -12183,7 +12118,6 @@ var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12183
12118
|
}
|
|
12184
12119
|
exports.sequence = sequence;
|
|
12185
12120
|
}));
|
|
12186
|
-
|
|
12187
12121
|
//#endregion
|
|
12188
12122
|
//#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/pseudo-selectors/filters.js
|
|
12189
12123
|
var require_filters = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -12313,7 +12247,6 @@ var require_filters = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12313
12247
|
};
|
|
12314
12248
|
}
|
|
12315
12249
|
}));
|
|
12316
|
-
|
|
12317
12250
|
//#endregion
|
|
12318
12251
|
//#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/pseudo-selectors/pseudos.js
|
|
12319
12252
|
var require_pseudos = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -12386,7 +12319,6 @@ var require_pseudos = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12386
12319
|
}
|
|
12387
12320
|
exports.verifyPseudoArgs = verifyPseudoArgs;
|
|
12388
12321
|
}));
|
|
12389
|
-
|
|
12390
12322
|
//#endregion
|
|
12391
12323
|
//#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/pseudo-selectors/aliases.js
|
|
12392
12324
|
var require_aliases = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -12418,7 +12350,6 @@ var require_aliases = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12418
12350
|
text: "input:is(:not([type!='']), [type=text])"
|
|
12419
12351
|
};
|
|
12420
12352
|
}));
|
|
12421
|
-
|
|
12422
12353
|
//#endregion
|
|
12423
12354
|
//#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/pseudo-selectors/subselects.js
|
|
12424
12355
|
var require_subselects = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -12509,7 +12440,6 @@ var require_subselects = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12509
12440
|
}
|
|
12510
12441
|
};
|
|
12511
12442
|
}));
|
|
12512
|
-
|
|
12513
12443
|
//#endregion
|
|
12514
12444
|
//#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/pseudo-selectors/index.js
|
|
12515
12445
|
var require_pseudo_selectors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -12570,7 +12500,6 @@ var require_pseudo_selectors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12570
12500
|
}
|
|
12571
12501
|
exports.compilePseudoSelector = compilePseudoSelector;
|
|
12572
12502
|
}));
|
|
12573
|
-
|
|
12574
12503
|
//#endregion
|
|
12575
12504
|
//#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/general.js
|
|
12576
12505
|
var require_general = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -12663,7 +12592,6 @@ var require_general = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12663
12592
|
}
|
|
12664
12593
|
exports.compileGeneralSelector = compileGeneralSelector;
|
|
12665
12594
|
}));
|
|
12666
|
-
|
|
12667
12595
|
//#endregion
|
|
12668
12596
|
//#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/compile.js
|
|
12669
12597
|
var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -12786,7 +12714,6 @@ var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12786
12714
|
};
|
|
12787
12715
|
}
|
|
12788
12716
|
}));
|
|
12789
|
-
|
|
12790
12717
|
//#endregion
|
|
12791
12718
|
//#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/index.js
|
|
12792
12719
|
var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -12945,9 +12872,8 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12945
12872
|
}
|
|
12946
12873
|
});
|
|
12947
12874
|
}));
|
|
12948
|
-
|
|
12949
12875
|
//#endregion
|
|
12950
|
-
//#region ../../node_modules/.pnpm/node-html-parser@7.0
|
|
12876
|
+
//#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/back.js
|
|
12951
12877
|
var require_back = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12952
12878
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12953
12879
|
function arr_back(arr) {
|
|
@@ -12955,9 +12881,8 @@ var require_back = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12955
12881
|
}
|
|
12956
12882
|
exports.default = arr_back;
|
|
12957
12883
|
}));
|
|
12958
|
-
|
|
12959
12884
|
//#endregion
|
|
12960
|
-
//#region ../../node_modules/.pnpm/node-html-parser@7.0
|
|
12885
|
+
//#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/matcher.js
|
|
12961
12886
|
var require_matcher = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12962
12887
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
12963
12888
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -13052,9 +12977,8 @@ var require_matcher = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13052
12977
|
findAll
|
|
13053
12978
|
};
|
|
13054
12979
|
}));
|
|
13055
|
-
|
|
13056
12980
|
//#endregion
|
|
13057
|
-
//#region ../../node_modules/.pnpm/node-html-parser@7.0
|
|
12981
|
+
//#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/void-tag.js
|
|
13058
12982
|
var require_void_tag = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13059
12983
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13060
12984
|
var VoidTag = class {
|
|
@@ -13094,9 +13018,8 @@ var require_void_tag = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13094
13018
|
};
|
|
13095
13019
|
exports.default = VoidTag;
|
|
13096
13020
|
}));
|
|
13097
|
-
|
|
13098
13021
|
//#endregion
|
|
13099
|
-
//#region ../../node_modules/.pnpm/node-html-parser@7.0
|
|
13022
|
+
//#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/nodes/text.js
|
|
13100
13023
|
var require_text = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13101
13024
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
13102
13025
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -13105,11 +13028,7 @@ var require_text = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13105
13028
|
const he_1 = require_he();
|
|
13106
13029
|
const node_1 = __importDefault(require_node$1());
|
|
13107
13030
|
const type_1 = __importDefault(require_type());
|
|
13108
|
-
|
|
13109
|
-
* TextNode to contain a text element in DOM tree.
|
|
13110
|
-
* @param {string} value [description]
|
|
13111
|
-
*/
|
|
13112
|
-
var TextNode = class TextNode extends node_1.default {
|
|
13031
|
+
exports.default = class TextNode extends node_1.default {
|
|
13113
13032
|
clone() {
|
|
13114
13033
|
return new TextNode(this._rawText, null);
|
|
13115
13034
|
}
|
|
@@ -13168,7 +13087,6 @@ var require_text = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13168
13087
|
return this.rawText;
|
|
13169
13088
|
}
|
|
13170
13089
|
};
|
|
13171
|
-
exports.default = TextNode;
|
|
13172
13090
|
/**
|
|
13173
13091
|
* Trim whitespace except single leading/trailing non-breaking space
|
|
13174
13092
|
*/
|
|
@@ -13194,9 +13112,8 @@ var require_text = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13194
13112
|
return (hasLeadingSpace ? " " : "") + text.slice(startPos, endPos + 1) + (hasTrailingSpace ? " " : "");
|
|
13195
13113
|
}
|
|
13196
13114
|
}));
|
|
13197
|
-
|
|
13198
13115
|
//#endregion
|
|
13199
|
-
//#region ../../node_modules/.pnpm/node-html-parser@7.0
|
|
13116
|
+
//#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/nodes/html.js
|
|
13200
13117
|
var require_html = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13201
13118
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
13202
13119
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -13603,6 +13520,17 @@ var require_html = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13603
13520
|
});
|
|
13604
13521
|
}
|
|
13605
13522
|
/**
|
|
13523
|
+
* Tests whether the node matches a given CSS selector.
|
|
13524
|
+
* @param {string} selector Simplified CSS selector
|
|
13525
|
+
* @return {boolean}
|
|
13526
|
+
*/
|
|
13527
|
+
matches(selector) {
|
|
13528
|
+
return (0, css_select_1.is)(this, selector, {
|
|
13529
|
+
xmlMode: true,
|
|
13530
|
+
adapter: matcher_1.default
|
|
13531
|
+
});
|
|
13532
|
+
}
|
|
13533
|
+
/**
|
|
13606
13534
|
* find elements by their tagName
|
|
13607
13535
|
* @param {string} tagName the tagName of the elements to select
|
|
13608
13536
|
*/
|
|
@@ -14202,7 +14130,7 @@ var require_html = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14202
14130
|
attrs[key.toLowerCase()] = isQuoted ? val.slice(1, val.length - 1) : val;
|
|
14203
14131
|
}
|
|
14204
14132
|
const parentTagName = currentParent.rawTagName;
|
|
14205
|
-
if (!closingSlash && kElementsClosedByOpening[parentTagName]) {
|
|
14133
|
+
if (!closingSlash && !options.preserveTagNesting && kElementsClosedByOpening[parentTagName]) {
|
|
14206
14134
|
if (kElementsClosedByOpening[parentTagName][tagName]) {
|
|
14207
14135
|
stack.pop();
|
|
14208
14136
|
currentParent = (0, back_1.default)(stack);
|
|
@@ -14263,6 +14191,18 @@ var require_html = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14263
14191
|
}
|
|
14264
14192
|
}
|
|
14265
14193
|
}
|
|
14194
|
+
if (options.closeAllByClosing === true) {
|
|
14195
|
+
let i;
|
|
14196
|
+
for (i = stack.length - 2; i >= 0; i--) if (stack[i].rawTagName === tagName) break;
|
|
14197
|
+
if (i >= 0) {
|
|
14198
|
+
while (stack.length > i) {
|
|
14199
|
+
currentParent.range[1] = createRange(-1, Math.max(lastTextPos, tagEndPos))[1];
|
|
14200
|
+
stack.pop();
|
|
14201
|
+
currentParent = (0, back_1.default)(stack);
|
|
14202
|
+
}
|
|
14203
|
+
continue;
|
|
14204
|
+
}
|
|
14205
|
+
}
|
|
14266
14206
|
break;
|
|
14267
14207
|
}
|
|
14268
14208
|
}
|
|
@@ -14318,9 +14258,8 @@ var require_html = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14318
14258
|
});
|
|
14319
14259
|
}
|
|
14320
14260
|
}));
|
|
14321
|
-
|
|
14322
14261
|
//#endregion
|
|
14323
|
-
//#region ../../node_modules/.pnpm/node-html-parser@7.0
|
|
14262
|
+
//#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/parse.js
|
|
14324
14263
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14325
14264
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14326
14265
|
exports.default = void 0;
|
|
@@ -14332,9 +14271,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14332
14271
|
}
|
|
14333
14272
|
});
|
|
14334
14273
|
}));
|
|
14335
|
-
|
|
14336
14274
|
//#endregion
|
|
14337
|
-
//#region ../../node_modules/.pnpm/node-html-parser@7.0
|
|
14275
|
+
//#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/valid.js
|
|
14338
14276
|
var require_valid = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14339
14277
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14340
14278
|
const html_1 = require_html();
|
|
@@ -14348,10 +14286,9 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14348
14286
|
}
|
|
14349
14287
|
exports.default = valid;
|
|
14350
14288
|
}));
|
|
14351
|
-
|
|
14352
14289
|
//#endregion
|
|
14353
|
-
//#region
|
|
14354
|
-
var
|
|
14290
|
+
//#region src/services/message/getMentions.ts
|
|
14291
|
+
var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14355
14292
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
14356
14293
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
14357
14294
|
};
|
|
@@ -14381,21 +14318,14 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14381
14318
|
parse.Node = node_1.default;
|
|
14382
14319
|
parse.TextNode = text_1.default;
|
|
14383
14320
|
parse.NodeType = type_1.default;
|
|
14384
|
-
}));
|
|
14385
|
-
|
|
14386
|
-
//#endregion
|
|
14387
|
-
//#region src/services/message/getMentions.ts
|
|
14388
|
-
var import_dist = require_dist();
|
|
14321
|
+
})))();
|
|
14389
14322
|
const getMentions = (message) => (0, import_dist.parse)(message).querySelectorAll(`span[${MENTION_TYPE_ATTRIBUTE}='${MENTION_TYPE}']`);
|
|
14390
|
-
|
|
14391
14323
|
//#endregion
|
|
14392
14324
|
//#region src/services/prettier/css.ts
|
|
14393
14325
|
const css = String.raw;
|
|
14394
|
-
|
|
14395
14326
|
//#endregion
|
|
14396
14327
|
//#region src/services/prettier/html.ts
|
|
14397
14328
|
const html = String.raw;
|
|
14398
|
-
|
|
14399
14329
|
//#endregion
|
|
14400
14330
|
//#region src/services/shared/applyItemMetadataMixin.ts
|
|
14401
14331
|
const applyItemMetadataMixin = (Base) => class ItemWithMetadata extends Base {
|
|
@@ -14403,21 +14333,17 @@ const applyItemMetadataMixin = (Base) => class ItemWithMetadata extends Base {
|
|
|
14403
14333
|
deletedAt = null;
|
|
14404
14334
|
updatedAt = /* @__PURE__ */ new Date();
|
|
14405
14335
|
};
|
|
14406
|
-
|
|
14407
14336
|
//#endregion
|
|
14408
14337
|
//#region src/util/array/takeOne.ts
|
|
14409
14338
|
const takeOne = (values, index = 0) => {
|
|
14410
14339
|
return values[index];
|
|
14411
14340
|
};
|
|
14412
|
-
|
|
14413
14341
|
//#endregion
|
|
14414
14342
|
//#region src/util/environment/getIsServer.ts
|
|
14415
14343
|
const getIsServer = () => typeof window === "undefined";
|
|
14416
|
-
|
|
14417
14344
|
//#endregion
|
|
14418
14345
|
//#region src/util/id/constants.ts
|
|
14419
14346
|
const ID_SEPARATOR = "|";
|
|
14420
|
-
|
|
14421
14347
|
//#endregion
|
|
14422
14348
|
//#region src/util/object/isPlainObject.ts
|
|
14423
14349
|
const isPlainObject = (data) => {
|
|
@@ -14425,7 +14351,6 @@ const isPlainObject = (data) => {
|
|
|
14425
14351
|
const prototype = Object.getPrototypeOf(data);
|
|
14426
14352
|
return prototype === null || prototype === Object.prototype;
|
|
14427
14353
|
};
|
|
14428
|
-
|
|
14429
14354
|
//#endregion
|
|
14430
14355
|
//#region src/util/object/jsonDateParse.ts
|
|
14431
14356
|
const reISO = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.{0,1}\d*))(?:Z|(\+|-)([\d|:]*))?$/;
|
|
@@ -14445,19 +14370,15 @@ const jsonDateParse = (text) => JSON.parse(text, (_key, value) => {
|
|
|
14445
14370
|
}
|
|
14446
14371
|
return parsedValue;
|
|
14447
14372
|
});
|
|
14448
|
-
|
|
14449
14373
|
//#endregion
|
|
14450
14374
|
//#region src/util/object/mergeObjectsStrict.ts
|
|
14451
14375
|
const mergeObjectsStrict = (...objects) => Object.assign({}, ...objects);
|
|
14452
|
-
|
|
14453
14376
|
//#endregion
|
|
14454
14377
|
//#region src/util/regex/escapeRegExp.ts
|
|
14455
14378
|
const escapeRegExp = (string) => string.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`);
|
|
14456
|
-
|
|
14457
14379
|
//#endregion
|
|
14458
14380
|
//#region src/util/text/capitalize.ts
|
|
14459
14381
|
const capitalize = (string) => `${string.charAt(0).toUpperCase()}${string.slice(1)}`;
|
|
14460
|
-
|
|
14461
14382
|
//#endregion
|
|
14462
14383
|
//#region src/util/text/streamToText.ts
|
|
14463
14384
|
const streamToText = async (readable) => {
|
|
@@ -14466,15 +14387,12 @@ const streamToText = async (readable) => {
|
|
|
14466
14387
|
for await (const chunk of readable) data += chunk.toString();
|
|
14467
14388
|
return data;
|
|
14468
14389
|
};
|
|
14469
|
-
|
|
14470
14390
|
//#endregion
|
|
14471
14391
|
//#region src/util/text/toKebabCase.ts
|
|
14472
14392
|
const toKebabCase = (string) => string.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)?.map((x) => x.toLowerCase()).join("-") ?? "";
|
|
14473
|
-
|
|
14474
14393
|
//#endregion
|
|
14475
14394
|
//#region src/util/text/truncate.ts
|
|
14476
14395
|
const truncate = (string, length) => string.length > length ? `${string.slice(0, length)}..."` : string;
|
|
14477
|
-
|
|
14478
14396
|
//#endregion
|
|
14479
14397
|
//#region src/util/time/hrtime.ts
|
|
14480
14398
|
const hrtime = (previousHrTime) => {
|
|
@@ -14492,7 +14410,6 @@ const hrtime = (previousHrTime) => {
|
|
|
14492
14410
|
}
|
|
14493
14411
|
return [seconds, nanoseconds];
|
|
14494
14412
|
};
|
|
14495
|
-
|
|
14496
14413
|
//#endregion
|
|
14497
14414
|
//#region src/util/time/now.ts
|
|
14498
14415
|
const loadNanoseconds = hrtime();
|
|
@@ -14501,21 +14418,17 @@ const now = () => {
|
|
|
14501
14418
|
const [seconds, nanoseconds] = hrtime(loadNanoseconds);
|
|
14502
14419
|
return (BigInt(loadMilliseconds) * 10n ** 6n + (BigInt(seconds) * 10n ** 9n + BigInt(nanoseconds))).toString();
|
|
14503
14420
|
};
|
|
14504
|
-
|
|
14505
14421
|
//#endregion
|
|
14506
14422
|
//#region src/util/validation/exhaustiveGuard.ts
|
|
14507
14423
|
const exhaustiveGuard = (value) => {
|
|
14508
14424
|
throw new InvalidOperationError(Operation.Read, exhaustiveGuard.name, JSON.stringify(value));
|
|
14509
14425
|
};
|
|
14510
|
-
|
|
14511
14426
|
//#endregion
|
|
14512
14427
|
//#region src/util/id/uuid/constants.ts
|
|
14513
14428
|
const NIL = "00000000-0000-0000-0000-000000000000";
|
|
14514
14429
|
const UUIDV4_REGEX = /^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i;
|
|
14515
|
-
|
|
14516
14430
|
//#endregion
|
|
14517
14431
|
//#region src/util/id/uuid/uuidValidateV4.ts
|
|
14518
14432
|
const uuidValidateV4 = (uuid) => UUIDV4_REGEX.test(uuid);
|
|
14519
|
-
|
|
14520
14433
|
//#endregion
|
|
14521
|
-
export { AllSpecialValues, ID_SEPARATOR, InvalidOperationError, ItemEntityTypePropertyNames, ItemMetadata, ItemMetadataPropertyNames, MENTION_ID_ATTRIBUTE, MENTION_LABEL_ATTRIBUTE, MENTION_TYPE, MENTION_TYPE_ATTRIBUTE, NIL, NotFoundError, NotInitializedError, Operation, RoutePath, SITE_NAME, SURVEY_DISPLAY_NAME, Serializable, UUIDV4_REGEX, applyItemMetadataMixin, capitalize, createItemEntityTypeSchema, css, escapeRegExp, exhaustiveGuard, getIsServer, getMentions, getPropertyNames, getRawData, hrtime, html, isPlainObject, itemMetadataSchema, jsonDateParse, mergeObjectsStrict, now, streamToText, takeOne, toKebabCase, toRawDeep, truncate, uncapitalize, uuidValidateV4 };
|
|
14434
|
+
export { AllSpecialValues, ForbiddenError, ID_SEPARATOR, InvalidOperationError, ItemEntityTypePropertyNames, ItemMetadata, ItemMetadataPropertyNames, MENTION_EVERYONE_ID, MENTION_HERE_ID, MENTION_ID_ATTRIBUTE, MENTION_LABEL_ATTRIBUTE, MENTION_TYPE, MENTION_TYPE_ATTRIBUTE, NIL, NotFoundError, NotInitializedError, Operation, RoutePath, SITE_NAME, SURVEY_DISPLAY_NAME, Serializable, UUIDV4_REGEX, applyItemMetadataMixin, capitalize, createItemEntityTypeSchema, css, escapeRegExp, exhaustiveGuard, getIsServer, getMentions, getPropertyNames, getRawData, hrtime, html, isPlainObject, itemMetadataSchema, jsonDateParse, mergeObjectsStrict, now, streamToText, takeOne, toKebabCase, toRawDeep, truncate, uncapitalize, uuidValidateV4 };
|