@harbour-enterprises/superdoc 0.14.0-next.26 → 0.14.0-next.27
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/chunks/{index-Oz4X1zyg.cjs → index-BYM9Q-5k.cjs} +2 -2
- package/dist/chunks/{index-BMwK7kM5.es.js → index-CtKTO471.es.js} +2 -2
- package/dist/chunks/{index-MJ-5Yknb.es.js → index-CtmwketW.es.js} +1 -1
- package/dist/chunks/{index-CZuIe8A3.cjs → index-NNBaoa7m.cjs} +1 -1
- package/dist/chunks/{super-editor.es-CZ_TuVkB.es.js → super-editor.es-BO8oL1sR.es.js} +11 -20
- package/dist/chunks/{super-editor.es-DH-8-PRD.cjs → super-editor.es-DpAW3g30.cjs} +11 -20
- package/dist/chunks/{url-Cqg2Hljl.es.js → url-CGuSEi6H.es.js} +1 -1
- package/dist/chunks/{url-CRVat8D5.cjs → url-CHbZrfPf.cjs} +1 -1
- package/dist/chunks/{xml-js-t28wMlyv.cjs → xml-js-BjZxwY3_.cjs} +79 -100
- package/dist/chunks/{xml-js-D78KIQHL.es.js → xml-js-pilYeQmG.es.js} +79 -100
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BziP-vS2.js → converter-C4k4BEKJ.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-Bpmr2xac.js → docx-zipper-ClIt-o40.js} +1 -1
- package/dist/super-editor/chunks/{editor-D-07kSzr.js → editor-CS_yPyeu.js} +11 -20
- package/dist/super-editor/chunks/{toolbar-DvySjxKD.js → toolbar-DIoRwYUZ.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/extensions/field-annotation/FieldAnnotationView.d.ts.map +1 -1
- package/dist/super-editor/extensions/field-annotation/field-annotation.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +5 -5
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +12 -21
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-D5XoMX4C.cjs");
|
|
3
3
|
const vue = require("./vue-tQYF719J.cjs");
|
|
4
|
-
const xmlJs = require("./xml-js-
|
|
5
|
-
const url = require("./url-
|
|
4
|
+
const xmlJs = require("./xml-js-BjZxwY3_.cjs");
|
|
5
|
+
const url = require("./url-CHbZrfPf.cjs");
|
|
6
6
|
function _mergeNamespaces(n, m) {
|
|
7
7
|
for (var i = 0; i < m.length; i++) {
|
|
8
8
|
const e = m[i];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as commonjsGlobal, B as Buffer, a as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./jszip-CYDYUNnI.es.js";
|
|
2
2
|
import { p as process$1 } from "./vue-lU0o_RlU.es.js";
|
|
3
|
-
import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-
|
|
4
|
-
import { u as url } from "./url-
|
|
3
|
+
import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-pilYeQmG.es.js";
|
|
4
|
+
import { u as url } from "./url-CGuSEi6H.es.js";
|
|
5
5
|
function _mergeNamespaces(n, m) {
|
|
6
6
|
for (var i = 0; i < m.length; i++) {
|
|
7
7
|
const e = m[i];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./jszip-CYDYUNnI.es.js";
|
|
2
|
-
import { s as streamHttp, r as require$$1 } from "./index-
|
|
2
|
+
import { s as streamHttp, r as require$$1 } from "./index-CtKTO471.es.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
for (var i = 0; i < m.length; i++) {
|
|
5
5
|
const e = m[i];
|
|
@@ -24300,7 +24300,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
24300
24300
|
return;
|
|
24301
24301
|
}
|
|
24302
24302
|
}
|
|
24303
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.
|
|
24303
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.27") {
|
|
24304
24304
|
const customLocation = "docProps/custom.xml";
|
|
24305
24305
|
if (!docx[customLocation]) {
|
|
24306
24306
|
docx[customLocation] = generateCustomXml();
|
|
@@ -24776,7 +24776,7 @@ function storeSuperdocVersion(docx) {
|
|
|
24776
24776
|
function generateCustomXml() {
|
|
24777
24777
|
return DEFAULT_CUSTOM_XML;
|
|
24778
24778
|
}
|
|
24779
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.
|
|
24779
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.27") {
|
|
24780
24780
|
return {
|
|
24781
24781
|
type: "element",
|
|
24782
24782
|
name: "property",
|
|
@@ -42273,7 +42273,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
42273
42273
|
* @returns {Object | void} Migration results
|
|
42274
42274
|
*/
|
|
42275
42275
|
processCollaborationMigrations() {
|
|
42276
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.
|
|
42276
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.27");
|
|
42277
42277
|
if (!this.options.ydoc) return;
|
|
42278
42278
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
42279
42279
|
let docVersion = metaMap.get("version");
|
|
@@ -48569,7 +48569,7 @@ class FieldAnnotationView {
|
|
|
48569
48569
|
}
|
|
48570
48570
|
_FieldAnnotationView_instances = /* @__PURE__ */ new WeakSet();
|
|
48571
48571
|
createAnnotation_fn = function({ displayLabel } = {}) {
|
|
48572
|
-
let { highlighted
|
|
48572
|
+
let { highlighted } = this.node.attrs;
|
|
48573
48573
|
let annotation = document.createElement("span");
|
|
48574
48574
|
annotation.classList.add(this.annotationClass);
|
|
48575
48575
|
let content = document.createElement("span");
|
|
@@ -48582,12 +48582,7 @@ createAnnotation_fn = function({ displayLabel } = {}) {
|
|
|
48582
48582
|
annotation.append(content);
|
|
48583
48583
|
let omitHighlight = highlighted === false;
|
|
48584
48584
|
let styles = [`border: 2px solid ${this.borderColor}`, `border-radius: 2px`, `padding: 1px 2px`, `box-sizing: border-box`];
|
|
48585
|
-
|
|
48586
|
-
styles.push("font-weight: normal");
|
|
48587
|
-
}
|
|
48588
|
-
let annotationStyle = styles.join(
|
|
48589
|
-
"; "
|
|
48590
|
-
);
|
|
48585
|
+
let annotationStyle = styles.join("; ");
|
|
48591
48586
|
let mergedAttrs = Attribute2.mergeAttributes(this.htmlAttributes, {
|
|
48592
48587
|
style: omitHighlight ? "" : annotationStyle
|
|
48593
48588
|
});
|
|
@@ -49057,6 +49052,8 @@ const FieldAnnotation = Node$1.create({
|
|
|
49057
49052
|
default: null,
|
|
49058
49053
|
parseDOM: (elem) => {
|
|
49059
49054
|
try {
|
|
49055
|
+
const isHtmlType = elem.getAttribute("data-type") === "html";
|
|
49056
|
+
if (!isHtmlType) return null;
|
|
49060
49057
|
return JSON.parse(elem.getAttribute("data-raw-html"));
|
|
49061
49058
|
} catch (e) {
|
|
49062
49059
|
console.warn("Paste parse error", e);
|
|
@@ -49179,12 +49176,6 @@ const FieldAnnotation = Node$1.create({
|
|
|
49179
49176
|
parseDOM: (elem) => elem.getAttribute("data-bold") === "true",
|
|
49180
49177
|
renderDOM: (attrs) => {
|
|
49181
49178
|
if (!attrs.bold) return {};
|
|
49182
|
-
if (attrs.rawHtml) {
|
|
49183
|
-
return {
|
|
49184
|
-
"data-bold": "false",
|
|
49185
|
-
style: "font-weight: normal"
|
|
49186
|
-
};
|
|
49187
|
-
}
|
|
49188
49179
|
return {
|
|
49189
49180
|
"data-bold": "true",
|
|
49190
49181
|
style: "font-weight: bold"
|
|
@@ -49195,7 +49186,7 @@ const FieldAnnotation = Node$1.create({
|
|
|
49195
49186
|
default: false,
|
|
49196
49187
|
parseDOM: (elem) => elem.getAttribute("data-italic") === "true",
|
|
49197
49188
|
renderDOM: (attrs) => {
|
|
49198
|
-
if (!attrs.italic
|
|
49189
|
+
if (!attrs.italic) return {};
|
|
49199
49190
|
return {
|
|
49200
49191
|
"data-italic": "true",
|
|
49201
49192
|
style: "font-style: italic"
|
|
@@ -49206,7 +49197,7 @@ const FieldAnnotation = Node$1.create({
|
|
|
49206
49197
|
default: false,
|
|
49207
49198
|
parseDOM: (elem) => elem.getAttribute("data-underline") === "true",
|
|
49208
49199
|
renderDOM: (attrs) => {
|
|
49209
|
-
if (!attrs.underline
|
|
49200
|
+
if (!attrs.underline) return {};
|
|
49210
49201
|
return {
|
|
49211
49202
|
"data-underline": "true",
|
|
49212
49203
|
style: "text-decoration: underline"
|
|
@@ -49228,7 +49219,7 @@ const FieldAnnotation = Node$1.create({
|
|
|
49228
49219
|
default: null,
|
|
49229
49220
|
parseDOM: (elem) => elem.getAttribute("data-font-size") || elem.style.fontSize || null,
|
|
49230
49221
|
renderDOM: (attrs) => {
|
|
49231
|
-
if (!attrs.fontSize
|
|
49222
|
+
if (!attrs.fontSize) return {};
|
|
49232
49223
|
let [value, unit] = parseSizeUnit(attrs.fontSize);
|
|
49233
49224
|
if (Number.isNaN(value)) return {};
|
|
49234
49225
|
unit = unit ? unit : "pt";
|
|
@@ -49278,7 +49269,7 @@ const FieldAnnotation = Node$1.create({
|
|
|
49278
49269
|
];
|
|
49279
49270
|
},
|
|
49280
49271
|
renderDOM({ node: node2, htmlAttributes }) {
|
|
49281
|
-
let { type: type2, displayLabel, imageSrc,
|
|
49272
|
+
let { type: type2, displayLabel, imageSrc, linkUrl } = node2.attrs;
|
|
49282
49273
|
let textRenderer = () => {
|
|
49283
49274
|
return [
|
|
49284
49275
|
"span",
|
|
@@ -24317,7 +24317,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
24317
24317
|
return;
|
|
24318
24318
|
}
|
|
24319
24319
|
}
|
|
24320
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.
|
|
24320
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.27") {
|
|
24321
24321
|
const customLocation = "docProps/custom.xml";
|
|
24322
24322
|
if (!docx[customLocation]) {
|
|
24323
24323
|
docx[customLocation] = generateCustomXml();
|
|
@@ -24793,7 +24793,7 @@ function storeSuperdocVersion(docx) {
|
|
|
24793
24793
|
function generateCustomXml() {
|
|
24794
24794
|
return DEFAULT_CUSTOM_XML;
|
|
24795
24795
|
}
|
|
24796
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.
|
|
24796
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.27") {
|
|
24797
24797
|
return {
|
|
24798
24798
|
type: "element",
|
|
24799
24799
|
name: "property",
|
|
@@ -42290,7 +42290,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
42290
42290
|
* @returns {Object | void} Migration results
|
|
42291
42291
|
*/
|
|
42292
42292
|
processCollaborationMigrations() {
|
|
42293
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.
|
|
42293
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.27");
|
|
42294
42294
|
if (!this.options.ydoc) return;
|
|
42295
42295
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
42296
42296
|
let docVersion = metaMap.get("version");
|
|
@@ -48586,7 +48586,7 @@ class FieldAnnotationView {
|
|
|
48586
48586
|
}
|
|
48587
48587
|
_FieldAnnotationView_instances = /* @__PURE__ */ new WeakSet();
|
|
48588
48588
|
createAnnotation_fn = function({ displayLabel } = {}) {
|
|
48589
|
-
let { highlighted
|
|
48589
|
+
let { highlighted } = this.node.attrs;
|
|
48590
48590
|
let annotation = document.createElement("span");
|
|
48591
48591
|
annotation.classList.add(this.annotationClass);
|
|
48592
48592
|
let content = document.createElement("span");
|
|
@@ -48599,12 +48599,7 @@ createAnnotation_fn = function({ displayLabel } = {}) {
|
|
|
48599
48599
|
annotation.append(content);
|
|
48600
48600
|
let omitHighlight = highlighted === false;
|
|
48601
48601
|
let styles = [`border: 2px solid ${this.borderColor}`, `border-radius: 2px`, `padding: 1px 2px`, `box-sizing: border-box`];
|
|
48602
|
-
|
|
48603
|
-
styles.push("font-weight: normal");
|
|
48604
|
-
}
|
|
48605
|
-
let annotationStyle = styles.join(
|
|
48606
|
-
"; "
|
|
48607
|
-
);
|
|
48602
|
+
let annotationStyle = styles.join("; ");
|
|
48608
48603
|
let mergedAttrs = Attribute2.mergeAttributes(this.htmlAttributes, {
|
|
48609
48604
|
style: omitHighlight ? "" : annotationStyle
|
|
48610
48605
|
});
|
|
@@ -49074,6 +49069,8 @@ const FieldAnnotation = Node$1.create({
|
|
|
49074
49069
|
default: null,
|
|
49075
49070
|
parseDOM: (elem) => {
|
|
49076
49071
|
try {
|
|
49072
|
+
const isHtmlType = elem.getAttribute("data-type") === "html";
|
|
49073
|
+
if (!isHtmlType) return null;
|
|
49077
49074
|
return JSON.parse(elem.getAttribute("data-raw-html"));
|
|
49078
49075
|
} catch (e) {
|
|
49079
49076
|
console.warn("Paste parse error", e);
|
|
@@ -49196,12 +49193,6 @@ const FieldAnnotation = Node$1.create({
|
|
|
49196
49193
|
parseDOM: (elem) => elem.getAttribute("data-bold") === "true",
|
|
49197
49194
|
renderDOM: (attrs) => {
|
|
49198
49195
|
if (!attrs.bold) return {};
|
|
49199
|
-
if (attrs.rawHtml) {
|
|
49200
|
-
return {
|
|
49201
|
-
"data-bold": "false",
|
|
49202
|
-
style: "font-weight: normal"
|
|
49203
|
-
};
|
|
49204
|
-
}
|
|
49205
49196
|
return {
|
|
49206
49197
|
"data-bold": "true",
|
|
49207
49198
|
style: "font-weight: bold"
|
|
@@ -49212,7 +49203,7 @@ const FieldAnnotation = Node$1.create({
|
|
|
49212
49203
|
default: false,
|
|
49213
49204
|
parseDOM: (elem) => elem.getAttribute("data-italic") === "true",
|
|
49214
49205
|
renderDOM: (attrs) => {
|
|
49215
|
-
if (!attrs.italic
|
|
49206
|
+
if (!attrs.italic) return {};
|
|
49216
49207
|
return {
|
|
49217
49208
|
"data-italic": "true",
|
|
49218
49209
|
style: "font-style: italic"
|
|
@@ -49223,7 +49214,7 @@ const FieldAnnotation = Node$1.create({
|
|
|
49223
49214
|
default: false,
|
|
49224
49215
|
parseDOM: (elem) => elem.getAttribute("data-underline") === "true",
|
|
49225
49216
|
renderDOM: (attrs) => {
|
|
49226
|
-
if (!attrs.underline
|
|
49217
|
+
if (!attrs.underline) return {};
|
|
49227
49218
|
return {
|
|
49228
49219
|
"data-underline": "true",
|
|
49229
49220
|
style: "text-decoration: underline"
|
|
@@ -49245,7 +49236,7 @@ const FieldAnnotation = Node$1.create({
|
|
|
49245
49236
|
default: null,
|
|
49246
49237
|
parseDOM: (elem) => elem.getAttribute("data-font-size") || elem.style.fontSize || null,
|
|
49247
49238
|
renderDOM: (attrs) => {
|
|
49248
|
-
if (!attrs.fontSize
|
|
49239
|
+
if (!attrs.fontSize) return {};
|
|
49249
49240
|
let [value, unit] = parseSizeUnit(attrs.fontSize);
|
|
49250
49241
|
if (Number.isNaN(value)) return {};
|
|
49251
49242
|
unit = unit ? unit : "pt";
|
|
@@ -49295,7 +49286,7 @@ const FieldAnnotation = Node$1.create({
|
|
|
49295
49286
|
];
|
|
49296
49287
|
},
|
|
49297
49288
|
renderDOM({ node: node2, htmlAttributes }) {
|
|
49298
|
-
let { type: type2, displayLabel, imageSrc,
|
|
49289
|
+
let { type: type2, displayLabel, imageSrc, linkUrl } = node2.attrs;
|
|
49299
49290
|
let textRenderer = () => {
|
|
49300
49291
|
return [
|
|
49301
49292
|
"span",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-CYDYUNnI.es.js";
|
|
2
|
-
import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-
|
|
2
|
+
import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-pilYeQmG.es.js";
|
|
3
3
|
import { _ as __viteBrowserExternal } from "./__vite-browser-external-CURh0WXD.es.js";
|
|
4
4
|
var punycode$1 = { exports: {} };
|
|
5
5
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-D5XoMX4C.cjs");
|
|
3
|
-
const xmlJs = require("./xml-js-
|
|
3
|
+
const xmlJs = require("./xml-js-BjZxwY3_.cjs");
|
|
4
4
|
const __viteBrowserExternal = require("./__vite-browser-external-DWbQq7bv.cjs");
|
|
5
5
|
var punycode$1 = { exports: {} };
|
|
6
6
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
@@ -457,7 +457,7 @@ var type = TypeError;
|
|
|
457
457
|
var uri = URIError;
|
|
458
458
|
var abs$1 = Math.abs;
|
|
459
459
|
var floor$1 = Math.floor;
|
|
460
|
-
var max$
|
|
460
|
+
var max$2 = Math.max;
|
|
461
461
|
var min$1 = Math.min;
|
|
462
462
|
var pow$1 = Math.pow;
|
|
463
463
|
var round$1 = Math.round;
|
|
@@ -517,99 +517,78 @@ function requireHasSymbols() {
|
|
|
517
517
|
var Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
518
518
|
var $Object$2 = esObjectAtoms;
|
|
519
519
|
var Object_getPrototypeOf = $Object$2.getPrototypeOf || null;
|
|
520
|
-
var
|
|
521
|
-
var
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
var
|
|
526
|
-
var
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
var
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
var str = "";
|
|
548
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
549
|
-
str += arr[i];
|
|
550
|
-
if (i + 1 < arr.length) {
|
|
551
|
-
str += joiner;
|
|
552
|
-
}
|
|
520
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
521
|
+
var toStr$3 = Object.prototype.toString;
|
|
522
|
+
var max$1 = Math.max;
|
|
523
|
+
var funcType = "[object Function]";
|
|
524
|
+
var concatty = function concatty2(a, b) {
|
|
525
|
+
var arr = [];
|
|
526
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
527
|
+
arr[i] = a[i];
|
|
528
|
+
}
|
|
529
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
530
|
+
arr[j + a.length] = b[j];
|
|
531
|
+
}
|
|
532
|
+
return arr;
|
|
533
|
+
};
|
|
534
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
535
|
+
var arr = [];
|
|
536
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
537
|
+
arr[j] = arrLike[i];
|
|
538
|
+
}
|
|
539
|
+
return arr;
|
|
540
|
+
};
|
|
541
|
+
var joiny = function(arr, joiner) {
|
|
542
|
+
var str = "";
|
|
543
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
544
|
+
str += arr[i];
|
|
545
|
+
if (i + 1 < arr.length) {
|
|
546
|
+
str += joiner;
|
|
553
547
|
}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
);
|
|
569
|
-
if (Object(result) === result) {
|
|
570
|
-
return result;
|
|
571
|
-
}
|
|
572
|
-
return this;
|
|
573
|
-
}
|
|
574
|
-
return target.apply(
|
|
575
|
-
that,
|
|
548
|
+
}
|
|
549
|
+
return str;
|
|
550
|
+
};
|
|
551
|
+
var implementation$1 = function bind(that) {
|
|
552
|
+
var target = this;
|
|
553
|
+
if (typeof target !== "function" || toStr$3.apply(target) !== funcType) {
|
|
554
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
555
|
+
}
|
|
556
|
+
var args = slicy(arguments, 1);
|
|
557
|
+
var bound;
|
|
558
|
+
var binder = function() {
|
|
559
|
+
if (this instanceof bound) {
|
|
560
|
+
var result = target.apply(
|
|
561
|
+
this,
|
|
576
562
|
concatty(args, arguments)
|
|
577
563
|
);
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
boundArgs[i] = "$" + i;
|
|
583
|
-
}
|
|
584
|
-
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
585
|
-
if (target.prototype) {
|
|
586
|
-
var Empty = function Empty2() {
|
|
587
|
-
};
|
|
588
|
-
Empty.prototype = target.prototype;
|
|
589
|
-
bound.prototype = new Empty();
|
|
590
|
-
Empty.prototype = null;
|
|
564
|
+
if (Object(result) === result) {
|
|
565
|
+
return result;
|
|
566
|
+
}
|
|
567
|
+
return this;
|
|
591
568
|
}
|
|
592
|
-
return
|
|
569
|
+
return target.apply(
|
|
570
|
+
that,
|
|
571
|
+
concatty(args, arguments)
|
|
572
|
+
);
|
|
593
573
|
};
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
var
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
}
|
|
574
|
+
var boundLength = max$1(0, target.length - args.length);
|
|
575
|
+
var boundArgs = [];
|
|
576
|
+
for (var i = 0; i < boundLength; i++) {
|
|
577
|
+
boundArgs[i] = "$" + i;
|
|
578
|
+
}
|
|
579
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
580
|
+
if (target.prototype) {
|
|
581
|
+
var Empty = function Empty2() {
|
|
582
|
+
};
|
|
583
|
+
Empty.prototype = target.prototype;
|
|
584
|
+
bound.prototype = new Empty();
|
|
585
|
+
Empty.prototype = null;
|
|
586
|
+
}
|
|
587
|
+
return bound;
|
|
588
|
+
};
|
|
589
|
+
var implementation = implementation$1;
|
|
590
|
+
var functionBind = Function.prototype.bind || implementation;
|
|
591
|
+
var functionCall = Function.prototype.call;
|
|
613
592
|
var functionApply;
|
|
614
593
|
var hasRequiredFunctionApply;
|
|
615
594
|
function requireFunctionApply() {
|
|
@@ -619,14 +598,14 @@ function requireFunctionApply() {
|
|
|
619
598
|
return functionApply;
|
|
620
599
|
}
|
|
621
600
|
var reflectApply$1 = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
622
|
-
var bind$3 =
|
|
601
|
+
var bind$3 = functionBind;
|
|
623
602
|
var $apply$2 = requireFunctionApply();
|
|
624
|
-
var $call$2 =
|
|
603
|
+
var $call$2 = functionCall;
|
|
625
604
|
var $reflectApply = reflectApply$1;
|
|
626
605
|
var actualApply$1 = $reflectApply || bind$3.call($call$2, $apply$2);
|
|
627
|
-
var bind$2 =
|
|
606
|
+
var bind$2 = functionBind;
|
|
628
607
|
var $TypeError$4 = type;
|
|
629
|
-
var $call$1 =
|
|
608
|
+
var $call$1 = functionCall;
|
|
630
609
|
var $actualApply = actualApply$1;
|
|
631
610
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
632
611
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -678,8 +657,8 @@ function requireHasown() {
|
|
|
678
657
|
hasRequiredHasown = 1;
|
|
679
658
|
var call = Function.prototype.call;
|
|
680
659
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
681
|
-
var
|
|
682
|
-
hasown =
|
|
660
|
+
var bind3 = functionBind;
|
|
661
|
+
hasown = bind3.call(call, $hasOwn);
|
|
683
662
|
return hasown;
|
|
684
663
|
}
|
|
685
664
|
var undefined$1;
|
|
@@ -693,7 +672,7 @@ var $TypeError$3 = type;
|
|
|
693
672
|
var $URIError = uri;
|
|
694
673
|
var abs = abs$1;
|
|
695
674
|
var floor = floor$1;
|
|
696
|
-
var max = max$
|
|
675
|
+
var max = max$2;
|
|
697
676
|
var min = min$1;
|
|
698
677
|
var pow = pow$1;
|
|
699
678
|
var round = round$1;
|
|
@@ -727,7 +706,7 @@ var getProto$2 = getProto$3;
|
|
|
727
706
|
var $ObjectGPO = Object_getPrototypeOf;
|
|
728
707
|
var $ReflectGPO = Reflect_getPrototypeOf;
|
|
729
708
|
var $apply$1 = requireFunctionApply();
|
|
730
|
-
var $call =
|
|
709
|
+
var $call = functionCall;
|
|
731
710
|
var needsEval = {};
|
|
732
711
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto$2 ? undefined$1 : getProto$2(Uint8Array);
|
|
733
712
|
var INTRINSICS = {
|
|
@@ -898,7 +877,7 @@ var LEGACY_ALIASES = {
|
|
|
898
877
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
899
878
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
900
879
|
};
|
|
901
|
-
var bind$1 =
|
|
880
|
+
var bind$1 = functionBind;
|
|
902
881
|
var hasOwn$1 = requireHasown();
|
|
903
882
|
var $concat = bind$1.call($call, Array.prototype.concat);
|
|
904
883
|
var $spliceApply = bind$1.call($apply$1, Array.prototype.splice);
|
|
@@ -1440,11 +1419,11 @@ var setFunctionLength = function setFunctionLength2(fn2, length) {
|
|
|
1440
1419
|
}
|
|
1441
1420
|
return fn2;
|
|
1442
1421
|
};
|
|
1443
|
-
var
|
|
1422
|
+
var bind2 = functionBind;
|
|
1444
1423
|
var $apply = requireFunctionApply();
|
|
1445
1424
|
var actualApply = actualApply$1;
|
|
1446
1425
|
var applyBind = function applyBind2() {
|
|
1447
|
-
return actualApply(
|
|
1426
|
+
return actualApply(bind2, $apply, arguments);
|
|
1448
1427
|
};
|
|
1449
1428
|
(function(module2) {
|
|
1450
1429
|
var setFunctionLength$1 = setFunctionLength;
|