@startinblox/core 2.0.0-beta.12 → 2.0.0-beta.13
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/dist/{helpers-DH22C8s9.js → helpers-C9LaFy6i.js} +17 -8
- package/dist/helpers.js +9 -8
- package/dist/index.js +386 -234
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
var _a2;
|
|
5
|
-
import { d as defineComponent, a as doesResourceContainList, u as uniqID, e as evalTemplateString, c as compare, p as parseFieldsString, f as findClosingBracketMatchIndex, g as generalComparator, b as fuzzyCompare, h as asyncQuerySelector,
|
|
6
|
-
import {
|
|
5
|
+
import { d as defineComponent, i as isUrlOrRelativePath, a as doesResourceContainList, u as uniqID, e as evalTemplateString, c as compare, p as parseFieldsString, f as findClosingBracketMatchIndex, g as generalComparator, b as fuzzyCompare, h as asyncQuerySelector, j as importInlineCSS, k as importCSS, t as transformArrayToContainer, s as setDeepProperty } from "./helpers-C9LaFy6i.js";
|
|
6
|
+
import { l } from "./helpers-C9LaFy6i.js";
|
|
7
7
|
if (!("flat" in Array.prototype)) {
|
|
8
8
|
Object.defineProperty(Array.prototype, "flat", {
|
|
9
9
|
configurable: true,
|
|
@@ -56,12 +56,12 @@ function getAugmentedNamespace(n3) {
|
|
|
56
56
|
a2.prototype = f2.prototype;
|
|
57
57
|
} else a2 = {};
|
|
58
58
|
Object.defineProperty(a2, "__esModule", { value: true });
|
|
59
|
-
Object.keys(n3).forEach(function(
|
|
60
|
-
var d2 = Object.getOwnPropertyDescriptor(n3,
|
|
61
|
-
Object.defineProperty(a2,
|
|
59
|
+
Object.keys(n3).forEach(function(k2) {
|
|
60
|
+
var d2 = Object.getOwnPropertyDescriptor(n3, k2);
|
|
61
|
+
Object.defineProperty(a2, k2, d2.get ? d2 : {
|
|
62
62
|
enumerable: true,
|
|
63
63
|
get: function() {
|
|
64
|
-
return n3[
|
|
64
|
+
return n3[k2];
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
});
|
|
@@ -758,14 +758,14 @@ function requireRelativeToAbsoluteIri() {
|
|
|
758
758
|
if (hasRequiredRelativeToAbsoluteIri) return relativeToAbsoluteIri;
|
|
759
759
|
hasRequiredRelativeToAbsoluteIri = 1;
|
|
760
760
|
(function(exports2) {
|
|
761
|
-
var __createBinding = relativeToAbsoluteIri && relativeToAbsoluteIri.__createBinding || (Object.create ? function(o2, m2,
|
|
762
|
-
if (k22 === void 0) k22 =
|
|
761
|
+
var __createBinding = relativeToAbsoluteIri && relativeToAbsoluteIri.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
762
|
+
if (k22 === void 0) k22 = k2;
|
|
763
763
|
Object.defineProperty(o2, k22, { enumerable: true, get: function() {
|
|
764
|
-
return m2[
|
|
764
|
+
return m2[k2];
|
|
765
765
|
} });
|
|
766
|
-
} : function(o2, m2,
|
|
767
|
-
if (k22 === void 0) k22 =
|
|
768
|
-
o2[k22] = m2[
|
|
766
|
+
} : function(o2, m2, k2, k22) {
|
|
767
|
+
if (k22 === void 0) k22 = k2;
|
|
768
|
+
o2[k22] = m2[k2];
|
|
769
769
|
});
|
|
770
770
|
var __exportStar = relativeToAbsoluteIri && relativeToAbsoluteIri.__exportStar || function(m2, exports3) {
|
|
771
771
|
for (var p2 in m2) if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p2)) __createBinding(exports3, m2, p2);
|
|
@@ -2577,25 +2577,25 @@ function requirePermuter() {
|
|
|
2577
2577
|
next() {
|
|
2578
2578
|
const { current, dir } = this;
|
|
2579
2579
|
const rval = current.slice();
|
|
2580
|
-
let
|
|
2580
|
+
let k2 = null;
|
|
2581
2581
|
let pos = 0;
|
|
2582
2582
|
const length = current.length;
|
|
2583
2583
|
for (let i3 = 0; i3 < length; ++i3) {
|
|
2584
2584
|
const element = current[i3];
|
|
2585
2585
|
const left = dir.get(element);
|
|
2586
|
-
if ((
|
|
2587
|
-
|
|
2586
|
+
if ((k2 === null || element > k2) && (left && i3 > 0 && element > current[i3 - 1] || !left && i3 < length - 1 && element > current[i3 + 1])) {
|
|
2587
|
+
k2 = element;
|
|
2588
2588
|
pos = i3;
|
|
2589
2589
|
}
|
|
2590
2590
|
}
|
|
2591
|
-
if (
|
|
2591
|
+
if (k2 === null) {
|
|
2592
2592
|
this.done = true;
|
|
2593
2593
|
} else {
|
|
2594
|
-
const swap = dir.get(
|
|
2594
|
+
const swap = dir.get(k2) ? pos - 1 : pos + 1;
|
|
2595
2595
|
current[pos] = current[swap];
|
|
2596
|
-
current[swap] =
|
|
2596
|
+
current[swap] = k2;
|
|
2597
2597
|
for (const element of current) {
|
|
2598
|
-
if (element >
|
|
2598
|
+
if (element > k2) {
|
|
2599
2599
|
dir.set(element, !dir.get(element));
|
|
2600
2600
|
}
|
|
2601
2601
|
}
|
|
@@ -3910,8 +3910,8 @@ function requireUtil() {
|
|
|
3910
3910
|
}
|
|
3911
3911
|
} else if (value instanceof Map) {
|
|
3912
3912
|
rval = /* @__PURE__ */ new Map();
|
|
3913
|
-
for (const [
|
|
3914
|
-
rval.set(
|
|
3913
|
+
for (const [k2, v2] of value) {
|
|
3914
|
+
rval.set(k2, api.clone(v2));
|
|
3915
3915
|
}
|
|
3916
3916
|
} else if (value instanceof Set) {
|
|
3917
3917
|
rval = /* @__PURE__ */ new Set();
|
|
@@ -4489,8 +4489,8 @@ function requireXhr() {
|
|
|
4489
4489
|
req.onload = () => resolve(req);
|
|
4490
4490
|
req.onerror = (err) => reject(err);
|
|
4491
4491
|
req.open("GET", url2, true);
|
|
4492
|
-
for (const
|
|
4493
|
-
req.setRequestHeader(
|
|
4492
|
+
for (const k2 in headers) {
|
|
4493
|
+
req.setRequestHeader(k2, headers[k2]);
|
|
4494
4494
|
}
|
|
4495
4495
|
req.send();
|
|
4496
4496
|
});
|
|
@@ -4558,7 +4558,7 @@ function requireYallist() {
|
|
|
4558
4558
|
self2.push(item);
|
|
4559
4559
|
});
|
|
4560
4560
|
} else if (arguments.length > 0) {
|
|
4561
|
-
for (var i3 = 0,
|
|
4561
|
+
for (var i3 = 0, l3 = arguments.length; i3 < l3; i3++) {
|
|
4562
4562
|
self2.push(arguments[i3]);
|
|
4563
4563
|
}
|
|
4564
4564
|
}
|
|
@@ -4627,13 +4627,13 @@ function requireYallist() {
|
|
|
4627
4627
|
this.length++;
|
|
4628
4628
|
};
|
|
4629
4629
|
Yallist.prototype.push = function() {
|
|
4630
|
-
for (var i3 = 0,
|
|
4630
|
+
for (var i3 = 0, l3 = arguments.length; i3 < l3; i3++) {
|
|
4631
4631
|
push(this, arguments[i3]);
|
|
4632
4632
|
}
|
|
4633
4633
|
return this.length;
|
|
4634
4634
|
};
|
|
4635
4635
|
Yallist.prototype.unshift = function() {
|
|
4636
|
-
for (var i3 = 0,
|
|
4636
|
+
for (var i3 = 0, l3 = arguments.length; i3 < l3; i3++) {
|
|
4637
4637
|
unshift(this, arguments[i3]);
|
|
4638
4638
|
}
|
|
4639
4639
|
return this.length;
|
|
@@ -5008,10 +5008,10 @@ function requireLruCache() {
|
|
|
5008
5008
|
}
|
|
5009
5009
|
}
|
|
5010
5010
|
keys() {
|
|
5011
|
-
return this[LRU_LIST].toArray().map((
|
|
5011
|
+
return this[LRU_LIST].toArray().map((k2) => k2.key);
|
|
5012
5012
|
}
|
|
5013
5013
|
values() {
|
|
5014
|
-
return this[LRU_LIST].toArray().map((
|
|
5014
|
+
return this[LRU_LIST].toArray().map((k2) => k2.value);
|
|
5015
5015
|
}
|
|
5016
5016
|
reset() {
|
|
5017
5017
|
if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
|
|
@@ -5093,8 +5093,8 @@ function requireLruCache() {
|
|
|
5093
5093
|
load(arr) {
|
|
5094
5094
|
this.reset();
|
|
5095
5095
|
const now = Date.now();
|
|
5096
|
-
for (let
|
|
5097
|
-
const hit = arr[
|
|
5096
|
+
for (let l3 = arr.length - 1; l3 >= 0; l3--) {
|
|
5097
|
+
const hit = arr[l3];
|
|
5098
5098
|
const expiresAt = hit.e || 0;
|
|
5099
5099
|
if (expiresAt === 0)
|
|
5100
5100
|
this.set(hit.k, hit.v);
|
|
@@ -5920,7 +5920,7 @@ function requireContext() {
|
|
|
5920
5920
|
if (term === "@type" && _isObject(value) && (value["@container"] || "@set") === "@set" && api.processingMode(activeCtx, 1.1)) {
|
|
5921
5921
|
const validKeys2 = ["@container", "@id", "@protected"];
|
|
5922
5922
|
const keys2 = Object.keys(value);
|
|
5923
|
-
if (keys2.length === 0 || keys2.some((
|
|
5923
|
+
if (keys2.length === 0 || keys2.some((k2) => !validKeys2.includes(k2))) {
|
|
5924
5924
|
throw new JsonLdError(
|
|
5925
5925
|
"Invalid JSON-LD syntax; keywords cannot be overridden.",
|
|
5926
5926
|
"jsonld.SyntaxError",
|
|
@@ -7235,8 +7235,8 @@ function requireExpand() {
|
|
|
7235
7235
|
}
|
|
7236
7236
|
if (expandedProperty === "@type") {
|
|
7237
7237
|
if (_isObject(value)) {
|
|
7238
|
-
value = Object.fromEntries(Object.entries(value).map(([
|
|
7239
|
-
_expandIri(typeScopedContext,
|
|
7238
|
+
value = Object.fromEntries(Object.entries(value).map(([k2, v2]) => [
|
|
7239
|
+
_expandIri(typeScopedContext, k2, { vocab: true }),
|
|
7240
7240
|
_asArray(v2).map(
|
|
7241
7241
|
(vv) => _expandIri(
|
|
7242
7242
|
typeScopedContext,
|
|
@@ -7582,7 +7582,7 @@ function requireExpand() {
|
|
|
7582
7582
|
for (const key of nests) {
|
|
7583
7583
|
const nestedValues = _isArray(element[key]) ? element[key] : [element[key]];
|
|
7584
7584
|
for (const nv of nestedValues) {
|
|
7585
|
-
if (!_isObject(nv) || Object.keys(nv).some((
|
|
7585
|
+
if (!_isObject(nv) || Object.keys(nv).some((k2) => _expandIri(activeCtx, k2, { vocab: true }, options) === "@value")) {
|
|
7586
7586
|
throw new JsonLdError(
|
|
7587
7587
|
"Invalid JSON-LD syntax; nested value must be a node object.",
|
|
7588
7588
|
"jsonld.SyntaxError",
|
|
@@ -9202,8 +9202,8 @@ function requireFrame() {
|
|
|
9202
9202
|
const l1 = value["@language"];
|
|
9203
9203
|
const v2 = pattern["@value"] ? types2.isArray(pattern["@value"]) ? pattern["@value"] : [pattern["@value"]] : [];
|
|
9204
9204
|
const t2 = pattern["@type"] ? types2.isArray(pattern["@type"]) ? pattern["@type"] : [pattern["@type"]] : [];
|
|
9205
|
-
const
|
|
9206
|
-
if (v2.length === 0 && t2.length === 0 &&
|
|
9205
|
+
const l22 = pattern["@language"] ? types2.isArray(pattern["@language"]) ? pattern["@language"] : [pattern["@language"]] : [];
|
|
9206
|
+
if (v2.length === 0 && t2.length === 0 && l22.length === 0) {
|
|
9207
9207
|
return true;
|
|
9208
9208
|
}
|
|
9209
9209
|
if (!(v2.includes(v1) || types2.isEmptyObject(v2[0]))) {
|
|
@@ -9212,7 +9212,7 @@ function requireFrame() {
|
|
|
9212
9212
|
if (!(!t1 && t2.length === 0 || t2.includes(t1) || t1 && types2.isEmptyObject(t2[0]))) {
|
|
9213
9213
|
return false;
|
|
9214
9214
|
}
|
|
9215
|
-
if (!(!l1 &&
|
|
9215
|
+
if (!(!l1 && l22.length === 0 || l22.includes(l1) || l1 && types2.isEmptyObject(l22[0]))) {
|
|
9216
9216
|
return false;
|
|
9217
9217
|
}
|
|
9218
9218
|
return true;
|
|
@@ -10900,6 +10900,14 @@ class CustomGetter {
|
|
|
10900
10900
|
return resource ? await resource[path2.join(".")] : void 0;
|
|
10901
10901
|
}
|
|
10902
10902
|
}
|
|
10903
|
+
static getEmptyResource(id, clientContext, parentContext) {
|
|
10904
|
+
return new CustomGetter(
|
|
10905
|
+
id,
|
|
10906
|
+
{ "@id": id },
|
|
10907
|
+
clientContext,
|
|
10908
|
+
parentContext
|
|
10909
|
+
).getProxy();
|
|
10910
|
+
}
|
|
10903
10911
|
/**
|
|
10904
10912
|
* Return value depending of the current language
|
|
10905
10913
|
* @param value
|
|
@@ -11133,6 +11141,141 @@ class CustomGetter {
|
|
|
11133
11141
|
});
|
|
11134
11142
|
}
|
|
11135
11143
|
}
|
|
11144
|
+
class CacheManager {
|
|
11145
|
+
constructor() {
|
|
11146
|
+
__publicField(this, "resourceCache", /* @__PURE__ */ new Map());
|
|
11147
|
+
__publicField(this, "urlToIdMap", /* @__PURE__ */ new Map());
|
|
11148
|
+
}
|
|
11149
|
+
/**
|
|
11150
|
+
* Retrieves a cached resource based on the URL it was originally fetched from.
|
|
11151
|
+
* Internally resolves the associated @id and returns the corresponding resource.
|
|
11152
|
+
*
|
|
11153
|
+
* @param url - The original URL used to fetch the resource.
|
|
11154
|
+
* @returns The cached resource, or undefined if not found.
|
|
11155
|
+
*/
|
|
11156
|
+
getByUrl(url2) {
|
|
11157
|
+
const id = this.urlToIdMap.get(url2);
|
|
11158
|
+
if (!id) return void 0;
|
|
11159
|
+
return this.resourceCache.get(id);
|
|
11160
|
+
}
|
|
11161
|
+
hasUrlMatch(url2) {
|
|
11162
|
+
if (!this.urlToIdMap.get(url2)) return false;
|
|
11163
|
+
return true;
|
|
11164
|
+
}
|
|
11165
|
+
/**
|
|
11166
|
+
* Retrieves a cached resource by its unique @id.
|
|
11167
|
+
*
|
|
11168
|
+
* @param id - The @id of the resource (can be a URI, URN, or UUID).
|
|
11169
|
+
* @returns The cached resource, or undefined if not found.
|
|
11170
|
+
*/
|
|
11171
|
+
getById(id) {
|
|
11172
|
+
return this.resourceCache.get(id);
|
|
11173
|
+
}
|
|
11174
|
+
/**
|
|
11175
|
+
* Retrieves a resource from the cache by either @id or fetch URL.
|
|
11176
|
+
* If the input is an ID, returns directly.
|
|
11177
|
+
* If it's a URL, attempts to resolve the associated @id first.
|
|
11178
|
+
*
|
|
11179
|
+
* @param idOrUrl - A resource @id or its original fetch URL.
|
|
11180
|
+
* @returns The cached resource, or undefined if not found.
|
|
11181
|
+
*/
|
|
11182
|
+
get(ref) {
|
|
11183
|
+
if (this.resourceCache.has(ref)) {
|
|
11184
|
+
return this.resourceCache.get(ref);
|
|
11185
|
+
}
|
|
11186
|
+
const id = this.urlToIdMap.get(ref);
|
|
11187
|
+
if (id) {
|
|
11188
|
+
return this.resourceCache.get(id);
|
|
11189
|
+
}
|
|
11190
|
+
return void 0;
|
|
11191
|
+
}
|
|
11192
|
+
length() {
|
|
11193
|
+
return this.resourceCache.size;
|
|
11194
|
+
}
|
|
11195
|
+
/**
|
|
11196
|
+
* Stores a resource in the cache and creates a mapping from the given URL to the resource's @id.
|
|
11197
|
+
*
|
|
11198
|
+
* @param url - The URL from which the resource was fetched.
|
|
11199
|
+
* @param resource - The JSON-LD resource to store. Must contain a valid @id.
|
|
11200
|
+
*/
|
|
11201
|
+
set(url2, resource) {
|
|
11202
|
+
const id = resource == null ? void 0 : resource["@id"];
|
|
11203
|
+
if (!id) {
|
|
11204
|
+
console.warn("[CacheManager] Resource has no @id", resource);
|
|
11205
|
+
return;
|
|
11206
|
+
}
|
|
11207
|
+
this.resourceCache.set(id, resource);
|
|
11208
|
+
this.urlToIdMap.set(url2, id);
|
|
11209
|
+
}
|
|
11210
|
+
/**
|
|
11211
|
+
* Links a data source URL or relative path to a given resource ID (`@id`)
|
|
11212
|
+
*
|
|
11213
|
+
* Used to establish a lookup path when the resource is first accessed by URL
|
|
11214
|
+
* and later by its actual `@id`.
|
|
11215
|
+
*
|
|
11216
|
+
* @param url - Data source (absolute or relative path).
|
|
11217
|
+
* @param emptyResource - The resource to associate with this URL. Must include a valid `@id`.
|
|
11218
|
+
*/
|
|
11219
|
+
linkUrlWithId(url2, emptyResource) {
|
|
11220
|
+
if (!isUrlOrRelativePath(url2)) return;
|
|
11221
|
+
if (this.hasUrlMatch(url2)) return;
|
|
11222
|
+
this.set(url2, emptyResource);
|
|
11223
|
+
}
|
|
11224
|
+
/**
|
|
11225
|
+
* Checks if a resource is cached.
|
|
11226
|
+
* Can be checked either by @id or by the original fetch URL.
|
|
11227
|
+
*
|
|
11228
|
+
* @param urlOrId - The @id or URL to check for.
|
|
11229
|
+
* @returns True if the resource exists in cache, false otherwise.
|
|
11230
|
+
*/
|
|
11231
|
+
has(urlOrId) {
|
|
11232
|
+
if (this.resourceCache.has(urlOrId)) return true;
|
|
11233
|
+
const id = this.urlToIdMap.get(urlOrId);
|
|
11234
|
+
return id ? this.resourceCache.has(id) : false;
|
|
11235
|
+
}
|
|
11236
|
+
/**
|
|
11237
|
+
* Returns the @id associated with a given fetch URL.
|
|
11238
|
+
*
|
|
11239
|
+
* @param url - The original fetch URL.
|
|
11240
|
+
* @returns The associated @id, or undefined if no mapping exists.
|
|
11241
|
+
*/
|
|
11242
|
+
getIdByUrl(url2) {
|
|
11243
|
+
return this.urlToIdMap.get(url2);
|
|
11244
|
+
}
|
|
11245
|
+
/**
|
|
11246
|
+
* Clears the entire cache and all URL-to-ID mappings.
|
|
11247
|
+
*/
|
|
11248
|
+
clear() {
|
|
11249
|
+
this.resourceCache.clear();
|
|
11250
|
+
this.urlToIdMap.clear();
|
|
11251
|
+
}
|
|
11252
|
+
/**
|
|
11253
|
+
* Removes a resource from the cache by @id or original fetch URL.
|
|
11254
|
+
* Both the resource and its URL mapping will be removed if applicable.
|
|
11255
|
+
*
|
|
11256
|
+
* @param idOrUrl - The @id or URL of the resource to delete.
|
|
11257
|
+
* @returns True if the resource was found and deleted, false otherwise.
|
|
11258
|
+
*/
|
|
11259
|
+
delete(idOrUrl) {
|
|
11260
|
+
if (this.resourceCache.has(idOrUrl)) {
|
|
11261
|
+
this.resourceCache.delete(idOrUrl);
|
|
11262
|
+
for (const [url2, id2] of this.urlToIdMap.entries()) {
|
|
11263
|
+
if (id2 === idOrUrl) {
|
|
11264
|
+
this.urlToIdMap.delete(url2);
|
|
11265
|
+
break;
|
|
11266
|
+
}
|
|
11267
|
+
}
|
|
11268
|
+
return true;
|
|
11269
|
+
}
|
|
11270
|
+
const id = this.urlToIdMap.get(idOrUrl);
|
|
11271
|
+
if (id && this.resourceCache.has(id)) {
|
|
11272
|
+
this.resourceCache.delete(id);
|
|
11273
|
+
this.urlToIdMap.delete(idOrUrl);
|
|
11274
|
+
return true;
|
|
11275
|
+
}
|
|
11276
|
+
return false;
|
|
11277
|
+
}
|
|
11278
|
+
}
|
|
11136
11279
|
const ContextParser = jsonldContextParserExports.ContextParser;
|
|
11137
11280
|
const myParser = new ContextParser();
|
|
11138
11281
|
const base_context = {
|
|
@@ -11186,7 +11329,7 @@ class Store {
|
|
|
11186
11329
|
return handler;
|
|
11187
11330
|
});
|
|
11188
11331
|
this.storeOptions = storeOptions;
|
|
11189
|
-
this.cache =
|
|
11332
|
+
this.cache = new CacheManager();
|
|
11190
11333
|
this.subscriptionIndex = /* @__PURE__ */ new Map();
|
|
11191
11334
|
this.subscriptionVirtualContainersIndex = /* @__PURE__ */ new Map();
|
|
11192
11335
|
this.loadingList = /* @__PURE__ */ new Set();
|
|
@@ -11330,25 +11473,34 @@ class Store {
|
|
|
11330
11473
|
* @param serverPagination - Server pagination query params
|
|
11331
11474
|
* @param serverSearch - Server search query params
|
|
11332
11475
|
*/
|
|
11333
|
-
async cacheGraph(
|
|
11334
|
-
|
|
11476
|
+
async cacheGraph(resources, clientContext, parentContext, parentId, serverPagination, serverSearch) {
|
|
11477
|
+
var _a3;
|
|
11478
|
+
this.cache.linkUrlWithId(
|
|
11479
|
+
parentId,
|
|
11480
|
+
CustomGetter.getEmptyResource(
|
|
11481
|
+
resources["@id"],
|
|
11482
|
+
clientContext,
|
|
11483
|
+
parentContext
|
|
11484
|
+
)
|
|
11485
|
+
);
|
|
11486
|
+
const flattenedResources = await jsonld.flatten(resources);
|
|
11335
11487
|
const compactedResources = await Promise.all(
|
|
11336
11488
|
flattenedResources.map((r3) => jsonld.compact(r3, {}))
|
|
11337
11489
|
);
|
|
11338
|
-
for (const
|
|
11339
|
-
const id =
|
|
11340
|
-
let key =
|
|
11341
|
-
if (!key) console.log("No key or id for resource:",
|
|
11490
|
+
for (const resource of compactedResources) {
|
|
11491
|
+
const id = resource["@id"] || resource.id;
|
|
11492
|
+
let key = resource["@id"] || resource.id;
|
|
11493
|
+
if (!key) console.log("No key or id for resource:", resource);
|
|
11342
11494
|
if (key === "/") key = parentId;
|
|
11343
11495
|
if (key.startsWith("_:b")) key = key + parentId;
|
|
11344
|
-
if (key === id &&
|
|
11496
|
+
if (key === id && resource["@type"] === this.getExpandedPredicate("ldp:Container", clientContext) || resource["@type"] === this.getExpandedPredicate("dcat:Catalog", clientContext)) {
|
|
11345
11497
|
if (serverPagination)
|
|
11346
11498
|
key = appendServerPaginationToIri(key, serverPagination);
|
|
11347
11499
|
if (serverSearch) key = appendServerSearchToIri(key, serverSearch);
|
|
11348
11500
|
}
|
|
11349
11501
|
const resourceProxy = new CustomGetter(
|
|
11350
11502
|
key,
|
|
11351
|
-
|
|
11503
|
+
resource,
|
|
11352
11504
|
clientContext,
|
|
11353
11505
|
parentContext,
|
|
11354
11506
|
parentId,
|
|
@@ -11358,7 +11510,7 @@ class Store {
|
|
|
11358
11510
|
if (resourceProxy.isContainer())
|
|
11359
11511
|
this.subscribeChildren(resourceProxy, id);
|
|
11360
11512
|
if (this.get(key)) {
|
|
11361
|
-
this.cache.get(key).merge(resourceProxy);
|
|
11513
|
+
(_a3 = this.cache.get(key)) == null ? void 0 : _a3.merge(resourceProxy);
|
|
11362
11514
|
} else {
|
|
11363
11515
|
this.cacheResource(key, resourceProxy);
|
|
11364
11516
|
}
|
|
@@ -11514,7 +11666,7 @@ class Store {
|
|
|
11514
11666
|
clearCache(id) {
|
|
11515
11667
|
if (this.cache.has(id)) {
|
|
11516
11668
|
const resource = this.cache.get(id);
|
|
11517
|
-
const predicate = resource["listPredicate"];
|
|
11669
|
+
const predicate = resource ? resource["listPredicate"] : null;
|
|
11518
11670
|
if (predicate) {
|
|
11519
11671
|
for (const child of predicate) {
|
|
11520
11672
|
if ((child == null ? void 0 : child["@type"]) && doesResourceContainList(child))
|
|
@@ -12097,7 +12249,7 @@ b.elementStyles = [], b.shadowRootOptions = { mode: "open" }, b[d$1("elementProp
|
|
|
12097
12249
|
* Copyright 2017 Google LLC
|
|
12098
12250
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12099
12251
|
*/
|
|
12100
|
-
const t$1 = globalThis, i$4 = t$1.trustedTypes, s$2 = i$4 ? i$4.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e$2 = "$lit$", h$2 = `lit$${Math.random().toFixed(9).slice(2)}$`, o$3 = "?" + h$2, n$2 = `<${o$3}>`, r$2 = document,
|
|
12252
|
+
const t$1 = globalThis, i$4 = t$1.trustedTypes, s$2 = i$4 ? i$4.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e$2 = "$lit$", h$2 = `lit$${Math.random().toFixed(9).slice(2)}$`, o$3 = "?" + h$2, n$2 = `<${o$3}>`, r$2 = document, l2 = () => r$2.createComment(""), c$2 = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, a = Array.isArray, u = (t2) => a(t2) || "function" == typeof (t2 == null ? void 0 : t2[Symbol.iterator]), d = "[ \n\f\r]", f$2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m$1 = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^
|
|
12101
12253
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y = (t2) => (i3, ...s2) => ({ _$litType$: t2, strings: i3, values: s2 }), x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = /* @__PURE__ */ new WeakMap(), C = r$2.createTreeWalker(r$2, 129);
|
|
12102
12254
|
function P$1(t2, i3) {
|
|
12103
12255
|
if (!a(t2) || !t2.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
@@ -12105,15 +12257,15 @@ function P$1(t2, i3) {
|
|
|
12105
12257
|
}
|
|
12106
12258
|
const V = (t2, i3) => {
|
|
12107
12259
|
const s2 = t2.length - 1, o2 = [];
|
|
12108
|
-
let r3,
|
|
12260
|
+
let r3, l3 = 2 === i3 ? "<svg>" : 3 === i3 ? "<math>" : "", c2 = f$2;
|
|
12109
12261
|
for (let i4 = 0; i4 < s2; i4++) {
|
|
12110
12262
|
const s3 = t2[i4];
|
|
12111
12263
|
let a2, u2, d2 = -1, y2 = 0;
|
|
12112
12264
|
for (; y2 < s3.length && (c2.lastIndex = y2, u2 = c2.exec(s3), null !== u2); ) y2 = c2.lastIndex, c2 === f$2 ? "!--" === u2[1] ? c2 = v : void 0 !== u2[1] ? c2 = _ : void 0 !== u2[2] ? ($.test(u2[2]) && (r3 = RegExp("</" + u2[2], "g")), c2 = m$1) : void 0 !== u2[3] && (c2 = m$1) : c2 === m$1 ? ">" === u2[0] ? (c2 = r3 ?? f$2, d2 = -1) : void 0 === u2[1] ? d2 = -2 : (d2 = c2.lastIndex - u2[2].length, a2 = u2[1], c2 = void 0 === u2[3] ? m$1 : '"' === u2[3] ? g : p) : c2 === g || c2 === p ? c2 = m$1 : c2 === v || c2 === _ ? c2 = f$2 : (c2 = m$1, r3 = void 0);
|
|
12113
12265
|
const x2 = c2 === m$1 && t2[i4 + 1].startsWith("/>") ? " " : "";
|
|
12114
|
-
|
|
12266
|
+
l3 += c2 === f$2 ? s3 + n$2 : d2 >= 0 ? (o2.push(a2), s3.slice(0, d2) + e$2 + s3.slice(d2) + h$2 + x2) : s3 + h$2 + (-2 === d2 ? i4 : x2);
|
|
12115
12267
|
}
|
|
12116
|
-
return [P$1(t2,
|
|
12268
|
+
return [P$1(t2, l3 + (t2[s2] || "<?>") + (2 === i3 ? "</svg>" : 3 === i3 ? "</math>" : "")), o2];
|
|
12117
12269
|
};
|
|
12118
12270
|
class N {
|
|
12119
12271
|
constructor({ strings: t2, _$litType$: s2 }, n3) {
|
|
@@ -12129,14 +12281,14 @@ class N {
|
|
|
12129
12281
|
if (1 === r3.nodeType) {
|
|
12130
12282
|
if (r3.hasAttributes()) for (const t3 of r3.getAttributeNames()) if (t3.endsWith(e$2)) {
|
|
12131
12283
|
const i3 = v2[a2++], s3 = r3.getAttribute(t3).split(h$2), e2 = /([.?@])?(.*)/.exec(i3);
|
|
12132
|
-
d2.push({ type: 1, index: c2, name: e2[2], strings: s3, ctor: "." === e2[1] ? H : "?" === e2[1] ? I : "@" === e2[1] ? L :
|
|
12284
|
+
d2.push({ type: 1, index: c2, name: e2[2], strings: s3, ctor: "." === e2[1] ? H : "?" === e2[1] ? I : "@" === e2[1] ? L : k }), r3.removeAttribute(t3);
|
|
12133
12285
|
} else t3.startsWith(h$2) && (d2.push({ type: 6, index: c2 }), r3.removeAttribute(t3));
|
|
12134
12286
|
if ($.test(r3.tagName)) {
|
|
12135
12287
|
const t3 = r3.textContent.split(h$2), s3 = t3.length - 1;
|
|
12136
12288
|
if (s3 > 0) {
|
|
12137
12289
|
r3.textContent = i$4 ? i$4.emptyScript : "";
|
|
12138
|
-
for (let i3 = 0; i3 < s3; i3++) r3.append(t3[i3],
|
|
12139
|
-
r3.append(t3[s3],
|
|
12290
|
+
for (let i3 = 0; i3 < s3; i3++) r3.append(t3[i3], l2()), C.nextNode(), d2.push({ type: 2, index: ++c2 });
|
|
12291
|
+
r3.append(t3[s3], l2());
|
|
12140
12292
|
}
|
|
12141
12293
|
}
|
|
12142
12294
|
} else if (8 === r3.nodeType) if (r3.data === o$3) d2.push({ type: 2, index: c2 });
|
|
@@ -12172,13 +12324,13 @@ class M {
|
|
|
12172
12324
|
u(t2) {
|
|
12173
12325
|
const { el: { content: i3 }, parts: s2 } = this._$AD, e2 = ((t2 == null ? void 0 : t2.creationScope) ?? r$2).importNode(i3, true);
|
|
12174
12326
|
C.currentNode = e2;
|
|
12175
|
-
let h2 = C.nextNode(), o2 = 0, n3 = 0,
|
|
12176
|
-
for (; void 0 !==
|
|
12177
|
-
if (o2 ===
|
|
12327
|
+
let h2 = C.nextNode(), o2 = 0, n3 = 0, l3 = s2[0];
|
|
12328
|
+
for (; void 0 !== l3; ) {
|
|
12329
|
+
if (o2 === l3.index) {
|
|
12178
12330
|
let i4;
|
|
12179
|
-
2 ===
|
|
12331
|
+
2 === l3.type ? i4 = new R(h2, h2.nextSibling, this, t2) : 1 === l3.type ? i4 = new l3.ctor(h2, l3.name, l3.strings, this, t2) : 6 === l3.type && (i4 = new z(h2, this, t2)), this._$AV.push(i4), l3 = s2[++n3];
|
|
12180
12332
|
}
|
|
12181
|
-
o2 !== (
|
|
12333
|
+
o2 !== (l3 == null ? void 0 : l3.index) && (h2 = C.nextNode(), o2++);
|
|
12182
12334
|
}
|
|
12183
12335
|
return C.currentNode = r$2, e2;
|
|
12184
12336
|
}
|
|
@@ -12235,7 +12387,7 @@ class R {
|
|
|
12235
12387
|
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
12236
12388
|
const i3 = this._$AH;
|
|
12237
12389
|
let s2, e2 = 0;
|
|
12238
|
-
for (const h2 of t2) e2 === i3.length ? i3.push(s2 = new R(this.O(
|
|
12390
|
+
for (const h2 of t2) e2 === i3.length ? i3.push(s2 = new R(this.O(l2()), this.O(l2()), this, this.options)) : s2 = i3[e2], s2._$AI(h2), e2++;
|
|
12239
12391
|
e2 < i3.length && (this._$AR(s2 && s2._$AB.nextSibling, e2), i3.length = e2);
|
|
12240
12392
|
}
|
|
12241
12393
|
_$AR(t2 = this._$AA.nextSibling, i3) {
|
|
@@ -12250,7 +12402,7 @@ class R {
|
|
|
12250
12402
|
void 0 === this._$AM && (this._$Cv = t2, (_a3 = this._$AP) == null ? void 0 : _a3.call(this, t2));
|
|
12251
12403
|
}
|
|
12252
12404
|
}
|
|
12253
|
-
class
|
|
12405
|
+
class k {
|
|
12254
12406
|
get tagName() {
|
|
12255
12407
|
return this.element.tagName;
|
|
12256
12408
|
}
|
|
@@ -12275,7 +12427,7 @@ class k2 {
|
|
|
12275
12427
|
t2 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t2 ?? "");
|
|
12276
12428
|
}
|
|
12277
12429
|
}
|
|
12278
|
-
class H extends
|
|
12430
|
+
class H extends k {
|
|
12279
12431
|
constructor() {
|
|
12280
12432
|
super(...arguments), this.type = 3;
|
|
12281
12433
|
}
|
|
@@ -12283,7 +12435,7 @@ class H extends k2 {
|
|
|
12283
12435
|
this.element[this.name] = t2 === E ? void 0 : t2;
|
|
12284
12436
|
}
|
|
12285
12437
|
}
|
|
12286
|
-
class I extends
|
|
12438
|
+
class I extends k {
|
|
12287
12439
|
constructor() {
|
|
12288
12440
|
super(...arguments), this.type = 4;
|
|
12289
12441
|
}
|
|
@@ -12291,7 +12443,7 @@ class I extends k2 {
|
|
|
12291
12443
|
this.element.toggleAttribute(this.name, !!t2 && t2 !== E);
|
|
12292
12444
|
}
|
|
12293
12445
|
}
|
|
12294
|
-
class L extends
|
|
12446
|
+
class L extends k {
|
|
12295
12447
|
constructor(t2, i3, s2, e2, h2) {
|
|
12296
12448
|
super(t2, i3, s2, e2, h2), this.type = 5;
|
|
12297
12449
|
}
|
|
@@ -12323,7 +12475,7 @@ const B = (t2, i3, s2) => {
|
|
|
12323
12475
|
let h2 = e2._$litPart$;
|
|
12324
12476
|
if (void 0 === h2) {
|
|
12325
12477
|
const t3 = (s2 == null ? void 0 : s2.renderBefore) ?? null;
|
|
12326
|
-
e2._$litPart$ = h2 = new R(i3.insertBefore(
|
|
12478
|
+
e2._$litPart$ = h2 = new R(i3.insertBefore(l2(), t3), t3, void 0, s2 ?? {});
|
|
12327
12479
|
}
|
|
12328
12480
|
return h2._$AI(t2), h2;
|
|
12329
12481
|
};
|
|
@@ -12707,8 +12859,8 @@ function safeDispatchEvent(target, event) {
|
|
|
12707
12859
|
function createsStackingContext(el) {
|
|
12708
12860
|
while (el && el !== document.body) {
|
|
12709
12861
|
var s2 = window.getComputedStyle(el);
|
|
12710
|
-
var invalid = function(
|
|
12711
|
-
return !(s2[
|
|
12862
|
+
var invalid = function(k2, ok) {
|
|
12863
|
+
return !(s2[k2] === void 0 || s2[k2] === ok);
|
|
12712
12864
|
};
|
|
12713
12865
|
if (s2.opacity < 1 || invalid("zIndex", "auto") || invalid("transform", "none") || invalid("mixBlendMode", "normal") || invalid("filter", "none") || invalid("perspective", "none") || s2["isolation"] === "isolate" || s2.position === "fixed" || s2.webkitOverflowScrolling === "touch") {
|
|
12714
12866
|
return true;
|
|
@@ -17451,8 +17603,8 @@ function requireTinymce() {
|
|
|
17451
17603
|
const hasOwnProperty$22 = Object.hasOwnProperty;
|
|
17452
17604
|
const each$f = (obj, f2) => {
|
|
17453
17605
|
const props = keys2(obj);
|
|
17454
|
-
for (let
|
|
17455
|
-
const i3 = props[
|
|
17606
|
+
for (let k2 = 0, len = props.length; k2 < len; k2++) {
|
|
17607
|
+
const i3 = props[k2];
|
|
17456
17608
|
const x2 = obj[i3];
|
|
17457
17609
|
f2(x2, i3);
|
|
17458
17610
|
}
|
|
@@ -17522,7 +17674,7 @@ function requireTinymce() {
|
|
|
17522
17674
|
const toArray$1 = (obj) => {
|
|
17523
17675
|
if (!isArray2(obj)) {
|
|
17524
17676
|
const array2 = [];
|
|
17525
|
-
for (let i3 = 0,
|
|
17677
|
+
for (let i3 = 0, l3 = obj.length; i3 < l3; i3++) {
|
|
17526
17678
|
array2[i3] = obj[i3];
|
|
17527
17679
|
}
|
|
17528
17680
|
return array2;
|
|
@@ -17531,13 +17683,13 @@ function requireTinymce() {
|
|
|
17531
17683
|
}
|
|
17532
17684
|
};
|
|
17533
17685
|
const each$e = (o2, cb, s2) => {
|
|
17534
|
-
let n3,
|
|
17686
|
+
let n3, l3;
|
|
17535
17687
|
if (!o2) {
|
|
17536
17688
|
return false;
|
|
17537
17689
|
}
|
|
17538
17690
|
s2 = s2 || o2;
|
|
17539
17691
|
if (o2.length !== void 0) {
|
|
17540
|
-
for (n3 = 0,
|
|
17692
|
+
for (n3 = 0, l3 = o2.length; n3 < l3; n3++) {
|
|
17541
17693
|
if (cb.call(s2, o2[n3], n3, o2) === false) {
|
|
17542
17694
|
return false;
|
|
17543
17695
|
}
|
|
@@ -17571,7 +17723,7 @@ function requireTinymce() {
|
|
|
17571
17723
|
};
|
|
17572
17724
|
const indexOf = (a2, v2) => {
|
|
17573
17725
|
if (a2) {
|
|
17574
|
-
for (let i3 = 0,
|
|
17726
|
+
for (let i3 = 0, l3 = a2.length; i3 < l3; i3++) {
|
|
17575
17727
|
if (a2[i3] === v2) {
|
|
17576
17728
|
return i3;
|
|
17577
17729
|
}
|
|
@@ -17587,8 +17739,8 @@ function requireTinymce() {
|
|
|
17587
17739
|
return acc;
|
|
17588
17740
|
};
|
|
17589
17741
|
const findIndex$1 = (array2, predicate, thisArg) => {
|
|
17590
|
-
let i3,
|
|
17591
|
-
for (i3 = 0,
|
|
17742
|
+
let i3, l3;
|
|
17743
|
+
for (i3 = 0, l3 = array2.length; i3 < l3; i3++) {
|
|
17592
17744
|
if (predicate.call(thisArg, array2[i3], i3, array2)) {
|
|
17593
17745
|
return i3;
|
|
17594
17746
|
}
|
|
@@ -18029,10 +18181,10 @@ function requireTinymce() {
|
|
|
18029
18181
|
}
|
|
18030
18182
|
};
|
|
18031
18183
|
const resolve$2 = (n3, o2) => {
|
|
18032
|
-
let i3,
|
|
18184
|
+
let i3, l3;
|
|
18033
18185
|
o2 = o2 || window;
|
|
18034
18186
|
n3 = n3.split(".");
|
|
18035
|
-
for (i3 = 0,
|
|
18187
|
+
for (i3 = 0, l3 = n3.length; i3 < l3; i3++) {
|
|
18036
18188
|
o2 = o2[n3[i3]];
|
|
18037
18189
|
if (!o2) {
|
|
18038
18190
|
break;
|
|
@@ -18115,8 +18267,8 @@ function requireTinymce() {
|
|
|
18115
18267
|
};
|
|
18116
18268
|
const setAll$1 = (element, attrs) => {
|
|
18117
18269
|
const dom3 = element.dom;
|
|
18118
|
-
each$f(attrs, (v2,
|
|
18119
|
-
rawSet(dom3,
|
|
18270
|
+
each$f(attrs, (v2, k2) => {
|
|
18271
|
+
rawSet(dom3, k2, v2);
|
|
18120
18272
|
});
|
|
18121
18273
|
};
|
|
18122
18274
|
const get$9 = (element, key) => {
|
|
@@ -18377,8 +18529,8 @@ function requireTinymce() {
|
|
|
18377
18529
|
};
|
|
18378
18530
|
const setAll = (element, css) => {
|
|
18379
18531
|
const dom3 = element.dom;
|
|
18380
|
-
each$f(css, (v2,
|
|
18381
|
-
internalSet(dom3,
|
|
18532
|
+
each$f(css, (v2, k2) => {
|
|
18533
|
+
internalSet(dom3, k2, v2);
|
|
18382
18534
|
});
|
|
18383
18535
|
};
|
|
18384
18536
|
const get$7 = (element, property) => {
|
|
@@ -19623,7 +19775,7 @@ function requireTinymce() {
|
|
|
19623
19775
|
let ni = names.length;
|
|
19624
19776
|
while (ni--) {
|
|
19625
19777
|
const schemaItem = schema[names[ni]];
|
|
19626
|
-
for (let i3 = 0,
|
|
19778
|
+
for (let i3 = 0, l3 = attrs.length; i3 < l3; i3++) {
|
|
19627
19779
|
schemaItem.attributes[attrs[i3]] = {};
|
|
19628
19780
|
schemaItem.attributesOrder.push(attrs[i3]);
|
|
19629
19781
|
}
|
|
@@ -20379,7 +20531,7 @@ function requireTinymce() {
|
|
|
20379
20531
|
let value2;
|
|
20380
20532
|
const styleList = validStyles[name2];
|
|
20381
20533
|
if (styleList) {
|
|
20382
|
-
for (let i4 = 0,
|
|
20534
|
+
for (let i4 = 0, l3 = styleList.length; i4 < l3; i4++) {
|
|
20383
20535
|
name2 = styleList[i4];
|
|
20384
20536
|
value2 = styles[name2];
|
|
20385
20537
|
if (value2) {
|
|
@@ -20740,7 +20892,7 @@ function requireTinymce() {
|
|
|
20740
20892
|
const container = this.events[id];
|
|
20741
20893
|
const callbackList = container && container[evt.type];
|
|
20742
20894
|
if (callbackList) {
|
|
20743
|
-
for (let i3 = 0,
|
|
20895
|
+
for (let i3 = 0, l3 = callbackList.length; i3 < l3; i3++) {
|
|
20744
20896
|
const callback = callbackList[i3];
|
|
20745
20897
|
if (callback && callback.func.call(callback.scope, evt) === false) {
|
|
20746
20898
|
evt.preventDefault();
|
|
@@ -27154,7 +27306,7 @@ function requireTinymce() {
|
|
|
27154
27306
|
if (selfAttrs = self2.attributes) {
|
|
27155
27307
|
const cloneAttrs = [];
|
|
27156
27308
|
cloneAttrs.map = {};
|
|
27157
|
-
for (let i3 = 0,
|
|
27309
|
+
for (let i3 = 0, l3 = selfAttrs.length; i3 < l3; i3++) {
|
|
27158
27310
|
const selfAttr = selfAttrs[i3];
|
|
27159
27311
|
if (selfAttr.name !== "id") {
|
|
27160
27312
|
cloneAttrs[cloneAttrs.length] = {
|
|
@@ -27482,7 +27634,7 @@ function requireTinymce() {
|
|
|
27482
27634
|
const htmlOutput = settings.element_format !== "xhtml";
|
|
27483
27635
|
return {
|
|
27484
27636
|
start: (name2, attrs, empty2) => {
|
|
27485
|
-
let i3,
|
|
27637
|
+
let i3, l3, attr, value2;
|
|
27486
27638
|
if (indent2 && indentBefore[name2] && html2.length > 0) {
|
|
27487
27639
|
value2 = html2[html2.length - 1];
|
|
27488
27640
|
if (value2.length > 0 && value2 !== "\n") {
|
|
@@ -27491,7 +27643,7 @@ function requireTinymce() {
|
|
|
27491
27643
|
}
|
|
27492
27644
|
html2.push("<", name2);
|
|
27493
27645
|
if (attrs) {
|
|
27494
|
-
for (i3 = 0,
|
|
27646
|
+
for (i3 = 0, l3 = attrs.length; i3 < l3; i3++) {
|
|
27495
27647
|
attr = attrs[i3];
|
|
27496
27648
|
html2.push(" ", attr.name, '="', encode2(attr.value, true), '"');
|
|
27497
27649
|
}
|
|
@@ -27592,7 +27744,7 @@ function requireTinymce() {
|
|
|
27592
27744
|
sortedAttrs.map = {};
|
|
27593
27745
|
const elementRule = schema.getElementRule(node2.name);
|
|
27594
27746
|
if (elementRule) {
|
|
27595
|
-
for (let i3 = 0,
|
|
27747
|
+
for (let i3 = 0, l3 = elementRule.attributesOrder.length; i3 < l3; i3++) {
|
|
27596
27748
|
const attrName = elementRule.attributesOrder[i3];
|
|
27597
27749
|
if (attrName in attrs.map) {
|
|
27598
27750
|
const attrValue = attrs.map[attrName];
|
|
@@ -27603,7 +27755,7 @@ function requireTinymce() {
|
|
|
27603
27755
|
});
|
|
27604
27756
|
}
|
|
27605
27757
|
}
|
|
27606
|
-
for (let i3 = 0,
|
|
27758
|
+
for (let i3 = 0, l3 = attrs.length; i3 < l3; i3++) {
|
|
27607
27759
|
const attrName = attrs[i3].name;
|
|
27608
27760
|
if (!(attrName in sortedAttrs.map)) {
|
|
27609
27761
|
const attrValue = attrs.map[attrName];
|
|
@@ -30147,7 +30299,7 @@ function requireTinymce() {
|
|
|
30147
30299
|
};
|
|
30148
30300
|
if (dom3.getContentEditable(selection.getNode()) === "false") {
|
|
30149
30301
|
node = selection.getNode();
|
|
30150
|
-
for (let i3 = 0,
|
|
30302
|
+
for (let i3 = 0, l3 = formatList.length; i3 < l3; i3++) {
|
|
30151
30303
|
const formatItem = formatList[i3];
|
|
30152
30304
|
if (formatItem.ceFalseOverride && isSelectorFormat(formatItem) && dom3.is(node, formatItem.selector)) {
|
|
30153
30305
|
setElementFormat(node, formatItem);
|
|
@@ -30389,14 +30541,14 @@ function requireTinymce() {
|
|
|
30389
30541
|
if (setPrototypeOf) {
|
|
30390
30542
|
setPrototypeOf(set3, null);
|
|
30391
30543
|
}
|
|
30392
|
-
var
|
|
30393
|
-
while (
|
|
30394
|
-
var element = array2[
|
|
30544
|
+
var l3 = array2.length;
|
|
30545
|
+
while (l3--) {
|
|
30546
|
+
var element = array2[l3];
|
|
30395
30547
|
if (typeof element === "string") {
|
|
30396
30548
|
var lcElement = stringToLowerCase(element);
|
|
30397
30549
|
if (lcElement !== element) {
|
|
30398
30550
|
if (!isFrozen(array2)) {
|
|
30399
|
-
array2[
|
|
30551
|
+
array2[l3] = lcElement;
|
|
30400
30552
|
}
|
|
30401
30553
|
element = lcElement;
|
|
30402
30554
|
}
|
|
@@ -31610,7 +31762,7 @@ function requireTinymce() {
|
|
|
31610
31762
|
var attr = void 0;
|
|
31611
31763
|
var value2 = void 0;
|
|
31612
31764
|
var lcName = void 0;
|
|
31613
|
-
var
|
|
31765
|
+
var l3 = void 0;
|
|
31614
31766
|
_executeHook("beforeSanitizeAttributes", currentNode, null);
|
|
31615
31767
|
var attributes = currentNode.attributes;
|
|
31616
31768
|
if (!attributes) {
|
|
@@ -31622,9 +31774,9 @@ function requireTinymce() {
|
|
|
31622
31774
|
keepAttr: true,
|
|
31623
31775
|
allowedAttributes: ALLOWED_ATTR
|
|
31624
31776
|
};
|
|
31625
|
-
|
|
31626
|
-
while (
|
|
31627
|
-
attr = attributes[
|
|
31777
|
+
l3 = attributes.length;
|
|
31778
|
+
while (l3--) {
|
|
31779
|
+
attr = attributes[l3];
|
|
31628
31780
|
var _attr = attr, name2 = _attr.name, namespaceURI = _attr.namespaceURI;
|
|
31629
31781
|
value2 = stringTrim(attr.value);
|
|
31630
31782
|
lcName = transformCaseFunc(name2);
|
|
@@ -32112,7 +32264,7 @@ function requireTinymce() {
|
|
|
32112
32264
|
const nonEmptyElements = schema.getNonEmptyElements();
|
|
32113
32265
|
const whitespaceElements = schema.getWhitespaceElements();
|
|
32114
32266
|
blockElements.body = 1;
|
|
32115
|
-
for (let i3 = 0,
|
|
32267
|
+
for (let i3 = 0, l3 = nodes.length; i3 < l3; i3++) {
|
|
32116
32268
|
let node = nodes[i3];
|
|
32117
32269
|
let parent2 = node.parent;
|
|
32118
32270
|
if (blockElements[node.parent.name] && node === parent2.lastChild) {
|
|
@@ -32424,11 +32576,11 @@ function requireTinymce() {
|
|
|
32424
32576
|
return false;
|
|
32425
32577
|
}
|
|
32426
32578
|
toRelPath(base2, path) {
|
|
32427
|
-
let breakPoint = 0, out = "", i3,
|
|
32579
|
+
let breakPoint = 0, out = "", i3, l3;
|
|
32428
32580
|
const normalizedBase = base2.substring(0, base2.lastIndexOf("/")).split("/");
|
|
32429
32581
|
const items = path.split("/");
|
|
32430
32582
|
if (normalizedBase.length >= items.length) {
|
|
32431
|
-
for (i3 = 0,
|
|
32583
|
+
for (i3 = 0, l3 = normalizedBase.length; i3 < l3; i3++) {
|
|
32432
32584
|
if (i3 >= items.length || normalizedBase[i3] !== items[i3]) {
|
|
32433
32585
|
breakPoint = i3 + 1;
|
|
32434
32586
|
break;
|
|
@@ -32436,7 +32588,7 @@ function requireTinymce() {
|
|
|
32436
32588
|
}
|
|
32437
32589
|
}
|
|
32438
32590
|
if (normalizedBase.length < items.length) {
|
|
32439
|
-
for (i3 = 0,
|
|
32591
|
+
for (i3 = 0, l3 = items.length; i3 < l3; i3++) {
|
|
32440
32592
|
if (i3 >= normalizedBase.length || normalizedBase[i3] !== items[i3]) {
|
|
32441
32593
|
breakPoint = i3 + 1;
|
|
32442
32594
|
break;
|
|
@@ -32446,10 +32598,10 @@ function requireTinymce() {
|
|
|
32446
32598
|
if (breakPoint === 1) {
|
|
32447
32599
|
return path;
|
|
32448
32600
|
}
|
|
32449
|
-
for (i3 = 0,
|
|
32601
|
+
for (i3 = 0, l3 = normalizedBase.length - (breakPoint - 1); i3 < l3; i3++) {
|
|
32450
32602
|
out += "../";
|
|
32451
32603
|
}
|
|
32452
|
-
for (i3 = breakPoint - 1,
|
|
32604
|
+
for (i3 = breakPoint - 1, l3 = items.length; i3 < l3; i3++) {
|
|
32453
32605
|
if (i3 !== breakPoint - 1) {
|
|
32454
32606
|
out += "/" + items[i3];
|
|
32455
32607
|
} else {
|
|
@@ -32463,9 +32615,9 @@ function requireTinymce() {
|
|
|
32463
32615
|
const tr = /\/$/.test(path) ? "/" : "";
|
|
32464
32616
|
let normalizedBase = base2.split("/");
|
|
32465
32617
|
const normalizedPath = path.split("/");
|
|
32466
|
-
each$5(normalizedBase, (
|
|
32467
|
-
if (
|
|
32468
|
-
o2.push(
|
|
32618
|
+
each$5(normalizedBase, (k2) => {
|
|
32619
|
+
if (k2) {
|
|
32620
|
+
o2.push(k2);
|
|
32469
32621
|
}
|
|
32470
32622
|
});
|
|
32471
32623
|
normalizedBase = o2;
|
|
@@ -33291,43 +33443,43 @@ function requireTinymce() {
|
|
|
33291
33443
|
const offset = (sum % 2 === 0 ? sum : sum + 1) / 2;
|
|
33292
33444
|
vDown[1 + offset] = start1;
|
|
33293
33445
|
vUp[1 + offset] = end1 + 1;
|
|
33294
|
-
let d2,
|
|
33446
|
+
let d2, k2, i3, x2, y2;
|
|
33295
33447
|
for (d2 = 0; d2 <= offset; ++d2) {
|
|
33296
|
-
for (
|
|
33297
|
-
i3 =
|
|
33298
|
-
if (
|
|
33448
|
+
for (k2 = -d2; k2 <= d2; k2 += 2) {
|
|
33449
|
+
i3 = k2 + offset;
|
|
33450
|
+
if (k2 === -d2 || k2 !== d2 && vDown[i3 - 1] < vDown[i3 + 1]) {
|
|
33299
33451
|
vDown[i3] = vDown[i3 + 1];
|
|
33300
33452
|
} else {
|
|
33301
33453
|
vDown[i3] = vDown[i3 - 1] + 1;
|
|
33302
33454
|
}
|
|
33303
33455
|
x2 = vDown[i3];
|
|
33304
|
-
y2 = x2 - start1 + start2 -
|
|
33456
|
+
y2 = x2 - start1 + start2 - k2;
|
|
33305
33457
|
while (x2 < end1 && y2 < end2 && left[x2] === right[y2]) {
|
|
33306
33458
|
vDown[i3] = ++x2;
|
|
33307
33459
|
++y2;
|
|
33308
33460
|
}
|
|
33309
|
-
if (delta % 2 !== 0 && delta - d2 <=
|
|
33461
|
+
if (delta % 2 !== 0 && delta - d2 <= k2 && k2 <= delta + d2) {
|
|
33310
33462
|
if (vUp[i3 - delta] <= vDown[i3]) {
|
|
33311
|
-
return buildSnake(vUp[i3 - delta],
|
|
33463
|
+
return buildSnake(vUp[i3 - delta], k2 + start1 - start2, end1, end2);
|
|
33312
33464
|
}
|
|
33313
33465
|
}
|
|
33314
33466
|
}
|
|
33315
|
-
for (
|
|
33316
|
-
i3 =
|
|
33317
|
-
if (
|
|
33467
|
+
for (k2 = delta - d2; k2 <= delta + d2; k2 += 2) {
|
|
33468
|
+
i3 = k2 + offset - delta;
|
|
33469
|
+
if (k2 === delta - d2 || k2 !== delta + d2 && vUp[i3 + 1] <= vUp[i3 - 1]) {
|
|
33318
33470
|
vUp[i3] = vUp[i3 + 1] - 1;
|
|
33319
33471
|
} else {
|
|
33320
33472
|
vUp[i3] = vUp[i3 - 1];
|
|
33321
33473
|
}
|
|
33322
33474
|
x2 = vUp[i3] - 1;
|
|
33323
|
-
y2 = x2 - start1 + start2 -
|
|
33475
|
+
y2 = x2 - start1 + start2 - k2;
|
|
33324
33476
|
while (x2 >= start1 && y2 >= start2 && left[x2] === right[y2]) {
|
|
33325
33477
|
vUp[i3] = x2--;
|
|
33326
33478
|
y2--;
|
|
33327
33479
|
}
|
|
33328
|
-
if (delta % 2 === 0 && -d2 <=
|
|
33480
|
+
if (delta % 2 === 0 && -d2 <= k2 && k2 <= d2) {
|
|
33329
33481
|
if (vUp[i3] <= vDown[i3 + delta]) {
|
|
33330
|
-
return buildSnake(vUp[i3],
|
|
33482
|
+
return buildSnake(vUp[i3], k2 + start1 - start2, end1, end2);
|
|
33331
33483
|
}
|
|
33332
33484
|
}
|
|
33333
33485
|
}
|
|
@@ -43917,7 +44069,7 @@ Options:${listJoiner}${removedOptions2.join(listJoiner)}` : "";
|
|
|
43917
44069
|
}
|
|
43918
44070
|
const handlers = this.bindings[lcName];
|
|
43919
44071
|
if (handlers) {
|
|
43920
|
-
for (let i3 = 0,
|
|
44072
|
+
for (let i3 = 0, l3 = handlers.length; i3 < l3; i3++) {
|
|
43921
44073
|
const callback = handlers[i3];
|
|
43922
44074
|
if (callback.removed) {
|
|
43923
44075
|
continue;
|
|
@@ -45492,7 +45644,7 @@ Options:${listJoiner}${removedOptions2.join(listJoiner)}` : "";
|
|
|
45492
45644
|
return keys3[index2];
|
|
45493
45645
|
},
|
|
45494
45646
|
removeItem: (key) => {
|
|
45495
|
-
keys3 = keys3.filter((
|
|
45647
|
+
keys3 = keys3.filter((k2) => k2 === key);
|
|
45496
45648
|
delete data2[key];
|
|
45497
45649
|
},
|
|
45498
45650
|
clear: () => {
|
|
@@ -45964,8 +46116,8 @@ function requireTheme() {
|
|
|
45964
46116
|
const hasOwnProperty2 = Object.hasOwnProperty;
|
|
45965
46117
|
const each = (obj, f2) => {
|
|
45966
46118
|
const props = keys2(obj);
|
|
45967
|
-
for (let
|
|
45968
|
-
const i3 = props[
|
|
46119
|
+
for (let k2 = 0, len = props.length; k2 < len; k2++) {
|
|
46120
|
+
const i3 = props[k2];
|
|
45969
46121
|
const x2 = obj[i3];
|
|
45970
46122
|
f2(x2, i3);
|
|
45971
46123
|
}
|
|
@@ -46017,8 +46169,8 @@ function requireTheme() {
|
|
|
46017
46169
|
};
|
|
46018
46170
|
const find$4 = (obj, pred) => {
|
|
46019
46171
|
const props = keys2(obj);
|
|
46020
|
-
for (let
|
|
46021
|
-
const i3 = props[
|
|
46172
|
+
for (let k2 = 0, len = props.length; k2 < len; k2++) {
|
|
46173
|
+
const i3 = props[k2];
|
|
46022
46174
|
const x2 = obj[i3];
|
|
46023
46175
|
if (pred(x2, i3, obj)) {
|
|
46024
46176
|
return Optional.some(x2);
|
|
@@ -46251,8 +46403,8 @@ function requireTheme() {
|
|
|
46251
46403
|
};
|
|
46252
46404
|
const setAll$1 = (element2, attrs) => {
|
|
46253
46405
|
const dom3 = element2.dom;
|
|
46254
|
-
each(attrs, (v2,
|
|
46255
|
-
rawSet(dom3,
|
|
46406
|
+
each(attrs, (v2, k2) => {
|
|
46407
|
+
rawSet(dom3, k2, v2);
|
|
46256
46408
|
});
|
|
46257
46409
|
};
|
|
46258
46410
|
const get$f = (element2, key) => {
|
|
@@ -46291,17 +46443,17 @@ function requireTheme() {
|
|
|
46291
46443
|
};
|
|
46292
46444
|
const setAll = (element2, css) => {
|
|
46293
46445
|
const dom3 = element2.dom;
|
|
46294
|
-
each(css, (v2,
|
|
46295
|
-
internalSet(dom3,
|
|
46446
|
+
each(css, (v2, k2) => {
|
|
46447
|
+
internalSet(dom3, k2, v2);
|
|
46296
46448
|
});
|
|
46297
46449
|
};
|
|
46298
46450
|
const setOptions = (element2, css) => {
|
|
46299
46451
|
const dom3 = element2.dom;
|
|
46300
|
-
each(css, (v2,
|
|
46452
|
+
each(css, (v2, k2) => {
|
|
46301
46453
|
v2.fold(() => {
|
|
46302
|
-
internalRemove(dom3,
|
|
46454
|
+
internalRemove(dom3, k2);
|
|
46303
46455
|
}, (value2) => {
|
|
46304
|
-
internalSet(dom3,
|
|
46456
|
+
internalSet(dom3, k2, value2);
|
|
46305
46457
|
});
|
|
46306
46458
|
});
|
|
46307
46459
|
};
|
|
@@ -47269,7 +47421,7 @@ function requireTheme() {
|
|
|
47269
47421
|
}, {});
|
|
47270
47422
|
const extract2 = (path2, o2) => {
|
|
47271
47423
|
const keys3 = isBoolean2(o2) ? [] : getSetKeys(o2);
|
|
47272
|
-
const extra = filter$2(keys3, (
|
|
47424
|
+
const extra = filter$2(keys3, (k2) => !hasNonNullableKey(fieldNames, k2));
|
|
47273
47425
|
return extra.length === 0 ? delegate.extract(path2, o2) : unsupportedFields(path2, extra);
|
|
47274
47426
|
};
|
|
47275
47427
|
return {
|
|
@@ -47574,9 +47726,9 @@ function requireTheme() {
|
|
|
47574
47726
|
};
|
|
47575
47727
|
const exclude$1 = (obj, fields) => {
|
|
47576
47728
|
const r4 = {};
|
|
47577
|
-
each(obj, (v2,
|
|
47578
|
-
if (!contains$2(fields,
|
|
47579
|
-
r4[
|
|
47729
|
+
each(obj, (v2, k2) => {
|
|
47730
|
+
if (!contains$2(fields, k2)) {
|
|
47731
|
+
r4[k2] = v2;
|
|
47580
47732
|
}
|
|
47581
47733
|
});
|
|
47582
47734
|
return r4;
|
|
@@ -48335,8 +48487,8 @@ function requireTheme() {
|
|
|
48335
48487
|
const newKeys = keys2(newObj);
|
|
48336
48488
|
const oldKeys = keys2(oldObj);
|
|
48337
48489
|
const toRemove = difference(oldKeys, newKeys);
|
|
48338
|
-
const toSet = bifilter(newObj, (v2,
|
|
48339
|
-
return !has$2(oldObj,
|
|
48490
|
+
const toSet = bifilter(newObj, (v2, k2) => {
|
|
48491
|
+
return !has$2(oldObj, k2) || v2 !== oldObj[k2];
|
|
48340
48492
|
}).t;
|
|
48341
48493
|
return {
|
|
48342
48494
|
toRemove,
|
|
@@ -51065,7 +51217,7 @@ function requireTheme() {
|
|
|
51065
51217
|
const config3 = asRawOrDie$1("Sketcher for " + rawConfig.name, singleSchema, rawConfig);
|
|
51066
51218
|
const sketch2 = (spec) => single$1(config3.name, config3.configFields, config3.factory, spec);
|
|
51067
51219
|
const apis = map$1(config3.apis, makeApi);
|
|
51068
|
-
const extraApis = map$1(config3.extraApis, (f2,
|
|
51220
|
+
const extraApis = map$1(config3.extraApis, (f2, k2) => markAsExtraApi(f2, k2));
|
|
51069
51221
|
return {
|
|
51070
51222
|
name: config3.name,
|
|
51071
51223
|
configFields: config3.configFields,
|
|
@@ -51079,7 +51231,7 @@ function requireTheme() {
|
|
|
51079
51231
|
const sketch2 = (spec) => composite$1(config3.name, config3.configFields, config3.partFields, config3.factory, spec);
|
|
51080
51232
|
const parts2 = generate$3(config3.name, config3.partFields);
|
|
51081
51233
|
const apis = map$1(config3.apis, makeApi);
|
|
51082
|
-
const extraApis = map$1(config3.extraApis, (f2,
|
|
51234
|
+
const extraApis = map$1(config3.extraApis, (f2, k2) => markAsExtraApi(f2, k2));
|
|
51083
51235
|
return {
|
|
51084
51236
|
name: config3.name,
|
|
51085
51237
|
partFields: config3.partFields,
|
|
@@ -52491,9 +52643,9 @@ function requireTheme() {
|
|
|
52491
52643
|
partFields: parts$g(),
|
|
52492
52644
|
factory: make$7
|
|
52493
52645
|
});
|
|
52494
|
-
const transpose$1 = (obj) => tupleMap(obj, (v2,
|
|
52646
|
+
const transpose$1 = (obj) => tupleMap(obj, (v2, k2) => ({
|
|
52495
52647
|
k: v2,
|
|
52496
|
-
v:
|
|
52648
|
+
v: k2
|
|
52497
52649
|
}));
|
|
52498
52650
|
const trace = (items, byItem, byMenu, finish) => get$g(byMenu, finish).bind((triggerItem) => get$g(items, triggerItem).bind((triggerMenu) => {
|
|
52499
52651
|
const rest = trace(items, byItem, byMenu, triggerMenu);
|
|
@@ -52657,8 +52809,8 @@ function requireTheme() {
|
|
|
52657
52809
|
});
|
|
52658
52810
|
const updateAriaExpansions = (container, path2) => {
|
|
52659
52811
|
const parentItems = getSubmenuParents(container);
|
|
52660
|
-
each(parentItems, (v2,
|
|
52661
|
-
const expanded = contains$2(path2,
|
|
52812
|
+
each(parentItems, (v2, k2) => {
|
|
52813
|
+
const expanded = contains$2(path2, k2);
|
|
52662
52814
|
set$9(v2.element, "aria-expanded", expanded);
|
|
52663
52815
|
});
|
|
52664
52816
|
};
|
|
@@ -56249,10 +56401,10 @@ function requireTheme() {
|
|
|
56249
56401
|
const EventRegistry = () => {
|
|
56250
56402
|
const registry = {};
|
|
56251
56403
|
const registerId = (extraArgs, id, events3) => {
|
|
56252
|
-
each(events3, (v2,
|
|
56253
|
-
const handlers2 = registry[
|
|
56404
|
+
each(events3, (v2, k2) => {
|
|
56405
|
+
const handlers2 = registry[k2] !== void 0 ? registry[k2] : {};
|
|
56254
56406
|
handlers2[id] = curryArgs(v2, extraArgs);
|
|
56255
|
-
registry[
|
|
56407
|
+
registry[k2] = handlers2;
|
|
56256
56408
|
});
|
|
56257
56409
|
};
|
|
56258
56410
|
const findHandler = (handlers2, elem) => read$1(elem).bind((id) => get$g(handlers2, id)).map((descHandler) => eventHandler(elem, descHandler));
|
|
@@ -57651,7 +57803,7 @@ function requireTheme() {
|
|
|
57651
57803
|
return mouseEvent.clientX !== void 0 ? Optional.some(mouseEvent).map((me) => SugarPosition(me.clientX, me.clientY)) : Optional.none();
|
|
57652
57804
|
}
|
|
57653
57805
|
};
|
|
57654
|
-
const t2 = "top", r3 = "right", b2 = "bottom",
|
|
57806
|
+
const t2 = "top", r3 = "right", b2 = "bottom", l3 = "left";
|
|
57655
57807
|
const minX = (detail) => detail.model.minX;
|
|
57656
57808
|
const minY = (detail) => detail.model.minY;
|
|
57657
57809
|
const min1X = (detail) => detail.model.minX - 1;
|
|
@@ -57670,7 +57822,7 @@ function requireTheme() {
|
|
|
57670
57822
|
const snapStart = (detail) => detail.snapStart;
|
|
57671
57823
|
const rounded = (detail) => detail.rounded;
|
|
57672
57824
|
const hasEdge = (detail, edgeName) => detail[edgeName + "-edge"] !== void 0;
|
|
57673
|
-
const hasLEdge = (detail) => hasEdge(detail,
|
|
57825
|
+
const hasLEdge = (detail) => hasEdge(detail, l3);
|
|
57674
57826
|
const hasREdge = (detail) => hasEdge(detail, r3);
|
|
57675
57827
|
const hasTEdge = (detail) => hasEdge(detail, t2);
|
|
57676
57828
|
const hasBEdge = (detail) => hasEdge(detail, b2);
|
|
@@ -59192,7 +59344,7 @@ function requireTheme() {
|
|
|
59192
59344
|
reject("Unable to load data from image: " + image3.dom.src);
|
|
59193
59345
|
})
|
|
59194
59346
|
];
|
|
59195
|
-
const destroy = () => each$1(listeners, (
|
|
59347
|
+
const destroy = () => each$1(listeners, (l4) => l4.unbind());
|
|
59196
59348
|
if (image3.dom.complete) {
|
|
59197
59349
|
loaded();
|
|
59198
59350
|
}
|
|
@@ -70382,9 +70534,9 @@ function requireTheme() {
|
|
|
70382
70534
|
const newInternalData = validateData$1(access, mergedData);
|
|
70383
70535
|
const form = access.getFormWrapper();
|
|
70384
70536
|
Representing.setValue(form, newInternalData);
|
|
70385
|
-
each(menuItemStates, (v2,
|
|
70386
|
-
if (has$2(mergedData,
|
|
70387
|
-
v2.set(mergedData[
|
|
70537
|
+
each(menuItemStates, (v2, k2) => {
|
|
70538
|
+
if (has$2(mergedData, k2)) {
|
|
70539
|
+
v2.set(mergedData[k2]);
|
|
70388
70540
|
}
|
|
70389
70541
|
});
|
|
70390
70542
|
});
|
|
@@ -71316,8 +71468,8 @@ function requireModel() {
|
|
|
71316
71468
|
const hasOwnProperty2 = Object.hasOwnProperty;
|
|
71317
71469
|
const each$1 = (obj, f2) => {
|
|
71318
71470
|
const props = keys2(obj);
|
|
71319
|
-
for (let
|
|
71320
|
-
const i3 = props[
|
|
71471
|
+
for (let k2 = 0, len = props.length; k2 < len; k2++) {
|
|
71472
|
+
const i3 = props[k2];
|
|
71321
71473
|
const x2 = obj[i3];
|
|
71322
71474
|
f2(x2, i3);
|
|
71323
71475
|
}
|
|
@@ -71405,16 +71557,16 @@ function requireModel() {
|
|
|
71405
71557
|
};
|
|
71406
71558
|
const setAll$1 = (element, attrs) => {
|
|
71407
71559
|
const dom2 = element.dom;
|
|
71408
|
-
each$1(attrs, (v2,
|
|
71409
|
-
rawSet(dom2,
|
|
71560
|
+
each$1(attrs, (v2, k2) => {
|
|
71561
|
+
rawSet(dom2, k2, v2);
|
|
71410
71562
|
});
|
|
71411
71563
|
};
|
|
71412
71564
|
const setOptions = (element, attrs) => {
|
|
71413
|
-
each$1(attrs, (v2,
|
|
71565
|
+
each$1(attrs, (v2, k2) => {
|
|
71414
71566
|
v2.fold(() => {
|
|
71415
|
-
remove$7(element,
|
|
71567
|
+
remove$7(element, k2);
|
|
71416
71568
|
}, (value2) => {
|
|
71417
|
-
rawSet(element.dom,
|
|
71569
|
+
rawSet(element.dom, k2, value2);
|
|
71418
71570
|
});
|
|
71419
71571
|
});
|
|
71420
71572
|
};
|
|
@@ -71854,8 +72006,8 @@ function requireModel() {
|
|
|
71854
72006
|
};
|
|
71855
72007
|
const setAll = (element, css2) => {
|
|
71856
72008
|
const dom2 = element.dom;
|
|
71857
|
-
each$1(css2, (v2,
|
|
71858
|
-
internalSet(dom2,
|
|
72009
|
+
each$1(css2, (v2, k2) => {
|
|
72010
|
+
internalSet(dom2, k2, v2);
|
|
71859
72011
|
});
|
|
71860
72012
|
};
|
|
71861
72013
|
const get$a = (element, property) => {
|
|
@@ -73135,11 +73287,11 @@ function requireModel() {
|
|
|
73135
73287
|
};
|
|
73136
73288
|
const replace$1 = (cell2, tag, attrs) => {
|
|
73137
73289
|
const replica = copy$2(cell2, tag);
|
|
73138
|
-
each$1(attrs, (v2,
|
|
73290
|
+
each$1(attrs, (v2, k2) => {
|
|
73139
73291
|
if (v2 === null) {
|
|
73140
|
-
remove$7(replica,
|
|
73292
|
+
remove$7(replica, k2);
|
|
73141
73293
|
} else {
|
|
73142
|
-
set$2(replica,
|
|
73294
|
+
set$2(replica, k2, v2);
|
|
73143
73295
|
}
|
|
73144
73296
|
});
|
|
73145
73297
|
return replica;
|
|
@@ -79301,8 +79453,8 @@ function requirePlugin$2() {
|
|
|
79301
79453
|
const keys2 = Object.keys;
|
|
79302
79454
|
const each = (obj, f2) => {
|
|
79303
79455
|
const props = keys2(obj);
|
|
79304
|
-
for (let
|
|
79305
|
-
const i3 = props[
|
|
79456
|
+
for (let k2 = 0, len = props.length; k2 < len; k2++) {
|
|
79457
|
+
const i3 = props[k2];
|
|
79306
79458
|
const x2 = obj[i3];
|
|
79307
79459
|
f2(x2, i3);
|
|
79308
79460
|
}
|
|
@@ -79332,8 +79484,8 @@ function requirePlugin$2() {
|
|
|
79332
79484
|
};
|
|
79333
79485
|
const setAll = (element, attrs) => {
|
|
79334
79486
|
const dom2 = element.dom;
|
|
79335
|
-
each(attrs, (v2,
|
|
79336
|
-
rawSet(dom2,
|
|
79487
|
+
each(attrs, (v2, k2) => {
|
|
79488
|
+
rawSet(dom2, k2, v2);
|
|
79337
79489
|
});
|
|
79338
79490
|
};
|
|
79339
79491
|
const clone$1 = (element) => foldl(element.dom.attributes, (acc, attr) => {
|
|
@@ -80383,7 +80535,7 @@ function requirePlugin$2() {
|
|
|
80383
80535
|
editor.dom.setStyles(parentList, update.styles);
|
|
80384
80536
|
}
|
|
80385
80537
|
if (isObject2(update.attrs)) {
|
|
80386
|
-
each(update.attrs, (v2,
|
|
80538
|
+
each(update.attrs, (v2, k2) => editor.dom.setAttrib(parentList, k2, v2));
|
|
80387
80539
|
}
|
|
80388
80540
|
});
|
|
80389
80541
|
};
|
|
@@ -80948,8 +81100,8 @@ function requirePlugin$1() {
|
|
|
80948
81100
|
const hasOwnProperty2 = Object.hasOwnProperty;
|
|
80949
81101
|
const each = (obj, f2) => {
|
|
80950
81102
|
const props = keys2(obj);
|
|
80951
|
-
for (let
|
|
80952
|
-
const i3 = props[
|
|
81103
|
+
for (let k2 = 0, len = props.length; k2 < len; k2++) {
|
|
81104
|
+
const i3 = props[k2];
|
|
80953
81105
|
const x2 = obj[i3];
|
|
80954
81106
|
f2(x2, i3);
|
|
80955
81107
|
}
|
|
@@ -82407,11 +82559,11 @@ function requireShowdown() {
|
|
|
82407
82559
|
return txt.replace(/"/g, '"').replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
82408
82560
|
};
|
|
82409
82561
|
var rgxFindMatchPos = function(str, left, right, flags) {
|
|
82410
|
-
var f2 = flags || "", g2 = f2.indexOf("g") > -1, x2 = new RegExp(left + "|" + right, "g" + f2.replace(/g/g, "")),
|
|
82562
|
+
var f2 = flags || "", g2 = f2.indexOf("g") > -1, x2 = new RegExp(left + "|" + right, "g" + f2.replace(/g/g, "")), l3 = new RegExp(left, f2.replace(/g/g, "")), pos = [], t2, s2, m2, start, end;
|
|
82411
82563
|
do {
|
|
82412
82564
|
t2 = 0;
|
|
82413
82565
|
while (m2 = x2.exec(str)) {
|
|
82414
|
-
if (
|
|
82566
|
+
if (l3.test(m2[0])) {
|
|
82415
82567
|
if (!t2++) {
|
|
82416
82568
|
s2 = x2.lastIndex;
|
|
82417
82569
|
start = s2 - m2[0].length;
|
|
@@ -85559,13 +85711,13 @@ function decode$1(string2, exclude) {
|
|
|
85559
85711
|
const cache = getDecodeCache(exclude);
|
|
85560
85712
|
return string2.replace(/(%[a-f0-9]{2})+/gi, function(seq) {
|
|
85561
85713
|
let result = "";
|
|
85562
|
-
for (let i3 = 0,
|
|
85714
|
+
for (let i3 = 0, l3 = seq.length; i3 < l3; i3 += 3) {
|
|
85563
85715
|
const b1 = parseInt(seq.slice(i3 + 1, i3 + 3), 16);
|
|
85564
85716
|
if (b1 < 128) {
|
|
85565
85717
|
result += cache[b1];
|
|
85566
85718
|
continue;
|
|
85567
85719
|
}
|
|
85568
|
-
if ((b1 & 224) === 192 && i3 + 3 <
|
|
85720
|
+
if ((b1 & 224) === 192 && i3 + 3 < l3) {
|
|
85569
85721
|
const b2 = parseInt(seq.slice(i3 + 4, i3 + 6), 16);
|
|
85570
85722
|
if ((b2 & 192) === 128) {
|
|
85571
85723
|
const chr = b1 << 6 & 1984 | b2 & 63;
|
|
@@ -85578,7 +85730,7 @@ function decode$1(string2, exclude) {
|
|
|
85578
85730
|
continue;
|
|
85579
85731
|
}
|
|
85580
85732
|
}
|
|
85581
|
-
if ((b1 & 240) === 224 && i3 + 6 <
|
|
85733
|
+
if ((b1 & 240) === 224 && i3 + 6 < l3) {
|
|
85582
85734
|
const b2 = parseInt(seq.slice(i3 + 4, i3 + 6), 16);
|
|
85583
85735
|
const b3 = parseInt(seq.slice(i3 + 7, i3 + 9), 16);
|
|
85584
85736
|
if ((b2 & 192) === 128 && (b3 & 192) === 128) {
|
|
@@ -85592,7 +85744,7 @@ function decode$1(string2, exclude) {
|
|
|
85592
85744
|
continue;
|
|
85593
85745
|
}
|
|
85594
85746
|
}
|
|
85595
|
-
if ((b1 & 248) === 240 && i3 + 9 <
|
|
85747
|
+
if ((b1 & 248) === 240 && i3 + 9 < l3) {
|
|
85596
85748
|
const b2 = parseInt(seq.slice(i3 + 4, i3 + 6), 16);
|
|
85597
85749
|
const b3 = parseInt(seq.slice(i3 + 7, i3 + 9), 16);
|
|
85598
85750
|
const b4 = parseInt(seq.slice(i3 + 10, i3 + 12), 16);
|
|
@@ -85645,9 +85797,9 @@ function encode$1(string2, exclude, keepEscaped) {
|
|
|
85645
85797
|
}
|
|
85646
85798
|
const cache = getEncodeCache(exclude);
|
|
85647
85799
|
let result = "";
|
|
85648
|
-
for (let i3 = 0,
|
|
85800
|
+
for (let i3 = 0, l3 = string2.length; i3 < l3; i3++) {
|
|
85649
85801
|
const code2 = string2.charCodeAt(i3);
|
|
85650
|
-
if (keepEscaped && code2 === 37 && i3 + 2 <
|
|
85802
|
+
if (keepEscaped && code2 === 37 && i3 + 2 < l3) {
|
|
85651
85803
|
if (/^[0-9a-f]{2}$/i.test(string2.slice(i3 + 1, i3 + 3))) {
|
|
85652
85804
|
result += string2.slice(i3, i3 + 3);
|
|
85653
85805
|
i3 += 2;
|
|
@@ -85659,7 +85811,7 @@ function encode$1(string2, exclude, keepEscaped) {
|
|
|
85659
85811
|
continue;
|
|
85660
85812
|
}
|
|
85661
85813
|
if (code2 >= 55296 && code2 <= 57343) {
|
|
85662
|
-
if (code2 >= 55296 && code2 <= 56319 && i3 + 1 <
|
|
85814
|
+
if (code2 >= 55296 && code2 <= 56319 && i3 + 1 < l3) {
|
|
85663
85815
|
const nextCode = string2.charCodeAt(i3 + 1);
|
|
85664
85816
|
if (nextCode >= 56320 && nextCode <= 57343) {
|
|
85665
85817
|
result += encodeURIComponent(string2[i3] + string2[i3 + 1]);
|
|
@@ -85802,14 +85954,14 @@ Url.prototype.parse = function(url2, slashesDenoteHost) {
|
|
|
85802
85954
|
const ipv6Hostname = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
85803
85955
|
if (!ipv6Hostname) {
|
|
85804
85956
|
const hostparts = this.hostname.split(/\./);
|
|
85805
|
-
for (let i3 = 0,
|
|
85957
|
+
for (let i3 = 0, l3 = hostparts.length; i3 < l3; i3++) {
|
|
85806
85958
|
const part = hostparts[i3];
|
|
85807
85959
|
if (!part) {
|
|
85808
85960
|
continue;
|
|
85809
85961
|
}
|
|
85810
85962
|
if (!part.match(hostnamePartPattern)) {
|
|
85811
85963
|
let newpart = "";
|
|
85812
|
-
for (let j2 = 0,
|
|
85964
|
+
for (let j2 = 0, k2 = part.length; j2 < k2; j2++) {
|
|
85813
85965
|
if (part.charCodeAt(j2) > 127) {
|
|
85814
85966
|
newpart += "x";
|
|
85815
85967
|
} else {
|
|
@@ -86773,12 +86925,12 @@ function Renderer() {
|
|
|
86773
86925
|
this.rules = assign$1({}, default_rules);
|
|
86774
86926
|
}
|
|
86775
86927
|
Renderer.prototype.renderAttrs = function renderAttrs(token) {
|
|
86776
|
-
let i3,
|
|
86928
|
+
let i3, l3, result;
|
|
86777
86929
|
if (!token.attrs) {
|
|
86778
86930
|
return "";
|
|
86779
86931
|
}
|
|
86780
86932
|
result = "";
|
|
86781
|
-
for (i3 = 0,
|
|
86933
|
+
for (i3 = 0, l3 = token.attrs.length; i3 < l3; i3++) {
|
|
86782
86934
|
result += " " + escapeHtml(token.attrs[i3][0]) + '="' + escapeHtml(token.attrs[i3][1]) + '"';
|
|
86783
86935
|
}
|
|
86784
86936
|
return result;
|
|
@@ -87093,7 +87245,7 @@ function block(state) {
|
|
|
87093
87245
|
}
|
|
87094
87246
|
function inline(state) {
|
|
87095
87247
|
const tokens = state.tokens;
|
|
87096
|
-
for (let i3 = 0,
|
|
87248
|
+
for (let i3 = 0, l3 = tokens.length; i3 < l3; i3++) {
|
|
87097
87249
|
const tok = tokens[i3];
|
|
87098
87250
|
if (tok.type === "inline") {
|
|
87099
87251
|
state.md.inline.parse(tok.content, state.md, state.env, tok.children);
|
|
@@ -87111,7 +87263,7 @@ function linkify$1(state) {
|
|
|
87111
87263
|
if (!state.md.options.linkify) {
|
|
87112
87264
|
return;
|
|
87113
87265
|
}
|
|
87114
|
-
for (let j2 = 0,
|
|
87266
|
+
for (let j2 = 0, l3 = blockTokens.length; j2 < l3; j2++) {
|
|
87115
87267
|
if (blockTokens[j2].type !== "inline" || !state.md.linkify.pretest(blockTokens[j2].content)) {
|
|
87116
87268
|
continue;
|
|
87117
87269
|
}
|
|
@@ -87406,8 +87558,8 @@ function smartquotes(state) {
|
|
|
87406
87558
|
function text_join(state) {
|
|
87407
87559
|
let curr, last;
|
|
87408
87560
|
const blockTokens = state.tokens;
|
|
87409
|
-
const
|
|
87410
|
-
for (let j2 = 0; j2 <
|
|
87561
|
+
const l3 = blockTokens.length;
|
|
87562
|
+
for (let j2 = 0; j2 < l3; j2++) {
|
|
87411
87563
|
if (blockTokens[j2].type !== "inline") continue;
|
|
87412
87564
|
const tokens = blockTokens[j2].children;
|
|
87413
87565
|
const max = tokens.length;
|
|
@@ -87450,7 +87602,7 @@ function Core() {
|
|
|
87450
87602
|
}
|
|
87451
87603
|
Core.prototype.process = function(state) {
|
|
87452
87604
|
const rules = this.ruler.getRules("");
|
|
87453
|
-
for (let i3 = 0,
|
|
87605
|
+
for (let i3 = 0, l3 = rules.length; i3 < l3; i3++) {
|
|
87454
87606
|
rules[i3](state);
|
|
87455
87607
|
}
|
|
87456
87608
|
};
|
|
@@ -87746,7 +87898,7 @@ function table(state, startLine, endLine, silent) {
|
|
|
87746
87898
|
break;
|
|
87747
87899
|
}
|
|
87748
87900
|
let terminate = false;
|
|
87749
|
-
for (let i3 = 0,
|
|
87901
|
+
for (let i3 = 0, l3 = terminatorRules.length; i3 < l3; i3++) {
|
|
87750
87902
|
if (terminatorRules[i3](state, nextLine, endLine, true)) {
|
|
87751
87903
|
terminate = true;
|
|
87752
87904
|
break;
|
|
@@ -87967,7 +88119,7 @@ function blockquote(state, startLine, endLine, silent) {
|
|
|
87967
88119
|
break;
|
|
87968
88120
|
}
|
|
87969
88121
|
let terminate = false;
|
|
87970
|
-
for (let i3 = 0,
|
|
88122
|
+
for (let i3 = 0, l3 = terminatorRules.length; i3 < l3; i3++) {
|
|
87971
88123
|
if (terminatorRules[i3](state, nextLine, endLine, true)) {
|
|
87972
88124
|
terminate = true;
|
|
87973
88125
|
break;
|
|
@@ -88095,7 +88247,7 @@ function skipOrderedListMarker(state, startLine) {
|
|
|
88095
88247
|
}
|
|
88096
88248
|
function markTightParagraphs(state, idx) {
|
|
88097
88249
|
const level2 = state.level + 2;
|
|
88098
|
-
for (let i3 = idx + 2,
|
|
88250
|
+
for (let i3 = idx + 2, l3 = state.tokens.length - 2; i3 < l3; i3++) {
|
|
88099
88251
|
if (state.tokens[i3].level === level2 && state.tokens[i3].type === "paragraph_open") {
|
|
88100
88252
|
state.tokens[i3 + 2].hidden = true;
|
|
88101
88253
|
state.tokens[i3].hidden = true;
|
|
@@ -88226,7 +88378,7 @@ function list(state, startLine, endLine, silent) {
|
|
|
88226
88378
|
break;
|
|
88227
88379
|
}
|
|
88228
88380
|
let terminate = false;
|
|
88229
|
-
for (let i3 = 0,
|
|
88381
|
+
for (let i3 = 0, l3 = terminatorRules.length; i3 < l3; i3++) {
|
|
88230
88382
|
if (terminatorRules[i3](state, nextLine, endLine, true)) {
|
|
88231
88383
|
terminate = true;
|
|
88232
88384
|
break;
|
|
@@ -88292,7 +88444,7 @@ function reference(state, startLine, _endLine, silent) {
|
|
|
88292
88444
|
const oldParentType = state.parentType;
|
|
88293
88445
|
state.parentType = "reference";
|
|
88294
88446
|
let terminate = false;
|
|
88295
|
-
for (let i3 = 0,
|
|
88447
|
+
for (let i3 = 0, l3 = terminatorRules.length; i3 < l3; i3++) {
|
|
88296
88448
|
if (terminatorRules[i3](state, nextLine2, endLine, true)) {
|
|
88297
88449
|
terminate = true;
|
|
88298
88450
|
break;
|
|
@@ -88645,7 +88797,7 @@ function lheading(state, startLine, endLine) {
|
|
|
88645
88797
|
continue;
|
|
88646
88798
|
}
|
|
88647
88799
|
let terminate = false;
|
|
88648
|
-
for (let i3 = 0,
|
|
88800
|
+
for (let i3 = 0, l3 = terminatorRules.length; i3 < l3; i3++) {
|
|
88649
88801
|
if (terminatorRules[i3](state, nextLine, endLine, true)) {
|
|
88650
88802
|
terminate = true;
|
|
88651
88803
|
break;
|
|
@@ -88685,7 +88837,7 @@ function paragraph(state, startLine, endLine) {
|
|
|
88685
88837
|
continue;
|
|
88686
88838
|
}
|
|
88687
88839
|
let terminate = false;
|
|
88688
|
-
for (let i3 = 0,
|
|
88840
|
+
for (let i3 = 0, l3 = terminatorRules.length; i3 < l3; i3++) {
|
|
88689
88841
|
if (terminatorRules[i3](state, nextLine, endLine, true)) {
|
|
88690
88842
|
terminate = true;
|
|
88691
88843
|
break;
|
|
@@ -89838,8 +89990,8 @@ const defaultOptions$1 = {
|
|
|
89838
89990
|
fuzzyIP: false
|
|
89839
89991
|
};
|
|
89840
89992
|
function isOptionsObj(obj) {
|
|
89841
|
-
return Object.keys(obj || {}).reduce(function(acc,
|
|
89842
|
-
return acc || defaultOptions$1.hasOwnProperty(
|
|
89993
|
+
return Object.keys(obj || {}).reduce(function(acc, k2) {
|
|
89994
|
+
return acc || defaultOptions$1.hasOwnProperty(k2);
|
|
89843
89995
|
}, false);
|
|
89844
89996
|
}
|
|
89845
89997
|
const defaultSchemas = {
|
|
@@ -90232,13 +90384,13 @@ const digitToBasic = function(digit, flag) {
|
|
|
90232
90384
|
return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
|
|
90233
90385
|
};
|
|
90234
90386
|
const adapt = function(delta, numPoints, firstTime) {
|
|
90235
|
-
let
|
|
90387
|
+
let k2 = 0;
|
|
90236
90388
|
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
90237
90389
|
delta += floor(delta / numPoints);
|
|
90238
|
-
for (; delta > baseMinusTMin * tMax >> 1;
|
|
90390
|
+
for (; delta > baseMinusTMin * tMax >> 1; k2 += base) {
|
|
90239
90391
|
delta = floor(delta / baseMinusTMin);
|
|
90240
90392
|
}
|
|
90241
|
-
return floor(
|
|
90393
|
+
return floor(k2 + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
90242
90394
|
};
|
|
90243
90395
|
const decode = function(input) {
|
|
90244
90396
|
const output = [];
|
|
@@ -90258,7 +90410,7 @@ const decode = function(input) {
|
|
|
90258
90410
|
}
|
|
90259
90411
|
for (let index2 = basic > 0 ? basic + 1 : 0; index2 < inputLength; ) {
|
|
90260
90412
|
const oldi = i3;
|
|
90261
|
-
for (let w = 1,
|
|
90413
|
+
for (let w = 1, k2 = base; ; k2 += base) {
|
|
90262
90414
|
if (index2 >= inputLength) {
|
|
90263
90415
|
error("invalid-input");
|
|
90264
90416
|
}
|
|
@@ -90270,7 +90422,7 @@ const decode = function(input) {
|
|
|
90270
90422
|
error("overflow");
|
|
90271
90423
|
}
|
|
90272
90424
|
i3 += digit * w;
|
|
90273
|
-
const t2 =
|
|
90425
|
+
const t2 = k2 <= bias ? tMin : k2 >= bias + tMax ? tMax : k2 - bias;
|
|
90274
90426
|
if (digit < t2) {
|
|
90275
90427
|
break;
|
|
90276
90428
|
}
|
|
@@ -90327,8 +90479,8 @@ const encode = function(input) {
|
|
|
90327
90479
|
}
|
|
90328
90480
|
if (currentValue === n3) {
|
|
90329
90481
|
let q = delta;
|
|
90330
|
-
for (let
|
|
90331
|
-
const t2 =
|
|
90482
|
+
for (let k2 = base; ; k2 += base) {
|
|
90483
|
+
const t2 = k2 <= bias ? tMin : k2 >= bias + tMax ? tMax : k2 - bias;
|
|
90332
90484
|
if (q < t2) {
|
|
90333
90485
|
break;
|
|
90334
90486
|
}
|
|
@@ -92861,15 +93013,15 @@ function requireDiff() {
|
|
|
92861
93013
|
}
|
|
92862
93014
|
}
|
|
92863
93015
|
}
|
|
92864
|
-
for (var
|
|
92865
|
-
var k2_offset = v_offset +
|
|
93016
|
+
for (var k2 = -d2 + k2start; k2 <= d2 - k2end; k2 += 2) {
|
|
93017
|
+
var k2_offset = v_offset + k2;
|
|
92866
93018
|
var x22;
|
|
92867
|
-
if (
|
|
93019
|
+
if (k2 === -d2 || k2 !== d2 && v2[k2_offset - 1] < v2[k2_offset + 1]) {
|
|
92868
93020
|
x22 = v2[k2_offset + 1];
|
|
92869
93021
|
} else {
|
|
92870
93022
|
x22 = v2[k2_offset - 1] + 1;
|
|
92871
93023
|
}
|
|
92872
|
-
var y2 = x22 -
|
|
93024
|
+
var y2 = x22 - k2;
|
|
92873
93025
|
while (x22 < text1_length && y2 < text2_length && text1.charAt(text1_length - x22 - 1) === text2.charAt(text2_length - y2 - 1)) {
|
|
92874
93026
|
x22++;
|
|
92875
93027
|
y2++;
|
|
@@ -92880,7 +93032,7 @@ function requireDiff() {
|
|
|
92880
93032
|
} else if (y2 > text2_length) {
|
|
92881
93033
|
k2start += 2;
|
|
92882
93034
|
} else if (!front) {
|
|
92883
|
-
var k1_offset = v_offset + delta -
|
|
93035
|
+
var k1_offset = v_offset + delta - k2;
|
|
92884
93036
|
if (k1_offset >= 0 && k1_offset < v_length && v1[k1_offset] !== -1) {
|
|
92885
93037
|
var x1 = v1[k1_offset];
|
|
92886
93038
|
var y1 = v_offset + x1 - k1_offset;
|
|
@@ -93262,18 +93414,18 @@ function requireDiff() {
|
|
|
93262
93414
|
if (!diffs[previous_equality][1]) {
|
|
93263
93415
|
diffs.splice(previous_equality, 1);
|
|
93264
93416
|
pointer--;
|
|
93265
|
-
var
|
|
93266
|
-
if (diffs[
|
|
93417
|
+
var k2 = previous_equality - 1;
|
|
93418
|
+
if (diffs[k2] && diffs[k2][0] === DIFF_INSERT) {
|
|
93267
93419
|
count_insert++;
|
|
93268
|
-
text_insert = diffs[
|
|
93269
|
-
|
|
93420
|
+
text_insert = diffs[k2][1] + text_insert;
|
|
93421
|
+
k2--;
|
|
93270
93422
|
}
|
|
93271
|
-
if (diffs[
|
|
93423
|
+
if (diffs[k2] && diffs[k2][0] === DIFF_DELETE) {
|
|
93272
93424
|
count_delete++;
|
|
93273
|
-
text_delete = diffs[
|
|
93274
|
-
|
|
93425
|
+
text_delete = diffs[k2][1] + text_delete;
|
|
93426
|
+
k2--;
|
|
93275
93427
|
}
|
|
93276
|
-
previous_equality =
|
|
93428
|
+
previous_equality = k2;
|
|
93277
93429
|
}
|
|
93278
93430
|
}
|
|
93279
93431
|
if (starts_with_pair_end(diffs[pointer][1])) {
|
|
@@ -95820,7 +95972,7 @@ function requireEventemitter3() {
|
|
|
95820
95972
|
var evt = prefix ? prefix + event : event, handlers = this._events[evt];
|
|
95821
95973
|
if (!handlers) return [];
|
|
95822
95974
|
if (handlers.fn) return [handlers.fn];
|
|
95823
|
-
for (var i3 = 0,
|
|
95975
|
+
for (var i3 = 0, l3 = handlers.length, ee = new Array(l3); i3 < l3; i3++) {
|
|
95824
95976
|
ee[i3] = handlers[i3].fn;
|
|
95825
95977
|
}
|
|
95826
95978
|
return ee;
|
|
@@ -102901,7 +103053,7 @@ function requireOpLinkSanitizer() {
|
|
|
102901
103053
|
if (mod && mod.__esModule) return mod;
|
|
102902
103054
|
var result = {};
|
|
102903
103055
|
if (mod != null) {
|
|
102904
|
-
for (var
|
|
103056
|
+
for (var k2 in mod) if (Object.hasOwnProperty.call(mod, k2)) result[k2] = mod[k2];
|
|
102905
103057
|
}
|
|
102906
103058
|
result["default"] = mod;
|
|
102907
103059
|
return result;
|
|
@@ -103160,9 +103312,9 @@ function requireOpAttributeSanitizer() {
|
|
|
103160
103312
|
cleanAttrs.mention = mention;
|
|
103161
103313
|
}
|
|
103162
103314
|
}
|
|
103163
|
-
return Object.keys(dirtyAttrs).reduce(function(cleaned,
|
|
103164
|
-
if (sanitizedAttrs.indexOf(
|
|
103165
|
-
cleaned[
|
|
103315
|
+
return Object.keys(dirtyAttrs).reduce(function(cleaned, k2) {
|
|
103316
|
+
if (sanitizedAttrs.indexOf(k2) === -1) {
|
|
103317
|
+
cleaned[k2] = dirtyAttrs[k2];
|
|
103166
103318
|
}
|
|
103167
103319
|
return cleaned;
|
|
103168
103320
|
}, cleanAttrs);
|
|
@@ -103274,7 +103426,7 @@ function requireInsertOpDenormalizer() {
|
|
|
103274
103426
|
if (mod && mod.__esModule) return mod;
|
|
103275
103427
|
var result = {};
|
|
103276
103428
|
if (mod != null) {
|
|
103277
|
-
for (var
|
|
103429
|
+
for (var k2 in mod) if (Object.hasOwnProperty.call(mod, k2)) result[k2] = mod[k2];
|
|
103278
103430
|
}
|
|
103279
103431
|
result["default"] = mod;
|
|
103280
103432
|
return result;
|
|
@@ -103375,7 +103527,7 @@ function requireOpToHtmlConverter() {
|
|
|
103375
103527
|
if (mod && mod.__esModule) return mod;
|
|
103376
103528
|
var result = {};
|
|
103377
103529
|
if (mod != null) {
|
|
103378
|
-
for (var
|
|
103530
|
+
for (var k2 in mod) if (Object.hasOwnProperty.call(mod, k2)) result[k2] = mod[k2];
|
|
103379
103531
|
}
|
|
103380
103532
|
result["default"] = mod;
|
|
103381
103533
|
return result;
|
|
@@ -103533,8 +103685,8 @@ function requireOpToHtmlConverter() {
|
|
|
103533
103685
|
}
|
|
103534
103686
|
var makeAttr = this.makeAttr.bind(this);
|
|
103535
103687
|
var customTagAttributes = this.getCustomTagAttributes();
|
|
103536
|
-
var customAttr = customTagAttributes ? Object.keys(this.getCustomTagAttributes()).map(function(
|
|
103537
|
-
return makeAttr(
|
|
103688
|
+
var customAttr = customTagAttributes ? Object.keys(this.getCustomTagAttributes()).map(function(k2) {
|
|
103689
|
+
return makeAttr(k2, customTagAttributes[k2]);
|
|
103538
103690
|
}) : [];
|
|
103539
103691
|
var classes = this.getCssClasses();
|
|
103540
103692
|
var tagAttrs = classes.length ? customAttr.concat([makeAttr("class", classes.join(" "))]) : customAttr;
|
|
@@ -103581,8 +103733,8 @@ function requireOpToHtmlConverter() {
|
|
|
103581
103733
|
}
|
|
103582
103734
|
return tagAttrs;
|
|
103583
103735
|
};
|
|
103584
|
-
OpToHtmlConverter2.prototype.makeAttr = function(
|
|
103585
|
-
return { key:
|
|
103736
|
+
OpToHtmlConverter2.prototype.makeAttr = function(k2, v2) {
|
|
103737
|
+
return { key: k2, value: v2 };
|
|
103586
103738
|
};
|
|
103587
103739
|
OpToHtmlConverter2.prototype.getLinkAttrs = function() {
|
|
103588
103740
|
var tagAttrs = [];
|
|
@@ -104028,7 +104180,7 @@ function requireQuillDeltaToHtmlConverter() {
|
|
|
104028
104180
|
if (mod && mod.__esModule) return mod;
|
|
104029
104181
|
var result = {};
|
|
104030
104182
|
if (mod != null) {
|
|
104031
|
-
for (var
|
|
104183
|
+
for (var k2 in mod) if (Object.hasOwnProperty.call(mod, k2)) result[k2] = mod[k2];
|
|
104032
104184
|
}
|
|
104033
104185
|
result["default"] = mod;
|
|
104034
104186
|
return result;
|
|
@@ -109674,7 +109826,7 @@ export {
|
|
|
109674
109826
|
FederationMixin,
|
|
109675
109827
|
FilterMixin,
|
|
109676
109828
|
GrouperMixin,
|
|
109677
|
-
|
|
109829
|
+
l as Helpers,
|
|
109678
109830
|
HighlighterMixin,
|
|
109679
109831
|
ListMixin,
|
|
109680
109832
|
NextMixin,
|