@94ai/nf-text-overflow 3.1.39 → 3.1.41
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/lib/nf-text-overflow.cjs.js +1465 -56
- package/lib/nf-text-overflow.esm-bundler.js +1465 -56
- package/package.json +1 -1
|
@@ -2,7 +2,1416 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vueDemi = require("vue-demi");
|
|
4
4
|
const vue2RuntimeHelpers = require("@94ai/vue2-runtime-helpers");
|
|
5
|
-
|
|
5
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
6
|
+
function getDefaultExportFromCjs(x) {
|
|
7
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
8
|
+
}
|
|
9
|
+
var fails$c = function(exec2) {
|
|
10
|
+
try {
|
|
11
|
+
return !!exec2();
|
|
12
|
+
} catch (error) {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
var fails$b = fails$c;
|
|
17
|
+
var functionBindNative = !fails$b(function() {
|
|
18
|
+
var test2 = (function() {
|
|
19
|
+
}).bind();
|
|
20
|
+
return typeof test2 != "function" || test2.hasOwnProperty("prototype");
|
|
21
|
+
});
|
|
22
|
+
var NATIVE_BIND$3 = functionBindNative;
|
|
23
|
+
var FunctionPrototype$2 = Function.prototype;
|
|
24
|
+
var call$6 = FunctionPrototype$2.call;
|
|
25
|
+
var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$6, call$6);
|
|
26
|
+
var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function(fn) {
|
|
27
|
+
return function() {
|
|
28
|
+
return call$6.apply(fn, arguments);
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
var uncurryThis$c = functionUncurryThis;
|
|
32
|
+
var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
|
|
33
|
+
var check = function(it) {
|
|
34
|
+
return it && it.Math == Math && it;
|
|
35
|
+
};
|
|
36
|
+
var global$c = (
|
|
37
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
38
|
+
check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
39
|
+
check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
|
|
40
|
+
function() {
|
|
41
|
+
return this;
|
|
42
|
+
}() || commonjsGlobal || Function("return this")()
|
|
43
|
+
);
|
|
44
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
45
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
46
|
+
var apply$1 = FunctionPrototype$1.apply;
|
|
47
|
+
var call$5 = FunctionPrototype$1.call;
|
|
48
|
+
var functionApply = typeof Reflect == "object" && Reflect.apply || (NATIVE_BIND$2 ? call$5.bind(apply$1) : function() {
|
|
49
|
+
return call$5.apply(apply$1, arguments);
|
|
50
|
+
});
|
|
51
|
+
var uncurryThis$b = functionUncurryThis;
|
|
52
|
+
var toString$2 = uncurryThis$b({}.toString);
|
|
53
|
+
var stringSlice = uncurryThis$b("".slice);
|
|
54
|
+
var classofRaw$2 = function(it) {
|
|
55
|
+
return stringSlice(toString$2(it), 8, -1);
|
|
56
|
+
};
|
|
57
|
+
var classofRaw$1 = classofRaw$2;
|
|
58
|
+
var uncurryThis$a = functionUncurryThis;
|
|
59
|
+
var functionUncurryThisClause = function(fn) {
|
|
60
|
+
if (classofRaw$1(fn) === "Function")
|
|
61
|
+
return uncurryThis$a(fn);
|
|
62
|
+
};
|
|
63
|
+
var documentAll$2 = typeof document == "object" && document.all;
|
|
64
|
+
var IS_HTMLDDA = typeof documentAll$2 == "undefined" && documentAll$2 !== void 0;
|
|
65
|
+
var documentAll_1 = {
|
|
66
|
+
all: documentAll$2,
|
|
67
|
+
IS_HTMLDDA
|
|
68
|
+
};
|
|
69
|
+
var $documentAll$1 = documentAll_1;
|
|
70
|
+
var documentAll$1 = $documentAll$1.all;
|
|
71
|
+
var isCallable$d = $documentAll$1.IS_HTMLDDA ? function(argument) {
|
|
72
|
+
return typeof argument == "function" || argument === documentAll$1;
|
|
73
|
+
} : function(argument) {
|
|
74
|
+
return typeof argument == "function";
|
|
75
|
+
};
|
|
76
|
+
var objectGetOwnPropertyDescriptor = {};
|
|
77
|
+
var fails$a = fails$c;
|
|
78
|
+
var descriptors = !fails$a(function() {
|
|
79
|
+
return Object.defineProperty({}, 1, {
|
|
80
|
+
get: function() {
|
|
81
|
+
return 7;
|
|
82
|
+
}
|
|
83
|
+
})[1] != 7;
|
|
84
|
+
});
|
|
85
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
86
|
+
var call$4 = Function.prototype.call;
|
|
87
|
+
var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function() {
|
|
88
|
+
return call$4.apply(call$4, arguments);
|
|
89
|
+
};
|
|
90
|
+
var objectPropertyIsEnumerable = {};
|
|
91
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
92
|
+
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
93
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({
|
|
94
|
+
1: 2
|
|
95
|
+
}, 1);
|
|
96
|
+
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
97
|
+
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
98
|
+
return !!descriptor && descriptor.enumerable;
|
|
99
|
+
} : $propertyIsEnumerable;
|
|
100
|
+
var createPropertyDescriptor$4 = function(bitmap, value) {
|
|
101
|
+
return {
|
|
102
|
+
enumerable: !(bitmap & 1),
|
|
103
|
+
configurable: !(bitmap & 2),
|
|
104
|
+
writable: !(bitmap & 4),
|
|
105
|
+
value
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
109
|
+
var fails$9 = fails$c;
|
|
110
|
+
var classof$6 = classofRaw$2;
|
|
111
|
+
var $Object$4 = Object;
|
|
112
|
+
var split = uncurryThis$9("".split);
|
|
113
|
+
var indexedObject = fails$9(function() {
|
|
114
|
+
return !$Object$4("z").propertyIsEnumerable(0);
|
|
115
|
+
}) ? function(it) {
|
|
116
|
+
return classof$6(it) == "String" ? split(it, "") : $Object$4(it);
|
|
117
|
+
} : $Object$4;
|
|
118
|
+
var isNullOrUndefined$2 = function(it) {
|
|
119
|
+
return it === null || it === void 0;
|
|
120
|
+
};
|
|
121
|
+
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
|
122
|
+
var $TypeError$5 = TypeError;
|
|
123
|
+
var requireObjectCoercible$2 = function(it) {
|
|
124
|
+
if (isNullOrUndefined$1(it))
|
|
125
|
+
throw $TypeError$5("Can't call method on " + it);
|
|
126
|
+
return it;
|
|
127
|
+
};
|
|
128
|
+
var IndexedObject$1 = indexedObject;
|
|
129
|
+
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
130
|
+
var toIndexedObject$6 = function(it) {
|
|
131
|
+
return IndexedObject$1(requireObjectCoercible$1(it));
|
|
132
|
+
};
|
|
133
|
+
var isCallable$c = isCallable$d;
|
|
134
|
+
var $documentAll = documentAll_1;
|
|
135
|
+
var documentAll = $documentAll.all;
|
|
136
|
+
var isObject$8 = $documentAll.IS_HTMLDDA ? function(it) {
|
|
137
|
+
return typeof it == "object" ? it !== null : isCallable$c(it) || it === documentAll;
|
|
138
|
+
} : function(it) {
|
|
139
|
+
return typeof it == "object" ? it !== null : isCallable$c(it);
|
|
140
|
+
};
|
|
141
|
+
var path$3 = {};
|
|
142
|
+
var path$2 = path$3;
|
|
143
|
+
var global$b = global$c;
|
|
144
|
+
var isCallable$b = isCallable$d;
|
|
145
|
+
var aFunction = function(variable) {
|
|
146
|
+
return isCallable$b(variable) ? variable : void 0;
|
|
147
|
+
};
|
|
148
|
+
var getBuiltIn$3 = function(namespace, method2) {
|
|
149
|
+
return arguments.length < 2 ? aFunction(path$2[namespace]) || aFunction(global$b[namespace]) : path$2[namespace] && path$2[namespace][method2] || global$b[namespace] && global$b[namespace][method2];
|
|
150
|
+
};
|
|
151
|
+
var engineUserAgent = typeof navigator != "undefined" && String(navigator.userAgent) || "";
|
|
152
|
+
var global$a = global$c;
|
|
153
|
+
var userAgent = engineUserAgent;
|
|
154
|
+
var process = global$a.process;
|
|
155
|
+
var Deno = global$a.Deno;
|
|
156
|
+
var versions = process && process.versions || Deno && Deno.version;
|
|
157
|
+
var v8 = versions && versions.v8;
|
|
158
|
+
var match, version;
|
|
159
|
+
if (v8) {
|
|
160
|
+
match = v8.split(".");
|
|
161
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
162
|
+
}
|
|
163
|
+
if (!version && userAgent) {
|
|
164
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
|
165
|
+
if (!match || match[1] >= 74) {
|
|
166
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
|
167
|
+
if (match)
|
|
168
|
+
version = +match[1];
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
var engineV8Version = version;
|
|
172
|
+
var V8_VERSION$1 = engineV8Version;
|
|
173
|
+
var fails$8 = fails$c;
|
|
174
|
+
var global$9 = global$c;
|
|
175
|
+
var $String$2 = global$9.String;
|
|
176
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function() {
|
|
177
|
+
var symbol = Symbol();
|
|
178
|
+
return !$String$2(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
179
|
+
!Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
|
|
180
|
+
});
|
|
181
|
+
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
182
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && typeof Symbol.iterator == "symbol";
|
|
183
|
+
var getBuiltIn$2 = getBuiltIn$3;
|
|
184
|
+
var isCallable$a = isCallable$d;
|
|
185
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
186
|
+
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
187
|
+
var $Object$3 = Object;
|
|
188
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function(it) {
|
|
189
|
+
return typeof it == "symbol";
|
|
190
|
+
} : function(it) {
|
|
191
|
+
var $Symbol = getBuiltIn$2("Symbol");
|
|
192
|
+
return isCallable$a($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
|
|
193
|
+
};
|
|
194
|
+
var $String$1 = String;
|
|
195
|
+
var tryToString$1 = function(argument) {
|
|
196
|
+
try {
|
|
197
|
+
return $String$1(argument);
|
|
198
|
+
} catch (error) {
|
|
199
|
+
return "Object";
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
var isCallable$9 = isCallable$d;
|
|
203
|
+
var tryToString = tryToString$1;
|
|
204
|
+
var $TypeError$4 = TypeError;
|
|
205
|
+
var aCallable$2 = function(argument) {
|
|
206
|
+
if (isCallable$9(argument))
|
|
207
|
+
return argument;
|
|
208
|
+
throw $TypeError$4(tryToString(argument) + " is not a function");
|
|
209
|
+
};
|
|
210
|
+
var aCallable$1 = aCallable$2;
|
|
211
|
+
var isNullOrUndefined = isNullOrUndefined$2;
|
|
212
|
+
var getMethod$1 = function(V, P) {
|
|
213
|
+
var func = V[P];
|
|
214
|
+
return isNullOrUndefined(func) ? void 0 : aCallable$1(func);
|
|
215
|
+
};
|
|
216
|
+
var call$3 = functionCall;
|
|
217
|
+
var isCallable$8 = isCallable$d;
|
|
218
|
+
var isObject$7 = isObject$8;
|
|
219
|
+
var $TypeError$3 = TypeError;
|
|
220
|
+
var ordinaryToPrimitive$1 = function(input, pref) {
|
|
221
|
+
var fn, val;
|
|
222
|
+
if (pref === "string" && isCallable$8(fn = input.toString) && !isObject$7(val = call$3(fn, input)))
|
|
223
|
+
return val;
|
|
224
|
+
if (isCallable$8(fn = input.valueOf) && !isObject$7(val = call$3(fn, input)))
|
|
225
|
+
return val;
|
|
226
|
+
if (pref !== "string" && isCallable$8(fn = input.toString) && !isObject$7(val = call$3(fn, input)))
|
|
227
|
+
return val;
|
|
228
|
+
throw $TypeError$3("Can't convert object to primitive value");
|
|
229
|
+
};
|
|
230
|
+
var shared$3 = { exports: {} };
|
|
231
|
+
var global$8 = global$c;
|
|
232
|
+
var defineProperty$1 = Object.defineProperty;
|
|
233
|
+
var defineGlobalProperty$1 = function(key, value) {
|
|
234
|
+
try {
|
|
235
|
+
defineProperty$1(global$8, key, {
|
|
236
|
+
value,
|
|
237
|
+
configurable: true,
|
|
238
|
+
writable: true
|
|
239
|
+
});
|
|
240
|
+
} catch (error) {
|
|
241
|
+
global$8[key] = value;
|
|
242
|
+
}
|
|
243
|
+
return value;
|
|
244
|
+
};
|
|
245
|
+
var global$7 = global$c;
|
|
246
|
+
var defineGlobalProperty = defineGlobalProperty$1;
|
|
247
|
+
var SHARED = "__core-js_shared__";
|
|
248
|
+
var store$3 = global$7[SHARED] || defineGlobalProperty(SHARED, {});
|
|
249
|
+
var sharedStore = store$3;
|
|
250
|
+
var store$2 = sharedStore;
|
|
251
|
+
(shared$3.exports = function(key, value) {
|
|
252
|
+
return store$2[key] || (store$2[key] = value !== void 0 ? value : {});
|
|
253
|
+
})("versions", []).push({
|
|
254
|
+
version: "3.31.1",
|
|
255
|
+
mode: "pure",
|
|
256
|
+
copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)",
|
|
257
|
+
license: "https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",
|
|
258
|
+
source: "https://github.com/zloirock/core-js"
|
|
259
|
+
});
|
|
260
|
+
var sharedExports = shared$3.exports;
|
|
261
|
+
var requireObjectCoercible = requireObjectCoercible$2;
|
|
262
|
+
var $Object$2 = Object;
|
|
263
|
+
var toObject$3 = function(argument) {
|
|
264
|
+
return $Object$2(requireObjectCoercible(argument));
|
|
265
|
+
};
|
|
266
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
267
|
+
var toObject$2 = toObject$3;
|
|
268
|
+
var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
|
|
269
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
270
|
+
return hasOwnProperty(toObject$2(it), key);
|
|
271
|
+
};
|
|
272
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
273
|
+
var id = 0;
|
|
274
|
+
var postfix = Math.random();
|
|
275
|
+
var toString$1 = uncurryThis$7(1 .toString);
|
|
276
|
+
var uid$2 = function(key) {
|
|
277
|
+
return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString$1(++id + postfix, 36);
|
|
278
|
+
};
|
|
279
|
+
var global$6 = global$c;
|
|
280
|
+
var shared$2 = sharedExports;
|
|
281
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
282
|
+
var uid$1 = uid$2;
|
|
283
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
284
|
+
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
285
|
+
var Symbol$1 = global$6.Symbol;
|
|
286
|
+
var WellKnownSymbolsStore = shared$2("wks");
|
|
287
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1["for"] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
288
|
+
var wellKnownSymbol$a = function(name) {
|
|
289
|
+
if (!hasOwn$8(WellKnownSymbolsStore, name)) {
|
|
290
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name) ? Symbol$1[name] : createWellKnownSymbol("Symbol." + name);
|
|
291
|
+
}
|
|
292
|
+
return WellKnownSymbolsStore[name];
|
|
293
|
+
};
|
|
294
|
+
var call$2 = functionCall;
|
|
295
|
+
var isObject$6 = isObject$8;
|
|
296
|
+
var isSymbol$1 = isSymbol$2;
|
|
297
|
+
var getMethod = getMethod$1;
|
|
298
|
+
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
299
|
+
var wellKnownSymbol$9 = wellKnownSymbol$a;
|
|
300
|
+
var $TypeError$2 = TypeError;
|
|
301
|
+
var TO_PRIMITIVE = wellKnownSymbol$9("toPrimitive");
|
|
302
|
+
var toPrimitive$1 = function(input, pref) {
|
|
303
|
+
if (!isObject$6(input) || isSymbol$1(input))
|
|
304
|
+
return input;
|
|
305
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
306
|
+
var result;
|
|
307
|
+
if (exoticToPrim) {
|
|
308
|
+
if (pref === void 0)
|
|
309
|
+
pref = "default";
|
|
310
|
+
result = call$2(exoticToPrim, input, pref);
|
|
311
|
+
if (!isObject$6(result) || isSymbol$1(result))
|
|
312
|
+
return result;
|
|
313
|
+
throw $TypeError$2("Can't convert object to primitive value");
|
|
314
|
+
}
|
|
315
|
+
if (pref === void 0)
|
|
316
|
+
pref = "number";
|
|
317
|
+
return ordinaryToPrimitive(input, pref);
|
|
318
|
+
};
|
|
319
|
+
var toPrimitive = toPrimitive$1;
|
|
320
|
+
var isSymbol = isSymbol$2;
|
|
321
|
+
var toPropertyKey$3 = function(argument) {
|
|
322
|
+
var key = toPrimitive(argument, "string");
|
|
323
|
+
return isSymbol(key) ? key : key + "";
|
|
324
|
+
};
|
|
325
|
+
var global$5 = global$c;
|
|
326
|
+
var isObject$5 = isObject$8;
|
|
327
|
+
var document$1 = global$5.document;
|
|
328
|
+
var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
|
|
329
|
+
var documentCreateElement$1 = function(it) {
|
|
330
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
331
|
+
};
|
|
332
|
+
var DESCRIPTORS$6 = descriptors;
|
|
333
|
+
var fails$7 = fails$c;
|
|
334
|
+
var createElement = documentCreateElement$1;
|
|
335
|
+
var ie8DomDefine = !DESCRIPTORS$6 && !fails$7(function() {
|
|
336
|
+
return Object.defineProperty(createElement("div"), "a", {
|
|
337
|
+
get: function() {
|
|
338
|
+
return 7;
|
|
339
|
+
}
|
|
340
|
+
}).a != 7;
|
|
341
|
+
});
|
|
342
|
+
var DESCRIPTORS$5 = descriptors;
|
|
343
|
+
var call$1 = functionCall;
|
|
344
|
+
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
345
|
+
var createPropertyDescriptor$3 = createPropertyDescriptor$4;
|
|
346
|
+
var toIndexedObject$5 = toIndexedObject$6;
|
|
347
|
+
var toPropertyKey$2 = toPropertyKey$3;
|
|
348
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
349
|
+
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
350
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
351
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
352
|
+
O = toIndexedObject$5(O);
|
|
353
|
+
P = toPropertyKey$2(P);
|
|
354
|
+
if (IE8_DOM_DEFINE$1)
|
|
355
|
+
try {
|
|
356
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
|
357
|
+
} catch (error) {
|
|
358
|
+
}
|
|
359
|
+
if (hasOwn$7(O, P))
|
|
360
|
+
return createPropertyDescriptor$3(!call$1(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
361
|
+
};
|
|
362
|
+
var fails$6 = fails$c;
|
|
363
|
+
var isCallable$7 = isCallable$d;
|
|
364
|
+
var replacement = /#|\.prototype\./;
|
|
365
|
+
var isForced$1 = function(feature, detection) {
|
|
366
|
+
var value = data[normalize(feature)];
|
|
367
|
+
return value == POLYFILL ? true : value == NATIVE ? false : isCallable$7(detection) ? fails$6(detection) : !!detection;
|
|
368
|
+
};
|
|
369
|
+
var normalize = isForced$1.normalize = function(string) {
|
|
370
|
+
return String(string).replace(replacement, ".").toLowerCase();
|
|
371
|
+
};
|
|
372
|
+
var data = isForced$1.data = {};
|
|
373
|
+
var NATIVE = isForced$1.NATIVE = "N";
|
|
374
|
+
var POLYFILL = isForced$1.POLYFILL = "P";
|
|
375
|
+
var isForced_1 = isForced$1;
|
|
376
|
+
var uncurryThis$6 = functionUncurryThisClause;
|
|
377
|
+
var aCallable = aCallable$2;
|
|
378
|
+
var NATIVE_BIND = functionBindNative;
|
|
379
|
+
var bind$2 = uncurryThis$6(uncurryThis$6.bind);
|
|
380
|
+
var functionBindContext = function(fn, that) {
|
|
381
|
+
aCallable(fn);
|
|
382
|
+
return that === void 0 ? fn : NATIVE_BIND ? bind$2(fn, that) : function() {
|
|
383
|
+
return fn.apply(that, arguments);
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
var objectDefineProperty = {};
|
|
387
|
+
var DESCRIPTORS$4 = descriptors;
|
|
388
|
+
var fails$5 = fails$c;
|
|
389
|
+
var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(function() {
|
|
390
|
+
return Object.defineProperty(function() {
|
|
391
|
+
}, "prototype", {
|
|
392
|
+
value: 42,
|
|
393
|
+
writable: false
|
|
394
|
+
}).prototype != 42;
|
|
395
|
+
});
|
|
396
|
+
var isObject$4 = isObject$8;
|
|
397
|
+
var $String = String;
|
|
398
|
+
var $TypeError$1 = TypeError;
|
|
399
|
+
var anObject$3 = function(argument) {
|
|
400
|
+
if (isObject$4(argument))
|
|
401
|
+
return argument;
|
|
402
|
+
throw $TypeError$1($String(argument) + " is not an object");
|
|
403
|
+
};
|
|
404
|
+
var DESCRIPTORS$3 = descriptors;
|
|
405
|
+
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
406
|
+
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
407
|
+
var anObject$2 = anObject$3;
|
|
408
|
+
var toPropertyKey$1 = toPropertyKey$3;
|
|
409
|
+
var $TypeError = TypeError;
|
|
410
|
+
var $defineProperty = Object.defineProperty;
|
|
411
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
412
|
+
var ENUMERABLE = "enumerable";
|
|
413
|
+
var CONFIGURABLE$1 = "configurable";
|
|
414
|
+
var WRITABLE = "writable";
|
|
415
|
+
objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
416
|
+
anObject$2(O);
|
|
417
|
+
P = toPropertyKey$1(P);
|
|
418
|
+
anObject$2(Attributes);
|
|
419
|
+
if (typeof O === "function" && P === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
420
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
|
421
|
+
if (current && current[WRITABLE]) {
|
|
422
|
+
O[P] = Attributes.value;
|
|
423
|
+
Attributes = {
|
|
424
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
|
425
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
426
|
+
writable: false
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
return $defineProperty(O, P, Attributes);
|
|
431
|
+
} : $defineProperty : function defineProperty2(O, P, Attributes) {
|
|
432
|
+
anObject$2(O);
|
|
433
|
+
P = toPropertyKey$1(P);
|
|
434
|
+
anObject$2(Attributes);
|
|
435
|
+
if (IE8_DOM_DEFINE)
|
|
436
|
+
try {
|
|
437
|
+
return $defineProperty(O, P, Attributes);
|
|
438
|
+
} catch (error) {
|
|
439
|
+
}
|
|
440
|
+
if ("get" in Attributes || "set" in Attributes)
|
|
441
|
+
throw $TypeError("Accessors not supported");
|
|
442
|
+
if ("value" in Attributes)
|
|
443
|
+
O[P] = Attributes.value;
|
|
444
|
+
return O;
|
|
445
|
+
};
|
|
446
|
+
var DESCRIPTORS$2 = descriptors;
|
|
447
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
448
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$4;
|
|
449
|
+
var createNonEnumerableProperty$5 = DESCRIPTORS$2 ? function(object, key, value) {
|
|
450
|
+
return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
|
|
451
|
+
} : function(object, key, value) {
|
|
452
|
+
object[key] = value;
|
|
453
|
+
return object;
|
|
454
|
+
};
|
|
455
|
+
var global$4 = global$c;
|
|
456
|
+
var apply = functionApply;
|
|
457
|
+
var uncurryThis$5 = functionUncurryThisClause;
|
|
458
|
+
var isCallable$6 = isCallable$d;
|
|
459
|
+
var getOwnPropertyDescriptor2 = objectGetOwnPropertyDescriptor.f;
|
|
460
|
+
var isForced = isForced_1;
|
|
461
|
+
var path$1 = path$3;
|
|
462
|
+
var bind$1 = functionBindContext;
|
|
463
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
464
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
465
|
+
var wrapConstructor = function(NativeConstructor) {
|
|
466
|
+
var Wrapper = function(a, b, c) {
|
|
467
|
+
if (this instanceof Wrapper) {
|
|
468
|
+
switch (arguments.length) {
|
|
469
|
+
case 0:
|
|
470
|
+
return new NativeConstructor();
|
|
471
|
+
case 1:
|
|
472
|
+
return new NativeConstructor(a);
|
|
473
|
+
case 2:
|
|
474
|
+
return new NativeConstructor(a, b);
|
|
475
|
+
}
|
|
476
|
+
return new NativeConstructor(a, b, c);
|
|
477
|
+
}
|
|
478
|
+
return apply(NativeConstructor, this, arguments);
|
|
479
|
+
};
|
|
480
|
+
Wrapper.prototype = NativeConstructor.prototype;
|
|
481
|
+
return Wrapper;
|
|
482
|
+
};
|
|
483
|
+
var _export = function(options, source) {
|
|
484
|
+
var TARGET = options.target;
|
|
485
|
+
var GLOBAL = options.global;
|
|
486
|
+
var STATIC = options.stat;
|
|
487
|
+
var PROTO = options.proto;
|
|
488
|
+
var nativeSource = GLOBAL ? global$4 : STATIC ? global$4[TARGET] : (global$4[TARGET] || {}).prototype;
|
|
489
|
+
var target = GLOBAL ? path$1 : path$1[TARGET] || createNonEnumerableProperty$4(path$1, TARGET, {})[TARGET];
|
|
490
|
+
var targetPrototype = target.prototype;
|
|
491
|
+
var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;
|
|
492
|
+
var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;
|
|
493
|
+
for (key in source) {
|
|
494
|
+
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
|
|
495
|
+
USE_NATIVE = !FORCED && nativeSource && hasOwn$6(nativeSource, key);
|
|
496
|
+
targetProperty = target[key];
|
|
497
|
+
if (USE_NATIVE)
|
|
498
|
+
if (options.dontCallGetSet) {
|
|
499
|
+
descriptor = getOwnPropertyDescriptor2(nativeSource, key);
|
|
500
|
+
nativeProperty = descriptor && descriptor.value;
|
|
501
|
+
} else
|
|
502
|
+
nativeProperty = nativeSource[key];
|
|
503
|
+
sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
|
|
504
|
+
if (USE_NATIVE && typeof targetProperty == typeof sourceProperty)
|
|
505
|
+
continue;
|
|
506
|
+
if (options.bind && USE_NATIVE)
|
|
507
|
+
resultProperty = bind$1(sourceProperty, global$4);
|
|
508
|
+
else if (options.wrap && USE_NATIVE)
|
|
509
|
+
resultProperty = wrapConstructor(sourceProperty);
|
|
510
|
+
else if (PROTO && isCallable$6(sourceProperty))
|
|
511
|
+
resultProperty = uncurryThis$5(sourceProperty);
|
|
512
|
+
else
|
|
513
|
+
resultProperty = sourceProperty;
|
|
514
|
+
if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {
|
|
515
|
+
createNonEnumerableProperty$4(resultProperty, "sham", true);
|
|
516
|
+
}
|
|
517
|
+
createNonEnumerableProperty$4(target, key, resultProperty);
|
|
518
|
+
if (PROTO) {
|
|
519
|
+
VIRTUAL_PROTOTYPE = TARGET + "Prototype";
|
|
520
|
+
if (!hasOwn$6(path$1, VIRTUAL_PROTOTYPE)) {
|
|
521
|
+
createNonEnumerableProperty$4(path$1, VIRTUAL_PROTOTYPE, {});
|
|
522
|
+
}
|
|
523
|
+
createNonEnumerableProperty$4(path$1[VIRTUAL_PROTOTYPE], key, sourceProperty);
|
|
524
|
+
if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) {
|
|
525
|
+
createNonEnumerableProperty$4(targetPrototype, key, sourceProperty);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
var classof$5 = classofRaw$2;
|
|
531
|
+
var isArray$2 = Array.isArray || function isArray(argument) {
|
|
532
|
+
return classof$5(argument) == "Array";
|
|
533
|
+
};
|
|
534
|
+
var wellKnownSymbol$8 = wellKnownSymbol$a;
|
|
535
|
+
var TO_STRING_TAG$3 = wellKnownSymbol$8("toStringTag");
|
|
536
|
+
var test = {};
|
|
537
|
+
test[TO_STRING_TAG$3] = "z";
|
|
538
|
+
var toStringTagSupport = String(test) === "[object z]";
|
|
539
|
+
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
|
540
|
+
var isCallable$5 = isCallable$d;
|
|
541
|
+
var classofRaw = classofRaw$2;
|
|
542
|
+
var wellKnownSymbol$7 = wellKnownSymbol$a;
|
|
543
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$7("toStringTag");
|
|
544
|
+
var $Object$1 = Object;
|
|
545
|
+
var CORRECT_ARGUMENTS = classofRaw(function() {
|
|
546
|
+
return arguments;
|
|
547
|
+
}()) == "Arguments";
|
|
548
|
+
var tryGet = function(it, key) {
|
|
549
|
+
try {
|
|
550
|
+
return it[key];
|
|
551
|
+
} catch (error) {
|
|
552
|
+
}
|
|
553
|
+
};
|
|
554
|
+
var classof$4 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function(it) {
|
|
555
|
+
var O, tag, result;
|
|
556
|
+
return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$2)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) == "Object" && isCallable$5(O.callee) ? "Arguments" : result;
|
|
557
|
+
};
|
|
558
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
559
|
+
var isCallable$4 = isCallable$d;
|
|
560
|
+
var store$1 = sharedStore;
|
|
561
|
+
var functionToString = uncurryThis$4(Function.toString);
|
|
562
|
+
if (!isCallable$4(store$1.inspectSource)) {
|
|
563
|
+
store$1.inspectSource = function(it) {
|
|
564
|
+
return functionToString(it);
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
var inspectSource$1 = store$1.inspectSource;
|
|
568
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
569
|
+
var fails$4 = fails$c;
|
|
570
|
+
var isCallable$3 = isCallable$d;
|
|
571
|
+
var classof$3 = classof$4;
|
|
572
|
+
var getBuiltIn$1 = getBuiltIn$3;
|
|
573
|
+
var inspectSource = inspectSource$1;
|
|
574
|
+
var noop = function() {
|
|
575
|
+
};
|
|
576
|
+
var empty = [];
|
|
577
|
+
var construct = getBuiltIn$1("Reflect", "construct");
|
|
578
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
579
|
+
var exec = uncurryThis$3(constructorRegExp.exec);
|
|
580
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
581
|
+
var isConstructorModern = function isConstructor(argument) {
|
|
582
|
+
if (!isCallable$3(argument))
|
|
583
|
+
return false;
|
|
584
|
+
try {
|
|
585
|
+
construct(noop, empty, argument);
|
|
586
|
+
return true;
|
|
587
|
+
} catch (error) {
|
|
588
|
+
return false;
|
|
589
|
+
}
|
|
590
|
+
};
|
|
591
|
+
var isConstructorLegacy = function isConstructor2(argument) {
|
|
592
|
+
if (!isCallable$3(argument))
|
|
593
|
+
return false;
|
|
594
|
+
switch (classof$3(argument)) {
|
|
595
|
+
case "AsyncFunction":
|
|
596
|
+
case "GeneratorFunction":
|
|
597
|
+
case "AsyncGeneratorFunction":
|
|
598
|
+
return false;
|
|
599
|
+
}
|
|
600
|
+
try {
|
|
601
|
+
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
|
|
602
|
+
} catch (error) {
|
|
603
|
+
return true;
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
isConstructorLegacy.sham = true;
|
|
607
|
+
var isConstructor$2 = !construct || fails$4(function() {
|
|
608
|
+
var called;
|
|
609
|
+
return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function() {
|
|
610
|
+
called = true;
|
|
611
|
+
}) || called;
|
|
612
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
|
613
|
+
var ceil = Math.ceil;
|
|
614
|
+
var floor = Math.floor;
|
|
615
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
616
|
+
var n = +x;
|
|
617
|
+
return (n > 0 ? floor : ceil)(n);
|
|
618
|
+
};
|
|
619
|
+
var trunc2 = mathTrunc;
|
|
620
|
+
var toIntegerOrInfinity$2 = function(argument) {
|
|
621
|
+
var number = +argument;
|
|
622
|
+
return number !== number || number === 0 ? 0 : trunc2(number);
|
|
623
|
+
};
|
|
624
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
625
|
+
var max$1 = Math.max;
|
|
626
|
+
var min$1 = Math.min;
|
|
627
|
+
var toAbsoluteIndex$2 = function(index, length) {
|
|
628
|
+
var integer = toIntegerOrInfinity$1(index);
|
|
629
|
+
return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
|
|
630
|
+
};
|
|
631
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
632
|
+
var min = Math.min;
|
|
633
|
+
var toLength$1 = function(argument) {
|
|
634
|
+
return argument > 0 ? min(toIntegerOrInfinity(argument), 9007199254740991) : 0;
|
|
635
|
+
};
|
|
636
|
+
var toLength = toLength$1;
|
|
637
|
+
var lengthOfArrayLike$3 = function(obj) {
|
|
638
|
+
return toLength(obj.length);
|
|
639
|
+
};
|
|
640
|
+
var toPropertyKey = toPropertyKey$3;
|
|
641
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
642
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$4;
|
|
643
|
+
var createProperty$1 = function(object, key, value) {
|
|
644
|
+
var propertyKey = toPropertyKey(key);
|
|
645
|
+
if (propertyKey in object)
|
|
646
|
+
definePropertyModule$1.f(object, propertyKey, createPropertyDescriptor$1(0, value));
|
|
647
|
+
else
|
|
648
|
+
object[propertyKey] = value;
|
|
649
|
+
};
|
|
650
|
+
var fails$3 = fails$c;
|
|
651
|
+
var wellKnownSymbol$6 = wellKnownSymbol$a;
|
|
652
|
+
var V8_VERSION = engineV8Version;
|
|
653
|
+
var SPECIES$2 = wellKnownSymbol$6("species");
|
|
654
|
+
var arrayMethodHasSpeciesSupport$1 = function(METHOD_NAME) {
|
|
655
|
+
return V8_VERSION >= 51 || !fails$3(function() {
|
|
656
|
+
var array = [];
|
|
657
|
+
var constructor = array.constructor = {};
|
|
658
|
+
constructor[SPECIES$2] = function() {
|
|
659
|
+
return {
|
|
660
|
+
foo: 1
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
return array[METHOD_NAME](Boolean).foo !== 1;
|
|
664
|
+
});
|
|
665
|
+
};
|
|
666
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
667
|
+
var arraySlice = uncurryThis$2([].slice);
|
|
668
|
+
var $$2 = _export;
|
|
669
|
+
var isArray$1 = isArray$2;
|
|
670
|
+
var isConstructor$1 = isConstructor$2;
|
|
671
|
+
var isObject$3 = isObject$8;
|
|
672
|
+
var toAbsoluteIndex$1 = toAbsoluteIndex$2;
|
|
673
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$3;
|
|
674
|
+
var toIndexedObject$4 = toIndexedObject$6;
|
|
675
|
+
var createProperty = createProperty$1;
|
|
676
|
+
var wellKnownSymbol$5 = wellKnownSymbol$a;
|
|
677
|
+
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
|
|
678
|
+
var nativeSlice = arraySlice;
|
|
679
|
+
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("slice");
|
|
680
|
+
var SPECIES$1 = wellKnownSymbol$5("species");
|
|
681
|
+
var $Array$1 = Array;
|
|
682
|
+
var max = Math.max;
|
|
683
|
+
$$2({
|
|
684
|
+
target: "Array",
|
|
685
|
+
proto: true,
|
|
686
|
+
forced: !HAS_SPECIES_SUPPORT
|
|
687
|
+
}, {
|
|
688
|
+
slice: function slice(start, end) {
|
|
689
|
+
var O = toIndexedObject$4(this);
|
|
690
|
+
var length = lengthOfArrayLike$2(O);
|
|
691
|
+
var k = toAbsoluteIndex$1(start, length);
|
|
692
|
+
var fin = toAbsoluteIndex$1(end === void 0 ? length : end, length);
|
|
693
|
+
var Constructor, result, n;
|
|
694
|
+
if (isArray$1(O)) {
|
|
695
|
+
Constructor = O.constructor;
|
|
696
|
+
if (isConstructor$1(Constructor) && (Constructor === $Array$1 || isArray$1(Constructor.prototype))) {
|
|
697
|
+
Constructor = void 0;
|
|
698
|
+
} else if (isObject$3(Constructor)) {
|
|
699
|
+
Constructor = Constructor[SPECIES$1];
|
|
700
|
+
if (Constructor === null)
|
|
701
|
+
Constructor = void 0;
|
|
702
|
+
}
|
|
703
|
+
if (Constructor === $Array$1 || Constructor === void 0) {
|
|
704
|
+
return nativeSlice(O, k, fin);
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
result = new (Constructor === void 0 ? $Array$1 : Constructor)(max(fin - k, 0));
|
|
708
|
+
for (n = 0; k < fin; k++, n++)
|
|
709
|
+
if (k in O)
|
|
710
|
+
createProperty(result, n, O[k]);
|
|
711
|
+
result.length = n;
|
|
712
|
+
return result;
|
|
713
|
+
}
|
|
714
|
+
});
|
|
715
|
+
var path = path$3;
|
|
716
|
+
var entryVirtual$2 = function(CONSTRUCTOR) {
|
|
717
|
+
return path[CONSTRUCTOR + "Prototype"];
|
|
718
|
+
};
|
|
719
|
+
var entryVirtual$1 = entryVirtual$2;
|
|
720
|
+
var slice$6 = entryVirtual$1("Array").slice;
|
|
721
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
722
|
+
var method$1 = slice$6;
|
|
723
|
+
var ArrayPrototype$1 = Array.prototype;
|
|
724
|
+
var slice$5 = function(it) {
|
|
725
|
+
var own = it.slice;
|
|
726
|
+
return it === ArrayPrototype$1 || isPrototypeOf$1(ArrayPrototype$1, it) && own === ArrayPrototype$1.slice ? method$1 : own;
|
|
727
|
+
};
|
|
728
|
+
var parent$5 = slice$5;
|
|
729
|
+
var slice$4 = parent$5;
|
|
730
|
+
var parent$4 = slice$4;
|
|
731
|
+
var slice$3 = parent$4;
|
|
732
|
+
var parent$3 = slice$3;
|
|
733
|
+
var slice$2 = parent$3;
|
|
734
|
+
var slice$1 = slice$2;
|
|
735
|
+
var slice2 = slice$1;
|
|
736
|
+
const _sliceInstanceProperty = /* @__PURE__ */ getDefaultExportFromCjs(slice2);
|
|
737
|
+
var iterators = {};
|
|
738
|
+
var global$3 = global$c;
|
|
739
|
+
var isCallable$2 = isCallable$d;
|
|
740
|
+
var WeakMap$1 = global$3.WeakMap;
|
|
741
|
+
var weakMapBasicDetection = isCallable$2(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
742
|
+
var shared$1 = sharedExports;
|
|
743
|
+
var uid = uid$2;
|
|
744
|
+
var keys = shared$1("keys");
|
|
745
|
+
var sharedKey$3 = function(key) {
|
|
746
|
+
return keys[key] || (keys[key] = uid(key));
|
|
747
|
+
};
|
|
748
|
+
var hiddenKeys$3 = {};
|
|
749
|
+
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
750
|
+
var global$2 = global$c;
|
|
751
|
+
var isObject$2 = isObject$8;
|
|
752
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
|
|
753
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
754
|
+
var shared = sharedStore;
|
|
755
|
+
var sharedKey$2 = sharedKey$3;
|
|
756
|
+
var hiddenKeys$2 = hiddenKeys$3;
|
|
757
|
+
var OBJECT_ALREADY_INITIALIZED = "Object already initialized";
|
|
758
|
+
var TypeError$1 = global$2.TypeError;
|
|
759
|
+
var WeakMap = global$2.WeakMap;
|
|
760
|
+
var set, get, has;
|
|
761
|
+
var enforce = function(it) {
|
|
762
|
+
return has(it) ? get(it) : set(it, {});
|
|
763
|
+
};
|
|
764
|
+
var getterFor = function(TYPE) {
|
|
765
|
+
return function(it) {
|
|
766
|
+
var state;
|
|
767
|
+
if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
|
|
768
|
+
throw TypeError$1("Incompatible receiver, " + TYPE + " required");
|
|
769
|
+
}
|
|
770
|
+
return state;
|
|
771
|
+
};
|
|
772
|
+
};
|
|
773
|
+
if (NATIVE_WEAK_MAP || shared.state) {
|
|
774
|
+
var store = shared.state || (shared.state = new WeakMap());
|
|
775
|
+
store.get = store.get;
|
|
776
|
+
store.has = store.has;
|
|
777
|
+
store.set = store.set;
|
|
778
|
+
set = function(it, metadata) {
|
|
779
|
+
if (store.has(it))
|
|
780
|
+
throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
781
|
+
metadata.facade = it;
|
|
782
|
+
store.set(it, metadata);
|
|
783
|
+
return metadata;
|
|
784
|
+
};
|
|
785
|
+
get = function(it) {
|
|
786
|
+
return store.get(it) || {};
|
|
787
|
+
};
|
|
788
|
+
has = function(it) {
|
|
789
|
+
return store.has(it);
|
|
790
|
+
};
|
|
791
|
+
} else {
|
|
792
|
+
var STATE = sharedKey$2("state");
|
|
793
|
+
hiddenKeys$2[STATE] = true;
|
|
794
|
+
set = function(it, metadata) {
|
|
795
|
+
if (hasOwn$5(it, STATE))
|
|
796
|
+
throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
797
|
+
metadata.facade = it;
|
|
798
|
+
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
799
|
+
return metadata;
|
|
800
|
+
};
|
|
801
|
+
get = function(it) {
|
|
802
|
+
return hasOwn$5(it, STATE) ? it[STATE] : {};
|
|
803
|
+
};
|
|
804
|
+
has = function(it) {
|
|
805
|
+
return hasOwn$5(it, STATE);
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
var internalState = {
|
|
809
|
+
set,
|
|
810
|
+
get,
|
|
811
|
+
has,
|
|
812
|
+
enforce,
|
|
813
|
+
getterFor
|
|
814
|
+
};
|
|
815
|
+
var DESCRIPTORS$1 = descriptors;
|
|
816
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
817
|
+
var FunctionPrototype = Function.prototype;
|
|
818
|
+
var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
|
|
819
|
+
var EXISTS = hasOwn$4(FunctionPrototype, "name");
|
|
820
|
+
var PROPER = EXISTS && (function something() {
|
|
821
|
+
}).name === "something";
|
|
822
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || DESCRIPTORS$1 && getDescriptor(FunctionPrototype, "name").configurable);
|
|
823
|
+
var functionName = {
|
|
824
|
+
EXISTS,
|
|
825
|
+
PROPER,
|
|
826
|
+
CONFIGURABLE
|
|
827
|
+
};
|
|
828
|
+
var objectDefineProperties = {};
|
|
829
|
+
var toIndexedObject$3 = toIndexedObject$6;
|
|
830
|
+
var toAbsoluteIndex = toAbsoluteIndex$2;
|
|
831
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$3;
|
|
832
|
+
var createMethod$1 = function(IS_INCLUDES) {
|
|
833
|
+
return function($this, el, fromIndex) {
|
|
834
|
+
var O = toIndexedObject$3($this);
|
|
835
|
+
var length = lengthOfArrayLike$1(O);
|
|
836
|
+
var index = toAbsoluteIndex(fromIndex, length);
|
|
837
|
+
var value;
|
|
838
|
+
if (IS_INCLUDES && el != el)
|
|
839
|
+
while (length > index) {
|
|
840
|
+
value = O[index++];
|
|
841
|
+
if (value != value)
|
|
842
|
+
return true;
|
|
843
|
+
}
|
|
844
|
+
else
|
|
845
|
+
for (; length > index; index++) {
|
|
846
|
+
if ((IS_INCLUDES || index in O) && O[index] === el)
|
|
847
|
+
return IS_INCLUDES || index || 0;
|
|
848
|
+
}
|
|
849
|
+
return !IS_INCLUDES && -1;
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
var arrayIncludes = {
|
|
853
|
+
// `Array.prototype.includes` method
|
|
854
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
855
|
+
includes: createMethod$1(true),
|
|
856
|
+
// `Array.prototype.indexOf` method
|
|
857
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
858
|
+
indexOf: createMethod$1(false)
|
|
859
|
+
};
|
|
860
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
861
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
862
|
+
var toIndexedObject$2 = toIndexedObject$6;
|
|
863
|
+
var indexOf = arrayIncludes.indexOf;
|
|
864
|
+
var hiddenKeys$1 = hiddenKeys$3;
|
|
865
|
+
var push$1 = uncurryThis$1([].push);
|
|
866
|
+
var objectKeysInternal = function(object, names) {
|
|
867
|
+
var O = toIndexedObject$2(object);
|
|
868
|
+
var i = 0;
|
|
869
|
+
var result = [];
|
|
870
|
+
var key;
|
|
871
|
+
for (key in O)
|
|
872
|
+
!hasOwn$3(hiddenKeys$1, key) && hasOwn$3(O, key) && push$1(result, key);
|
|
873
|
+
while (names.length > i)
|
|
874
|
+
if (hasOwn$3(O, key = names[i++])) {
|
|
875
|
+
~indexOf(result, key) || push$1(result, key);
|
|
876
|
+
}
|
|
877
|
+
return result;
|
|
878
|
+
};
|
|
879
|
+
var enumBugKeys$2 = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
|
|
880
|
+
var internalObjectKeys = objectKeysInternal;
|
|
881
|
+
var enumBugKeys$1 = enumBugKeys$2;
|
|
882
|
+
var objectKeys$1 = Object.keys || function keys2(O) {
|
|
883
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
|
884
|
+
};
|
|
885
|
+
var DESCRIPTORS = descriptors;
|
|
886
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
887
|
+
var definePropertyModule = objectDefineProperty;
|
|
888
|
+
var anObject$1 = anObject$3;
|
|
889
|
+
var toIndexedObject$1 = toIndexedObject$6;
|
|
890
|
+
var objectKeys = objectKeys$1;
|
|
891
|
+
objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
892
|
+
anObject$1(O);
|
|
893
|
+
var props = toIndexedObject$1(Properties);
|
|
894
|
+
var keys3 = objectKeys(Properties);
|
|
895
|
+
var length = keys3.length;
|
|
896
|
+
var index = 0;
|
|
897
|
+
var key;
|
|
898
|
+
while (length > index)
|
|
899
|
+
definePropertyModule.f(O, key = keys3[index++], props[key]);
|
|
900
|
+
return O;
|
|
901
|
+
};
|
|
902
|
+
var getBuiltIn = getBuiltIn$3;
|
|
903
|
+
var html$1 = getBuiltIn("document", "documentElement");
|
|
904
|
+
var anObject = anObject$3;
|
|
905
|
+
var definePropertiesModule = objectDefineProperties;
|
|
906
|
+
var enumBugKeys = enumBugKeys$2;
|
|
907
|
+
var hiddenKeys = hiddenKeys$3;
|
|
908
|
+
var html = html$1;
|
|
909
|
+
var documentCreateElement = documentCreateElement$1;
|
|
910
|
+
var sharedKey$1 = sharedKey$3;
|
|
911
|
+
var GT = ">";
|
|
912
|
+
var LT = "<";
|
|
913
|
+
var PROTOTYPE = "prototype";
|
|
914
|
+
var SCRIPT = "script";
|
|
915
|
+
var IE_PROTO$1 = sharedKey$1("IE_PROTO");
|
|
916
|
+
var EmptyConstructor = function() {
|
|
917
|
+
};
|
|
918
|
+
var scriptTag = function(content) {
|
|
919
|
+
return LT + SCRIPT + GT + content + LT + "/" + SCRIPT + GT;
|
|
920
|
+
};
|
|
921
|
+
var NullProtoObjectViaActiveX = function(activeXDocument2) {
|
|
922
|
+
activeXDocument2.write(scriptTag(""));
|
|
923
|
+
activeXDocument2.close();
|
|
924
|
+
var temp = activeXDocument2.parentWindow.Object;
|
|
925
|
+
activeXDocument2 = null;
|
|
926
|
+
return temp;
|
|
927
|
+
};
|
|
928
|
+
var NullProtoObjectViaIFrame = function() {
|
|
929
|
+
var iframe = documentCreateElement("iframe");
|
|
930
|
+
var JS = "java" + SCRIPT + ":";
|
|
931
|
+
var iframeDocument;
|
|
932
|
+
iframe.style.display = "none";
|
|
933
|
+
html.appendChild(iframe);
|
|
934
|
+
iframe.src = String(JS);
|
|
935
|
+
iframeDocument = iframe.contentWindow.document;
|
|
936
|
+
iframeDocument.open();
|
|
937
|
+
iframeDocument.write(scriptTag("document.F=Object"));
|
|
938
|
+
iframeDocument.close();
|
|
939
|
+
return iframeDocument.F;
|
|
940
|
+
};
|
|
941
|
+
var activeXDocument;
|
|
942
|
+
var NullProtoObject = function() {
|
|
943
|
+
try {
|
|
944
|
+
activeXDocument = new ActiveXObject("htmlfile");
|
|
945
|
+
} catch (error) {
|
|
946
|
+
}
|
|
947
|
+
NullProtoObject = typeof document != "undefined" ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument);
|
|
948
|
+
var length = enumBugKeys.length;
|
|
949
|
+
while (length--)
|
|
950
|
+
delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
951
|
+
return NullProtoObject();
|
|
952
|
+
};
|
|
953
|
+
hiddenKeys[IE_PROTO$1] = true;
|
|
954
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
955
|
+
var result;
|
|
956
|
+
if (O !== null) {
|
|
957
|
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
958
|
+
result = new EmptyConstructor();
|
|
959
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
960
|
+
result[IE_PROTO$1] = O;
|
|
961
|
+
} else
|
|
962
|
+
result = NullProtoObject();
|
|
963
|
+
return Properties === void 0 ? result : definePropertiesModule.f(result, Properties);
|
|
964
|
+
};
|
|
965
|
+
var fails$2 = fails$c;
|
|
966
|
+
var correctPrototypeGetter = !fails$2(function() {
|
|
967
|
+
function F() {
|
|
968
|
+
}
|
|
969
|
+
F.prototype.constructor = null;
|
|
970
|
+
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
971
|
+
});
|
|
972
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
973
|
+
var isCallable$1 = isCallable$d;
|
|
974
|
+
var toObject$1 = toObject$3;
|
|
975
|
+
var sharedKey = sharedKey$3;
|
|
976
|
+
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
977
|
+
var IE_PROTO = sharedKey("IE_PROTO");
|
|
978
|
+
var $Object = Object;
|
|
979
|
+
var ObjectPrototype = $Object.prototype;
|
|
980
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function(O) {
|
|
981
|
+
var object = toObject$1(O);
|
|
982
|
+
if (hasOwn$2(object, IE_PROTO))
|
|
983
|
+
return object[IE_PROTO];
|
|
984
|
+
var constructor = object.constructor;
|
|
985
|
+
if (isCallable$1(constructor) && object instanceof constructor) {
|
|
986
|
+
return constructor.prototype;
|
|
987
|
+
}
|
|
988
|
+
return object instanceof $Object ? ObjectPrototype : null;
|
|
989
|
+
};
|
|
990
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
991
|
+
var defineBuiltIn$2 = function(target, key, value, options) {
|
|
992
|
+
if (options && options.enumerable)
|
|
993
|
+
target[key] = value;
|
|
994
|
+
else
|
|
995
|
+
createNonEnumerableProperty$2(target, key, value);
|
|
996
|
+
return target;
|
|
997
|
+
};
|
|
998
|
+
var fails$1 = fails$c;
|
|
999
|
+
var isCallable = isCallable$d;
|
|
1000
|
+
var isObject$1 = isObject$8;
|
|
1001
|
+
var create$1 = objectCreate;
|
|
1002
|
+
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1003
|
+
var defineBuiltIn$1 = defineBuiltIn$2;
|
|
1004
|
+
var wellKnownSymbol$4 = wellKnownSymbol$a;
|
|
1005
|
+
var ITERATOR$1 = wellKnownSymbol$4("iterator");
|
|
1006
|
+
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1007
|
+
var IteratorPrototype$1, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
1008
|
+
if ([].keys) {
|
|
1009
|
+
arrayIterator = [].keys();
|
|
1010
|
+
if (!("next" in arrayIterator))
|
|
1011
|
+
BUGGY_SAFARI_ITERATORS$1 = true;
|
|
1012
|
+
else {
|
|
1013
|
+
PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
|
|
1014
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype)
|
|
1015
|
+
IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$1(IteratorPrototype$1) || fails$1(function() {
|
|
1019
|
+
var test2 = {};
|
|
1020
|
+
return IteratorPrototype$1[ITERATOR$1].call(test2) !== test2;
|
|
1021
|
+
});
|
|
1022
|
+
if (NEW_ITERATOR_PROTOTYPE)
|
|
1023
|
+
IteratorPrototype$1 = {};
|
|
1024
|
+
else
|
|
1025
|
+
IteratorPrototype$1 = create$1(IteratorPrototype$1);
|
|
1026
|
+
if (!isCallable(IteratorPrototype$1[ITERATOR$1])) {
|
|
1027
|
+
defineBuiltIn$1(IteratorPrototype$1, ITERATOR$1, function() {
|
|
1028
|
+
return this;
|
|
1029
|
+
});
|
|
1030
|
+
}
|
|
1031
|
+
var iteratorsCore = {
|
|
1032
|
+
IteratorPrototype: IteratorPrototype$1,
|
|
1033
|
+
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1034
|
+
};
|
|
1035
|
+
var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
|
|
1036
|
+
var classof$2 = classof$4;
|
|
1037
|
+
var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
|
|
1038
|
+
return "[object " + classof$2(this) + "]";
|
|
1039
|
+
};
|
|
1040
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1041
|
+
var defineProperty3 = objectDefineProperty.f;
|
|
1042
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
|
|
1043
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1044
|
+
var toString2 = objectToString;
|
|
1045
|
+
var wellKnownSymbol$3 = wellKnownSymbol$a;
|
|
1046
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$3("toStringTag");
|
|
1047
|
+
var setToStringTag$2 = function(it, TAG, STATIC, SET_METHOD) {
|
|
1048
|
+
if (it) {
|
|
1049
|
+
var target = STATIC ? it : it.prototype;
|
|
1050
|
+
if (!hasOwn$1(target, TO_STRING_TAG$1)) {
|
|
1051
|
+
defineProperty3(target, TO_STRING_TAG$1, {
|
|
1052
|
+
configurable: true,
|
|
1053
|
+
value: TAG
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
if (SET_METHOD && !TO_STRING_TAG_SUPPORT) {
|
|
1057
|
+
createNonEnumerableProperty$1(target, "toString", toString2);
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
};
|
|
1061
|
+
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
1062
|
+
var create2 = objectCreate;
|
|
1063
|
+
var createPropertyDescriptor = createPropertyDescriptor$4;
|
|
1064
|
+
var setToStringTag$1 = setToStringTag$2;
|
|
1065
|
+
var Iterators$3 = iterators;
|
|
1066
|
+
var returnThis$1 = function() {
|
|
1067
|
+
return this;
|
|
1068
|
+
};
|
|
1069
|
+
var iteratorCreateConstructor = function(IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1070
|
+
var TO_STRING_TAG2 = NAME + " Iterator";
|
|
1071
|
+
IteratorConstructor.prototype = create2(IteratorPrototype, {
|
|
1072
|
+
next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next)
|
|
1073
|
+
});
|
|
1074
|
+
setToStringTag$1(IteratorConstructor, TO_STRING_TAG2, false, true);
|
|
1075
|
+
Iterators$3[TO_STRING_TAG2] = returnThis$1;
|
|
1076
|
+
return IteratorConstructor;
|
|
1077
|
+
};
|
|
1078
|
+
var $$1 = _export;
|
|
1079
|
+
var call = functionCall;
|
|
1080
|
+
var FunctionName = functionName;
|
|
1081
|
+
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1082
|
+
var getPrototypeOf = objectGetPrototypeOf;
|
|
1083
|
+
var setToStringTag = setToStringTag$2;
|
|
1084
|
+
var defineBuiltIn = defineBuiltIn$2;
|
|
1085
|
+
var wellKnownSymbol$2 = wellKnownSymbol$a;
|
|
1086
|
+
var Iterators$2 = iterators;
|
|
1087
|
+
var IteratorsCore = iteratorsCore;
|
|
1088
|
+
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
1089
|
+
FunctionName.CONFIGURABLE;
|
|
1090
|
+
IteratorsCore.IteratorPrototype;
|
|
1091
|
+
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1092
|
+
var ITERATOR = wellKnownSymbol$2("iterator");
|
|
1093
|
+
var KEYS = "keys";
|
|
1094
|
+
var VALUES = "values";
|
|
1095
|
+
var ENTRIES = "entries";
|
|
1096
|
+
var returnThis = function() {
|
|
1097
|
+
return this;
|
|
1098
|
+
};
|
|
1099
|
+
var iteratorDefine = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
1100
|
+
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
1101
|
+
var getIterationMethod = function(KIND) {
|
|
1102
|
+
if (KIND === DEFAULT && defaultIterator)
|
|
1103
|
+
return defaultIterator;
|
|
1104
|
+
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype)
|
|
1105
|
+
return IterablePrototype[KIND];
|
|
1106
|
+
switch (KIND) {
|
|
1107
|
+
case KEYS:
|
|
1108
|
+
return function keys3() {
|
|
1109
|
+
return new IteratorConstructor(this, KIND);
|
|
1110
|
+
};
|
|
1111
|
+
case VALUES:
|
|
1112
|
+
return function values() {
|
|
1113
|
+
return new IteratorConstructor(this, KIND);
|
|
1114
|
+
};
|
|
1115
|
+
case ENTRIES:
|
|
1116
|
+
return function entries() {
|
|
1117
|
+
return new IteratorConstructor(this, KIND);
|
|
1118
|
+
};
|
|
1119
|
+
}
|
|
1120
|
+
return function() {
|
|
1121
|
+
return new IteratorConstructor(this);
|
|
1122
|
+
};
|
|
1123
|
+
};
|
|
1124
|
+
var TO_STRING_TAG2 = NAME + " Iterator";
|
|
1125
|
+
var INCORRECT_VALUES_NAME = false;
|
|
1126
|
+
var IterablePrototype = Iterable.prototype;
|
|
1127
|
+
var nativeIterator = IterablePrototype[ITERATOR] || IterablePrototype["@@iterator"] || DEFAULT && IterablePrototype[DEFAULT];
|
|
1128
|
+
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
1129
|
+
var anyNativeIterator = NAME == "Array" ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
1130
|
+
var CurrentIteratorPrototype, methods, KEY;
|
|
1131
|
+
if (anyNativeIterator) {
|
|
1132
|
+
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1133
|
+
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1134
|
+
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG2, true, true);
|
|
1135
|
+
Iterators$2[TO_STRING_TAG2] = returnThis;
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1139
|
+
{
|
|
1140
|
+
INCORRECT_VALUES_NAME = true;
|
|
1141
|
+
defaultIterator = function values() {
|
|
1142
|
+
return call(nativeIterator, this);
|
|
1143
|
+
};
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
if (DEFAULT) {
|
|
1147
|
+
methods = {
|
|
1148
|
+
values: getIterationMethod(VALUES),
|
|
1149
|
+
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
1150
|
+
entries: getIterationMethod(ENTRIES)
|
|
1151
|
+
};
|
|
1152
|
+
if (FORCED)
|
|
1153
|
+
for (KEY in methods) {
|
|
1154
|
+
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1155
|
+
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
else
|
|
1159
|
+
$$1({
|
|
1160
|
+
target: NAME,
|
|
1161
|
+
proto: true,
|
|
1162
|
+
forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME
|
|
1163
|
+
}, methods);
|
|
1164
|
+
}
|
|
1165
|
+
if (FORCED && IterablePrototype[ITERATOR] !== defaultIterator) {
|
|
1166
|
+
defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, {
|
|
1167
|
+
name: DEFAULT
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1170
|
+
Iterators$2[NAME] = defaultIterator;
|
|
1171
|
+
return methods;
|
|
1172
|
+
};
|
|
1173
|
+
var createIterResultObject$1 = function(value, done) {
|
|
1174
|
+
return {
|
|
1175
|
+
value,
|
|
1176
|
+
done
|
|
1177
|
+
};
|
|
1178
|
+
};
|
|
1179
|
+
var toIndexedObject = toIndexedObject$6;
|
|
1180
|
+
var Iterators$1 = iterators;
|
|
1181
|
+
var InternalStateModule = internalState;
|
|
1182
|
+
objectDefineProperty.f;
|
|
1183
|
+
var defineIterator = iteratorDefine;
|
|
1184
|
+
var createIterResultObject = createIterResultObject$1;
|
|
1185
|
+
var ARRAY_ITERATOR = "Array Iterator";
|
|
1186
|
+
var setInternalState = InternalStateModule.set;
|
|
1187
|
+
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
|
1188
|
+
defineIterator(Array, "Array", function(iterated, kind) {
|
|
1189
|
+
setInternalState(this, {
|
|
1190
|
+
type: ARRAY_ITERATOR,
|
|
1191
|
+
target: toIndexedObject(iterated),
|
|
1192
|
+
// target
|
|
1193
|
+
index: 0,
|
|
1194
|
+
// next index
|
|
1195
|
+
kind
|
|
1196
|
+
// kind
|
|
1197
|
+
});
|
|
1198
|
+
}, function() {
|
|
1199
|
+
var state = getInternalState(this);
|
|
1200
|
+
var target = state.target;
|
|
1201
|
+
var kind = state.kind;
|
|
1202
|
+
var index = state.index++;
|
|
1203
|
+
if (!target || index >= target.length) {
|
|
1204
|
+
state.target = void 0;
|
|
1205
|
+
return createIterResultObject(void 0, true);
|
|
1206
|
+
}
|
|
1207
|
+
if (kind == "keys")
|
|
1208
|
+
return createIterResultObject(index, false);
|
|
1209
|
+
if (kind == "values")
|
|
1210
|
+
return createIterResultObject(target[index], false);
|
|
1211
|
+
return createIterResultObject([index, target[index]], false);
|
|
1212
|
+
}, "values");
|
|
1213
|
+
Iterators$1.Arguments = Iterators$1.Array;
|
|
1214
|
+
var domIterables = {
|
|
1215
|
+
CSSRuleList: 0,
|
|
1216
|
+
CSSStyleDeclaration: 0,
|
|
1217
|
+
CSSValueList: 0,
|
|
1218
|
+
ClientRectList: 0,
|
|
1219
|
+
DOMRectList: 0,
|
|
1220
|
+
DOMStringList: 0,
|
|
1221
|
+
DOMTokenList: 1,
|
|
1222
|
+
DataTransferItemList: 0,
|
|
1223
|
+
FileList: 0,
|
|
1224
|
+
HTMLAllCollection: 0,
|
|
1225
|
+
HTMLCollection: 0,
|
|
1226
|
+
HTMLFormElement: 0,
|
|
1227
|
+
HTMLSelectElement: 0,
|
|
1228
|
+
MediaList: 0,
|
|
1229
|
+
MimeTypeArray: 0,
|
|
1230
|
+
NamedNodeMap: 0,
|
|
1231
|
+
NodeList: 1,
|
|
1232
|
+
PaintRequestList: 0,
|
|
1233
|
+
Plugin: 0,
|
|
1234
|
+
PluginArray: 0,
|
|
1235
|
+
SVGLengthList: 0,
|
|
1236
|
+
SVGNumberList: 0,
|
|
1237
|
+
SVGPathSegList: 0,
|
|
1238
|
+
SVGPointList: 0,
|
|
1239
|
+
SVGStringList: 0,
|
|
1240
|
+
SVGTransformList: 0,
|
|
1241
|
+
SourceBufferList: 0,
|
|
1242
|
+
StyleSheetList: 0,
|
|
1243
|
+
TextTrackCueList: 0,
|
|
1244
|
+
TextTrackList: 0,
|
|
1245
|
+
TouchList: 0
|
|
1246
|
+
};
|
|
1247
|
+
var DOMIterables$1 = domIterables;
|
|
1248
|
+
var global$1 = global$c;
|
|
1249
|
+
var classof$1 = classof$4;
|
|
1250
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
1251
|
+
var Iterators = iterators;
|
|
1252
|
+
var wellKnownSymbol$1 = wellKnownSymbol$a;
|
|
1253
|
+
var TO_STRING_TAG = wellKnownSymbol$1("toStringTag");
|
|
1254
|
+
for (var COLLECTION_NAME in DOMIterables$1) {
|
|
1255
|
+
var Collection = global$1[COLLECTION_NAME];
|
|
1256
|
+
var CollectionPrototype = Collection && Collection.prototype;
|
|
1257
|
+
if (CollectionPrototype && classof$1(CollectionPrototype) !== TO_STRING_TAG) {
|
|
1258
|
+
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
|
1259
|
+
}
|
|
1260
|
+
Iterators[COLLECTION_NAME] = Iterators.Array;
|
|
1261
|
+
}
|
|
1262
|
+
var isArray2 = isArray$2;
|
|
1263
|
+
var isConstructor3 = isConstructor$2;
|
|
1264
|
+
var isObject = isObject$8;
|
|
1265
|
+
var wellKnownSymbol = wellKnownSymbol$a;
|
|
1266
|
+
var SPECIES = wellKnownSymbol("species");
|
|
1267
|
+
var $Array = Array;
|
|
1268
|
+
var arraySpeciesConstructor$1 = function(originalArray) {
|
|
1269
|
+
var C;
|
|
1270
|
+
if (isArray2(originalArray)) {
|
|
1271
|
+
C = originalArray.constructor;
|
|
1272
|
+
if (isConstructor3(C) && (C === $Array || isArray2(C.prototype)))
|
|
1273
|
+
C = void 0;
|
|
1274
|
+
else if (isObject(C)) {
|
|
1275
|
+
C = C[SPECIES];
|
|
1276
|
+
if (C === null)
|
|
1277
|
+
C = void 0;
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
return C === void 0 ? $Array : C;
|
|
1281
|
+
};
|
|
1282
|
+
var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
|
1283
|
+
var arraySpeciesCreate$1 = function(originalArray, length) {
|
|
1284
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
1285
|
+
};
|
|
1286
|
+
var bind = functionBindContext;
|
|
1287
|
+
var uncurryThis = functionUncurryThis;
|
|
1288
|
+
var IndexedObject = indexedObject;
|
|
1289
|
+
var toObject = toObject$3;
|
|
1290
|
+
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
1291
|
+
var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
1292
|
+
var push = uncurryThis([].push);
|
|
1293
|
+
var createMethod = function(TYPE) {
|
|
1294
|
+
var IS_MAP = TYPE == 1;
|
|
1295
|
+
var IS_FILTER = TYPE == 2;
|
|
1296
|
+
var IS_SOME = TYPE == 3;
|
|
1297
|
+
var IS_EVERY = TYPE == 4;
|
|
1298
|
+
var IS_FIND_INDEX = TYPE == 6;
|
|
1299
|
+
var IS_FILTER_REJECT = TYPE == 7;
|
|
1300
|
+
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
1301
|
+
return function($this, callbackfn, that, specificCreate) {
|
|
1302
|
+
var O = toObject($this);
|
|
1303
|
+
var self2 = IndexedObject(O);
|
|
1304
|
+
var boundFunction = bind(callbackfn, that);
|
|
1305
|
+
var length = lengthOfArrayLike(self2);
|
|
1306
|
+
var index = 0;
|
|
1307
|
+
var create3 = specificCreate || arraySpeciesCreate;
|
|
1308
|
+
var target = IS_MAP ? create3($this, length) : IS_FILTER || IS_FILTER_REJECT ? create3($this, 0) : void 0;
|
|
1309
|
+
var value, result;
|
|
1310
|
+
for (; length > index; index++)
|
|
1311
|
+
if (NO_HOLES || index in self2) {
|
|
1312
|
+
value = self2[index];
|
|
1313
|
+
result = boundFunction(value, index, O);
|
|
1314
|
+
if (TYPE) {
|
|
1315
|
+
if (IS_MAP)
|
|
1316
|
+
target[index] = result;
|
|
1317
|
+
else if (result)
|
|
1318
|
+
switch (TYPE) {
|
|
1319
|
+
case 3:
|
|
1320
|
+
return true;
|
|
1321
|
+
case 5:
|
|
1322
|
+
return value;
|
|
1323
|
+
case 6:
|
|
1324
|
+
return index;
|
|
1325
|
+
case 2:
|
|
1326
|
+
push(target, value);
|
|
1327
|
+
}
|
|
1328
|
+
else
|
|
1329
|
+
switch (TYPE) {
|
|
1330
|
+
case 4:
|
|
1331
|
+
return false;
|
|
1332
|
+
case 7:
|
|
1333
|
+
push(target, value);
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
|
1338
|
+
};
|
|
1339
|
+
};
|
|
1340
|
+
var arrayIteration = {
|
|
1341
|
+
// `Array.prototype.forEach` method
|
|
1342
|
+
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
1343
|
+
forEach: createMethod(0),
|
|
1344
|
+
// `Array.prototype.map` method
|
|
1345
|
+
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
1346
|
+
map: createMethod(1),
|
|
1347
|
+
// `Array.prototype.filter` method
|
|
1348
|
+
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
1349
|
+
filter: createMethod(2),
|
|
1350
|
+
// `Array.prototype.some` method
|
|
1351
|
+
// https://tc39.es/ecma262/#sec-array.prototype.some
|
|
1352
|
+
some: createMethod(3),
|
|
1353
|
+
// `Array.prototype.every` method
|
|
1354
|
+
// https://tc39.es/ecma262/#sec-array.prototype.every
|
|
1355
|
+
every: createMethod(4),
|
|
1356
|
+
// `Array.prototype.find` method
|
|
1357
|
+
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
1358
|
+
find: createMethod(5),
|
|
1359
|
+
// `Array.prototype.findIndex` method
|
|
1360
|
+
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
|
1361
|
+
findIndex: createMethod(6),
|
|
1362
|
+
// `Array.prototype.filterReject` method
|
|
1363
|
+
// https://github.com/tc39/proposal-array-filtering
|
|
1364
|
+
filterReject: createMethod(7)
|
|
1365
|
+
};
|
|
1366
|
+
var fails = fails$c;
|
|
1367
|
+
var arrayMethodIsStrict$1 = function(METHOD_NAME, argument) {
|
|
1368
|
+
var method2 = [][METHOD_NAME];
|
|
1369
|
+
return !!method2 && fails(function() {
|
|
1370
|
+
method2.call(null, argument || function() {
|
|
1371
|
+
return 1;
|
|
1372
|
+
}, 1);
|
|
1373
|
+
});
|
|
1374
|
+
};
|
|
1375
|
+
var $forEach = arrayIteration.forEach;
|
|
1376
|
+
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
1377
|
+
var STRICT_METHOD = arrayMethodIsStrict("forEach");
|
|
1378
|
+
var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn) {
|
|
1379
|
+
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
1380
|
+
} : [].forEach;
|
|
1381
|
+
var $ = _export;
|
|
1382
|
+
var forEach$7 = arrayForEach;
|
|
1383
|
+
$({
|
|
1384
|
+
target: "Array",
|
|
1385
|
+
proto: true,
|
|
1386
|
+
forced: [].forEach != forEach$7
|
|
1387
|
+
}, {
|
|
1388
|
+
forEach: forEach$7
|
|
1389
|
+
});
|
|
1390
|
+
var entryVirtual = entryVirtual$2;
|
|
1391
|
+
var forEach$6 = entryVirtual("Array").forEach;
|
|
1392
|
+
var parent$2 = forEach$6;
|
|
1393
|
+
var forEach$5 = parent$2;
|
|
1394
|
+
var classof = classof$4;
|
|
1395
|
+
var hasOwn2 = hasOwnProperty_1;
|
|
1396
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
1397
|
+
var method = forEach$5;
|
|
1398
|
+
var ArrayPrototype = Array.prototype;
|
|
1399
|
+
var DOMIterables = {
|
|
1400
|
+
DOMTokenList: true,
|
|
1401
|
+
NodeList: true
|
|
1402
|
+
};
|
|
1403
|
+
var forEach$4 = function(it) {
|
|
1404
|
+
var own = it.forEach;
|
|
1405
|
+
return it === ArrayPrototype || isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.forEach || hasOwn2(DOMIterables, classof(it)) ? method : own;
|
|
1406
|
+
};
|
|
1407
|
+
var parent$1 = forEach$4;
|
|
1408
|
+
var forEach$3 = parent$1;
|
|
1409
|
+
var parent = forEach$3;
|
|
1410
|
+
var forEach$2 = parent;
|
|
1411
|
+
var forEach$1 = forEach$2;
|
|
1412
|
+
var forEach2 = forEach$1;
|
|
1413
|
+
const _forEachInstanceProperty = /* @__PURE__ */ getDefaultExportFromCjs(forEach2);
|
|
1414
|
+
var __sfc_main = vueDemi.defineComponent({
|
|
6
1415
|
name: "nf-text-overflow"
|
|
7
1416
|
});
|
|
8
1417
|
__sfc_main.props = {
|
|
@@ -10,57 +1419,61 @@ __sfc_main.props = {
|
|
|
10
1419
|
key: "content",
|
|
11
1420
|
required: false,
|
|
12
1421
|
type: String,
|
|
13
|
-
default: ""
|
|
1422
|
+
"default": ""
|
|
14
1423
|
},
|
|
15
1424
|
expandText: {
|
|
16
1425
|
key: "expandText",
|
|
17
1426
|
required: false,
|
|
18
1427
|
type: String,
|
|
19
|
-
default: "展开"
|
|
1428
|
+
"default": "展开"
|
|
20
1429
|
},
|
|
21
1430
|
collapseText: {
|
|
22
1431
|
key: "collapseText",
|
|
23
1432
|
required: false,
|
|
24
1433
|
type: String,
|
|
25
|
-
default: "收起"
|
|
1434
|
+
"default": "收起"
|
|
26
1435
|
},
|
|
27
1436
|
rows: {
|
|
28
1437
|
key: "rows",
|
|
29
1438
|
required: false,
|
|
30
1439
|
type: [String, Number],
|
|
31
|
-
default: 1
|
|
1440
|
+
"default": 1
|
|
32
1441
|
},
|
|
33
1442
|
rowHeight: {
|
|
34
1443
|
key: "rowHeight",
|
|
35
1444
|
required: false,
|
|
36
1445
|
type: [String, Number],
|
|
37
|
-
default: 20
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
__sfc_main.setup = (__props, __ctx)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
1446
|
+
"default": 20
|
|
1447
|
+
}
|
|
1448
|
+
};
|
|
1449
|
+
__sfc_main.setup = function(__props, __ctx) {
|
|
1450
|
+
var props = __props;
|
|
1451
|
+
var emit = __ctx.emit;
|
|
1452
|
+
var text = vueDemi.ref("");
|
|
1453
|
+
var expanded = vueDemi.ref(false);
|
|
1454
|
+
var hasAction = vueDemi.ref(false);
|
|
1455
|
+
var textbox = vueDemi.ref();
|
|
1456
|
+
var contentHeight = vueDemi.ref();
|
|
1457
|
+
var hasDefaultSlot = vueDemi.computed(function() {
|
|
1458
|
+
return !!vueDemi.useSlots()["default"];
|
|
1459
|
+
});
|
|
1460
|
+
var maxContentHeight = vueDemi.computed(function() {
|
|
1461
|
+
return Number(props.rows) * Number(props.rowHeight);
|
|
1462
|
+
});
|
|
1463
|
+
var pxToNum = function pxToNum2(value) {
|
|
51
1464
|
if (!value)
|
|
52
1465
|
return 0;
|
|
53
|
-
|
|
54
|
-
return
|
|
1466
|
+
var match2 = value.match(/^\d*(\.\d*)?/);
|
|
1467
|
+
return match2 ? Number(match2[0]) : 0;
|
|
55
1468
|
};
|
|
56
|
-
|
|
57
|
-
|
|
1469
|
+
var calcEllipsised = function calcEllipsised2() {
|
|
1470
|
+
var cloneContainer = function cloneContainer2() {
|
|
58
1471
|
if (!textbox.value)
|
|
59
1472
|
return;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
styleNames.
|
|
1473
|
+
var originStyle = window.getComputedStyle(textbox.value);
|
|
1474
|
+
var container2 = document.createElement("div");
|
|
1475
|
+
var styleNames = _sliceInstanceProperty(Array.prototype).apply(originStyle);
|
|
1476
|
+
_forEachInstanceProperty(styleNames).call(styleNames, function(name) {
|
|
64
1477
|
container2.style.setProperty(name, originStyle.getPropertyValue(name));
|
|
65
1478
|
});
|
|
66
1479
|
container2.style.position = "fixed";
|
|
@@ -73,16 +1486,14 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
73
1486
|
document.body.appendChild(container2);
|
|
74
1487
|
return container2;
|
|
75
1488
|
};
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
let right = content.length;
|
|
82
|
-
let res = -1;
|
|
1489
|
+
var calcEllipsisText = function calcEllipsisText2(container2, maxHeight2) {
|
|
1490
|
+
var content = props.content;
|
|
1491
|
+
var left = 0;
|
|
1492
|
+
var right = content.length;
|
|
1493
|
+
var res = -1;
|
|
83
1494
|
while (left <= right) {
|
|
84
|
-
|
|
85
|
-
container2.innerText = content.
|
|
1495
|
+
var mid = Math.floor((left + right) / 2);
|
|
1496
|
+
container2.innerText = _sliceInstanceProperty(content).call(content, 0, mid);
|
|
86
1497
|
if (container2.offsetHeight <= maxHeight2) {
|
|
87
1498
|
left = mid + 1;
|
|
88
1499
|
res = mid;
|
|
@@ -90,17 +1501,13 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
90
1501
|
right = mid - 1;
|
|
91
1502
|
}
|
|
92
1503
|
}
|
|
93
|
-
return content.
|
|
1504
|
+
return _sliceInstanceProperty(content).call(content, 0, res);
|
|
94
1505
|
};
|
|
95
|
-
|
|
1506
|
+
var container = cloneContainer();
|
|
96
1507
|
if (!container)
|
|
97
1508
|
return;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
paddingTop,
|
|
101
|
-
lineHeight
|
|
102
|
-
} = container.style;
|
|
103
|
-
const maxHeight = (Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom);
|
|
1509
|
+
var _container$style = container.style, paddingBottom = _container$style.paddingBottom, paddingTop = _container$style.paddingTop, lineHeight = _container$style.lineHeight;
|
|
1510
|
+
var maxHeight = (Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom);
|
|
104
1511
|
if (maxHeight < container.offsetHeight) {
|
|
105
1512
|
hasAction.value = true;
|
|
106
1513
|
text.value = calcEllipsisText(container, maxHeight);
|
|
@@ -110,31 +1517,33 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
110
1517
|
}
|
|
111
1518
|
document.body.removeChild(container);
|
|
112
1519
|
};
|
|
113
|
-
|
|
1520
|
+
var calcContentHeight = function calcContentHeight2() {
|
|
114
1521
|
if (!textbox.value)
|
|
115
1522
|
return;
|
|
116
|
-
|
|
1523
|
+
var height = textbox.value.offsetHeight;
|
|
117
1524
|
if (height > maxContentHeight.value) {
|
|
118
1525
|
hasAction.value = true;
|
|
119
|
-
contentHeight.value =
|
|
1526
|
+
contentHeight.value = "".concat(maxContentHeight.value, "px");
|
|
120
1527
|
}
|
|
121
1528
|
};
|
|
122
|
-
|
|
123
|
-
|
|
1529
|
+
var init = hasDefaultSlot.value ? calcContentHeight : calcEllipsised;
|
|
1530
|
+
var onClickAction = function onClickAction2(event) {
|
|
124
1531
|
expanded.value = !expanded.value;
|
|
125
1532
|
if (hasDefaultSlot.value) {
|
|
126
|
-
contentHeight.value = expanded.value ? "auto" :
|
|
1533
|
+
contentHeight.value = expanded.value ? "auto" : "".concat(maxContentHeight.value, "px");
|
|
127
1534
|
}
|
|
128
1535
|
emit("clickAction", event);
|
|
129
1536
|
};
|
|
130
|
-
vueDemi.onMounted(()
|
|
1537
|
+
vueDemi.onMounted(function() {
|
|
131
1538
|
init();
|
|
132
1539
|
window.addEventListener("resize", init);
|
|
133
1540
|
});
|
|
134
|
-
vueDemi.onUnmounted(()
|
|
1541
|
+
vueDemi.onUnmounted(function() {
|
|
135
1542
|
window.removeEventListener("resize", init);
|
|
136
1543
|
});
|
|
137
|
-
vueDemi.watch(()
|
|
1544
|
+
vueDemi.watch(function() {
|
|
1545
|
+
return [props.content, props.rows];
|
|
1546
|
+
}, init);
|
|
138
1547
|
return {
|
|
139
1548
|
text,
|
|
140
1549
|
expanded,
|
|
@@ -154,7 +1563,7 @@ var _sfc_render = function render() {
|
|
|
154
1563
|
staticClass: "nf-text-overflow__content",
|
|
155
1564
|
style: {
|
|
156
1565
|
height: _vm.contentHeight,
|
|
157
|
-
lineHeight:
|
|
1566
|
+
lineHeight: "".concat(_vm.rowHeight, "px")
|
|
158
1567
|
}
|
|
159
1568
|
}, [_vm._t("default", function() {
|
|
160
1569
|
return [_vm._v(_vm._s(_vm.expanded ? _vm.content : _vm.text))];
|
|
@@ -165,13 +1574,13 @@ var _sfc_render = function render() {
|
|
|
165
1574
|
}
|
|
166
1575
|
}, [_vm._v(" " + _vm._s(_vm.expanded ? _vm.collapseText : _vm.expandText) + " "), _c("i", {
|
|
167
1576
|
staticClass: "nf-text-overflow__icon",
|
|
168
|
-
class: [_vm.expanded ? "el-icon-arrow-up" : "el-icon-arrow-down"]
|
|
1577
|
+
"class": [_vm.expanded ? "el-icon-arrow-up" : "el-icon-arrow-down"]
|
|
169
1578
|
})]) : _vm._e()]);
|
|
170
1579
|
};
|
|
171
1580
|
var _sfc_staticRenderFns = [];
|
|
172
1581
|
var __component__ = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
|
|
173
1582
|
const NfTextOverflow = __component__.exports;
|
|
174
|
-
NfTextOverflow.install = (app)
|
|
1583
|
+
NfTextOverflow.install = function(app) {
|
|
175
1584
|
app.component("nf-text-overflow", NfTextOverflow);
|
|
176
1585
|
};
|
|
177
1586
|
exports.default = NfTextOverflow;
|