You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3691 lines
101 KiB
3691 lines
101 KiB
(function webpackUniversalModuleDefinition(root, factory) {
|
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
module.exports = factory(require("vue"), require("xe-utils"));
|
|
else if(typeof define === 'function' && define.amd)
|
|
define([, "xe-utils"], factory);
|
|
else if(typeof exports === 'object')
|
|
exports["VxeUI"] = factory(require("vue"), require("xe-utils"));
|
|
else
|
|
root["VxeUI"] = factory(root["Vue"], root["XEUtils"]);
|
|
})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__9274__, __WEBPACK_EXTERNAL_MODULE__8871__) {
|
|
return /******/ (function() { // webpackBootstrap
|
|
/******/ "use strict";
|
|
/******/ var __webpack_modules__ = ({
|
|
|
|
/***/ 9274:
|
|
/***/ (function(module) {
|
|
|
|
module.exports = __WEBPACK_EXTERNAL_MODULE__9274__;
|
|
|
|
/***/ }),
|
|
|
|
/***/ 8871:
|
|
/***/ (function(module) {
|
|
|
|
module.exports = __WEBPACK_EXTERNAL_MODULE__8871__;
|
|
|
|
/***/ }),
|
|
|
|
/***/ 9306:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var isCallable = __webpack_require__(4901);
|
|
var tryToString = __webpack_require__(6823);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
// `Assert: IsCallable(argument) is true`
|
|
module.exports = function (argument) {
|
|
if (isCallable(argument)) return argument;
|
|
throw new $TypeError(tryToString(argument) + ' is not a function');
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 679:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var isPrototypeOf = __webpack_require__(1625);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
module.exports = function (it, Prototype) {
|
|
if (isPrototypeOf(Prototype, it)) return it;
|
|
throw new $TypeError('Incorrect invocation');
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 8551:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var isObject = __webpack_require__(34);
|
|
|
|
var $String = String;
|
|
var $TypeError = TypeError;
|
|
|
|
// `Assert: Type(argument) is Object`
|
|
module.exports = function (argument) {
|
|
if (isObject(argument)) return argument;
|
|
throw new $TypeError($String(argument) + ' is not an object');
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 9617:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var toIndexedObject = __webpack_require__(5397);
|
|
var toAbsoluteIndex = __webpack_require__(5610);
|
|
var lengthOfArrayLike = __webpack_require__(6198);
|
|
|
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
var createMethod = function (IS_INCLUDES) {
|
|
return function ($this, el, fromIndex) {
|
|
var O = toIndexedObject($this);
|
|
var length = lengthOfArrayLike(O);
|
|
if (length === 0) return !IS_INCLUDES && -1;
|
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
var value;
|
|
// Array#includes uses SameValueZero equality algorithm
|
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
value = O[index++];
|
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
if (value !== value) return true;
|
|
// Array#indexOf ignores holes, Array#includes - not
|
|
} else for (;length > index; index++) {
|
|
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
} return !IS_INCLUDES && -1;
|
|
};
|
|
};
|
|
|
|
module.exports = {
|
|
// `Array.prototype.includes` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
includes: createMethod(true),
|
|
// `Array.prototype.indexOf` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
indexOf: createMethod(false)
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4527:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var DESCRIPTORS = __webpack_require__(3724);
|
|
var isArray = __webpack_require__(4376);
|
|
|
|
var $TypeError = TypeError;
|
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
|
|
// Safari < 13 does not throw an error in this case
|
|
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
|
|
// makes no sense without proper strict mode support
|
|
if (this !== undefined) return true;
|
|
try {
|
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
} catch (error) {
|
|
return error instanceof TypeError;
|
|
}
|
|
}();
|
|
|
|
module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
throw new $TypeError('Cannot set read only .length');
|
|
} return O.length = length;
|
|
} : function (O, length) {
|
|
return O.length = length;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2195:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var uncurryThis = __webpack_require__(9504);
|
|
|
|
var toString = uncurryThis({}.toString);
|
|
var stringSlice = uncurryThis(''.slice);
|
|
|
|
module.exports = function (it) {
|
|
return stringSlice(toString(it), 8, -1);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 6955:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var TO_STRING_TAG_SUPPORT = __webpack_require__(2140);
|
|
var isCallable = __webpack_require__(4901);
|
|
var classofRaw = __webpack_require__(2195);
|
|
var wellKnownSymbol = __webpack_require__(8227);
|
|
|
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
var $Object = Object;
|
|
|
|
// ES3 wrong here
|
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
|
|
|
|
// fallback for IE11 Script Access Denied error
|
|
var tryGet = function (it, key) {
|
|
try {
|
|
return it[key];
|
|
} catch (error) { /* empty */ }
|
|
};
|
|
|
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
var O, tag, result;
|
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
// @@toStringTag case
|
|
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
// builtinTag case
|
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
// ES3 arguments fallback
|
|
: (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 7740:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var hasOwn = __webpack_require__(9297);
|
|
var ownKeys = __webpack_require__(5031);
|
|
var getOwnPropertyDescriptorModule = __webpack_require__(7347);
|
|
var definePropertyModule = __webpack_require__(4913);
|
|
|
|
module.exports = function (target, source, exceptions) {
|
|
var keys = ownKeys(source);
|
|
var defineProperty = definePropertyModule.f;
|
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
for (var i = 0; i < keys.length; i++) {
|
|
var key = keys[i];
|
|
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
}
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2211:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var fails = __webpack_require__(9039);
|
|
|
|
module.exports = !fails(function () {
|
|
function F() { /* empty */ }
|
|
F.prototype.constructor = null;
|
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 6699:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var DESCRIPTORS = __webpack_require__(3724);
|
|
var definePropertyModule = __webpack_require__(4913);
|
|
var createPropertyDescriptor = __webpack_require__(6980);
|
|
|
|
module.exports = DESCRIPTORS ? function (object, key, value) {
|
|
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
|
} : function (object, key, value) {
|
|
object[key] = value;
|
|
return object;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 6980:
|
|
/***/ (function(module) {
|
|
|
|
|
|
module.exports = function (bitmap, value) {
|
|
return {
|
|
enumerable: !(bitmap & 1),
|
|
configurable: !(bitmap & 2),
|
|
writable: !(bitmap & 4),
|
|
value: value
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4659:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var DESCRIPTORS = __webpack_require__(3724);
|
|
var definePropertyModule = __webpack_require__(4913);
|
|
var createPropertyDescriptor = __webpack_require__(6980);
|
|
|
|
module.exports = function (object, key, value) {
|
|
if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
|
|
else object[key] = value;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2106:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var makeBuiltIn = __webpack_require__(283);
|
|
var defineProperty = __webpack_require__(4913);
|
|
|
|
module.exports = function (target, name, descriptor) {
|
|
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
|
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
|
return defineProperty.f(target, name, descriptor);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 6840:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var isCallable = __webpack_require__(4901);
|
|
var definePropertyModule = __webpack_require__(4913);
|
|
var makeBuiltIn = __webpack_require__(283);
|
|
var defineGlobalProperty = __webpack_require__(9433);
|
|
|
|
module.exports = function (O, key, value, options) {
|
|
if (!options) options = {};
|
|
var simple = options.enumerable;
|
|
var name = options.name !== undefined ? options.name : key;
|
|
if (isCallable(value)) makeBuiltIn(value, name, options);
|
|
if (options.global) {
|
|
if (simple) O[key] = value;
|
|
else defineGlobalProperty(key, value);
|
|
} else {
|
|
try {
|
|
if (!options.unsafe) delete O[key];
|
|
else if (O[key]) simple = true;
|
|
} catch (error) { /* empty */ }
|
|
if (simple) O[key] = value;
|
|
else definePropertyModule.f(O, key, {
|
|
value: value,
|
|
enumerable: false,
|
|
configurable: !options.nonConfigurable,
|
|
writable: !options.nonWritable
|
|
});
|
|
} return O;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 9433:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var globalThis = __webpack_require__(4576);
|
|
|
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
var defineProperty = Object.defineProperty;
|
|
|
|
module.exports = function (key, value) {
|
|
try {
|
|
defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
|
|
} catch (error) {
|
|
globalThis[key] = value;
|
|
} return value;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 3724:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var fails = __webpack_require__(9039);
|
|
|
|
// Detect IE8's incomplete defineProperty implementation
|
|
module.exports = !fails(function () {
|
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4055:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var globalThis = __webpack_require__(4576);
|
|
var isObject = __webpack_require__(34);
|
|
|
|
var document = globalThis.document;
|
|
// typeof document.createElement is 'object' in old IE
|
|
var EXISTS = isObject(document) && isObject(document.createElement);
|
|
|
|
module.exports = function (it) {
|
|
return EXISTS ? document.createElement(it) : {};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 6837:
|
|
/***/ (function(module) {
|
|
|
|
|
|
var $TypeError = TypeError;
|
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
|
|
module.exports = function (it) {
|
|
if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
|
|
return it;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 8727:
|
|
/***/ (function(module) {
|
|
|
|
|
|
// IE8- don't enum bug keys
|
|
module.exports = [
|
|
'constructor',
|
|
'hasOwnProperty',
|
|
'isPrototypeOf',
|
|
'propertyIsEnumerable',
|
|
'toLocaleString',
|
|
'toString',
|
|
'valueOf'
|
|
];
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2839:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var globalThis = __webpack_require__(4576);
|
|
|
|
var navigator = globalThis.navigator;
|
|
var userAgent = navigator && navigator.userAgent;
|
|
|
|
module.exports = userAgent ? String(userAgent) : '';
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 9519:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var globalThis = __webpack_require__(4576);
|
|
var userAgent = __webpack_require__(2839);
|
|
|
|
var process = globalThis.process;
|
|
var Deno = globalThis.Deno;
|
|
var versions = process && process.versions || Deno && Deno.version;
|
|
var v8 = versions && versions.v8;
|
|
var match, version;
|
|
|
|
if (v8) {
|
|
match = v8.split('.');
|
|
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
// but their correct versions are not interesting for us
|
|
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
}
|
|
|
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
if (!version && userAgent) {
|
|
match = userAgent.match(/Edge\/(\d+)/);
|
|
if (!match || match[1] >= 74) {
|
|
match = userAgent.match(/Chrome\/(\d+)/);
|
|
if (match) version = +match[1];
|
|
}
|
|
}
|
|
|
|
module.exports = version;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 6518:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var globalThis = __webpack_require__(4576);
|
|
var getOwnPropertyDescriptor = (__webpack_require__(7347).f);
|
|
var createNonEnumerableProperty = __webpack_require__(6699);
|
|
var defineBuiltIn = __webpack_require__(6840);
|
|
var defineGlobalProperty = __webpack_require__(9433);
|
|
var copyConstructorProperties = __webpack_require__(7740);
|
|
var isForced = __webpack_require__(2796);
|
|
|
|
/*
|
|
options.target - name of the target object
|
|
options.global - target is the global object
|
|
options.stat - export as static methods of target
|
|
options.proto - export as prototype methods of target
|
|
options.real - real prototype method for the `pure` version
|
|
options.forced - export even if the native feature is available
|
|
options.bind - bind methods to the target, required for the `pure` version
|
|
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
options.sham - add a flag to not completely full polyfills
|
|
options.enumerable - export as enumerable property
|
|
options.dontCallGetSet - prevent calling a getter on target
|
|
options.name - the .name of the function if it does not match the key
|
|
*/
|
|
module.exports = function (options, source) {
|
|
var TARGET = options.target;
|
|
var GLOBAL = options.global;
|
|
var STATIC = options.stat;
|
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
if (GLOBAL) {
|
|
target = globalThis;
|
|
} else if (STATIC) {
|
|
target = globalThis[TARGET] || defineGlobalProperty(TARGET, {});
|
|
} else {
|
|
target = globalThis[TARGET] && globalThis[TARGET].prototype;
|
|
}
|
|
if (target) for (key in source) {
|
|
sourceProperty = source[key];
|
|
if (options.dontCallGetSet) {
|
|
descriptor = getOwnPropertyDescriptor(target, key);
|
|
targetProperty = descriptor && descriptor.value;
|
|
} else targetProperty = target[key];
|
|
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
// contained in target
|
|
if (!FORCED && targetProperty !== undefined) {
|
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
copyConstructorProperties(sourceProperty, targetProperty);
|
|
}
|
|
// add a flag to not completely full polyfills
|
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
}
|
|
defineBuiltIn(target, key, sourceProperty, options);
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 9039:
|
|
/***/ (function(module) {
|
|
|
|
|
|
module.exports = function (exec) {
|
|
try {
|
|
return !!exec();
|
|
} catch (error) {
|
|
return true;
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 6080:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var uncurryThis = __webpack_require__(7476);
|
|
var aCallable = __webpack_require__(9306);
|
|
var NATIVE_BIND = __webpack_require__(616);
|
|
|
|
var bind = uncurryThis(uncurryThis.bind);
|
|
|
|
// optional / simple context binding
|
|
module.exports = function (fn, that) {
|
|
aCallable(fn);
|
|
return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {
|
|
return fn.apply(that, arguments);
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 616:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var fails = __webpack_require__(9039);
|
|
|
|
module.exports = !fails(function () {
|
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
var test = (function () { /* empty */ }).bind();
|
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 9565:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var NATIVE_BIND = __webpack_require__(616);
|
|
|
|
var call = Function.prototype.call;
|
|
|
|
module.exports = NATIVE_BIND ? call.bind(call) : function () {
|
|
return call.apply(call, arguments);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 350:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var DESCRIPTORS = __webpack_require__(3724);
|
|
var hasOwn = __webpack_require__(9297);
|
|
|
|
var FunctionPrototype = Function.prototype;
|
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
|
|
|
|
var EXISTS = hasOwn(FunctionPrototype, 'name');
|
|
// additional protection from minified / mangled / dropped function names
|
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
|
|
module.exports = {
|
|
EXISTS: EXISTS,
|
|
PROPER: PROPER,
|
|
CONFIGURABLE: CONFIGURABLE
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 7476:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var classofRaw = __webpack_require__(2195);
|
|
var uncurryThis = __webpack_require__(9504);
|
|
|
|
module.exports = function (fn) {
|
|
// Nashorn bug:
|
|
// https://github.com/zloirock/core-js/issues/1128
|
|
// https://github.com/zloirock/core-js/issues/1130
|
|
if (classofRaw(fn) === 'Function') return uncurryThis(fn);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 9504:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var NATIVE_BIND = __webpack_require__(616);
|
|
|
|
var FunctionPrototype = Function.prototype;
|
|
var call = FunctionPrototype.call;
|
|
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
|
|
|
|
module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
return function () {
|
|
return call.apply(fn, arguments);
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 7751:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var globalThis = __webpack_require__(4576);
|
|
var isCallable = __webpack_require__(4901);
|
|
|
|
var aFunction = function (argument) {
|
|
return isCallable(argument) ? argument : undefined;
|
|
};
|
|
|
|
module.exports = function (namespace, method) {
|
|
return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1767:
|
|
/***/ (function(module) {
|
|
|
|
|
|
// `GetIteratorDirect(obj)` abstract operation
|
|
// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
|
|
module.exports = function (obj) {
|
|
return {
|
|
iterator: obj,
|
|
next: obj.next,
|
|
done: false
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 851:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var classof = __webpack_require__(6955);
|
|
var getMethod = __webpack_require__(5966);
|
|
var isNullOrUndefined = __webpack_require__(4117);
|
|
var Iterators = __webpack_require__(6269);
|
|
var wellKnownSymbol = __webpack_require__(8227);
|
|
|
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
|
|
module.exports = function (it) {
|
|
if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
|
|
|| getMethod(it, '@@iterator')
|
|
|| Iterators[classof(it)];
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 81:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var call = __webpack_require__(9565);
|
|
var aCallable = __webpack_require__(9306);
|
|
var anObject = __webpack_require__(8551);
|
|
var tryToString = __webpack_require__(6823);
|
|
var getIteratorMethod = __webpack_require__(851);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
module.exports = function (argument, usingIterator) {
|
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
|
|
if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));
|
|
throw new $TypeError(tryToString(argument) + ' is not iterable');
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 5966:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var aCallable = __webpack_require__(9306);
|
|
var isNullOrUndefined = __webpack_require__(4117);
|
|
|
|
// `GetMethod` abstract operation
|
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
module.exports = function (V, P) {
|
|
var func = V[P];
|
|
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4576:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var check = function (it) {
|
|
return it && it.Math === Math && it;
|
|
};
|
|
|
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
module.exports =
|
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
check(typeof window == 'object' && window) ||
|
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
check(typeof self == 'object' && self) ||
|
|
check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) ||
|
|
check(typeof this == 'object' && this) ||
|
|
// eslint-disable-next-line no-new-func -- fallback
|
|
(function () { return this; })() || Function('return this')();
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 9297:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var uncurryThis = __webpack_require__(9504);
|
|
var toObject = __webpack_require__(8981);
|
|
|
|
var hasOwnProperty = uncurryThis({}.hasOwnProperty);
|
|
|
|
// `HasOwnProperty` abstract operation
|
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
module.exports = Object.hasOwn || function hasOwn(it, key) {
|
|
return hasOwnProperty(toObject(it), key);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 421:
|
|
/***/ (function(module) {
|
|
|
|
|
|
module.exports = {};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 397:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var getBuiltIn = __webpack_require__(7751);
|
|
|
|
module.exports = getBuiltIn('document', 'documentElement');
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 5917:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var DESCRIPTORS = __webpack_require__(3724);
|
|
var fails = __webpack_require__(9039);
|
|
var createElement = __webpack_require__(4055);
|
|
|
|
// Thanks to IE8 for its funny defineProperty
|
|
module.exports = !DESCRIPTORS && !fails(function () {
|
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
get: function () { return 7; }
|
|
}).a !== 7;
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 7055:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var uncurryThis = __webpack_require__(9504);
|
|
var fails = __webpack_require__(9039);
|
|
var classof = __webpack_require__(2195);
|
|
|
|
var $Object = Object;
|
|
var split = uncurryThis(''.split);
|
|
|
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
module.exports = fails(function () {
|
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
return !$Object('z').propertyIsEnumerable(0);
|
|
}) ? function (it) {
|
|
return classof(it) === 'String' ? split(it, '') : $Object(it);
|
|
} : $Object;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 3706:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var uncurryThis = __webpack_require__(9504);
|
|
var isCallable = __webpack_require__(4901);
|
|
var store = __webpack_require__(7629);
|
|
|
|
var functionToString = uncurryThis(Function.toString);
|
|
|
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
if (!isCallable(store.inspectSource)) {
|
|
store.inspectSource = function (it) {
|
|
return functionToString(it);
|
|
};
|
|
}
|
|
|
|
module.exports = store.inspectSource;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1181:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var NATIVE_WEAK_MAP = __webpack_require__(8622);
|
|
var globalThis = __webpack_require__(4576);
|
|
var isObject = __webpack_require__(34);
|
|
var createNonEnumerableProperty = __webpack_require__(6699);
|
|
var hasOwn = __webpack_require__(9297);
|
|
var shared = __webpack_require__(7629);
|
|
var sharedKey = __webpack_require__(6119);
|
|
var hiddenKeys = __webpack_require__(421);
|
|
|
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
var TypeError = globalThis.TypeError;
|
|
var WeakMap = globalThis.WeakMap;
|
|
var set, get, has;
|
|
|
|
var enforce = function (it) {
|
|
return has(it) ? get(it) : set(it, {});
|
|
};
|
|
|
|
var getterFor = function (TYPE) {
|
|
return function (it) {
|
|
var state;
|
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
|
|
} return state;
|
|
};
|
|
};
|
|
|
|
if (NATIVE_WEAK_MAP || shared.state) {
|
|
var store = shared.state || (shared.state = new WeakMap());
|
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
store.get = store.get;
|
|
store.has = store.has;
|
|
store.set = store.set;
|
|
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
set = function (it, metadata) {
|
|
if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
metadata.facade = it;
|
|
store.set(it, metadata);
|
|
return metadata;
|
|
};
|
|
get = function (it) {
|
|
return store.get(it) || {};
|
|
};
|
|
has = function (it) {
|
|
return store.has(it);
|
|
};
|
|
} else {
|
|
var STATE = sharedKey('state');
|
|
hiddenKeys[STATE] = true;
|
|
set = function (it, metadata) {
|
|
if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
metadata.facade = it;
|
|
createNonEnumerableProperty(it, STATE, metadata);
|
|
return metadata;
|
|
};
|
|
get = function (it) {
|
|
return hasOwn(it, STATE) ? it[STATE] : {};
|
|
};
|
|
has = function (it) {
|
|
return hasOwn(it, STATE);
|
|
};
|
|
}
|
|
|
|
module.exports = {
|
|
set: set,
|
|
get: get,
|
|
has: has,
|
|
enforce: enforce,
|
|
getterFor: getterFor
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4209:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var wellKnownSymbol = __webpack_require__(8227);
|
|
var Iterators = __webpack_require__(6269);
|
|
|
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
var ArrayPrototype = Array.prototype;
|
|
|
|
// check on default Array iterator
|
|
module.exports = function (it) {
|
|
return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4376:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var classof = __webpack_require__(2195);
|
|
|
|
// `IsArray` abstract operation
|
|
// https://tc39.es/ecma262/#sec-isarray
|
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
module.exports = Array.isArray || function isArray(argument) {
|
|
return classof(argument) === 'Array';
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4901:
|
|
/***/ (function(module) {
|
|
|
|
|
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
var documentAll = typeof document == 'object' && document.all;
|
|
|
|
// `IsCallable` abstract operation
|
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
module.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
return typeof argument == 'function' || argument === documentAll;
|
|
} : function (argument) {
|
|
return typeof argument == 'function';
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2796:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var fails = __webpack_require__(9039);
|
|
var isCallable = __webpack_require__(4901);
|
|
|
|
var replacement = /#|\.prototype\./;
|
|
|
|
var isForced = function (feature, detection) {
|
|
var value = data[normalize(feature)];
|
|
return value === POLYFILL ? true
|
|
: value === NATIVE ? false
|
|
: isCallable(detection) ? fails(detection)
|
|
: !!detection;
|
|
};
|
|
|
|
var normalize = isForced.normalize = function (string) {
|
|
return String(string).replace(replacement, '.').toLowerCase();
|
|
};
|
|
|
|
var data = isForced.data = {};
|
|
var NATIVE = isForced.NATIVE = 'N';
|
|
var POLYFILL = isForced.POLYFILL = 'P';
|
|
|
|
module.exports = isForced;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4117:
|
|
/***/ (function(module) {
|
|
|
|
|
|
// we can't use just `it == null` since of `document.all` special case
|
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
module.exports = function (it) {
|
|
return it === null || it === undefined;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 34:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var isCallable = __webpack_require__(4901);
|
|
|
|
module.exports = function (it) {
|
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 6395:
|
|
/***/ (function(module) {
|
|
|
|
|
|
module.exports = false;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 757:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var getBuiltIn = __webpack_require__(7751);
|
|
var isCallable = __webpack_require__(4901);
|
|
var isPrototypeOf = __webpack_require__(1625);
|
|
var USE_SYMBOL_AS_UID = __webpack_require__(7040);
|
|
|
|
var $Object = Object;
|
|
|
|
module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
|
return typeof it == 'symbol';
|
|
} : function (it) {
|
|
var $Symbol = getBuiltIn('Symbol');
|
|
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2652:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var bind = __webpack_require__(6080);
|
|
var call = __webpack_require__(9565);
|
|
var anObject = __webpack_require__(8551);
|
|
var tryToString = __webpack_require__(6823);
|
|
var isArrayIteratorMethod = __webpack_require__(4209);
|
|
var lengthOfArrayLike = __webpack_require__(6198);
|
|
var isPrototypeOf = __webpack_require__(1625);
|
|
var getIterator = __webpack_require__(81);
|
|
var getIteratorMethod = __webpack_require__(851);
|
|
var iteratorClose = __webpack_require__(9539);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
var Result = function (stopped, result) {
|
|
this.stopped = stopped;
|
|
this.result = result;
|
|
};
|
|
|
|
var ResultPrototype = Result.prototype;
|
|
|
|
module.exports = function (iterable, unboundFunction, options) {
|
|
var that = options && options.that;
|
|
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
var fn = bind(unboundFunction, that);
|
|
var iterator, iterFn, index, length, result, next, step;
|
|
|
|
var stop = function (condition) {
|
|
if (iterator) iteratorClose(iterator, 'normal', condition);
|
|
return new Result(true, condition);
|
|
};
|
|
|
|
var callFn = function (value) {
|
|
if (AS_ENTRIES) {
|
|
anObject(value);
|
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
};
|
|
|
|
if (IS_RECORD) {
|
|
iterator = iterable.iterator;
|
|
} else if (IS_ITERATOR) {
|
|
iterator = iterable;
|
|
} else {
|
|
iterFn = getIteratorMethod(iterable);
|
|
if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
|
|
// optimisation for array iterators
|
|
if (isArrayIteratorMethod(iterFn)) {
|
|
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
result = callFn(iterable[index]);
|
|
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
} return new Result(false);
|
|
}
|
|
iterator = getIterator(iterable, iterFn);
|
|
}
|
|
|
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
while (!(step = call(next, iterator)).done) {
|
|
try {
|
|
result = callFn(step.value);
|
|
} catch (error) {
|
|
iteratorClose(iterator, 'throw', error);
|
|
}
|
|
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
} return new Result(false);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 9539:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var call = __webpack_require__(9565);
|
|
var anObject = __webpack_require__(8551);
|
|
var getMethod = __webpack_require__(5966);
|
|
|
|
module.exports = function (iterator, kind, value) {
|
|
var innerResult, innerError;
|
|
anObject(iterator);
|
|
try {
|
|
innerResult = getMethod(iterator, 'return');
|
|
if (!innerResult) {
|
|
if (kind === 'throw') throw value;
|
|
return value;
|
|
}
|
|
innerResult = call(innerResult, iterator);
|
|
} catch (error) {
|
|
innerError = true;
|
|
innerResult = error;
|
|
}
|
|
if (kind === 'throw') throw value;
|
|
if (innerError) throw innerResult;
|
|
anObject(innerResult);
|
|
return value;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 7657:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var fails = __webpack_require__(9039);
|
|
var isCallable = __webpack_require__(4901);
|
|
var isObject = __webpack_require__(34);
|
|
var create = __webpack_require__(2360);
|
|
var getPrototypeOf = __webpack_require__(2787);
|
|
var defineBuiltIn = __webpack_require__(6840);
|
|
var wellKnownSymbol = __webpack_require__(8227);
|
|
var IS_PURE = __webpack_require__(6395);
|
|
|
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
var BUGGY_SAFARI_ITERATORS = false;
|
|
|
|
// `%IteratorPrototype%` object
|
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
|
|
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
if ([].keys) {
|
|
arrayIterator = [].keys();
|
|
// Safari 8 has buggy iterators w/o `next`
|
|
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
|
|
else {
|
|
PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
|
|
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
|
|
}
|
|
}
|
|
|
|
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {
|
|
var test = {};
|
|
// FF44- legacy iterators case
|
|
return IteratorPrototype[ITERATOR].call(test) !== test;
|
|
});
|
|
|
|
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
|
|
else if (IS_PURE) IteratorPrototype = create(IteratorPrototype);
|
|
|
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
if (!isCallable(IteratorPrototype[ITERATOR])) {
|
|
defineBuiltIn(IteratorPrototype, ITERATOR, function () {
|
|
return this;
|
|
});
|
|
}
|
|
|
|
module.exports = {
|
|
IteratorPrototype: IteratorPrototype,
|
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 6269:
|
|
/***/ (function(module) {
|
|
|
|
|
|
module.exports = {};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 6198:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var toLength = __webpack_require__(8014);
|
|
|
|
// `LengthOfArrayLike` abstract operation
|
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
module.exports = function (obj) {
|
|
return toLength(obj.length);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 283:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var uncurryThis = __webpack_require__(9504);
|
|
var fails = __webpack_require__(9039);
|
|
var isCallable = __webpack_require__(4901);
|
|
var hasOwn = __webpack_require__(9297);
|
|
var DESCRIPTORS = __webpack_require__(3724);
|
|
var CONFIGURABLE_FUNCTION_NAME = (__webpack_require__(350).CONFIGURABLE);
|
|
var inspectSource = __webpack_require__(3706);
|
|
var InternalStateModule = __webpack_require__(1181);
|
|
|
|
var enforceInternalState = InternalStateModule.enforce;
|
|
var getInternalState = InternalStateModule.get;
|
|
var $String = String;
|
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
var defineProperty = Object.defineProperty;
|
|
var stringSlice = uncurryThis(''.slice);
|
|
var replace = uncurryThis(''.replace);
|
|
var join = uncurryThis([].join);
|
|
|
|
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
|
|
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
});
|
|
|
|
var TEMPLATE = String(String).split('String');
|
|
|
|
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
}
|
|
if (options && options.getter) name = 'get ' + name;
|
|
if (options && options.setter) name = 'set ' + name;
|
|
if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
|
|
else value.name = name;
|
|
}
|
|
if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
|
|
defineProperty(value, 'length', { value: options.arity });
|
|
}
|
|
try {
|
|
if (options && hasOwn(options, 'constructor') && options.constructor) {
|
|
if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
|
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
} else if (value.prototype) value.prototype = undefined;
|
|
} catch (error) { /* empty */ }
|
|
var state = enforceInternalState(value);
|
|
if (!hasOwn(state, 'source')) {
|
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
} return value;
|
|
};
|
|
|
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
// eslint-disable-next-line no-extend-native -- required
|
|
Function.prototype.toString = makeBuiltIn(function toString() {
|
|
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
|
}, 'toString');
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 741:
|
|
/***/ (function(module) {
|
|
|
|
|
|
var ceil = Math.ceil;
|
|
var floor = Math.floor;
|
|
|
|
// `Math.trunc` method
|
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
module.exports = Math.trunc || function trunc(x) {
|
|
var n = +x;
|
|
return (n > 0 ? floor : ceil)(n);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2360:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
/* global ActiveXObject -- old IE, WSH */
|
|
var anObject = __webpack_require__(8551);
|
|
var definePropertiesModule = __webpack_require__(6801);
|
|
var enumBugKeys = __webpack_require__(8727);
|
|
var hiddenKeys = __webpack_require__(421);
|
|
var html = __webpack_require__(397);
|
|
var documentCreateElement = __webpack_require__(4055);
|
|
var sharedKey = __webpack_require__(6119);
|
|
|
|
var GT = '>';
|
|
var LT = '<';
|
|
var PROTOTYPE = 'prototype';
|
|
var SCRIPT = 'script';
|
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
|
|
var EmptyConstructor = function () { /* empty */ };
|
|
|
|
var scriptTag = function (content) {
|
|
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
};
|
|
|
|
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
activeXDocument.write(scriptTag(''));
|
|
activeXDocument.close();
|
|
var temp = activeXDocument.parentWindow.Object;
|
|
// eslint-disable-next-line no-useless-assignment -- avoid memory leak
|
|
activeXDocument = null;
|
|
return temp;
|
|
};
|
|
|
|
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
var NullProtoObjectViaIFrame = function () {
|
|
// Thrash, waste and sodomy: IE GC bug
|
|
var iframe = documentCreateElement('iframe');
|
|
var JS = 'java' + SCRIPT + ':';
|
|
var iframeDocument;
|
|
iframe.style.display = 'none';
|
|
html.appendChild(iframe);
|
|
// https://github.com/zloirock/core-js/issues/475
|
|
iframe.src = String(JS);
|
|
iframeDocument = iframe.contentWindow.document;
|
|
iframeDocument.open();
|
|
iframeDocument.write(scriptTag('document.F=Object'));
|
|
iframeDocument.close();
|
|
return iframeDocument.F;
|
|
};
|
|
|
|
// Check for document.domain and active x support
|
|
// No need to use active x approach when document.domain is not set
|
|
// see https://github.com/es-shims/es5-shim/issues/150
|
|
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
// avoid IE GC bug
|
|
var activeXDocument;
|
|
var NullProtoObject = function () {
|
|
try {
|
|
activeXDocument = new ActiveXObject('htmlfile');
|
|
} catch (error) { /* ignore */ }
|
|
NullProtoObject = typeof document != 'undefined'
|
|
? document.domain && activeXDocument
|
|
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
: NullProtoObjectViaIFrame()
|
|
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
var length = enumBugKeys.length;
|
|
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
return NullProtoObject();
|
|
};
|
|
|
|
hiddenKeys[IE_PROTO] = true;
|
|
|
|
// `Object.create` method
|
|
// https://tc39.es/ecma262/#sec-object.create
|
|
// eslint-disable-next-line es/no-object-create -- safe
|
|
module.exports = Object.create || function create(O, Properties) {
|
|
var result;
|
|
if (O !== null) {
|
|
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
result = new EmptyConstructor();
|
|
EmptyConstructor[PROTOTYPE] = null;
|
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
result[IE_PROTO] = O;
|
|
} else result = NullProtoObject();
|
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 6801:
|
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
|
|
|
|
var DESCRIPTORS = __webpack_require__(3724);
|
|
var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(8686);
|
|
var definePropertyModule = __webpack_require__(4913);
|
|
var anObject = __webpack_require__(8551);
|
|
var toIndexedObject = __webpack_require__(5397);
|
|
var objectKeys = __webpack_require__(1072);
|
|
|
|
// `Object.defineProperties` method
|
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
anObject(O);
|
|
var props = toIndexedObject(Properties);
|
|
var keys = objectKeys(Properties);
|
|
var length = keys.length;
|
|
var index = 0;
|
|
var key;
|
|
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
return O;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4913:
|
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
|
|
|
|
var DESCRIPTORS = __webpack_require__(3724);
|
|
var IE8_DOM_DEFINE = __webpack_require__(5917);
|
|
var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(8686);
|
|
var anObject = __webpack_require__(8551);
|
|
var toPropertyKey = __webpack_require__(6969);
|
|
|
|
var $TypeError = TypeError;
|
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
var $defineProperty = Object.defineProperty;
|
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
var ENUMERABLE = 'enumerable';
|
|
var CONFIGURABLE = 'configurable';
|
|
var WRITABLE = 'writable';
|
|
|
|
// `Object.defineProperty` method
|
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
|
|
anObject(O);
|
|
P = toPropertyKey(P);
|
|
anObject(Attributes);
|
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
if (current && current[WRITABLE]) {
|
|
O[P] = Attributes.value;
|
|
Attributes = {
|
|
configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
|
|
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
writable: false
|
|
};
|
|
}
|
|
} return $defineProperty(O, P, Attributes);
|
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
anObject(O);
|
|
P = toPropertyKey(P);
|
|
anObject(Attributes);
|
|
if (IE8_DOM_DEFINE) try {
|
|
return $defineProperty(O, P, Attributes);
|
|
} catch (error) { /* empty */ }
|
|
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
|
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
return O;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 7347:
|
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
|
|
|
|
var DESCRIPTORS = __webpack_require__(3724);
|
|
var call = __webpack_require__(9565);
|
|
var propertyIsEnumerableModule = __webpack_require__(8773);
|
|
var createPropertyDescriptor = __webpack_require__(6980);
|
|
var toIndexedObject = __webpack_require__(5397);
|
|
var toPropertyKey = __webpack_require__(6969);
|
|
var hasOwn = __webpack_require__(9297);
|
|
var IE8_DOM_DEFINE = __webpack_require__(5917);
|
|
|
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
|
|
// `Object.getOwnPropertyDescriptor` method
|
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
O = toIndexedObject(O);
|
|
P = toPropertyKey(P);
|
|
if (IE8_DOM_DEFINE) try {
|
|
return $getOwnPropertyDescriptor(O, P);
|
|
} catch (error) { /* empty */ }
|
|
if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 8480:
|
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
|
|
|
|
var internalObjectKeys = __webpack_require__(1828);
|
|
var enumBugKeys = __webpack_require__(8727);
|
|
|
|
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
|
|
// `Object.getOwnPropertyNames` method
|
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
return internalObjectKeys(O, hiddenKeys);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 3717:
|
|
/***/ (function(__unused_webpack_module, exports) {
|
|
|
|
|
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
exports.f = Object.getOwnPropertySymbols;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2787:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var hasOwn = __webpack_require__(9297);
|
|
var isCallable = __webpack_require__(4901);
|
|
var toObject = __webpack_require__(8981);
|
|
var sharedKey = __webpack_require__(6119);
|
|
var CORRECT_PROTOTYPE_GETTER = __webpack_require__(2211);
|
|
|
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
var $Object = Object;
|
|
var ObjectPrototype = $Object.prototype;
|
|
|
|
// `Object.getPrototypeOf` method
|
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
var object = toObject(O);
|
|
if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
|
|
var constructor = object.constructor;
|
|
if (isCallable(constructor) && object instanceof constructor) {
|
|
return constructor.prototype;
|
|
} return object instanceof $Object ? ObjectPrototype : null;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1625:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var uncurryThis = __webpack_require__(9504);
|
|
|
|
module.exports = uncurryThis({}.isPrototypeOf);
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1828:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var uncurryThis = __webpack_require__(9504);
|
|
var hasOwn = __webpack_require__(9297);
|
|
var toIndexedObject = __webpack_require__(5397);
|
|
var indexOf = (__webpack_require__(9617).indexOf);
|
|
var hiddenKeys = __webpack_require__(421);
|
|
|
|
var push = uncurryThis([].push);
|
|
|
|
module.exports = function (object, names) {
|
|
var O = toIndexedObject(object);
|
|
var i = 0;
|
|
var result = [];
|
|
var key;
|
|
for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
|
|
// Don't enum bug & hidden keys
|
|
while (names.length > i) if (hasOwn(O, key = names[i++])) {
|
|
~indexOf(result, key) || push(result, key);
|
|
}
|
|
return result;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1072:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var internalObjectKeys = __webpack_require__(1828);
|
|
var enumBugKeys = __webpack_require__(8727);
|
|
|
|
// `Object.keys` method
|
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
// eslint-disable-next-line es/no-object-keys -- safe
|
|
module.exports = Object.keys || function keys(O) {
|
|
return internalObjectKeys(O, enumBugKeys);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 8773:
|
|
/***/ (function(__unused_webpack_module, exports) {
|
|
|
|
|
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
|
|
// Nashorn ~ JDK8 bug
|
|
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
|
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
var descriptor = getOwnPropertyDescriptor(this, V);
|
|
return !!descriptor && descriptor.enumerable;
|
|
} : $propertyIsEnumerable;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4270:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var call = __webpack_require__(9565);
|
|
var isCallable = __webpack_require__(4901);
|
|
var isObject = __webpack_require__(34);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
// `OrdinaryToPrimitive` abstract operation
|
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
module.exports = function (input, pref) {
|
|
var fn, val;
|
|
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
|
|
if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
|
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
|
|
throw new $TypeError("Can't convert object to primitive value");
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 5031:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var getBuiltIn = __webpack_require__(7751);
|
|
var uncurryThis = __webpack_require__(9504);
|
|
var getOwnPropertyNamesModule = __webpack_require__(8480);
|
|
var getOwnPropertySymbolsModule = __webpack_require__(3717);
|
|
var anObject = __webpack_require__(8551);
|
|
|
|
var concat = uncurryThis([].concat);
|
|
|
|
// all object keys, includes non-enumerable and symbols
|
|
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 7750:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var isNullOrUndefined = __webpack_require__(4117);
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
// `RequireObjectCoercible` abstract operation
|
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
module.exports = function (it) {
|
|
if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
|
|
return it;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 6119:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var shared = __webpack_require__(5745);
|
|
var uid = __webpack_require__(3392);
|
|
|
|
var keys = shared('keys');
|
|
|
|
module.exports = function (key) {
|
|
return keys[key] || (keys[key] = uid(key));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 7629:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var IS_PURE = __webpack_require__(6395);
|
|
var globalThis = __webpack_require__(4576);
|
|
var defineGlobalProperty = __webpack_require__(9433);
|
|
|
|
var SHARED = '__core-js_shared__';
|
|
var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
|
|
|
|
(store.versions || (store.versions = [])).push({
|
|
version: '3.39.0',
|
|
mode: IS_PURE ? 'pure' : 'global',
|
|
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
license: 'https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE',
|
|
source: 'https://github.com/zloirock/core-js'
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 5745:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var store = __webpack_require__(7629);
|
|
|
|
module.exports = function (key, value) {
|
|
return store[key] || (store[key] = value || {});
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4495:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
var V8_VERSION = __webpack_require__(9519);
|
|
var fails = __webpack_require__(9039);
|
|
var globalThis = __webpack_require__(4576);
|
|
|
|
var $String = globalThis.String;
|
|
|
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
var symbol = Symbol('symbol detection');
|
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
// of course, fail.
|
|
return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 5610:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var toIntegerOrInfinity = __webpack_require__(1291);
|
|
|
|
var max = Math.max;
|
|
var min = Math.min;
|
|
|
|
// Helper for a popular repeating case of the spec:
|
|
// Let integer be ? ToInteger(index).
|
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
module.exports = function (index, length) {
|
|
var integer = toIntegerOrInfinity(index);
|
|
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 5397:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
// toObject with fallback for non-array-like ES3 strings
|
|
var IndexedObject = __webpack_require__(7055);
|
|
var requireObjectCoercible = __webpack_require__(7750);
|
|
|
|
module.exports = function (it) {
|
|
return IndexedObject(requireObjectCoercible(it));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1291:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var trunc = __webpack_require__(741);
|
|
|
|
// `ToIntegerOrInfinity` abstract operation
|
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
module.exports = function (argument) {
|
|
var number = +argument;
|
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
return number !== number || number === 0 ? 0 : trunc(number);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 8014:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var toIntegerOrInfinity = __webpack_require__(1291);
|
|
|
|
var min = Math.min;
|
|
|
|
// `ToLength` abstract operation
|
|
// https://tc39.es/ecma262/#sec-tolength
|
|
module.exports = function (argument) {
|
|
var len = toIntegerOrInfinity(argument);
|
|
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 8981:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var requireObjectCoercible = __webpack_require__(7750);
|
|
|
|
var $Object = Object;
|
|
|
|
// `ToObject` abstract operation
|
|
// https://tc39.es/ecma262/#sec-toobject
|
|
module.exports = function (argument) {
|
|
return $Object(requireObjectCoercible(argument));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2777:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var call = __webpack_require__(9565);
|
|
var isObject = __webpack_require__(34);
|
|
var isSymbol = __webpack_require__(757);
|
|
var getMethod = __webpack_require__(5966);
|
|
var ordinaryToPrimitive = __webpack_require__(4270);
|
|
var wellKnownSymbol = __webpack_require__(8227);
|
|
|
|
var $TypeError = TypeError;
|
|
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
|
|
// `ToPrimitive` abstract operation
|
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
module.exports = function (input, pref) {
|
|
if (!isObject(input) || isSymbol(input)) return input;
|
|
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
var result;
|
|
if (exoticToPrim) {
|
|
if (pref === undefined) pref = 'default';
|
|
result = call(exoticToPrim, input, pref);
|
|
if (!isObject(result) || isSymbol(result)) return result;
|
|
throw new $TypeError("Can't convert object to primitive value");
|
|
}
|
|
if (pref === undefined) pref = 'number';
|
|
return ordinaryToPrimitive(input, pref);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 6969:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var toPrimitive = __webpack_require__(2777);
|
|
var isSymbol = __webpack_require__(757);
|
|
|
|
// `ToPropertyKey` abstract operation
|
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
module.exports = function (argument) {
|
|
var key = toPrimitive(argument, 'string');
|
|
return isSymbol(key) ? key : key + '';
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2140:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var wellKnownSymbol = __webpack_require__(8227);
|
|
|
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
var test = {};
|
|
|
|
test[TO_STRING_TAG] = 'z';
|
|
|
|
module.exports = String(test) === '[object z]';
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 6823:
|
|
/***/ (function(module) {
|
|
|
|
|
|
var $String = String;
|
|
|
|
module.exports = function (argument) {
|
|
try {
|
|
return $String(argument);
|
|
} catch (error) {
|
|
return 'Object';
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 3392:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var uncurryThis = __webpack_require__(9504);
|
|
|
|
var id = 0;
|
|
var postfix = Math.random();
|
|
var toString = uncurryThis(1.0.toString);
|
|
|
|
module.exports = function (key) {
|
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 7040:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
var NATIVE_SYMBOL = __webpack_require__(4495);
|
|
|
|
module.exports = NATIVE_SYMBOL &&
|
|
!Symbol.sham &&
|
|
typeof Symbol.iterator == 'symbol';
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 8686:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var DESCRIPTORS = __webpack_require__(3724);
|
|
var fails = __webpack_require__(9039);
|
|
|
|
// V8 ~ Chrome 36-
|
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
module.exports = DESCRIPTORS && fails(function () {
|
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
value: 42,
|
|
writable: false
|
|
}).prototype !== 42;
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 8622:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var globalThis = __webpack_require__(4576);
|
|
var isCallable = __webpack_require__(4901);
|
|
|
|
var WeakMap = globalThis.WeakMap;
|
|
|
|
module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 8227:
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var globalThis = __webpack_require__(4576);
|
|
var shared = __webpack_require__(5745);
|
|
var hasOwn = __webpack_require__(9297);
|
|
var uid = __webpack_require__(3392);
|
|
var NATIVE_SYMBOL = __webpack_require__(4495);
|
|
var USE_SYMBOL_AS_UID = __webpack_require__(7040);
|
|
|
|
var Symbol = globalThis.Symbol;
|
|
var WellKnownSymbolsStore = shared('wks');
|
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
|
|
|
|
module.exports = function (name) {
|
|
if (!hasOwn(WellKnownSymbolsStore, name)) {
|
|
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
|
|
? Symbol[name]
|
|
: createWellKnownSymbol('Symbol.' + name);
|
|
} return WellKnownSymbolsStore[name];
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4114:
|
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var $ = __webpack_require__(6518);
|
|
var toObject = __webpack_require__(8981);
|
|
var lengthOfArrayLike = __webpack_require__(6198);
|
|
var setArrayLength = __webpack_require__(4527);
|
|
var doesNotExceedSafeInteger = __webpack_require__(6837);
|
|
var fails = __webpack_require__(9039);
|
|
|
|
var INCORRECT_TO_LENGTH = fails(function () {
|
|
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
});
|
|
|
|
// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
|
|
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
|
|
var properErrorOnNonWritableLength = function () {
|
|
try {
|
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
Object.defineProperty([], 'length', { writable: false }).push();
|
|
} catch (error) {
|
|
return error instanceof TypeError;
|
|
}
|
|
};
|
|
|
|
var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
|
|
|
// `Array.prototype.push` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
push: function push(item) {
|
|
var O = toObject(this);
|
|
var len = lengthOfArrayLike(O);
|
|
var argCount = arguments.length;
|
|
doesNotExceedSafeInteger(len + argCount);
|
|
for (var i = 0; i < argCount; i++) {
|
|
O[len] = arguments[i];
|
|
len++;
|
|
}
|
|
setArrayLength(O, len);
|
|
return len;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 8111:
|
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var $ = __webpack_require__(6518);
|
|
var globalThis = __webpack_require__(4576);
|
|
var anInstance = __webpack_require__(679);
|
|
var anObject = __webpack_require__(8551);
|
|
var isCallable = __webpack_require__(4901);
|
|
var getPrototypeOf = __webpack_require__(2787);
|
|
var defineBuiltInAccessor = __webpack_require__(2106);
|
|
var createProperty = __webpack_require__(4659);
|
|
var fails = __webpack_require__(9039);
|
|
var hasOwn = __webpack_require__(9297);
|
|
var wellKnownSymbol = __webpack_require__(8227);
|
|
var IteratorPrototype = (__webpack_require__(7657).IteratorPrototype);
|
|
var DESCRIPTORS = __webpack_require__(3724);
|
|
var IS_PURE = __webpack_require__(6395);
|
|
|
|
var CONSTRUCTOR = 'constructor';
|
|
var ITERATOR = 'Iterator';
|
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
|
|
var $TypeError = TypeError;
|
|
var NativeIterator = globalThis[ITERATOR];
|
|
|
|
// FF56- have non-standard global helper `Iterator`
|
|
var FORCED = IS_PURE
|
|
|| !isCallable(NativeIterator)
|
|
|| NativeIterator.prototype !== IteratorPrototype
|
|
// FF44- non-standard `Iterator` passes previous tests
|
|
|| !fails(function () { NativeIterator({}); });
|
|
|
|
var IteratorConstructor = function Iterator() {
|
|
anInstance(this, IteratorPrototype);
|
|
if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable');
|
|
};
|
|
|
|
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
if (DESCRIPTORS) {
|
|
defineBuiltInAccessor(IteratorPrototype, key, {
|
|
configurable: true,
|
|
get: function () {
|
|
return value;
|
|
},
|
|
set: function (replacement) {
|
|
anObject(this);
|
|
if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property");
|
|
if (hasOwn(this, key)) this[key] = replacement;
|
|
else createProperty(this, key, replacement);
|
|
}
|
|
});
|
|
} else IteratorPrototype[key] = value;
|
|
};
|
|
|
|
if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR);
|
|
|
|
if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) {
|
|
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
|
|
}
|
|
|
|
IteratorConstructor.prototype = IteratorPrototype;
|
|
|
|
// `Iterator` constructor
|
|
// https://tc39.es/ecma262/#sec-iterator
|
|
$({ global: true, constructor: true, forced: FORCED }, {
|
|
Iterator: IteratorConstructor
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 7588:
|
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var $ = __webpack_require__(6518);
|
|
var iterate = __webpack_require__(2652);
|
|
var aCallable = __webpack_require__(9306);
|
|
var anObject = __webpack_require__(8551);
|
|
var getIteratorDirect = __webpack_require__(1767);
|
|
|
|
// `Iterator.prototype.forEach` method
|
|
// https://tc39.es/ecma262/#sec-iterator.prototype.foreach
|
|
$({ target: 'Iterator', proto: true, real: true }, {
|
|
forEach: function forEach(fn) {
|
|
anObject(this);
|
|
aCallable(fn);
|
|
var record = getIteratorDirect(this);
|
|
var counter = 0;
|
|
iterate(record, function (value) {
|
|
fn(value, counter++);
|
|
}, { IS_RECORD: true });
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 3579:
|
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
var $ = __webpack_require__(6518);
|
|
var iterate = __webpack_require__(2652);
|
|
var aCallable = __webpack_require__(9306);
|
|
var anObject = __webpack_require__(8551);
|
|
var getIteratorDirect = __webpack_require__(1767);
|
|
|
|
// `Iterator.prototype.some` method
|
|
// https://tc39.es/ecma262/#sec-iterator.prototype.some
|
|
$({ target: 'Iterator', proto: true, real: true }, {
|
|
some: function some(predicate) {
|
|
anObject(this);
|
|
aCallable(predicate);
|
|
var record = getIteratorDirect(this);
|
|
var counter = 0;
|
|
return iterate(record, function (value, stop) {
|
|
if (predicate(value, counter++)) return stop();
|
|
}, { IS_RECORD: true, INTERRUPTED: true }).stopped;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 8992:
|
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
__webpack_require__(8111);
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 3949:
|
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
__webpack_require__(7588);
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 7550:
|
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
__webpack_require__(3579);
|
|
|
|
|
|
/***/ })
|
|
|
|
/******/ });
|
|
/************************************************************************/
|
|
/******/ // The module cache
|
|
/******/ var __webpack_module_cache__ = {};
|
|
/******/
|
|
/******/ // The require function
|
|
/******/ function __webpack_require__(moduleId) {
|
|
/******/ // Check if module is in cache
|
|
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
/******/ if (cachedModule !== undefined) {
|
|
/******/ return cachedModule.exports;
|
|
/******/ }
|
|
/******/ // Create a new module (and put it into the cache)
|
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
/******/ // no module.id needed
|
|
/******/ // no module.loaded needed
|
|
/******/ exports: {}
|
|
/******/ };
|
|
/******/
|
|
/******/ // Execute the module function
|
|
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
/******/
|
|
/******/ // Return the exports of the module
|
|
/******/ return module.exports;
|
|
/******/ }
|
|
/******/
|
|
/************************************************************************/
|
|
/******/ /* webpack/runtime/compat get default export */
|
|
/******/ !function() {
|
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
/******/ __webpack_require__.n = function(module) {
|
|
/******/ var getter = module && module.__esModule ?
|
|
/******/ function() { return module['default']; } :
|
|
/******/ function() { return module; };
|
|
/******/ __webpack_require__.d(getter, { a: getter });
|
|
/******/ return getter;
|
|
/******/ };
|
|
/******/ }();
|
|
/******/
|
|
/******/ /* webpack/runtime/define property getters */
|
|
/******/ !function() {
|
|
/******/ // define getter functions for harmony exports
|
|
/******/ __webpack_require__.d = function(exports, definition) {
|
|
/******/ for(var key in definition) {
|
|
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
/******/ }
|
|
/******/ }
|
|
/******/ };
|
|
/******/ }();
|
|
/******/
|
|
/******/ /* webpack/runtime/global */
|
|
/******/ !function() {
|
|
/******/ __webpack_require__.g = (function() {
|
|
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
/******/ try {
|
|
/******/ return this || new Function('return this')();
|
|
/******/ } catch (e) {
|
|
/******/ if (typeof window === 'object') return window;
|
|
/******/ }
|
|
/******/ })();
|
|
/******/ }();
|
|
/******/
|
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
/******/ !function() {
|
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
/******/ }();
|
|
/******/
|
|
/******/ /* webpack/runtime/make namespace object */
|
|
/******/ !function() {
|
|
/******/ // define __esModule on exports
|
|
/******/ __webpack_require__.r = function(exports) {
|
|
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
/******/ }
|
|
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
/******/ };
|
|
/******/ }();
|
|
/******/
|
|
/******/ /* webpack/runtime/publicPath */
|
|
/******/ !function() {
|
|
/******/ __webpack_require__.p = "";
|
|
/******/ }();
|
|
/******/
|
|
/************************************************************************/
|
|
var __webpack_exports__ = {};
|
|
// ESM COMPAT FLAG
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
GLOBAL_EVENT_KEYS: function() { return /* reexport */ GLOBAL_EVENT_KEYS; },
|
|
VxeCore: function() { return /* reexport */ VxeCore; },
|
|
VxeUI: function() { return /* reexport */ VxeUI; },
|
|
checkVersion: function() { return /* reexport */ checkVersion; },
|
|
clipboard: function() { return /* reexport */ clipboard; },
|
|
commands: function() { return /* reexport */ commands; },
|
|
component: function() { return /* reexport */ component; },
|
|
coreVersion: function() { return /* reexport */ coreVersion; },
|
|
createEvent: function() { return /* reexport */ createEvent; },
|
|
"default": function() { return /* binding */ entry_lib; },
|
|
formats: function() { return /* reexport */ formats; },
|
|
getComponent: function() { return /* reexport */ getComponent; },
|
|
getConfig: function() { return /* reexport */ getConfig; },
|
|
getI18n: function() { return /* reexport */ getI18n; },
|
|
getIcon: function() { return /* reexport */ getIcon; },
|
|
getLanguage: function() { return /* reexport */ getLanguage; },
|
|
getTheme: function() { return /* reexport */ getTheme; },
|
|
globalEvents: function() { return /* reexport */ globalEvents; },
|
|
globalMixins: function() { return /* reexport */ globalMixins; },
|
|
globalResize: function() { return /* reexport */ globalResize; },
|
|
globalStore: function() { return /* reexport */ globalStore; },
|
|
handleCheckInfo: function() { return /* reexport */ handleCheckInfo; },
|
|
hasComponent: function() { return /* reexport */ hasComponent; },
|
|
hasLanguage: function() { return /* reexport */ hasLanguage; },
|
|
interceptor: function() { return /* reexport */ interceptor; },
|
|
log: function() { return /* reexport */ log; },
|
|
menus: function() { return /* reexport */ menus; },
|
|
permission: function() { return /* reexport */ permission; },
|
|
permissionMixin: function() { return /* reexport */ permissionMixin; },
|
|
renderCustomIcon: function() { return /* reexport */ renderCustomIcon; },
|
|
renderEmptyElement: function() { return /* reexport */ renderEmptyElement; },
|
|
renderGlobalIcon: function() { return /* reexport */ renderGlobalIcon; },
|
|
renderer: function() { return /* reexport */ renderer; },
|
|
setConfig: function() { return /* reexport */ setConfig; },
|
|
setI18n: function() { return /* reexport */ setI18n; },
|
|
setIcon: function() { return /* reexport */ setIcon; },
|
|
setLanguage: function() { return /* reexport */ setLanguage; },
|
|
setTheme: function() { return /* reexport */ setTheme; },
|
|
sizeMixin: function() { return /* reexport */ sizeMixin; },
|
|
use: function() { return /* reexport */ use; },
|
|
validators: function() { return /* reexport */ validators; }
|
|
});
|
|
|
|
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
/* eslint-disable no-var */
|
|
// This file is imported into lib/wc client bundles.
|
|
|
|
if (typeof window !== 'undefined') {
|
|
var currentScript = window.document.currentScript
|
|
if (false) { var getCurrentScript; }
|
|
|
|
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
if (src) {
|
|
__webpack_require__.p = src[1] // eslint-disable-line
|
|
}
|
|
}
|
|
|
|
// Indicate to webpack that this file can be concatenated
|
|
/* harmony default export */ var setPublicPath = (null);
|
|
|
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
var es_array_push = __webpack_require__(4114);
|
|
;// ./packages/src/core.ts
|
|
const coreVersion = "3.2.10";
|
|
const VxeCore = {
|
|
coreVersion,
|
|
uiVersion: '',
|
|
tableVersion: '',
|
|
designVersion: '',
|
|
ganttVersion: ''
|
|
};
|
|
// EXTERNAL MODULE: external {"root":"XEUtils","commonjs":"xe-utils","commonjs2":"xe-utils","amd":"xe-utils"}
|
|
var external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_ = __webpack_require__(8871);
|
|
var external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default = /*#__PURE__*/__webpack_require__.n(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_);
|
|
;// ./node_modules/dom-zindex/es/index.esm.js
|
|
var winDom = null;
|
|
var bodyEl = null;
|
|
var storeEl = null;
|
|
var storeId = 'z-index-manage';
|
|
var styleEl = null;
|
|
var styleId = 'z-index-style';
|
|
var storeMainKey = 'm';
|
|
var storeSubKey = 's';
|
|
var storeData = {
|
|
m: 1000,
|
|
s: 1000
|
|
};
|
|
function getDocument() {
|
|
if (!winDom) {
|
|
if (typeof document !== 'undefined') {
|
|
winDom = document;
|
|
}
|
|
}
|
|
return winDom;
|
|
}
|
|
function getBody() {
|
|
if (winDom && !bodyEl) {
|
|
bodyEl = winDom.body || winDom.getElementsByTagName('body')[0];
|
|
}
|
|
return bodyEl;
|
|
}
|
|
function getDomMaxZIndex() {
|
|
var max = 0;
|
|
var dom = getDocument();
|
|
if (dom) {
|
|
var body = getBody();
|
|
if (body) {
|
|
var allElem = body.getElementsByTagName('*');
|
|
for (var i = 0; i < allElem.length; i++) {
|
|
var elem = allElem[i];
|
|
if (elem && elem.style && elem.nodeType === 1) {
|
|
var zIndex = elem.style.zIndex;
|
|
if (zIndex && /^\d+$/.test(zIndex)) {
|
|
max = Math.max(max, Number(zIndex));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return max;
|
|
}
|
|
function getStyle() {
|
|
if (!styleEl) {
|
|
var dom = getDocument();
|
|
if (dom) {
|
|
styleEl = dom.getElementById(styleId);
|
|
if (!styleEl) {
|
|
styleEl = dom.createElement('style');
|
|
styleEl.id = styleId;
|
|
dom.getElementsByTagName('head')[0].appendChild(styleEl);
|
|
}
|
|
}
|
|
}
|
|
return styleEl;
|
|
}
|
|
function updateVar() {
|
|
var styEl = getStyle();
|
|
if (styEl) {
|
|
var prefixes = '--dom-';
|
|
var propKey = '-z-index';
|
|
styEl.innerHTML = ':root{' + prefixes + 'main' + propKey + ':' + getCurrent() + ';' + prefixes + 'sub' + propKey + ':' + getSubCurrent() + '}';
|
|
}
|
|
}
|
|
function getStoreDom() {
|
|
if (!storeEl) {
|
|
var dom = getDocument();
|
|
if (dom) {
|
|
storeEl = dom.getElementById(storeId);
|
|
if (!storeEl) {
|
|
var body = getBody();
|
|
if (body) {
|
|
storeEl = dom.createElement('div');
|
|
storeEl.id = storeId;
|
|
storeEl.style.display = 'none';
|
|
body.appendChild(storeEl);
|
|
setCurrent(storeData.m);
|
|
setSubCurrent(storeData.s);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return storeEl;
|
|
}
|
|
function createSetHandle(key) {
|
|
return function (value) {
|
|
if (value) {
|
|
value = Number(value);
|
|
storeData[key] = value;
|
|
var el = getStoreDom();
|
|
if (el) {
|
|
if (el.dataset) {
|
|
el.dataset[key] = value + '';
|
|
} else {
|
|
el.setAttribute('data-' + key, value + '');
|
|
}
|
|
}
|
|
}
|
|
updateVar();
|
|
return storeData[key];
|
|
};
|
|
}
|
|
var setCurrent = createSetHandle(storeMainKey);
|
|
function createGetHandle(key, nextMethod) {
|
|
return function getCurrent(currZindex) {
|
|
var zIndex;
|
|
var el = getStoreDom();
|
|
if (el) {
|
|
var domVal = el.dataset ? el.dataset[key] : el.getAttribute('data-' + key);
|
|
if (domVal) {
|
|
zIndex = Number(domVal);
|
|
}
|
|
}
|
|
if (!zIndex) {
|
|
zIndex = storeData[key];
|
|
}
|
|
if (currZindex) {
|
|
if (Number(currZindex) < zIndex) {
|
|
return nextMethod();
|
|
}
|
|
return currZindex;
|
|
}
|
|
return zIndex;
|
|
};
|
|
}
|
|
var getCurrent = createGetHandle(storeMainKey, getNext);
|
|
function getNext() {
|
|
return setCurrent(getCurrent() + 1);
|
|
}
|
|
var setSubCurrent = createSetHandle(storeSubKey);
|
|
var _getSubCurrent = createGetHandle(storeSubKey, getSubNext);
|
|
function getSubCurrent() {
|
|
return getCurrent() + _getSubCurrent();
|
|
}
|
|
function getSubNext() {
|
|
setSubCurrent(_getSubCurrent() + 1);
|
|
return getSubCurrent();
|
|
}
|
|
/**
|
|
* Web common z-index style management
|
|
*/
|
|
var DomZIndex = {
|
|
setCurrent: setCurrent,
|
|
getCurrent: getCurrent,
|
|
getNext: getNext,
|
|
setSubCurrent: setSubCurrent,
|
|
getSubCurrent: getSubCurrent,
|
|
getSubNext: getSubNext,
|
|
getMax: getDomMaxZIndex
|
|
};
|
|
updateVar();
|
|
/* harmony default export */ var index_esm = (DomZIndex);
|
|
;// ./packages/src/configStore.ts
|
|
const globalConfigStore = {
|
|
size: '',
|
|
version: 1,
|
|
zIndex: 999,
|
|
resizeInterval: 500
|
|
};
|
|
;// ./packages/src/themeStore.ts
|
|
const themeConfigStore = {
|
|
theme: ''
|
|
};
|
|
;// ./packages/src/theme.ts
|
|
|
|
|
|
function setTheme(name) {
|
|
const theme = !name || name === 'default' ? 'light' : name;
|
|
themeConfigStore.theme = theme;
|
|
if (typeof document !== 'undefined') {
|
|
const documentElement = document.documentElement;
|
|
if (documentElement) {
|
|
documentElement.setAttribute('data-vxe-ui-theme', theme);
|
|
}
|
|
}
|
|
return VxeCore;
|
|
}
|
|
function getTheme() {
|
|
return themeConfigStore.theme;
|
|
}
|
|
;// ./packages/src/config.ts
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
* 全局参数设置
|
|
*/
|
|
function setConfig(options) {
|
|
if (options) {
|
|
if (options.zIndex) {
|
|
index_esm.setCurrent(options.zIndex);
|
|
}
|
|
if (options.theme) {
|
|
setTheme(options.theme);
|
|
}
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(globalConfigStore, options);
|
|
}
|
|
return VxeCore;
|
|
}
|
|
/**
|
|
* 获取全局参数
|
|
*/
|
|
function getConfig(key, defaultValue) {
|
|
return arguments.length ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(globalConfigStore, key, defaultValue) : globalConfigStore;
|
|
}
|
|
;// ./packages/src/dataStore.ts
|
|
const globalStore = {};
|
|
;// ./packages/src/iconStore.ts
|
|
const iconConfigStore = {};
|
|
;// ./packages/src/vm.ts
|
|
|
|
function getSlotVNs(vns) {
|
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(vns)) {
|
|
return vns;
|
|
}
|
|
return vns ? [vns] : [];
|
|
}
|
|
;// ./packages/src/icon.ts
|
|
|
|
|
|
|
|
|
|
function setIcon(options) {
|
|
if (options) {
|
|
Object.assign(iconConfigStore, options);
|
|
}
|
|
return VxeCore;
|
|
}
|
|
function getIcon(key) {
|
|
return arguments.length ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(iconConfigStore, key) : iconConfigStore;
|
|
}
|
|
function renderGlobalIcon(h, name) {
|
|
const icon = getIcon(name);
|
|
return renderCustomIcon(h, icon, name);
|
|
}
|
|
function renderCustomIcon(h, icon, name) {
|
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(icon)) {
|
|
return h('span', {}, getSlotVNs(icon({
|
|
name
|
|
})));
|
|
}
|
|
return h('i', {
|
|
class: icon
|
|
});
|
|
}
|
|
;// ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
function _typeof(o) {
|
|
"@babel/helpers - typeof";
|
|
|
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
return typeof o;
|
|
} : function (o) {
|
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
}, _typeof(o);
|
|
}
|
|
|
|
;// ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
|
|
function toPrimitive(t, r) {
|
|
if ("object" != _typeof(t) || !t) return t;
|
|
var e = t[Symbol.toPrimitive];
|
|
if (void 0 !== e) {
|
|
var i = e.call(t, r || "default");
|
|
if ("object" != _typeof(i)) return i;
|
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
}
|
|
return ("string" === r ? String : Number)(t);
|
|
}
|
|
|
|
;// ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
|
|
|
|
function toPropertyKey(t) {
|
|
var i = toPrimitive(t, "string");
|
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
}
|
|
|
|
;// ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
|
|
function _defineProperty(e, r, t) {
|
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
value: t,
|
|
enumerable: !0,
|
|
configurable: !0,
|
|
writable: !0
|
|
}) : e[r] = t, e;
|
|
}
|
|
|
|
;// ./packages/src/event.ts
|
|
|
|
|
|
|
|
const GLOBAL_EVENT_KEYS = {
|
|
F2: 'F2',
|
|
ESCAPE: 'Escape',
|
|
ENTER: 'Enter',
|
|
TAB: 'Tab',
|
|
DELETE: 'Delete',
|
|
BACKSPACE: 'Backspace',
|
|
SPACEBAR: ' ',
|
|
CONTEXT_MENU: 'ContextMenu',
|
|
ARROW_UP: 'ArrowUp',
|
|
ARROW_DOWN: 'ArrowDown',
|
|
ARROW_LEFT: 'ArrowLeft',
|
|
ARROW_RIGHT: 'ArrowRight',
|
|
PAGE_UP: 'PageUp',
|
|
PAGE_DOWN: 'PageDown',
|
|
Control: 'Control',
|
|
R: 'R',
|
|
P: 'P',
|
|
Z: 'Z',
|
|
X: 'X',
|
|
C: 'C',
|
|
V: 'V',
|
|
M: 'M'
|
|
};
|
|
const browse = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().browse();
|
|
const convertEventKeys = {
|
|
' ': 'Spacebar',
|
|
Apps: GLOBAL_EVENT_KEYS.CONTEXT_MENU,
|
|
Del: GLOBAL_EVENT_KEYS.DELETE,
|
|
Up: GLOBAL_EVENT_KEYS.ARROW_UP,
|
|
Down: GLOBAL_EVENT_KEYS.ARROW_DOWN,
|
|
Left: GLOBAL_EVENT_KEYS.ARROW_LEFT,
|
|
Right: GLOBAL_EVENT_KEYS.ARROW_RIGHT
|
|
};
|
|
// 监听全局事件
|
|
const wheelName = browse.firefox ? 'DOMMouseScroll' : 'mousewheel';
|
|
const eventStore = [];
|
|
function triggerEvent(evnt) {
|
|
const isWheel = evnt.type === wheelName;
|
|
eventStore.forEach(({
|
|
type,
|
|
cb
|
|
}) => {
|
|
// 如果被取消冒泡,不再执行
|
|
if (!evnt.cancelBubble) {
|
|
if (type === evnt.type || isWheel && type === 'mousewheel') {
|
|
cb(evnt);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
class VxeComponentEvent {
|
|
constructor(evnt, params1, params2) {
|
|
_defineProperty(this, "$event", void 0);
|
|
_defineProperty(this, "type", '');
|
|
_defineProperty(this, "key", '');
|
|
_defineProperty(this, "code", '');
|
|
this.$event = evnt;
|
|
if (evnt) {
|
|
if (evnt.type) {
|
|
this.type = evnt.type;
|
|
}
|
|
if (evnt.key) {
|
|
this.key = evnt.key;
|
|
}
|
|
if (evnt.code) {
|
|
this.code = evnt.code;
|
|
}
|
|
}
|
|
Object.assign(this, params1);
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().objectEach(params2, (val, key) => {
|
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(val)) {
|
|
let rest = null;
|
|
let isRun = false;
|
|
Object.defineProperty(this, key, {
|
|
get() {
|
|
if (!isRun) {
|
|
isRun = true;
|
|
rest = val();
|
|
}
|
|
return rest;
|
|
}
|
|
});
|
|
} else {
|
|
this[key] = val;
|
|
}
|
|
});
|
|
}
|
|
stopPropagation() {
|
|
const evnt = this.$event;
|
|
if (evnt) {
|
|
evnt.stopPropagation();
|
|
}
|
|
}
|
|
preventDefault() {
|
|
const evnt = this.$event;
|
|
if (evnt) {
|
|
evnt.preventDefault();
|
|
}
|
|
}
|
|
}
|
|
const createEvent = (evnt, params1, params2) => {
|
|
if (evnt instanceof VxeComponentEvent) {
|
|
evnt = evnt.$event;
|
|
}
|
|
return new VxeComponentEvent(evnt, params1, params2);
|
|
};
|
|
const globalEvents = {
|
|
on(comp, type, cb) {
|
|
eventStore.push({
|
|
comp,
|
|
type,
|
|
cb
|
|
});
|
|
},
|
|
off(comp, type) {
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(eventStore, item => item.comp === comp && item.type === type);
|
|
},
|
|
hasKey(evnt, targetKey) {
|
|
const {
|
|
key
|
|
} = evnt;
|
|
targetKey = targetKey.toLowerCase();
|
|
return key ? targetKey === key.toLowerCase() || !!(convertEventKeys[key] && convertEventKeys[key].toLowerCase() === targetKey) : false;
|
|
}
|
|
};
|
|
if (browse.isDoc) {
|
|
if (!browse.msie) {
|
|
window.addEventListener('copy', triggerEvent, false);
|
|
window.addEventListener('cut', triggerEvent, false);
|
|
window.addEventListener('paste', triggerEvent, false);
|
|
}
|
|
document.addEventListener('keydown', triggerEvent, false);
|
|
document.addEventListener('contextmenu', triggerEvent, false);
|
|
window.addEventListener('mousedown', triggerEvent, false);
|
|
window.addEventListener('blur', triggerEvent, false);
|
|
window.addEventListener('resize', triggerEvent, false);
|
|
window.addEventListener(wheelName, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().throttle(triggerEvent, 100, {
|
|
leading: true,
|
|
trailing: false
|
|
}), {
|
|
passive: true,
|
|
capture: false
|
|
});
|
|
}
|
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.constructor.js
|
|
var esnext_iterator_constructor = __webpack_require__(8992);
|
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.for-each.js
|
|
var esnext_iterator_for_each = __webpack_require__(3949);
|
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.some.js
|
|
var esnext_iterator_some = __webpack_require__(7550);
|
|
;// ./packages/src/resize.ts
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
* 监听 resize 事件
|
|
* 如果项目中已使用了 resize-observer-polyfill,那么只需要将方法定义全局,该组件就会自动使用
|
|
*/
|
|
let resizeTimeout;
|
|
/* eslint-disable no-use-before-define */
|
|
const resize_eventStore = [];
|
|
const defaultInterval = 500;
|
|
function eventHandle() {
|
|
if (resize_eventStore.length) {
|
|
resize_eventStore.forEach(item => {
|
|
item.tarList.forEach(observer => {
|
|
const {
|
|
target,
|
|
width,
|
|
heighe
|
|
} = observer;
|
|
const clientWidth = target.clientWidth;
|
|
const clientHeight = target.clientHeight;
|
|
const rWidth = clientWidth && width !== clientWidth;
|
|
const rHeight = clientHeight && heighe !== clientHeight;
|
|
if (rWidth || rHeight) {
|
|
observer.width = clientWidth;
|
|
observer.heighe = clientHeight;
|
|
setTimeout(item.callback);
|
|
}
|
|
});
|
|
});
|
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
eventListener();
|
|
}
|
|
}
|
|
function eventListener() {
|
|
clearTimeout(resizeTimeout);
|
|
resizeTimeout = setTimeout(eventHandle, globalConfigStore.resizeInterval || defaultInterval);
|
|
}
|
|
class XEResizeObserver {
|
|
constructor(callback) {
|
|
_defineProperty(this, "tarList", []);
|
|
_defineProperty(this, "callback", void 0);
|
|
this.callback = callback;
|
|
}
|
|
observe(target) {
|
|
if (target) {
|
|
const {
|
|
tarList
|
|
} = this;
|
|
if (!tarList.some(observer => observer.target === target)) {
|
|
tarList.push({
|
|
target,
|
|
width: target.clientWidth,
|
|
heighe: target.clientHeight
|
|
});
|
|
}
|
|
if (!resize_eventStore.length) {
|
|
eventListener();
|
|
}
|
|
if (!resize_eventStore.some(item => item === this)) {
|
|
resize_eventStore.push(this);
|
|
}
|
|
}
|
|
}
|
|
unobserve(target) {
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(resize_eventStore, item => item.tarList.some(observer => observer.target === target));
|
|
}
|
|
disconnect() {
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(resize_eventStore, item => item === this);
|
|
}
|
|
}
|
|
const globalResize = {
|
|
create(callback) {
|
|
if (window.ResizeObserver) {
|
|
return new window.ResizeObserver(callback);
|
|
}
|
|
return new XEResizeObserver(callback);
|
|
}
|
|
};
|
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
|
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
;// ./packages/src/i18nStore.ts
|
|
|
|
const I18nStore = external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
|
|
data() {
|
|
return {
|
|
language: '',
|
|
langMaps: {}
|
|
};
|
|
}
|
|
});
|
|
const i18nConfigStore = new I18nStore();
|
|
;// ./packages/src/i18n.ts
|
|
|
|
|
|
|
|
|
|
let checkInstall = false;
|
|
let cacheMaps = {};
|
|
function getI18n(key, args) {
|
|
const {
|
|
langMaps,
|
|
language
|
|
} = i18nConfigStore;
|
|
const {
|
|
i18n
|
|
} = globalConfigStore;
|
|
if (i18n) {
|
|
return `${i18n(key, args) || ''}`;
|
|
}
|
|
if (!checkInstall) {
|
|
if (!langMaps[language]) {
|
|
console.error(`[vxe core] 语言包未安装。Language not installed. https://${VxeCore.uiVersion ? 'vxeui.com' : 'vxetable.cn'}/#/start/i18n`);
|
|
}
|
|
checkInstall = true;
|
|
}
|
|
if (!args && cacheMaps[key]) {
|
|
return cacheMaps[key];
|
|
}
|
|
const i18nLabel = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFormatString(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(langMaps[language], key, key), args);
|
|
if (!args) {
|
|
cacheMaps[key] = i18nLabel;
|
|
}
|
|
return i18nLabel;
|
|
}
|
|
function setLanguage(locale) {
|
|
const {
|
|
language
|
|
} = i18nConfigStore;
|
|
const targetlang = locale || 'zh-CN';
|
|
if (language !== targetlang) {
|
|
i18nConfigStore.language = targetlang;
|
|
cacheMaps = {};
|
|
}
|
|
return VxeCore;
|
|
}
|
|
function setI18n(locale, data) {
|
|
const {
|
|
langMaps
|
|
} = i18nConfigStore;
|
|
i18nConfigStore.langMaps = Object.assign({}, langMaps, {
|
|
[locale]: Object.assign({}, data)
|
|
});
|
|
return VxeCore;
|
|
}
|
|
function hasLanguage(language) {
|
|
const {
|
|
langMaps
|
|
} = i18nConfigStore;
|
|
return !!langMaps[language];
|
|
}
|
|
function getLanguage() {
|
|
const {
|
|
language
|
|
} = i18nConfigStore;
|
|
return language;
|
|
}
|
|
;// ./packages/src/log.ts
|
|
|
|
function createLog(type, name) {
|
|
return function (key, args) {
|
|
const msg = `[vxe ${name || ''}] ${getI18n(key, args)}`;
|
|
console[type](msg);
|
|
return msg;
|
|
};
|
|
}
|
|
const version = "3.2.10";
|
|
const log = {
|
|
create: createLog,
|
|
warn: createLog('warn', `v${version}`),
|
|
err: createLog('error', `v${version}`)
|
|
};
|
|
;// ./packages/src/renderer.ts
|
|
|
|
|
|
/**
|
|
* 内置的组件渲染
|
|
*/
|
|
const renderMap = {};
|
|
/**
|
|
* 全局渲染器
|
|
*/
|
|
const renderer = {
|
|
mixin(opts) {
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(opts, (options, name) => renderer.add(name, options));
|
|
return renderer;
|
|
},
|
|
get(name) {
|
|
return renderMap[name] || null;
|
|
},
|
|
add(name, options) {
|
|
if (name && options) {
|
|
const renders = renderMap[name];
|
|
if (renders) {
|
|
// 检测是否覆盖
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(options, (val, key) => {
|
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(renders[key]) && renders[key] !== val) {
|
|
log.warn('vxe.error.coverProp', [`Renderer.${name}`, key]);
|
|
}
|
|
});
|
|
Object.assign(renders, options);
|
|
} else {
|
|
renderMap[name] = options;
|
|
}
|
|
}
|
|
return renderer;
|
|
},
|
|
forEach(callback) {
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().objectEach(renderMap, callback);
|
|
return renderer;
|
|
},
|
|
delete(name) {
|
|
delete renderMap[name];
|
|
return renderer;
|
|
}
|
|
};
|
|
;// ./packages/src/store.ts
|
|
|
|
|
|
|
|
/**
|
|
* 创建数据仓库
|
|
*/
|
|
class Store {
|
|
constructor() {
|
|
_defineProperty(this, "store", {});
|
|
}
|
|
mixin(options) {
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(options, (item, key) => {
|
|
this.add(key, item);
|
|
});
|
|
return this;
|
|
}
|
|
has(name) {
|
|
return !!this.get(name);
|
|
}
|
|
get(name) {
|
|
return this.store[name];
|
|
}
|
|
add(name, options) {
|
|
const conf = this.store[name];
|
|
// 检测是否覆盖
|
|
const confKeys = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(conf);
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(options, (item, key) => {
|
|
if (confKeys.includes(key)) {
|
|
log.warn('vxe.error.coverProp', [name, key]);
|
|
}
|
|
});
|
|
this.store[name] = conf ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(conf, options) : options;
|
|
return this;
|
|
}
|
|
delete(name) {
|
|
delete this.store[name];
|
|
}
|
|
forEach(callback) {
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().objectEach(this.store, callback);
|
|
}
|
|
}
|
|
/* harmony default export */ var store = (Store);
|
|
;// ./packages/src/validators.ts
|
|
|
|
const validators = new store();
|
|
Object.assign(validators, {
|
|
_name: 'Validators'
|
|
});
|
|
;// ./packages/src/menus.ts
|
|
|
|
|
|
|
|
class VXEMenusStore {
|
|
constructor() {
|
|
_defineProperty(this, "store", {});
|
|
}
|
|
mixin(options) {
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(options, (item, key) => {
|
|
this.add(key, item);
|
|
});
|
|
return this;
|
|
}
|
|
has(name) {
|
|
return !!this.get(name);
|
|
}
|
|
get(name) {
|
|
return this.store[name];
|
|
}
|
|
add(name, render) {
|
|
const conf = this.store[name];
|
|
// 兼容
|
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(render)) {
|
|
log.warn('vxe.error.delProp', ['menus -> callback', 'menuMethod']);
|
|
render = {
|
|
menuMethod: render
|
|
};
|
|
}
|
|
// 检测是否覆盖
|
|
const confKeys = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(conf);
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(render, (item, key) => {
|
|
if (confKeys.includes(key)) {
|
|
log.warn('vxe.error.coverProp', [name, key]);
|
|
}
|
|
});
|
|
this.store[name] = conf ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(conf, render) : render;
|
|
return this;
|
|
}
|
|
delete(name) {
|
|
delete this.store[name];
|
|
}
|
|
forEach(callback) {
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().objectEach(this.store, callback);
|
|
}
|
|
}
|
|
const menus = new VXEMenusStore();
|
|
Object.assign(menus, {
|
|
_name: 'Menus'
|
|
});
|
|
;// ./packages/src/formats.ts
|
|
|
|
|
|
|
|
class VXEFormatsStore {
|
|
constructor() {
|
|
_defineProperty(this, "store", {});
|
|
}
|
|
mixin(options) {
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(options, (item, key) => {
|
|
this.add(key, item);
|
|
});
|
|
return this;
|
|
}
|
|
has(name) {
|
|
return !!this.get(name);
|
|
}
|
|
get(name) {
|
|
return this.store[name];
|
|
}
|
|
add(name, render) {
|
|
const conf = this.store[name];
|
|
// 兼容
|
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(render)) {
|
|
log.warn('vxe.error.delProp', ['formats -> callback', 'cellFormatMethod']);
|
|
render = {
|
|
cellFormatMethod: render
|
|
};
|
|
}
|
|
// 检测是否覆盖
|
|
const confKeys = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(conf);
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(render, (item, key) => {
|
|
if (confKeys.includes(key)) {
|
|
log.warn('vxe.error.coverProp', [name, key]);
|
|
}
|
|
});
|
|
this.store[name] = conf ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(conf, render) : render;
|
|
return this;
|
|
}
|
|
delete(name) {
|
|
delete this.store[name];
|
|
}
|
|
forEach(callback) {
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().objectEach(this.store, callback);
|
|
}
|
|
}
|
|
const formats = new VXEFormatsStore();
|
|
Object.assign(formats, {
|
|
_name: 'Formats'
|
|
});
|
|
;// ./packages/src/commands.ts
|
|
|
|
|
|
|
|
class VXECommandsStore {
|
|
constructor() {
|
|
_defineProperty(this, "store", {});
|
|
}
|
|
mixin(options) {
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(options, (item, key) => {
|
|
this.add(key, item);
|
|
});
|
|
return this;
|
|
}
|
|
has(name) {
|
|
return !!this.get(name);
|
|
}
|
|
get(name) {
|
|
return this.store[name];
|
|
}
|
|
add(name, render) {
|
|
const conf = this.store[name];
|
|
// 兼容
|
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(render)) {
|
|
log.warn('vxe.error.delProp', ['commands -> callback', 'commandMethod']);
|
|
render = {
|
|
commandMethod: render
|
|
};
|
|
}
|
|
// 检测是否覆盖
|
|
const confKeys = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(conf);
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(render, (item, key) => {
|
|
if (confKeys.includes(key)) {
|
|
log.warn('vxe.error.coverProp', [name, key]);
|
|
}
|
|
});
|
|
this.store[name] = conf ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(conf, render) : render;
|
|
return this;
|
|
}
|
|
delete(name) {
|
|
delete this.store[name];
|
|
}
|
|
forEach(callback) {
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().objectEach(this.store, callback);
|
|
}
|
|
}
|
|
const commands = new VXECommandsStore();
|
|
Object.assign(commands, {
|
|
_name: 'Commands'
|
|
});
|
|
;// ./packages/src/interceptor.ts
|
|
|
|
|
|
|
|
const storeMap = {};
|
|
const interceptor = {
|
|
mixin(options) {
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(options, (render, type) => {
|
|
interceptor.add(type, render);
|
|
});
|
|
return interceptor;
|
|
},
|
|
get(type) {
|
|
return storeMap[type] || [];
|
|
},
|
|
add(type, render) {
|
|
// 兼容
|
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(render)) {
|
|
// log.warn('vxe.error.delProp', ['interceptor -> callback', 'tableInterceptorMethod'])
|
|
render = {
|
|
tableInterceptorMethod: render
|
|
};
|
|
}
|
|
const callback = render.tableInterceptorMethod;
|
|
if (callback) {
|
|
let eList = storeMap[type];
|
|
if (!eList) {
|
|
eList = storeMap[type] = [];
|
|
}
|
|
// 检测重复
|
|
if (eList.indexOf(callback) > -1) {
|
|
log.warn('vxe.error.coverProp', ['Interceptor', type]);
|
|
}
|
|
eList.push(callback);
|
|
}
|
|
return interceptor;
|
|
},
|
|
delete(type, render) {
|
|
const eList = storeMap[type];
|
|
if (eList) {
|
|
// 兼容
|
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(render)) {
|
|
render = {
|
|
tableInterceptorMethod: render
|
|
};
|
|
}
|
|
const callback = render ? render.tableInterceptorMethod : null;
|
|
if (callback) {
|
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(eList, fn => fn === callback);
|
|
} else {
|
|
delete storeMap[type];
|
|
}
|
|
}
|
|
}
|
|
};
|
|
;// ./packages/src/clipboard.ts
|
|
|
|
let copyElem;
|
|
const clipStore = {
|
|
text: '',
|
|
html: ''
|
|
};
|
|
function handleText(text) {
|
|
if (!copyElem) {
|
|
copyElem = document.createElement('textarea');
|
|
copyElem.id = '$VxeCopy';
|
|
const styles = copyElem.style;
|
|
styles.width = '48px';
|
|
styles.height = '24px';
|
|
styles.position = 'fixed';
|
|
styles.zIndex = '0';
|
|
styles.left = '-500px';
|
|
styles.top = '-500px';
|
|
document.body.appendChild(copyElem);
|
|
}
|
|
copyElem.value = text;
|
|
}
|
|
const clipboard = {
|
|
getStore() {
|
|
return clipStore;
|
|
},
|
|
setStore(data) {
|
|
Object.assign(clipStore, data || {});
|
|
},
|
|
/**
|
|
* 复制内容到剪贴板
|
|
*
|
|
* @param {String} content Text 内容
|
|
*/
|
|
copy(content) {
|
|
let result = false;
|
|
try {
|
|
const text = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(content);
|
|
handleText(text);
|
|
copyElem.select();
|
|
copyElem.setSelectionRange(0, copyElem.value.length);
|
|
result = document.execCommand('copy');
|
|
copyElem.blur();
|
|
clipStore.text = text;
|
|
clipStore.html = '';
|
|
} catch (e) {}
|
|
return result;
|
|
},
|
|
getText() {
|
|
return clipStore.text || '';
|
|
}
|
|
};
|
|
;// ./packages/src/permission.ts
|
|
|
|
|
|
function handleCheckInfo(permissionCode, permissionMethod) {
|
|
let checkVisible = true;
|
|
let checkDisabled = false;
|
|
const checkMethod = permissionMethod || globalConfigStore.permissionMethod;
|
|
if (permissionCode && checkMethod) {
|
|
checkVisible = false;
|
|
checkDisabled = true;
|
|
let vDone = false;
|
|
let dDone = false;
|
|
// 或 使用 | 隔开:任意一个为可视,则可视;任意一个禁用,则禁用
|
|
const codeList = String(permissionCode).split('|');
|
|
for (let i = 0; i < codeList.length; i++) {
|
|
const code = codeList[i];
|
|
let visible = true;
|
|
let disabled = false;
|
|
const rest = checkMethod({
|
|
code
|
|
});
|
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(rest)) {
|
|
visible = rest;
|
|
} else if (rest) {
|
|
visible = !!rest.visible;
|
|
disabled = !!rest.disabled;
|
|
}
|
|
if (!disabled && !dDone) {
|
|
dDone = true;
|
|
checkDisabled = disabled;
|
|
}
|
|
if (visible && !vDone) {
|
|
vDone = true;
|
|
checkVisible = visible;
|
|
}
|
|
if (vDone && dDone) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
const info = {
|
|
code: permissionCode,
|
|
visible: checkVisible,
|
|
disabled: checkDisabled
|
|
};
|
|
return info;
|
|
}
|
|
const permission = {
|
|
getCheckInfo(code) {
|
|
return handleCheckInfo(code);
|
|
},
|
|
checkVisible(code) {
|
|
const permissionInfo = handleCheckInfo(code);
|
|
return permissionInfo.visible;
|
|
},
|
|
checkDisable(code) {
|
|
const permissionInfo = handleCheckInfo(code);
|
|
return permissionInfo.disabled;
|
|
}
|
|
};
|
|
;// ./packages/src/mixins.ts
|
|
|
|
|
|
const sizeMixin = external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
|
|
inject: {
|
|
$xeSizeInfo: {
|
|
default: null
|
|
}
|
|
},
|
|
provide() {
|
|
return {
|
|
$xeSizeInfo: {
|
|
getSize: () => this.computeSize
|
|
}
|
|
};
|
|
},
|
|
computed: {
|
|
computeSize() {
|
|
const {
|
|
size
|
|
} = this;
|
|
const $xeSizeInfo = this.$xeSizeInfo;
|
|
return size || ($xeSizeInfo ? $xeSizeInfo.getSize() : null);
|
|
}
|
|
}
|
|
});
|
|
const permissionMixin = external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
|
|
computed: {
|
|
computePermissionInfo() {
|
|
return handleCheckInfo(this.permissionCode, this.permissionMethod);
|
|
}
|
|
}
|
|
});
|
|
const globalMixins = {
|
|
sizeMixin,
|
|
permissionMixin
|
|
};
|
|
;// ./packages/index.ts
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const installedPlugins = [];
|
|
function use(Plugin, options) {
|
|
if (Plugin && Plugin.install) {
|
|
if (installedPlugins.indexOf(Plugin) === -1) {
|
|
Plugin.install(VxeUI, options);
|
|
installedPlugins.push(Plugin);
|
|
}
|
|
}
|
|
return VxeUI;
|
|
}
|
|
const components = {};
|
|
function getComponent(name) {
|
|
return components[name] || null;
|
|
}
|
|
function component(comp) {
|
|
if (comp && comp.name) {
|
|
components[comp.name] = comp;
|
|
components[external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().kebabCase(comp.name)] = comp;
|
|
}
|
|
}
|
|
function hasComponent(name) {
|
|
return !!components[name];
|
|
}
|
|
function renderEmptyElement(_vm) {
|
|
const {
|
|
_e
|
|
} = _vm;
|
|
return _e();
|
|
}
|
|
function checkVersion(version, pVersion, sVersion) {
|
|
if (version) {
|
|
const vRest = `${version}`.match(/(\d+).(\d+).(\d+)/);
|
|
if (vRest) {
|
|
const pV = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(vRest[1]);
|
|
if (sVersion) {
|
|
const sV = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(vRest[2]);
|
|
return pV >= pVersion && sV >= sVersion;
|
|
}
|
|
return pV >= pVersion;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
const VxeUI = Object.assign(VxeCore, {
|
|
renderEmptyElement,
|
|
setTheme: setTheme,
|
|
getTheme: getTheme,
|
|
setConfig: setConfig,
|
|
getConfig: getConfig,
|
|
setIcon: setIcon,
|
|
getIcon: getIcon,
|
|
renderGlobalIcon: renderGlobalIcon,
|
|
renderCustomIcon: renderCustomIcon,
|
|
setLanguage: setLanguage,
|
|
hasLanguage: hasLanguage,
|
|
getLanguage: getLanguage,
|
|
setI18n: setI18n,
|
|
getI18n: getI18n,
|
|
globalEvents: globalEvents,
|
|
GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS,
|
|
createEvent: createEvent,
|
|
globalResize: globalResize,
|
|
renderer: renderer,
|
|
validators: validators,
|
|
menus: menus,
|
|
formats: formats,
|
|
commands: commands,
|
|
interceptor: interceptor,
|
|
clipboard: clipboard,
|
|
log: log,
|
|
permission: permission,
|
|
globalStore: globalStore,
|
|
component,
|
|
getComponent,
|
|
hasComponent,
|
|
globalMixins: globalMixins,
|
|
checkVersion,
|
|
use
|
|
});
|
|
setTheme();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ var packages_0 = (VxeUI);
|
|
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
|
|
|
|
/* harmony default export */ var entry_lib = (packages_0);
|
|
|
|
|
|
/******/ return __webpack_exports__;
|
|
/******/ })()
|
|
;
|
|
});
|