@94ai/nf-svg-icon 3.3.36 → 3.3.38
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-svg-icon.cjs.js +877 -32
- package/lib/nf-svg-icon.esm-bundler.js +877 -32
- package/package.json +4 -4
|
@@ -14,12 +14,853 @@ import { defineComponent, computed } from "vue-demi";
|
|
|
14
14
|
import { getDarkColor, getLightColor } from "@94ai/common-utils";
|
|
15
15
|
import { useCssVars } from "vue";
|
|
16
16
|
import { normalizeComponent } from "@94ai/vue2-runtime-helpers";
|
|
17
|
-
|
|
17
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
18
|
+
function getDefaultExportFromCjs(x) {
|
|
19
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
20
|
+
}
|
|
21
|
+
var fails$b = function(exec2) {
|
|
22
|
+
try {
|
|
23
|
+
return !!exec2();
|
|
24
|
+
} catch (error) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
var fails$a = fails$b;
|
|
29
|
+
var functionBindNative = !fails$a(function() {
|
|
30
|
+
var test2 = (function() {
|
|
31
|
+
}).bind();
|
|
32
|
+
return typeof test2 != "function" || test2.hasOwnProperty("prototype");
|
|
33
|
+
});
|
|
34
|
+
var NATIVE_BIND$3 = functionBindNative;
|
|
35
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
36
|
+
var call$5 = FunctionPrototype$1.call;
|
|
37
|
+
var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$1.bind.bind(call$5, call$5);
|
|
38
|
+
var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function(fn) {
|
|
39
|
+
return function() {
|
|
40
|
+
return call$5.apply(fn, arguments);
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
var uncurryThis$b = functionUncurryThis;
|
|
44
|
+
var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
|
|
45
|
+
var check = function(it) {
|
|
46
|
+
return it && it.Math === Math && it;
|
|
47
|
+
};
|
|
48
|
+
var global$b = (
|
|
49
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
50
|
+
check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
51
|
+
check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
|
|
52
|
+
function() {
|
|
53
|
+
return this;
|
|
54
|
+
}() || commonjsGlobal || Function("return this")()
|
|
55
|
+
);
|
|
56
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
57
|
+
var FunctionPrototype = Function.prototype;
|
|
58
|
+
var apply$1 = FunctionPrototype.apply;
|
|
59
|
+
var call$4 = FunctionPrototype.call;
|
|
60
|
+
var functionApply = typeof Reflect == "object" && Reflect.apply || (NATIVE_BIND$2 ? call$4.bind(apply$1) : function() {
|
|
61
|
+
return call$4.apply(apply$1, arguments);
|
|
62
|
+
});
|
|
63
|
+
var uncurryThis$a = functionUncurryThis;
|
|
64
|
+
var toString$4 = uncurryThis$a({}.toString);
|
|
65
|
+
var stringSlice = uncurryThis$a("".slice);
|
|
66
|
+
var classofRaw$2 = function(it) {
|
|
67
|
+
return stringSlice(toString$4(it), 8, -1);
|
|
68
|
+
};
|
|
69
|
+
var classofRaw$1 = classofRaw$2;
|
|
70
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
71
|
+
var functionUncurryThisClause = function(fn) {
|
|
72
|
+
if (classofRaw$1(fn) === "Function")
|
|
73
|
+
return uncurryThis$9(fn);
|
|
74
|
+
};
|
|
75
|
+
var documentAll$2 = typeof document == "object" && document.all;
|
|
76
|
+
var IS_HTMLDDA = typeof documentAll$2 == "undefined" && documentAll$2 !== void 0;
|
|
77
|
+
var documentAll_1 = {
|
|
78
|
+
all: documentAll$2,
|
|
79
|
+
IS_HTMLDDA
|
|
80
|
+
};
|
|
81
|
+
var $documentAll$1 = documentAll_1;
|
|
82
|
+
var documentAll$1 = $documentAll$1.all;
|
|
83
|
+
var isCallable$a = $documentAll$1.IS_HTMLDDA ? function(argument) {
|
|
84
|
+
return typeof argument == "function" || argument === documentAll$1;
|
|
85
|
+
} : function(argument) {
|
|
86
|
+
return typeof argument == "function";
|
|
87
|
+
};
|
|
88
|
+
var objectGetOwnPropertyDescriptor = {};
|
|
89
|
+
var fails$9 = fails$b;
|
|
90
|
+
var descriptors = !fails$9(function() {
|
|
91
|
+
return Object.defineProperty({}, 1, {
|
|
92
|
+
get: function() {
|
|
93
|
+
return 7;
|
|
94
|
+
}
|
|
95
|
+
})[1] !== 7;
|
|
96
|
+
});
|
|
97
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
98
|
+
var call$3 = Function.prototype.call;
|
|
99
|
+
var functionCall = NATIVE_BIND$1 ? call$3.bind(call$3) : function() {
|
|
100
|
+
return call$3.apply(call$3, arguments);
|
|
101
|
+
};
|
|
102
|
+
var objectPropertyIsEnumerable = {};
|
|
103
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
104
|
+
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
105
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({
|
|
106
|
+
1: 2
|
|
107
|
+
}, 1);
|
|
108
|
+
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
109
|
+
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
110
|
+
return !!descriptor && descriptor.enumerable;
|
|
111
|
+
} : $propertyIsEnumerable;
|
|
112
|
+
var createPropertyDescriptor$3 = function(bitmap, value) {
|
|
113
|
+
return {
|
|
114
|
+
enumerable: !(bitmap & 1),
|
|
115
|
+
configurable: !(bitmap & 2),
|
|
116
|
+
writable: !(bitmap & 4),
|
|
117
|
+
value
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
121
|
+
var fails$8 = fails$b;
|
|
122
|
+
var classof$4 = classofRaw$2;
|
|
123
|
+
var $Object$3 = Object;
|
|
124
|
+
var split = uncurryThis$8("".split);
|
|
125
|
+
var indexedObject = fails$8(function() {
|
|
126
|
+
return !$Object$3("z").propertyIsEnumerable(0);
|
|
127
|
+
}) ? function(it) {
|
|
128
|
+
return classof$4(it) === "String" ? split(it, "") : $Object$3(it);
|
|
129
|
+
} : $Object$3;
|
|
130
|
+
var isNullOrUndefined$2 = function(it) {
|
|
131
|
+
return it === null || it === void 0;
|
|
132
|
+
};
|
|
133
|
+
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
|
134
|
+
var $TypeError$6 = TypeError;
|
|
135
|
+
var requireObjectCoercible$3 = function(it) {
|
|
136
|
+
if (isNullOrUndefined$1(it))
|
|
137
|
+
throw new $TypeError$6("Can't call method on " + it);
|
|
138
|
+
return it;
|
|
139
|
+
};
|
|
140
|
+
var IndexedObject = indexedObject;
|
|
141
|
+
var requireObjectCoercible$2 = requireObjectCoercible$3;
|
|
142
|
+
var toIndexedObject$1 = function(it) {
|
|
143
|
+
return IndexedObject(requireObjectCoercible$2(it));
|
|
144
|
+
};
|
|
145
|
+
var isCallable$9 = isCallable$a;
|
|
146
|
+
var $documentAll = documentAll_1;
|
|
147
|
+
var documentAll = $documentAll.all;
|
|
148
|
+
var isObject$6 = $documentAll.IS_HTMLDDA ? function(it) {
|
|
149
|
+
return typeof it == "object" ? it !== null : isCallable$9(it) || it === documentAll;
|
|
150
|
+
} : function(it) {
|
|
151
|
+
return typeof it == "object" ? it !== null : isCallable$9(it);
|
|
152
|
+
};
|
|
153
|
+
var path$4 = {};
|
|
154
|
+
var path$3 = path$4;
|
|
155
|
+
var global$a = global$b;
|
|
156
|
+
var isCallable$8 = isCallable$a;
|
|
157
|
+
var aFunction = function(variable) {
|
|
158
|
+
return isCallable$8(variable) ? variable : void 0;
|
|
159
|
+
};
|
|
160
|
+
var getBuiltIn$2 = function(namespace, method2) {
|
|
161
|
+
return arguments.length < 2 ? aFunction(path$3[namespace]) || aFunction(global$a[namespace]) : path$3[namespace] && path$3[namespace][method2] || global$a[namespace] && global$a[namespace][method2];
|
|
162
|
+
};
|
|
163
|
+
var engineUserAgent = typeof navigator != "undefined" && String(navigator.userAgent) || "";
|
|
164
|
+
var global$9 = global$b;
|
|
165
|
+
var userAgent = engineUserAgent;
|
|
166
|
+
var process = global$9.process;
|
|
167
|
+
var Deno = global$9.Deno;
|
|
168
|
+
var versions = process && process.versions || Deno && Deno.version;
|
|
169
|
+
var v8 = versions && versions.v8;
|
|
170
|
+
var match, version;
|
|
171
|
+
if (v8) {
|
|
172
|
+
match = v8.split(".");
|
|
173
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
174
|
+
}
|
|
175
|
+
if (!version && userAgent) {
|
|
176
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
|
177
|
+
if (!match || match[1] >= 74) {
|
|
178
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
|
179
|
+
if (match)
|
|
180
|
+
version = +match[1];
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
var engineV8Version = version;
|
|
184
|
+
var V8_VERSION$2 = engineV8Version;
|
|
185
|
+
var fails$7 = fails$b;
|
|
186
|
+
var global$8 = global$b;
|
|
187
|
+
var $String$3 = global$8.String;
|
|
188
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function() {
|
|
189
|
+
var symbol = Symbol("symbol detection");
|
|
190
|
+
return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
191
|
+
!Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
|
|
192
|
+
});
|
|
193
|
+
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
194
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && typeof Symbol.iterator == "symbol";
|
|
195
|
+
var getBuiltIn$1 = getBuiltIn$2;
|
|
196
|
+
var isCallable$7 = isCallable$a;
|
|
197
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
198
|
+
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
199
|
+
var $Object$2 = Object;
|
|
200
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function(it) {
|
|
201
|
+
return typeof it == "symbol";
|
|
202
|
+
} : function(it) {
|
|
203
|
+
var $Symbol = getBuiltIn$1("Symbol");
|
|
204
|
+
return isCallable$7($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$2(it));
|
|
205
|
+
};
|
|
206
|
+
var $String$2 = String;
|
|
207
|
+
var tryToString$1 = function(argument) {
|
|
208
|
+
try {
|
|
209
|
+
return $String$2(argument);
|
|
210
|
+
} catch (error) {
|
|
211
|
+
return "Object";
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
var isCallable$6 = isCallable$a;
|
|
215
|
+
var tryToString = tryToString$1;
|
|
216
|
+
var $TypeError$5 = TypeError;
|
|
217
|
+
var aCallable$2 = function(argument) {
|
|
218
|
+
if (isCallable$6(argument))
|
|
219
|
+
return argument;
|
|
220
|
+
throw new $TypeError$5(tryToString(argument) + " is not a function");
|
|
221
|
+
};
|
|
222
|
+
var aCallable$1 = aCallable$2;
|
|
223
|
+
var isNullOrUndefined = isNullOrUndefined$2;
|
|
224
|
+
var getMethod$1 = function(V, P) {
|
|
225
|
+
var func = V[P];
|
|
226
|
+
return isNullOrUndefined(func) ? void 0 : aCallable$1(func);
|
|
227
|
+
};
|
|
228
|
+
var call$2 = functionCall;
|
|
229
|
+
var isCallable$5 = isCallable$a;
|
|
230
|
+
var isObject$5 = isObject$6;
|
|
231
|
+
var $TypeError$4 = TypeError;
|
|
232
|
+
var ordinaryToPrimitive$1 = function(input, pref) {
|
|
233
|
+
var fn, val;
|
|
234
|
+
if (pref === "string" && isCallable$5(fn = input.toString) && !isObject$5(val = call$2(fn, input)))
|
|
235
|
+
return val;
|
|
236
|
+
if (isCallable$5(fn = input.valueOf) && !isObject$5(val = call$2(fn, input)))
|
|
237
|
+
return val;
|
|
238
|
+
if (pref !== "string" && isCallable$5(fn = input.toString) && !isObject$5(val = call$2(fn, input)))
|
|
239
|
+
return val;
|
|
240
|
+
throw new $TypeError$4("Can't convert object to primitive value");
|
|
241
|
+
};
|
|
242
|
+
var shared$1 = { exports: {} };
|
|
243
|
+
var global$7 = global$b;
|
|
244
|
+
var defineProperty = Object.defineProperty;
|
|
245
|
+
var defineGlobalProperty$1 = function(key, value) {
|
|
246
|
+
try {
|
|
247
|
+
defineProperty(global$7, key, {
|
|
248
|
+
value,
|
|
249
|
+
configurable: true,
|
|
250
|
+
writable: true
|
|
251
|
+
});
|
|
252
|
+
} catch (error) {
|
|
253
|
+
global$7[key] = value;
|
|
254
|
+
}
|
|
255
|
+
return value;
|
|
256
|
+
};
|
|
257
|
+
var global$6 = global$b;
|
|
258
|
+
var defineGlobalProperty = defineGlobalProperty$1;
|
|
259
|
+
var SHARED = "__core-js_shared__";
|
|
260
|
+
var store$2 = global$6[SHARED] || defineGlobalProperty(SHARED, {});
|
|
261
|
+
var sharedStore = store$2;
|
|
262
|
+
var store$1 = sharedStore;
|
|
263
|
+
(shared$1.exports = function(key, value) {
|
|
264
|
+
return store$1[key] || (store$1[key] = value !== void 0 ? value : {});
|
|
265
|
+
})("versions", []).push({
|
|
266
|
+
version: "3.33.2",
|
|
267
|
+
mode: "pure",
|
|
268
|
+
copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)",
|
|
269
|
+
license: "https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",
|
|
270
|
+
source: "https://github.com/zloirock/core-js"
|
|
271
|
+
});
|
|
272
|
+
var sharedExports = shared$1.exports;
|
|
273
|
+
var requireObjectCoercible$1 = requireObjectCoercible$3;
|
|
274
|
+
var $Object$1 = Object;
|
|
275
|
+
var toObject$2 = function(argument) {
|
|
276
|
+
return $Object$1(requireObjectCoercible$1(argument));
|
|
277
|
+
};
|
|
278
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
279
|
+
var toObject$1 = toObject$2;
|
|
280
|
+
var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
|
|
281
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
282
|
+
return hasOwnProperty(toObject$1(it), key);
|
|
283
|
+
};
|
|
284
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
285
|
+
var id = 0;
|
|
286
|
+
var postfix = Math.random();
|
|
287
|
+
var toString$3 = uncurryThis$6(1 .toString);
|
|
288
|
+
var uid$1 = function(key) {
|
|
289
|
+
return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString$3(++id + postfix, 36);
|
|
290
|
+
};
|
|
291
|
+
var global$5 = global$b;
|
|
292
|
+
var shared = sharedExports;
|
|
293
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
294
|
+
var uid = uid$1;
|
|
295
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
296
|
+
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
297
|
+
var Symbol$2 = global$5.Symbol;
|
|
298
|
+
var WellKnownSymbolsStore = shared("wks");
|
|
299
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2["for"] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid;
|
|
300
|
+
var wellKnownSymbol$6 = function(name) {
|
|
301
|
+
if (!hasOwn$2(WellKnownSymbolsStore, name)) {
|
|
302
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$2(Symbol$2, name) ? Symbol$2[name] : createWellKnownSymbol("Symbol." + name);
|
|
303
|
+
}
|
|
304
|
+
return WellKnownSymbolsStore[name];
|
|
305
|
+
};
|
|
306
|
+
var call$1 = functionCall;
|
|
307
|
+
var isObject$4 = isObject$6;
|
|
308
|
+
var isSymbol$1 = isSymbol$2;
|
|
309
|
+
var getMethod = getMethod$1;
|
|
310
|
+
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
311
|
+
var wellKnownSymbol$5 = wellKnownSymbol$6;
|
|
312
|
+
var $TypeError$3 = TypeError;
|
|
313
|
+
var TO_PRIMITIVE = wellKnownSymbol$5("toPrimitive");
|
|
314
|
+
var toPrimitive$1 = function(input, pref) {
|
|
315
|
+
if (!isObject$4(input) || isSymbol$1(input))
|
|
316
|
+
return input;
|
|
317
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
318
|
+
var result;
|
|
319
|
+
if (exoticToPrim) {
|
|
320
|
+
if (pref === void 0)
|
|
321
|
+
pref = "default";
|
|
322
|
+
result = call$1(exoticToPrim, input, pref);
|
|
323
|
+
if (!isObject$4(result) || isSymbol$1(result))
|
|
324
|
+
return result;
|
|
325
|
+
throw new $TypeError$3("Can't convert object to primitive value");
|
|
326
|
+
}
|
|
327
|
+
if (pref === void 0)
|
|
328
|
+
pref = "number";
|
|
329
|
+
return ordinaryToPrimitive(input, pref);
|
|
330
|
+
};
|
|
331
|
+
var toPrimitive = toPrimitive$1;
|
|
332
|
+
var isSymbol = isSymbol$2;
|
|
333
|
+
var toPropertyKey$3 = function(argument) {
|
|
334
|
+
var key = toPrimitive(argument, "string");
|
|
335
|
+
return isSymbol(key) ? key : key + "";
|
|
336
|
+
};
|
|
337
|
+
var global$4 = global$b;
|
|
338
|
+
var isObject$3 = isObject$6;
|
|
339
|
+
var document$1 = global$4.document;
|
|
340
|
+
var EXISTS = isObject$3(document$1) && isObject$3(document$1.createElement);
|
|
341
|
+
var documentCreateElement = function(it) {
|
|
342
|
+
return EXISTS ? document$1.createElement(it) : {};
|
|
343
|
+
};
|
|
344
|
+
var DESCRIPTORS$4 = descriptors;
|
|
345
|
+
var fails$6 = fails$b;
|
|
346
|
+
var createElement = documentCreateElement;
|
|
347
|
+
var ie8DomDefine = !DESCRIPTORS$4 && !fails$6(function() {
|
|
348
|
+
return Object.defineProperty(createElement("div"), "a", {
|
|
349
|
+
get: function() {
|
|
350
|
+
return 7;
|
|
351
|
+
}
|
|
352
|
+
}).a !== 7;
|
|
353
|
+
});
|
|
354
|
+
var DESCRIPTORS$3 = descriptors;
|
|
355
|
+
var call = functionCall;
|
|
356
|
+
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
357
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
358
|
+
var toIndexedObject = toIndexedObject$1;
|
|
359
|
+
var toPropertyKey$2 = toPropertyKey$3;
|
|
360
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
361
|
+
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
362
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
363
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$3 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
364
|
+
O = toIndexedObject(O);
|
|
365
|
+
P = toPropertyKey$2(P);
|
|
366
|
+
if (IE8_DOM_DEFINE$1)
|
|
367
|
+
try {
|
|
368
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
|
369
|
+
} catch (error) {
|
|
370
|
+
}
|
|
371
|
+
if (hasOwn$1(O, P))
|
|
372
|
+
return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
373
|
+
};
|
|
374
|
+
var fails$5 = fails$b;
|
|
375
|
+
var isCallable$4 = isCallable$a;
|
|
376
|
+
var replacement = /#|\.prototype\./;
|
|
377
|
+
var isForced$1 = function(feature, detection) {
|
|
378
|
+
var value = data[normalize(feature)];
|
|
379
|
+
return value === POLYFILL ? true : value === NATIVE ? false : isCallable$4(detection) ? fails$5(detection) : !!detection;
|
|
380
|
+
};
|
|
381
|
+
var normalize = isForced$1.normalize = function(string) {
|
|
382
|
+
return String(string).replace(replacement, ".").toLowerCase();
|
|
383
|
+
};
|
|
384
|
+
var data = isForced$1.data = {};
|
|
385
|
+
var NATIVE = isForced$1.NATIVE = "N";
|
|
386
|
+
var POLYFILL = isForced$1.POLYFILL = "P";
|
|
387
|
+
var isForced_1 = isForced$1;
|
|
388
|
+
var uncurryThis$5 = functionUncurryThisClause;
|
|
389
|
+
var aCallable = aCallable$2;
|
|
390
|
+
var NATIVE_BIND = functionBindNative;
|
|
391
|
+
var bind$1 = uncurryThis$5(uncurryThis$5.bind);
|
|
392
|
+
var functionBindContext = function(fn, that) {
|
|
393
|
+
aCallable(fn);
|
|
394
|
+
return that === void 0 ? fn : NATIVE_BIND ? bind$1(fn, that) : function() {
|
|
395
|
+
return fn.apply(that, arguments);
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
var objectDefineProperty = {};
|
|
399
|
+
var DESCRIPTORS$2 = descriptors;
|
|
400
|
+
var fails$4 = fails$b;
|
|
401
|
+
var v8PrototypeDefineBug = DESCRIPTORS$2 && fails$4(function() {
|
|
402
|
+
return Object.defineProperty(function() {
|
|
403
|
+
}, "prototype", {
|
|
404
|
+
value: 42,
|
|
405
|
+
writable: false
|
|
406
|
+
}).prototype !== 42;
|
|
407
|
+
});
|
|
408
|
+
var isObject$2 = isObject$6;
|
|
409
|
+
var $String$1 = String;
|
|
410
|
+
var $TypeError$2 = TypeError;
|
|
411
|
+
var anObject$1 = function(argument) {
|
|
412
|
+
if (isObject$2(argument))
|
|
413
|
+
return argument;
|
|
414
|
+
throw new $TypeError$2($String$1(argument) + " is not an object");
|
|
415
|
+
};
|
|
416
|
+
var DESCRIPTORS$1 = descriptors;
|
|
417
|
+
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
418
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
419
|
+
var anObject = anObject$1;
|
|
420
|
+
var toPropertyKey$1 = toPropertyKey$3;
|
|
421
|
+
var $TypeError$1 = TypeError;
|
|
422
|
+
var $defineProperty = Object.defineProperty;
|
|
423
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
424
|
+
var ENUMERABLE = "enumerable";
|
|
425
|
+
var CONFIGURABLE = "configurable";
|
|
426
|
+
var WRITABLE = "writable";
|
|
427
|
+
objectDefineProperty.f = DESCRIPTORS$1 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty2(O, P, Attributes) {
|
|
428
|
+
anObject(O);
|
|
429
|
+
P = toPropertyKey$1(P);
|
|
430
|
+
anObject(Attributes);
|
|
431
|
+
if (typeof O === "function" && P === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
432
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
|
433
|
+
if (current && current[WRITABLE]) {
|
|
434
|
+
O[P] = Attributes.value;
|
|
435
|
+
Attributes = {
|
|
436
|
+
configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
|
|
437
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
438
|
+
writable: false
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
return $defineProperty(O, P, Attributes);
|
|
443
|
+
} : $defineProperty : function defineProperty3(O, P, Attributes) {
|
|
444
|
+
anObject(O);
|
|
445
|
+
P = toPropertyKey$1(P);
|
|
446
|
+
anObject(Attributes);
|
|
447
|
+
if (IE8_DOM_DEFINE)
|
|
448
|
+
try {
|
|
449
|
+
return $defineProperty(O, P, Attributes);
|
|
450
|
+
} catch (error) {
|
|
451
|
+
}
|
|
452
|
+
if ("get" in Attributes || "set" in Attributes)
|
|
453
|
+
throw new $TypeError$1("Accessors not supported");
|
|
454
|
+
if ("value" in Attributes)
|
|
455
|
+
O[P] = Attributes.value;
|
|
456
|
+
return O;
|
|
457
|
+
};
|
|
458
|
+
var DESCRIPTORS = descriptors;
|
|
459
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
460
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
461
|
+
var createNonEnumerableProperty$1 = DESCRIPTORS ? function(object, key, value) {
|
|
462
|
+
return definePropertyModule$1.f(object, key, createPropertyDescriptor$1(1, value));
|
|
463
|
+
} : function(object, key, value) {
|
|
464
|
+
object[key] = value;
|
|
465
|
+
return object;
|
|
466
|
+
};
|
|
467
|
+
var global$3 = global$b;
|
|
468
|
+
var apply = functionApply;
|
|
469
|
+
var uncurryThis$4 = functionUncurryThisClause;
|
|
470
|
+
var isCallable$3 = isCallable$a;
|
|
471
|
+
var getOwnPropertyDescriptor2 = objectGetOwnPropertyDescriptor.f;
|
|
472
|
+
var isForced = isForced_1;
|
|
473
|
+
var path$2 = path$4;
|
|
474
|
+
var bind = functionBindContext;
|
|
475
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$1;
|
|
476
|
+
var hasOwn2 = hasOwnProperty_1;
|
|
477
|
+
var wrapConstructor = function(NativeConstructor) {
|
|
478
|
+
var Wrapper = function(a, b, c) {
|
|
479
|
+
if (this instanceof Wrapper) {
|
|
480
|
+
switch (arguments.length) {
|
|
481
|
+
case 0:
|
|
482
|
+
return new NativeConstructor();
|
|
483
|
+
case 1:
|
|
484
|
+
return new NativeConstructor(a);
|
|
485
|
+
case 2:
|
|
486
|
+
return new NativeConstructor(a, b);
|
|
487
|
+
}
|
|
488
|
+
return new NativeConstructor(a, b, c);
|
|
489
|
+
}
|
|
490
|
+
return apply(NativeConstructor, this, arguments);
|
|
491
|
+
};
|
|
492
|
+
Wrapper.prototype = NativeConstructor.prototype;
|
|
493
|
+
return Wrapper;
|
|
494
|
+
};
|
|
495
|
+
var _export = function(options, source) {
|
|
496
|
+
var TARGET = options.target;
|
|
497
|
+
var GLOBAL = options.global;
|
|
498
|
+
var STATIC = options.stat;
|
|
499
|
+
var PROTO = options.proto;
|
|
500
|
+
var nativeSource = GLOBAL ? global$3 : STATIC ? global$3[TARGET] : (global$3[TARGET] || {}).prototype;
|
|
501
|
+
var target = GLOBAL ? path$2 : path$2[TARGET] || createNonEnumerableProperty(path$2, TARGET, {})[TARGET];
|
|
502
|
+
var targetPrototype = target.prototype;
|
|
503
|
+
var FORCED2, USE_NATIVE, VIRTUAL_PROTOTYPE;
|
|
504
|
+
var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;
|
|
505
|
+
for (key in source) {
|
|
506
|
+
FORCED2 = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
|
|
507
|
+
USE_NATIVE = !FORCED2 && nativeSource && hasOwn2(nativeSource, key);
|
|
508
|
+
targetProperty = target[key];
|
|
509
|
+
if (USE_NATIVE)
|
|
510
|
+
if (options.dontCallGetSet) {
|
|
511
|
+
descriptor = getOwnPropertyDescriptor2(nativeSource, key);
|
|
512
|
+
nativeProperty = descriptor && descriptor.value;
|
|
513
|
+
} else
|
|
514
|
+
nativeProperty = nativeSource[key];
|
|
515
|
+
sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
|
|
516
|
+
if (USE_NATIVE && typeof targetProperty == typeof sourceProperty)
|
|
517
|
+
continue;
|
|
518
|
+
if (options.bind && USE_NATIVE)
|
|
519
|
+
resultProperty = bind(sourceProperty, global$3);
|
|
520
|
+
else if (options.wrap && USE_NATIVE)
|
|
521
|
+
resultProperty = wrapConstructor(sourceProperty);
|
|
522
|
+
else if (PROTO && isCallable$3(sourceProperty))
|
|
523
|
+
resultProperty = uncurryThis$4(sourceProperty);
|
|
524
|
+
else
|
|
525
|
+
resultProperty = sourceProperty;
|
|
526
|
+
if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {
|
|
527
|
+
createNonEnumerableProperty(resultProperty, "sham", true);
|
|
528
|
+
}
|
|
529
|
+
createNonEnumerableProperty(target, key, resultProperty);
|
|
530
|
+
if (PROTO) {
|
|
531
|
+
VIRTUAL_PROTOTYPE = TARGET + "Prototype";
|
|
532
|
+
if (!hasOwn2(path$2, VIRTUAL_PROTOTYPE)) {
|
|
533
|
+
createNonEnumerableProperty(path$2, VIRTUAL_PROTOTYPE, {});
|
|
534
|
+
}
|
|
535
|
+
createNonEnumerableProperty(path$2[VIRTUAL_PROTOTYPE], key, sourceProperty);
|
|
536
|
+
if (options.real && targetPrototype && (FORCED2 || !targetPrototype[key])) {
|
|
537
|
+
createNonEnumerableProperty(targetPrototype, key, sourceProperty);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
};
|
|
542
|
+
var classof$3 = classofRaw$2;
|
|
543
|
+
var isArray$2 = Array.isArray || function isArray(argument) {
|
|
544
|
+
return classof$3(argument) === "Array";
|
|
545
|
+
};
|
|
546
|
+
var ceil = Math.ceil;
|
|
547
|
+
var floor = Math.floor;
|
|
548
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
549
|
+
var n = +x;
|
|
550
|
+
return (n > 0 ? floor : ceil)(n);
|
|
551
|
+
};
|
|
552
|
+
var trunc2 = mathTrunc;
|
|
553
|
+
var toIntegerOrInfinity$1 = function(argument) {
|
|
554
|
+
var number = +argument;
|
|
555
|
+
return number !== number || number === 0 ? 0 : trunc2(number);
|
|
556
|
+
};
|
|
557
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$1;
|
|
558
|
+
var min = Math.min;
|
|
559
|
+
var toLength$1 = function(argument) {
|
|
560
|
+
return argument > 0 ? min(toIntegerOrInfinity(argument), 9007199254740991) : 0;
|
|
561
|
+
};
|
|
562
|
+
var toLength = toLength$1;
|
|
563
|
+
var lengthOfArrayLike$1 = function(obj) {
|
|
564
|
+
return toLength(obj.length);
|
|
565
|
+
};
|
|
566
|
+
var $TypeError = TypeError;
|
|
567
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
568
|
+
var doesNotExceedSafeInteger$1 = function(it) {
|
|
569
|
+
if (it > MAX_SAFE_INTEGER)
|
|
570
|
+
throw $TypeError("Maximum allowed index exceeded");
|
|
571
|
+
return it;
|
|
572
|
+
};
|
|
573
|
+
var toPropertyKey = toPropertyKey$3;
|
|
574
|
+
var definePropertyModule = objectDefineProperty;
|
|
575
|
+
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
576
|
+
var createProperty$1 = function(object, key, value) {
|
|
577
|
+
var propertyKey = toPropertyKey(key);
|
|
578
|
+
if (propertyKey in object)
|
|
579
|
+
definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
580
|
+
else
|
|
581
|
+
object[propertyKey] = value;
|
|
582
|
+
};
|
|
583
|
+
var wellKnownSymbol$4 = wellKnownSymbol$6;
|
|
584
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$4("toStringTag");
|
|
585
|
+
var test = {};
|
|
586
|
+
test[TO_STRING_TAG$1] = "z";
|
|
587
|
+
var toStringTagSupport = String(test) === "[object z]";
|
|
588
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
589
|
+
var isCallable$2 = isCallable$a;
|
|
590
|
+
var classofRaw = classofRaw$2;
|
|
591
|
+
var wellKnownSymbol$3 = wellKnownSymbol$6;
|
|
592
|
+
var TO_STRING_TAG = wellKnownSymbol$3("toStringTag");
|
|
593
|
+
var $Object = Object;
|
|
594
|
+
var CORRECT_ARGUMENTS = classofRaw(function() {
|
|
595
|
+
return arguments;
|
|
596
|
+
}()) === "Arguments";
|
|
597
|
+
var tryGet = function(it, key) {
|
|
598
|
+
try {
|
|
599
|
+
return it[key];
|
|
600
|
+
} catch (error) {
|
|
601
|
+
}
|
|
602
|
+
};
|
|
603
|
+
var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function(it) {
|
|
604
|
+
var O, tag, result;
|
|
605
|
+
return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) === "Object" && isCallable$2(O.callee) ? "Arguments" : result;
|
|
606
|
+
};
|
|
607
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
608
|
+
var isCallable$1 = isCallable$a;
|
|
609
|
+
var store = sharedStore;
|
|
610
|
+
var functionToString = uncurryThis$3(Function.toString);
|
|
611
|
+
if (!isCallable$1(store.inspectSource)) {
|
|
612
|
+
store.inspectSource = function(it) {
|
|
613
|
+
return functionToString(it);
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
var inspectSource$1 = store.inspectSource;
|
|
617
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
618
|
+
var fails$3 = fails$b;
|
|
619
|
+
var isCallable = isCallable$a;
|
|
620
|
+
var classof$1 = classof$2;
|
|
621
|
+
var getBuiltIn = getBuiltIn$2;
|
|
622
|
+
var inspectSource = inspectSource$1;
|
|
623
|
+
var noop = function() {
|
|
624
|
+
};
|
|
625
|
+
var empty = [];
|
|
626
|
+
var construct = getBuiltIn("Reflect", "construct");
|
|
627
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
628
|
+
var exec$1 = uncurryThis$2(constructorRegExp.exec);
|
|
629
|
+
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
630
|
+
var isConstructorModern = function isConstructor(argument) {
|
|
631
|
+
if (!isCallable(argument))
|
|
632
|
+
return false;
|
|
633
|
+
try {
|
|
634
|
+
construct(noop, empty, argument);
|
|
635
|
+
return true;
|
|
636
|
+
} catch (error) {
|
|
637
|
+
return false;
|
|
638
|
+
}
|
|
639
|
+
};
|
|
640
|
+
var isConstructorLegacy = function isConstructor2(argument) {
|
|
641
|
+
if (!isCallable(argument))
|
|
642
|
+
return false;
|
|
643
|
+
switch (classof$1(argument)) {
|
|
644
|
+
case "AsyncFunction":
|
|
645
|
+
case "GeneratorFunction":
|
|
646
|
+
case "AsyncGeneratorFunction":
|
|
647
|
+
return false;
|
|
648
|
+
}
|
|
649
|
+
try {
|
|
650
|
+
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
|
|
651
|
+
} catch (error) {
|
|
652
|
+
return true;
|
|
653
|
+
}
|
|
654
|
+
};
|
|
655
|
+
isConstructorLegacy.sham = true;
|
|
656
|
+
var isConstructor$1 = !construct || fails$3(function() {
|
|
657
|
+
var called;
|
|
658
|
+
return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function() {
|
|
659
|
+
called = true;
|
|
660
|
+
}) || called;
|
|
661
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
|
662
|
+
var isArray$1 = isArray$2;
|
|
663
|
+
var isConstructor3 = isConstructor$1;
|
|
664
|
+
var isObject$1 = isObject$6;
|
|
665
|
+
var wellKnownSymbol$2 = wellKnownSymbol$6;
|
|
666
|
+
var SPECIES$1 = wellKnownSymbol$2("species");
|
|
667
|
+
var $Array = Array;
|
|
668
|
+
var arraySpeciesConstructor$1 = function(originalArray) {
|
|
669
|
+
var C;
|
|
670
|
+
if (isArray$1(originalArray)) {
|
|
671
|
+
C = originalArray.constructor;
|
|
672
|
+
if (isConstructor3(C) && (C === $Array || isArray$1(C.prototype)))
|
|
673
|
+
C = void 0;
|
|
674
|
+
else if (isObject$1(C)) {
|
|
675
|
+
C = C[SPECIES$1];
|
|
676
|
+
if (C === null)
|
|
677
|
+
C = void 0;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
return C === void 0 ? $Array : C;
|
|
681
|
+
};
|
|
682
|
+
var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
|
683
|
+
var arraySpeciesCreate$1 = function(originalArray, length) {
|
|
684
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
685
|
+
};
|
|
686
|
+
var fails$2 = fails$b;
|
|
687
|
+
var wellKnownSymbol$1 = wellKnownSymbol$6;
|
|
688
|
+
var V8_VERSION$1 = engineV8Version;
|
|
689
|
+
var SPECIES = wellKnownSymbol$1("species");
|
|
690
|
+
var arrayMethodHasSpeciesSupport$1 = function(METHOD_NAME) {
|
|
691
|
+
return V8_VERSION$1 >= 51 || !fails$2(function() {
|
|
692
|
+
var array = [];
|
|
693
|
+
var constructor = array.constructor = {};
|
|
694
|
+
constructor[SPECIES] = function() {
|
|
695
|
+
return {
|
|
696
|
+
foo: 1
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
return array[METHOD_NAME](Boolean).foo !== 1;
|
|
700
|
+
});
|
|
701
|
+
};
|
|
702
|
+
var $$1 = _export;
|
|
703
|
+
var fails$1 = fails$b;
|
|
704
|
+
var isArray2 = isArray$2;
|
|
705
|
+
var isObject = isObject$6;
|
|
706
|
+
var toObject = toObject$2;
|
|
707
|
+
var lengthOfArrayLike = lengthOfArrayLike$1;
|
|
708
|
+
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
709
|
+
var createProperty = createProperty$1;
|
|
710
|
+
var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
711
|
+
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
|
|
712
|
+
var wellKnownSymbol = wellKnownSymbol$6;
|
|
713
|
+
var V8_VERSION = engineV8Version;
|
|
714
|
+
var IS_CONCAT_SPREADABLE = wellKnownSymbol("isConcatSpreadable");
|
|
715
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$1(function() {
|
|
716
|
+
var array = [];
|
|
717
|
+
array[IS_CONCAT_SPREADABLE] = false;
|
|
718
|
+
return array.concat()[0] !== array;
|
|
719
|
+
});
|
|
720
|
+
var isConcatSpreadable = function(O) {
|
|
721
|
+
if (!isObject(O))
|
|
722
|
+
return false;
|
|
723
|
+
var spreadable = O[IS_CONCAT_SPREADABLE];
|
|
724
|
+
return spreadable !== void 0 ? !!spreadable : isArray2(O);
|
|
725
|
+
};
|
|
726
|
+
var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport("concat");
|
|
727
|
+
$$1({
|
|
728
|
+
target: "Array",
|
|
729
|
+
proto: true,
|
|
730
|
+
arity: 1,
|
|
731
|
+
forced: FORCED$1
|
|
732
|
+
}, {
|
|
733
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
734
|
+
concat: function concat(arg) {
|
|
735
|
+
var O = toObject(this);
|
|
736
|
+
var A = arraySpeciesCreate(O, 0);
|
|
737
|
+
var n = 0;
|
|
738
|
+
var i, k, length, len, E;
|
|
739
|
+
for (i = -1, length = arguments.length; i < length; i++) {
|
|
740
|
+
E = i === -1 ? O : arguments[i];
|
|
741
|
+
if (isConcatSpreadable(E)) {
|
|
742
|
+
len = lengthOfArrayLike(E);
|
|
743
|
+
doesNotExceedSafeInteger(n + len);
|
|
744
|
+
for (k = 0; k < len; k++, n++)
|
|
745
|
+
if (k in E)
|
|
746
|
+
createProperty(A, n, E[k]);
|
|
747
|
+
} else {
|
|
748
|
+
doesNotExceedSafeInteger(n + 1);
|
|
749
|
+
createProperty(A, n++, E);
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
A.length = n;
|
|
753
|
+
return A;
|
|
754
|
+
}
|
|
755
|
+
});
|
|
756
|
+
var global$2 = global$b;
|
|
757
|
+
var path$1 = path$4;
|
|
758
|
+
var getBuiltInPrototypeMethod$1 = function(CONSTRUCTOR, METHOD) {
|
|
759
|
+
var Namespace = path$1[CONSTRUCTOR + "Prototype"];
|
|
760
|
+
var pureMethod = Namespace && Namespace[METHOD];
|
|
761
|
+
if (pureMethod)
|
|
762
|
+
return pureMethod;
|
|
763
|
+
var NativeConstructor = global$2[CONSTRUCTOR];
|
|
764
|
+
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
|
|
765
|
+
return NativePrototype && NativePrototype[METHOD];
|
|
766
|
+
};
|
|
767
|
+
var getBuiltInPrototypeMethod = getBuiltInPrototypeMethod$1;
|
|
768
|
+
var concat$6 = getBuiltInPrototypeMethod("Array", "concat");
|
|
769
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
770
|
+
var method = concat$6;
|
|
771
|
+
var ArrayPrototype = Array.prototype;
|
|
772
|
+
var concat$5 = function(it) {
|
|
773
|
+
var own = it.concat;
|
|
774
|
+
return it === ArrayPrototype || isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.concat ? method : own;
|
|
775
|
+
};
|
|
776
|
+
var parent$5 = concat$5;
|
|
777
|
+
var concat$4 = parent$5;
|
|
778
|
+
var parent$4 = concat$4;
|
|
779
|
+
var concat$3 = parent$4;
|
|
780
|
+
var parent$3 = concat$3;
|
|
781
|
+
var concat$2 = parent$3;
|
|
782
|
+
var concat$1 = concat$2;
|
|
783
|
+
var concat2 = concat$1;
|
|
784
|
+
const _concatInstanceProperty = /* @__PURE__ */ getDefaultExportFromCjs(concat2);
|
|
785
|
+
var classof = classof$2;
|
|
786
|
+
var $String = String;
|
|
787
|
+
var toString$2 = function(argument) {
|
|
788
|
+
if (classof(argument) === "Symbol")
|
|
789
|
+
throw new TypeError("Cannot convert a Symbol value to a string");
|
|
790
|
+
return $String(argument);
|
|
791
|
+
};
|
|
792
|
+
var whitespaces$2 = " \n\v\f\r \u2028\u2029\uFEFF";
|
|
793
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
794
|
+
var requireObjectCoercible = requireObjectCoercible$3;
|
|
795
|
+
var toString$1 = toString$2;
|
|
796
|
+
var whitespaces$1 = whitespaces$2;
|
|
797
|
+
var replace = uncurryThis$1("".replace);
|
|
798
|
+
var ltrim = RegExp("^[" + whitespaces$1 + "]+");
|
|
799
|
+
var rtrim = RegExp("(^|[^" + whitespaces$1 + "])[" + whitespaces$1 + "]+$");
|
|
800
|
+
var createMethod = function(TYPE) {
|
|
801
|
+
return function($this) {
|
|
802
|
+
var string = toString$1(requireObjectCoercible($this));
|
|
803
|
+
if (TYPE & 1)
|
|
804
|
+
string = replace(string, ltrim, "");
|
|
805
|
+
if (TYPE & 2)
|
|
806
|
+
string = replace(string, rtrim, "$1");
|
|
807
|
+
return string;
|
|
808
|
+
};
|
|
809
|
+
};
|
|
810
|
+
var stringTrim = {
|
|
811
|
+
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
812
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
813
|
+
start: createMethod(1),
|
|
814
|
+
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
815
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
816
|
+
end: createMethod(2),
|
|
817
|
+
// `String.prototype.trim` method
|
|
818
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
819
|
+
trim: createMethod(3)
|
|
820
|
+
};
|
|
821
|
+
var global$1 = global$b;
|
|
822
|
+
var fails = fails$b;
|
|
823
|
+
var uncurryThis = functionUncurryThis;
|
|
824
|
+
var toString = toString$2;
|
|
825
|
+
var trim = stringTrim.trim;
|
|
826
|
+
var whitespaces = whitespaces$2;
|
|
827
|
+
var $parseInt$1 = global$1.parseInt;
|
|
828
|
+
var Symbol$1 = global$1.Symbol;
|
|
829
|
+
var ITERATOR = Symbol$1 && Symbol$1.iterator;
|
|
830
|
+
var hex = /^[+-]?0x/i;
|
|
831
|
+
var exec = uncurryThis(hex.exec);
|
|
832
|
+
var FORCED = $parseInt$1(whitespaces + "08") !== 8 || $parseInt$1(whitespaces + "0x16") !== 22 || ITERATOR && !fails(function() {
|
|
833
|
+
$parseInt$1(Object(ITERATOR));
|
|
834
|
+
});
|
|
835
|
+
var numberParseInt = FORCED ? function parseInt2(string, radix) {
|
|
836
|
+
var S = trim(toString(string));
|
|
837
|
+
return $parseInt$1(S, radix >>> 0 || (exec(hex, S) ? 16 : 10));
|
|
838
|
+
} : $parseInt$1;
|
|
839
|
+
var $ = _export;
|
|
840
|
+
var $parseInt = numberParseInt;
|
|
841
|
+
$({
|
|
842
|
+
global: true,
|
|
843
|
+
forced: parseInt !== $parseInt
|
|
844
|
+
}, {
|
|
845
|
+
parseInt: $parseInt
|
|
846
|
+
});
|
|
847
|
+
var path = path$4;
|
|
848
|
+
var _parseInt$6 = path.parseInt;
|
|
849
|
+
var parent$2 = _parseInt$6;
|
|
850
|
+
var _parseInt$5 = parent$2;
|
|
851
|
+
var parent$1 = _parseInt$5;
|
|
852
|
+
var _parseInt$4 = parent$1;
|
|
853
|
+
var parent = _parseInt$4;
|
|
854
|
+
var _parseInt$3 = parent;
|
|
855
|
+
var _parseInt$2 = _parseInt$3;
|
|
856
|
+
var _parseInt = _parseInt$2;
|
|
857
|
+
const _parseInt$1 = /* @__PURE__ */ getDefaultExportFromCjs(_parseInt);
|
|
858
|
+
var __default__ = defineComponent({
|
|
18
859
|
name: "nf-svg-icon",
|
|
19
860
|
props: {
|
|
20
861
|
prefix: {
|
|
21
862
|
type: String,
|
|
22
|
-
default: "icon"
|
|
863
|
+
"default": "icon"
|
|
23
864
|
},
|
|
24
865
|
name: {
|
|
25
866
|
type: String,
|
|
@@ -27,42 +868,43 @@ const __default__ = defineComponent({
|
|
|
27
868
|
},
|
|
28
869
|
color: {
|
|
29
870
|
type: String,
|
|
30
|
-
default: "#333"
|
|
871
|
+
"default": "#333"
|
|
31
872
|
},
|
|
32
873
|
bgColor: {
|
|
33
874
|
type: String,
|
|
34
|
-
default: "transparent"
|
|
875
|
+
"default": "transparent"
|
|
35
876
|
},
|
|
36
877
|
outerSize: {
|
|
37
878
|
type: String,
|
|
38
|
-
default: "35px"
|
|
879
|
+
"default": "35px"
|
|
39
880
|
},
|
|
40
881
|
innerSize: {
|
|
41
882
|
type: String,
|
|
42
|
-
default: "14px"
|
|
883
|
+
"default": "14px"
|
|
43
884
|
},
|
|
44
885
|
cursor: {
|
|
45
886
|
type: String,
|
|
46
|
-
default: "auto"
|
|
887
|
+
"default": "auto"
|
|
47
888
|
}
|
|
48
889
|
},
|
|
49
|
-
setup(props) {
|
|
50
|
-
|
|
51
|
-
|
|
890
|
+
setup: function setup(props) {
|
|
891
|
+
var symbolId = computed(function() {
|
|
892
|
+
var _context;
|
|
893
|
+
return _concatInstanceProperty(_context = "#".concat(props.prefix, "-")).call(_context, props.name);
|
|
52
894
|
});
|
|
53
|
-
|
|
54
|
-
return
|
|
895
|
+
var outerSizeNumber = computed(function() {
|
|
896
|
+
return _parseInt$1(props.outerSize);
|
|
55
897
|
});
|
|
56
|
-
|
|
57
|
-
return
|
|
898
|
+
var innerSizeNumber = computed(function() {
|
|
899
|
+
return _parseInt$1(props.innerSize);
|
|
58
900
|
});
|
|
59
|
-
|
|
60
|
-
return
|
|
901
|
+
var outerSizePx = computed(function() {
|
|
902
|
+
return "".concat(outerSizeNumber.value, "px");
|
|
61
903
|
});
|
|
62
|
-
|
|
904
|
+
var hoverBgColor = computed(function() {
|
|
63
905
|
return getDarkColor(props.bgColor, 0.03);
|
|
64
906
|
});
|
|
65
|
-
|
|
907
|
+
var hoverColor = computed(function() {
|
|
66
908
|
return getLightColor(props.color, 0.9);
|
|
67
909
|
});
|
|
68
910
|
return {
|
|
@@ -75,30 +917,33 @@ const __default__ = defineComponent({
|
|
|
75
917
|
};
|
|
76
918
|
}
|
|
77
919
|
});
|
|
78
|
-
|
|
79
|
-
useCssVars((_vm, _setup)
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
|
|
920
|
+
var __injectCSSVars__ = function __injectCSSVars__2() {
|
|
921
|
+
useCssVars(function(_vm, _setup) {
|
|
922
|
+
return {
|
|
923
|
+
"0a19ef0e": _vm.outerSizePx,
|
|
924
|
+
"2ffc404c": _vm.cursor,
|
|
925
|
+
"ffacf030": _vm.bgColor,
|
|
926
|
+
"e426e8a6": _vm.color,
|
|
927
|
+
"366d3490": _vm.hoverBgColor,
|
|
928
|
+
"65899d7d": _vm.hoverColor
|
|
929
|
+
};
|
|
930
|
+
});
|
|
931
|
+
};
|
|
932
|
+
var __setup__ = __default__.setup;
|
|
933
|
+
__default__.setup = __setup__ ? function(props, ctx) {
|
|
90
934
|
__injectCSSVars__();
|
|
91
935
|
return __setup__(props, ctx);
|
|
92
936
|
} : __injectCSSVars__;
|
|
93
937
|
const nfSvgIcon_vue_vue_type_style_index_0_scoped_1a2d52cd_lang = "";
|
|
94
938
|
var _sfc_render = function render() {
|
|
939
|
+
var _context, _context2, _context3;
|
|
95
940
|
var _vm = this, _c = _vm._self._c;
|
|
96
941
|
_vm._self._setupProxy;
|
|
97
942
|
return _c("svg", _vm._b({
|
|
98
943
|
staticClass: "nf-svg-icon",
|
|
99
944
|
attrs: {
|
|
100
945
|
"aria-hidden": "true",
|
|
101
|
-
"viewBox":
|
|
946
|
+
"viewBox": _concatInstanceProperty(_context = _concatInstanceProperty(_context2 = _concatInstanceProperty(_context3 = "-".concat(_vm.outerSizeNumber / 2 - _vm.innerSizeNumber / 2, " -")).call(_context3, _vm.outerSizeNumber / 2 - _vm.innerSizeNumber / 2, " ")).call(_context2, _vm.outerSizeNumber, " ")).call(_context, _vm.outerSizeNumber)
|
|
102
947
|
}
|
|
103
948
|
}, "svg", _vm.$attrs, false), [_c("use", {
|
|
104
949
|
attrs: {
|
|
@@ -112,7 +957,7 @@ var _sfc_render = function render() {
|
|
|
112
957
|
var _sfc_staticRenderFns = [];
|
|
113
958
|
var __component__ = /* @__PURE__ */ normalizeComponent(__default__, _sfc_render, _sfc_staticRenderFns, false, null, "1a2d52cd", null, null);
|
|
114
959
|
const NfSvgIcon = __component__.exports;
|
|
115
|
-
NfSvgIcon.install = (app)
|
|
960
|
+
NfSvgIcon.install = function(app) {
|
|
116
961
|
app.component("nf-svg-icon", NfSvgIcon);
|
|
117
962
|
};
|
|
118
963
|
export {
|