@startinblox/core 0.19.0-beta.8 → 0.19.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/dist/MarkerCluster-96Sa2BSd.js +4 -0
- package/dist/MarkerCluster.Default-CpBAgxXL.js +4 -0
- package/dist/default-theme-oAPinkzv.js +4 -0
- package/dist/{assets/en-e53105c5.js → en-7f7JgW9b.js} +0 -1
- package/dist/{assets/fr-a7fcdb64.js → fr-r9OPSsZY.js} +0 -1
- package/dist/{assets/helpers-bf15809c.js → helpers-4tVqSOBU.js} +133 -6
- package/dist/helpers.js +9 -5
- package/dist/index.js +1234 -943
- package/dist/leaflet-2MZa2u07.js +644 -0
- package/dist/{assets/quill.snow-8f222e44.css → quill.snow-gf_AguUg.js} +8 -4
- package/dist/slimselect-AzdIsdl3.js +4 -0
- package/package.json +3 -3
- package/dist/assets/MarkerCluster-614dea0a.css +0 -14
- package/dist/assets/MarkerCluster.Default-61258232.css +0 -60
- package/dist/assets/default-theme-d0f20a8a.css +0 -24
- package/dist/assets/en-e53105c5.js.map +0 -1
- package/dist/assets/fr-a7fcdb64.js.map +0 -1
- package/dist/assets/helpers-bf15809c.js.map +0 -1
- package/dist/assets/leaflet-3c081932.css +0 -640
- package/dist/assets/slimselect-43e3ebc8.css +0 -2
- package/dist/helpers.js.map +0 -1
- package/dist/index.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as defineComponent, u as uniqID, f as fuzzyCompare, p as parseFieldsString, a as findClosingBracketMatchIndex, c as compare, e as evalTemplateString, s as setDeepProperty, t as transformArrayToContainer } from "./
|
|
2
|
-
import { h } from "./
|
|
1
|
+
import { d as defineComponent, u as uniqID, i as importInlineCSS, f as fuzzyCompare, p as parseFieldsString, a as findClosingBracketMatchIndex, c as compare, e as evalTemplateString, s as setDeepProperty, t as transformArrayToContainer } from "./helpers-4tVqSOBU.js";
|
|
2
|
+
import { h } from "./helpers-4tVqSOBU.js";
|
|
3
3
|
import PubSub$1 from "https://cdn.skypack.dev/pubsub-js";
|
|
4
4
|
import L from "https://cdn.skypack.dev/leaflet";
|
|
5
5
|
import "https://cdn.skypack.dev/leaflet.markercluster";
|
|
@@ -423,7 +423,7 @@ class Template {
|
|
|
423
423
|
const stack = [];
|
|
424
424
|
const walker = document.createTreeWalker(element.content, 133, null, false);
|
|
425
425
|
let lastPartIndex = 0;
|
|
426
|
-
let
|
|
426
|
+
let index2 = -1;
|
|
427
427
|
let partIndex = 0;
|
|
428
428
|
const { strings, values: { length } } = result;
|
|
429
429
|
while (partIndex < length) {
|
|
@@ -432,7 +432,7 @@ class Template {
|
|
|
432
432
|
walker.currentNode = stack.pop();
|
|
433
433
|
continue;
|
|
434
434
|
}
|
|
435
|
-
|
|
435
|
+
index2++;
|
|
436
436
|
if (node2.nodeType === 1) {
|
|
437
437
|
if (node2.hasAttributes()) {
|
|
438
438
|
const attributes = node2.attributes;
|
|
@@ -450,7 +450,7 @@ class Template {
|
|
|
450
450
|
const attributeValue = node2.getAttribute(attributeLookupName);
|
|
451
451
|
node2.removeAttribute(attributeLookupName);
|
|
452
452
|
const statics = attributeValue.split(markerRegex);
|
|
453
|
-
this.parts.push({ type: "attribute", index, name, strings: statics });
|
|
453
|
+
this.parts.push({ type: "attribute", index: index2, name, strings: statics });
|
|
454
454
|
partIndex += statics.length - 1;
|
|
455
455
|
}
|
|
456
456
|
}
|
|
@@ -477,7 +477,7 @@ class Template {
|
|
|
477
477
|
insert2 = document.createTextNode(s);
|
|
478
478
|
}
|
|
479
479
|
parent.insertBefore(insert2, node2);
|
|
480
|
-
this.parts.push({ type: "node", index: ++
|
|
480
|
+
this.parts.push({ type: "node", index: ++index2 });
|
|
481
481
|
}
|
|
482
482
|
if (strings2[lastIndex] === "") {
|
|
483
483
|
parent.insertBefore(createMarker(), node2);
|
|
@@ -490,17 +490,17 @@ class Template {
|
|
|
490
490
|
} else if (node2.nodeType === 8) {
|
|
491
491
|
if (node2.data === marker$2) {
|
|
492
492
|
const parent = node2.parentNode;
|
|
493
|
-
if (node2.previousSibling === null ||
|
|
494
|
-
|
|
493
|
+
if (node2.previousSibling === null || index2 === lastPartIndex) {
|
|
494
|
+
index2++;
|
|
495
495
|
parent.insertBefore(createMarker(), node2);
|
|
496
496
|
}
|
|
497
|
-
lastPartIndex =
|
|
498
|
-
this.parts.push({ type: "node", index });
|
|
497
|
+
lastPartIndex = index2;
|
|
498
|
+
this.parts.push({ type: "node", index: index2 });
|
|
499
499
|
if (node2.nextSibling === null) {
|
|
500
500
|
node2.data = "";
|
|
501
501
|
} else {
|
|
502
502
|
nodesToRemove.push(node2);
|
|
503
|
-
|
|
503
|
+
index2--;
|
|
504
504
|
}
|
|
505
505
|
partIndex++;
|
|
506
506
|
} else {
|
|
@@ -518,8 +518,8 @@ class Template {
|
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
const endsWith = (str, suffix) => {
|
|
521
|
-
const
|
|
522
|
-
return
|
|
521
|
+
const index2 = str.length - suffix.length;
|
|
522
|
+
return index2 >= 0 && str.slice(index2) === suffix;
|
|
523
523
|
};
|
|
524
524
|
const isTemplatePartActive = (part2) => part2.index !== -1;
|
|
525
525
|
const createMarker = () => document.createComment("");
|
|
@@ -10993,6 +10993,8 @@ class CustomGetter {
|
|
|
10993
10993
|
return;
|
|
10994
10994
|
try {
|
|
10995
10995
|
let isUrl = new URL(path);
|
|
10996
|
+
if (!isUrl.protocol.startsWith("http"))
|
|
10997
|
+
throw new Error("Not a valid HTTP url");
|
|
10996
10998
|
if (isUrl) {
|
|
10997
10999
|
let value = this.resource[this.getExpandedPredicate(path)];
|
|
10998
11000
|
return value ? value : void 0;
|
|
@@ -11125,7 +11127,14 @@ class CustomGetter {
|
|
|
11125
11127
|
* @param prop
|
|
11126
11128
|
*/
|
|
11127
11129
|
isFullResource() {
|
|
11128
|
-
|
|
11130
|
+
let propertiesKeys = Object.keys(this.resource).filter((p) => !p.startsWith("@"));
|
|
11131
|
+
if (this.resource["@id"].startsWith("_:b"))
|
|
11132
|
+
return true;
|
|
11133
|
+
if (propertiesKeys.length === 1 && propertiesKeys[0] === this.getExpandedPredicate("permissions"))
|
|
11134
|
+
return false;
|
|
11135
|
+
else if (propertiesKeys.length > 0)
|
|
11136
|
+
return true;
|
|
11137
|
+
return false;
|
|
11129
11138
|
}
|
|
11130
11139
|
/**
|
|
11131
11140
|
* Get permissions of a resource
|
|
@@ -11133,21 +11142,19 @@ class CustomGetter {
|
|
|
11133
11142
|
* @returns
|
|
11134
11143
|
*/
|
|
11135
11144
|
async getPermissions() {
|
|
11136
|
-
let
|
|
11137
|
-
if (!
|
|
11138
|
-
await this.getResource(
|
|
11139
|
-
|
|
11145
|
+
let permissions = this.resource[this.getExpandedPredicate("permissions")];
|
|
11146
|
+
if (!permissions) {
|
|
11147
|
+
await this.getResource(
|
|
11148
|
+
this.resourceId,
|
|
11149
|
+
{ ...this.clientContext, ...this.serverContext },
|
|
11150
|
+
this.parentId,
|
|
11151
|
+
true
|
|
11152
|
+
);
|
|
11153
|
+
permissions = this.resource[this.getExpandedPredicate("permissions")];
|
|
11140
11154
|
}
|
|
11141
|
-
if (!
|
|
11142
|
-
|
|
11143
|
-
|
|
11144
|
-
permissionsIds = [permissionsIds];
|
|
11145
|
-
const permissions = await Promise.all(
|
|
11146
|
-
permissionsIds.map((p) => store.get(p["@id"] + this.parentId)).map((p) => p ? p["mode.@type"] : "")
|
|
11147
|
-
);
|
|
11148
|
-
return permissions ? permissions.map(
|
|
11149
|
-
(perm) => ContextParser$1.expandTerm(perm, this.serverContext, true)
|
|
11150
|
-
) : [];
|
|
11155
|
+
if (!Array.isArray(permissions))
|
|
11156
|
+
permissions = [permissions];
|
|
11157
|
+
return permissions ? permissions : [];
|
|
11151
11158
|
}
|
|
11152
11159
|
/**
|
|
11153
11160
|
* returns compacted @type of resource
|
|
@@ -11357,7 +11364,7 @@ class Store {
|
|
|
11357
11364
|
resolve2(null);
|
|
11358
11365
|
return;
|
|
11359
11366
|
}
|
|
11360
|
-
const serverContext = await myParser.parse([resource["@context"] ||
|
|
11367
|
+
const serverContext = await myParser.parse([resource["@context"] || base_context]);
|
|
11361
11368
|
await this.cacheGraph(resource, clientContext, serverContext, parentId ? parentId : key, serverPagination, serverSearch);
|
|
11362
11369
|
this.loadingList.delete(key);
|
|
11363
11370
|
document.dispatchEvent(new CustomEvent("resourceReady", { detail: { id: key, resource: this.get(key) } }));
|
|
@@ -11738,6 +11745,12 @@ class Store {
|
|
|
11738
11745
|
}
|
|
11739
11746
|
return iri;
|
|
11740
11747
|
}
|
|
11748
|
+
/**
|
|
11749
|
+
* Return the user session information
|
|
11750
|
+
*/
|
|
11751
|
+
async getSession() {
|
|
11752
|
+
return await this.session;
|
|
11753
|
+
}
|
|
11741
11754
|
/**
|
|
11742
11755
|
* Return language of the users
|
|
11743
11756
|
*/
|
|
@@ -11929,29 +11942,29 @@ const ServerPaginationMixin = {
|
|
|
11929
11942
|
return this.currentOffset[resourceId + "#p" + limit];
|
|
11930
11943
|
},
|
|
11931
11944
|
async setCurrentOffset(resourceId, offset) {
|
|
11932
|
-
let
|
|
11933
|
-
this.currentOffset[
|
|
11945
|
+
let index2 = resourceId + "#p" + this.limit;
|
|
11946
|
+
this.currentOffset[index2] = this.offset = offset;
|
|
11934
11947
|
this.pageNumber = Number(this.offset / this.limit);
|
|
11935
11948
|
this.currentPage[resourceId] = this.pageNumber;
|
|
11936
11949
|
await this.fetchData(this.dataSrc);
|
|
11937
11950
|
},
|
|
11938
11951
|
async decreaseCurrentOffset(resourceId) {
|
|
11939
|
-
let
|
|
11940
|
-
this.currentOffset[
|
|
11941
|
-
this.currentPage[
|
|
11952
|
+
let index2 = resourceId + "#p" + this.limit;
|
|
11953
|
+
this.currentOffset[index2] = this.offset = this.offset - this.limit;
|
|
11954
|
+
this.currentPage[index2] = this.offset / this.limit;
|
|
11942
11955
|
this.pageNumber = this.offset / this.limit;
|
|
11943
|
-
this.updateNavButtons(resourceId,
|
|
11956
|
+
this.updateNavButtons(resourceId, index2, -1);
|
|
11944
11957
|
await this.fetchData(this.dataSrc);
|
|
11945
11958
|
},
|
|
11946
11959
|
async increaseCurrentOffset(resourceId) {
|
|
11947
|
-
let
|
|
11948
|
-
this.currentOffset[
|
|
11949
|
-
this.currentPage[
|
|
11950
|
-
this.updateNavButtons(resourceId,
|
|
11960
|
+
let index2 = resourceId + "#p" + this.limit;
|
|
11961
|
+
this.currentOffset[index2] = this.offset = this.offset + this.limit;
|
|
11962
|
+
this.currentPage[index2] = this.offset / this.limit;
|
|
11963
|
+
this.updateNavButtons(resourceId, index2, 1);
|
|
11951
11964
|
await this.fetchData(this.dataSrc);
|
|
11952
11965
|
},
|
|
11953
|
-
async updateNavButtons(resourceId,
|
|
11954
|
-
this.element.querySelector("[data-id='prev']").disabled = this.currentOffset[
|
|
11966
|
+
async updateNavButtons(resourceId, index2, variance) {
|
|
11967
|
+
this.element.querySelector("[data-id='prev']").disabled = this.currentOffset[index2] <= 0;
|
|
11955
11968
|
this.element.querySelector("[data-id='current']").innerText = this.getCurrentServedPage(resourceId, variance);
|
|
11956
11969
|
},
|
|
11957
11970
|
getServerNavElement(div2) {
|
|
@@ -12092,9 +12105,15 @@ const StoreMixin = {
|
|
|
12092
12105
|
if (this.nestedField) {
|
|
12093
12106
|
const resource = await store.getData(value, this.context);
|
|
12094
12107
|
const nestedResource = resource ? await resource[this.nestedField] : null;
|
|
12095
|
-
this.resourceId = nestedResource ? nestedResource["@id"] : null;
|
|
12096
|
-
if (!this.resourceId)
|
|
12097
|
-
|
|
12108
|
+
this.resourceId = nestedResource ? await nestedResource["@id"] : null;
|
|
12109
|
+
if (resource && !this.resourceId && !nestedResource) {
|
|
12110
|
+
console.trace();
|
|
12111
|
+
console.log(nestedResource);
|
|
12112
|
+
for (const property in await resource) {
|
|
12113
|
+
console.log(`${property}: ${await resource[property]}`);
|
|
12114
|
+
}
|
|
12115
|
+
throw `Error: the key "${this.nestedField}" does not exist on the resource at id "${await resource["@id"]}"`;
|
|
12116
|
+
}
|
|
12098
12117
|
}
|
|
12099
12118
|
this.updateNavigateSubscription();
|
|
12100
12119
|
this.subscription = PubSub.subscribe(this.resourceId, this.updateDOM.bind(this));
|
|
@@ -12591,8 +12610,8 @@ const MultipleFormMixin = {
|
|
|
12591
12610
|
this.insertWidget();
|
|
12592
12611
|
this.planRender();
|
|
12593
12612
|
};
|
|
12594
|
-
this.listAttributes["removeItem"] = (
|
|
12595
|
-
this.element.querySelector(`[data-index="${this.name +
|
|
12613
|
+
this.listAttributes["removeItem"] = (index2) => {
|
|
12614
|
+
this.element.querySelector(`[data-index="${this.name + index2}"]`).remove();
|
|
12596
12615
|
this.element.dispatchEvent(new Event("change", { bubbles: true }));
|
|
12597
12616
|
};
|
|
12598
12617
|
},
|
|
@@ -12604,7 +12623,6 @@ const MultipleFormMixin = {
|
|
|
12604
12623
|
}
|
|
12605
12624
|
} catch (ex) {
|
|
12606
12625
|
this.dataSrc = value;
|
|
12607
|
-
console.log("Not an array", ex);
|
|
12608
12626
|
}
|
|
12609
12627
|
}
|
|
12610
12628
|
const nextProcessor = listValueTransformations.shift();
|
|
@@ -13080,9 +13098,9 @@ var root$6 = _root;
|
|
|
13080
13098
|
var Symbol$4 = root$6.Symbol;
|
|
13081
13099
|
var _Symbol = Symbol$4;
|
|
13082
13100
|
function arrayMap$2(array, iteratee) {
|
|
13083
|
-
var
|
|
13084
|
-
while (++
|
|
13085
|
-
result[
|
|
13101
|
+
var index2 = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
13102
|
+
while (++index2 < length) {
|
|
13103
|
+
result[index2] = iteratee(array[index2], index2, array);
|
|
13086
13104
|
}
|
|
13087
13105
|
return result;
|
|
13088
13106
|
}
|
|
@@ -13154,7 +13172,7 @@ function baseToString$2(value) {
|
|
|
13154
13172
|
}
|
|
13155
13173
|
var _baseToString = baseToString$2;
|
|
13156
13174
|
function baseSlice$1(array, start, end) {
|
|
13157
|
-
var
|
|
13175
|
+
var index2 = -1, length = array.length;
|
|
13158
13176
|
if (start < 0) {
|
|
13159
13177
|
start = -start > length ? 0 : length + start;
|
|
13160
13178
|
}
|
|
@@ -13165,8 +13183,8 @@ function baseSlice$1(array, start, end) {
|
|
|
13165
13183
|
length = start > end ? 0 : end - start >>> 0;
|
|
13166
13184
|
start >>>= 0;
|
|
13167
13185
|
var result = Array(length);
|
|
13168
|
-
while (++
|
|
13169
|
-
result[
|
|
13186
|
+
while (++index2 < length) {
|
|
13187
|
+
result[index2] = array[index2 + start];
|
|
13170
13188
|
}
|
|
13171
13189
|
return result;
|
|
13172
13190
|
}
|
|
@@ -13179,10 +13197,10 @@ function castSlice$1(array, start, end) {
|
|
|
13179
13197
|
}
|
|
13180
13198
|
var _castSlice = castSlice$1;
|
|
13181
13199
|
function baseFindIndex$1(array, predicate, fromIndex, fromRight) {
|
|
13182
|
-
var length = array.length,
|
|
13183
|
-
while (fromRight ?
|
|
13184
|
-
if (predicate(array[
|
|
13185
|
-
return
|
|
13200
|
+
var length = array.length, index2 = fromIndex + (fromRight ? 1 : -1);
|
|
13201
|
+
while (fromRight ? index2-- : ++index2 < length) {
|
|
13202
|
+
if (predicate(array[index2], index2, array)) {
|
|
13203
|
+
return index2;
|
|
13186
13204
|
}
|
|
13187
13205
|
}
|
|
13188
13206
|
return -1;
|
|
@@ -13193,10 +13211,10 @@ function baseIsNaN$1(value) {
|
|
|
13193
13211
|
}
|
|
13194
13212
|
var _baseIsNaN = baseIsNaN$1;
|
|
13195
13213
|
function strictIndexOf$1(array, value, fromIndex) {
|
|
13196
|
-
var
|
|
13197
|
-
while (++
|
|
13198
|
-
if (array[
|
|
13199
|
-
return
|
|
13214
|
+
var index2 = fromIndex - 1, length = array.length;
|
|
13215
|
+
while (++index2 < length) {
|
|
13216
|
+
if (array[index2] === value) {
|
|
13217
|
+
return index2;
|
|
13200
13218
|
}
|
|
13201
13219
|
}
|
|
13202
13220
|
return -1;
|
|
@@ -13209,10 +13227,10 @@ function baseIndexOf$2(array, value, fromIndex) {
|
|
|
13209
13227
|
var _baseIndexOf = baseIndexOf$2;
|
|
13210
13228
|
var baseIndexOf$1 = _baseIndexOf;
|
|
13211
13229
|
function charsEndIndex$1(strSymbols, chrSymbols) {
|
|
13212
|
-
var
|
|
13213
|
-
while (
|
|
13230
|
+
var index2 = strSymbols.length;
|
|
13231
|
+
while (index2-- && baseIndexOf$1(chrSymbols, strSymbols[index2], 0) > -1) {
|
|
13214
13232
|
}
|
|
13215
|
-
return
|
|
13233
|
+
return index2;
|
|
13216
13234
|
}
|
|
13217
13235
|
var _charsEndIndex = charsEndIndex$1;
|
|
13218
13236
|
function asciiToArray$1(string) {
|
|
@@ -13246,10 +13264,10 @@ function toString$1(value) {
|
|
|
13246
13264
|
var toString_1 = toString$1;
|
|
13247
13265
|
var reWhitespace$1 = /\s/;
|
|
13248
13266
|
function trimmedEndIndex$1(string) {
|
|
13249
|
-
var
|
|
13250
|
-
while (
|
|
13267
|
+
var index2 = string.length;
|
|
13268
|
+
while (index2-- && reWhitespace$1.test(string.charAt(index2))) {
|
|
13251
13269
|
}
|
|
13252
|
-
return
|
|
13270
|
+
return index2;
|
|
13253
13271
|
}
|
|
13254
13272
|
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
13255
13273
|
var baseToString = _baseToString, castSlice = _castSlice, charsEndIndex = _charsEndIndex, stringToArray = _stringToArray, toString = toString_1, trimmedEndIndex = _trimmedEndIndex;
|
|
@@ -13294,14 +13312,14 @@ var nativeMax = Math.max;
|
|
|
13294
13312
|
function overRest$1(func, start, transform) {
|
|
13295
13313
|
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
13296
13314
|
return function() {
|
|
13297
|
-
var args = arguments,
|
|
13298
|
-
while (++
|
|
13299
|
-
array[
|
|
13315
|
+
var args = arguments, index2 = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
|
13316
|
+
while (++index2 < length) {
|
|
13317
|
+
array[index2] = args[start + index2];
|
|
13300
13318
|
}
|
|
13301
|
-
|
|
13319
|
+
index2 = -1;
|
|
13302
13320
|
var otherArgs = Array(start + 1);
|
|
13303
|
-
while (++
|
|
13304
|
-
otherArgs[
|
|
13321
|
+
while (++index2 < start) {
|
|
13322
|
+
otherArgs[index2] = args[index2];
|
|
13305
13323
|
}
|
|
13306
13324
|
otherArgs[start] = transform(array);
|
|
13307
13325
|
return apply(func, this, otherArgs);
|
|
@@ -13426,10 +13444,10 @@ function baseRest$1(func, start) {
|
|
|
13426
13444
|
}
|
|
13427
13445
|
var _baseRest = baseRest$1;
|
|
13428
13446
|
function baseIndexOfWith$1(array, value, fromIndex, comparator) {
|
|
13429
|
-
var
|
|
13430
|
-
while (++
|
|
13431
|
-
if (comparator(array[
|
|
13432
|
-
return
|
|
13447
|
+
var index2 = fromIndex - 1, length = array.length;
|
|
13448
|
+
while (++index2 < length) {
|
|
13449
|
+
if (comparator(array[index2], value)) {
|
|
13450
|
+
return index2;
|
|
13433
13451
|
}
|
|
13434
13452
|
}
|
|
13435
13453
|
return -1;
|
|
@@ -13442,10 +13460,10 @@ function baseUnary$2(func) {
|
|
|
13442
13460
|
}
|
|
13443
13461
|
var _baseUnary = baseUnary$2;
|
|
13444
13462
|
function copyArray$1(source, array) {
|
|
13445
|
-
var
|
|
13463
|
+
var index2 = -1, length = source.length;
|
|
13446
13464
|
array || (array = Array(length));
|
|
13447
|
-
while (++
|
|
13448
|
-
array[
|
|
13465
|
+
while (++index2 < length) {
|
|
13466
|
+
array[index2] = source[index2];
|
|
13449
13467
|
}
|
|
13450
13468
|
return array;
|
|
13451
13469
|
}
|
|
@@ -13454,18 +13472,18 @@ var arrayMap = _arrayMap, baseIndexOf = _baseIndexOf, baseIndexOfWith = _baseInd
|
|
|
13454
13472
|
var arrayProto = Array.prototype;
|
|
13455
13473
|
var splice = arrayProto.splice;
|
|
13456
13474
|
function basePullAll$1(array, values, iteratee, comparator) {
|
|
13457
|
-
var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf,
|
|
13475
|
+
var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index2 = -1, length = values.length, seen = array;
|
|
13458
13476
|
if (array === values) {
|
|
13459
13477
|
values = copyArray(values);
|
|
13460
13478
|
}
|
|
13461
13479
|
if (iteratee) {
|
|
13462
|
-
|
|
13480
|
+
seen = arrayMap(array, baseUnary$1(iteratee));
|
|
13463
13481
|
}
|
|
13464
|
-
while (++
|
|
13465
|
-
var fromIndex = 0, value = values[
|
|
13466
|
-
while ((fromIndex = indexOf2(
|
|
13467
|
-
if (
|
|
13468
|
-
splice.call(
|
|
13482
|
+
while (++index2 < length) {
|
|
13483
|
+
var fromIndex = 0, value = values[index2], computed = iteratee ? iteratee(value) : value;
|
|
13484
|
+
while ((fromIndex = indexOf2(seen, computed, fromIndex, comparator)) > -1) {
|
|
13485
|
+
if (seen !== array) {
|
|
13486
|
+
splice.call(seen, fromIndex, 1);
|
|
13469
13487
|
}
|
|
13470
13488
|
splice.call(array, fromIndex, 1);
|
|
13471
13489
|
}
|
|
@@ -13662,11 +13680,11 @@ var fromDelta_converters$1 = {
|
|
|
13662
13680
|
function applyInlineAttributes(attrs2, next2) {
|
|
13663
13681
|
var first = [], then = [];
|
|
13664
13682
|
attrs2 = attrs2 || {};
|
|
13665
|
-
var tag2 = el2,
|
|
13683
|
+
var tag2 = el2, seen = {};
|
|
13666
13684
|
while (tag2._format) {
|
|
13667
|
-
|
|
13685
|
+
seen[tag2._format] = true;
|
|
13668
13686
|
if (!attrs2[tag2._format]) {
|
|
13669
|
-
for (var k2 in
|
|
13687
|
+
for (var k2 in seen) {
|
|
13670
13688
|
delete activeInline[k2];
|
|
13671
13689
|
}
|
|
13672
13690
|
el2 = tag2.parent();
|
|
@@ -14011,10 +14029,10 @@ const formTemplates = {
|
|
|
14011
14029
|
},
|
|
14012
14030
|
multiple: {
|
|
14013
14031
|
template: (_value, attributes) => html$1`
|
|
14014
|
-
${(attributes.children || []).map((child,
|
|
14015
|
-
<div data-index=${attributes.name +
|
|
14032
|
+
${(attributes.children || []).map((child, index2) => html$1`
|
|
14033
|
+
<div data-index=${attributes.name + index2}>
|
|
14016
14034
|
${child}
|
|
14017
|
-
<button type="button" class=${ifDefined(attributes.removeClass)} @click=${() => attributes.removeItem(
|
|
14035
|
+
<button type="button" class=${ifDefined(attributes.removeClass)} @click=${() => attributes.removeItem(index2)}>${attributes.removeLabel}</button>
|
|
14018
14036
|
</div>
|
|
14019
14037
|
`)}
|
|
14020
14038
|
<button type="button" class=${ifDefined(attributes.addClass)} @click=${attributes.addItem}>${attributes.addLabel}</button>
|
|
@@ -14204,6 +14222,14 @@ const groupTemplates = {
|
|
|
14204
14222
|
dependencies: [SetMixin]
|
|
14205
14223
|
}
|
|
14206
14224
|
};
|
|
14225
|
+
const index$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14226
|
+
__proto__: null,
|
|
14227
|
+
defaultTemplates,
|
|
14228
|
+
displayTemplates,
|
|
14229
|
+
formTemplates,
|
|
14230
|
+
groupTemplates,
|
|
14231
|
+
setTemplates
|
|
14232
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
14207
14233
|
const DateMixin = {
|
|
14208
14234
|
name: "date-mixin",
|
|
14209
14235
|
created() {
|
|
@@ -19475,22 +19501,22 @@ Ruler$3.prototype.__compile__ = function() {
|
|
|
19475
19501
|
});
|
|
19476
19502
|
};
|
|
19477
19503
|
Ruler$3.prototype.at = function(name, fn, options) {
|
|
19478
|
-
var
|
|
19504
|
+
var index2 = this.__find__(name);
|
|
19479
19505
|
var opt = options || {};
|
|
19480
|
-
if (
|
|
19506
|
+
if (index2 === -1) {
|
|
19481
19507
|
throw new Error("Parser rule not found: " + name);
|
|
19482
19508
|
}
|
|
19483
|
-
this.__rules__[
|
|
19484
|
-
this.__rules__[
|
|
19509
|
+
this.__rules__[index2].fn = fn;
|
|
19510
|
+
this.__rules__[index2].alt = opt.alt || [];
|
|
19485
19511
|
this.__cache__ = null;
|
|
19486
19512
|
};
|
|
19487
19513
|
Ruler$3.prototype.before = function(beforeName, ruleName, fn, options) {
|
|
19488
|
-
var
|
|
19514
|
+
var index2 = this.__find__(beforeName);
|
|
19489
19515
|
var opt = options || {};
|
|
19490
|
-
if (
|
|
19516
|
+
if (index2 === -1) {
|
|
19491
19517
|
throw new Error("Parser rule not found: " + beforeName);
|
|
19492
19518
|
}
|
|
19493
|
-
this.__rules__.splice(
|
|
19519
|
+
this.__rules__.splice(index2, 0, {
|
|
19494
19520
|
name: ruleName,
|
|
19495
19521
|
enabled: true,
|
|
19496
19522
|
fn,
|
|
@@ -19499,12 +19525,12 @@ Ruler$3.prototype.before = function(beforeName, ruleName, fn, options) {
|
|
|
19499
19525
|
this.__cache__ = null;
|
|
19500
19526
|
};
|
|
19501
19527
|
Ruler$3.prototype.after = function(afterName, ruleName, fn, options) {
|
|
19502
|
-
var
|
|
19528
|
+
var index2 = this.__find__(afterName);
|
|
19503
19529
|
var opt = options || {};
|
|
19504
|
-
if (
|
|
19530
|
+
if (index2 === -1) {
|
|
19505
19531
|
throw new Error("Parser rule not found: " + afterName);
|
|
19506
19532
|
}
|
|
19507
|
-
this.__rules__.splice(
|
|
19533
|
+
this.__rules__.splice(index2 + 1, 0, {
|
|
19508
19534
|
name: ruleName,
|
|
19509
19535
|
enabled: true,
|
|
19510
19536
|
fn,
|
|
@@ -19765,8 +19791,8 @@ var isMdAsciiPunct$1 = utils$1.isMdAsciiPunct;
|
|
|
19765
19791
|
var QUOTE_TEST_RE = /['"]/;
|
|
19766
19792
|
var QUOTE_RE = /['"]/g;
|
|
19767
19793
|
var APOSTROPHE = "’";
|
|
19768
|
-
function replaceAt(str,
|
|
19769
|
-
return str.substr(0,
|
|
19794
|
+
function replaceAt(str, index2, ch) {
|
|
19795
|
+
return str.substr(0, index2) + ch + str.substr(index2 + 1);
|
|
19770
19796
|
}
|
|
19771
19797
|
function process_inlines(tokens, state) {
|
|
19772
19798
|
var i, token2, text3, t, pos, max, thisLevel, item2, lastChar, nextChar, isLastPunctChar, isNextPunctChar, isLastWhiteSpace, isNextWhiteSpace, canOpen, canClose, j, isSingle, stack, openQuote, closeQuote;
|
|
@@ -22735,13 +22761,13 @@ const decode$3 = function(input) {
|
|
|
22735
22761
|
}
|
|
22736
22762
|
output.push(input.charCodeAt(j));
|
|
22737
22763
|
}
|
|
22738
|
-
for (let
|
|
22764
|
+
for (let index2 = basic > 0 ? basic + 1 : 0; index2 < inputLength; ) {
|
|
22739
22765
|
const oldi = i;
|
|
22740
22766
|
for (let w = 1, k = base; ; k += base) {
|
|
22741
|
-
if (
|
|
22767
|
+
if (index2 >= inputLength) {
|
|
22742
22768
|
error("invalid-input");
|
|
22743
22769
|
}
|
|
22744
|
-
const digit = basicToDigit(input.charCodeAt(
|
|
22770
|
+
const digit = basicToDigit(input.charCodeAt(index2++));
|
|
22745
22771
|
if (digit >= base) {
|
|
22746
22772
|
error("invalid-input");
|
|
22747
22773
|
}
|
|
@@ -24002,7 +24028,7 @@ var UrlMatch = (
|
|
|
24002
24028
|
);
|
|
24003
24029
|
var Matcher = (
|
|
24004
24030
|
/** @class */
|
|
24005
|
-
function() {
|
|
24031
|
+
/* @__PURE__ */ function() {
|
|
24006
24032
|
function Matcher2(cfg) {
|
|
24007
24033
|
this.__jsduckDummyDocProp = null;
|
|
24008
24034
|
this.tagBuilder = cfg.tagBuilder;
|
|
@@ -24222,7 +24248,7 @@ var EmailMatcher = (
|
|
|
24222
24248
|
);
|
|
24223
24249
|
var CurrentEmailMatch = (
|
|
24224
24250
|
/** @class */
|
|
24225
|
-
function() {
|
|
24251
|
+
/* @__PURE__ */ function() {
|
|
24226
24252
|
function CurrentEmailMatch2(cfg) {
|
|
24227
24253
|
if (cfg === void 0) {
|
|
24228
24254
|
cfg = {};
|
|
@@ -24949,7 +24975,7 @@ function parseHtml(html2, _a) {
|
|
|
24949
24975
|
}
|
|
24950
24976
|
var CurrentTag = (
|
|
24951
24977
|
/** @class */
|
|
24952
|
-
function() {
|
|
24978
|
+
/* @__PURE__ */ function() {
|
|
24953
24979
|
function CurrentTag2(cfg) {
|
|
24954
24980
|
if (cfg === void 0) {
|
|
24955
24981
|
cfg = {};
|
|
@@ -25343,6 +25369,13 @@ const templateAdditionDirectory = {
|
|
|
25343
25369
|
labellast: LabelLastMixin,
|
|
25344
25370
|
addable: AddableMixin
|
|
25345
25371
|
};
|
|
25372
|
+
const index$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25373
|
+
__proto__: null,
|
|
25374
|
+
AddableMixin,
|
|
25375
|
+
LabelLastMixin,
|
|
25376
|
+
LabelMixin,
|
|
25377
|
+
templateAdditionDirectory
|
|
25378
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
25346
25379
|
const MultipleMixin = {
|
|
25347
25380
|
name: "multiple-mixin",
|
|
25348
25381
|
attributes: {
|
|
@@ -25436,57 +25469,16 @@ const attributeDirectory = {
|
|
|
25436
25469
|
bool: BooleanMixin,
|
|
25437
25470
|
num: NumberMixin
|
|
25438
25471
|
};
|
|
25439
|
-
const
|
|
25440
|
-
|
|
25441
|
-
|
|
25442
|
-
|
|
25443
|
-
|
|
25444
|
-
|
|
25445
|
-
|
|
25446
|
-
|
|
25447
|
-
|
|
25448
|
-
|
|
25449
|
-
return Promise.all(deps.map((dep) => {
|
|
25450
|
-
dep = assetsURL(dep, importerUrl);
|
|
25451
|
-
if (dep in seen)
|
|
25452
|
-
return;
|
|
25453
|
-
seen[dep] = true;
|
|
25454
|
-
const isCss = dep.endsWith(".css");
|
|
25455
|
-
const cssSelector = isCss ? '[rel="stylesheet"]' : "";
|
|
25456
|
-
const isBaseRelative = !!importerUrl;
|
|
25457
|
-
if (isBaseRelative) {
|
|
25458
|
-
for (let i = links.length - 1; i >= 0; i--) {
|
|
25459
|
-
const link4 = links[i];
|
|
25460
|
-
if (link4.href === dep && (!isCss || link4.rel === "stylesheet")) {
|
|
25461
|
-
return;
|
|
25462
|
-
}
|
|
25463
|
-
}
|
|
25464
|
-
} else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) {
|
|
25465
|
-
return;
|
|
25466
|
-
}
|
|
25467
|
-
const link3 = document.createElement("link");
|
|
25468
|
-
link3.rel = isCss ? "stylesheet" : scriptRel;
|
|
25469
|
-
if (!isCss) {
|
|
25470
|
-
link3.as = "script";
|
|
25471
|
-
link3.crossOrigin = "";
|
|
25472
|
-
}
|
|
25473
|
-
link3.href = dep;
|
|
25474
|
-
document.head.appendChild(link3);
|
|
25475
|
-
if (isCss) {
|
|
25476
|
-
return new Promise((res, rej) => {
|
|
25477
|
-
link3.addEventListener("load", res);
|
|
25478
|
-
link3.addEventListener("error", () => rej(new Error(`Unable to preload CSS for ${dep}`)));
|
|
25479
|
-
});
|
|
25480
|
-
}
|
|
25481
|
-
})).then(() => baseModule()).catch((err) => {
|
|
25482
|
-
const e = new Event("vite:preloadError", { cancelable: true });
|
|
25483
|
-
e.payload = err;
|
|
25484
|
-
window.dispatchEvent(e);
|
|
25485
|
-
if (!e.defaultPrevented) {
|
|
25486
|
-
throw err;
|
|
25487
|
-
}
|
|
25488
|
-
});
|
|
25489
|
-
};
|
|
25472
|
+
const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25473
|
+
__proto__: null,
|
|
25474
|
+
ActionMixin,
|
|
25475
|
+
BlankMixin,
|
|
25476
|
+
MailtoMixin,
|
|
25477
|
+
MultipleMixin,
|
|
25478
|
+
PlaceholderMixin,
|
|
25479
|
+
TelMixin,
|
|
25480
|
+
attributeDirectory
|
|
25481
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
25490
25482
|
var exports = {};
|
|
25491
25483
|
!function(e, t) {
|
|
25492
25484
|
"object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.SlimSelect = t() : e.SlimSelect = t();
|
|
@@ -26111,8 +26103,8 @@ const TranslationMixin = {
|
|
|
26111
26103
|
async getTranslationModule(langCode) {
|
|
26112
26104
|
const translationsModules = {
|
|
26113
26105
|
// define modules in a static way, snowpack does not support dynamic strings here
|
|
26114
|
-
en: () =>
|
|
26115
|
-
fr: () =>
|
|
26106
|
+
en: () => import("./en-7f7JgW9b.js"),
|
|
26107
|
+
fr: () => import("./fr-r9OPSsZY.js")
|
|
26116
26108
|
};
|
|
26117
26109
|
if (!translationsModules[langCode]) {
|
|
26118
26110
|
console.warn(`${langCode}.json translation file may not exist, English is setted by default`);
|
|
@@ -26171,7 +26163,7 @@ const AutocompletionMixin = {
|
|
|
26171
26163
|
mutationObserver: null
|
|
26172
26164
|
},
|
|
26173
26165
|
created() {
|
|
26174
|
-
|
|
26166
|
+
importInlineCSS("slimselect", () => import("./slimselect-AzdIsdl3.js"));
|
|
26175
26167
|
this.slimSelect = null;
|
|
26176
26168
|
this.addToAttributes(true, "autocomplete");
|
|
26177
26169
|
this.listCallbacks.push(this.addCallback.bind(this));
|
|
@@ -26540,17 +26532,17 @@ var quill = { exports: {} };
|
|
|
26540
26532
|
return this.push(newOp);
|
|
26541
26533
|
};
|
|
26542
26534
|
Delta2.prototype.push = function(newOp) {
|
|
26543
|
-
var
|
|
26544
|
-
var lastOp = this.ops[
|
|
26535
|
+
var index2 = this.ops.length;
|
|
26536
|
+
var lastOp = this.ops[index2 - 1];
|
|
26545
26537
|
newOp = extend(true, {}, newOp);
|
|
26546
26538
|
if (typeof lastOp === "object") {
|
|
26547
26539
|
if (typeof newOp["delete"] === "number" && typeof lastOp["delete"] === "number") {
|
|
26548
|
-
this.ops[
|
|
26540
|
+
this.ops[index2 - 1] = { "delete": lastOp["delete"] + newOp["delete"] };
|
|
26549
26541
|
return this;
|
|
26550
26542
|
}
|
|
26551
26543
|
if (typeof lastOp["delete"] === "number" && newOp.insert != null) {
|
|
26552
|
-
|
|
26553
|
-
lastOp = this.ops[
|
|
26544
|
+
index2 -= 1;
|
|
26545
|
+
lastOp = this.ops[index2 - 1];
|
|
26554
26546
|
if (typeof lastOp !== "object") {
|
|
26555
26547
|
this.ops.unshift(newOp);
|
|
26556
26548
|
return this;
|
|
@@ -26558,22 +26550,22 @@ var quill = { exports: {} };
|
|
|
26558
26550
|
}
|
|
26559
26551
|
if (equal(newOp.attributes, lastOp.attributes)) {
|
|
26560
26552
|
if (typeof newOp.insert === "string" && typeof lastOp.insert === "string") {
|
|
26561
|
-
this.ops[
|
|
26553
|
+
this.ops[index2 - 1] = { insert: lastOp.insert + newOp.insert };
|
|
26562
26554
|
if (typeof newOp.attributes === "object")
|
|
26563
|
-
this.ops[
|
|
26555
|
+
this.ops[index2 - 1].attributes = newOp.attributes;
|
|
26564
26556
|
return this;
|
|
26565
26557
|
} else if (typeof newOp.retain === "number" && typeof lastOp.retain === "number") {
|
|
26566
|
-
this.ops[
|
|
26558
|
+
this.ops[index2 - 1] = { retain: lastOp.retain + newOp.retain };
|
|
26567
26559
|
if (typeof newOp.attributes === "object")
|
|
26568
|
-
this.ops[
|
|
26560
|
+
this.ops[index2 - 1].attributes = newOp.attributes;
|
|
26569
26561
|
return this;
|
|
26570
26562
|
}
|
|
26571
26563
|
}
|
|
26572
26564
|
}
|
|
26573
|
-
if (
|
|
26565
|
+
if (index2 === this.ops.length) {
|
|
26574
26566
|
this.ops.push(newOp);
|
|
26575
26567
|
} else {
|
|
26576
|
-
this.ops.splice(
|
|
26568
|
+
this.ops.splice(index2, 0, newOp);
|
|
26577
26569
|
}
|
|
26578
26570
|
return this;
|
|
26579
26571
|
};
|
|
@@ -26625,16 +26617,16 @@ var quill = { exports: {} };
|
|
|
26625
26617
|
end = Infinity;
|
|
26626
26618
|
var ops = [];
|
|
26627
26619
|
var iter = op.iterator(this.ops);
|
|
26628
|
-
var
|
|
26629
|
-
while (
|
|
26620
|
+
var index2 = 0;
|
|
26621
|
+
while (index2 < end && iter.hasNext()) {
|
|
26630
26622
|
var nextOp;
|
|
26631
|
-
if (
|
|
26632
|
-
nextOp = iter.next(start -
|
|
26623
|
+
if (index2 < start) {
|
|
26624
|
+
nextOp = iter.next(start - index2);
|
|
26633
26625
|
} else {
|
|
26634
|
-
nextOp = iter.next(end -
|
|
26626
|
+
nextOp = iter.next(end - index2);
|
|
26635
26627
|
ops.push(nextOp);
|
|
26636
26628
|
}
|
|
26637
|
-
|
|
26629
|
+
index2 += op.length(nextOp);
|
|
26638
26630
|
}
|
|
26639
26631
|
return new Delta2(ops);
|
|
26640
26632
|
};
|
|
@@ -26693,7 +26685,7 @@ var quill = { exports: {} };
|
|
|
26693
26685
|
}
|
|
26694
26686
|
return delta2;
|
|
26695
26687
|
};
|
|
26696
|
-
Delta2.prototype.diff = function(other,
|
|
26688
|
+
Delta2.prototype.diff = function(other, index2) {
|
|
26697
26689
|
if (this.ops === other.ops) {
|
|
26698
26690
|
return new Delta2();
|
|
26699
26691
|
}
|
|
@@ -26707,7 +26699,7 @@ var quill = { exports: {} };
|
|
|
26707
26699
|
}).join("");
|
|
26708
26700
|
});
|
|
26709
26701
|
var delta2 = new Delta2();
|
|
26710
|
-
var diffResult = diff(strings[0], strings[1],
|
|
26702
|
+
var diffResult = diff(strings[0], strings[1], index2);
|
|
26711
26703
|
var thisIter = op.iterator(this.ops);
|
|
26712
26704
|
var otherIter = op.iterator(other.ops);
|
|
26713
26705
|
diffResult.forEach(function(component) {
|
|
@@ -26750,11 +26742,11 @@ var quill = { exports: {} };
|
|
|
26750
26742
|
return;
|
|
26751
26743
|
var thisOp = iter.peek();
|
|
26752
26744
|
var start = op.length(thisOp) - iter.peekLength();
|
|
26753
|
-
var
|
|
26754
|
-
if (
|
|
26745
|
+
var index2 = typeof thisOp.insert === "string" ? thisOp.insert.indexOf(newline3, start) - start : -1;
|
|
26746
|
+
if (index2 < 0) {
|
|
26755
26747
|
line.push(iter.next());
|
|
26756
|
-
} else if (
|
|
26757
|
-
line.push(iter.next(
|
|
26748
|
+
} else if (index2 > 0) {
|
|
26749
|
+
line.push(iter.next(index2));
|
|
26758
26750
|
} else {
|
|
26759
26751
|
if (predicate(line, iter.next(1).attributes || {}, i) === false) {
|
|
26760
26752
|
return;
|
|
@@ -26795,23 +26787,23 @@ var quill = { exports: {} };
|
|
|
26795
26787
|
}
|
|
26796
26788
|
return delta2.chop();
|
|
26797
26789
|
};
|
|
26798
|
-
Delta2.prototype.transformPosition = function(
|
|
26790
|
+
Delta2.prototype.transformPosition = function(index2, priority) {
|
|
26799
26791
|
priority = !!priority;
|
|
26800
26792
|
var thisIter = op.iterator(this.ops);
|
|
26801
26793
|
var offset = 0;
|
|
26802
|
-
while (thisIter.hasNext() && offset <=
|
|
26794
|
+
while (thisIter.hasNext() && offset <= index2) {
|
|
26803
26795
|
var length = thisIter.peekLength();
|
|
26804
26796
|
var nextType = thisIter.peekType();
|
|
26805
26797
|
thisIter.next();
|
|
26806
26798
|
if (nextType === "delete") {
|
|
26807
|
-
|
|
26799
|
+
index2 -= Math.min(length, index2 - offset);
|
|
26808
26800
|
continue;
|
|
26809
|
-
} else if (nextType === "insert" && (offset <
|
|
26810
|
-
|
|
26801
|
+
} else if (nextType === "insert" && (offset < index2 || !priority)) {
|
|
26802
|
+
index2 += length;
|
|
26811
26803
|
}
|
|
26812
26804
|
offset += length;
|
|
26813
26805
|
}
|
|
26814
|
-
return
|
|
26806
|
+
return index2;
|
|
26815
26807
|
};
|
|
26816
26808
|
module3.exports = Delta2;
|
|
26817
26809
|
},
|
|
@@ -26910,7 +26902,7 @@ var quill = { exports: {} };
|
|
|
26910
26902
|
value: true
|
|
26911
26903
|
});
|
|
26912
26904
|
exports3.default = exports3.BlockEmbed = exports3.bubbleFormats = void 0;
|
|
26913
|
-
var _createClass = function() {
|
|
26905
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
26914
26906
|
function defineProperties(target2, props) {
|
|
26915
26907
|
for (var i = 0; i < props.length; i++) {
|
|
26916
26908
|
var descriptor = props[i];
|
|
@@ -27012,18 +27004,18 @@ var quill = { exports: {} };
|
|
|
27012
27004
|
}
|
|
27013
27005
|
}, {
|
|
27014
27006
|
key: "formatAt",
|
|
27015
|
-
value: function formatAt(
|
|
27007
|
+
value: function formatAt(index2, length, name, value) {
|
|
27016
27008
|
this.format(name, value);
|
|
27017
27009
|
}
|
|
27018
27010
|
}, {
|
|
27019
27011
|
key: "insertAt",
|
|
27020
|
-
value: function insertAt(
|
|
27012
|
+
value: function insertAt(index2, value, def) {
|
|
27021
27013
|
if (typeof value === "string" && value.endsWith("\n")) {
|
|
27022
27014
|
var block3 = _parchment2.default.create(Block.blotName);
|
|
27023
|
-
this.parent.insertBefore(block3,
|
|
27015
|
+
this.parent.insertBefore(block3, index2 === 0 ? this : this.next);
|
|
27024
27016
|
block3.insertAt(0, value.slice(0, -1));
|
|
27025
27017
|
} else {
|
|
27026
|
-
_get2(BlockEmbed2.prototype.__proto__ || Object.getPrototypeOf(BlockEmbed2.prototype), "insertAt", this).call(this,
|
|
27018
|
+
_get2(BlockEmbed2.prototype.__proto__ || Object.getPrototypeOf(BlockEmbed2.prototype), "insertAt", this).call(this, index2, value, def);
|
|
27027
27019
|
}
|
|
27028
27020
|
}
|
|
27029
27021
|
}]);
|
|
@@ -27054,47 +27046,47 @@ var quill = { exports: {} };
|
|
|
27054
27046
|
}
|
|
27055
27047
|
}, {
|
|
27056
27048
|
key: "deleteAt",
|
|
27057
|
-
value: function deleteAt(
|
|
27058
|
-
_get2(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "deleteAt", this).call(this,
|
|
27049
|
+
value: function deleteAt(index2, length) {
|
|
27050
|
+
_get2(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "deleteAt", this).call(this, index2, length);
|
|
27059
27051
|
this.cache = {};
|
|
27060
27052
|
}
|
|
27061
27053
|
}, {
|
|
27062
27054
|
key: "formatAt",
|
|
27063
|
-
value: function formatAt(
|
|
27055
|
+
value: function formatAt(index2, length, name, value) {
|
|
27064
27056
|
if (length <= 0)
|
|
27065
27057
|
return;
|
|
27066
27058
|
if (_parchment2.default.query(name, _parchment2.default.Scope.BLOCK)) {
|
|
27067
|
-
if (
|
|
27059
|
+
if (index2 + length === this.length()) {
|
|
27068
27060
|
this.format(name, value);
|
|
27069
27061
|
}
|
|
27070
27062
|
} else {
|
|
27071
|
-
_get2(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "formatAt", this).call(this,
|
|
27063
|
+
_get2(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "formatAt", this).call(this, index2, Math.min(length, this.length() - index2 - 1), name, value);
|
|
27072
27064
|
}
|
|
27073
27065
|
this.cache = {};
|
|
27074
27066
|
}
|
|
27075
27067
|
}, {
|
|
27076
27068
|
key: "insertAt",
|
|
27077
|
-
value: function insertAt(
|
|
27069
|
+
value: function insertAt(index2, value, def) {
|
|
27078
27070
|
if (def != null)
|
|
27079
|
-
return _get2(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "insertAt", this).call(this,
|
|
27071
|
+
return _get2(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "insertAt", this).call(this, index2, value, def);
|
|
27080
27072
|
if (value.length === 0)
|
|
27081
27073
|
return;
|
|
27082
27074
|
var lines = value.split("\n");
|
|
27083
27075
|
var text3 = lines.shift();
|
|
27084
27076
|
if (text3.length > 0) {
|
|
27085
|
-
if (
|
|
27086
|
-
_get2(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "insertAt", this).call(this, Math.min(
|
|
27077
|
+
if (index2 < this.length() - 1 || this.children.tail == null) {
|
|
27078
|
+
_get2(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "insertAt", this).call(this, Math.min(index2, this.length() - 1), text3);
|
|
27087
27079
|
} else {
|
|
27088
27080
|
this.children.tail.insertAt(this.children.tail.length(), text3);
|
|
27089
27081
|
}
|
|
27090
27082
|
this.cache = {};
|
|
27091
27083
|
}
|
|
27092
27084
|
var block3 = this;
|
|
27093
|
-
lines.reduce(function(
|
|
27094
|
-
block3 = block3.split(
|
|
27085
|
+
lines.reduce(function(index3, line) {
|
|
27086
|
+
block3 = block3.split(index3, true);
|
|
27095
27087
|
block3.insertAt(0, line);
|
|
27096
27088
|
return line.length;
|
|
27097
|
-
},
|
|
27089
|
+
}, index2 + text3.length);
|
|
27098
27090
|
}
|
|
27099
27091
|
}, {
|
|
27100
27092
|
key: "insertBefore",
|
|
@@ -27128,8 +27120,8 @@ var quill = { exports: {} };
|
|
|
27128
27120
|
}
|
|
27129
27121
|
}, {
|
|
27130
27122
|
key: "path",
|
|
27131
|
-
value: function path(
|
|
27132
|
-
return _get2(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "path", this).call(this,
|
|
27123
|
+
value: function path(index2) {
|
|
27124
|
+
return _get2(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "path", this).call(this, index2, true);
|
|
27133
27125
|
}
|
|
27134
27126
|
}, {
|
|
27135
27127
|
key: "removeChild",
|
|
@@ -27139,11 +27131,11 @@ var quill = { exports: {} };
|
|
|
27139
27131
|
}
|
|
27140
27132
|
}, {
|
|
27141
27133
|
key: "split",
|
|
27142
|
-
value: function split(
|
|
27134
|
+
value: function split(index2) {
|
|
27143
27135
|
var force = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
27144
|
-
if (force && (
|
|
27136
|
+
if (force && (index2 === 0 || index2 >= this.length() - NEWLINE_LENGTH)) {
|
|
27145
27137
|
var clone = this.clone();
|
|
27146
|
-
if (
|
|
27138
|
+
if (index2 === 0) {
|
|
27147
27139
|
this.parent.insertBefore(clone, this);
|
|
27148
27140
|
return this;
|
|
27149
27141
|
} else {
|
|
@@ -27151,7 +27143,7 @@ var quill = { exports: {} };
|
|
|
27151
27143
|
return clone;
|
|
27152
27144
|
}
|
|
27153
27145
|
} else {
|
|
27154
|
-
var next2 = _get2(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "split", this).call(this,
|
|
27146
|
+
var next2 = _get2(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "split", this).call(this, index2, force);
|
|
27155
27147
|
this.cache = {};
|
|
27156
27148
|
return next2;
|
|
27157
27149
|
}
|
|
@@ -27191,7 +27183,7 @@ var quill = { exports: {} };
|
|
|
27191
27183
|
} : function(obj) {
|
|
27192
27184
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
27193
27185
|
};
|
|
27194
|
-
var _slicedToArray = function() {
|
|
27186
|
+
var _slicedToArray = /* @__PURE__ */ function() {
|
|
27195
27187
|
function sliceIterator(arr, i) {
|
|
27196
27188
|
var _arr = [];
|
|
27197
27189
|
var _n = true;
|
|
@@ -27227,7 +27219,7 @@ var quill = { exports: {} };
|
|
|
27227
27219
|
}
|
|
27228
27220
|
};
|
|
27229
27221
|
}();
|
|
27230
|
-
var _createClass = function() {
|
|
27222
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
27231
27223
|
function defineProperties(target2, props) {
|
|
27232
27224
|
for (var i = 0; i < props.length; i++) {
|
|
27233
27225
|
var descriptor = props[i];
|
|
@@ -27370,9 +27362,9 @@ var quill = { exports: {} };
|
|
|
27370
27362
|
});
|
|
27371
27363
|
this.emitter.on(_emitter4.default.events.SCROLL_UPDATE, function(source, mutations) {
|
|
27372
27364
|
var range2 = _this2.selection.lastRange;
|
|
27373
|
-
var
|
|
27365
|
+
var index2 = range2 && range2.length === 0 ? range2.index : void 0;
|
|
27374
27366
|
modify.call(_this2, function() {
|
|
27375
|
-
return _this2.editor.update(null, mutations,
|
|
27367
|
+
return _this2.editor.update(null, mutations, index2);
|
|
27376
27368
|
}, source);
|
|
27377
27369
|
});
|
|
27378
27370
|
var contents = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + html2 + "<p><br></p></div>");
|
|
@@ -27404,16 +27396,16 @@ var quill = { exports: {} };
|
|
|
27404
27396
|
}
|
|
27405
27397
|
}, {
|
|
27406
27398
|
key: "deleteText",
|
|
27407
|
-
value: function deleteText(
|
|
27399
|
+
value: function deleteText(index2, length, source) {
|
|
27408
27400
|
var _this3 = this;
|
|
27409
|
-
var _overload = overload(
|
|
27401
|
+
var _overload = overload(index2, length, source);
|
|
27410
27402
|
var _overload2 = _slicedToArray(_overload, 4);
|
|
27411
|
-
|
|
27403
|
+
index2 = _overload2[0];
|
|
27412
27404
|
length = _overload2[1];
|
|
27413
27405
|
source = _overload2[3];
|
|
27414
27406
|
return modify.call(this, function() {
|
|
27415
|
-
return _this3.editor.deleteText(
|
|
27416
|
-
}, source,
|
|
27407
|
+
return _this3.editor.deleteText(index2, length);
|
|
27408
|
+
}, source, index2, -1 * length);
|
|
27417
27409
|
}
|
|
27418
27410
|
}, {
|
|
27419
27411
|
key: "disable",
|
|
@@ -27459,43 +27451,43 @@ var quill = { exports: {} };
|
|
|
27459
27451
|
}
|
|
27460
27452
|
}, {
|
|
27461
27453
|
key: "formatLine",
|
|
27462
|
-
value: function formatLine(
|
|
27454
|
+
value: function formatLine(index2, length, name, value, source) {
|
|
27463
27455
|
var _this5 = this;
|
|
27464
27456
|
var formats = void 0;
|
|
27465
|
-
var _overload3 = overload(
|
|
27457
|
+
var _overload3 = overload(index2, length, name, value, source);
|
|
27466
27458
|
var _overload4 = _slicedToArray(_overload3, 4);
|
|
27467
|
-
|
|
27459
|
+
index2 = _overload4[0];
|
|
27468
27460
|
length = _overload4[1];
|
|
27469
27461
|
formats = _overload4[2];
|
|
27470
27462
|
source = _overload4[3];
|
|
27471
27463
|
return modify.call(this, function() {
|
|
27472
|
-
return _this5.editor.formatLine(
|
|
27473
|
-
}, source,
|
|
27464
|
+
return _this5.editor.formatLine(index2, length, formats);
|
|
27465
|
+
}, source, index2, 0);
|
|
27474
27466
|
}
|
|
27475
27467
|
}, {
|
|
27476
27468
|
key: "formatText",
|
|
27477
|
-
value: function formatText(
|
|
27469
|
+
value: function formatText(index2, length, name, value, source) {
|
|
27478
27470
|
var _this6 = this;
|
|
27479
27471
|
var formats = void 0;
|
|
27480
|
-
var _overload5 = overload(
|
|
27472
|
+
var _overload5 = overload(index2, length, name, value, source);
|
|
27481
27473
|
var _overload6 = _slicedToArray(_overload5, 4);
|
|
27482
|
-
|
|
27474
|
+
index2 = _overload6[0];
|
|
27483
27475
|
length = _overload6[1];
|
|
27484
27476
|
formats = _overload6[2];
|
|
27485
27477
|
source = _overload6[3];
|
|
27486
27478
|
return modify.call(this, function() {
|
|
27487
|
-
return _this6.editor.formatText(
|
|
27488
|
-
}, source,
|
|
27479
|
+
return _this6.editor.formatText(index2, length, formats);
|
|
27480
|
+
}, source, index2, 0);
|
|
27489
27481
|
}
|
|
27490
27482
|
}, {
|
|
27491
27483
|
key: "getBounds",
|
|
27492
|
-
value: function getBounds(
|
|
27484
|
+
value: function getBounds(index2) {
|
|
27493
27485
|
var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
27494
27486
|
var bounds = void 0;
|
|
27495
|
-
if (typeof
|
|
27496
|
-
bounds = this.selection.getBounds(
|
|
27487
|
+
if (typeof index2 === "number") {
|
|
27488
|
+
bounds = this.selection.getBounds(index2, length);
|
|
27497
27489
|
} else {
|
|
27498
|
-
bounds = this.selection.getBounds(
|
|
27490
|
+
bounds = this.selection.getBounds(index2.index, index2.length);
|
|
27499
27491
|
}
|
|
27500
27492
|
var containerBounds = this.container.getBoundingClientRect();
|
|
27501
27493
|
return {
|
|
@@ -27510,23 +27502,23 @@ var quill = { exports: {} };
|
|
|
27510
27502
|
}, {
|
|
27511
27503
|
key: "getContents",
|
|
27512
27504
|
value: function getContents() {
|
|
27513
|
-
var
|
|
27514
|
-
var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() -
|
|
27515
|
-
var _overload7 = overload(
|
|
27505
|
+
var index2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
27506
|
+
var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - index2;
|
|
27507
|
+
var _overload7 = overload(index2, length);
|
|
27516
27508
|
var _overload8 = _slicedToArray(_overload7, 2);
|
|
27517
|
-
|
|
27509
|
+
index2 = _overload8[0];
|
|
27518
27510
|
length = _overload8[1];
|
|
27519
|
-
return this.editor.getContents(
|
|
27511
|
+
return this.editor.getContents(index2, length);
|
|
27520
27512
|
}
|
|
27521
27513
|
}, {
|
|
27522
27514
|
key: "getFormat",
|
|
27523
27515
|
value: function getFormat() {
|
|
27524
|
-
var
|
|
27516
|
+
var index2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(true);
|
|
27525
27517
|
var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
27526
|
-
if (typeof
|
|
27527
|
-
return this.editor.getFormat(
|
|
27518
|
+
if (typeof index2 === "number") {
|
|
27519
|
+
return this.editor.getFormat(index2, length);
|
|
27528
27520
|
} else {
|
|
27529
|
-
return this.editor.getFormat(
|
|
27521
|
+
return this.editor.getFormat(index2.index, index2.length);
|
|
27530
27522
|
}
|
|
27531
27523
|
}
|
|
27532
27524
|
}, {
|
|
@@ -27541,23 +27533,23 @@ var quill = { exports: {} };
|
|
|
27541
27533
|
}
|
|
27542
27534
|
}, {
|
|
27543
27535
|
key: "getLeaf",
|
|
27544
|
-
value: function getLeaf(
|
|
27545
|
-
return this.scroll.leaf(
|
|
27536
|
+
value: function getLeaf(index2) {
|
|
27537
|
+
return this.scroll.leaf(index2);
|
|
27546
27538
|
}
|
|
27547
27539
|
}, {
|
|
27548
27540
|
key: "getLine",
|
|
27549
|
-
value: function getLine2(
|
|
27550
|
-
return this.scroll.line(
|
|
27541
|
+
value: function getLine2(index2) {
|
|
27542
|
+
return this.scroll.line(index2);
|
|
27551
27543
|
}
|
|
27552
27544
|
}, {
|
|
27553
27545
|
key: "getLines",
|
|
27554
27546
|
value: function getLines2() {
|
|
27555
|
-
var
|
|
27547
|
+
var index2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
27556
27548
|
var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE;
|
|
27557
|
-
if (typeof
|
|
27558
|
-
return this.scroll.lines(
|
|
27549
|
+
if (typeof index2 !== "number") {
|
|
27550
|
+
return this.scroll.lines(index2.index, index2.length);
|
|
27559
27551
|
} else {
|
|
27560
|
-
return this.scroll.lines(
|
|
27552
|
+
return this.scroll.lines(index2, length);
|
|
27561
27553
|
}
|
|
27562
27554
|
}
|
|
27563
27555
|
}, {
|
|
@@ -27577,13 +27569,13 @@ var quill = { exports: {} };
|
|
|
27577
27569
|
}, {
|
|
27578
27570
|
key: "getText",
|
|
27579
27571
|
value: function getText() {
|
|
27580
|
-
var
|
|
27581
|
-
var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() -
|
|
27582
|
-
var _overload9 = overload(
|
|
27572
|
+
var index2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
27573
|
+
var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - index2;
|
|
27574
|
+
var _overload9 = overload(index2, length);
|
|
27583
27575
|
var _overload10 = _slicedToArray(_overload9, 2);
|
|
27584
|
-
|
|
27576
|
+
index2 = _overload10[0];
|
|
27585
27577
|
length = _overload10[1];
|
|
27586
|
-
return this.editor.getText(
|
|
27578
|
+
return this.editor.getText(index2, length);
|
|
27587
27579
|
}
|
|
27588
27580
|
}, {
|
|
27589
27581
|
key: "hasFocus",
|
|
@@ -27592,26 +27584,26 @@ var quill = { exports: {} };
|
|
|
27592
27584
|
}
|
|
27593
27585
|
}, {
|
|
27594
27586
|
key: "insertEmbed",
|
|
27595
|
-
value: function insertEmbed(
|
|
27587
|
+
value: function insertEmbed(index2, embed, value) {
|
|
27596
27588
|
var _this7 = this;
|
|
27597
27589
|
var source = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Quill3.sources.API;
|
|
27598
27590
|
return modify.call(this, function() {
|
|
27599
|
-
return _this7.editor.insertEmbed(
|
|
27600
|
-
}, source,
|
|
27591
|
+
return _this7.editor.insertEmbed(index2, embed, value);
|
|
27592
|
+
}, source, index2);
|
|
27601
27593
|
}
|
|
27602
27594
|
}, {
|
|
27603
27595
|
key: "insertText",
|
|
27604
|
-
value: function insertText(
|
|
27596
|
+
value: function insertText(index2, text3, name, value, source) {
|
|
27605
27597
|
var _this8 = this;
|
|
27606
27598
|
var formats = void 0;
|
|
27607
|
-
var _overload11 = overload(
|
|
27599
|
+
var _overload11 = overload(index2, 0, name, value, source);
|
|
27608
27600
|
var _overload12 = _slicedToArray(_overload11, 4);
|
|
27609
|
-
|
|
27601
|
+
index2 = _overload12[0];
|
|
27610
27602
|
formats = _overload12[2];
|
|
27611
27603
|
source = _overload12[3];
|
|
27612
27604
|
return modify.call(this, function() {
|
|
27613
|
-
return _this8.editor.insertText(
|
|
27614
|
-
}, source,
|
|
27605
|
+
return _this8.editor.insertText(index2, text3, formats);
|
|
27606
|
+
}, source, index2, text3.length);
|
|
27615
27607
|
}
|
|
27616
27608
|
}, {
|
|
27617
27609
|
key: "isEnabled",
|
|
@@ -27635,21 +27627,21 @@ var quill = { exports: {} };
|
|
|
27635
27627
|
}
|
|
27636
27628
|
}, {
|
|
27637
27629
|
key: "pasteHTML",
|
|
27638
|
-
value: function pasteHTML(
|
|
27639
|
-
this.clipboard.dangerouslyPasteHTML(
|
|
27630
|
+
value: function pasteHTML(index2, html2, source) {
|
|
27631
|
+
this.clipboard.dangerouslyPasteHTML(index2, html2, source);
|
|
27640
27632
|
}
|
|
27641
27633
|
}, {
|
|
27642
27634
|
key: "removeFormat",
|
|
27643
|
-
value: function removeFormat(
|
|
27635
|
+
value: function removeFormat(index2, length, source) {
|
|
27644
27636
|
var _this9 = this;
|
|
27645
|
-
var _overload13 = overload(
|
|
27637
|
+
var _overload13 = overload(index2, length, source);
|
|
27646
27638
|
var _overload14 = _slicedToArray(_overload13, 4);
|
|
27647
|
-
|
|
27639
|
+
index2 = _overload14[0];
|
|
27648
27640
|
length = _overload14[1];
|
|
27649
27641
|
source = _overload14[3];
|
|
27650
27642
|
return modify.call(this, function() {
|
|
27651
|
-
return _this9.editor.removeFormat(
|
|
27652
|
-
}, source,
|
|
27643
|
+
return _this9.editor.removeFormat(index2, length);
|
|
27644
|
+
}, source, index2);
|
|
27653
27645
|
}
|
|
27654
27646
|
}, {
|
|
27655
27647
|
key: "scrollIntoView",
|
|
@@ -27677,16 +27669,16 @@ var quill = { exports: {} };
|
|
|
27677
27669
|
}
|
|
27678
27670
|
}, {
|
|
27679
27671
|
key: "setSelection",
|
|
27680
|
-
value: function setSelection(
|
|
27681
|
-
if (
|
|
27672
|
+
value: function setSelection(index2, length, source) {
|
|
27673
|
+
if (index2 == null) {
|
|
27682
27674
|
this.selection.setRange(null, length || Quill3.sources.API);
|
|
27683
27675
|
} else {
|
|
27684
|
-
var _overload15 = overload(
|
|
27676
|
+
var _overload15 = overload(index2, length, source);
|
|
27685
27677
|
var _overload16 = _slicedToArray(_overload15, 4);
|
|
27686
|
-
|
|
27678
|
+
index2 = _overload16[0];
|
|
27687
27679
|
length = _overload16[1];
|
|
27688
27680
|
source = _overload16[3];
|
|
27689
|
-
this.selection.setRange(new _selection.Range(
|
|
27681
|
+
this.selection.setRange(new _selection.Range(index2, length), source);
|
|
27690
27682
|
if (source !== _emitter4.default.sources.SILENT) {
|
|
27691
27683
|
this.selection.scrollIntoView(this.scrollingContainer);
|
|
27692
27684
|
}
|
|
@@ -27794,20 +27786,20 @@ var quill = { exports: {} };
|
|
|
27794
27786
|
}, {});
|
|
27795
27787
|
return userConfig;
|
|
27796
27788
|
}
|
|
27797
|
-
function modify(modifier, source,
|
|
27789
|
+
function modify(modifier, source, index2, shift) {
|
|
27798
27790
|
if (this.options.strict && !this.isEnabled() && source === _emitter4.default.sources.USER) {
|
|
27799
27791
|
return new _quillDelta2.default();
|
|
27800
27792
|
}
|
|
27801
|
-
var range2 =
|
|
27793
|
+
var range2 = index2 == null ? null : this.getSelection();
|
|
27802
27794
|
var oldDelta = this.editor.delta;
|
|
27803
27795
|
var change = modifier();
|
|
27804
27796
|
if (range2 != null) {
|
|
27805
|
-
if (
|
|
27806
|
-
|
|
27797
|
+
if (index2 === true)
|
|
27798
|
+
index2 = range2.index;
|
|
27807
27799
|
if (shift == null) {
|
|
27808
27800
|
range2 = shiftRange(range2, change, source);
|
|
27809
27801
|
} else if (shift !== 0) {
|
|
27810
|
-
range2 = shiftRange(range2,
|
|
27802
|
+
range2 = shiftRange(range2, index2, shift, source);
|
|
27811
27803
|
}
|
|
27812
27804
|
this.setSelection(range2, _emitter4.default.sources.SILENT);
|
|
27813
27805
|
}
|
|
@@ -27822,13 +27814,13 @@ var quill = { exports: {} };
|
|
|
27822
27814
|
}
|
|
27823
27815
|
return change;
|
|
27824
27816
|
}
|
|
27825
|
-
function overload(
|
|
27817
|
+
function overload(index2, length, name, value, source) {
|
|
27826
27818
|
var formats = {};
|
|
27827
|
-
if (typeof
|
|
27819
|
+
if (typeof index2.index === "number" && typeof index2.length === "number") {
|
|
27828
27820
|
if (typeof length !== "number") {
|
|
27829
|
-
source = value, value = name, name = length, length =
|
|
27821
|
+
source = value, value = name, name = length, length = index2.length, index2 = index2.index;
|
|
27830
27822
|
} else {
|
|
27831
|
-
length =
|
|
27823
|
+
length = index2.length, index2 = index2.index;
|
|
27832
27824
|
}
|
|
27833
27825
|
} else if (typeof length !== "number") {
|
|
27834
27826
|
source = value, value = name, name = length, length = 0;
|
|
@@ -27844,27 +27836,27 @@ var quill = { exports: {} };
|
|
|
27844
27836
|
}
|
|
27845
27837
|
}
|
|
27846
27838
|
source = source || _emitter4.default.sources.API;
|
|
27847
|
-
return [
|
|
27839
|
+
return [index2, length, formats, source];
|
|
27848
27840
|
}
|
|
27849
|
-
function shiftRange(range2,
|
|
27841
|
+
function shiftRange(range2, index2, length, source) {
|
|
27850
27842
|
if (range2 == null)
|
|
27851
27843
|
return null;
|
|
27852
27844
|
var start = void 0, end = void 0;
|
|
27853
|
-
if (
|
|
27845
|
+
if (index2 instanceof _quillDelta2.default) {
|
|
27854
27846
|
var _map = [range2.index, range2.index + range2.length].map(function(pos) {
|
|
27855
|
-
return
|
|
27847
|
+
return index2.transformPosition(pos, source !== _emitter4.default.sources.USER);
|
|
27856
27848
|
});
|
|
27857
27849
|
var _map2 = _slicedToArray(_map, 2);
|
|
27858
27850
|
start = _map2[0];
|
|
27859
27851
|
end = _map2[1];
|
|
27860
27852
|
} else {
|
|
27861
27853
|
var _map3 = [range2.index, range2.index + range2.length].map(function(pos) {
|
|
27862
|
-
if (pos <
|
|
27854
|
+
if (pos < index2 || pos === index2 && source === _emitter4.default.sources.USER)
|
|
27863
27855
|
return pos;
|
|
27864
27856
|
if (length >= 0) {
|
|
27865
27857
|
return pos + length;
|
|
27866
27858
|
} else {
|
|
27867
|
-
return Math.max(
|
|
27859
|
+
return Math.max(index2, pos + length);
|
|
27868
27860
|
}
|
|
27869
27861
|
});
|
|
27870
27862
|
var _map4 = _slicedToArray(_map3, 2);
|
|
@@ -27883,7 +27875,7 @@ var quill = { exports: {} };
|
|
|
27883
27875
|
Object.defineProperty(exports3, "__esModule", {
|
|
27884
27876
|
value: true
|
|
27885
27877
|
});
|
|
27886
|
-
var _createClass = function() {
|
|
27878
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
27887
27879
|
function defineProperties(target2, props) {
|
|
27888
27880
|
for (var i = 0; i < props.length; i++) {
|
|
27889
27881
|
var descriptor = props[i];
|
|
@@ -27957,14 +27949,14 @@ var quill = { exports: {} };
|
|
|
27957
27949
|
}
|
|
27958
27950
|
_createClass(Inline2, [{
|
|
27959
27951
|
key: "formatAt",
|
|
27960
|
-
value: function formatAt(
|
|
27952
|
+
value: function formatAt(index2, length, name, value) {
|
|
27961
27953
|
if (Inline2.compare(this.statics.blotName, name) < 0 && _parchment2.default.query(name, _parchment2.default.Scope.BLOT)) {
|
|
27962
|
-
var blot = this.isolate(
|
|
27954
|
+
var blot = this.isolate(index2, length);
|
|
27963
27955
|
if (value) {
|
|
27964
27956
|
blot.wrap(name, value);
|
|
27965
27957
|
}
|
|
27966
27958
|
} else {
|
|
27967
|
-
_get2(Inline2.prototype.__proto__ || Object.getPrototypeOf(Inline2.prototype), "formatAt", this).call(this,
|
|
27959
|
+
_get2(Inline2.prototype.__proto__ || Object.getPrototypeOf(Inline2.prototype), "formatAt", this).call(this, index2, length, name, value);
|
|
27968
27960
|
}
|
|
27969
27961
|
}
|
|
27970
27962
|
}, {
|
|
@@ -28057,7 +28049,7 @@ var quill = { exports: {} };
|
|
|
28057
28049
|
Object.defineProperty(exports3, "__esModule", {
|
|
28058
28050
|
value: true
|
|
28059
28051
|
});
|
|
28060
|
-
var _createClass = function() {
|
|
28052
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
28061
28053
|
function defineProperties(target2, props) {
|
|
28062
28054
|
for (var i = 0; i < props.length; i++) {
|
|
28063
28055
|
var descriptor = props[i];
|
|
@@ -28387,7 +28379,7 @@ var quill = { exports: {} };
|
|
|
28387
28379
|
value: true
|
|
28388
28380
|
});
|
|
28389
28381
|
exports3.default = exports3.Code = void 0;
|
|
28390
|
-
var _slicedToArray = function() {
|
|
28382
|
+
var _slicedToArray = /* @__PURE__ */ function() {
|
|
28391
28383
|
function sliceIterator(arr, i) {
|
|
28392
28384
|
var _arr = [];
|
|
28393
28385
|
var _n = true;
|
|
@@ -28423,7 +28415,7 @@ var quill = { exports: {} };
|
|
|
28423
28415
|
}
|
|
28424
28416
|
};
|
|
28425
28417
|
}();
|
|
28426
|
-
var _createClass = function() {
|
|
28418
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
28427
28419
|
function defineProperties(target2, props) {
|
|
28428
28420
|
for (var i = 0; i < props.length; i++) {
|
|
28429
28421
|
var descriptor = props[i];
|
|
@@ -28536,30 +28528,30 @@ var quill = { exports: {} };
|
|
|
28536
28528
|
}
|
|
28537
28529
|
}, {
|
|
28538
28530
|
key: "formatAt",
|
|
28539
|
-
value: function formatAt(
|
|
28531
|
+
value: function formatAt(index2, length, name, value) {
|
|
28540
28532
|
if (length === 0)
|
|
28541
28533
|
return;
|
|
28542
28534
|
if (_parchment2.default.query(name, _parchment2.default.Scope.BLOCK) == null || name === this.statics.blotName && value === this.statics.formats(this.domNode)) {
|
|
28543
28535
|
return;
|
|
28544
28536
|
}
|
|
28545
|
-
var nextNewline = this.newlineIndex(
|
|
28546
|
-
if (nextNewline < 0 || nextNewline >=
|
|
28537
|
+
var nextNewline = this.newlineIndex(index2);
|
|
28538
|
+
if (nextNewline < 0 || nextNewline >= index2 + length)
|
|
28547
28539
|
return;
|
|
28548
|
-
var prevNewline = this.newlineIndex(
|
|
28540
|
+
var prevNewline = this.newlineIndex(index2, true) + 1;
|
|
28549
28541
|
var isolateLength = nextNewline - prevNewline + 1;
|
|
28550
28542
|
var blot = this.isolate(prevNewline, isolateLength);
|
|
28551
28543
|
var next2 = blot.next;
|
|
28552
28544
|
blot.format(name, value);
|
|
28553
28545
|
if (next2 instanceof CodeBlock2) {
|
|
28554
|
-
next2.formatAt(0,
|
|
28546
|
+
next2.formatAt(0, index2 - prevNewline + length - isolateLength, name, value);
|
|
28555
28547
|
}
|
|
28556
28548
|
}
|
|
28557
28549
|
}, {
|
|
28558
28550
|
key: "insertAt",
|
|
28559
|
-
value: function insertAt(
|
|
28551
|
+
value: function insertAt(index2, value, def) {
|
|
28560
28552
|
if (def != null)
|
|
28561
28553
|
return;
|
|
28562
|
-
var _descendant3 = this.descendant(_text2.default,
|
|
28554
|
+
var _descendant3 = this.descendant(_text2.default, index2), _descendant4 = _slicedToArray(_descendant3, 2), text3 = _descendant4[0], offset = _descendant4[1];
|
|
28563
28555
|
text3.insertAt(offset, value);
|
|
28564
28556
|
}
|
|
28565
28557
|
}, {
|
|
@@ -28643,7 +28635,7 @@ var quill = { exports: {} };
|
|
|
28643
28635
|
} : function(obj) {
|
|
28644
28636
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
28645
28637
|
};
|
|
28646
|
-
var _slicedToArray = function() {
|
|
28638
|
+
var _slicedToArray = /* @__PURE__ */ function() {
|
|
28647
28639
|
function sliceIterator(arr, i) {
|
|
28648
28640
|
var _arr = [];
|
|
28649
28641
|
var _n = true;
|
|
@@ -28679,7 +28671,7 @@ var quill = { exports: {} };
|
|
|
28679
28671
|
}
|
|
28680
28672
|
};
|
|
28681
28673
|
}();
|
|
28682
|
-
var _createClass = function() {
|
|
28674
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
28683
28675
|
function defineProperties(target2, props) {
|
|
28684
28676
|
for (var i = 0; i < props.length; i++) {
|
|
28685
28677
|
var descriptor = props[i];
|
|
@@ -28750,7 +28742,7 @@ var quill = { exports: {} };
|
|
|
28750
28742
|
var scrollLength = this.scroll.length();
|
|
28751
28743
|
this.scroll.batchStart();
|
|
28752
28744
|
delta2 = normalizeDelta(delta2);
|
|
28753
|
-
delta2.reduce(function(
|
|
28745
|
+
delta2.reduce(function(index2, op) {
|
|
28754
28746
|
var length = op.retain || op.delete || op.insert.length || 1;
|
|
28755
28747
|
var attributes = op.attributes || {};
|
|
28756
28748
|
if (op.insert != null) {
|
|
@@ -28760,11 +28752,11 @@ var quill = { exports: {} };
|
|
|
28760
28752
|
consumeNextNewline = false;
|
|
28761
28753
|
text3 = text3.slice(0, -1);
|
|
28762
28754
|
}
|
|
28763
|
-
if (
|
|
28755
|
+
if (index2 >= scrollLength && !text3.endsWith("\n")) {
|
|
28764
28756
|
consumeNextNewline = true;
|
|
28765
28757
|
}
|
|
28766
|
-
_this.scroll.insertAt(
|
|
28767
|
-
var _scroll$line = _this.scroll.line(
|
|
28758
|
+
_this.scroll.insertAt(index2, text3);
|
|
28759
|
+
var _scroll$line = _this.scroll.line(index2), _scroll$line2 = _slicedToArray(_scroll$line, 2), line = _scroll$line2[0], offset = _scroll$line2[1];
|
|
28768
28760
|
var formats = (0, _extend2.default)({}, (0, _block.bubbleFormats)(line));
|
|
28769
28761
|
if (line instanceof _block2.default) {
|
|
28770
28762
|
var _line$descendant = line.descendant(_parchment2.default.Leaf, offset), _line$descendant2 = _slicedToArray(_line$descendant, 1), leaf = _line$descendant2[0];
|
|
@@ -28774,49 +28766,49 @@ var quill = { exports: {} };
|
|
|
28774
28766
|
} else if (_typeof(op.insert) === "object") {
|
|
28775
28767
|
var key = Object.keys(op.insert)[0];
|
|
28776
28768
|
if (key == null)
|
|
28777
|
-
return
|
|
28778
|
-
_this.scroll.insertAt(
|
|
28769
|
+
return index2;
|
|
28770
|
+
_this.scroll.insertAt(index2, key, op.insert[key]);
|
|
28779
28771
|
}
|
|
28780
28772
|
scrollLength += length;
|
|
28781
28773
|
}
|
|
28782
28774
|
Object.keys(attributes).forEach(function(name) {
|
|
28783
|
-
_this.scroll.formatAt(
|
|
28775
|
+
_this.scroll.formatAt(index2, length, name, attributes[name]);
|
|
28784
28776
|
});
|
|
28785
|
-
return
|
|
28777
|
+
return index2 + length;
|
|
28786
28778
|
}, 0);
|
|
28787
|
-
delta2.reduce(function(
|
|
28779
|
+
delta2.reduce(function(index2, op) {
|
|
28788
28780
|
if (typeof op.delete === "number") {
|
|
28789
|
-
_this.scroll.deleteAt(
|
|
28790
|
-
return
|
|
28781
|
+
_this.scroll.deleteAt(index2, op.delete);
|
|
28782
|
+
return index2;
|
|
28791
28783
|
}
|
|
28792
|
-
return
|
|
28784
|
+
return index2 + (op.retain || op.insert.length || 1);
|
|
28793
28785
|
}, 0);
|
|
28794
28786
|
this.scroll.batchEnd();
|
|
28795
28787
|
return this.update(delta2);
|
|
28796
28788
|
}
|
|
28797
28789
|
}, {
|
|
28798
28790
|
key: "deleteText",
|
|
28799
|
-
value: function deleteText(
|
|
28800
|
-
this.scroll.deleteAt(
|
|
28801
|
-
return this.update(new _quillDelta2.default().retain(
|
|
28791
|
+
value: function deleteText(index2, length) {
|
|
28792
|
+
this.scroll.deleteAt(index2, length);
|
|
28793
|
+
return this.update(new _quillDelta2.default().retain(index2).delete(length));
|
|
28802
28794
|
}
|
|
28803
28795
|
}, {
|
|
28804
28796
|
key: "formatLine",
|
|
28805
|
-
value: function formatLine(
|
|
28797
|
+
value: function formatLine(index2, length) {
|
|
28806
28798
|
var _this2 = this;
|
|
28807
28799
|
var formats = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
28808
28800
|
this.scroll.update();
|
|
28809
28801
|
Object.keys(formats).forEach(function(format3) {
|
|
28810
28802
|
if (_this2.scroll.whitelist != null && !_this2.scroll.whitelist[format3])
|
|
28811
28803
|
return;
|
|
28812
|
-
var lines = _this2.scroll.lines(
|
|
28804
|
+
var lines = _this2.scroll.lines(index2, Math.max(length, 1));
|
|
28813
28805
|
var lengthRemaining = length;
|
|
28814
28806
|
lines.forEach(function(line) {
|
|
28815
28807
|
var lineLength = line.length();
|
|
28816
28808
|
if (!(line instanceof _code2.default)) {
|
|
28817
28809
|
line.format(format3, formats[format3]);
|
|
28818
28810
|
} else {
|
|
28819
|
-
var codeIndex =
|
|
28811
|
+
var codeIndex = index2 - line.offset(_this2.scroll);
|
|
28820
28812
|
var codeLength = line.newlineIndex(codeIndex + lengthRemaining) - codeIndex + 1;
|
|
28821
28813
|
line.formatAt(codeIndex, codeLength, format3, formats[format3]);
|
|
28822
28814
|
}
|
|
@@ -28824,22 +28816,22 @@ var quill = { exports: {} };
|
|
|
28824
28816
|
});
|
|
28825
28817
|
});
|
|
28826
28818
|
this.scroll.optimize();
|
|
28827
|
-
return this.update(new _quillDelta2.default().retain(
|
|
28819
|
+
return this.update(new _quillDelta2.default().retain(index2).retain(length, (0, _clone2.default)(formats)));
|
|
28828
28820
|
}
|
|
28829
28821
|
}, {
|
|
28830
28822
|
key: "formatText",
|
|
28831
|
-
value: function formatText(
|
|
28823
|
+
value: function formatText(index2, length) {
|
|
28832
28824
|
var _this3 = this;
|
|
28833
28825
|
var formats = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
28834
28826
|
Object.keys(formats).forEach(function(format3) {
|
|
28835
|
-
_this3.scroll.formatAt(
|
|
28827
|
+
_this3.scroll.formatAt(index2, length, format3, formats[format3]);
|
|
28836
28828
|
});
|
|
28837
|
-
return this.update(new _quillDelta2.default().retain(
|
|
28829
|
+
return this.update(new _quillDelta2.default().retain(index2).retain(length, (0, _clone2.default)(formats)));
|
|
28838
28830
|
}
|
|
28839
28831
|
}, {
|
|
28840
28832
|
key: "getContents",
|
|
28841
|
-
value: function getContents(
|
|
28842
|
-
return this.delta.slice(
|
|
28833
|
+
value: function getContents(index2, length) {
|
|
28834
|
+
return this.delta.slice(index2, index2 + length);
|
|
28843
28835
|
}
|
|
28844
28836
|
}, {
|
|
28845
28837
|
key: "getDelta",
|
|
@@ -28850,11 +28842,11 @@ var quill = { exports: {} };
|
|
|
28850
28842
|
}
|
|
28851
28843
|
}, {
|
|
28852
28844
|
key: "getFormat",
|
|
28853
|
-
value: function getFormat(
|
|
28845
|
+
value: function getFormat(index2) {
|
|
28854
28846
|
var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
28855
28847
|
var lines = [], leaves = [];
|
|
28856
28848
|
if (length === 0) {
|
|
28857
|
-
this.scroll.path(
|
|
28849
|
+
this.scroll.path(index2).forEach(function(path) {
|
|
28858
28850
|
var _path = _slicedToArray(path, 1), blot = _path[0];
|
|
28859
28851
|
if (blot instanceof _block2.default) {
|
|
28860
28852
|
lines.push(blot);
|
|
@@ -28863,8 +28855,8 @@ var quill = { exports: {} };
|
|
|
28863
28855
|
}
|
|
28864
28856
|
});
|
|
28865
28857
|
} else {
|
|
28866
|
-
lines = this.scroll.lines(
|
|
28867
|
-
leaves = this.scroll.descendants(_parchment2.default.Leaf,
|
|
28858
|
+
lines = this.scroll.lines(index2, length);
|
|
28859
|
+
leaves = this.scroll.descendants(_parchment2.default.Leaf, index2, length);
|
|
28868
28860
|
}
|
|
28869
28861
|
var formatsArr = [lines, leaves].map(function(blots) {
|
|
28870
28862
|
if (blots.length === 0)
|
|
@@ -28882,8 +28874,8 @@ var quill = { exports: {} };
|
|
|
28882
28874
|
}
|
|
28883
28875
|
}, {
|
|
28884
28876
|
key: "getText",
|
|
28885
|
-
value: function getText(
|
|
28886
|
-
return this.getContents(
|
|
28877
|
+
value: function getText(index2, length) {
|
|
28878
|
+
return this.getContents(index2, length).filter(function(op) {
|
|
28887
28879
|
return typeof op.insert === "string";
|
|
28888
28880
|
}).map(function(op) {
|
|
28889
28881
|
return op.insert;
|
|
@@ -28891,21 +28883,21 @@ var quill = { exports: {} };
|
|
|
28891
28883
|
}
|
|
28892
28884
|
}, {
|
|
28893
28885
|
key: "insertEmbed",
|
|
28894
|
-
value: function insertEmbed(
|
|
28895
|
-
this.scroll.insertAt(
|
|
28896
|
-
return this.update(new _quillDelta2.default().retain(
|
|
28886
|
+
value: function insertEmbed(index2, embed, value) {
|
|
28887
|
+
this.scroll.insertAt(index2, embed, value);
|
|
28888
|
+
return this.update(new _quillDelta2.default().retain(index2).insert(_defineProperty2({}, embed, value)));
|
|
28897
28889
|
}
|
|
28898
28890
|
}, {
|
|
28899
28891
|
key: "insertText",
|
|
28900
|
-
value: function insertText(
|
|
28892
|
+
value: function insertText(index2, text3) {
|
|
28901
28893
|
var _this4 = this;
|
|
28902
28894
|
var formats = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
28903
28895
|
text3 = text3.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
|
|
28904
|
-
this.scroll.insertAt(
|
|
28896
|
+
this.scroll.insertAt(index2, text3);
|
|
28905
28897
|
Object.keys(formats).forEach(function(format3) {
|
|
28906
|
-
_this4.scroll.formatAt(
|
|
28898
|
+
_this4.scroll.formatAt(index2, text3.length, format3, formats[format3]);
|
|
28907
28899
|
});
|
|
28908
|
-
return this.update(new _quillDelta2.default().retain(
|
|
28900
|
+
return this.update(new _quillDelta2.default().retain(index2).insert(text3, (0, _clone2.default)(formats)));
|
|
28909
28901
|
}
|
|
28910
28902
|
}, {
|
|
28911
28903
|
key: "isBlank",
|
|
@@ -28923,9 +28915,9 @@ var quill = { exports: {} };
|
|
|
28923
28915
|
}
|
|
28924
28916
|
}, {
|
|
28925
28917
|
key: "removeFormat",
|
|
28926
|
-
value: function removeFormat(
|
|
28927
|
-
var text3 = this.getText(
|
|
28928
|
-
var _scroll$line3 = this.scroll.line(
|
|
28918
|
+
value: function removeFormat(index2, length) {
|
|
28919
|
+
var text3 = this.getText(index2, length);
|
|
28920
|
+
var _scroll$line3 = this.scroll.line(index2 + length), _scroll$line4 = _slicedToArray(_scroll$line3, 2), line = _scroll$line4[0], offset = _scroll$line4[1];
|
|
28929
28921
|
var suffixLength = 0, suffix = new _quillDelta2.default();
|
|
28930
28922
|
if (line != null) {
|
|
28931
28923
|
if (!(line instanceof _code2.default)) {
|
|
@@ -28935,9 +28927,9 @@ var quill = { exports: {} };
|
|
|
28935
28927
|
}
|
|
28936
28928
|
suffix = line.delta().slice(offset, offset + suffixLength - 1).insert("\n");
|
|
28937
28929
|
}
|
|
28938
|
-
var contents = this.getContents(
|
|
28930
|
+
var contents = this.getContents(index2, length + suffixLength);
|
|
28939
28931
|
var diff = contents.diff(new _quillDelta2.default().insert(text3).concat(suffix));
|
|
28940
|
-
var delta2 = new _quillDelta2.default().retain(
|
|
28932
|
+
var delta2 = new _quillDelta2.default().retain(index2).concat(diff);
|
|
28941
28933
|
return this.applyDelta(delta2);
|
|
28942
28934
|
}
|
|
28943
28935
|
}, {
|
|
@@ -28949,11 +28941,11 @@ var quill = { exports: {} };
|
|
|
28949
28941
|
if (mutations.length === 1 && mutations[0].type === "characterData" && mutations[0].target.data.match(ASCII) && _parchment2.default.find(mutations[0].target)) {
|
|
28950
28942
|
var textBlot = _parchment2.default.find(mutations[0].target);
|
|
28951
28943
|
var formats = (0, _block.bubbleFormats)(textBlot);
|
|
28952
|
-
var
|
|
28944
|
+
var index2 = textBlot.offset(this.scroll);
|
|
28953
28945
|
var oldValue = mutations[0].oldValue.replace(_cursor2.default.CONTENTS, "");
|
|
28954
28946
|
var oldText = new _quillDelta2.default().insert(oldValue);
|
|
28955
28947
|
var newText = new _quillDelta2.default().insert(textBlot.value());
|
|
28956
|
-
var diffDelta = new _quillDelta2.default().retain(
|
|
28948
|
+
var diffDelta = new _quillDelta2.default().retain(index2).concat(oldText.diff(newText, cursorIndex));
|
|
28957
28949
|
change = diffDelta.reduce(function(delta2, op) {
|
|
28958
28950
|
if (op.insert) {
|
|
28959
28951
|
return delta2.insert(op.insert, formats);
|
|
@@ -29021,7 +29013,7 @@ var quill = { exports: {} };
|
|
|
29021
29013
|
value: true
|
|
29022
29014
|
});
|
|
29023
29015
|
exports3.default = exports3.Range = void 0;
|
|
29024
|
-
var _slicedToArray = function() {
|
|
29016
|
+
var _slicedToArray = /* @__PURE__ */ function() {
|
|
29025
29017
|
function sliceIterator(arr, i) {
|
|
29026
29018
|
var _arr = [];
|
|
29027
29019
|
var _n = true;
|
|
@@ -29057,7 +29049,7 @@ var quill = { exports: {} };
|
|
|
29057
29049
|
}
|
|
29058
29050
|
};
|
|
29059
29051
|
}();
|
|
29060
|
-
var _createClass = function() {
|
|
29052
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
29061
29053
|
function defineProperties(target2, props) {
|
|
29062
29054
|
for (var i = 0; i < props.length; i++) {
|
|
29063
29055
|
var descriptor = props[i];
|
|
@@ -29105,10 +29097,10 @@ var quill = { exports: {} };
|
|
|
29105
29097
|
}
|
|
29106
29098
|
}
|
|
29107
29099
|
var debug = (0, _logger2.default)("quill:selection");
|
|
29108
|
-
var Range = function Range2(
|
|
29100
|
+
var Range = function Range2(index2) {
|
|
29109
29101
|
var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
29110
29102
|
_classCallCheck(this, Range2);
|
|
29111
|
-
this.index =
|
|
29103
|
+
this.index = index2;
|
|
29112
29104
|
this.length = length;
|
|
29113
29105
|
};
|
|
29114
29106
|
var Selection = function() {
|
|
@@ -29224,12 +29216,12 @@ var quill = { exports: {} };
|
|
|
29224
29216
|
}
|
|
29225
29217
|
}, {
|
|
29226
29218
|
key: "getBounds",
|
|
29227
|
-
value: function getBounds(
|
|
29219
|
+
value: function getBounds(index2) {
|
|
29228
29220
|
var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
29229
29221
|
var scrollLength = this.scroll.length();
|
|
29230
|
-
|
|
29231
|
-
length = Math.min(
|
|
29232
|
-
var node2 = void 0, _scroll$leaf = this.scroll.leaf(
|
|
29222
|
+
index2 = Math.min(index2, scrollLength - 1);
|
|
29223
|
+
length = Math.min(index2 + length, scrollLength - 1) - index2;
|
|
29224
|
+
var node2 = void 0, _scroll$leaf = this.scroll.leaf(index2), _scroll$leaf2 = _slicedToArray(_scroll$leaf, 2), leaf = _scroll$leaf2[0], offset = _scroll$leaf2[1];
|
|
29233
29225
|
if (leaf == null)
|
|
29234
29226
|
return null;
|
|
29235
29227
|
var _leaf$position = leaf.position(offset, true);
|
|
@@ -29239,7 +29231,7 @@ var quill = { exports: {} };
|
|
|
29239
29231
|
var range2 = document.createRange();
|
|
29240
29232
|
if (length > 0) {
|
|
29241
29233
|
range2.setStart(node2, offset);
|
|
29242
|
-
var _scroll$leaf3 = this.scroll.leaf(
|
|
29234
|
+
var _scroll$leaf3 = this.scroll.leaf(index2 + length);
|
|
29243
29235
|
var _scroll$leaf4 = _slicedToArray(_scroll$leaf3, 2);
|
|
29244
29236
|
leaf = _scroll$leaf4[0];
|
|
29245
29237
|
offset = _scroll$leaf4[1];
|
|
@@ -29317,13 +29309,13 @@ var quill = { exports: {} };
|
|
|
29317
29309
|
var indexes = positions.map(function(position) {
|
|
29318
29310
|
var _position = _slicedToArray(position, 2), node2 = _position[0], offset = _position[1];
|
|
29319
29311
|
var blot = _parchment2.default.find(node2, true);
|
|
29320
|
-
var
|
|
29312
|
+
var index2 = blot.offset(_this4.scroll);
|
|
29321
29313
|
if (offset === 0) {
|
|
29322
|
-
return
|
|
29314
|
+
return index2;
|
|
29323
29315
|
} else if (blot instanceof _parchment2.default.Container) {
|
|
29324
|
-
return
|
|
29316
|
+
return index2 + blot.length();
|
|
29325
29317
|
} else {
|
|
29326
|
-
return
|
|
29318
|
+
return index2 + blot.index(node2, offset);
|
|
29327
29319
|
}
|
|
29328
29320
|
});
|
|
29329
29321
|
var end = Math.min(Math.max.apply(Math, _toConsumableArray(indexes)), this.scroll.length() - 1);
|
|
@@ -29365,9 +29357,9 @@ var quill = { exports: {} };
|
|
|
29365
29357
|
var indexes = range2.collapsed ? [range2.index] : [range2.index, range2.index + range2.length];
|
|
29366
29358
|
var args = [];
|
|
29367
29359
|
var scrollLength = this.scroll.length();
|
|
29368
|
-
indexes.forEach(function(
|
|
29369
|
-
|
|
29370
|
-
var node2 = void 0, _scroll$leaf5 = _this5.scroll.leaf(
|
|
29360
|
+
indexes.forEach(function(index2, i) {
|
|
29361
|
+
index2 = Math.min(scrollLength - 1, index2);
|
|
29362
|
+
var node2 = void 0, _scroll$leaf5 = _this5.scroll.leaf(index2), _scroll$leaf6 = _slicedToArray(_scroll$leaf5, 2), leaf = _scroll$leaf6[0], offset = _scroll$leaf6[1];
|
|
29371
29363
|
var _leaf$position5 = leaf.position(offset, i !== 0);
|
|
29372
29364
|
var _leaf$position6 = _slicedToArray(_leaf$position5, 2);
|
|
29373
29365
|
node2 = _leaf$position6[0];
|
|
@@ -29507,7 +29499,7 @@ var quill = { exports: {} };
|
|
|
29507
29499
|
Object.defineProperty(exports3, "__esModule", {
|
|
29508
29500
|
value: true
|
|
29509
29501
|
});
|
|
29510
|
-
var _createClass = function() {
|
|
29502
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
29511
29503
|
function defineProperties(target2, props) {
|
|
29512
29504
|
for (var i = 0; i < props.length; i++) {
|
|
29513
29505
|
var descriptor = props[i];
|
|
@@ -29664,16 +29656,16 @@ var quill = { exports: {} };
|
|
|
29664
29656
|
}
|
|
29665
29657
|
});
|
|
29666
29658
|
};
|
|
29667
|
-
ContainerBlot2.prototype.deleteAt = function(
|
|
29668
|
-
if (
|
|
29659
|
+
ContainerBlot2.prototype.deleteAt = function(index2, length) {
|
|
29660
|
+
if (index2 === 0 && length === this.length()) {
|
|
29669
29661
|
return this.remove();
|
|
29670
29662
|
}
|
|
29671
|
-
this.children.forEachAt(
|
|
29663
|
+
this.children.forEachAt(index2, length, function(child, offset, length2) {
|
|
29672
29664
|
child.deleteAt(offset, length2);
|
|
29673
29665
|
});
|
|
29674
29666
|
};
|
|
29675
|
-
ContainerBlot2.prototype.descendant = function(criteria,
|
|
29676
|
-
var _a = this.children.find(
|
|
29667
|
+
ContainerBlot2.prototype.descendant = function(criteria, index2) {
|
|
29668
|
+
var _a = this.children.find(index2), child = _a[0], offset = _a[1];
|
|
29677
29669
|
if (criteria.blotName == null && criteria(child) || criteria.blotName != null && child instanceof criteria) {
|
|
29678
29670
|
return [child, offset];
|
|
29679
29671
|
} else if (child instanceof ContainerBlot2) {
|
|
@@ -29682,21 +29674,21 @@ var quill = { exports: {} };
|
|
|
29682
29674
|
return [null, -1];
|
|
29683
29675
|
}
|
|
29684
29676
|
};
|
|
29685
|
-
ContainerBlot2.prototype.descendants = function(criteria,
|
|
29686
|
-
if (
|
|
29687
|
-
|
|
29677
|
+
ContainerBlot2.prototype.descendants = function(criteria, index2, length) {
|
|
29678
|
+
if (index2 === void 0) {
|
|
29679
|
+
index2 = 0;
|
|
29688
29680
|
}
|
|
29689
29681
|
if (length === void 0) {
|
|
29690
29682
|
length = Number.MAX_VALUE;
|
|
29691
29683
|
}
|
|
29692
29684
|
var descendants = [];
|
|
29693
29685
|
var lengthLeft = length;
|
|
29694
|
-
this.children.forEachAt(
|
|
29686
|
+
this.children.forEachAt(index2, length, function(child, index3, length2) {
|
|
29695
29687
|
if (criteria.blotName == null && criteria(child) || criteria.blotName != null && child instanceof criteria) {
|
|
29696
29688
|
descendants.push(child);
|
|
29697
29689
|
}
|
|
29698
29690
|
if (child instanceof ContainerBlot2) {
|
|
29699
|
-
descendants = descendants.concat(child.descendants(criteria,
|
|
29691
|
+
descendants = descendants.concat(child.descendants(criteria, index3, lengthLeft));
|
|
29700
29692
|
}
|
|
29701
29693
|
lengthLeft -= length2;
|
|
29702
29694
|
});
|
|
@@ -29708,13 +29700,13 @@ var quill = { exports: {} };
|
|
|
29708
29700
|
});
|
|
29709
29701
|
_super.prototype.detach.call(this);
|
|
29710
29702
|
};
|
|
29711
|
-
ContainerBlot2.prototype.formatAt = function(
|
|
29712
|
-
this.children.forEachAt(
|
|
29703
|
+
ContainerBlot2.prototype.formatAt = function(index2, length, name, value) {
|
|
29704
|
+
this.children.forEachAt(index2, length, function(child, offset, length2) {
|
|
29713
29705
|
child.formatAt(offset, length2, name, value);
|
|
29714
29706
|
});
|
|
29715
29707
|
};
|
|
29716
|
-
ContainerBlot2.prototype.insertAt = function(
|
|
29717
|
-
var _a = this.children.find(
|
|
29708
|
+
ContainerBlot2.prototype.insertAt = function(index2, value, def) {
|
|
29709
|
+
var _a = this.children.find(index2), child = _a[0], offset = _a[1];
|
|
29718
29710
|
if (child) {
|
|
29719
29711
|
child.insertAt(offset, value, def);
|
|
29720
29712
|
} else {
|
|
@@ -29752,12 +29744,12 @@ var quill = { exports: {} };
|
|
|
29752
29744
|
}
|
|
29753
29745
|
}
|
|
29754
29746
|
};
|
|
29755
|
-
ContainerBlot2.prototype.path = function(
|
|
29747
|
+
ContainerBlot2.prototype.path = function(index2, inclusive) {
|
|
29756
29748
|
if (inclusive === void 0) {
|
|
29757
29749
|
inclusive = false;
|
|
29758
29750
|
}
|
|
29759
|
-
var _a = this.children.find(
|
|
29760
|
-
var position = [[this,
|
|
29751
|
+
var _a = this.children.find(index2, inclusive), child = _a[0], offset = _a[1];
|
|
29752
|
+
var position = [[this, index2]];
|
|
29761
29753
|
if (child instanceof ContainerBlot2) {
|
|
29762
29754
|
return position.concat(child.path(offset, inclusive));
|
|
29763
29755
|
} else if (child != null) {
|
|
@@ -29774,19 +29766,19 @@ var quill = { exports: {} };
|
|
|
29774
29766
|
}
|
|
29775
29767
|
_super.prototype.replace.call(this, target2);
|
|
29776
29768
|
};
|
|
29777
|
-
ContainerBlot2.prototype.split = function(
|
|
29769
|
+
ContainerBlot2.prototype.split = function(index2, force) {
|
|
29778
29770
|
if (force === void 0) {
|
|
29779
29771
|
force = false;
|
|
29780
29772
|
}
|
|
29781
29773
|
if (!force) {
|
|
29782
|
-
if (
|
|
29774
|
+
if (index2 === 0)
|
|
29783
29775
|
return this;
|
|
29784
|
-
if (
|
|
29776
|
+
if (index2 === this.length())
|
|
29785
29777
|
return this.next;
|
|
29786
29778
|
}
|
|
29787
29779
|
var after = this.clone();
|
|
29788
29780
|
this.parent.insertBefore(after, this.next);
|
|
29789
|
-
this.children.forEachAt(
|
|
29781
|
+
this.children.forEachAt(index2, this.length(), function(child, offset, length) {
|
|
29790
29782
|
child = child.split(offset, force);
|
|
29791
29783
|
after.appendChild(child);
|
|
29792
29784
|
});
|
|
@@ -29987,9 +29979,9 @@ var quill = { exports: {} };
|
|
|
29987
29979
|
}
|
|
29988
29980
|
return -1;
|
|
29989
29981
|
};
|
|
29990
|
-
LeafBlot2.prototype.position = function(
|
|
29982
|
+
LeafBlot2.prototype.position = function(index2, inclusive) {
|
|
29991
29983
|
var offset = [].indexOf.call(this.parent.domNode.childNodes, this.domNode);
|
|
29992
|
-
if (
|
|
29984
|
+
if (index2 > 0)
|
|
29993
29985
|
offset += 1;
|
|
29994
29986
|
return [this.parent.domNode, offset];
|
|
29995
29987
|
};
|
|
@@ -30143,11 +30135,11 @@ var quill = { exports: {} };
|
|
|
30143
30135
|
return this.ops.slice(this.index);
|
|
30144
30136
|
} else {
|
|
30145
30137
|
var offset = this.offset;
|
|
30146
|
-
var
|
|
30138
|
+
var index2 = this.index;
|
|
30147
30139
|
var next2 = this.next();
|
|
30148
30140
|
var rest = this.ops.slice(this.index);
|
|
30149
30141
|
this.offset = offset;
|
|
30150
|
-
this.index =
|
|
30142
|
+
this.index = index2;
|
|
30151
30143
|
return [next2].concat(rest);
|
|
30152
30144
|
}
|
|
30153
30145
|
};
|
|
@@ -30245,9 +30237,9 @@ var quill = { exports: {} };
|
|
|
30245
30237
|
}
|
|
30246
30238
|
}
|
|
30247
30239
|
if (circular) {
|
|
30248
|
-
var
|
|
30249
|
-
if (
|
|
30250
|
-
return allChildren[
|
|
30240
|
+
var index2 = allParents.indexOf(parent2);
|
|
30241
|
+
if (index2 != -1) {
|
|
30242
|
+
return allChildren[index2];
|
|
30251
30243
|
}
|
|
30252
30244
|
allParents.push(parent2);
|
|
30253
30245
|
allChildren.push(child);
|
|
@@ -30356,7 +30348,7 @@ var quill = { exports: {} };
|
|
|
30356
30348
|
Object.defineProperty(exports3, "__esModule", {
|
|
30357
30349
|
value: true
|
|
30358
30350
|
});
|
|
30359
|
-
var _slicedToArray = function() {
|
|
30351
|
+
var _slicedToArray = /* @__PURE__ */ function() {
|
|
30360
30352
|
function sliceIterator(arr, i) {
|
|
30361
30353
|
var _arr = [];
|
|
30362
30354
|
var _n = true;
|
|
@@ -30392,7 +30384,7 @@ var quill = { exports: {} };
|
|
|
30392
30384
|
}
|
|
30393
30385
|
};
|
|
30394
30386
|
}();
|
|
30395
|
-
var _createClass = function() {
|
|
30387
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
30396
30388
|
function defineProperties(target2, props) {
|
|
30397
30389
|
for (var i = 0; i < props.length; i++) {
|
|
30398
30390
|
var descriptor = props[i];
|
|
@@ -30500,10 +30492,10 @@ var quill = { exports: {} };
|
|
|
30500
30492
|
}
|
|
30501
30493
|
}, {
|
|
30502
30494
|
key: "deleteAt",
|
|
30503
|
-
value: function deleteAt(
|
|
30504
|
-
var _line = this.line(
|
|
30505
|
-
var _line3 = this.line(
|
|
30506
|
-
_get2(Scroll2.prototype.__proto__ || Object.getPrototypeOf(Scroll2.prototype), "deleteAt", this).call(this,
|
|
30495
|
+
value: function deleteAt(index2, length) {
|
|
30496
|
+
var _line = this.line(index2), _line2 = _slicedToArray(_line, 2), first = _line2[0], offset = _line2[1];
|
|
30497
|
+
var _line3 = this.line(index2 + length), _line4 = _slicedToArray(_line3, 1), last = _line4[0];
|
|
30498
|
+
_get2(Scroll2.prototype.__proto__ || Object.getPrototypeOf(Scroll2.prototype), "deleteAt", this).call(this, index2, length);
|
|
30507
30499
|
if (last != null && first !== last && offset > 0) {
|
|
30508
30500
|
if (first instanceof _block.BlockEmbed || last instanceof _block.BlockEmbed) {
|
|
30509
30501
|
this.optimize();
|
|
@@ -30538,18 +30530,18 @@ var quill = { exports: {} };
|
|
|
30538
30530
|
}
|
|
30539
30531
|
}, {
|
|
30540
30532
|
key: "formatAt",
|
|
30541
|
-
value: function formatAt(
|
|
30533
|
+
value: function formatAt(index2, length, format3, value) {
|
|
30542
30534
|
if (this.whitelist != null && !this.whitelist[format3])
|
|
30543
30535
|
return;
|
|
30544
|
-
_get2(Scroll2.prototype.__proto__ || Object.getPrototypeOf(Scroll2.prototype), "formatAt", this).call(this,
|
|
30536
|
+
_get2(Scroll2.prototype.__proto__ || Object.getPrototypeOf(Scroll2.prototype), "formatAt", this).call(this, index2, length, format3, value);
|
|
30545
30537
|
this.optimize();
|
|
30546
30538
|
}
|
|
30547
30539
|
}, {
|
|
30548
30540
|
key: "insertAt",
|
|
30549
|
-
value: function insertAt(
|
|
30541
|
+
value: function insertAt(index2, value, def) {
|
|
30550
30542
|
if (def != null && this.whitelist != null && !this.whitelist[value])
|
|
30551
30543
|
return;
|
|
30552
|
-
if (
|
|
30544
|
+
if (index2 >= this.length()) {
|
|
30553
30545
|
if (def == null || _parchment2.default.query(value, _parchment2.default.Scope.BLOCK) == null) {
|
|
30554
30546
|
var blot = _parchment2.default.create(this.statics.defaultChild);
|
|
30555
30547
|
this.appendChild(blot);
|
|
@@ -30562,7 +30554,7 @@ var quill = { exports: {} };
|
|
|
30562
30554
|
this.appendChild(embed);
|
|
30563
30555
|
}
|
|
30564
30556
|
} else {
|
|
30565
|
-
_get2(Scroll2.prototype.__proto__ || Object.getPrototypeOf(Scroll2.prototype), "insertAt", this).call(this,
|
|
30557
|
+
_get2(Scroll2.prototype.__proto__ || Object.getPrototypeOf(Scroll2.prototype), "insertAt", this).call(this, index2, value, def);
|
|
30566
30558
|
}
|
|
30567
30559
|
this.optimize();
|
|
30568
30560
|
}
|
|
@@ -30578,35 +30570,35 @@ var quill = { exports: {} };
|
|
|
30578
30570
|
}
|
|
30579
30571
|
}, {
|
|
30580
30572
|
key: "leaf",
|
|
30581
|
-
value: function leaf(
|
|
30582
|
-
return this.path(
|
|
30573
|
+
value: function leaf(index2) {
|
|
30574
|
+
return this.path(index2).pop() || [null, -1];
|
|
30583
30575
|
}
|
|
30584
30576
|
}, {
|
|
30585
30577
|
key: "line",
|
|
30586
|
-
value: function line(
|
|
30587
|
-
if (
|
|
30588
|
-
return this.line(
|
|
30578
|
+
value: function line(index2) {
|
|
30579
|
+
if (index2 === this.length()) {
|
|
30580
|
+
return this.line(index2 - 1);
|
|
30589
30581
|
}
|
|
30590
|
-
return this.descendant(isLine,
|
|
30582
|
+
return this.descendant(isLine, index2);
|
|
30591
30583
|
}
|
|
30592
30584
|
}, {
|
|
30593
30585
|
key: "lines",
|
|
30594
30586
|
value: function lines() {
|
|
30595
|
-
var
|
|
30587
|
+
var index2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
30596
30588
|
var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE;
|
|
30597
|
-
var getLines2 = function getLines3(blot,
|
|
30589
|
+
var getLines2 = function getLines3(blot, index3, length2) {
|
|
30598
30590
|
var lines2 = [], lengthLeft = length2;
|
|
30599
|
-
blot.children.forEachAt(
|
|
30591
|
+
blot.children.forEachAt(index3, length2, function(child, index4, length3) {
|
|
30600
30592
|
if (isLine(child)) {
|
|
30601
30593
|
lines2.push(child);
|
|
30602
30594
|
} else if (child instanceof _parchment2.default.Container) {
|
|
30603
|
-
lines2 = lines2.concat(getLines3(child,
|
|
30595
|
+
lines2 = lines2.concat(getLines3(child, index4, lengthLeft));
|
|
30604
30596
|
}
|
|
30605
30597
|
lengthLeft -= length3;
|
|
30606
30598
|
});
|
|
30607
30599
|
return lines2;
|
|
30608
30600
|
};
|
|
30609
|
-
return getLines2(this,
|
|
30601
|
+
return getLines2(this, index2, length);
|
|
30610
30602
|
}
|
|
30611
30603
|
}, {
|
|
30612
30604
|
key: "optimize",
|
|
@@ -30622,8 +30614,8 @@ var quill = { exports: {} };
|
|
|
30622
30614
|
}
|
|
30623
30615
|
}, {
|
|
30624
30616
|
key: "path",
|
|
30625
|
-
value: function path(
|
|
30626
|
-
return _get2(Scroll2.prototype.__proto__ || Object.getPrototypeOf(Scroll2.prototype), "path", this).call(this,
|
|
30617
|
+
value: function path(index2) {
|
|
30618
|
+
return _get2(Scroll2.prototype.__proto__ || Object.getPrototypeOf(Scroll2.prototype), "path", this).call(this, index2).slice(1);
|
|
30627
30619
|
}
|
|
30628
30620
|
}, {
|
|
30629
30621
|
key: "update",
|
|
@@ -30667,7 +30659,7 @@ var quill = { exports: {} };
|
|
|
30667
30659
|
} : function(obj) {
|
|
30668
30660
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
30669
30661
|
};
|
|
30670
|
-
var _slicedToArray = function() {
|
|
30662
|
+
var _slicedToArray = /* @__PURE__ */ function() {
|
|
30671
30663
|
function sliceIterator(arr, i) {
|
|
30672
30664
|
var _arr = [];
|
|
30673
30665
|
var _n = true;
|
|
@@ -30703,7 +30695,7 @@ var quill = { exports: {} };
|
|
|
30703
30695
|
}
|
|
30704
30696
|
};
|
|
30705
30697
|
}();
|
|
30706
|
-
var _createClass = function() {
|
|
30698
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
30707
30699
|
function defineProperties(target2, props) {
|
|
30708
30700
|
for (var i = 0; i < props.length; i++) {
|
|
30709
30701
|
var descriptor = props[i];
|
|
@@ -31073,11 +31065,11 @@ var quill = { exports: {} };
|
|
|
31073
31065
|
shiftKey,
|
|
31074
31066
|
altKey: null
|
|
31075
31067
|
}, _defineProperty2(_ref3, where, /^$/), _defineProperty2(_ref3, "handler", function handler(range2) {
|
|
31076
|
-
var
|
|
31068
|
+
var index2 = range2.index;
|
|
31077
31069
|
if (key === Keyboard.keys.RIGHT) {
|
|
31078
|
-
|
|
31070
|
+
index2 += range2.length + 1;
|
|
31079
31071
|
}
|
|
31080
|
-
var _quill$getLeaf3 = this.quill.getLeaf(
|
|
31072
|
+
var _quill$getLeaf3 = this.quill.getLeaf(index2), _quill$getLeaf4 = _slicedToArray(_quill$getLeaf3, 1), leaf = _quill$getLeaf4[0];
|
|
31081
31073
|
if (!(leaf instanceof _parchment2.default.Embed))
|
|
31082
31074
|
return true;
|
|
31083
31075
|
if (key === Keyboard.keys.LEFT) {
|
|
@@ -31182,8 +31174,8 @@ var quill = { exports: {} };
|
|
|
31182
31174
|
format: { "code-block": true },
|
|
31183
31175
|
handler: function handler(range2) {
|
|
31184
31176
|
var CodeBlock = _parchment2.default.query("code-block");
|
|
31185
|
-
var
|
|
31186
|
-
var _quill$scroll$descend = this.quill.scroll.descendant(CodeBlock,
|
|
31177
|
+
var index2 = range2.index, length = range2.length;
|
|
31178
|
+
var _quill$scroll$descend = this.quill.scroll.descendant(CodeBlock, index2), _quill$scroll$descend2 = _slicedToArray(_quill$scroll$descend, 2), block3 = _quill$scroll$descend2[0], offset = _quill$scroll$descend2[1];
|
|
31187
31179
|
if (block3 == null)
|
|
31188
31180
|
return;
|
|
31189
31181
|
var scrollIndex = this.quill.getIndex(block3);
|
|
@@ -31196,7 +31188,7 @@ var quill = { exports: {} };
|
|
|
31196
31188
|
block3.insertAt(start + offset, CodeBlock.TAB);
|
|
31197
31189
|
offset += CodeBlock.TAB.length;
|
|
31198
31190
|
if (i === 0) {
|
|
31199
|
-
|
|
31191
|
+
index2 += CodeBlock.TAB.length;
|
|
31200
31192
|
} else {
|
|
31201
31193
|
length += CodeBlock.TAB.length;
|
|
31202
31194
|
}
|
|
@@ -31204,7 +31196,7 @@ var quill = { exports: {} };
|
|
|
31204
31196
|
block3.deleteAt(start + offset, CodeBlock.TAB.length);
|
|
31205
31197
|
offset -= CodeBlock.TAB.length;
|
|
31206
31198
|
if (i === 0) {
|
|
31207
|
-
|
|
31199
|
+
index2 -= CodeBlock.TAB.length;
|
|
31208
31200
|
} else {
|
|
31209
31201
|
length -= CodeBlock.TAB.length;
|
|
31210
31202
|
}
|
|
@@ -31212,7 +31204,7 @@ var quill = { exports: {} };
|
|
|
31212
31204
|
offset += line.length + 1;
|
|
31213
31205
|
});
|
|
31214
31206
|
this.quill.update(_quill2.default.sources.USER);
|
|
31215
|
-
this.quill.setSelection(
|
|
31207
|
+
this.quill.setSelection(index2, length, _quill2.default.sources.SILENT);
|
|
31216
31208
|
}
|
|
31217
31209
|
};
|
|
31218
31210
|
}
|
|
@@ -31256,7 +31248,7 @@ var quill = { exports: {} };
|
|
|
31256
31248
|
Object.defineProperty(exports3, "__esModule", {
|
|
31257
31249
|
value: true
|
|
31258
31250
|
});
|
|
31259
|
-
var _slicedToArray = function() {
|
|
31251
|
+
var _slicedToArray = /* @__PURE__ */ function() {
|
|
31260
31252
|
function sliceIterator(arr, i) {
|
|
31261
31253
|
var _arr = [];
|
|
31262
31254
|
var _n = true;
|
|
@@ -31313,7 +31305,7 @@ var quill = { exports: {} };
|
|
|
31313
31305
|
return getter.call(receiver);
|
|
31314
31306
|
}
|
|
31315
31307
|
};
|
|
31316
|
-
var _createClass = function() {
|
|
31308
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
31317
31309
|
function defineProperties(target2, props) {
|
|
31318
31310
|
for (var i = 0; i < props.length; i++) {
|
|
31319
31311
|
var descriptor = props[i];
|
|
@@ -31387,21 +31379,21 @@ var quill = { exports: {} };
|
|
|
31387
31379
|
if (this._length !== 0) {
|
|
31388
31380
|
return _get2(Cursor2.prototype.__proto__ || Object.getPrototypeOf(Cursor2.prototype), "format", this).call(this, name, value);
|
|
31389
31381
|
}
|
|
31390
|
-
var target2 = this,
|
|
31382
|
+
var target2 = this, index2 = 0;
|
|
31391
31383
|
while (target2 != null && target2.statics.scope !== _parchment2.default.Scope.BLOCK_BLOT) {
|
|
31392
|
-
|
|
31384
|
+
index2 += target2.offset(target2.parent);
|
|
31393
31385
|
target2 = target2.parent;
|
|
31394
31386
|
}
|
|
31395
31387
|
if (target2 != null) {
|
|
31396
31388
|
this._length = Cursor2.CONTENTS.length;
|
|
31397
31389
|
target2.optimize();
|
|
31398
|
-
target2.formatAt(
|
|
31390
|
+
target2.formatAt(index2, Cursor2.CONTENTS.length, name, value);
|
|
31399
31391
|
this._length = 0;
|
|
31400
31392
|
}
|
|
31401
31393
|
}
|
|
31402
31394
|
}, {
|
|
31403
31395
|
key: "index",
|
|
31404
|
-
value: function
|
|
31396
|
+
value: function index2(node2, offset) {
|
|
31405
31397
|
if (node2 === this.textNode)
|
|
31406
31398
|
return 0;
|
|
31407
31399
|
return _get2(Cursor2.prototype.__proto__ || Object.getPrototypeOf(Cursor2.prototype), "index", this).call(this, node2, offset);
|
|
@@ -31544,7 +31536,7 @@ var quill = { exports: {} };
|
|
|
31544
31536
|
value: true
|
|
31545
31537
|
});
|
|
31546
31538
|
exports3.ColorStyle = exports3.ColorClass = exports3.ColorAttributor = void 0;
|
|
31547
|
-
var _createClass = function() {
|
|
31539
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
31548
31540
|
function defineProperties(target2, props) {
|
|
31549
31541
|
for (var i = 0; i < props.length; i++) {
|
|
31550
31542
|
var descriptor = props[i];
|
|
@@ -31645,7 +31637,7 @@ var quill = { exports: {} };
|
|
|
31645
31637
|
value: true
|
|
31646
31638
|
});
|
|
31647
31639
|
exports3.sanitize = exports3.default = void 0;
|
|
31648
|
-
var _createClass = function() {
|
|
31640
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
31649
31641
|
function defineProperties(target2, props) {
|
|
31650
31642
|
for (var i = 0; i < props.length; i++) {
|
|
31651
31643
|
var descriptor = props[i];
|
|
@@ -31770,7 +31762,7 @@ var quill = { exports: {} };
|
|
|
31770
31762
|
} : function(obj) {
|
|
31771
31763
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
31772
31764
|
};
|
|
31773
|
-
var _createClass = function() {
|
|
31765
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
31774
31766
|
function defineProperties(target2, props) {
|
|
31775
31767
|
for (var i = 0; i < props.length; i++) {
|
|
31776
31768
|
var descriptor = props[i];
|
|
@@ -32095,12 +32087,12 @@ var quill = { exports: {} };
|
|
|
32095
32087
|
this.parent.removeChild(this);
|
|
32096
32088
|
delete this.domNode[Registry.DATA_KEY];
|
|
32097
32089
|
};
|
|
32098
|
-
ShadowBlot2.prototype.deleteAt = function(
|
|
32099
|
-
var blot = this.isolate(
|
|
32090
|
+
ShadowBlot2.prototype.deleteAt = function(index2, length) {
|
|
32091
|
+
var blot = this.isolate(index2, length);
|
|
32100
32092
|
blot.remove();
|
|
32101
32093
|
};
|
|
32102
|
-
ShadowBlot2.prototype.formatAt = function(
|
|
32103
|
-
var blot = this.isolate(
|
|
32094
|
+
ShadowBlot2.prototype.formatAt = function(index2, length, name, value) {
|
|
32095
|
+
var blot = this.isolate(index2, length);
|
|
32104
32096
|
if (Registry.query(name, Registry.Scope.BLOT) != null && value) {
|
|
32105
32097
|
blot.wrap(name, value);
|
|
32106
32098
|
} else if (Registry.query(name, Registry.Scope.ATTRIBUTE) != null) {
|
|
@@ -32109,9 +32101,9 @@ var quill = { exports: {} };
|
|
|
32109
32101
|
parent.format(name, value);
|
|
32110
32102
|
}
|
|
32111
32103
|
};
|
|
32112
|
-
ShadowBlot2.prototype.insertAt = function(
|
|
32104
|
+
ShadowBlot2.prototype.insertAt = function(index2, value, def) {
|
|
32113
32105
|
var blot = def == null ? Registry.create("text", value) : Registry.create(value, def);
|
|
32114
|
-
var ref = this.split(
|
|
32106
|
+
var ref = this.split(index2);
|
|
32115
32107
|
this.parent.insertBefore(blot, ref);
|
|
32116
32108
|
};
|
|
32117
32109
|
ShadowBlot2.prototype.insertInto = function(parentBlot, refBlot) {
|
|
@@ -32132,8 +32124,8 @@ var quill = { exports: {} };
|
|
|
32132
32124
|
this.parent = parentBlot;
|
|
32133
32125
|
this.attach();
|
|
32134
32126
|
};
|
|
32135
|
-
ShadowBlot2.prototype.isolate = function(
|
|
32136
|
-
var target2 = this.split(
|
|
32127
|
+
ShadowBlot2.prototype.isolate = function(index2, length) {
|
|
32128
|
+
var target2 = this.split(index2);
|
|
32137
32129
|
target2.split(length);
|
|
32138
32130
|
return target2;
|
|
32139
32131
|
};
|
|
@@ -32170,8 +32162,8 @@ var quill = { exports: {} };
|
|
|
32170
32162
|
replacement.replace(this);
|
|
32171
32163
|
return replacement;
|
|
32172
32164
|
};
|
|
32173
|
-
ShadowBlot2.prototype.split = function(
|
|
32174
|
-
return
|
|
32165
|
+
ShadowBlot2.prototype.split = function(index2, force) {
|
|
32166
|
+
return index2 === 0 ? this : this.next;
|
|
32175
32167
|
};
|
|
32176
32168
|
ShadowBlot2.prototype.update = function(mutations, context2) {
|
|
32177
32169
|
};
|
|
@@ -32392,7 +32384,7 @@ var quill = { exports: {} };
|
|
|
32392
32384
|
Object.defineProperty(exports3, "__esModule", {
|
|
32393
32385
|
value: true
|
|
32394
32386
|
});
|
|
32395
|
-
var _createClass = function() {
|
|
32387
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
32396
32388
|
function defineProperties(target2, props) {
|
|
32397
32389
|
for (var i = 0; i < props.length; i++) {
|
|
32398
32390
|
var descriptor = props[i];
|
|
@@ -32457,7 +32449,7 @@ var quill = { exports: {} };
|
|
|
32457
32449
|
Object.defineProperty(exports3, "__esModule", {
|
|
32458
32450
|
value: true
|
|
32459
32451
|
});
|
|
32460
|
-
var _createClass = function() {
|
|
32452
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
32461
32453
|
function defineProperties(target2, props) {
|
|
32462
32454
|
for (var i = 0; i < props.length; i++) {
|
|
32463
32455
|
var descriptor = props[i];
|
|
@@ -32543,7 +32535,7 @@ var quill = { exports: {} };
|
|
|
32543
32535
|
}
|
|
32544
32536
|
_createClass(Embed2, [{
|
|
32545
32537
|
key: "index",
|
|
32546
|
-
value: function
|
|
32538
|
+
value: function index2(node2, offset) {
|
|
32547
32539
|
if (node2 === this.leftGuard)
|
|
32548
32540
|
return 0;
|
|
32549
32541
|
if (node2 === this.rightGuard)
|
|
@@ -32682,7 +32674,7 @@ var quill = { exports: {} };
|
|
|
32682
32674
|
value: true
|
|
32683
32675
|
});
|
|
32684
32676
|
exports3.FontClass = exports3.FontStyle = void 0;
|
|
32685
|
-
var _createClass = function() {
|
|
32677
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
32686
32678
|
function defineProperties(target2, props) {
|
|
32687
32679
|
for (var i = 0; i < props.length; i++) {
|
|
32688
32680
|
var descriptor = props[i];
|
|
@@ -32852,7 +32844,7 @@ var quill = { exports: {} };
|
|
|
32852
32844
|
value: true
|
|
32853
32845
|
});
|
|
32854
32846
|
exports3.getLastChangeIndex = exports3.default = void 0;
|
|
32855
|
-
var _createClass = function() {
|
|
32847
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
32856
32848
|
function defineProperties(target2, props) {
|
|
32857
32849
|
for (var i = 0; i < props.length; i++) {
|
|
32858
32850
|
var descriptor = props[i];
|
|
@@ -32934,8 +32926,8 @@ var quill = { exports: {} };
|
|
|
32934
32926
|
this.ignoreChange = true;
|
|
32935
32927
|
this.quill.updateContents(delta2[source], _quill2.default.sources.USER);
|
|
32936
32928
|
this.ignoreChange = false;
|
|
32937
|
-
var
|
|
32938
|
-
this.quill.setSelection(
|
|
32929
|
+
var index2 = getLastChangeIndex(delta2[source]);
|
|
32930
|
+
this.quill.setSelection(index2);
|
|
32939
32931
|
}
|
|
32940
32932
|
}, {
|
|
32941
32933
|
key: "clear",
|
|
@@ -33035,7 +33027,7 @@ var quill = { exports: {} };
|
|
|
33035
33027
|
value: true
|
|
33036
33028
|
});
|
|
33037
33029
|
exports3.default = exports3.BaseTooltip = void 0;
|
|
33038
|
-
var _createClass = function() {
|
|
33030
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
33039
33031
|
function defineProperties(target2, props) {
|
|
33040
33032
|
for (var i = 0; i < props.length; i++) {
|
|
33041
33033
|
var descriptor = props[i];
|
|
@@ -33330,12 +33322,12 @@ var quill = { exports: {} };
|
|
|
33330
33322
|
break;
|
|
33331
33323
|
var range2 = this.quill.getSelection(true);
|
|
33332
33324
|
if (range2 != null) {
|
|
33333
|
-
var
|
|
33334
|
-
this.quill.insertEmbed(
|
|
33325
|
+
var index2 = range2.index + range2.length;
|
|
33326
|
+
this.quill.insertEmbed(index2, this.root.getAttribute("data-mode"), value, _emitter2.default.sources.USER);
|
|
33335
33327
|
if (this.root.getAttribute("data-mode") === "formula") {
|
|
33336
|
-
this.quill.insertText(
|
|
33328
|
+
this.quill.insertText(index2 + 1, " ", _emitter2.default.sources.USER);
|
|
33337
33329
|
}
|
|
33338
|
-
this.quill.setSelection(
|
|
33330
|
+
this.quill.setSelection(index2 + 2, _emitter2.default.sources.USER);
|
|
33339
33331
|
}
|
|
33340
33332
|
break;
|
|
33341
33333
|
}
|
|
@@ -33424,11 +33416,11 @@ var quill = { exports: {} };
|
|
|
33424
33416
|
this.length += 1;
|
|
33425
33417
|
};
|
|
33426
33418
|
LinkedList2.prototype.offset = function(target2) {
|
|
33427
|
-
var
|
|
33419
|
+
var index2 = 0, cur = this.head;
|
|
33428
33420
|
while (cur != null) {
|
|
33429
33421
|
if (cur === target2)
|
|
33430
|
-
return
|
|
33431
|
-
|
|
33422
|
+
return index2;
|
|
33423
|
+
index2 += cur.length();
|
|
33432
33424
|
cur = cur.next;
|
|
33433
33425
|
}
|
|
33434
33426
|
return -1;
|
|
@@ -33457,17 +33449,17 @@ var quill = { exports: {} };
|
|
|
33457
33449
|
return ret;
|
|
33458
33450
|
};
|
|
33459
33451
|
};
|
|
33460
|
-
LinkedList2.prototype.find = function(
|
|
33452
|
+
LinkedList2.prototype.find = function(index2, inclusive) {
|
|
33461
33453
|
if (inclusive === void 0) {
|
|
33462
33454
|
inclusive = false;
|
|
33463
33455
|
}
|
|
33464
33456
|
var cur, next2 = this.iterator();
|
|
33465
33457
|
while (cur = next2()) {
|
|
33466
33458
|
var length = cur.length();
|
|
33467
|
-
if (
|
|
33468
|
-
return [cur,
|
|
33459
|
+
if (index2 < length || inclusive && index2 === length && (cur.next == null || cur.next.length() !== 0)) {
|
|
33460
|
+
return [cur, index2];
|
|
33469
33461
|
}
|
|
33470
|
-
|
|
33462
|
+
index2 -= length;
|
|
33471
33463
|
}
|
|
33472
33464
|
return [null, 0];
|
|
33473
33465
|
};
|
|
@@ -33477,17 +33469,17 @@ var quill = { exports: {} };
|
|
|
33477
33469
|
callback(cur);
|
|
33478
33470
|
}
|
|
33479
33471
|
};
|
|
33480
|
-
LinkedList2.prototype.forEachAt = function(
|
|
33472
|
+
LinkedList2.prototype.forEachAt = function(index2, length, callback) {
|
|
33481
33473
|
if (length <= 0)
|
|
33482
33474
|
return;
|
|
33483
|
-
var _a = this.find(
|
|
33484
|
-
var cur, curIndex =
|
|
33485
|
-
while ((cur = next2()) && curIndex <
|
|
33475
|
+
var _a = this.find(index2), startNode = _a[0], offset = _a[1];
|
|
33476
|
+
var cur, curIndex = index2 - offset, next2 = this.iterator(startNode);
|
|
33477
|
+
while ((cur = next2()) && curIndex < index2 + length) {
|
|
33486
33478
|
var curLength = cur.length();
|
|
33487
|
-
if (
|
|
33488
|
-
callback(cur,
|
|
33479
|
+
if (index2 > curIndex) {
|
|
33480
|
+
callback(cur, index2 - curIndex, Math.min(length, curIndex + curLength - index2));
|
|
33489
33481
|
} else {
|
|
33490
|
-
callback(cur, 0, Math.min(curLength,
|
|
33482
|
+
callback(cur, 0, Math.min(curLength, index2 + length - curIndex));
|
|
33491
33483
|
}
|
|
33492
33484
|
curIndex += curLength;
|
|
33493
33485
|
}
|
|
@@ -33558,23 +33550,23 @@ var quill = { exports: {} };
|
|
|
33558
33550
|
_super.prototype.detach.call(this);
|
|
33559
33551
|
this.observer.disconnect();
|
|
33560
33552
|
};
|
|
33561
|
-
ScrollBlot2.prototype.deleteAt = function(
|
|
33553
|
+
ScrollBlot2.prototype.deleteAt = function(index2, length) {
|
|
33562
33554
|
this.update();
|
|
33563
|
-
if (
|
|
33555
|
+
if (index2 === 0 && length === this.length()) {
|
|
33564
33556
|
this.children.forEach(function(child) {
|
|
33565
33557
|
child.remove();
|
|
33566
33558
|
});
|
|
33567
33559
|
} else {
|
|
33568
|
-
_super.prototype.deleteAt.call(this,
|
|
33560
|
+
_super.prototype.deleteAt.call(this, index2, length);
|
|
33569
33561
|
}
|
|
33570
33562
|
};
|
|
33571
|
-
ScrollBlot2.prototype.formatAt = function(
|
|
33563
|
+
ScrollBlot2.prototype.formatAt = function(index2, length, name, value) {
|
|
33572
33564
|
this.update();
|
|
33573
|
-
_super.prototype.formatAt.call(this,
|
|
33565
|
+
_super.prototype.formatAt.call(this, index2, length, name, value);
|
|
33574
33566
|
};
|
|
33575
|
-
ScrollBlot2.prototype.insertAt = function(
|
|
33567
|
+
ScrollBlot2.prototype.insertAt = function(index2, value, def) {
|
|
33576
33568
|
this.update();
|
|
33577
|
-
_super.prototype.insertAt.call(this,
|
|
33569
|
+
_super.prototype.insertAt.call(this, index2, value, def);
|
|
33578
33570
|
};
|
|
33579
33571
|
ScrollBlot2.prototype.optimize = function(mutations, context2) {
|
|
33580
33572
|
var _this = this;
|
|
@@ -33743,12 +33735,12 @@ var quill = { exports: {} };
|
|
|
33743
33735
|
_super.prototype.format.call(this, name, value);
|
|
33744
33736
|
}
|
|
33745
33737
|
};
|
|
33746
|
-
InlineBlot2.prototype.formatAt = function(
|
|
33738
|
+
InlineBlot2.prototype.formatAt = function(index2, length, name, value) {
|
|
33747
33739
|
if (this.formats()[name] != null || Registry.query(name, Registry.Scope.ATTRIBUTE)) {
|
|
33748
|
-
var blot = this.isolate(
|
|
33740
|
+
var blot = this.isolate(index2, length);
|
|
33749
33741
|
blot.format(name, value);
|
|
33750
33742
|
} else {
|
|
33751
|
-
_super.prototype.formatAt.call(this,
|
|
33743
|
+
_super.prototype.formatAt.call(this, index2, length, name, value);
|
|
33752
33744
|
}
|
|
33753
33745
|
};
|
|
33754
33746
|
InlineBlot2.prototype.optimize = function(context2) {
|
|
@@ -33815,18 +33807,18 @@ var quill = { exports: {} };
|
|
|
33815
33807
|
_super.prototype.format.call(this, name, value);
|
|
33816
33808
|
}
|
|
33817
33809
|
};
|
|
33818
|
-
BlockBlot2.prototype.formatAt = function(
|
|
33810
|
+
BlockBlot2.prototype.formatAt = function(index2, length, name, value) {
|
|
33819
33811
|
if (Registry.query(name, Registry.Scope.BLOCK) != null) {
|
|
33820
33812
|
this.format(name, value);
|
|
33821
33813
|
} else {
|
|
33822
|
-
_super.prototype.formatAt.call(this,
|
|
33814
|
+
_super.prototype.formatAt.call(this, index2, length, name, value);
|
|
33823
33815
|
}
|
|
33824
33816
|
};
|
|
33825
|
-
BlockBlot2.prototype.insertAt = function(
|
|
33817
|
+
BlockBlot2.prototype.insertAt = function(index2, value, def) {
|
|
33826
33818
|
if (def == null || Registry.query(value, Registry.Scope.INLINE) != null) {
|
|
33827
|
-
_super.prototype.insertAt.call(this,
|
|
33819
|
+
_super.prototype.insertAt.call(this, index2, value, def);
|
|
33828
33820
|
} else {
|
|
33829
|
-
var after = this.split(
|
|
33821
|
+
var after = this.split(index2);
|
|
33830
33822
|
var blot = Registry.create(value, def);
|
|
33831
33823
|
after.parent.insertBefore(blot, after);
|
|
33832
33824
|
}
|
|
@@ -33880,11 +33872,11 @@ var quill = { exports: {} };
|
|
|
33880
33872
|
EmbedBlot2.prototype.format = function(name, value) {
|
|
33881
33873
|
_super.prototype.formatAt.call(this, 0, this.length(), name, value);
|
|
33882
33874
|
};
|
|
33883
|
-
EmbedBlot2.prototype.formatAt = function(
|
|
33884
|
-
if (
|
|
33875
|
+
EmbedBlot2.prototype.formatAt = function(index2, length, name, value) {
|
|
33876
|
+
if (index2 === 0 && length === this.length()) {
|
|
33885
33877
|
this.format(name, value);
|
|
33886
33878
|
} else {
|
|
33887
|
-
_super.prototype.formatAt.call(this,
|
|
33879
|
+
_super.prototype.formatAt.call(this, index2, length, name, value);
|
|
33888
33880
|
}
|
|
33889
33881
|
};
|
|
33890
33882
|
EmbedBlot2.prototype.formats = function() {
|
|
@@ -33935,8 +33927,8 @@ var quill = { exports: {} };
|
|
|
33935
33927
|
text3 = text3["normalize"]();
|
|
33936
33928
|
return text3;
|
|
33937
33929
|
};
|
|
33938
|
-
TextBlot2.prototype.deleteAt = function(
|
|
33939
|
-
this.domNode.data = this.text = this.text.slice(0,
|
|
33930
|
+
TextBlot2.prototype.deleteAt = function(index2, length) {
|
|
33931
|
+
this.domNode.data = this.text = this.text.slice(0, index2) + this.text.slice(index2 + length);
|
|
33940
33932
|
};
|
|
33941
33933
|
TextBlot2.prototype.index = function(node2, offset) {
|
|
33942
33934
|
if (this.domNode === node2) {
|
|
@@ -33944,12 +33936,12 @@ var quill = { exports: {} };
|
|
|
33944
33936
|
}
|
|
33945
33937
|
return -1;
|
|
33946
33938
|
};
|
|
33947
|
-
TextBlot2.prototype.insertAt = function(
|
|
33939
|
+
TextBlot2.prototype.insertAt = function(index2, value, def) {
|
|
33948
33940
|
if (def == null) {
|
|
33949
|
-
this.text = this.text.slice(0,
|
|
33941
|
+
this.text = this.text.slice(0, index2) + value + this.text.slice(index2);
|
|
33950
33942
|
this.domNode.data = this.text;
|
|
33951
33943
|
} else {
|
|
33952
|
-
_super.prototype.insertAt.call(this,
|
|
33944
|
+
_super.prototype.insertAt.call(this, index2, value, def);
|
|
33953
33945
|
}
|
|
33954
33946
|
};
|
|
33955
33947
|
TextBlot2.prototype.length = function() {
|
|
@@ -33965,20 +33957,20 @@ var quill = { exports: {} };
|
|
|
33965
33957
|
this.next.remove();
|
|
33966
33958
|
}
|
|
33967
33959
|
};
|
|
33968
|
-
TextBlot2.prototype.position = function(
|
|
33969
|
-
return [this.domNode,
|
|
33960
|
+
TextBlot2.prototype.position = function(index2, inclusive) {
|
|
33961
|
+
return [this.domNode, index2];
|
|
33970
33962
|
};
|
|
33971
|
-
TextBlot2.prototype.split = function(
|
|
33963
|
+
TextBlot2.prototype.split = function(index2, force) {
|
|
33972
33964
|
if (force === void 0) {
|
|
33973
33965
|
force = false;
|
|
33974
33966
|
}
|
|
33975
33967
|
if (!force) {
|
|
33976
|
-
if (
|
|
33968
|
+
if (index2 === 0)
|
|
33977
33969
|
return this;
|
|
33978
|
-
if (
|
|
33970
|
+
if (index2 === this.length())
|
|
33979
33971
|
return this.next;
|
|
33980
33972
|
}
|
|
33981
|
-
var after = Registry.create(this.domNode.splitText(
|
|
33973
|
+
var after = Registry.create(this.domNode.splitText(index2));
|
|
33982
33974
|
this.parent.insertBefore(after, this.next);
|
|
33983
33975
|
this.text = this.statics.value(this.domNode);
|
|
33984
33976
|
return after;
|
|
@@ -34761,7 +34753,7 @@ var quill = { exports: {} };
|
|
|
34761
34753
|
} : function(obj) {
|
|
34762
34754
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
34763
34755
|
};
|
|
34764
|
-
var _slicedToArray = function() {
|
|
34756
|
+
var _slicedToArray = /* @__PURE__ */ function() {
|
|
34765
34757
|
function sliceIterator(arr, i) {
|
|
34766
34758
|
var _arr = [];
|
|
34767
34759
|
var _n = true;
|
|
@@ -34797,7 +34789,7 @@ var quill = { exports: {} };
|
|
|
34797
34789
|
}
|
|
34798
34790
|
};
|
|
34799
34791
|
}();
|
|
34800
|
-
var _createClass = function() {
|
|
34792
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
34801
34793
|
function defineProperties(target2, props) {
|
|
34802
34794
|
for (var i = 0; i < props.length; i++) {
|
|
34803
34795
|
var descriptor = props[i];
|
|
@@ -34924,15 +34916,15 @@ var quill = { exports: {} };
|
|
|
34924
34916
|
}
|
|
34925
34917
|
}, {
|
|
34926
34918
|
key: "dangerouslyPasteHTML",
|
|
34927
|
-
value: function dangerouslyPasteHTML(
|
|
34919
|
+
value: function dangerouslyPasteHTML(index2, html2) {
|
|
34928
34920
|
var source = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _quill2.default.sources.API;
|
|
34929
|
-
if (typeof
|
|
34930
|
-
this.quill.setContents(this.convert(
|
|
34921
|
+
if (typeof index2 === "string") {
|
|
34922
|
+
this.quill.setContents(this.convert(index2), html2);
|
|
34931
34923
|
this.quill.setSelection(0, _quill2.default.sources.SILENT);
|
|
34932
34924
|
} else {
|
|
34933
34925
|
var paste = this.convert(html2);
|
|
34934
|
-
this.quill.updateContents(new _quillDelta2.default().retain(
|
|
34935
|
-
this.quill.setSelection(
|
|
34926
|
+
this.quill.updateContents(new _quillDelta2.default().retain(index2).concat(paste), source);
|
|
34927
|
+
this.quill.setSelection(index2 + paste.length(), _quill2.default.sources.SILENT);
|
|
34936
34928
|
}
|
|
34937
34929
|
}
|
|
34938
34930
|
}, {
|
|
@@ -35186,7 +35178,7 @@ var quill = { exports: {} };
|
|
|
35186
35178
|
Object.defineProperty(exports3, "__esModule", {
|
|
35187
35179
|
value: true
|
|
35188
35180
|
});
|
|
35189
|
-
var _createClass = function() {
|
|
35181
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
35190
35182
|
function defineProperties(target2, props) {
|
|
35191
35183
|
for (var i = 0; i < props.length; i++) {
|
|
35192
35184
|
var descriptor = props[i];
|
|
@@ -35288,7 +35280,7 @@ var quill = { exports: {} };
|
|
|
35288
35280
|
value: true
|
|
35289
35281
|
});
|
|
35290
35282
|
exports3.addControls = exports3.default = void 0;
|
|
35291
|
-
var _slicedToArray = function() {
|
|
35283
|
+
var _slicedToArray = /* @__PURE__ */ function() {
|
|
35292
35284
|
function sliceIterator(arr, i) {
|
|
35293
35285
|
var _arr = [];
|
|
35294
35286
|
var _n = true;
|
|
@@ -35324,7 +35316,7 @@ var quill = { exports: {} };
|
|
|
35324
35316
|
}
|
|
35325
35317
|
};
|
|
35326
35318
|
}();
|
|
35327
|
-
var _createClass = function() {
|
|
35319
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
35328
35320
|
function defineProperties(target2, props) {
|
|
35329
35321
|
for (var i = 0; i < props.length; i++) {
|
|
35330
35322
|
var descriptor = props[i];
|
|
@@ -35648,7 +35640,7 @@ var quill = { exports: {} };
|
|
|
35648
35640
|
Object.defineProperty(exports3, "__esModule", {
|
|
35649
35641
|
value: true
|
|
35650
35642
|
});
|
|
35651
|
-
var _createClass = function() {
|
|
35643
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
35652
35644
|
function defineProperties(target2, props) {
|
|
35653
35645
|
for (var i = 0; i < props.length; i++) {
|
|
35654
35646
|
var descriptor = props[i];
|
|
@@ -35756,7 +35748,7 @@ var quill = { exports: {} };
|
|
|
35756
35748
|
Object.defineProperty(exports3, "__esModule", {
|
|
35757
35749
|
value: true
|
|
35758
35750
|
});
|
|
35759
|
-
var _createClass = function() {
|
|
35751
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
35760
35752
|
function defineProperties(target2, props) {
|
|
35761
35753
|
for (var i = 0; i < props.length; i++) {
|
|
35762
35754
|
var descriptor = props[i];
|
|
@@ -35851,7 +35843,7 @@ var quill = { exports: {} };
|
|
|
35851
35843
|
Object.defineProperty(exports3, "__esModule", {
|
|
35852
35844
|
value: true
|
|
35853
35845
|
});
|
|
35854
|
-
var _createClass = function() {
|
|
35846
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
35855
35847
|
function defineProperties(target2, props) {
|
|
35856
35848
|
for (var i = 0; i < props.length; i++) {
|
|
35857
35849
|
var descriptor = props[i];
|
|
@@ -35939,7 +35931,7 @@ var quill = { exports: {} };
|
|
|
35939
35931
|
Object.defineProperty(exports3, "__esModule", {
|
|
35940
35932
|
value: true
|
|
35941
35933
|
});
|
|
35942
|
-
var _slicedToArray = function() {
|
|
35934
|
+
var _slicedToArray = /* @__PURE__ */ function() {
|
|
35943
35935
|
function sliceIterator(arr, i) {
|
|
35944
35936
|
var _arr = [];
|
|
35945
35937
|
var _n = true;
|
|
@@ -35996,7 +35988,7 @@ var quill = { exports: {} };
|
|
|
35996
35988
|
return getter.call(receiver);
|
|
35997
35989
|
}
|
|
35998
35990
|
};
|
|
35999
|
-
var _createClass = function() {
|
|
35991
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
36000
35992
|
function defineProperties(target2, props) {
|
|
36001
35993
|
for (var i = 0; i < props.length; i++) {
|
|
36002
35994
|
var descriptor = props[i];
|
|
@@ -36281,7 +36273,7 @@ var quill = { exports: {} };
|
|
|
36281
36273
|
value: true
|
|
36282
36274
|
});
|
|
36283
36275
|
exports3.IndentClass = void 0;
|
|
36284
|
-
var _createClass = function() {
|
|
36276
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
36285
36277
|
function defineProperties(target2, props) {
|
|
36286
36278
|
for (var i = 0; i < props.length; i++) {
|
|
36287
36279
|
var descriptor = props[i];
|
|
@@ -36432,7 +36424,7 @@ var quill = { exports: {} };
|
|
|
36432
36424
|
Object.defineProperty(exports3, "__esModule", {
|
|
36433
36425
|
value: true
|
|
36434
36426
|
});
|
|
36435
|
-
var _createClass = function() {
|
|
36427
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
36436
36428
|
function defineProperties(target2, props) {
|
|
36437
36429
|
for (var i = 0; i < props.length; i++) {
|
|
36438
36430
|
var descriptor = props[i];
|
|
@@ -36500,7 +36492,7 @@ var quill = { exports: {} };
|
|
|
36500
36492
|
value: true
|
|
36501
36493
|
});
|
|
36502
36494
|
exports3.default = exports3.ListItem = void 0;
|
|
36503
|
-
var _createClass = function() {
|
|
36495
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
36504
36496
|
function defineProperties(target2, props) {
|
|
36505
36497
|
for (var i = 0; i < props.length; i++) {
|
|
36506
36498
|
var descriptor = props[i];
|
|
@@ -36685,8 +36677,8 @@ var quill = { exports: {} };
|
|
|
36685
36677
|
if (blot instanceof ListItem) {
|
|
36686
36678
|
_get2(List2.prototype.__proto__ || Object.getPrototypeOf(List2.prototype), "insertBefore", this).call(this, blot, ref);
|
|
36687
36679
|
} else {
|
|
36688
|
-
var
|
|
36689
|
-
var after = this.split(
|
|
36680
|
+
var index2 = ref == null ? this.length() : ref.offset(this);
|
|
36681
|
+
var after = this.split(index2);
|
|
36690
36682
|
after.parent.insertBefore(blot, after);
|
|
36691
36683
|
}
|
|
36692
36684
|
}
|
|
@@ -36769,7 +36761,7 @@ var quill = { exports: {} };
|
|
|
36769
36761
|
Object.defineProperty(exports3, "__esModule", {
|
|
36770
36762
|
value: true
|
|
36771
36763
|
});
|
|
36772
|
-
var _createClass = function() {
|
|
36764
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
36773
36765
|
function defineProperties(target2, props) {
|
|
36774
36766
|
for (var i = 0; i < props.length; i++) {
|
|
36775
36767
|
var descriptor = props[i];
|
|
@@ -36956,7 +36948,7 @@ var quill = { exports: {} };
|
|
|
36956
36948
|
Object.defineProperty(exports3, "__esModule", {
|
|
36957
36949
|
value: true
|
|
36958
36950
|
});
|
|
36959
|
-
var _createClass = function() {
|
|
36951
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
36960
36952
|
function defineProperties(target2, props) {
|
|
36961
36953
|
for (var i = 0; i < props.length; i++) {
|
|
36962
36954
|
var descriptor = props[i];
|
|
@@ -37088,7 +37080,7 @@ var quill = { exports: {} };
|
|
|
37088
37080
|
Object.defineProperty(exports3, "__esModule", {
|
|
37089
37081
|
value: true
|
|
37090
37082
|
});
|
|
37091
|
-
var _createClass = function() {
|
|
37083
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
37092
37084
|
function defineProperties(target2, props) {
|
|
37093
37085
|
for (var i = 0; i < props.length; i++) {
|
|
37094
37086
|
var descriptor = props[i];
|
|
@@ -37217,7 +37209,7 @@ var quill = { exports: {} };
|
|
|
37217
37209
|
value: true
|
|
37218
37210
|
});
|
|
37219
37211
|
exports3.default = exports3.FormulaBlot = void 0;
|
|
37220
|
-
var _createClass = function() {
|
|
37212
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
37221
37213
|
function defineProperties(target2, props) {
|
|
37222
37214
|
for (var i = 0; i < props.length; i++) {
|
|
37223
37215
|
var descriptor = props[i];
|
|
@@ -37343,7 +37335,7 @@ var quill = { exports: {} };
|
|
|
37343
37335
|
value: true
|
|
37344
37336
|
});
|
|
37345
37337
|
exports3.default = exports3.CodeToken = exports3.CodeBlock = void 0;
|
|
37346
|
-
var _createClass = function() {
|
|
37338
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
37347
37339
|
function defineProperties(target2, props) {
|
|
37348
37340
|
for (var i = 0; i < props.length; i++) {
|
|
37349
37341
|
var descriptor = props[i];
|
|
@@ -37694,7 +37686,7 @@ var quill = { exports: {} };
|
|
|
37694
37686
|
return getter.call(receiver);
|
|
37695
37687
|
}
|
|
37696
37688
|
};
|
|
37697
|
-
var _createClass = function() {
|
|
37689
|
+
var _createClass = /* @__PURE__ */ function() {
|
|
37698
37690
|
function defineProperties(target2, props) {
|
|
37699
37691
|
for (var i = 0; i < props.length; i++) {
|
|
37700
37692
|
var descriptor = props[i];
|
|
@@ -37800,9 +37792,9 @@ var quill = { exports: {} };
|
|
|
37800
37792
|
_this2.position(_this2.quill.getBounds(range2));
|
|
37801
37793
|
} else {
|
|
37802
37794
|
var lastLine = lines[lines.length - 1];
|
|
37803
|
-
var
|
|
37804
|
-
var length = Math.min(lastLine.length() - 1, range2.index + range2.length -
|
|
37805
|
-
var _bounds = _this2.quill.getBounds(new _selection.Range(
|
|
37795
|
+
var index2 = _this2.quill.getIndex(lastLine);
|
|
37796
|
+
var length = Math.min(lastLine.length() - 1, range2.index + range2.length - index2);
|
|
37797
|
+
var _bounds = _this2.quill.getBounds(new _selection.Range(index2, length));
|
|
37806
37798
|
_this2.position(_bounds);
|
|
37807
37799
|
}
|
|
37808
37800
|
} else if (document.activeElement !== _this2.textbox && _this2.quill.hasFocus()) {
|
|
@@ -38232,17 +38224,17 @@ lodash.exports;
|
|
|
38232
38224
|
return func.apply(thisArg, args);
|
|
38233
38225
|
}
|
|
38234
38226
|
function arrayAggregator(array, setter, iteratee, accumulator) {
|
|
38235
|
-
var
|
|
38236
|
-
while (++
|
|
38237
|
-
var value = array[
|
|
38227
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
38228
|
+
while (++index2 < length) {
|
|
38229
|
+
var value = array[index2];
|
|
38238
38230
|
setter(accumulator, value, iteratee(value), array);
|
|
38239
38231
|
}
|
|
38240
38232
|
return accumulator;
|
|
38241
38233
|
}
|
|
38242
38234
|
function arrayEach(array, iteratee) {
|
|
38243
|
-
var
|
|
38244
|
-
while (++
|
|
38245
|
-
if (iteratee(array[
|
|
38235
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
38236
|
+
while (++index2 < length) {
|
|
38237
|
+
if (iteratee(array[index2], index2, array) === false) {
|
|
38246
38238
|
break;
|
|
38247
38239
|
}
|
|
38248
38240
|
}
|
|
@@ -38258,19 +38250,19 @@ lodash.exports;
|
|
|
38258
38250
|
return array;
|
|
38259
38251
|
}
|
|
38260
38252
|
function arrayEvery(array, predicate) {
|
|
38261
|
-
var
|
|
38262
|
-
while (++
|
|
38263
|
-
if (!predicate(array[
|
|
38253
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
38254
|
+
while (++index2 < length) {
|
|
38255
|
+
if (!predicate(array[index2], index2, array)) {
|
|
38264
38256
|
return false;
|
|
38265
38257
|
}
|
|
38266
38258
|
}
|
|
38267
38259
|
return true;
|
|
38268
38260
|
}
|
|
38269
38261
|
function arrayFilter(array, predicate) {
|
|
38270
|
-
var
|
|
38271
|
-
while (++
|
|
38272
|
-
var value = array[
|
|
38273
|
-
if (predicate(value,
|
|
38262
|
+
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
38263
|
+
while (++index2 < length) {
|
|
38264
|
+
var value = array[index2];
|
|
38265
|
+
if (predicate(value, index2, array)) {
|
|
38274
38266
|
result[resIndex++] = value;
|
|
38275
38267
|
}
|
|
38276
38268
|
}
|
|
@@ -38281,35 +38273,35 @@ lodash.exports;
|
|
|
38281
38273
|
return !!length && baseIndexOf2(array, value, 0) > -1;
|
|
38282
38274
|
}
|
|
38283
38275
|
function arrayIncludesWith(array, value, comparator) {
|
|
38284
|
-
var
|
|
38285
|
-
while (++
|
|
38286
|
-
if (comparator(value, array[
|
|
38276
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
38277
|
+
while (++index2 < length) {
|
|
38278
|
+
if (comparator(value, array[index2])) {
|
|
38287
38279
|
return true;
|
|
38288
38280
|
}
|
|
38289
38281
|
}
|
|
38290
38282
|
return false;
|
|
38291
38283
|
}
|
|
38292
38284
|
function arrayMap2(array, iteratee) {
|
|
38293
|
-
var
|
|
38294
|
-
while (++
|
|
38295
|
-
result[
|
|
38285
|
+
var index2 = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
38286
|
+
while (++index2 < length) {
|
|
38287
|
+
result[index2] = iteratee(array[index2], index2, array);
|
|
38296
38288
|
}
|
|
38297
38289
|
return result;
|
|
38298
38290
|
}
|
|
38299
38291
|
function arrayPush(array, values) {
|
|
38300
|
-
var
|
|
38301
|
-
while (++
|
|
38302
|
-
array[offset +
|
|
38292
|
+
var index2 = -1, length = values.length, offset = array.length;
|
|
38293
|
+
while (++index2 < length) {
|
|
38294
|
+
array[offset + index2] = values[index2];
|
|
38303
38295
|
}
|
|
38304
38296
|
return array;
|
|
38305
38297
|
}
|
|
38306
38298
|
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
38307
|
-
var
|
|
38299
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
38308
38300
|
if (initAccum && length) {
|
|
38309
|
-
accumulator = array[++
|
|
38301
|
+
accumulator = array[++index2];
|
|
38310
38302
|
}
|
|
38311
|
-
while (++
|
|
38312
|
-
accumulator = iteratee(accumulator, array[
|
|
38303
|
+
while (++index2 < length) {
|
|
38304
|
+
accumulator = iteratee(accumulator, array[index2], index2, array);
|
|
38313
38305
|
}
|
|
38314
38306
|
return accumulator;
|
|
38315
38307
|
}
|
|
@@ -38324,9 +38316,9 @@ lodash.exports;
|
|
|
38324
38316
|
return accumulator;
|
|
38325
38317
|
}
|
|
38326
38318
|
function arraySome(array, predicate) {
|
|
38327
|
-
var
|
|
38328
|
-
while (++
|
|
38329
|
-
if (predicate(array[
|
|
38319
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
38320
|
+
while (++index2 < length) {
|
|
38321
|
+
if (predicate(array[index2], index2, array)) {
|
|
38330
38322
|
return true;
|
|
38331
38323
|
}
|
|
38332
38324
|
}
|
|
@@ -38350,10 +38342,10 @@ lodash.exports;
|
|
|
38350
38342
|
return result;
|
|
38351
38343
|
}
|
|
38352
38344
|
function baseFindIndex2(array, predicate, fromIndex, fromRight) {
|
|
38353
|
-
var length = array.length,
|
|
38354
|
-
while (fromRight ?
|
|
38355
|
-
if (predicate(array[
|
|
38356
|
-
return
|
|
38345
|
+
var length = array.length, index2 = fromIndex + (fromRight ? 1 : -1);
|
|
38346
|
+
while (fromRight ? index2-- : ++index2 < length) {
|
|
38347
|
+
if (predicate(array[index2], index2, array)) {
|
|
38348
|
+
return index2;
|
|
38357
38349
|
}
|
|
38358
38350
|
}
|
|
38359
38351
|
return -1;
|
|
@@ -38362,10 +38354,10 @@ lodash.exports;
|
|
|
38362
38354
|
return value === value ? strictIndexOf2(array, value, fromIndex) : baseFindIndex2(array, baseIsNaN2, fromIndex);
|
|
38363
38355
|
}
|
|
38364
38356
|
function baseIndexOfWith2(array, value, fromIndex, comparator) {
|
|
38365
|
-
var
|
|
38366
|
-
while (++
|
|
38367
|
-
if (comparator(array[
|
|
38368
|
-
return
|
|
38357
|
+
var index2 = fromIndex - 1, length = array.length;
|
|
38358
|
+
while (++index2 < length) {
|
|
38359
|
+
if (comparator(array[index2], value)) {
|
|
38360
|
+
return index2;
|
|
38369
38361
|
}
|
|
38370
38362
|
}
|
|
38371
38363
|
return -1;
|
|
@@ -38388,8 +38380,8 @@ lodash.exports;
|
|
|
38388
38380
|
};
|
|
38389
38381
|
}
|
|
38390
38382
|
function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
38391
|
-
eachFunc(collection, function(value,
|
|
38392
|
-
accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value,
|
|
38383
|
+
eachFunc(collection, function(value, index2, collection2) {
|
|
38384
|
+
accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index2, collection2);
|
|
38393
38385
|
});
|
|
38394
38386
|
return accumulator;
|
|
38395
38387
|
}
|
|
@@ -38402,9 +38394,9 @@ lodash.exports;
|
|
|
38402
38394
|
return array;
|
|
38403
38395
|
}
|
|
38404
38396
|
function baseSum(array, iteratee) {
|
|
38405
|
-
var result,
|
|
38406
|
-
while (++
|
|
38407
|
-
var current = iteratee(array[
|
|
38397
|
+
var result, index2 = -1, length = array.length;
|
|
38398
|
+
while (++index2 < length) {
|
|
38399
|
+
var current = iteratee(array[index2]);
|
|
38408
38400
|
if (current !== undefined$1) {
|
|
38409
38401
|
result = result === undefined$1 ? current : result + current;
|
|
38410
38402
|
}
|
|
@@ -38412,9 +38404,9 @@ lodash.exports;
|
|
|
38412
38404
|
return result;
|
|
38413
38405
|
}
|
|
38414
38406
|
function baseTimes(n, iteratee) {
|
|
38415
|
-
var
|
|
38416
|
-
while (++
|
|
38417
|
-
result[
|
|
38407
|
+
var index2 = -1, result = Array(n);
|
|
38408
|
+
while (++index2 < n) {
|
|
38409
|
+
result[index2] = iteratee(index2);
|
|
38418
38410
|
}
|
|
38419
38411
|
return result;
|
|
38420
38412
|
}
|
|
@@ -38440,16 +38432,16 @@ lodash.exports;
|
|
|
38440
38432
|
return cache.has(key);
|
|
38441
38433
|
}
|
|
38442
38434
|
function charsStartIndex(strSymbols, chrSymbols) {
|
|
38443
|
-
var
|
|
38444
|
-
while (++
|
|
38435
|
+
var index2 = -1, length = strSymbols.length;
|
|
38436
|
+
while (++index2 < length && baseIndexOf2(chrSymbols, strSymbols[index2], 0) > -1) {
|
|
38445
38437
|
}
|
|
38446
|
-
return
|
|
38438
|
+
return index2;
|
|
38447
38439
|
}
|
|
38448
38440
|
function charsEndIndex2(strSymbols, chrSymbols) {
|
|
38449
|
-
var
|
|
38450
|
-
while (
|
|
38441
|
+
var index2 = strSymbols.length;
|
|
38442
|
+
while (index2-- && baseIndexOf2(chrSymbols, strSymbols[index2], 0) > -1) {
|
|
38451
38443
|
}
|
|
38452
|
-
return
|
|
38444
|
+
return index2;
|
|
38453
38445
|
}
|
|
38454
38446
|
function countHolders(array, placeholder) {
|
|
38455
38447
|
var length = array.length, result = 0;
|
|
@@ -38482,9 +38474,9 @@ lodash.exports;
|
|
|
38482
38474
|
return result;
|
|
38483
38475
|
}
|
|
38484
38476
|
function mapToArray(map2) {
|
|
38485
|
-
var
|
|
38477
|
+
var index2 = -1, result = Array(map2.size);
|
|
38486
38478
|
map2.forEach(function(value, key) {
|
|
38487
|
-
result[++
|
|
38479
|
+
result[++index2] = [key, value];
|
|
38488
38480
|
});
|
|
38489
38481
|
return result;
|
|
38490
38482
|
}
|
|
@@ -38494,47 +38486,47 @@ lodash.exports;
|
|
|
38494
38486
|
};
|
|
38495
38487
|
}
|
|
38496
38488
|
function replaceHolders(array, placeholder) {
|
|
38497
|
-
var
|
|
38498
|
-
while (++
|
|
38499
|
-
var value = array[
|
|
38489
|
+
var index2 = -1, length = array.length, resIndex = 0, result = [];
|
|
38490
|
+
while (++index2 < length) {
|
|
38491
|
+
var value = array[index2];
|
|
38500
38492
|
if (value === placeholder || value === PLACEHOLDER) {
|
|
38501
|
-
array[
|
|
38502
|
-
result[resIndex++] =
|
|
38493
|
+
array[index2] = PLACEHOLDER;
|
|
38494
|
+
result[resIndex++] = index2;
|
|
38503
38495
|
}
|
|
38504
38496
|
}
|
|
38505
38497
|
return result;
|
|
38506
38498
|
}
|
|
38507
38499
|
function setToArray(set2) {
|
|
38508
|
-
var
|
|
38500
|
+
var index2 = -1, result = Array(set2.size);
|
|
38509
38501
|
set2.forEach(function(value) {
|
|
38510
|
-
result[++
|
|
38502
|
+
result[++index2] = value;
|
|
38511
38503
|
});
|
|
38512
38504
|
return result;
|
|
38513
38505
|
}
|
|
38514
38506
|
function setToPairs(set2) {
|
|
38515
|
-
var
|
|
38507
|
+
var index2 = -1, result = Array(set2.size);
|
|
38516
38508
|
set2.forEach(function(value) {
|
|
38517
|
-
result[++
|
|
38509
|
+
result[++index2] = [value, value];
|
|
38518
38510
|
});
|
|
38519
38511
|
return result;
|
|
38520
38512
|
}
|
|
38521
38513
|
function strictIndexOf2(array, value, fromIndex) {
|
|
38522
|
-
var
|
|
38523
|
-
while (++
|
|
38524
|
-
if (array[
|
|
38525
|
-
return
|
|
38514
|
+
var index2 = fromIndex - 1, length = array.length;
|
|
38515
|
+
while (++index2 < length) {
|
|
38516
|
+
if (array[index2] === value) {
|
|
38517
|
+
return index2;
|
|
38526
38518
|
}
|
|
38527
38519
|
}
|
|
38528
38520
|
return -1;
|
|
38529
38521
|
}
|
|
38530
38522
|
function strictLastIndexOf(array, value, fromIndex) {
|
|
38531
|
-
var
|
|
38532
|
-
while (
|
|
38533
|
-
if (array[
|
|
38534
|
-
return
|
|
38523
|
+
var index2 = fromIndex + 1;
|
|
38524
|
+
while (index2--) {
|
|
38525
|
+
if (array[index2] === value) {
|
|
38526
|
+
return index2;
|
|
38535
38527
|
}
|
|
38536
38528
|
}
|
|
38537
|
-
return
|
|
38529
|
+
return index2;
|
|
38538
38530
|
}
|
|
38539
38531
|
function stringSize(string) {
|
|
38540
38532
|
return hasUnicode2(string) ? unicodeSize(string) : asciiSize(string);
|
|
@@ -38543,10 +38535,10 @@ lodash.exports;
|
|
|
38543
38535
|
return hasUnicode2(string) ? unicodeToArray2(string) : asciiToArray2(string);
|
|
38544
38536
|
}
|
|
38545
38537
|
function trimmedEndIndex2(string) {
|
|
38546
|
-
var
|
|
38547
|
-
while (
|
|
38538
|
+
var index2 = string.length;
|
|
38539
|
+
while (index2-- && reWhitespace2.test(string.charAt(index2))) {
|
|
38548
38540
|
}
|
|
38549
|
-
return
|
|
38541
|
+
return index2;
|
|
38550
38542
|
}
|
|
38551
38543
|
var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
|
|
38552
38544
|
function unicodeSize(string) {
|
|
@@ -38607,7 +38599,7 @@ lodash.exports;
|
|
|
38607
38599
|
}
|
|
38608
38600
|
return new LodashWrapper(value);
|
|
38609
38601
|
}
|
|
38610
|
-
var baseCreate = function() {
|
|
38602
|
+
var baseCreate = /* @__PURE__ */ function() {
|
|
38611
38603
|
function object() {
|
|
38612
38604
|
}
|
|
38613
38605
|
return function(proto2) {
|
|
@@ -38712,15 +38704,15 @@ lodash.exports;
|
|
|
38712
38704
|
return result2;
|
|
38713
38705
|
}
|
|
38714
38706
|
function lazyValue() {
|
|
38715
|
-
var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray2(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start,
|
|
38707
|
+
var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray2(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start, index2 = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length, this.__takeCount__);
|
|
38716
38708
|
if (!isArr || !isRight && arrLength == length && takeCount == length) {
|
|
38717
38709
|
return baseWrapperValue(array, this.__actions__);
|
|
38718
38710
|
}
|
|
38719
38711
|
var result2 = [];
|
|
38720
38712
|
outer:
|
|
38721
38713
|
while (length-- && resIndex < takeCount) {
|
|
38722
|
-
|
|
38723
|
-
var iterIndex = -1, value = array[
|
|
38714
|
+
index2 += dir;
|
|
38715
|
+
var iterIndex = -1, value = array[index2];
|
|
38724
38716
|
while (++iterIndex < iterLength) {
|
|
38725
38717
|
var data = iteratees[iterIndex], iteratee2 = data.iteratee, type = data.type, computed = iteratee2(value);
|
|
38726
38718
|
if (type == LAZY_MAP_FLAG) {
|
|
@@ -38740,10 +38732,10 @@ lodash.exports;
|
|
|
38740
38732
|
LazyWrapper.prototype = baseCreate(baseLodash.prototype);
|
|
38741
38733
|
LazyWrapper.prototype.constructor = LazyWrapper;
|
|
38742
38734
|
function Hash(entries) {
|
|
38743
|
-
var
|
|
38735
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
38744
38736
|
this.clear();
|
|
38745
|
-
while (++
|
|
38746
|
-
var entry = entries[
|
|
38737
|
+
while (++index2 < length) {
|
|
38738
|
+
var entry = entries[index2];
|
|
38747
38739
|
this.set(entry[0], entry[1]);
|
|
38748
38740
|
}
|
|
38749
38741
|
}
|
|
@@ -38780,10 +38772,10 @@ lodash.exports;
|
|
|
38780
38772
|
Hash.prototype.has = hashHas;
|
|
38781
38773
|
Hash.prototype.set = hashSet;
|
|
38782
38774
|
function ListCache(entries) {
|
|
38783
|
-
var
|
|
38775
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
38784
38776
|
this.clear();
|
|
38785
|
-
while (++
|
|
38786
|
-
var entry = entries[
|
|
38777
|
+
while (++index2 < length) {
|
|
38778
|
+
var entry = entries[index2];
|
|
38787
38779
|
this.set(entry[0], entry[1]);
|
|
38788
38780
|
}
|
|
38789
38781
|
}
|
|
@@ -38792,33 +38784,33 @@ lodash.exports;
|
|
|
38792
38784
|
this.size = 0;
|
|
38793
38785
|
}
|
|
38794
38786
|
function listCacheDelete(key) {
|
|
38795
|
-
var data = this.__data__,
|
|
38796
|
-
if (
|
|
38787
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
38788
|
+
if (index2 < 0) {
|
|
38797
38789
|
return false;
|
|
38798
38790
|
}
|
|
38799
38791
|
var lastIndex = data.length - 1;
|
|
38800
|
-
if (
|
|
38792
|
+
if (index2 == lastIndex) {
|
|
38801
38793
|
data.pop();
|
|
38802
38794
|
} else {
|
|
38803
|
-
splice2.call(data,
|
|
38795
|
+
splice2.call(data, index2, 1);
|
|
38804
38796
|
}
|
|
38805
38797
|
--this.size;
|
|
38806
38798
|
return true;
|
|
38807
38799
|
}
|
|
38808
38800
|
function listCacheGet(key) {
|
|
38809
|
-
var data = this.__data__,
|
|
38810
|
-
return
|
|
38801
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
38802
|
+
return index2 < 0 ? undefined$1 : data[index2][1];
|
|
38811
38803
|
}
|
|
38812
38804
|
function listCacheHas(key) {
|
|
38813
38805
|
return assocIndexOf(this.__data__, key) > -1;
|
|
38814
38806
|
}
|
|
38815
38807
|
function listCacheSet(key, value) {
|
|
38816
|
-
var data = this.__data__,
|
|
38817
|
-
if (
|
|
38808
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
38809
|
+
if (index2 < 0) {
|
|
38818
38810
|
++this.size;
|
|
38819
38811
|
data.push([key, value]);
|
|
38820
38812
|
} else {
|
|
38821
|
-
data[
|
|
38813
|
+
data[index2][1] = value;
|
|
38822
38814
|
}
|
|
38823
38815
|
return this;
|
|
38824
38816
|
}
|
|
@@ -38828,10 +38820,10 @@ lodash.exports;
|
|
|
38828
38820
|
ListCache.prototype.has = listCacheHas;
|
|
38829
38821
|
ListCache.prototype.set = listCacheSet;
|
|
38830
38822
|
function MapCache(entries) {
|
|
38831
|
-
var
|
|
38823
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
38832
38824
|
this.clear();
|
|
38833
|
-
while (++
|
|
38834
|
-
var entry = entries[
|
|
38825
|
+
while (++index2 < length) {
|
|
38826
|
+
var entry = entries[index2];
|
|
38835
38827
|
this.set(entry[0], entry[1]);
|
|
38836
38828
|
}
|
|
38837
38829
|
}
|
|
@@ -38866,10 +38858,10 @@ lodash.exports;
|
|
|
38866
38858
|
MapCache.prototype.has = mapCacheHas;
|
|
38867
38859
|
MapCache.prototype.set = mapCacheSet;
|
|
38868
38860
|
function SetCache(values2) {
|
|
38869
|
-
var
|
|
38861
|
+
var index2 = -1, length = values2 == null ? 0 : values2.length;
|
|
38870
38862
|
this.__data__ = new MapCache();
|
|
38871
|
-
while (++
|
|
38872
|
-
this.add(values2[
|
|
38863
|
+
while (++index2 < length) {
|
|
38864
|
+
this.add(values2[index2]);
|
|
38873
38865
|
}
|
|
38874
38866
|
}
|
|
38875
38867
|
function setCacheAdd(value) {
|
|
@@ -38988,9 +38980,9 @@ lodash.exports;
|
|
|
38988
38980
|
}
|
|
38989
38981
|
}
|
|
38990
38982
|
function baseAt(object, paths) {
|
|
38991
|
-
var
|
|
38992
|
-
while (++
|
|
38993
|
-
result2[
|
|
38983
|
+
var index2 = -1, length = paths.length, result2 = Array2(length), skip = object == null;
|
|
38984
|
+
while (++index2 < length) {
|
|
38985
|
+
result2[index2] = skip ? undefined$1 : get2(object, paths[index2]);
|
|
38994
38986
|
}
|
|
38995
38987
|
return result2;
|
|
38996
38988
|
}
|
|
@@ -39094,7 +39086,7 @@ lodash.exports;
|
|
|
39094
39086
|
}, wait);
|
|
39095
39087
|
}
|
|
39096
39088
|
function baseDifference(array, values2, iteratee2, comparator) {
|
|
39097
|
-
var
|
|
39089
|
+
var index2 = -1, includes2 = arrayIncludes, isCommon = true, length = array.length, result2 = [], valuesLength = values2.length;
|
|
39098
39090
|
if (!length) {
|
|
39099
39091
|
return result2;
|
|
39100
39092
|
}
|
|
@@ -39110,8 +39102,8 @@ lodash.exports;
|
|
|
39110
39102
|
values2 = new SetCache(values2);
|
|
39111
39103
|
}
|
|
39112
39104
|
outer:
|
|
39113
|
-
while (++
|
|
39114
|
-
var value = array[
|
|
39105
|
+
while (++index2 < length) {
|
|
39106
|
+
var value = array[index2], computed = iteratee2 == null ? value : iteratee2(value);
|
|
39115
39107
|
value = comparator || value !== 0 ? value : 0;
|
|
39116
39108
|
if (isCommon && computed === computed) {
|
|
39117
39109
|
var valuesIndex = valuesLength;
|
|
@@ -39131,16 +39123,16 @@ lodash.exports;
|
|
|
39131
39123
|
var baseEachRight = createBaseEach(baseForOwnRight, true);
|
|
39132
39124
|
function baseEvery(collection, predicate) {
|
|
39133
39125
|
var result2 = true;
|
|
39134
|
-
baseEach(collection, function(value,
|
|
39135
|
-
result2 = !!predicate(value,
|
|
39126
|
+
baseEach(collection, function(value, index2, collection2) {
|
|
39127
|
+
result2 = !!predicate(value, index2, collection2);
|
|
39136
39128
|
return result2;
|
|
39137
39129
|
});
|
|
39138
39130
|
return result2;
|
|
39139
39131
|
}
|
|
39140
39132
|
function baseExtremum(array, iteratee2, comparator) {
|
|
39141
|
-
var
|
|
39142
|
-
while (++
|
|
39143
|
-
var value = array[
|
|
39133
|
+
var index2 = -1, length = array.length;
|
|
39134
|
+
while (++index2 < length) {
|
|
39135
|
+
var value = array[index2], current = iteratee2(value);
|
|
39144
39136
|
if (current != null && (computed === undefined$1 ? current === current && !isSymbol2(current) : comparator(current, computed))) {
|
|
39145
39137
|
var computed = current, result2 = value;
|
|
39146
39138
|
}
|
|
@@ -39165,19 +39157,19 @@ lodash.exports;
|
|
|
39165
39157
|
}
|
|
39166
39158
|
function baseFilter(collection, predicate) {
|
|
39167
39159
|
var result2 = [];
|
|
39168
|
-
baseEach(collection, function(value,
|
|
39169
|
-
if (predicate(value,
|
|
39160
|
+
baseEach(collection, function(value, index2, collection2) {
|
|
39161
|
+
if (predicate(value, index2, collection2)) {
|
|
39170
39162
|
result2.push(value);
|
|
39171
39163
|
}
|
|
39172
39164
|
});
|
|
39173
39165
|
return result2;
|
|
39174
39166
|
}
|
|
39175
39167
|
function baseFlatten(array, depth, predicate, isStrict, result2) {
|
|
39176
|
-
var
|
|
39168
|
+
var index2 = -1, length = array.length;
|
|
39177
39169
|
predicate || (predicate = isFlattenable);
|
|
39178
39170
|
result2 || (result2 = []);
|
|
39179
|
-
while (++
|
|
39180
|
-
var value = array[
|
|
39171
|
+
while (++index2 < length) {
|
|
39172
|
+
var value = array[index2];
|
|
39181
39173
|
if (depth > 0 && predicate(value)) {
|
|
39182
39174
|
if (depth > 1) {
|
|
39183
39175
|
baseFlatten(value, depth - 1, predicate, isStrict, result2);
|
|
@@ -39205,11 +39197,11 @@ lodash.exports;
|
|
|
39205
39197
|
}
|
|
39206
39198
|
function baseGet(object, path) {
|
|
39207
39199
|
path = castPath(path, object);
|
|
39208
|
-
var
|
|
39209
|
-
while (object != null &&
|
|
39210
|
-
object = object[toKey(path[
|
|
39200
|
+
var index2 = 0, length = path.length;
|
|
39201
|
+
while (object != null && index2 < length) {
|
|
39202
|
+
object = object[toKey(path[index2++])];
|
|
39211
39203
|
}
|
|
39212
|
-
return
|
|
39204
|
+
return index2 && index2 == length ? object : undefined$1;
|
|
39213
39205
|
}
|
|
39214
39206
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
39215
39207
|
var result2 = keysFunc(object);
|
|
@@ -39244,12 +39236,12 @@ lodash.exports;
|
|
|
39244
39236
|
caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined$1;
|
|
39245
39237
|
}
|
|
39246
39238
|
array = arrays[0];
|
|
39247
|
-
var
|
|
39239
|
+
var index2 = -1, seen = caches[0];
|
|
39248
39240
|
outer:
|
|
39249
|
-
while (++
|
|
39250
|
-
var value = array[
|
|
39241
|
+
while (++index2 < length && result2.length < maxLength) {
|
|
39242
|
+
var value = array[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
39251
39243
|
value = comparator || value !== 0 ? value : 0;
|
|
39252
|
-
if (!(
|
|
39244
|
+
if (!(seen ? cacheHas(seen, computed) : includes2(result2, computed, comparator))) {
|
|
39253
39245
|
othIndex = othLength;
|
|
39254
39246
|
while (--othIndex) {
|
|
39255
39247
|
var cache = caches[othIndex];
|
|
@@ -39257,8 +39249,8 @@ lodash.exports;
|
|
|
39257
39249
|
continue outer;
|
|
39258
39250
|
}
|
|
39259
39251
|
}
|
|
39260
|
-
if (
|
|
39261
|
-
|
|
39252
|
+
if (seen) {
|
|
39253
|
+
seen.push(computed);
|
|
39262
39254
|
}
|
|
39263
39255
|
result2.push(value);
|
|
39264
39256
|
}
|
|
@@ -39329,19 +39321,19 @@ lodash.exports;
|
|
|
39329
39321
|
return isObjectLike2(value) && getTag2(value) == mapTag2;
|
|
39330
39322
|
}
|
|
39331
39323
|
function baseIsMatch(object, source, matchData, customizer) {
|
|
39332
|
-
var
|
|
39324
|
+
var index2 = matchData.length, length = index2, noCustomizer = !customizer;
|
|
39333
39325
|
if (object == null) {
|
|
39334
39326
|
return !length;
|
|
39335
39327
|
}
|
|
39336
39328
|
object = Object2(object);
|
|
39337
|
-
while (
|
|
39338
|
-
var data = matchData[
|
|
39329
|
+
while (index2--) {
|
|
39330
|
+
var data = matchData[index2];
|
|
39339
39331
|
if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
|
|
39340
39332
|
return false;
|
|
39341
39333
|
}
|
|
39342
39334
|
}
|
|
39343
|
-
while (++
|
|
39344
|
-
data = matchData[
|
|
39335
|
+
while (++index2 < length) {
|
|
39336
|
+
data = matchData[index2];
|
|
39345
39337
|
var key = data[0], objValue = object[key], srcValue = data[1];
|
|
39346
39338
|
if (noCustomizer && data[2]) {
|
|
39347
39339
|
if (objValue === undefined$1 && !(key in object)) {
|
|
@@ -39415,9 +39407,9 @@ lodash.exports;
|
|
|
39415
39407
|
return value < other;
|
|
39416
39408
|
}
|
|
39417
39409
|
function baseMap(collection, iteratee2) {
|
|
39418
|
-
var
|
|
39410
|
+
var index2 = -1, result2 = isArrayLike2(collection) ? Array2(collection.length) : [];
|
|
39419
39411
|
baseEach(collection, function(value, key, collection2) {
|
|
39420
|
-
result2[++
|
|
39412
|
+
result2[++index2] = iteratee2(value, key, collection2);
|
|
39421
39413
|
});
|
|
39422
39414
|
return result2;
|
|
39423
39415
|
}
|
|
@@ -39520,13 +39512,13 @@ lodash.exports;
|
|
|
39520
39512
|
} else {
|
|
39521
39513
|
iteratees = [identity2];
|
|
39522
39514
|
}
|
|
39523
|
-
var
|
|
39515
|
+
var index2 = -1;
|
|
39524
39516
|
iteratees = arrayMap2(iteratees, baseUnary2(getIteratee()));
|
|
39525
39517
|
var result2 = baseMap(collection, function(value, key, collection2) {
|
|
39526
39518
|
var criteria = arrayMap2(iteratees, function(iteratee2) {
|
|
39527
39519
|
return iteratee2(value);
|
|
39528
39520
|
});
|
|
39529
|
-
return { "criteria": criteria, "index": ++
|
|
39521
|
+
return { "criteria": criteria, "index": ++index2, "value": value };
|
|
39530
39522
|
});
|
|
39531
39523
|
return baseSortBy(result2, function(object, other) {
|
|
39532
39524
|
return compareMultiple(object, other, orders);
|
|
@@ -39538,9 +39530,9 @@ lodash.exports;
|
|
|
39538
39530
|
});
|
|
39539
39531
|
}
|
|
39540
39532
|
function basePickBy(object, paths, predicate) {
|
|
39541
|
-
var
|
|
39542
|
-
while (++
|
|
39543
|
-
var path = paths[
|
|
39533
|
+
var index2 = -1, length = paths.length, result2 = {};
|
|
39534
|
+
while (++index2 < length) {
|
|
39535
|
+
var path = paths[index2], value = baseGet(object, path);
|
|
39544
39536
|
if (predicate(value, path)) {
|
|
39545
39537
|
baseSet(result2, castPath(path, object), value);
|
|
39546
39538
|
}
|
|
@@ -39553,18 +39545,18 @@ lodash.exports;
|
|
|
39553
39545
|
};
|
|
39554
39546
|
}
|
|
39555
39547
|
function basePullAll2(array, values2, iteratee2, comparator) {
|
|
39556
|
-
var indexOf3 = comparator ? baseIndexOfWith2 : baseIndexOf2,
|
|
39548
|
+
var indexOf3 = comparator ? baseIndexOfWith2 : baseIndexOf2, index2 = -1, length = values2.length, seen = array;
|
|
39557
39549
|
if (array === values2) {
|
|
39558
39550
|
values2 = copyArray2(values2);
|
|
39559
39551
|
}
|
|
39560
39552
|
if (iteratee2) {
|
|
39561
|
-
|
|
39553
|
+
seen = arrayMap2(array, baseUnary2(iteratee2));
|
|
39562
39554
|
}
|
|
39563
|
-
while (++
|
|
39564
|
-
var fromIndex = 0, value = values2[
|
|
39565
|
-
while ((fromIndex = indexOf3(
|
|
39566
|
-
if (
|
|
39567
|
-
splice2.call(
|
|
39555
|
+
while (++index2 < length) {
|
|
39556
|
+
var fromIndex = 0, value = values2[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
39557
|
+
while ((fromIndex = indexOf3(seen, computed, fromIndex, comparator)) > -1) {
|
|
39558
|
+
if (seen !== array) {
|
|
39559
|
+
splice2.call(seen, fromIndex, 1);
|
|
39568
39560
|
}
|
|
39569
39561
|
splice2.call(array, fromIndex, 1);
|
|
39570
39562
|
}
|
|
@@ -39574,13 +39566,13 @@ lodash.exports;
|
|
|
39574
39566
|
function basePullAt(array, indexes) {
|
|
39575
39567
|
var length = array ? indexes.length : 0, lastIndex = length - 1;
|
|
39576
39568
|
while (length--) {
|
|
39577
|
-
var
|
|
39578
|
-
if (length == lastIndex ||
|
|
39579
|
-
var previous =
|
|
39580
|
-
if (isIndex(
|
|
39581
|
-
splice2.call(array,
|
|
39569
|
+
var index2 = indexes[length];
|
|
39570
|
+
if (length == lastIndex || index2 !== previous) {
|
|
39571
|
+
var previous = index2;
|
|
39572
|
+
if (isIndex(index2)) {
|
|
39573
|
+
splice2.call(array, index2, 1);
|
|
39582
39574
|
} else {
|
|
39583
|
-
baseUnset(array,
|
|
39575
|
+
baseUnset(array, index2);
|
|
39584
39576
|
}
|
|
39585
39577
|
}
|
|
39586
39578
|
}
|
|
@@ -39590,9 +39582,9 @@ lodash.exports;
|
|
|
39590
39582
|
return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
|
|
39591
39583
|
}
|
|
39592
39584
|
function baseRange(start, end, step, fromRight) {
|
|
39593
|
-
var
|
|
39585
|
+
var index2 = -1, length = nativeMax2(nativeCeil((end - start) / (step || 1)), 0), result2 = Array2(length);
|
|
39594
39586
|
while (length--) {
|
|
39595
|
-
result2[fromRight ? length : ++
|
|
39587
|
+
result2[fromRight ? length : ++index2] = start;
|
|
39596
39588
|
start += step;
|
|
39597
39589
|
}
|
|
39598
39590
|
return result2;
|
|
@@ -39628,17 +39620,17 @@ lodash.exports;
|
|
|
39628
39620
|
return object;
|
|
39629
39621
|
}
|
|
39630
39622
|
path = castPath(path, object);
|
|
39631
|
-
var
|
|
39632
|
-
while (nested != null && ++
|
|
39633
|
-
var key = toKey(path[
|
|
39623
|
+
var index2 = -1, length = path.length, lastIndex = length - 1, nested = object;
|
|
39624
|
+
while (nested != null && ++index2 < length) {
|
|
39625
|
+
var key = toKey(path[index2]), newValue = value;
|
|
39634
39626
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
39635
39627
|
return object;
|
|
39636
39628
|
}
|
|
39637
|
-
if (
|
|
39629
|
+
if (index2 != lastIndex) {
|
|
39638
39630
|
var objValue = nested[key];
|
|
39639
39631
|
newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
|
|
39640
39632
|
if (newValue === undefined$1) {
|
|
39641
|
-
newValue = isObject2(objValue) ? objValue : isIndex(path[
|
|
39633
|
+
newValue = isObject2(objValue) ? objValue : isIndex(path[index2 + 1]) ? [] : {};
|
|
39642
39634
|
}
|
|
39643
39635
|
}
|
|
39644
39636
|
assignValue(nested, key, newValue);
|
|
@@ -39662,7 +39654,7 @@ lodash.exports;
|
|
|
39662
39654
|
return shuffleSelf(values(collection));
|
|
39663
39655
|
}
|
|
39664
39656
|
function baseSlice2(array, start, end) {
|
|
39665
|
-
var
|
|
39657
|
+
var index2 = -1, length = array.length;
|
|
39666
39658
|
if (start < 0) {
|
|
39667
39659
|
start = -start > length ? 0 : length + start;
|
|
39668
39660
|
}
|
|
@@ -39673,15 +39665,15 @@ lodash.exports;
|
|
|
39673
39665
|
length = start > end ? 0 : end - start >>> 0;
|
|
39674
39666
|
start >>>= 0;
|
|
39675
39667
|
var result2 = Array2(length);
|
|
39676
|
-
while (++
|
|
39677
|
-
result2[
|
|
39668
|
+
while (++index2 < length) {
|
|
39669
|
+
result2[index2] = array[index2 + start];
|
|
39678
39670
|
}
|
|
39679
39671
|
return result2;
|
|
39680
39672
|
}
|
|
39681
39673
|
function baseSome(collection, predicate) {
|
|
39682
39674
|
var result2;
|
|
39683
|
-
baseEach(collection, function(value,
|
|
39684
|
-
result2 = predicate(value,
|
|
39675
|
+
baseEach(collection, function(value, index2, collection2) {
|
|
39676
|
+
result2 = predicate(value, index2, collection2);
|
|
39685
39677
|
return !result2;
|
|
39686
39678
|
});
|
|
39687
39679
|
return !!result2;
|
|
@@ -39732,11 +39724,11 @@ lodash.exports;
|
|
|
39732
39724
|
return nativeMin(high, MAX_ARRAY_INDEX);
|
|
39733
39725
|
}
|
|
39734
39726
|
function baseSortedUniq(array, iteratee2) {
|
|
39735
|
-
var
|
|
39736
|
-
while (++
|
|
39737
|
-
var value = array[
|
|
39738
|
-
if (!
|
|
39739
|
-
var
|
|
39727
|
+
var index2 = -1, length = array.length, resIndex = 0, result2 = [];
|
|
39728
|
+
while (++index2 < length) {
|
|
39729
|
+
var value = array[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
39730
|
+
if (!index2 || !eq(computed, seen)) {
|
|
39731
|
+
var seen = computed;
|
|
39740
39732
|
result2[resIndex++] = value === 0 ? 0 : value;
|
|
39741
39733
|
}
|
|
39742
39734
|
}
|
|
@@ -39765,7 +39757,7 @@ lodash.exports;
|
|
|
39765
39757
|
return result2 == "0" && 1 / value == -INFINITY2 ? "-0" : result2;
|
|
39766
39758
|
}
|
|
39767
39759
|
function baseUniq(array, iteratee2, comparator) {
|
|
39768
|
-
var
|
|
39760
|
+
var index2 = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2;
|
|
39769
39761
|
if (comparator) {
|
|
39770
39762
|
isCommon = false;
|
|
39771
39763
|
includes2 = arrayIncludesWith;
|
|
@@ -39776,28 +39768,28 @@ lodash.exports;
|
|
|
39776
39768
|
}
|
|
39777
39769
|
isCommon = false;
|
|
39778
39770
|
includes2 = cacheHas;
|
|
39779
|
-
|
|
39771
|
+
seen = new SetCache();
|
|
39780
39772
|
} else {
|
|
39781
|
-
|
|
39773
|
+
seen = iteratee2 ? [] : result2;
|
|
39782
39774
|
}
|
|
39783
39775
|
outer:
|
|
39784
|
-
while (++
|
|
39785
|
-
var value = array[
|
|
39776
|
+
while (++index2 < length) {
|
|
39777
|
+
var value = array[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
39786
39778
|
value = comparator || value !== 0 ? value : 0;
|
|
39787
39779
|
if (isCommon && computed === computed) {
|
|
39788
|
-
var seenIndex =
|
|
39780
|
+
var seenIndex = seen.length;
|
|
39789
39781
|
while (seenIndex--) {
|
|
39790
|
-
if (
|
|
39782
|
+
if (seen[seenIndex] === computed) {
|
|
39791
39783
|
continue outer;
|
|
39792
39784
|
}
|
|
39793
39785
|
}
|
|
39794
39786
|
if (iteratee2) {
|
|
39795
|
-
|
|
39787
|
+
seen.push(computed);
|
|
39796
39788
|
}
|
|
39797
39789
|
result2.push(value);
|
|
39798
|
-
} else if (!includes2(
|
|
39799
|
-
if (
|
|
39800
|
-
|
|
39790
|
+
} else if (!includes2(seen, computed, comparator)) {
|
|
39791
|
+
if (seen !== result2) {
|
|
39792
|
+
seen.push(computed);
|
|
39801
39793
|
}
|
|
39802
39794
|
result2.push(value);
|
|
39803
39795
|
}
|
|
@@ -39813,10 +39805,10 @@ lodash.exports;
|
|
|
39813
39805
|
return baseSet(object, path, updater(baseGet(object, path)), customizer);
|
|
39814
39806
|
}
|
|
39815
39807
|
function baseWhile(array, predicate, isDrop, fromRight) {
|
|
39816
|
-
var length = array.length,
|
|
39817
|
-
while ((fromRight ?
|
|
39808
|
+
var length = array.length, index2 = fromRight ? length : -1;
|
|
39809
|
+
while ((fromRight ? index2-- : ++index2 < length) && predicate(array[index2], index2, array)) {
|
|
39818
39810
|
}
|
|
39819
|
-
return isDrop ? baseSlice2(array, fromRight ? 0 :
|
|
39811
|
+
return isDrop ? baseSlice2(array, fromRight ? 0 : index2, fromRight ? index2 + 1 : length) : baseSlice2(array, fromRight ? index2 + 1 : 0, fromRight ? length : index2);
|
|
39820
39812
|
}
|
|
39821
39813
|
function baseWrapperValue(value, actions) {
|
|
39822
39814
|
var result2 = value;
|
|
@@ -39832,22 +39824,22 @@ lodash.exports;
|
|
|
39832
39824
|
if (length < 2) {
|
|
39833
39825
|
return length ? baseUniq(arrays[0]) : [];
|
|
39834
39826
|
}
|
|
39835
|
-
var
|
|
39836
|
-
while (++
|
|
39837
|
-
var array = arrays[
|
|
39827
|
+
var index2 = -1, result2 = Array2(length);
|
|
39828
|
+
while (++index2 < length) {
|
|
39829
|
+
var array = arrays[index2], othIndex = -1;
|
|
39838
39830
|
while (++othIndex < length) {
|
|
39839
|
-
if (othIndex !=
|
|
39840
|
-
result2[
|
|
39831
|
+
if (othIndex != index2) {
|
|
39832
|
+
result2[index2] = baseDifference(result2[index2] || array, arrays[othIndex], iteratee2, comparator);
|
|
39841
39833
|
}
|
|
39842
39834
|
}
|
|
39843
39835
|
}
|
|
39844
39836
|
return baseUniq(baseFlatten(result2, 1), iteratee2, comparator);
|
|
39845
39837
|
}
|
|
39846
39838
|
function baseZipObject(props, values2, assignFunc) {
|
|
39847
|
-
var
|
|
39848
|
-
while (++
|
|
39849
|
-
var value =
|
|
39850
|
-
assignFunc(result2, props[
|
|
39839
|
+
var index2 = -1, length = props.length, valsLength = values2.length, result2 = {};
|
|
39840
|
+
while (++index2 < length) {
|
|
39841
|
+
var value = index2 < valsLength ? values2[index2] : undefined$1;
|
|
39842
|
+
assignFunc(result2, props[index2], value);
|
|
39851
39843
|
}
|
|
39852
39844
|
return result2;
|
|
39853
39845
|
}
|
|
@@ -39915,14 +39907,14 @@ lodash.exports;
|
|
|
39915
39907
|
return 0;
|
|
39916
39908
|
}
|
|
39917
39909
|
function compareMultiple(object, other, orders) {
|
|
39918
|
-
var
|
|
39919
|
-
while (++
|
|
39920
|
-
var result2 = compareAscending(objCriteria[
|
|
39910
|
+
var index2 = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
|
|
39911
|
+
while (++index2 < length) {
|
|
39912
|
+
var result2 = compareAscending(objCriteria[index2], othCriteria[index2]);
|
|
39921
39913
|
if (result2) {
|
|
39922
|
-
if (
|
|
39914
|
+
if (index2 >= ordersLength) {
|
|
39923
39915
|
return result2;
|
|
39924
39916
|
}
|
|
39925
|
-
var order2 = orders[
|
|
39917
|
+
var order2 = orders[index2];
|
|
39926
39918
|
return result2 * (order2 == "desc" ? -1 : 1);
|
|
39927
39919
|
}
|
|
39928
39920
|
}
|
|
@@ -39960,19 +39952,19 @@ lodash.exports;
|
|
|
39960
39952
|
return result2;
|
|
39961
39953
|
}
|
|
39962
39954
|
function copyArray2(source, array) {
|
|
39963
|
-
var
|
|
39955
|
+
var index2 = -1, length = source.length;
|
|
39964
39956
|
array || (array = Array2(length));
|
|
39965
|
-
while (++
|
|
39966
|
-
array[
|
|
39957
|
+
while (++index2 < length) {
|
|
39958
|
+
array[index2] = source[index2];
|
|
39967
39959
|
}
|
|
39968
39960
|
return array;
|
|
39969
39961
|
}
|
|
39970
39962
|
function copyObject(source, props, object, customizer) {
|
|
39971
39963
|
var isNew = !object;
|
|
39972
39964
|
object || (object = {});
|
|
39973
|
-
var
|
|
39974
|
-
while (++
|
|
39975
|
-
var key = props[
|
|
39965
|
+
var index2 = -1, length = props.length;
|
|
39966
|
+
while (++index2 < length) {
|
|
39967
|
+
var key = props[index2];
|
|
39976
39968
|
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined$1;
|
|
39977
39969
|
if (newValue === undefined$1) {
|
|
39978
39970
|
newValue = source[key];
|
|
@@ -39999,17 +39991,17 @@ lodash.exports;
|
|
|
39999
39991
|
}
|
|
40000
39992
|
function createAssigner(assigner) {
|
|
40001
39993
|
return baseRest2(function(object, sources) {
|
|
40002
|
-
var
|
|
39994
|
+
var index2 = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined$1, guard = length > 2 ? sources[2] : undefined$1;
|
|
40003
39995
|
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined$1;
|
|
40004
39996
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
40005
39997
|
customizer = length < 3 ? undefined$1 : customizer;
|
|
40006
39998
|
length = 1;
|
|
40007
39999
|
}
|
|
40008
40000
|
object = Object2(object);
|
|
40009
|
-
while (++
|
|
40010
|
-
var source = sources[
|
|
40001
|
+
while (++index2 < length) {
|
|
40002
|
+
var source = sources[index2];
|
|
40011
40003
|
if (source) {
|
|
40012
|
-
assigner(object, source,
|
|
40004
|
+
assigner(object, source, index2, customizer);
|
|
40013
40005
|
}
|
|
40014
40006
|
}
|
|
40015
40007
|
return object;
|
|
@@ -40023,9 +40015,9 @@ lodash.exports;
|
|
|
40023
40015
|
if (!isArrayLike2(collection)) {
|
|
40024
40016
|
return eachFunc(collection, iteratee2);
|
|
40025
40017
|
}
|
|
40026
|
-
var length = collection.length,
|
|
40027
|
-
while (fromRight ?
|
|
40028
|
-
if (iteratee2(iterable[
|
|
40018
|
+
var length = collection.length, index2 = fromRight ? length : -1, iterable = Object2(collection);
|
|
40019
|
+
while (fromRight ? index2-- : ++index2 < length) {
|
|
40020
|
+
if (iteratee2(iterable[index2], index2, iterable) === false) {
|
|
40029
40021
|
break;
|
|
40030
40022
|
}
|
|
40031
40023
|
}
|
|
@@ -40034,9 +40026,9 @@ lodash.exports;
|
|
|
40034
40026
|
}
|
|
40035
40027
|
function createBaseFor(fromRight) {
|
|
40036
40028
|
return function(object, iteratee2, keysFunc) {
|
|
40037
|
-
var
|
|
40029
|
+
var index2 = -1, iterable = Object2(object), props = keysFunc(object), length = props.length;
|
|
40038
40030
|
while (length--) {
|
|
40039
|
-
var key = props[fromRight ? length : ++
|
|
40031
|
+
var key = props[fromRight ? length : ++index2];
|
|
40040
40032
|
if (iteratee2(iterable[key], key, iterable) === false) {
|
|
40041
40033
|
break;
|
|
40042
40034
|
}
|
|
@@ -40094,9 +40086,9 @@ lodash.exports;
|
|
|
40094
40086
|
function createCurry(func, bitmask, arity) {
|
|
40095
40087
|
var Ctor = createCtor(func);
|
|
40096
40088
|
function wrapper2() {
|
|
40097
|
-
var length = arguments.length, args = Array2(length),
|
|
40098
|
-
while (
|
|
40099
|
-
args[
|
|
40089
|
+
var length = arguments.length, args = Array2(length), index2 = length, placeholder = getHolder(wrapper2);
|
|
40090
|
+
while (index2--) {
|
|
40091
|
+
args[index2] = arguments[index2];
|
|
40100
40092
|
}
|
|
40101
40093
|
var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders(args, placeholder);
|
|
40102
40094
|
length -= holders.length;
|
|
@@ -40129,18 +40121,18 @@ lodash.exports;
|
|
|
40129
40121
|
return iteratee2(iterable[key], key, iterable);
|
|
40130
40122
|
};
|
|
40131
40123
|
}
|
|
40132
|
-
var
|
|
40133
|
-
return
|
|
40124
|
+
var index2 = findIndexFunc(collection, predicate, fromIndex);
|
|
40125
|
+
return index2 > -1 ? iterable[iteratee2 ? collection[index2] : index2] : undefined$1;
|
|
40134
40126
|
};
|
|
40135
40127
|
}
|
|
40136
40128
|
function createFlow(fromRight) {
|
|
40137
40129
|
return flatRest(function(funcs) {
|
|
40138
|
-
var length = funcs.length,
|
|
40130
|
+
var length = funcs.length, index2 = length, prereq = LodashWrapper.prototype.thru;
|
|
40139
40131
|
if (fromRight) {
|
|
40140
40132
|
funcs.reverse();
|
|
40141
40133
|
}
|
|
40142
|
-
while (
|
|
40143
|
-
var func = funcs[
|
|
40134
|
+
while (index2--) {
|
|
40135
|
+
var func = funcs[index2];
|
|
40144
40136
|
if (typeof func != "function") {
|
|
40145
40137
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
40146
40138
|
}
|
|
@@ -40148,9 +40140,9 @@ lodash.exports;
|
|
|
40148
40140
|
var wrapper2 = new LodashWrapper([], true);
|
|
40149
40141
|
}
|
|
40150
40142
|
}
|
|
40151
|
-
|
|
40152
|
-
while (++
|
|
40153
|
-
func = funcs[
|
|
40143
|
+
index2 = wrapper2 ? index2 : length;
|
|
40144
|
+
while (++index2 < length) {
|
|
40145
|
+
func = funcs[index2];
|
|
40154
40146
|
var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined$1;
|
|
40155
40147
|
if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) {
|
|
40156
40148
|
wrapper2 = wrapper2[getFuncName(data[0])].apply(wrapper2, data[3]);
|
|
@@ -40163,9 +40155,9 @@ lodash.exports;
|
|
|
40163
40155
|
if (wrapper2 && args.length == 1 && isArray2(value)) {
|
|
40164
40156
|
return wrapper2.plant(value).value();
|
|
40165
40157
|
}
|
|
40166
|
-
var
|
|
40167
|
-
while (++
|
|
40168
|
-
result2 = funcs[
|
|
40158
|
+
var index3 = 0, result2 = length ? funcs[index3].apply(this, args) : value;
|
|
40159
|
+
while (++index3 < length) {
|
|
40160
|
+
result2 = funcs[index3].call(this, result2);
|
|
40169
40161
|
}
|
|
40170
40162
|
return result2;
|
|
40171
40163
|
};
|
|
@@ -40174,9 +40166,9 @@ lodash.exports;
|
|
|
40174
40166
|
function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) {
|
|
40175
40167
|
var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined$1 : createCtor(func);
|
|
40176
40168
|
function wrapper2() {
|
|
40177
|
-
var length = arguments.length, args = Array2(length),
|
|
40178
|
-
while (
|
|
40179
|
-
args[
|
|
40169
|
+
var length = arguments.length, args = Array2(length), index2 = length;
|
|
40170
|
+
while (index2--) {
|
|
40171
|
+
args[index2] = arguments[index2];
|
|
40180
40172
|
}
|
|
40181
40173
|
if (isCurried) {
|
|
40182
40174
|
var placeholder = getHolder(wrapper2), holdersCount = countHolders(args, placeholder);
|
|
@@ -40444,13 +40436,13 @@ lodash.exports;
|
|
|
40444
40436
|
if (arrStacked && othStacked) {
|
|
40445
40437
|
return arrStacked == other && othStacked == array;
|
|
40446
40438
|
}
|
|
40447
|
-
var
|
|
40439
|
+
var index2 = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined$1;
|
|
40448
40440
|
stack.set(array, other);
|
|
40449
40441
|
stack.set(other, array);
|
|
40450
|
-
while (++
|
|
40451
|
-
var arrValue = array[
|
|
40442
|
+
while (++index2 < arrLength) {
|
|
40443
|
+
var arrValue = array[index2], othValue = other[index2];
|
|
40452
40444
|
if (customizer) {
|
|
40453
|
-
var compared = isPartial ? customizer(othValue, arrValue,
|
|
40445
|
+
var compared = isPartial ? customizer(othValue, arrValue, index2, other, array, stack) : customizer(arrValue, othValue, index2, array, other, stack);
|
|
40454
40446
|
}
|
|
40455
40447
|
if (compared !== undefined$1) {
|
|
40456
40448
|
if (compared) {
|
|
@@ -40459,10 +40451,10 @@ lodash.exports;
|
|
|
40459
40451
|
result2 = false;
|
|
40460
40452
|
break;
|
|
40461
40453
|
}
|
|
40462
|
-
if (
|
|
40454
|
+
if (seen) {
|
|
40463
40455
|
if (!arraySome(other, function(othValue2, othIndex) {
|
|
40464
|
-
if (!cacheHas(
|
|
40465
|
-
return
|
|
40456
|
+
if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
|
40457
|
+
return seen.push(othIndex);
|
|
40466
40458
|
}
|
|
40467
40459
|
})) {
|
|
40468
40460
|
result2 = false;
|
|
@@ -40528,9 +40520,9 @@ lodash.exports;
|
|
|
40528
40520
|
if (objLength != othLength && !isPartial) {
|
|
40529
40521
|
return false;
|
|
40530
40522
|
}
|
|
40531
|
-
var
|
|
40532
|
-
while (
|
|
40533
|
-
var key = objProps[
|
|
40523
|
+
var index2 = objLength;
|
|
40524
|
+
while (index2--) {
|
|
40525
|
+
var key = objProps[index2];
|
|
40534
40526
|
if (!(isPartial ? key in other : hasOwnProperty2.call(other, key))) {
|
|
40535
40527
|
return false;
|
|
40536
40528
|
}
|
|
@@ -40544,8 +40536,8 @@ lodash.exports;
|
|
|
40544
40536
|
stack.set(object, other);
|
|
40545
40537
|
stack.set(other, object);
|
|
40546
40538
|
var skipCtor = isPartial;
|
|
40547
|
-
while (++
|
|
40548
|
-
key = objProps[
|
|
40539
|
+
while (++index2 < objLength) {
|
|
40540
|
+
key = objProps[index2];
|
|
40549
40541
|
var objValue = object[key], othValue = other[key];
|
|
40550
40542
|
if (customizer) {
|
|
40551
40543
|
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
@@ -40669,9 +40661,9 @@ lodash.exports;
|
|
|
40669
40661
|
};
|
|
40670
40662
|
}
|
|
40671
40663
|
function getView(start, end, transforms) {
|
|
40672
|
-
var
|
|
40673
|
-
while (++
|
|
40674
|
-
var data = transforms[
|
|
40664
|
+
var index2 = -1, length = transforms.length;
|
|
40665
|
+
while (++index2 < length) {
|
|
40666
|
+
var data = transforms[index2], size2 = data.size;
|
|
40675
40667
|
switch (data.type) {
|
|
40676
40668
|
case "drop":
|
|
40677
40669
|
start += size2;
|
|
@@ -40695,15 +40687,15 @@ lodash.exports;
|
|
|
40695
40687
|
}
|
|
40696
40688
|
function hasPath(object, path, hasFunc) {
|
|
40697
40689
|
path = castPath(path, object);
|
|
40698
|
-
var
|
|
40699
|
-
while (++
|
|
40700
|
-
var key = toKey(path[
|
|
40690
|
+
var index2 = -1, length = path.length, result2 = false;
|
|
40691
|
+
while (++index2 < length) {
|
|
40692
|
+
var key = toKey(path[index2]);
|
|
40701
40693
|
if (!(result2 = object != null && hasFunc(object, key))) {
|
|
40702
40694
|
break;
|
|
40703
40695
|
}
|
|
40704
40696
|
object = object[key];
|
|
40705
40697
|
}
|
|
40706
|
-
if (result2 || ++
|
|
40698
|
+
if (result2 || ++index2 != length) {
|
|
40707
40699
|
return result2;
|
|
40708
40700
|
}
|
|
40709
40701
|
length = object == null ? 0 : object.length;
|
|
@@ -40771,13 +40763,13 @@ lodash.exports;
|
|
|
40771
40763
|
length = length == null ? MAX_SAFE_INTEGER2 : length;
|
|
40772
40764
|
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
40773
40765
|
}
|
|
40774
|
-
function isIterateeCall(value,
|
|
40766
|
+
function isIterateeCall(value, index2, object) {
|
|
40775
40767
|
if (!isObject2(object)) {
|
|
40776
40768
|
return false;
|
|
40777
40769
|
}
|
|
40778
|
-
var type = typeof
|
|
40779
|
-
if (type == "number" ? isArrayLike2(object) && isIndex(
|
|
40780
|
-
return eq(object[
|
|
40770
|
+
var type = typeof index2;
|
|
40771
|
+
if (type == "number" ? isArrayLike2(object) && isIndex(index2, object.length) : type == "string" && index2 in object) {
|
|
40772
|
+
return eq(object[index2], value);
|
|
40781
40773
|
}
|
|
40782
40774
|
return false;
|
|
40783
40775
|
}
|
|
@@ -40886,14 +40878,14 @@ lodash.exports;
|
|
|
40886
40878
|
function overRest2(func, start, transform2) {
|
|
40887
40879
|
start = nativeMax2(start === undefined$1 ? func.length - 1 : start, 0);
|
|
40888
40880
|
return function() {
|
|
40889
|
-
var args = arguments,
|
|
40890
|
-
while (++
|
|
40891
|
-
array[
|
|
40881
|
+
var args = arguments, index2 = -1, length = nativeMax2(args.length - start, 0), array = Array2(length);
|
|
40882
|
+
while (++index2 < length) {
|
|
40883
|
+
array[index2] = args[start + index2];
|
|
40892
40884
|
}
|
|
40893
|
-
|
|
40885
|
+
index2 = -1;
|
|
40894
40886
|
var otherArgs = Array2(start + 1);
|
|
40895
|
-
while (++
|
|
40896
|
-
otherArgs[
|
|
40887
|
+
while (++index2 < start) {
|
|
40888
|
+
otherArgs[index2] = args[index2];
|
|
40897
40889
|
}
|
|
40898
40890
|
otherArgs[start] = transform2(array);
|
|
40899
40891
|
return apply2(func, this, otherArgs);
|
|
@@ -40905,8 +40897,8 @@ lodash.exports;
|
|
|
40905
40897
|
function reorder(array, indexes) {
|
|
40906
40898
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray2(array);
|
|
40907
40899
|
while (length--) {
|
|
40908
|
-
var
|
|
40909
|
-
array[length] = isIndex(
|
|
40900
|
+
var index2 = indexes[length];
|
|
40901
|
+
array[length] = isIndex(index2, arrLength) ? oldArray[index2] : undefined$1;
|
|
40910
40902
|
}
|
|
40911
40903
|
return array;
|
|
40912
40904
|
}
|
|
@@ -40944,12 +40936,12 @@ lodash.exports;
|
|
|
40944
40936
|
};
|
|
40945
40937
|
}
|
|
40946
40938
|
function shuffleSelf(array, size2) {
|
|
40947
|
-
var
|
|
40939
|
+
var index2 = -1, length = array.length, lastIndex = length - 1;
|
|
40948
40940
|
size2 = size2 === undefined$1 ? length : size2;
|
|
40949
|
-
while (++
|
|
40950
|
-
var rand = baseRandom(
|
|
40951
|
-
array[rand] = array[
|
|
40952
|
-
array[
|
|
40941
|
+
while (++index2 < size2) {
|
|
40942
|
+
var rand = baseRandom(index2, lastIndex), value = array[rand];
|
|
40943
|
+
array[rand] = array[index2];
|
|
40944
|
+
array[index2] = value;
|
|
40953
40945
|
}
|
|
40954
40946
|
array.length = size2;
|
|
40955
40947
|
return array;
|
|
@@ -41013,16 +41005,16 @@ lodash.exports;
|
|
|
41013
41005
|
if (!length || size2 < 1) {
|
|
41014
41006
|
return [];
|
|
41015
41007
|
}
|
|
41016
|
-
var
|
|
41017
|
-
while (
|
|
41018
|
-
result2[resIndex++] = baseSlice2(array,
|
|
41008
|
+
var index2 = 0, resIndex = 0, result2 = Array2(nativeCeil(length / size2));
|
|
41009
|
+
while (index2 < length) {
|
|
41010
|
+
result2[resIndex++] = baseSlice2(array, index2, index2 += size2);
|
|
41019
41011
|
}
|
|
41020
41012
|
return result2;
|
|
41021
41013
|
}
|
|
41022
41014
|
function compact2(array) {
|
|
41023
|
-
var
|
|
41024
|
-
while (++
|
|
41025
|
-
var value = array[
|
|
41015
|
+
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result2 = [];
|
|
41016
|
+
while (++index2 < length) {
|
|
41017
|
+
var value = array[index2];
|
|
41026
41018
|
if (value) {
|
|
41027
41019
|
result2[resIndex++] = value;
|
|
41028
41020
|
}
|
|
@@ -41034,9 +41026,9 @@ lodash.exports;
|
|
|
41034
41026
|
if (!length) {
|
|
41035
41027
|
return [];
|
|
41036
41028
|
}
|
|
41037
|
-
var args = Array2(length - 1), array = arguments[0],
|
|
41038
|
-
while (
|
|
41039
|
-
args[
|
|
41029
|
+
var args = Array2(length - 1), array = arguments[0], index2 = length;
|
|
41030
|
+
while (index2--) {
|
|
41031
|
+
args[index2 - 1] = arguments[index2];
|
|
41040
41032
|
}
|
|
41041
41033
|
return arrayPush(isArray2(array) ? copyArray2(array) : [array], baseFlatten(args, 1));
|
|
41042
41034
|
}
|
|
@@ -41096,23 +41088,23 @@ lodash.exports;
|
|
|
41096
41088
|
if (!length) {
|
|
41097
41089
|
return -1;
|
|
41098
41090
|
}
|
|
41099
|
-
var
|
|
41100
|
-
if (
|
|
41101
|
-
|
|
41091
|
+
var index2 = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
41092
|
+
if (index2 < 0) {
|
|
41093
|
+
index2 = nativeMax2(length + index2, 0);
|
|
41102
41094
|
}
|
|
41103
|
-
return baseFindIndex2(array, getIteratee(predicate, 3),
|
|
41095
|
+
return baseFindIndex2(array, getIteratee(predicate, 3), index2);
|
|
41104
41096
|
}
|
|
41105
41097
|
function findLastIndex(array, predicate, fromIndex) {
|
|
41106
41098
|
var length = array == null ? 0 : array.length;
|
|
41107
41099
|
if (!length) {
|
|
41108
41100
|
return -1;
|
|
41109
41101
|
}
|
|
41110
|
-
var
|
|
41102
|
+
var index2 = length - 1;
|
|
41111
41103
|
if (fromIndex !== undefined$1) {
|
|
41112
|
-
|
|
41113
|
-
|
|
41104
|
+
index2 = toInteger(fromIndex);
|
|
41105
|
+
index2 = fromIndex < 0 ? nativeMax2(length + index2, 0) : nativeMin(index2, length - 1);
|
|
41114
41106
|
}
|
|
41115
|
-
return baseFindIndex2(array, getIteratee(predicate, 3),
|
|
41107
|
+
return baseFindIndex2(array, getIteratee(predicate, 3), index2, true);
|
|
41116
41108
|
}
|
|
41117
41109
|
function flatten2(array) {
|
|
41118
41110
|
var length = array == null ? 0 : array.length;
|
|
@@ -41131,9 +41123,9 @@ lodash.exports;
|
|
|
41131
41123
|
return baseFlatten(array, depth);
|
|
41132
41124
|
}
|
|
41133
41125
|
function fromPairs(pairs) {
|
|
41134
|
-
var
|
|
41135
|
-
while (++
|
|
41136
|
-
var pair = pairs[
|
|
41126
|
+
var index2 = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
|
|
41127
|
+
while (++index2 < length) {
|
|
41128
|
+
var pair = pairs[index2];
|
|
41137
41129
|
result2[pair[0]] = pair[1];
|
|
41138
41130
|
}
|
|
41139
41131
|
return result2;
|
|
@@ -41146,11 +41138,11 @@ lodash.exports;
|
|
|
41146
41138
|
if (!length) {
|
|
41147
41139
|
return -1;
|
|
41148
41140
|
}
|
|
41149
|
-
var
|
|
41150
|
-
if (
|
|
41151
|
-
|
|
41141
|
+
var index2 = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
41142
|
+
if (index2 < 0) {
|
|
41143
|
+
index2 = nativeMax2(length + index2, 0);
|
|
41152
41144
|
}
|
|
41153
|
-
return baseIndexOf2(array, value,
|
|
41145
|
+
return baseIndexOf2(array, value, index2);
|
|
41154
41146
|
}
|
|
41155
41147
|
function initial(array) {
|
|
41156
41148
|
var length = array == null ? 0 : array.length;
|
|
@@ -41189,12 +41181,12 @@ lodash.exports;
|
|
|
41189
41181
|
if (!length) {
|
|
41190
41182
|
return -1;
|
|
41191
41183
|
}
|
|
41192
|
-
var
|
|
41184
|
+
var index2 = length;
|
|
41193
41185
|
if (fromIndex !== undefined$1) {
|
|
41194
|
-
|
|
41195
|
-
|
|
41186
|
+
index2 = toInteger(fromIndex);
|
|
41187
|
+
index2 = index2 < 0 ? nativeMax2(length + index2, 0) : nativeMin(index2, length - 1);
|
|
41196
41188
|
}
|
|
41197
|
-
return value === value ? strictLastIndexOf(array, value,
|
|
41189
|
+
return value === value ? strictLastIndexOf(array, value, index2) : baseFindIndex2(array, baseIsNaN2, index2, true);
|
|
41198
41190
|
}
|
|
41199
41191
|
function nth(array, n) {
|
|
41200
41192
|
return array && array.length ? baseNth(array, toInteger(n)) : undefined$1;
|
|
@@ -41211,8 +41203,8 @@ lodash.exports;
|
|
|
41211
41203
|
}
|
|
41212
41204
|
var pullAt = flatRest(function(array, indexes) {
|
|
41213
41205
|
var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes);
|
|
41214
|
-
basePullAt(array, arrayMap2(indexes, function(
|
|
41215
|
-
return isIndex(
|
|
41206
|
+
basePullAt(array, arrayMap2(indexes, function(index2) {
|
|
41207
|
+
return isIndex(index2, length) ? +index2 : index2;
|
|
41216
41208
|
}).sort(compareAscending));
|
|
41217
41209
|
return result2;
|
|
41218
41210
|
});
|
|
@@ -41221,13 +41213,13 @@ lodash.exports;
|
|
|
41221
41213
|
if (!(array && array.length)) {
|
|
41222
41214
|
return result2;
|
|
41223
41215
|
}
|
|
41224
|
-
var
|
|
41216
|
+
var index2 = -1, indexes = [], length = array.length;
|
|
41225
41217
|
predicate = getIteratee(predicate, 3);
|
|
41226
|
-
while (++
|
|
41227
|
-
var value = array[
|
|
41228
|
-
if (predicate(value,
|
|
41218
|
+
while (++index2 < length) {
|
|
41219
|
+
var value = array[index2];
|
|
41220
|
+
if (predicate(value, index2, array)) {
|
|
41229
41221
|
result2.push(value);
|
|
41230
|
-
indexes.push(
|
|
41222
|
+
indexes.push(index2);
|
|
41231
41223
|
}
|
|
41232
41224
|
}
|
|
41233
41225
|
basePullAt(array, indexes);
|
|
@@ -41259,9 +41251,9 @@ lodash.exports;
|
|
|
41259
41251
|
function sortedIndexOf(array, value) {
|
|
41260
41252
|
var length = array == null ? 0 : array.length;
|
|
41261
41253
|
if (length) {
|
|
41262
|
-
var
|
|
41263
|
-
if (
|
|
41264
|
-
return
|
|
41254
|
+
var index2 = baseSortedIndex(array, value);
|
|
41255
|
+
if (index2 < length && eq(array[index2], value)) {
|
|
41256
|
+
return index2;
|
|
41265
41257
|
}
|
|
41266
41258
|
}
|
|
41267
41259
|
return -1;
|
|
@@ -41275,9 +41267,9 @@ lodash.exports;
|
|
|
41275
41267
|
function sortedLastIndexOf(array, value) {
|
|
41276
41268
|
var length = array == null ? 0 : array.length;
|
|
41277
41269
|
if (length) {
|
|
41278
|
-
var
|
|
41279
|
-
if (eq(array[
|
|
41280
|
-
return
|
|
41270
|
+
var index2 = baseSortedIndex(array, value, true) - 1;
|
|
41271
|
+
if (eq(array[index2], value)) {
|
|
41272
|
+
return index2;
|
|
41281
41273
|
}
|
|
41282
41274
|
}
|
|
41283
41275
|
return -1;
|
|
@@ -41350,8 +41342,8 @@ lodash.exports;
|
|
|
41350
41342
|
return true;
|
|
41351
41343
|
}
|
|
41352
41344
|
});
|
|
41353
|
-
return baseTimes(length, function(
|
|
41354
|
-
return arrayMap2(array, baseProperty(
|
|
41345
|
+
return baseTimes(length, function(index2) {
|
|
41346
|
+
return arrayMap2(array, baseProperty(index2));
|
|
41355
41347
|
});
|
|
41356
41348
|
}
|
|
41357
41349
|
function unzipWith(array, iteratee2) {
|
|
@@ -41536,9 +41528,9 @@ lodash.exports;
|
|
|
41536
41528
|
return isString2(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf2(collection, value, fromIndex) > -1;
|
|
41537
41529
|
}
|
|
41538
41530
|
var invokeMap = baseRest2(function(collection, path, args) {
|
|
41539
|
-
var
|
|
41531
|
+
var index2 = -1, isFunc = typeof path == "function", result2 = isArrayLike2(collection) ? Array2(collection.length) : [];
|
|
41540
41532
|
baseEach(collection, function(value) {
|
|
41541
|
-
result2[++
|
|
41533
|
+
result2[++index2] = isFunc ? apply2(path, value, args) : baseInvoke(value, path, args);
|
|
41542
41534
|
});
|
|
41543
41535
|
return result2;
|
|
41544
41536
|
});
|
|
@@ -41824,9 +41816,9 @@ lodash.exports;
|
|
|
41824
41816
|
transforms = transforms.length == 1 && isArray2(transforms[0]) ? arrayMap2(transforms[0], baseUnary2(getIteratee())) : arrayMap2(baseFlatten(transforms, 1), baseUnary2(getIteratee()));
|
|
41825
41817
|
var funcsLength = transforms.length;
|
|
41826
41818
|
return baseRest2(function(args) {
|
|
41827
|
-
var
|
|
41828
|
-
while (++
|
|
41829
|
-
args[
|
|
41819
|
+
var index2 = -1, length = nativeMin(args.length, funcsLength);
|
|
41820
|
+
while (++index2 < length) {
|
|
41821
|
+
args[index2] = transforms[index2].call(this, args[index2]);
|
|
41830
41822
|
}
|
|
41831
41823
|
return apply2(func, this, args);
|
|
41832
41824
|
});
|
|
@@ -41914,7 +41906,7 @@ lodash.exports;
|
|
|
41914
41906
|
var gte = createRelationalOperation(function(value, other) {
|
|
41915
41907
|
return value >= other;
|
|
41916
41908
|
});
|
|
41917
|
-
var isArguments2 = baseIsArguments2(function() {
|
|
41909
|
+
var isArguments2 = baseIsArguments2(/* @__PURE__ */ function() {
|
|
41918
41910
|
return arguments;
|
|
41919
41911
|
}()) ? baseIsArguments2 : function(value) {
|
|
41920
41912
|
return isObjectLike2(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable2.call(value, "callee");
|
|
@@ -42141,14 +42133,14 @@ lodash.exports;
|
|
|
42141
42133
|
}
|
|
42142
42134
|
var defaults2 = baseRest2(function(object, sources) {
|
|
42143
42135
|
object = Object2(object);
|
|
42144
|
-
var
|
|
42136
|
+
var index2 = -1;
|
|
42145
42137
|
var length = sources.length;
|
|
42146
42138
|
var guard = length > 2 ? sources[2] : undefined$1;
|
|
42147
42139
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
42148
42140
|
length = 1;
|
|
42149
42141
|
}
|
|
42150
|
-
while (++
|
|
42151
|
-
var source = sources[
|
|
42142
|
+
while (++index2 < length) {
|
|
42143
|
+
var source = sources[index2];
|
|
42152
42144
|
var props = keysIn(source);
|
|
42153
42145
|
var propsIndex = -1;
|
|
42154
42146
|
var propsLength = props.length;
|
|
@@ -42286,15 +42278,15 @@ lodash.exports;
|
|
|
42286
42278
|
}
|
|
42287
42279
|
function result(object, path, defaultValue) {
|
|
42288
42280
|
path = castPath(path, object);
|
|
42289
|
-
var
|
|
42281
|
+
var index2 = -1, length = path.length;
|
|
42290
42282
|
if (!length) {
|
|
42291
42283
|
length = 1;
|
|
42292
42284
|
object = undefined$1;
|
|
42293
42285
|
}
|
|
42294
|
-
while (++
|
|
42295
|
-
var value = object == null ? undefined$1 : object[toKey(path[
|
|
42286
|
+
while (++index2 < length) {
|
|
42287
|
+
var value = object == null ? undefined$1 : object[toKey(path[index2])];
|
|
42296
42288
|
if (value === undefined$1) {
|
|
42297
|
-
|
|
42289
|
+
index2 = length;
|
|
42298
42290
|
value = defaultValue;
|
|
42299
42291
|
}
|
|
42300
42292
|
object = isFunction2(value) ? value.call(object) : value;
|
|
@@ -42323,8 +42315,8 @@ lodash.exports;
|
|
|
42323
42315
|
accumulator = {};
|
|
42324
42316
|
}
|
|
42325
42317
|
}
|
|
42326
|
-
(isArrLike ? arrayEach : baseForOwn)(object, function(value,
|
|
42327
|
-
return iteratee2(accumulator, value,
|
|
42318
|
+
(isArrLike ? arrayEach : baseForOwn)(object, function(value, index2, object2) {
|
|
42319
|
+
return iteratee2(accumulator, value, index2, object2);
|
|
42328
42320
|
});
|
|
42329
42321
|
return accumulator;
|
|
42330
42322
|
}
|
|
@@ -42406,9 +42398,9 @@ lodash.exports;
|
|
|
42406
42398
|
}
|
|
42407
42399
|
return baseRandom(lower, upper);
|
|
42408
42400
|
}
|
|
42409
|
-
var camelCase = createCompounder(function(result2, word,
|
|
42401
|
+
var camelCase = createCompounder(function(result2, word, index2) {
|
|
42410
42402
|
word = word.toLowerCase();
|
|
42411
|
-
return result2 + (
|
|
42403
|
+
return result2 + (index2 ? capitalize(word) : word);
|
|
42412
42404
|
});
|
|
42413
42405
|
function capitalize(string) {
|
|
42414
42406
|
return upperFirst(toString2(string).toLowerCase());
|
|
@@ -42434,11 +42426,11 @@ lodash.exports;
|
|
|
42434
42426
|
string = toString2(string);
|
|
42435
42427
|
return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar2, "\\$&") : string;
|
|
42436
42428
|
}
|
|
42437
|
-
var kebabCase = createCompounder(function(result2, word,
|
|
42438
|
-
return result2 + (
|
|
42429
|
+
var kebabCase = createCompounder(function(result2, word, index2) {
|
|
42430
|
+
return result2 + (index2 ? "-" : "") + word.toLowerCase();
|
|
42439
42431
|
});
|
|
42440
|
-
var lowerCase = createCompounder(function(result2, word,
|
|
42441
|
-
return result2 + (
|
|
42432
|
+
var lowerCase = createCompounder(function(result2, word, index2) {
|
|
42433
|
+
return result2 + (index2 ? " " : "") + word.toLowerCase();
|
|
42442
42434
|
});
|
|
42443
42435
|
var lowerFirst = createCaseFirst("toLowerCase");
|
|
42444
42436
|
function pad(string, length, chars) {
|
|
@@ -42483,8 +42475,8 @@ lodash.exports;
|
|
|
42483
42475
|
var args = arguments, string = toString2(args[0]);
|
|
42484
42476
|
return args.length < 3 ? string : string.replace(args[1], args[2]);
|
|
42485
42477
|
}
|
|
42486
|
-
var snakeCase = createCompounder(function(result2, word,
|
|
42487
|
-
return result2 + (
|
|
42478
|
+
var snakeCase = createCompounder(function(result2, word, index2) {
|
|
42479
|
+
return result2 + (index2 ? "_" : "") + word.toLowerCase();
|
|
42488
42480
|
});
|
|
42489
42481
|
function split(string, separator, limit) {
|
|
42490
42482
|
if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) {
|
|
@@ -42503,8 +42495,8 @@ lodash.exports;
|
|
|
42503
42495
|
}
|
|
42504
42496
|
return string.split(separator, limit);
|
|
42505
42497
|
}
|
|
42506
|
-
var startCase = createCompounder(function(result2, word,
|
|
42507
|
-
return result2 + (
|
|
42498
|
+
var startCase = createCompounder(function(result2, word, index2) {
|
|
42499
|
+
return result2 + (index2 ? " " : "") + upperFirst(word);
|
|
42508
42500
|
});
|
|
42509
42501
|
function startsWith(string, target2, position) {
|
|
42510
42502
|
string = toString2(string);
|
|
@@ -42520,7 +42512,7 @@ lodash.exports;
|
|
|
42520
42512
|
string = toString2(string);
|
|
42521
42513
|
options = assignInWith({}, options, settings, customDefaultsAssignIn);
|
|
42522
42514
|
var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
|
|
42523
|
-
var isEscaping, isEvaluating,
|
|
42515
|
+
var isEscaping, isEvaluating, index2 = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
|
|
42524
42516
|
var reDelimiters = RegExp2(
|
|
42525
42517
|
(options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
|
|
42526
42518
|
"g"
|
|
@@ -42528,7 +42520,7 @@ lodash.exports;
|
|
|
42528
42520
|
var sourceURL = "//# sourceURL=" + (hasOwnProperty2.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
|
42529
42521
|
string.replace(reDelimiters, function(match3, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
|
42530
42522
|
interpolateValue || (interpolateValue = esTemplateValue);
|
|
42531
|
-
source += string.slice(
|
|
42523
|
+
source += string.slice(index2, offset).replace(reUnescapedString, escapeStringChar);
|
|
42532
42524
|
if (escapeValue) {
|
|
42533
42525
|
isEscaping = true;
|
|
42534
42526
|
source += "' +\n__e(" + escapeValue + ") +\n'";
|
|
@@ -42540,7 +42532,7 @@ lodash.exports;
|
|
|
42540
42532
|
if (interpolateValue) {
|
|
42541
42533
|
source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
|
|
42542
42534
|
}
|
|
42543
|
-
|
|
42535
|
+
index2 = offset + match3.length;
|
|
42544
42536
|
return match3;
|
|
42545
42537
|
});
|
|
42546
42538
|
source += "';\n";
|
|
@@ -42640,9 +42632,9 @@ lodash.exports;
|
|
|
42640
42632
|
result2 = result2.slice(0, newEnd === undefined$1 ? end : newEnd);
|
|
42641
42633
|
}
|
|
42642
42634
|
} else if (string.indexOf(baseToString2(separator), end) != end) {
|
|
42643
|
-
var
|
|
42644
|
-
if (
|
|
42645
|
-
result2 = result2.slice(0,
|
|
42635
|
+
var index2 = result2.lastIndexOf(separator);
|
|
42636
|
+
if (index2 > -1) {
|
|
42637
|
+
result2 = result2.slice(0, index2);
|
|
42646
42638
|
}
|
|
42647
42639
|
}
|
|
42648
42640
|
return result2 + omission;
|
|
@@ -42651,8 +42643,8 @@ lodash.exports;
|
|
|
42651
42643
|
string = toString2(string);
|
|
42652
42644
|
return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string;
|
|
42653
42645
|
}
|
|
42654
|
-
var upperCase = createCompounder(function(result2, word,
|
|
42655
|
-
return result2 + (
|
|
42646
|
+
var upperCase = createCompounder(function(result2, word, index2) {
|
|
42647
|
+
return result2 + (index2 ? " " : "") + word.toUpperCase();
|
|
42656
42648
|
});
|
|
42657
42649
|
var upperFirst = createCaseFirst("toUpperCase");
|
|
42658
42650
|
function words(string, pattern, guard) {
|
|
@@ -42686,9 +42678,9 @@ lodash.exports;
|
|
|
42686
42678
|
return [toIteratee(pair[0]), pair[1]];
|
|
42687
42679
|
});
|
|
42688
42680
|
return baseRest2(function(args) {
|
|
42689
|
-
var
|
|
42690
|
-
while (++
|
|
42691
|
-
var pair = pairs[
|
|
42681
|
+
var index2 = -1;
|
|
42682
|
+
while (++index2 < length) {
|
|
42683
|
+
var pair = pairs[index2];
|
|
42692
42684
|
if (apply2(pair[0], this, args)) {
|
|
42693
42685
|
return apply2(pair[1], this, args);
|
|
42694
42686
|
}
|
|
@@ -42804,12 +42796,12 @@ lodash.exports;
|
|
|
42804
42796
|
if (n < 1 || n > MAX_SAFE_INTEGER2) {
|
|
42805
42797
|
return [];
|
|
42806
42798
|
}
|
|
42807
|
-
var
|
|
42799
|
+
var index2 = MAX_ARRAY_LENGTH, length = nativeMin(n, MAX_ARRAY_LENGTH);
|
|
42808
42800
|
iteratee2 = getIteratee(iteratee2);
|
|
42809
42801
|
n -= MAX_ARRAY_LENGTH;
|
|
42810
42802
|
var result2 = baseTimes(length, iteratee2);
|
|
42811
|
-
while (++
|
|
42812
|
-
iteratee2(
|
|
42803
|
+
while (++index2 < n) {
|
|
42804
|
+
iteratee2(index2);
|
|
42813
42805
|
}
|
|
42814
42806
|
return result2;
|
|
42815
42807
|
}
|
|
@@ -43181,10 +43173,10 @@ lodash.exports;
|
|
|
43181
43173
|
arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
|
|
43182
43174
|
lodash2[methodName].placeholder = lodash2;
|
|
43183
43175
|
});
|
|
43184
|
-
arrayEach(["drop", "take"], function(methodName,
|
|
43176
|
+
arrayEach(["drop", "take"], function(methodName, index2) {
|
|
43185
43177
|
LazyWrapper.prototype[methodName] = function(n) {
|
|
43186
43178
|
n = n === undefined$1 ? 1 : nativeMax2(toInteger(n), 0);
|
|
43187
|
-
var result2 = this.__filtered__ && !
|
|
43179
|
+
var result2 = this.__filtered__ && !index2 ? new LazyWrapper(this) : this.clone();
|
|
43188
43180
|
if (result2.__filtered__) {
|
|
43189
43181
|
result2.__takeCount__ = nativeMin(n, result2.__takeCount__);
|
|
43190
43182
|
} else {
|
|
@@ -43199,8 +43191,8 @@ lodash.exports;
|
|
|
43199
43191
|
return this.reverse()[methodName](n).reverse();
|
|
43200
43192
|
};
|
|
43201
43193
|
});
|
|
43202
|
-
arrayEach(["filter", "map", "takeWhile"], function(methodName,
|
|
43203
|
-
var type =
|
|
43194
|
+
arrayEach(["filter", "map", "takeWhile"], function(methodName, index2) {
|
|
43195
|
+
var type = index2 + 1, isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
|
|
43204
43196
|
LazyWrapper.prototype[methodName] = function(iteratee2) {
|
|
43205
43197
|
var result2 = this.clone();
|
|
43206
43198
|
result2.__iteratees__.push({
|
|
@@ -43211,14 +43203,14 @@ lodash.exports;
|
|
|
43211
43203
|
return result2;
|
|
43212
43204
|
};
|
|
43213
43205
|
});
|
|
43214
|
-
arrayEach(["head", "last"], function(methodName,
|
|
43215
|
-
var takeName = "take" + (
|
|
43206
|
+
arrayEach(["head", "last"], function(methodName, index2) {
|
|
43207
|
+
var takeName = "take" + (index2 ? "Right" : "");
|
|
43216
43208
|
LazyWrapper.prototype[methodName] = function() {
|
|
43217
43209
|
return this[takeName](1).value()[0];
|
|
43218
43210
|
};
|
|
43219
43211
|
});
|
|
43220
|
-
arrayEach(["initial", "tail"], function(methodName,
|
|
43221
|
-
var dropName = "drop" + (
|
|
43212
|
+
arrayEach(["initial", "tail"], function(methodName, index2) {
|
|
43213
|
+
var dropName = "drop" + (index2 ? "" : "Right");
|
|
43222
43214
|
LazyWrapper.prototype[methodName] = function() {
|
|
43223
43215
|
return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
|
|
43224
43216
|
};
|
|
@@ -43550,11 +43542,11 @@ var fromDelta_converters = {
|
|
|
43550
43542
|
function applyStyles(attrs2, next2) {
|
|
43551
43543
|
var first = [], then = [];
|
|
43552
43544
|
attrs2 = attrs2 || {};
|
|
43553
|
-
var tag2 = el2,
|
|
43545
|
+
var tag2 = el2, seen = {};
|
|
43554
43546
|
while (tag2._format) {
|
|
43555
|
-
|
|
43547
|
+
seen[tag2._format] = true;
|
|
43556
43548
|
if (!attrs2[tag2._format]) {
|
|
43557
|
-
for (var k2 in
|
|
43549
|
+
for (var k2 in seen) {
|
|
43558
43550
|
delete activeInline[k2];
|
|
43559
43551
|
}
|
|
43560
43552
|
el2 = tag2.parent();
|
|
@@ -48630,14 +48622,14 @@ if (String.fromCodePoint) {
|
|
|
48630
48622
|
var codeUnits = [];
|
|
48631
48623
|
var highSurrogate;
|
|
48632
48624
|
var lowSurrogate;
|
|
48633
|
-
var
|
|
48625
|
+
var index2 = -1;
|
|
48634
48626
|
var length = arguments.length;
|
|
48635
48627
|
if (!length) {
|
|
48636
48628
|
return "";
|
|
48637
48629
|
}
|
|
48638
48630
|
var result = "";
|
|
48639
|
-
while (++
|
|
48640
|
-
var codePoint = Number(arguments[
|
|
48631
|
+
while (++index2 < length) {
|
|
48632
|
+
var codePoint = Number(arguments[index2]);
|
|
48641
48633
|
if (!isFinite(codePoint) || // `NaN`, `+Infinity`, or `-Infinity`
|
|
48642
48634
|
codePoint < 0 || // not a valid Unicode code point
|
|
48643
48635
|
codePoint > 1114111 || // not a valid Unicode code point
|
|
@@ -48652,7 +48644,7 @@ if (String.fromCodePoint) {
|
|
|
48652
48644
|
lowSurrogate = codePoint % 1024 + 56320;
|
|
48653
48645
|
codeUnits.push(highSurrogate, lowSurrogate);
|
|
48654
48646
|
}
|
|
48655
|
-
if (
|
|
48647
|
+
if (index2 + 1 === length || codeUnits.length > MAX_SIZE) {
|
|
48656
48648
|
result += stringFromCharCode.apply(null, codeUnits);
|
|
48657
48649
|
codeUnits.length = 0;
|
|
48658
48650
|
}
|
|
@@ -49190,7 +49182,7 @@ var parseCloseBracket = function(block3) {
|
|
|
49190
49182
|
return true;
|
|
49191
49183
|
}
|
|
49192
49184
|
};
|
|
49193
|
-
var addBracket = function(node2,
|
|
49185
|
+
var addBracket = function(node2, index2, image3) {
|
|
49194
49186
|
if (this.brackets !== null) {
|
|
49195
49187
|
this.brackets.bracketAfter = true;
|
|
49196
49188
|
}
|
|
@@ -49198,7 +49190,7 @@ var addBracket = function(node2, index, image3) {
|
|
|
49198
49190
|
node: node2,
|
|
49199
49191
|
previous: this.brackets,
|
|
49200
49192
|
previousDelimiter: this.delimiters,
|
|
49201
|
-
index,
|
|
49193
|
+
index: index2,
|
|
49202
49194
|
image: image3,
|
|
49203
49195
|
active: true
|
|
49204
49196
|
};
|
|
@@ -50636,7 +50628,7 @@ var baseIsArguments = _baseIsArguments, isObjectLike$1 = isObjectLike_1;
|
|
|
50636
50628
|
var objectProto$1 = Object.prototype;
|
|
50637
50629
|
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
50638
50630
|
var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
|
|
50639
|
-
var isArguments$1 = baseIsArguments(function() {
|
|
50631
|
+
var isArguments$1 = baseIsArguments(/* @__PURE__ */ function() {
|
|
50640
50632
|
return arguments;
|
|
50641
50633
|
}()) ? baseIsArguments : function(value) {
|
|
50642
50634
|
return isObjectLike$1(value) && hasOwnProperty$1.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
@@ -50907,7 +50899,7 @@ const RichtextMixin = {
|
|
|
50907
50899
|
quill: null
|
|
50908
50900
|
},
|
|
50909
50901
|
created() {
|
|
50910
|
-
|
|
50902
|
+
importInlineCSS("quill", () => import("./quill.snow-gf_AguUg.js"));
|
|
50911
50903
|
this.quill = null;
|
|
50912
50904
|
this.listCallbacks.push(this.addCallback.bind(this));
|
|
50913
50905
|
},
|
|
@@ -50938,6 +50930,12 @@ const callbackDirectory = {
|
|
|
50938
50930
|
autocompletion: AutocompletionMixin,
|
|
50939
50931
|
richtext: RichtextMixin
|
|
50940
50932
|
};
|
|
50933
|
+
const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
50934
|
+
__proto__: null,
|
|
50935
|
+
AutocompletionMixin,
|
|
50936
|
+
RichtextMixin,
|
|
50937
|
+
callbackDirectory
|
|
50938
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
50941
50939
|
const valueTransformationKeys = Object.keys(valueTransformationDirectory);
|
|
50942
50940
|
const attributeKeys = Object.keys(attributeDirectory);
|
|
50943
50941
|
const templateAdditionKeys = Object.keys(templateAdditionDirectory);
|
|
@@ -51854,7 +51852,7 @@ const FilterMixin = {
|
|
|
51854
51852
|
this.fields,
|
|
51855
51853
|
this.searchForm
|
|
51856
51854
|
);
|
|
51857
|
-
resources = resources.filter((_v,
|
|
51855
|
+
resources = resources.filter((_v, index2) => filteredResources[index2]);
|
|
51858
51856
|
}
|
|
51859
51857
|
const nextProcessor = listPostProcessors.shift();
|
|
51860
51858
|
if (nextProcessor)
|
|
@@ -52067,9 +52065,9 @@ const HighlighterMixin = {
|
|
|
52067
52065
|
await nextProcessor(resources, listPostProcessors, div2, context2);
|
|
52068
52066
|
},
|
|
52069
52067
|
sortHighlighted(resources, field, value) {
|
|
52070
|
-
for (let [
|
|
52068
|
+
for (let [index2, res] of resources.entries()) {
|
|
52071
52069
|
if (res[field] && res[field] == value) {
|
|
52072
|
-
resources.splice(0, 0, resources.splice(
|
|
52070
|
+
resources.splice(0, 0, resources.splice(index2, 1)[0]);
|
|
52073
52071
|
}
|
|
52074
52072
|
}
|
|
52075
52073
|
return resources;
|
|
@@ -52843,11 +52841,11 @@ dialogPolyfill.DialogManager.prototype.pushDialog = function(dpi) {
|
|
|
52843
52841
|
return true;
|
|
52844
52842
|
};
|
|
52845
52843
|
dialogPolyfill.DialogManager.prototype.removeDialog = function(dpi) {
|
|
52846
|
-
var
|
|
52847
|
-
if (
|
|
52844
|
+
var index2 = this.pendingDialogStack.indexOf(dpi);
|
|
52845
|
+
if (index2 === -1) {
|
|
52848
52846
|
return;
|
|
52849
52847
|
}
|
|
52850
|
-
this.pendingDialogStack.splice(
|
|
52848
|
+
this.pendingDialogStack.splice(index2, 1);
|
|
52851
52849
|
if (this.pendingDialogStack.length === 0) {
|
|
52852
52850
|
this.unblockDocument();
|
|
52853
52851
|
}
|
|
@@ -53098,9 +53096,15 @@ const SolidForm = {
|
|
|
53098
53096
|
let value = this.value;
|
|
53099
53097
|
if (this.resource && !((_b = (_a = this.resource).isContainer) == null ? void 0 : _b.call(_a))) {
|
|
53100
53098
|
for (let predicate of Object.keys(this.value)) {
|
|
53101
|
-
|
|
53099
|
+
let object = await this.resource[predicate];
|
|
53100
|
+
if (!object) {
|
|
53101
|
+
object = await this.resource[store.getExpandedPredicate(predicate, this.context)];
|
|
53102
|
+
}
|
|
53102
53103
|
if (object && object["@id"] && !value[predicate]["@id"])
|
|
53103
53104
|
value[predicate]["@id"] = object["@id"];
|
|
53105
|
+
if (object && !object["@id"] && Array.isArray(object) && value[predicate].length == 0 && object.length > 0) {
|
|
53106
|
+
value[predicate] = object;
|
|
53107
|
+
}
|
|
53104
53108
|
}
|
|
53105
53109
|
}
|
|
53106
53110
|
return transformArrayToContainer(value);
|
|
@@ -53318,6 +53322,8 @@ const SolidFormSearch = {
|
|
|
53318
53322
|
get value() {
|
|
53319
53323
|
const values = {};
|
|
53320
53324
|
this.widgets.forEach((widget) => {
|
|
53325
|
+
if (widget == null)
|
|
53326
|
+
return;
|
|
53321
53327
|
const name = (widget.component || widget).name;
|
|
53322
53328
|
if (name == null)
|
|
53323
53329
|
return;
|
|
@@ -53521,16 +53527,14 @@ const SolidAcChecker = {
|
|
|
53521
53527
|
return;
|
|
53522
53528
|
let displayElement;
|
|
53523
53529
|
const ContextParser3 = JSONLDContextParser.ContextParser;
|
|
53524
|
-
const myParser2 = new ContextParser3();
|
|
53525
|
-
const context2 = await myParser2.parse(this.context);
|
|
53526
53530
|
const permissions = await this.resource.permissions;
|
|
53527
53531
|
if (this.permission) {
|
|
53528
53532
|
displayElement = permissions.some((p) => {
|
|
53529
|
-
return ContextParser3.
|
|
53533
|
+
return ContextParser3.expandTerm(p, this.context, true) === this.permission;
|
|
53530
53534
|
});
|
|
53531
53535
|
} else if (this.noPermission) {
|
|
53532
53536
|
displayElement = permissions.every((p) => {
|
|
53533
|
-
return ContextParser3.
|
|
53537
|
+
return ContextParser3.expandTerm(p, this.context, true) !== this.noPermission;
|
|
53534
53538
|
});
|
|
53535
53539
|
} else {
|
|
53536
53540
|
console.warn('solid-ac-checker: you should define at least one of "permission" or "no-permission" attribute.');
|
|
@@ -53546,7 +53550,7 @@ const SolidAcChecker = {
|
|
|
53546
53550
|
Sib.register(SolidAcChecker);
|
|
53547
53551
|
const SolidDelete = {
|
|
53548
53552
|
name: "solid-delete",
|
|
53549
|
-
use: [NextMixin, ValidationMixin, AttributeBinderMixin],
|
|
53553
|
+
use: [NextMixin, ValidationMixin, AttributeBinderMixin, ContextMixin],
|
|
53550
53554
|
attributes: {
|
|
53551
53555
|
dataSrc: {
|
|
53552
53556
|
type: String,
|
|
@@ -53562,10 +53566,6 @@ const SolidDelete = {
|
|
|
53562
53566
|
if (newValue !== oldValue)
|
|
53563
53567
|
this.planRender();
|
|
53564
53568
|
}
|
|
53565
|
-
},
|
|
53566
|
-
extraContext: {
|
|
53567
|
-
type: String,
|
|
53568
|
-
default: null
|
|
53569
53569
|
}
|
|
53570
53570
|
},
|
|
53571
53571
|
initialState: {
|
|
@@ -53583,16 +53583,6 @@ const SolidDelete = {
|
|
|
53583
53583
|
});
|
|
53584
53584
|
}
|
|
53585
53585
|
},
|
|
53586
|
-
get context() {
|
|
53587
|
-
let extraContextElement = this.extraContext ? document.getElementById(this.extraContext) : (
|
|
53588
|
-
// take element extra context first
|
|
53589
|
-
document.querySelector("[data-default-context]")
|
|
53590
|
-
);
|
|
53591
|
-
let extraContext = {};
|
|
53592
|
-
if (extraContextElement)
|
|
53593
|
-
extraContext = JSON.parse(extraContextElement.textContent || "{}");
|
|
53594
|
-
return { ...base_context, ...extraContext };
|
|
53595
|
-
},
|
|
53596
53586
|
async delete(e) {
|
|
53597
53587
|
e.stopPropagation();
|
|
53598
53588
|
if (!this.dataSrc)
|
|
@@ -53700,9 +53690,9 @@ const until = directive((...args) => (part2) => {
|
|
|
53700
53690
|
state.lastRenderedIndex = _infinity;
|
|
53701
53691
|
previousLength = 0;
|
|
53702
53692
|
Promise.resolve(value).then((resolvedValue) => {
|
|
53703
|
-
const
|
|
53704
|
-
if (
|
|
53705
|
-
state.lastRenderedIndex =
|
|
53693
|
+
const index2 = state.values.indexOf(value);
|
|
53694
|
+
if (index2 > -1 && index2 < state.lastRenderedIndex) {
|
|
53695
|
+
state.lastRenderedIndex = index2;
|
|
53706
53696
|
part2.setValue(resolvedValue);
|
|
53707
53697
|
part2.commit();
|
|
53708
53698
|
}
|
|
@@ -53942,10 +53932,10 @@ const SolidMap = {
|
|
|
53942
53932
|
hasBeenResetOnce: false
|
|
53943
53933
|
},
|
|
53944
53934
|
created() {
|
|
53945
|
-
|
|
53946
|
-
|
|
53947
|
-
|
|
53948
|
-
|
|
53935
|
+
importInlineCSS("leaflet", () => import("./leaflet-2MZa2u07.js"));
|
|
53936
|
+
importInlineCSS("default-theme", () => import("./default-theme-oAPinkzv.js"));
|
|
53937
|
+
importInlineCSS("marker-cluster", () => import("./MarkerCluster-96Sa2BSd.js"));
|
|
53938
|
+
importInlineCSS("marker-cluster-default", () => import("./MarkerCluster.Default-CpBAgxXL.js"));
|
|
53949
53939
|
document.body.addEventListener(
|
|
53950
53940
|
"navigate",
|
|
53951
53941
|
() => setTimeout(() => this.isVisible && !this.hasBeenResetOnce && this.reset())
|
|
@@ -54107,6 +54097,300 @@ const SolidMap = {
|
|
|
54107
54097
|
}
|
|
54108
54098
|
};
|
|
54109
54099
|
Sib.register(SolidMap);
|
|
54100
|
+
const SolidMembership = {
|
|
54101
|
+
name: "solid-membership",
|
|
54102
|
+
use: [NextMixin, ValidationMixin, ContextMixin],
|
|
54103
|
+
attributes: {
|
|
54104
|
+
// Data Source being a group URI in that case
|
|
54105
|
+
dataSrc: {
|
|
54106
|
+
type: String,
|
|
54107
|
+
default: null,
|
|
54108
|
+
callback: function() {
|
|
54109
|
+
this.resourceId = this.dataSrc;
|
|
54110
|
+
}
|
|
54111
|
+
},
|
|
54112
|
+
dataLeaveLabel: {
|
|
54113
|
+
type: String,
|
|
54114
|
+
default: null,
|
|
54115
|
+
callback: function(newValue, oldValue) {
|
|
54116
|
+
if (newValue !== oldValue)
|
|
54117
|
+
this.planRender();
|
|
54118
|
+
}
|
|
54119
|
+
},
|
|
54120
|
+
dataJoinLabel: {
|
|
54121
|
+
type: String,
|
|
54122
|
+
default: null,
|
|
54123
|
+
callback: function(newValue, oldValue) {
|
|
54124
|
+
if (newValue !== oldValue)
|
|
54125
|
+
this.planRender();
|
|
54126
|
+
}
|
|
54127
|
+
}
|
|
54128
|
+
},
|
|
54129
|
+
initialState: {
|
|
54130
|
+
renderPlanned: false
|
|
54131
|
+
},
|
|
54132
|
+
created() {
|
|
54133
|
+
this.planRender();
|
|
54134
|
+
},
|
|
54135
|
+
async populate() {
|
|
54136
|
+
if (!store.session)
|
|
54137
|
+
return;
|
|
54138
|
+
let currentUserSession = await store.session;
|
|
54139
|
+
if (!currentUserSession)
|
|
54140
|
+
return;
|
|
54141
|
+
this.userId = await currentUserSession.webId;
|
|
54142
|
+
if (!this.userId)
|
|
54143
|
+
return;
|
|
54144
|
+
this.resource = await store.getData(this.resourceId);
|
|
54145
|
+
if (!this.resource)
|
|
54146
|
+
return;
|
|
54147
|
+
let memberPredicate = store.getExpandedPredicate("user_set", base_context);
|
|
54148
|
+
this.currentMembers = await this.resource[memberPredicate];
|
|
54149
|
+
if (!Array.isArray(this.currentMembers)) {
|
|
54150
|
+
this.currentMembers = [this.currentMembers];
|
|
54151
|
+
}
|
|
54152
|
+
this.isMember = this.currentMembers ? this.currentMembers.some((member) => member["@id"] === this.userId) : false;
|
|
54153
|
+
},
|
|
54154
|
+
planRender() {
|
|
54155
|
+
if (!this.renderPlanned) {
|
|
54156
|
+
this.renderPlanned = true;
|
|
54157
|
+
setTimeout(() => {
|
|
54158
|
+
this.render();
|
|
54159
|
+
this.renderPlanned = false;
|
|
54160
|
+
});
|
|
54161
|
+
}
|
|
54162
|
+
},
|
|
54163
|
+
async changeMembership(e) {
|
|
54164
|
+
e.stopPropagation();
|
|
54165
|
+
if (!this.dataSrc)
|
|
54166
|
+
return;
|
|
54167
|
+
this.performAction();
|
|
54168
|
+
},
|
|
54169
|
+
async joinGroup() {
|
|
54170
|
+
this.currentMembers.push({ "@id": this.userId });
|
|
54171
|
+
let currentRes = {
|
|
54172
|
+
"@context": this.context,
|
|
54173
|
+
"user_set": this.currentMembers
|
|
54174
|
+
};
|
|
54175
|
+
return store.patch(currentRes, this.dataSrc).then((response) => {
|
|
54176
|
+
if (!response) {
|
|
54177
|
+
console.warn(`Error while joining group ${this.dataSrc} for user ${this.userId}`);
|
|
54178
|
+
return;
|
|
54179
|
+
}
|
|
54180
|
+
this.goToNext(null);
|
|
54181
|
+
const eventData = { detail: { resource: { "@id": this.dataSrc } }, bubbles: true };
|
|
54182
|
+
this.element.dispatchEvent(new CustomEvent("save", eventData));
|
|
54183
|
+
this.element.dispatchEvent(new CustomEvent("memberAdded", eventData));
|
|
54184
|
+
this.planRender();
|
|
54185
|
+
});
|
|
54186
|
+
},
|
|
54187
|
+
async leaveGroup() {
|
|
54188
|
+
let userSet = this.currentMembers.filter((value) => {
|
|
54189
|
+
const userId = value["@id"];
|
|
54190
|
+
if (userId == this.userId)
|
|
54191
|
+
return false;
|
|
54192
|
+
else
|
|
54193
|
+
return true;
|
|
54194
|
+
});
|
|
54195
|
+
let currentRes = {
|
|
54196
|
+
"@context": this.context,
|
|
54197
|
+
"user_set": userSet
|
|
54198
|
+
};
|
|
54199
|
+
return store.patch(currentRes, this.dataSrc).then((response) => {
|
|
54200
|
+
if (!response) {
|
|
54201
|
+
console.warn(`Error while leaving group ${this.dataSrc} for user ${this.userId}`);
|
|
54202
|
+
return;
|
|
54203
|
+
}
|
|
54204
|
+
this.goToNext(null);
|
|
54205
|
+
const eventData = { detail: { resource: { "@id": this.dataSrc } }, bubbles: true };
|
|
54206
|
+
this.element.dispatchEvent(new CustomEvent("save", eventData));
|
|
54207
|
+
this.element.dispatchEvent(new CustomEvent("memberRemoved", eventData));
|
|
54208
|
+
this.planRender();
|
|
54209
|
+
});
|
|
54210
|
+
},
|
|
54211
|
+
switchMembership() {
|
|
54212
|
+
if (this.isMember) {
|
|
54213
|
+
return this.leaveGroup();
|
|
54214
|
+
} else {
|
|
54215
|
+
return this.joinGroup();
|
|
54216
|
+
}
|
|
54217
|
+
},
|
|
54218
|
+
validateModal() {
|
|
54219
|
+
return this.switchMembership();
|
|
54220
|
+
},
|
|
54221
|
+
update() {
|
|
54222
|
+
this.render();
|
|
54223
|
+
},
|
|
54224
|
+
async render() {
|
|
54225
|
+
await this.populate();
|
|
54226
|
+
let button = html$1``;
|
|
54227
|
+
if (this.isMember) {
|
|
54228
|
+
button = html$1`
|
|
54229
|
+
<solid-ac-checker data-src="${this.dataSrc}"
|
|
54230
|
+
permission="acl:Read"
|
|
54231
|
+
>
|
|
54232
|
+
<button @click=${this.changeMembership.bind(this)}>${this.dataLeaveLabel || this.t("solid-leave-group.button")}</button>
|
|
54233
|
+
${this.getModalDialog()}
|
|
54234
|
+
</solid-ac-checker>
|
|
54235
|
+
`;
|
|
54236
|
+
} else {
|
|
54237
|
+
button = html$1`
|
|
54238
|
+
<solid-ac-checker data-src="${this.dataSrc}"
|
|
54239
|
+
permission="acl:Read"
|
|
54240
|
+
>
|
|
54241
|
+
<button @click=${this.changeMembership.bind(this)}>${this.dataJoinLabel || this.t("solid-join-group.button")}</button>
|
|
54242
|
+
${this.getModalDialog()}
|
|
54243
|
+
</solid-ac-checker>
|
|
54244
|
+
`;
|
|
54245
|
+
}
|
|
54246
|
+
render$1(button, this.element);
|
|
54247
|
+
}
|
|
54248
|
+
};
|
|
54249
|
+
Sib.register(SolidMembership);
|
|
54250
|
+
const SolidMemberDelete = {
|
|
54251
|
+
name: "solid-member-delete",
|
|
54252
|
+
use: [NextMixin, ValidationMixin, ContextMixin],
|
|
54253
|
+
attributes: {
|
|
54254
|
+
// Data Source being a group URI in that case
|
|
54255
|
+
dataSrc: {
|
|
54256
|
+
type: String,
|
|
54257
|
+
default: null,
|
|
54258
|
+
callback: function() {
|
|
54259
|
+
this.resourceId = this.dataSrc;
|
|
54260
|
+
}
|
|
54261
|
+
},
|
|
54262
|
+
dataLabel: {
|
|
54263
|
+
type: String,
|
|
54264
|
+
default: null,
|
|
54265
|
+
callback: function(newValue, oldValue) {
|
|
54266
|
+
if (newValue !== oldValue)
|
|
54267
|
+
this.planRender();
|
|
54268
|
+
}
|
|
54269
|
+
},
|
|
54270
|
+
// The user id to remove from the group
|
|
54271
|
+
dataTargetSrc: {
|
|
54272
|
+
type: String,
|
|
54273
|
+
default: null,
|
|
54274
|
+
callback: function(newValue, oldValue) {
|
|
54275
|
+
if (newValue !== oldValue)
|
|
54276
|
+
this.planRender();
|
|
54277
|
+
}
|
|
54278
|
+
},
|
|
54279
|
+
dataUnknownMember: {
|
|
54280
|
+
type: String,
|
|
54281
|
+
default: "Given user is not a member of this group",
|
|
54282
|
+
callback: function(newValue, oldValue) {
|
|
54283
|
+
if (newValue !== oldValue)
|
|
54284
|
+
this.planRender();
|
|
54285
|
+
}
|
|
54286
|
+
}
|
|
54287
|
+
},
|
|
54288
|
+
initialState: {
|
|
54289
|
+
renderPlanned: false
|
|
54290
|
+
},
|
|
54291
|
+
created() {
|
|
54292
|
+
this.planRender();
|
|
54293
|
+
},
|
|
54294
|
+
async populate() {
|
|
54295
|
+
this.resource = await store.getData(this.resourceId);
|
|
54296
|
+
if (!this.resource)
|
|
54297
|
+
return;
|
|
54298
|
+
let memberPredicate = store.getExpandedPredicate("user_set", base_context);
|
|
54299
|
+
this.currentMembers = await this.resource[memberPredicate];
|
|
54300
|
+
if (!Array.isArray(this.currentMembers)) {
|
|
54301
|
+
this.currentMembers = [this.currentMembers];
|
|
54302
|
+
}
|
|
54303
|
+
this.isMember = this.currentMembers ? this.currentMembers.some((member) => member["@id"] === this.dataTargetSrc) : false;
|
|
54304
|
+
console.log("populate", this.dataSrc, this.dataTargetSrc, this.currentMembers, this.isMember);
|
|
54305
|
+
},
|
|
54306
|
+
planRender() {
|
|
54307
|
+
if (!this.renderPlanned) {
|
|
54308
|
+
this.renderPlanned = true;
|
|
54309
|
+
setTimeout(() => {
|
|
54310
|
+
this.render();
|
|
54311
|
+
this.renderPlanned = false;
|
|
54312
|
+
});
|
|
54313
|
+
}
|
|
54314
|
+
},
|
|
54315
|
+
async removeMember(e) {
|
|
54316
|
+
e.stopPropagation();
|
|
54317
|
+
if (!this.dataSrc)
|
|
54318
|
+
return;
|
|
54319
|
+
this.performAction();
|
|
54320
|
+
},
|
|
54321
|
+
async deleteMembership() {
|
|
54322
|
+
console.log("deleteMembership", this.dataSrc, this.dataTargetSrc, this.currentMembers);
|
|
54323
|
+
let userSet = this.currentMembers.filter((value) => {
|
|
54324
|
+
const userId = value["@id"];
|
|
54325
|
+
if (userId == this.dataTargetSrc)
|
|
54326
|
+
return false;
|
|
54327
|
+
else
|
|
54328
|
+
return true;
|
|
54329
|
+
});
|
|
54330
|
+
let currentRes = {
|
|
54331
|
+
"@context": this.context,
|
|
54332
|
+
"user_set": userSet
|
|
54333
|
+
};
|
|
54334
|
+
return store.patch(currentRes, this.dataSrc).then((response) => {
|
|
54335
|
+
if (!response) {
|
|
54336
|
+
console.warn(`Error while removing user ${this.dataTargetSrc} from group ${this.dataSrc}`);
|
|
54337
|
+
return;
|
|
54338
|
+
}
|
|
54339
|
+
this.goToNext(null);
|
|
54340
|
+
const eventData = { detail: { resource: { "@id": this.dataSrc } }, bubbles: true };
|
|
54341
|
+
this.element.dispatchEvent(new CustomEvent("save", eventData));
|
|
54342
|
+
this.element.dispatchEvent(new CustomEvent("memberRemoved", eventData));
|
|
54343
|
+
this.planRender();
|
|
54344
|
+
});
|
|
54345
|
+
},
|
|
54346
|
+
validateModal() {
|
|
54347
|
+
return this.deleteMembership();
|
|
54348
|
+
},
|
|
54349
|
+
update() {
|
|
54350
|
+
this.render();
|
|
54351
|
+
},
|
|
54352
|
+
async render() {
|
|
54353
|
+
await this.populate();
|
|
54354
|
+
let button = html$1``;
|
|
54355
|
+
if (this.isMember) {
|
|
54356
|
+
button = html$1`
|
|
54357
|
+
<solid-ac-checker data-src="${this.dataSrc}"
|
|
54358
|
+
permission="acl:Write"
|
|
54359
|
+
>
|
|
54360
|
+
<button @click=${this.removeMember.bind(this)}>${this.dataLabel || this.t("solid-delete-member.button")}</button>
|
|
54361
|
+
${this.getModalDialog()}
|
|
54362
|
+
</solid-ac-checker>
|
|
54363
|
+
`;
|
|
54364
|
+
} else {
|
|
54365
|
+
button = html$1`
|
|
54366
|
+
<span>${this.dataUnknownMember || this.t("solid-member-unknown.span")}</span>
|
|
54367
|
+
`;
|
|
54368
|
+
}
|
|
54369
|
+
render$1(button, this.element);
|
|
54370
|
+
}
|
|
54371
|
+
};
|
|
54372
|
+
Sib.register(SolidMemberDelete);
|
|
54373
|
+
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
54374
|
+
__proto__: null,
|
|
54375
|
+
AltMixin,
|
|
54376
|
+
EditableMixin,
|
|
54377
|
+
FilterRangeFormMixin,
|
|
54378
|
+
FormCheckboxMixin,
|
|
54379
|
+
FormCheckboxesMixin,
|
|
54380
|
+
FormDropdownMixin,
|
|
54381
|
+
FormFileMixin,
|
|
54382
|
+
FormLengthMixin,
|
|
54383
|
+
FormNumberMixin,
|
|
54384
|
+
FormRadioMixin,
|
|
54385
|
+
FormStepMixin,
|
|
54386
|
+
LinkTextMixin,
|
|
54387
|
+
MultipleFormMixin,
|
|
54388
|
+
MultipleselectFormMixin,
|
|
54389
|
+
PatternMixin,
|
|
54390
|
+
RangeMixin,
|
|
54391
|
+
SetMixin,
|
|
54392
|
+
ValueRichtextMixin
|
|
54393
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
54110
54394
|
class SolidTemplateElement extends HTMLElement {
|
|
54111
54395
|
constructor() {
|
|
54112
54396
|
super();
|
|
@@ -54311,12 +54595,12 @@ class BaseWidget extends HTMLElement {
|
|
|
54311
54595
|
element.dispatchEvent(new Event("change"));
|
|
54312
54596
|
} else if (this.dataHolder && this.dataHolder.length > 1) {
|
|
54313
54597
|
this.dataHolder.forEach(
|
|
54314
|
-
(el2,
|
|
54598
|
+
(el2, index2) => {
|
|
54315
54599
|
const element = this.getValueHolder(el2);
|
|
54316
54600
|
if (element.type == "checkbox") {
|
|
54317
|
-
element.checked = value ? value[
|
|
54601
|
+
element.checked = value ? value[index2] : "";
|
|
54318
54602
|
} else {
|
|
54319
|
-
element.value = value ? value[
|
|
54603
|
+
element.value = value ? value[index2] : "";
|
|
54320
54604
|
}
|
|
54321
54605
|
element.dispatchEvent(new Event("change"));
|
|
54322
54606
|
}
|
|
@@ -54373,11 +54657,11 @@ class BaseWidget extends HTMLElement {
|
|
|
54373
54657
|
if (!resource || !resource["ldp:contains"])
|
|
54374
54658
|
return null;
|
|
54375
54659
|
let resources = [];
|
|
54376
|
-
let
|
|
54660
|
+
let index2 = 0;
|
|
54377
54661
|
for (let res of resource["ldp:contains"]) {
|
|
54378
54662
|
if (!res) {
|
|
54379
54663
|
try {
|
|
54380
|
-
const resourceId = resource.getChildren("ldp:contains")[
|
|
54664
|
+
const resourceId = resource.getChildren("ldp:contains")[index2]["@id"];
|
|
54381
54665
|
res = await store.getData(resourceId, this.context);
|
|
54382
54666
|
} catch (e) {
|
|
54383
54667
|
continue;
|
|
@@ -54391,7 +54675,7 @@ class BaseWidget extends HTMLElement {
|
|
|
54391
54675
|
} else {
|
|
54392
54676
|
resources.push(res);
|
|
54393
54677
|
}
|
|
54394
|
-
|
|
54678
|
+
index2++;
|
|
54395
54679
|
}
|
|
54396
54680
|
return resources;
|
|
54397
54681
|
}
|
|
@@ -54504,7 +54788,9 @@ const widgetFactory = (tagName, customTemplate, childTemplate = "", callback) =>
|
|
|
54504
54788
|
return cls;
|
|
54505
54789
|
};
|
|
54506
54790
|
export {
|
|
54791
|
+
index$2 as AttributeMixins,
|
|
54507
54792
|
BaseWidgetMixin,
|
|
54793
|
+
index$1 as CallbackMixins,
|
|
54508
54794
|
CounterMixin,
|
|
54509
54795
|
FederationMixin,
|
|
54510
54796
|
FilterMixin,
|
|
@@ -54523,14 +54809,20 @@ export {
|
|
|
54523
54809
|
SolidFormSearch,
|
|
54524
54810
|
SolidLang,
|
|
54525
54811
|
SolidMap,
|
|
54812
|
+
SolidMemberDelete,
|
|
54813
|
+
SolidMembership,
|
|
54526
54814
|
SolidTable,
|
|
54527
54815
|
SolidTemplateElement,
|
|
54528
54816
|
SolidWidget,
|
|
54529
54817
|
SorterMixin,
|
|
54530
54818
|
StoreMixin,
|
|
54819
|
+
index$3 as TemplateAdditionMixins,
|
|
54820
|
+
index$4 as Templates,
|
|
54821
|
+
index as TemplatesDependenciesMixins,
|
|
54531
54822
|
TranslationMixin,
|
|
54532
54823
|
ValidationMixin,
|
|
54533
54824
|
WidgetMixin,
|
|
54825
|
+
base_context as baseContext,
|
|
54534
54826
|
html$1 as html,
|
|
54535
54827
|
ifDefined,
|
|
54536
54828
|
newWidgetFactory,
|
|
@@ -54540,4 +54832,3 @@ export {
|
|
|
54540
54832
|
until,
|
|
54541
54833
|
widgetFactory
|
|
54542
54834
|
};
|
|
54543
|
-
//# sourceMappingURL=index.js.map
|