Server IP : 66.29.132.124 / Your IP : 3.147.49.19 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/public/dist/admin/js/ |
Upload File : |
(self["webpackChunk"] = self["webpackChunk"] || []).push([["/js/app"],{ /***/ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js": /*!*********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***! \*********************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _arrayLikeToArray) /* harmony export */ }); function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js": /*!*******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***! \*******************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _arrayWithHoles) /* harmony export */ }); function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js": /*!**********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js ***! \**********************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _arrayWithoutHoles) /* harmony export */ }); /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js"); function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__.default)(arr); } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js": /*!**************************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***! \**************************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _assertThisInitialized) /* harmony export */ }); function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js": /*!*********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js ***! \*********************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _asyncToGenerator) /* harmony export */ }); function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js": /*!*******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***! \*******************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _classCallCheck) /* harmony export */ }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/createClass.js": /*!****************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/createClass.js ***! \****************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _createClass) /* harmony export */ }); function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js": /*!*******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***! \*******************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _defineProperty) /* harmony export */ }); function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/get.js": /*!********************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/get.js ***! \********************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _get) /* harmony export */ }); /* harmony import */ var _superPropBase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./superPropBase.js */ "./node_modules/@babel/runtime/helpers/esm/superPropBase.js"); function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = (0,_superPropBase_js__WEBPACK_IMPORTED_MODULE_0__.default)(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js": /*!*******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***! \*******************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _getPrototypeOf) /* harmony export */ }); function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/inherits.js": /*!*************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/inherits.js ***! \*************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _inherits) /* harmony export */ }); /* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"); function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) (0,_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__.default)(subClass, superClass); } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js": /*!********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***! \********************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _iterableToArray) /* harmony export */ }); function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js": /*!*************************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js ***! \*************************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _iterableToArrayLimit) /* harmony export */ }); function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js": /*!********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***! \********************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _nonIterableRest) /* harmony export */ }); function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js": /*!**********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js ***! \**********************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _nonIterableSpread) /* harmony export */ }); function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js": /*!******************************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js ***! \******************************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _possibleConstructorReturn) /* harmony export */ }); /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); /* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized.js */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"); function _possibleConstructorReturn(self, call) { if (call && ((0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__.default)(call) === "object" || typeof call === "function")) { return call; } return (0,_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__.default)(self); } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js": /*!*******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***! \*******************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _setPrototypeOf) /* harmony export */ }); function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js": /*!******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js ***! \******************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _slicedToArray) /* harmony export */ }); /* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js"); /* harmony import */ var _iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArrayLimit.js */ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js"); /* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"); /* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js"); function _slicedToArray(arr, i) { return (0,_arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__.default)(arr) || (0,_iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__.default)(arr, i) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__.default)(arr, i) || (0,_nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__.default)(); } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/superPropBase.js": /*!******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/superPropBase.js ***! \******************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _superPropBase) /* harmony export */ }); /* harmony import */ var _getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"); function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = (0,_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__.default)(object); if (object === null) break; } return object; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js": /*!**********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js ***! \**********************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _toConsumableArray) /* harmony export */ }); /* harmony import */ var _arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithoutHoles.js */ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js"); /* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js"); /* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"); /* harmony import */ var _nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableSpread.js */ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js"); function _toConsumableArray(arr) { return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__.default)(arr) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__.default)(arr) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__.default)(arr) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__.default)(); } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/typeof.js": /*!***********************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/typeof.js ***! \***********************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _typeof) /* harmony export */ }); function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js": /*!*******************************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***! \*******************************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray) /* harmony export */ }); /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js"); function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__.default)(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__.default)(o, minLen); } /***/ }), /***/ "./node_modules/@babel/runtime/regenerator/index.js": /*!**********************************************************!*\ !*** ./node_modules/@babel/runtime/regenerator/index.js ***! \**********************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { module.exports = __webpack_require__(/*! regenerator-runtime */ "./node_modules/regenerator-runtime/runtime.js"); /***/ }), /***/ "./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/ScriptLoader.js": /*!******************************************************************************!*\ !*** ./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/ScriptLoader.js ***! \******************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "ScriptLoader": () => (/* binding */ ScriptLoader) /* harmony export */ }); /* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils */ "./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/Utils.js"); /** * Copyright (c) 2018-present, Ephox, Inc. * * This source code is licensed under the Apache 2 license found in the * LICENSE file in the root directory of this source tree. * */ var createState = function () { return { listeners: [], scriptId: (0,_Utils__WEBPACK_IMPORTED_MODULE_0__.uuid)('tiny-script'), scriptLoaded: false }; }; var CreateScriptLoader = function () { var state = createState(); var injectScriptTag = function (scriptId, doc, url, callback) { var scriptTag = doc.createElement('script'); scriptTag.referrerPolicy = 'origin'; scriptTag.type = 'application/javascript'; scriptTag.id = scriptId; scriptTag.src = url; var handler = function () { scriptTag.removeEventListener('load', handler); callback(); }; scriptTag.addEventListener('load', handler); if (doc.head) { doc.head.appendChild(scriptTag); } }; var load = function (doc, url, callback) { if (state.scriptLoaded) { callback(); } else { state.listeners.push(callback); if (!doc.getElementById(state.scriptId)) { injectScriptTag(state.scriptId, doc, url, function () { state.listeners.forEach(function (fn) { return fn(); }); state.scriptLoaded = true; }); } } }; // Only to be used by tests. var reinitialize = function () { state = createState(); }; return { load: load, reinitialize: reinitialize }; }; var ScriptLoader = CreateScriptLoader(); /***/ }), /***/ "./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/TinyMCE.js": /*!*************************************************************************!*\ !*** ./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/TinyMCE.js ***! \*************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "getTinymce": () => (/* binding */ getTinymce) /* harmony export */ }); /** * Copyright (c) 2018-present, Ephox, Inc. * * This source code is licensed under the Apache 2 license found in the * LICENSE file in the root directory of this source tree. * */ var getGlobal = function () { return (typeof window !== 'undefined' ? window : __webpack_require__.g); }; var getTinymce = function () { var global = getGlobal(); return global && global.tinymce ? global.tinymce : null; }; /***/ }), /***/ "./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/Utils.js": /*!***********************************************************************!*\ !*** ./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/Utils.js ***! \***********************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "bindHandlers": () => (/* binding */ bindHandlers), /* harmony export */ "bindModelHandlers": () => (/* binding */ bindModelHandlers), /* harmony export */ "initEditor": () => (/* binding */ initEditor), /* harmony export */ "isValidKey": () => (/* binding */ isValidKey), /* harmony export */ "uuid": () => (/* binding */ uuid), /* harmony export */ "isTextarea": () => (/* binding */ isTextarea), /* harmony export */ "mergePlugins": () => (/* binding */ mergePlugins), /* harmony export */ "isNullOrUndefined": () => (/* binding */ isNullOrUndefined) /* harmony export */ }); /** * Copyright (c) 2018-present, Ephox, Inc. * * This source code is licensed under the Apache 2 license found in the * LICENSE file in the root directory of this source tree. * */ var validEvents = [ 'onActivate', 'onAddUndo', 'onBeforeAddUndo', 'onBeforeExecCommand', 'onBeforeGetContent', 'onBeforeRenderUI', 'onBeforeSetContent', 'onBeforePaste', 'onBlur', 'onChange', 'onClearUndos', 'onClick', 'onContextMenu', 'onCopy', 'onCut', 'onDblclick', 'onDeactivate', 'onDirty', 'onDrag', 'onDragDrop', 'onDragEnd', 'onDragGesture', 'onDragOver', 'onDrop', 'onExecCommand', 'onFocus', 'onFocusIn', 'onFocusOut', 'onGetContent', 'onHide', 'onInit', 'onKeyDown', 'onKeyPress', 'onKeyUp', 'onLoadContent', 'onMouseDown', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseOut', 'onMouseOver', 'onMouseUp', 'onNodeChange', 'onObjectResizeStart', 'onObjectResized', 'onObjectSelected', 'onPaste', 'onPostProcess', 'onPostRender', 'onPreProcess', 'onProgressState', 'onRedo', 'onRemove', 'onReset', 'onSaveContent', 'onSelectionChange', 'onSetAttrib', 'onSetContent', 'onShow', 'onSubmit', 'onUndo', 'onVisualAid' ]; var isValidKey = function (key) { return validEvents.map(function (event) { return event.toLowerCase(); }).indexOf(key.toLowerCase()) !== -1; }; var bindHandlers = function (initEvent, listeners, editor) { Object.keys(listeners) .filter(isValidKey) .forEach(function (key) { var handler = listeners[key]; if (typeof handler === 'function') { if (key === 'onInit') { handler(initEvent, editor); } else { editor.on(key.substring(2), function (e) { return handler(e, editor); }); } } }); }; var bindModelHandlers = function (ctx, editor) { var modelEvents = ctx.$props.modelEvents ? ctx.$props.modelEvents : null; var normalizedEvents = Array.isArray(modelEvents) ? modelEvents.join(' ') : modelEvents; editor.on(normalizedEvents ? normalizedEvents : 'change input undo redo', function () { ctx.$emit('input', editor.getContent({ format: ctx.$props.outputFormat })); }); }; var initEditor = function (initEvent, ctx, editor) { var value = ctx.$props.value ? ctx.$props.value : ''; var initialValue = ctx.$props.initialValue ? ctx.$props.initialValue : ''; editor.setContent(value || (ctx.initialized ? ctx.cache : initialValue)); // Always bind the value listener in case users use :value instead of v-model ctx.$watch('value', function (val, prevVal) { if (editor && typeof val === 'string' && val !== prevVal && val !== editor.getContent({ format: ctx.$props.outputFormat })) { editor.setContent(val); } }); // checks if the v-model shorthand is used (which sets an v-on:input listener) and then binds either // specified the events or defaults to "change keyup" event and emits the editor content on that event if (ctx.$listeners.input) { bindModelHandlers(ctx, editor); } bindHandlers(initEvent, ctx.$listeners, editor); ctx.initialized = true; }; var unique = 0; var uuid = function (prefix) { var time = Date.now(); var random = Math.floor(Math.random() * 1000000000); unique++; return prefix + '_' + random + unique + String(time); }; var isTextarea = function (element) { return element !== null && element.tagName.toLowerCase() === 'textarea'; }; var normalizePluginArray = function (plugins) { if (typeof plugins === 'undefined' || plugins === '') { return []; } return Array.isArray(plugins) ? plugins : plugins.split(' '); }; var mergePlugins = function (initPlugins, inputPlugins) { return normalizePluginArray(initPlugins).concat(normalizePluginArray(inputPlugins)); }; var isNullOrUndefined = function (value) { return value === null || value === undefined; }; /***/ }), /***/ "./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/components/Editor.js": /*!***********************************************************************************!*\ !*** ./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/components/Editor.js ***! \***********************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "Editor": () => (/* binding */ Editor) /* harmony export */ }); /* harmony import */ var _ScriptLoader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ScriptLoader */ "./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/ScriptLoader.js"); /* harmony import */ var _TinyMCE__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../TinyMCE */ "./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/TinyMCE.js"); /* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Utils */ "./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/Utils.js"); /* harmony import */ var _EditorPropTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EditorPropTypes */ "./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/components/EditorPropTypes.js"); /** * Copyright (c) 2018-present, Ephox, Inc. * * This source code is licensed under the Apache 2 license found in the * LICENSE file in the root directory of this source tree. * */ var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var renderInline = function (h, id, tagName) { return h(tagName ? tagName : 'div', { attrs: { id: id } }); }; var renderIframe = function (h, id) { return h('textarea', { attrs: { id: id }, style: { visibility: 'hidden' } }); }; var initialise = function (ctx) { return function () { var finalInit = __assign(__assign({}, ctx.$props.init), { readonly: ctx.$props.disabled, selector: "#" + ctx.elementId, plugins: (0,_Utils__WEBPACK_IMPORTED_MODULE_2__.mergePlugins)(ctx.$props.init && ctx.$props.init.plugins, ctx.$props.plugins), toolbar: ctx.$props.toolbar || (ctx.$props.init && ctx.$props.init.toolbar), inline: ctx.inlineEditor, setup: function (editor) { ctx.editor = editor; editor.on('init', function (e) { return (0,_Utils__WEBPACK_IMPORTED_MODULE_2__.initEditor)(e, ctx, editor); }); if (ctx.$props.init && typeof ctx.$props.init.setup === 'function') { ctx.$props.init.setup(editor); } } }); if ((0,_Utils__WEBPACK_IMPORTED_MODULE_2__.isTextarea)(ctx.element)) { ctx.element.style.visibility = ''; ctx.element.style.display = ''; } (0,_TinyMCE__WEBPACK_IMPORTED_MODULE_1__.getTinymce)().init(finalInit); }; }; var Editor = { props: _EditorPropTypes__WEBPACK_IMPORTED_MODULE_3__.editorProps, created: function () { this.elementId = this.$props.id || (0,_Utils__WEBPACK_IMPORTED_MODULE_2__.uuid)('tiny-vue'); this.inlineEditor = (this.$props.init && this.$props.init.inline) || this.$props.inline; this.initialized = false; }, watch: { disabled: function () { this.editor.setMode(this.disabled ? 'readonly' : 'design'); } }, mounted: function () { this.element = this.$el; if ((0,_TinyMCE__WEBPACK_IMPORTED_MODULE_1__.getTinymce)() !== null) { initialise(this)(); } else if (this.element && this.element.ownerDocument) { var channel = this.$props.cloudChannel ? this.$props.cloudChannel : '5'; var apiKey = this.$props.apiKey ? this.$props.apiKey : 'no-api-key'; var scriptSrc = (0,_Utils__WEBPACK_IMPORTED_MODULE_2__.isNullOrUndefined)(this.$props.tinymceScriptSrc) ? "https://cdn.tiny.cloud/1/" + apiKey + "/tinymce/" + channel + "/tinymce.min.js" : this.$props.tinymceScriptSrc; _ScriptLoader__WEBPACK_IMPORTED_MODULE_0__.ScriptLoader.load(this.element.ownerDocument, scriptSrc, initialise(this)); } }, beforeDestroy: function () { if ((0,_TinyMCE__WEBPACK_IMPORTED_MODULE_1__.getTinymce)() !== null) { (0,_TinyMCE__WEBPACK_IMPORTED_MODULE_1__.getTinymce)().remove(this.editor); } }, deactivated: function () { var _a; if (!this.inlineEditor) { this.cache = this.editor.getContent(); (_a = (0,_TinyMCE__WEBPACK_IMPORTED_MODULE_1__.getTinymce)()) === null || _a === void 0 ? void 0 : _a.remove(this.editor); } }, activated: function () { if (!this.inlineEditor && this.initialized) { initialise(this)(); } }, render: function (h) { return this.inlineEditor ? renderInline(h, this.elementId, this.$props.tagName) : renderIframe(h, this.elementId); } }; /***/ }), /***/ "./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/components/EditorPropTypes.js": /*!********************************************************************************************!*\ !*** ./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/components/EditorPropTypes.js ***! \********************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "editorProps": () => (/* binding */ editorProps) /* harmony export */ }); /** * Copyright (c) 2018-present, Ephox, Inc. * * This source code is licensed under the Apache 2 license found in the * LICENSE file in the root directory of this source tree. * */ var editorProps = { apiKey: String, cloudChannel: String, id: String, init: Object, initialValue: String, inline: Boolean, modelEvents: [String, Array], plugins: [String, Array], tagName: String, toolbar: [String, Array], value: String, disabled: Boolean, tinymceScriptSrc: String, outputFormat: { type: String, validator: function (prop) { return prop === 'html' || prop === 'text'; } }, }; /***/ }), /***/ "./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/index.js": /*!***********************************************************************!*\ !*** ./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/index.js ***! \***********************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _components_Editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Editor */ "./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/components/Editor.js"); /** * Copyright (c) 2018-present, Ephox, Inc. * * This source code is licensed under the Apache 2 license found in the * LICENSE file in the root directory of this source tree. * */ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_components_Editor__WEBPACK_IMPORTED_MODULE_0__.Editor); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/column.vue?vue&type=script&lang=js&": /*!********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/column.vue?vue&type=script&lang=js& ***! \********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return {}; }, props: { item: {} }, methods: { openEdit: function openEdit() {} } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/regular.vue?vue&type=script&lang=js&": /*!*********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/regular.vue?vue&type=script&lang=js& ***! \*********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { i18n: template_i18n }; }, props: { item: {}, block: {}, index: 0 }, methods: { openEdit: function openEdit() { editBlockScreen.openEdit(this.item, this.block); }, deleteBlock: function deleteBlock() { var c = confirm(this.i18n.delete_confirm); if (!c) return; this.$emit('delete', this.index); } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/row.vue?vue&type=script&lang=js&": /*!*****************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/row.vue?vue&type=script&lang=js& ***! \*****************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return {}; }, props: { item: {} } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-editor.vue?vue&type=script&lang=js&": /*!**********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-editor.vue?vue&type=script&lang=js& ***! \**********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var vue_form_generator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-form-generator */ "./node_modules/vue-form-generator/dist/vfg.js"); /* harmony import */ var vue_form_generator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_form_generator__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _tinymce_tinymce_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tinymce/tinymce-vue */ "./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/index.js"); // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ mixins: [vue_form_generator__WEBPACK_IMPORTED_MODULE_0__.abstractField], data: function data() { return { id: '', init: { plugins: 'searchreplace autolink fullscreen image link media codesample table charmap hr toc advlist lists wordcount textpattern help code', toolbar: 'formatselect | bold italic strikethrough forecolor backcolor permanentpen formatpainter | link image media | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | pagebreak codesample code | removeformat', image_advtab: false, image_caption: false, height: 400, file_picker_callback: function file_picker_callback(callback, value, meta) { /* Provide file and text for the link dialog */ if (meta.filetype === 'file') { uploaderModal.show({ multiple: false, file_type: 'video', onSelect: function onSelect(files) { if (files.length) callback(bookingCore.url + '/media/preview/' + files[0].id); } }); } /* Provide image and alt text for the image dialog */ if (meta.filetype === 'image') { uploaderModal.show({ multiple: false, file_type: 'image', onSelect: function onSelect(files) { if (files.length) callback(files[0].thumb_size); } }); } /* Provide alternative source and posted for the media dialog */ if (meta.filetype === 'media') { uploaderModal.show({ multiple: false, file_type: 'video', onSelect: function onSelect(files) { if (files.length) callback(bookingCore.url + '/media/preview/' + files[0].id); } }); } } } }; }, components: { 'tinymce-editor': _tinymce_tinymce_vue__WEBPACK_IMPORTED_MODULE_1__.default }, methods: { makeid: function makeid(length) { var result = ''; var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; var charactersLength = characters.length; for (var i = 0; i < length; i++) { result += characters.charAt(Math.floor(Math.random() * charactersLength)); } return result; } }, created: function created() {} }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-listItem.vue?vue&type=script&lang=js&": /*!************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-listItem.vue?vue&type=script&lang=js& ***! \************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var vue_form_generator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-form-generator */ "./node_modules/vue-form-generator/dist/vfg.js"); /* harmony import */ var vue_form_generator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_form_generator__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var vuedraggable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuedraggable */ "./node_modules/vuedraggable/dist/vuedraggable.umd.js"); /* harmony import */ var vuedraggable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vuedraggable__WEBPACK_IMPORTED_MODULE_1__); function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ mixins: [vue_form_generator__WEBPACK_IMPORTED_MODULE_0__.abstractField], data: function data() { return { options: [], fakeModel: { _active: false }, template_i18n: template_i18n }; }, computed: { title_field: function title_field() { if (typeof this.schema.title_field == 'undefined') return false; return this.schema.title_field; } }, created: function created() { if (_typeof(this.value) !== 'object' || this.value.constructor !== Array) { this.value = []; } for (var i = 0; i < this.schema.settings.length; i++) { this.schema.settings[i].model = this.schema.settings[i].id; this.fakeModel[this.schema.settings[i].id] = null; // this.fakeModel['_index'] = i++; } // this.value.push(Object.assign({},this.fakeModel)); }, watch: { options: function options(_options) {} }, destroyed: function destroyed() {}, methods: { addNew: function addNew() { // this.fakeModel['_index'] = this.value.push(Object.assign({}, this.fakeModel)); }, deleteItem: function deleteItem(k) { var c = confirm(this.template_i18n.delete_confirm); if (c) { this.value.splice(k, 1); } } }, components: { "vue-form-generator": (vue_form_generator__WEBPACK_IMPORTED_MODULE_0___default().component), draggable: (vuedraggable__WEBPACK_IMPORTED_MODULE_1___default()) } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-select2.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-select2.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var vue_form_generator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-form-generator */ "./node_modules/vue-form-generator/dist/vfg.js"); /* harmony import */ var vue_form_generator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_form_generator__WEBPACK_IMPORTED_MODULE_0__); function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ mixins: [vue_form_generator__WEBPACK_IMPORTED_MODULE_0__.abstractField], data: function data() { return { options: [], selectedText: '' }; }, mounted: function mounted() { var vm = this; $(vm.$el).select2(vm.schema.select2); if (this.schema.pre_selected && this.value) { $.ajax({ method: 'get', url: this.schema.pre_selected, data: { selected: this.value }, dataType: 'json', success: function success(json) { if (vm.schema.select2.multiple) { if (typeof json.items != 'undefined' && _typeof(json.items) == 'object' && json.items.length) { for (var i = 0; i < json.items.length; i++) { var newOption = new Option(json.items[i].text, json.items[i].id, true, true); $(vm.$el).append(newOption); } $(vm.$el).select2('val', this.value); $(vm.$el).trigger('change'); } return; } else { var newOption = new Option(json.text, vm.value, false, false); $(vm.$el).append(newOption).trigger('change'); } //vm.selectedText = json.text; } }); } else {} $(vm.$el).on('change', function () { // vm.$emit('input', $(this).val()); vm.value = $(this).val(); }); }, watch: { // value: function (value) { // // update value // $(this.$el) // .val(value) // .trigger('change') // }, options: function options(_options) {// update options //$(this.$el).empty().select2({ data: options }) } }, destroyed: function destroyed() { $(this.$el).off().select2('destroy'); } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-upload.vue?vue&type=script&lang=js&": /*!**********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-upload.vue?vue&type=script&lang=js& ***! \**********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var vue_form_generator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-form-generator */ "./node_modules/vue-form-generator/dist/vfg.js"); /* harmony import */ var vue_form_generator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_form_generator__WEBPACK_IMPORTED_MODULE_0__); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ mixins: [vue_form_generator__WEBPACK_IMPORTED_MODULE_0__.abstractField], data: function data() { return { options: [], bookingCore: bookingCore }; }, methods: { openUploader: function openUploader() { var me = this; uploaderModal.show({ multiple: false, file_type: 'image', onSelect: function onSelect(files) { console.log(files); me.value = files[0].id; } }); } }, created: function created() {}, watch: {}, destroyed: function destroyed() {} }); /***/ }), /***/ "./resources/admin/js/_base.js": /*!*************************************!*\ !*** ./resources/admin/js/_base.js ***! \*************************************/ /***/ (() => { (function ($) { $('.main-menu .has-children .btn-toggle').click(function () { var p = $(this).closest('.has-children'); if (p.hasClass('active')) { p.removeClass('active'); } else { p.siblings().removeClass('active'); p.addClass('active'); } }); $('.btn-toggle-admin-menu,.backdrop-sidebar-mobile').click(function () { $('body').toggleClass('sidebar-toggled'); }); })(jQuery); /***/ }), /***/ "./resources/admin/js/_condition.js": /*!******************************************!*\ !*** ./resources/admin/js/_condition.js ***! \******************************************/ /***/ (() => { jQuery(function ($) { $(document).ready(function () { var condition_object = 'select, input[type="radio"]:checked, input[type="text"], input[type="hidden"], input.ot-numeric-slider-hidden-input,input[type="checkbox"]'; // condition function to show and hide sections $('.main-content').on('change.conditionals', condition_object, function (e) { run_condition_engine(); }); run_condition_engine(); function run_condition_engine() { $('[data-condition]').each(function () { var passed; var conditions = get_match_condition($(this).data('condition')); var operator = ($(this).data('operator') || 'and').toLowerCase(); $.each(conditions, function (index, condition) { var target = $('[name=' + condition.check + ']'); var targetEl = !!target.length && target.first(); if (!target.length || !targetEl.length && condition.value.toString() != '') { return; } var v1 = targetEl.length ? targetEl.val().toString() : ''; var v2 = condition.value.toString(); var result; if (targetEl.length && targetEl.attr('type') == 'radio') { v1 = $('[name=' + condition.check + ']:checked').val(); } if (targetEl.length && targetEl.attr('type') == 'checkbox') { v1 = targetEl.is(':checked') ? v1 : ''; } switch (condition.rule) { case 'less_than': result = parseInt(v1) < parseInt(v2); break; case 'less_than_or_equal_to': result = parseInt(v1) <= parseInt(v2); break; case 'greater_than': result = parseInt(v1) > parseInt(v2); break; case 'greater_than_or_equal_to': result = parseInt(v1) >= parseInt(v2); break; case 'contains': result = v1.indexOf(v2) !== -1 ? true : false; break; case 'is': result = v1 == v2; break; case 'not': result = v1 != v2; break; } if ('undefined' == typeof passed) { passed = result; } switch (operator) { case 'or': passed = passed || result; break; case 'and': default: passed = passed && result; break; } }); if (passed) { $(this).show(); } else { $(this).hide(); } passed = undefined; }); } function get_match_condition(condition) { var match; var regex = /(.+?):(is|not|contains|less_than|less_than_or_equal_to|greater_than|greater_than_or_equal_to)\((.*?)\),?/g; var conditions = []; while (match = regex.exec(condition)) { conditions.push({ 'check': match[1], 'rule': match[2], 'value': match[3] || '' }); } return conditions; } // Please do not edit condition section if you don't understand what it is }); }); /***/ }), /***/ "./resources/admin/js/_form.js": /*!*************************************!*\ !*** ./resources/admin/js/_form.js ***! \*************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ckeditor_uploadAdapter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ckeditor/uploadAdapter */ "./resources/admin/js/ckeditor/uploadAdapter.js"); (function ($) { function makeid(length) { var result = ''; var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; var charactersLength = characters.length; for (var i = 0; i < length; i++) { result += characters.charAt(Math.floor(Math.random() * charactersLength)); } return result; } // Form Configs $('.has-ckeditor').each(function () { var els = $(this); // ClassicEditor // .create( els[0],{ // extraPlugins: [ BookingCoreAdaterPlugin ], // }) // .catch( error => { // console.error( error ); // } ); var id = $(this).attr('id'); if (!id) { id = makeid(10); $(this).attr('id', id); } var h = els.data('height'); if (!h && typeof h == 'undefined') h = 300; var remove_script_host = true; if ($(this).attr("data-fullurl") === "true") { remove_script_host = false; } // CKEDITOR.replace( id ); tinymce.init({ selector: '#' + id, plugins: 'preview searchreplace autolink code fullscreen image link media codesample table charmap hr toc advlist lists wordcount textpattern help pagebreak hr', toolbar: 'formatselect | bold italic strikethrough forecolor backcolor permanentpen formatpainter | link image media | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | pagebreak codesample code | removeformat', image_advtab: false, image_caption: false, toolbar_drawer: 'sliding', relative_urls: false, remove_script_host: remove_script_host, height: h, file_picker_callback: function file_picker_callback(callback, value, meta) { /* Provide file and text for the link dialog */ if (meta.filetype === 'file') { uploaderModal.show({ multiple: false, file_type: 'video', onSelect: function onSelect(files) { if (files.length) callback(bookingCore.url + '/media/preview/' + files[0].id); } }); } /* Provide image and alt text for the image dialog */ if (meta.filetype === 'image') { uploaderModal.show({ multiple: false, file_type: 'image', onSelect: function onSelect(files) { console.log(files); if (files.length) callback(files[0].full_size); } }); } /* Provide alternative source and posted for the media dialog */ if (meta.filetype === 'media') { uploaderModal.show({ multiple: false, file_type: 'video', onSelect: function onSelect(files) { if (files.length) callback(bookingCore.url + '/media/preview/' + files[0].id); } }); } } }); }); $(document).on('click', '.dungdt-upload-box-normal .btn-field-upload,.dungdt-upload-box-normal .attach-demo', function () { var p = $(this).closest('.dungdt-upload-box'); uploaderModal.show({ multiple: false, file_type: 'image', onSelect: function onSelect(files) { var path = files[0].edit_path !== undefined ? files[0].edit_path : files[0].max_large_size; p.addClass('active'); p.find('.attach-demo').html('<img src="' + files[0].thumb_size + '"/>'); p.attr('data-val', files[0].id); p.find('input').val(files[0].id); p.find('.edit-img').attr('data-file', path); } }); }); $(document).on('click', '.dungdt-upload-box-normal .delete', function (e) { e.preventDefault(); var p = $(this).closest('.dungdt-upload-box'); p.find("input").attr('value', ''); p.removeClass("active"); }); $(document).on('click', '.dungdt-upload-box-normal .edit-img, .dungdt-upload-multiple .edit-img, .show_avatar .edit-img', function (e) { e.preventDefault(); var $this = $(this); var image_path = $this.attr('data-file'); var edit_type = $this.hasClass('edit-multiple') ? 'multiple' : 'single'; var p = edit_type === 'multiple' ? $this.closest('.dungdt-upload-multiple') : $this.closest('.dungdt-upload-box'); var image_id = edit_type === 'multiple' ? $this.attr('data-id') : p.attr('data-val'); var config = { language: image_editer.language, translations: image_editer.translations, reduceBeforeEdit: { mode: 'manual', widthLimit: 2500, heightLimit: 2500 } }; var callback = { onOpen: function onOpen() {}, onBeforeComplete: function onBeforeComplete(props) { return false; }, onComplete: function onComplete(url) { var canvas = url.canvas.toDataURL('image/jpeg'); if (edit_type === 'multiple') { $this.closest('.image-item').find('.image-preview').attr('src', canvas); } else { p.find('.attach-demo').html('<img src="' + canvas + '" alt="image-responsive" style="max-width: 150px">'); } $.ajax({ url: bookingCore.url + '/media/edit_image', method: 'POST', dataType: 'JSON', data: { image: canvas, image_id: image_id }, success: function success(result) { console.log(result); } }); } }; var ImageEditor = new FilerobotImageEditor(config, callback); ImageEditor.open(image_path); }); $('.dungdt-upload-multiple').find('.btn-field-upload').click(function () { var p = $(this).closest('.dungdt-upload-multiple'); uploaderModal.show({ multiple: true, file_type: 'image', onSelect: function onSelect(files) { if (typeof files != 'undefined' && files.length) { var ids = []; var html = ''; p.addClass('active'); for (var i = 0; i < files.length; i++) { var path = files[i].edit_path !== undefined ? files[i].edit_path : files[i].max_large_size; ids.push(files[i].id); html += '<div class="image-item">' + '<div class="inner">'; html += '<a class="edit-img btn btn-sm btn-primary edit-multiple" data-id="' + files[i].id + '" data-file="' + path + '"><i class="fa fa-edit"></i></a>'; html += '<span class="delete btn btn-sm btn-danger"><i class="fa fa-trash"></i></span><div class="img-preview"><img class="image-responsive image-preview w-100" src="' + files[i].thumb_size + '"/></div>' + '</div>' + '</div>'; } p.find('.attach-demo').append(html); var old = p.find('input').val().split(','); p.find('input').val(ids.concat(old).join(',')); } } }); }); $('.dungdt-upload-multiple').on('click', '.image-item .delete', function () { var i = $(this).closest('.image-item').index(); var p = $(this).closest('.dungdt-upload-multiple'); var ids = p.find('input').val().split(','); ids.splice(i, 1); p.find('input').val(ids.join(',')); $(this).closest('.image-item').remove(); }); $('.open-edit-input').click(function () { $(this).replaceWith('<input type="text" name="' + $(this).data('name') + '" value="' + $(this).html() + '">'); }); $(document).ready(function () { $('.dungdt-select2-field').each(function () { var configs = $(this).data('options'); $(this).select2(configs); }); }); $(".form-group-item").each(function () { var container = $(this); $(this).on('click', '.btn-remove-item', function () { $(this).closest(".item").remove(); }); $(this).on('press', 'input,select', function () { var value = $(this).val(); $(this).attr("value", value); }); }); $(".form-group-item .btn-add-item").click(function () { var p = $(this).closest(".form-group-item").find(".g-items"); var number = $(this).closest(".form-group-item").find(".g-items .item:last-child").data("number"); if (number === undefined) number = 0;else number++; var extra_html = $(this).closest(".form-group-item").find(".g-more").html(); extra_html = extra_html.replace(/__name__=/gi, "name="); extra_html = extra_html.replace(/__number__/gi, number); p.append(extra_html); if (extra_html.indexOf('dungdt-select2-field-lazy') > 0) { p.find('.dungdt-select2-field-lazy').each(function () { var configs = $(this).data('options'); $(this).select2(configs); }); } }); $('table .check-all').change(function () { if ($(this).is(':checked')) { $(this).closest('table').find('tbody .check-item').prop('checked', true); } else { $(this).closest('table').find('tbody .check-item').prop('checked', false); } }); $('.dungdt-apply-form-btn').click(function (e) { var $this = $(this); var action = $this.closest('form').find('[name=action]').val(); var apply_action = function apply_action() { var ids = ''; $(".bravo-form-item .check-item").each(function () { if ($(this).is(":checked")) { ids += '<input type="hidden" name="ids[]" value="' + $(this).val() + '">'; } }); $this.closest('form').append(ids).submit(); }; if (action === 'delete' || action === 'permanently_delete') { bookingCoreApp.showConfirm({ message: i18n.confirm_delete, callback: function callback(result) { if (result) { apply_action(); } } }); } else if (action === 'recovery') { bookingCoreApp.showConfirm({ message: i18n.confirm_recovery, callback: function callback(result) { if (result) { apply_action(); } } }); } else { apply_action(); } }); $('.dungdt-input-flag-icon').change(function () { $(this).closest('.input-group').find('.flag-icon').attr('class', '').addClass('flag-icon flag-icon-' + $(this).val()); }); $('.dungdt_input_locale').change(function () {}); $('.tag-input').keypress(function (e) { // console.log(e); if (e.keyCode == 13) { var val = $(this).val(); if (val) { var html = '<span class="tag_item">' + val + ' <span data-role="remove"></span>\n' + ' <input type="hidden" name="tag_name[]" value="' + val + '">\n' + ' </span>'; $(this).parent().find('.show_tags').append(html); $(this).val(''); } e.preventDefault(); return false; } }); $(document).on('click', '[data-role=remove]', function () { $(this).closest('.tag_item').remove(); }); // Form validation var forms = document.getElementsByClassName('needs-validation'); // Loop over them and prevent submission var validation = Array.prototype.filter.call(forms, function (form) { form.addEventListener('submit', function (event) { if (form.checkValidity() === false) { event.preventDefault(); event.stopPropagation(); } form.classList.add('was-validated'); }, false); }); jQuery(function ($) { $('.has-datepicker').daterangepicker({ singleDatePicker: true, showCalendar: false, autoUpdateInput: false, //disable default date sameDate: true, autoApply: true, disabledPast: true, enableLoading: true, showEventTooltip: true, classNotAvailable: ['disabled', 'off'], disableHightLight: true, locale: { format: 'YYYY/MM/DD' } }).on('apply.daterangepicker', function (ev, picker) { $(this).val(picker.startDate.format('YYYY/MM/DD')); }); }); })(jQuery); /***/ }), /***/ "./resources/admin/js/_menu.js": /*!*************************************!*\ !*** ./resources/admin/js/_menu.js ***! \*************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js"); /* harmony import */ var he_tree_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! he-tree-vue */ "./node_modules/he-tree-vue/dist/he-tree-vue.esm.js"); // import {VueNestableHandle, VueNestable} from 'vue-nestable' // import {DraggableTree} from 'vue-draggable-nested-tree' // import draggable from 'vuedraggable' // import NestedDraggable from './components/nested-draggable.vue' (function ($) { var id = $('#menu-app'); if (!id.length) { return; } var menu_id = id.data('id'); new vue__WEBPACK_IMPORTED_MODULE_1__.default({ el: '#menu-app', components: { // VueNestable, // VueNestableHandle, DraggableTree: he_tree_vue__WEBPACK_IMPORTED_MODULE_0__.Tree.mixPlugins([he_tree_vue__WEBPACK_IMPORTED_MODULE_0__.Draggable]) // draggable, // NestedDraggable }, data: { items: current_menu_items, item_types: [], custom_url: '', custom_name: "", name: current_menu_name, message: { type: false, content: '' }, custom_show: false, locations: current_menu_locations, currentIndex: current_items_index + 1, triggerClass: { "default": "drag-trigger" } }, mounted: function mounted() { this.reloadTypes(); // if(menu_id){ // this.reloadItems(); // } }, methods: { toogleItem: function toogleItem(item) { if (item._open) { item._open = false; } else { item._open = true; } }, searchItems: function searchItems(type) { // if(!type.q) return; $.ajax({ url: bookingCore.url + '/admin/module/core/menu/searchTypeItems', data: { "class": type["class"], q: type.q }, dataType: 'json', type: 'post', success: function success(res) { if (res.status) { type.items = res.data; } }, error: function error(e) { console.log(e); } }); }, reloadItems: function reloadItems() { var me = this; $.ajax({ url: bookingCore.url + '/admin/module/core/menu/getItems', dataType: 'json', type: 'post', data: { id: menu_id }, success: function success(res) { if (res.data && res.status) { me.items = res.data; } }, error: function error(e) { console.log(e); } }); }, reloadTypes: function reloadTypes() { var me = this; $.ajax({ url: bookingCore.url + '/admin/module/core/menu/getTypes', dataType: 'json', type: 'post', data: {}, success: function success(res) { if (res.data && res.status) { me.item_types = res.data; } }, error: function error(e) { console.log(e); } }); }, addToMenu: function addToMenu(type) { if (!type.selected.length) { return false; } for (var i = 0; i < type.items.length; i++) { if (type.selected.indexOf(type.items[i].id) > -1) { var item = Object.assign({}, type.items[i]); // item._id = this.currentIndex + 1; item._open = true; this.items.push(item); this.currentIndex += 1; console.log(this.currentIndex); } } type.selected = []; }, addCustomUrl: function addCustomUrl() { if (!this.custom_name) return; this.items.push({ name: this.custom_name, url: this.custom_url, item_model: 'custom', _open: false // _id: this.items.length + 1 }); this.custom_name = ''; this.custom_url = ''; }, parseMenuItems: function parseMenuItems(origins) { var items = []; for (var i = 0; i < origins.length; i++) { var item = origins[i]; var tmp = Object.assign({}, item); delete tmp._vm; delete tmp.parent; delete tmp.style; delete tmp.children; delete tmp.style; delete tmp.innerStyle; delete tmp.innerBackClass; delete tmp.innerBackStyle; if (item.children) { tmp.children = this.parseMenuItems(item.children); } items.push(tmp); } return items; }, saveMenu: function saveMenu() { var me = this; var items = this.parseMenuItems(this.items); $.ajax({ url: bookingCore.url + '/admin/module/core/menu/store', dataType: 'json', type: 'post', data: { id: menu_id, items: JSON.stringify(items), name: this.name, locations: this.locations, lang: current_menu_lang }, success: function success(res) { if (res.message) { me.message.content = res.message; me.message.type = res.status; } if (res.url) { window.location.href = res.url; } }, error: function error(e) { if (e.responseJSON.message) { me.message.content = e.responseJSON.message; me.message.type = false; } else { me.message.content = 'Can not save menu'; me.message.type = false; } } }); }, deleteMenuItem: function deleteMenuItem(e, item, tree, path) { e.preventDefault(); tree.removeNodeByPath(path); } } }); })(jQuery); /***/ }), /***/ "./resources/admin/js/_notification.js": /*!*********************************************!*\ !*** ./resources/admin/js/_notification.js ***! \*********************************************/ /***/ (() => { jQuery(function ($) { var notificationsWrapper = $('.dropdown-notifications'); var notificationsToggle = notificationsWrapper.find('div[data-toggle]'); var notificationsCountElem = notificationsToggle.find('.notification-icon'); var notificationsCount = parseInt(notificationsCountElem.html()); var notifications = notificationsWrapper.find('ul.dropdown-list-items'); $(document).on("click", ".markAsRead", function (e) { e.stopPropagation(); e.preventDefault(); var id = $(this).data('id'); var url = $(this).attr('href'); $.ajax({ url: bookingCore.markAsRead, data: { 'id': id }, method: "post", success: function success(res) { window.location.href = url; } }); }); $(document).on("click", ".markAllAsRead", function (e) { e.stopPropagation(); e.preventDefault(); $.ajax({ url: bookingCore.markAllAsRead, method: "post", success: function success(res) { $('.dropdown-notifications').find('li.notification').removeClass('active'); notificationsCountElem.text(0); notificationsWrapper.find('.notif-count').text(0); } }); }); if (bookingCore.pusher_api_key && bookingCore.pusher_cluster) { var pusher = new Pusher(bookingCore.pusher_api_key, { encrypted: true, cluster: bookingCore.pusher_cluster }); } var callback = function callback(data) { var existingNotifications = notifications.html(); var newNotificationHtml = '<li class="notification active">' + '<div class="media">' + ' <div class="media-left">' + ' <div class="media-object">' + data.avatar + ' </div>' + ' </div>' + ' <div class="media-body">' + ' <a class="markAsRead" data-id="' + data.idNotification + '" href="' + data.link + '">' + data.message + '</a>' + ' <div class="notification-meta">' + ' <small class="timestamp">about a few seconds ago</small>' + ' </div>' + ' </div>' + ' </div>' + '</li>'; notifications.html(newNotificationHtml + existingNotifications); notificationsCount += 1; notificationsCountElem.text(notificationsCount); notificationsWrapper.find('.notif-count').text(notificationsCount); }; if (bookingCore.isAdmin > 0 && bookingCore.pusher_api_key) { var channel = pusher.subscribe('admin-channel'); channel.bind('App\\Events\\PusherNotificationAdminEvent', callback); } if (bookingCore.currentUser > 0 && bookingCore.pusher_api_key) { var channelPrivate = pusher.subscribe('user-channel-' + bookingCore.currentUser); channelPrivate.bind('App\\Events\\PusherNotificationPrivateEvent', callback); } }); /***/ }), /***/ "./resources/admin/js/app.js": /*!***********************************!*\ !*** ./resources/admin/js/app.js ***! \***********************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _module_template_admin_detail_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../module/template/admin/detail.js */ "./resources/module/template/admin/detail.js"); /* harmony import */ var _module_media_admin_js_media_management__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../module/media/admin/js/media-management */ "./resources/module/media/admin/js/media-management.js"); function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ try { window.Popper = __webpack_require__(/*! popper.js */ "./node_modules/popper.js/dist/esm/popper.js").default; window.$ = window.jQuery = __webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"); window.Vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js"); __webpack_require__(/*! bootstrap */ "./node_modules/bootstrap/dist/js/bootstrap.js"); window.bootbox = __webpack_require__(/*! bootbox */ "./node_modules/bootbox/bootbox.all.js"); $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); } catch (e) { console.log(e); } //window.ClassicEditor = require('../../ckeditor'); // window.ClassicEditor = require('@ckeditor/ckeditor5-build-classic'); // console.log(ClassicEditor); // console.log(ClassicEditor); __webpack_require__(/*! ../../module/media/admin/js/browser */ "./resources/module/media/admin/js/browser.js"); __webpack_require__(/*! ./_condition */ "./resources/admin/js/_condition.js"); __webpack_require__(/*! ./_base */ "./resources/admin/js/_base.js"); __webpack_require__(/*! ./_form */ "./resources/admin/js/_form.js"); __webpack_require__(/*! ./_menu */ "./resources/admin/js/_menu.js"); __webpack_require__(/*! ./_notification */ "./resources/admin/js/_notification.js"); // Template if (document.getElementById('media-management')) { (0,_module_media_admin_js_media_management__WEBPACK_IMPORTED_MODULE_1__.default)(); } // Template if (document.getElementById('booking-core-template-detail')) { (0,_module_template_admin_detail_js__WEBPACK_IMPORTED_MODULE_0__.default)(); } $(document).on('hidden.bs.modal', '.modal', function () { $('.modal:visible').length && $(document.body).addClass('modal-open'); }); window.bookingCoreApp = { showSuccess: function showSuccess(configs) { var args = {}; if (_typeof(configs) == 'object') { args = configs; } else { args.message = configs; } if (!args.title) { args.title = i18n.success; } args.centerVertical = true; bootbox.alert(args); }, showError: function showError(configs) { var args = {}; if (_typeof(configs) == 'object') { args = configs; } else { args.message = configs; } if (!args.title) { args.title = i18n.warning; } args.centerVertical = true; bootbox.alert(args); }, showAjaxError: function showAjaxError(e) { if (typeof e.responseJSON != 'undefined' && e.responseJSON.message) { return this.showError(e.responseJSON.message); } if (e.responseText) { return this.showError(e.responseText); } }, showAjaxMessage: function showAjaxMessage(json) { if (json.message) { if (json.status) { this.showSuccess(json); } else { this.showError(json); } } }, showConfirm: function showConfirm(configs) { var args = {}; if (_typeof(configs) == 'object') { args = configs; } args.buttons = { confirm: { label: '<i class="fa fa-check"></i> ' + i18n.confirm }, cancel: { label: '<i class="fa fa-times"></i> ' + i18n.cancel } }; args.centerVertical = true; bootbox.confirm(args); } }; /***/ }), /***/ "./resources/admin/js/ckeditor/uploadAdapter.js": /*!******************************************************!*\ !*** ./resources/admin/js/ckeditor/uploadAdapter.js ***! \******************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } var BookingCoreAdapterUpload = /*#__PURE__*/function () { function BookingCoreAdapterUpload(loader) { _classCallCheck(this, BookingCoreAdapterUpload); // The file loader instance to use during the upload. this.loader = loader; } // Starts the upload process. _createClass(BookingCoreAdapterUpload, [{ key: "upload", value: function upload() { var _this = this; return this.loader.file.then(function (file) { return new Promise(function (resolve, reject) { _this._initRequest(); _this._initListeners(resolve, reject, file); _this._sendRequest(file); }); }); } // Aborts the upload process. }, { key: "abort", value: function abort() { if (this.xhr) { this.xhr.abort(); } } // Initializes the XMLHttpRequest object using the URL passed to the constructor. }, { key: "_initRequest", value: function _initRequest() { var xhr = this.xhr = new XMLHttpRequest(); // Note that your request may look different. It is up to you and your editor // integration to choose the right communication channel. This example uses // a POST request with JSON as a data structure but your configuration // could be different. xhr.open('POST', bookingCore.url + '/admin/module/media/store', true); xhr.responseType = 'json'; } // Initializes XMLHttpRequest listeners. }, { key: "_initListeners", value: function _initListeners(resolve, reject, file) { var xhr = this.xhr; var loader = this.loader; var genericErrorText = "Couldn't upload file: ".concat(file.name, "."); xhr.addEventListener('error', function () { return reject(genericErrorText); }); xhr.addEventListener('abort', function () { return reject(); }); xhr.addEventListener('load', function () { var response = xhr.response; // This example assumes the XHR server's "response" object will come with // an "error" which has its own "message" that can be passed to reject() // in the upload promise. // // Your integration may handle upload errors in a different way so make sure // it is done properly. The reject() function must be called when the upload fails. if (!response || !response.status) { if (response.message) { return reject(response.message); } return reject(response && response.error ? response.error.message : genericErrorText); } // If the upload is successful, resolve the upload promise with an object containing // at least the "default" URL, pointing to the image on the server. // This URL will be used to display the image in the content. Learn more in the // UploadAdapter#upload documentation. resolve(response.data.sizes); }); // Upload progress when it is supported. The file loader has the #uploadTotal and #uploaded // properties which are used e.g. to display the upload progress bar in the editor // user interface. if (xhr.upload) { xhr.upload.addEventListener('progress', function (evt) { if (evt.lengthComputable) { loader.uploadTotal = evt.total; loader.uploaded = evt.loaded; } }); } } // Prepares the data and sends the request. }, { key: "_sendRequest", value: function _sendRequest(file) { // Prepare the form data. var data = new FormData(); data.append('file', file); this.xhr.setRequestHeader('X-CSRF-TOKEN', $('meta[name="csrf-token"]').attr('content')); // Important note: This is the right place to implement security mechanisms // like authentication and CSRF protection. For instance, you can use // XMLHttpRequest.setRequestHeader() to set the request headers containing // the CSRF token generated earlier by your application. // Send the request. this.xhr.send(data); } }]); return BookingCoreAdapterUpload; }(); // ... function BookingCoreAdapterPlugin(editor) { editor.plugins.get('FileRepository').createUploadAdapter = function (loader) { // Configure the URL to the upload script in your back-end here! return new BookingCoreAdapterUpload(loader); }; } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BookingCoreAdapterPlugin); /***/ }), /***/ "./resources/module/media/admin/js/browser.js": /*!****************************************************!*\ !*** ./resources/module/media/admin/js/browser.js ***! \****************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js"); (function ($) { window.uploaderModal = new vue__WEBPACK_IMPORTED_MODULE_0__.default({ el: '#cdn-browser', data: { files: [], viewType: 'grid', total: 0, totalPage: 0, fileTypes: [], selected: [], selectedLists: [], showUploader: false, apiFinished: false, modalEl: false, multiple: false, isLoading: false, filter: { page: 1 }, onSelect: function onSelect() {}, uploadConfigs: {} }, mounted: function mounted() { var me = this; this.modalEl = $('#cdn-browser-modal').modal({ show: false }).on('show.bs.modal', function () { me.reloadLists(); }); this.$nextTick(function () { $(this.$refs.files).change(function () { me.upload(this.files); }); }); }, watch: { uploadConfigs: function uploadConfigs(val) { this.multiple = val.multiple; this.onSelect = val.onSelect; } }, methods: { show: function show(configs) { this.files = []; this.resetSelected(); this.uploadConfigs = configs; this.modalEl.modal('show'); }, hide: function hide() { this.modalEl.modal('hide'); }, changePage: function changePage(p, e) { e.preventDefault(); this.filter.page = p; this.reloadLists(); }, selectFile: function selectFile(file) { var index = this.selected.indexOf(file.id); if (index > -1) { this.selected.splice(index, 1); this.selectedLists.splice(index, 1); } else { if (!this.multiple) { this.selected = []; this.selectedLists = []; } this.selected.push(file.id); this.selectedLists.push(file); } }, removeFiles: function removeFiles() { var me = this; bookingCoreApp.showConfirm({ message: i18n.confirm_delete, callback: function callback(result) { if (result) { me.isLoading = true; $.ajax({ url: bookingCore.url + '/admin/module/media/removeFiles', type: 'POST', data: { file_ids: me.selected }, dataType: 'json', success: function success(data) { if (data.status === 1) {//bookingCoreApp.showSuccess(data); } if (data.status === 0) { bookingCoreApp.showError(data); } me.isLoading = false; me.reloadLists(); }, error: function error(e) { me.isLoading = false; bookingCoreApp.showAjaxError(e); me.resetSelected(); } }); } } }); }, sendFiles: function sendFiles() { if (typeof this.onSelect == 'function') { var f = this.onSelect; f(this.selectedLists); } this.hide(); }, init: function init() { var me = this; this.reloadLists(); }, reloadLists: function reloadLists() { var me = this; $("#cdn-browser .icon-loading").addClass("active"); me.isLoading = true; $.ajax({ url: bookingCore.url + '/admin/module/media/getLists', type: 'POST', data: { file_type: this.uploadConfigs.file_type, page: this.filter.page, s: this.filter.s }, dataType: 'json', success: function success(json) { me.resetSelected(); me.files = json.data; me.total = json.total; me.totalPage = json.totalPage; me.isLoading = false; me.apiFinished = true; } }); }, upload: function upload(files) { var me = this; if (!files.length) return; console.log(files); for (var i = 0; i < files.length; i++) { var d = new FormData(); d.append('file', files[i]); d.append('type', this.uploadConfigs.file_type); me.isLoading = true; $.ajax({ url: bookingCore.url + '/admin/module/media/store', data: d, dataType: 'json', type: 'post', contentType: false, processData: false, success: function success(res) { me.isLoading = false; if (res.status) { me.reloadLists(); } if (res.status === 0) { bookingCoreApp.showError(res); } $(me.$refs.files).val(''); }, error: function error(e) { bookingCoreApp.showAjaxError(e); $(me.$refs.files).val(''); me.isLoading = false; } }); } }, initUploader: function initUploader() {}, resetSelected: function resetSelected() { this.selectedLists = []; this.selected = []; this.total = 0; this.totalPage = 0; this.apiFinished = false; } } }); vue__WEBPACK_IMPORTED_MODULE_0__.default.component('file-item', { template: '#file-item-template', data: function data() { return { count: 0 }; }, props: ['file', "selected", "viewType"], methods: { selectFile: function selectFile(file) { this.$emit('select-file', file); }, fileClass: function fileClass(file) { var s = []; s.push(file.file_type); if (file.file_type.substr(0, 5) == 'image') { s.push('is-image'); } else { s.push('not-image'); } return s; }, getFileThumb: function getFileThumb(file) { if (file.file_type.substr(0, 5) == 'image') { return '<img src="' + file.thumb_size + '">'; } if (file.file_type.substr(0, 5) == 'video') { return '<img src="/assets/browser/icon/007-video-file.png">'; } if (file.file_type.indexOf('x-zip-compressed') !== -1 || file.file_type.indexOf('/zip') !== -1) { return '<img src="/assets/browser/icon/005-zip-2.png">'; } if (file.file_type.indexOf('/pdf') !== -1) { return '<img src="/assets/browser/icon/002-pdf-file-format-symbol.png">'; } if (file.file_type.indexOf('/msword') !== -1 || file.file_type.indexOf('wordprocessingml') !== -1) { return '<img src="/assets/browser/icon/010-word.png">'; } if (file.file_type.indexOf('spreadsheetml') !== -1 || file.file_type.indexOf('excel') !== -1) { return '<img src="/assets/browser/icon/011-excel-file.png">'; } if (file.file_type.indexOf('presentation') !== -1) { return '<img src="/assets/browser/icon/powerpoint.png">'; } if (file.file_type.indexOf('audio/') !== -1) { return '<img src="/assets/browser/icon/006-audio-file.png">'; } return '<img src="/assets/browser/icon/008-file.png">'; } } }); })(jQuery); /***/ }), /***/ "./resources/module/media/admin/js/media-management.js": /*!*************************************************************!*\ !*** ./resources/module/media/admin/js/media-management.js ***! \*************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js"); /* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() { window.mediaManagement = new vue__WEBPACK_IMPORTED_MODULE_0__.default({ el: '#media-management', data: { files: [], viewType: 'grid', total: 0, totalPage: 0, fileTypes: [], selected: [], selectedLists: [], showUploader: false, apiFinished: false, modalEl: false, multiple: true, isLoading: false, filter: { page: 1 }, onSelect: function onSelect() {}, uploadConfigs: {} }, mounted: function mounted() { var me = this; me.reloadLists(); this.$nextTick(function () { $(this.$refs.files).change(function () { me.upload(this.files); }); }); }, watch: { uploadConfigs: function uploadConfigs(val) { this.multiple = val.multiple; this.onSelect = val.onSelect; } }, methods: { show: function show(configs) { this.files = []; this.resetSelected(); this.uploadConfigs = configs; this.modalEl.modal('show'); }, hide: function hide() { this.modalEl.modal('hide'); }, changePage: function changePage(p, e) { e.preventDefault(); this.filter.page = p; this.reloadLists(); }, selectFile: function selectFile(file) { var index = this.selected.indexOf(file.id); if (index > -1) { this.selected.splice(index, 1); this.selectedLists.splice(index, 1); } else { if (!this.multiple) { this.selected = []; this.selectedLists = []; } this.selected.push(file.id); this.selectedLists.push(file); } }, removeFiles: function removeFiles() { var me = this; bookingCoreApp.showConfirm({ message: i18n.confirm_delete, callback: function callback(result) { if (result) { me.isLoading = true; $.ajax({ url: bookingCore.url + '/admin/module/media/removeFiles', type: 'POST', data: { file_ids: me.selected }, dataType: 'json', success: function success(data) { if (data.status === 1) {//bookingCoreApp.showSuccess(data); } if (data.status === 0) { bookingCoreApp.showError(data); } me.isLoading = false; me.reloadLists(); }, error: function error(e) { me.isLoading = false; bookingCoreApp.showAjaxError(e); me.resetSelected(); } }); } } }); }, sendFiles: function sendFiles() { if (typeof this.onSelect == 'function') { var f = this.onSelect; f(this.selectedLists); } this.hide(); }, init: function init() { var me = this; this.reloadLists(); }, reloadLists: function reloadLists() { var me = this; $("#cdn-browser .icon-loading").addClass("active"); me.isLoading = true; $.ajax({ url: bookingCore.url + '/admin/module/media/getLists', type: 'POST', data: { file_type: this.uploadConfigs.file_type, page: this.filter.page, s: this.filter.s }, dataType: 'json', success: function success(json) { me.resetSelected(); me.files = json.data; me.total = json.total; me.totalPage = json.totalPage; me.isLoading = false; me.apiFinished = true; } }); }, upload: function upload(files) { var me = this; if (!files.length) return; console.log(files); for (var i = 0; i < files.length; i++) { var d = new FormData(); d.append('file', files[i]); d.append('type', this.uploadConfigs.file_type); me.isLoading = true; $.ajax({ url: bookingCore.url + '/admin/module/media/store', data: d, dataType: 'json', type: 'post', contentType: false, processData: false, success: function success(res) { me.isLoading = false; if (res.status) { me.reloadLists(); } if (res.status === 0) { bookingCoreApp.showError(res); } $(me.$refs.files).val(''); }, error: function error(e) { bookingCoreApp.showAjaxError(e); $(me.$refs.files).val(''); me.isLoading = false; } }); } }, initUploader: function initUploader() {}, resetSelected: function resetSelected() { this.selectedLists = []; this.selected = []; this.total = 0; this.totalPage = 0; this.apiFinished = false; } } }); } /***/ }), /***/ "./resources/module/template/admin/custom-fields.js": /*!**********************************************************!*\ !*** ./resources/module/template/admin/custom-fields.js ***! \**********************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _fields_field_editor_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fields/field-editor.vue */ "./resources/module/template/admin/fields/field-editor.vue"); /* harmony import */ var _fields_field_select2_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./fields/field-select2.vue */ "./resources/module/template/admin/fields/field-select2.vue"); /* harmony import */ var _fields_field_listItem_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fields/field-listItem.vue */ "./resources/module/template/admin/fields/field-listItem.vue"); /* harmony import */ var _fields_field_upload_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fields/field-upload.vue */ "./resources/module/template/admin/fields/field-upload.vue"); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js"); vue__WEBPACK_IMPORTED_MODULE_4__.default.component("fieldEditor", _fields_field_editor_vue__WEBPACK_IMPORTED_MODULE_0__.default); vue__WEBPACK_IMPORTED_MODULE_4__.default.component("fieldSelect2", _fields_field_select2_vue__WEBPACK_IMPORTED_MODULE_1__.default); vue__WEBPACK_IMPORTED_MODULE_4__.default.component("fieldListItem", _fields_field_listItem_vue__WEBPACK_IMPORTED_MODULE_2__.default); vue__WEBPACK_IMPORTED_MODULE_4__.default.component("fieldUploader", _fields_field_upload_vue__WEBPACK_IMPORTED_MODULE_3__.default); /***/ }), /***/ "./resources/module/template/admin/detail.js": /*!***************************************************!*\ !*** ./resources/module/template/admin/detail.js ***! \***************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js"); /* harmony import */ var vuedraggable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuedraggable */ "./node_modules/vuedraggable/dist/vuedraggable.umd.js"); /* harmony import */ var vuedraggable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vuedraggable__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var vue_form_generator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-form-generator */ "./node_modules/vue-form-generator/dist/vfg.js"); /* harmony import */ var vue_form_generator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_form_generator__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _components_row_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/row.vue */ "./resources/module/template/admin/components/row.vue"); /* harmony import */ var _components_column_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/column.vue */ "./resources/module/template/admin/components/column.vue"); /* harmony import */ var _components_regular_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/regular.vue */ "./resources/module/template/admin/components/regular.vue"); __webpack_require__(/*! ./custom-fields */ "./resources/module/template/admin/custom-fields.js"); vue__WEBPACK_IMPORTED_MODULE_5__.default.component('RowBlock', _components_row_vue__WEBPACK_IMPORTED_MODULE_2__.default); vue__WEBPACK_IMPORTED_MODULE_5__.default.component('ColumnBlock', _components_column_vue__WEBPACK_IMPORTED_MODULE_3__.default); vue__WEBPACK_IMPORTED_MODULE_5__.default.component('RegularBlock', _components_regular_vue__WEBPACK_IMPORTED_MODULE_4__.default); /* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() { window.editBlockScreen = new vue__WEBPACK_IMPORTED_MODULE_5__.default({ el: '#editBlockScreenApp', data: { modal: false, item: {}, block: {}, model: {}, onEdit: false, template_i18n: template_i18n, options: {}, tmp_block: {} }, mounted: function mounted() { var me = this; this.modal = $('#editBlockScreen'); this.$nextTick(function () {// me.modal.modal({ // show:false // }); }); }, components: { "vue-form-generator": (vue_form_generator__WEBPACK_IMPORTED_MODULE_1___default().component) }, methods: { openEdit: function openEdit(item, block) { var me = this; this.item = item; this.tmp_block = Object.assign({}, block); _.forEach(this.tmp_block.settings, function (item) { if (typeof item.conditions === 'undefined') return true; item.visible = function () { var status = true; _.forEach(item.conditions, function (value, key) { if (me.model[key] != value) { status = false; } }); return status; }; }); this.block = block; this.model = Object.assign({}, this.item.model); this.modal.modal('show'); manageBlocksScreen.message.content = ''; }, saveModal: function saveModal() { this.item.model = Object.assign({}, this.model); this.onEdit = false; this.modal.modal('toggle'); }, hideModal: function hideModal() { this.modal.modal('toggle'); } } }); window.manageBlocksScreen = new vue__WEBPACK_IMPORTED_MODULE_5__.default({ el: '#booking-core-template-detail', data: { items: current_template_items, blocks: [], title: current_template_title, message: { content: '', type: false }, onSaving: false }, mounted: function mounted() { this.reloadBlocks(); }, methods: { deleteBlock: function deleteBlock(index) { console.log(index); //console.log(this.items); this.items.splice(index, 1); }, saveTemplate: function saveTemplate() { var me = this; if (!this.title) { return false; } this.onSaving = true; $.ajax({ url: bookingCore.url + '/admin/module/template/store', dataType: 'json', type: 'post', data: { id: template_id, content: JSON.stringify(this.items), title: this.title, lang: current_menu_lang }, success: function success(res) { me.onSaving = false; if (res.message) { me.message.content = res.message; me.message.type = res.status; } if (res.url) { window.location.href = res.url; } }, error: function error(e) { me.onSaving = false; if (e.responseJSON.message) { me.message.content = e.responseJSON.message; me.message.type = false; } else { me.message.content = 'Can not save menu'; me.message.type = false; } } }); }, reloadBlocks: function reloadBlocks() { var me = this; $.ajax({ url: bookingCore.url + '/admin/module/template/getBlocks', dataType: 'json', type: 'get', success: function success(res) { if (res.status) { me.blocks = res.data; } }, error: function error(e) { console.log(e); } }); }, addBlock: function addBlock(block) { var toItem = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; /*if(toItem == false && block.id!='row'){ var blockRow = this.searchBlockById('row'); var blockColumn = this.searchBlockById('column'); var row = this.addBlock(blockRow); if(block.id!='column'){ toItem = this.addBlock(blockColumn,row); }else{ toItem = row; } }*/ var item = this.getBlockParams(block); if (toItem) { toItem.children.push(item); } else { this.items.push(item); } return item; }, getBlockParams: function getBlockParams(block) { var res = { type: block.id, name: block.name, model: block.model, component: block.component, open: true }; if (block.is_container) { res.is_container = true; res.children = []; } return res; }, searchBlockById: function searchBlockById(id) { /* for(var i =0 ; i < this.blocks.length ; i++ ){ if(this.blocks[i].id == id ){ return this.blocks[i]; } }*/ for (var key in this.blocks) { var block = this.blocks[key]; for (var i = 0; i < block.items.length; i++) { if (block.items[i].id == id) { return block.items[i]; } } } } }, components: { RowBlock: _components_row_vue__WEBPACK_IMPORTED_MODULE_2__.default, ColumnBlock: _components_column_vue__WEBPACK_IMPORTED_MODULE_3__.default, RegularBlock: _components_regular_vue__WEBPACK_IMPORTED_MODULE_4__.default, draggable: (vuedraggable__WEBPACK_IMPORTED_MODULE_0___default()) } }); } /***/ }), /***/ "./node_modules/bootbox/bootbox.all.js": /*!*********************************************!*\ !*** ./node_modules/bootbox/bootbox.all.js ***! \*********************************************/ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @preserve * bootbox.js * version: 5.5.2 * author: Nick Payne <nick@kurai.co.uk> * license: MIT * http://bootboxjs.com/ */ (function (root, factory) { 'use strict'; if (true) { // AMD !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} }(this, function init($, undefined) { 'use strict'; // Polyfills Object.keys, if necessary. // @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys if (!Object.keys) { Object.keys = (function () { var hasOwnProperty = Object.prototype.hasOwnProperty, hasDontEnumBug = !({ toString: null }).propertyIsEnumerable('toString'), dontEnums = [ 'toString', 'toLocaleString', 'valueOf', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'constructor' ], dontEnumsLength = dontEnums.length; return function (obj) { if (typeof obj !== 'function' && (typeof obj !== 'object' || obj === null)) { throw new TypeError('Object.keys called on non-object'); } var result = [], prop, i; for (prop in obj) { if (hasOwnProperty.call(obj, prop)) { result.push(prop); } } if (hasDontEnumBug) { for (i = 0; i < dontEnumsLength; i++) { if (hasOwnProperty.call(obj, dontEnums[i])) { result.push(dontEnums[i]); } } } return result; }; }()); } var exports = {}; var VERSION = '5.5.2'; exports.VERSION = VERSION; var locales = { ar : { OK : 'موافق', CANCEL : 'الغاء', CONFIRM : 'تأكيد' }, bg_BG : { OK : 'Ок', CANCEL : 'Отказ', CONFIRM : 'Потвърждавам' }, br : { OK : 'OK', CANCEL : 'Cancelar', CONFIRM : 'Sim' }, cs : { OK : 'OK', CANCEL : 'Zrušit', CONFIRM : 'Potvrdit' }, da : { OK : 'OK', CANCEL : 'Annuller', CONFIRM : 'Accepter' }, de : { OK : 'OK', CANCEL : 'Abbrechen', CONFIRM : 'Akzeptieren' }, el : { OK : 'Εντάξει', CANCEL : 'Ακύρωση', CONFIRM : 'Επιβεβαίωση' }, en : { OK : 'OK', CANCEL : 'Cancel', CONFIRM : 'OK' }, es : { OK : 'OK', CANCEL : 'Cancelar', CONFIRM : 'Aceptar' }, eu : { OK : 'OK', CANCEL : 'Ezeztatu', CONFIRM : 'Onartu' }, et : { OK : 'OK', CANCEL : 'Katkesta', CONFIRM : 'OK' }, fa : { OK : 'قبول', CANCEL : 'لغو', CONFIRM : 'تایید' }, fi : { OK : 'OK', CANCEL : 'Peruuta', CONFIRM : 'OK' }, fr : { OK : 'OK', CANCEL : 'Annuler', CONFIRM : 'Confirmer' }, he : { OK : 'אישור', CANCEL : 'ביטול', CONFIRM : 'אישור' }, hu : { OK : 'OK', CANCEL : 'Mégsem', CONFIRM : 'Megerősít' }, hr : { OK : 'OK', CANCEL : 'Odustani', CONFIRM : 'Potvrdi' }, id : { OK : 'OK', CANCEL : 'Batal', CONFIRM : 'OK' }, it : { OK : 'OK', CANCEL : 'Annulla', CONFIRM : 'Conferma' }, ja : { OK : 'OK', CANCEL : 'キャンセル', CONFIRM : '確認' }, ka : { OK: 'OK', CANCEL: 'გაუქმება', CONFIRM: 'დადასტურება' }, ko : { OK: 'OK', CANCEL: '취소', CONFIRM: '확인' }, lt : { OK : 'Gerai', CANCEL : 'Atšaukti', CONFIRM : 'Patvirtinti' }, lv : { OK : 'Labi', CANCEL : 'Atcelt', CONFIRM : 'Apstiprināt' }, nl : { OK : 'OK', CANCEL : 'Annuleren', CONFIRM : 'Accepteren' }, no : { OK : 'OK', CANCEL : 'Avbryt', CONFIRM : 'OK' }, pl : { OK : 'OK', CANCEL : 'Anuluj', CONFIRM : 'Potwierdź' }, pt : { OK : 'OK', CANCEL : 'Cancelar', CONFIRM : 'Confirmar' }, ru : { OK : 'OK', CANCEL : 'Отмена', CONFIRM : 'Применить' }, sk : { OK : 'OK', CANCEL : 'Zrušiť', CONFIRM : 'Potvrdiť' }, sl : { OK : 'OK', CANCEL : 'Prekliči', CONFIRM : 'Potrdi' }, sq : { OK : 'OK', CANCEL : 'Anulo', CONFIRM : 'Prano' }, sv : { OK : 'OK', CANCEL : 'Avbryt', CONFIRM : 'OK' }, sw: { OK : 'Sawa', CANCEL : 'Ghairi', CONFIRM: 'Thibitisha' }, ta:{ OK : 'சரி', CANCEL : 'ரத்து செய்', CONFIRM : 'உறுதி செய்' }, th : { OK : 'ตกลง', CANCEL : 'ยกเลิก', CONFIRM : 'ยืนยัน' }, tr : { OK : 'Tamam', CANCEL : 'İptal', CONFIRM : 'Onayla' }, uk : { OK : 'OK', CANCEL : 'Відміна', CONFIRM : 'Прийняти' }, vi : { OK : 'OK', CANCEL : 'Hủy bỏ', CONFIRM : 'Xác nhận' }, zh_CN : { OK : 'OK', CANCEL : '取消', CONFIRM : '确认' }, zh_TW : { OK : 'OK', CANCEL : '取消', CONFIRM : '確認' } }; var templates = { dialog: '<div class="bootbox modal" tabindex="-1" role="dialog" aria-hidden="true">' + '<div class="modal-dialog">' + '<div class="modal-content">' + '<div class="modal-body"><div class="bootbox-body"></div></div>' + '</div>' + '</div>' + '</div>', header: '<div class="modal-header">' + '<h5 class="modal-title"></h5>' + '</div>', footer: '<div class="modal-footer"></div>', closeButton: '<button type="button" class="bootbox-close-button close" aria-hidden="true">×</button>', form: '<form class="bootbox-form"></form>', button: '<button type="button" class="btn"></button>', option: '<option></option>', promptMessage: '<div class="bootbox-prompt-message"></div>', inputs: { text: '<input class="bootbox-input bootbox-input-text form-control" autocomplete="off" type="text" />', textarea: '<textarea class="bootbox-input bootbox-input-textarea form-control"></textarea>', email: '<input class="bootbox-input bootbox-input-email form-control" autocomplete="off" type="email" />', select: '<select class="bootbox-input bootbox-input-select form-control"></select>', checkbox: '<div class="form-check checkbox"><label class="form-check-label"><input class="form-check-input bootbox-input bootbox-input-checkbox" type="checkbox" /></label></div>', radio: '<div class="form-check radio"><label class="form-check-label"><input class="form-check-input bootbox-input bootbox-input-radio" type="radio" name="bootbox-radio" /></label></div>', date: '<input class="bootbox-input bootbox-input-date form-control" autocomplete="off" type="date" />', time: '<input class="bootbox-input bootbox-input-time form-control" autocomplete="off" type="time" />', number: '<input class="bootbox-input bootbox-input-number form-control" autocomplete="off" type="number" />', password: '<input class="bootbox-input bootbox-input-password form-control" autocomplete="off" type="password" />', range: '<input class="bootbox-input bootbox-input-range form-control-range" autocomplete="off" type="range" />' } }; var defaults = { // default language locale: 'en', // show backdrop or not. Default to static so user has to interact with dialog backdrop: 'static', // animate the modal in/out animate: true, // additional class string applied to the top level dialog className: null, // whether or not to include a close button closeButton: true, // show the dialog immediately by default show: true, // dialog container container: 'body', // default value (used by the prompt helper) value: '', // default input type (used by the prompt helper) inputType: 'text', // switch button order from cancel/confirm (default) to confirm/cancel swapButtonOrder: false, // center modal vertically in page centerVertical: false, // Append "multiple" property to the select when using the "prompt" helper multiple: false, // Automatically scroll modal content when height exceeds viewport height scrollable: false, // whether or not to destroy the modal on hide reusable: false }; // PUBLIC FUNCTIONS // ************************************************************************************************************* // Return all currently registered locales, or a specific locale if "name" is defined exports.locales = function (name) { return name ? locales[name] : locales; }; // Register localized strings for the OK, CONFIRM, and CANCEL buttons exports.addLocale = function (name, values) { $.each(['OK', 'CANCEL', 'CONFIRM'], function (_, v) { if (!values[v]) { throw new Error('Please supply a translation for "' + v + '"'); } }); locales[name] = { OK: values.OK, CANCEL: values.CANCEL, CONFIRM: values.CONFIRM }; return exports; }; // Remove a previously-registered locale exports.removeLocale = function (name) { if (name !== 'en') { delete locales[name]; } else { throw new Error('"en" is used as the default and fallback locale and cannot be removed.'); } return exports; }; // Set the default locale exports.setLocale = function (name) { return exports.setDefaults('locale', name); }; // Override default value(s) of Bootbox. exports.setDefaults = function () { var values = {}; if (arguments.length === 2) { // allow passing of single key/value... values[arguments[0]] = arguments[1]; } else { // ... and as an object too values = arguments[0]; } $.extend(defaults, values); return exports; }; // Hides all currently active Bootbox modals exports.hideAll = function () { $('.bootbox').modal('hide'); return exports; }; // Allows the base init() function to be overridden exports.init = function (_$) { return init(_$ || $); }; // CORE HELPER FUNCTIONS // ************************************************************************************************************* // Core dialog function exports.dialog = function (options) { if ($.fn.modal === undefined) { throw new Error( '"$.fn.modal" is not defined; please double check you have included ' + 'the Bootstrap JavaScript library. See https://getbootstrap.com/docs/4.4/getting-started/javascript/ ' + 'for more details.' ); } options = sanitize(options); if ($.fn.modal.Constructor.VERSION) { options.fullBootstrapVersion = $.fn.modal.Constructor.VERSION; var i = options.fullBootstrapVersion.indexOf('.'); options.bootstrap = options.fullBootstrapVersion.substring(0, i); } else { // Assuming version 2.3.2, as that was the last "supported" 2.x version options.bootstrap = '2'; options.fullBootstrapVersion = '2.3.2'; console.warn('Bootbox will *mostly* work with Bootstrap 2, but we do not officially support it. Please upgrade, if possible.'); } var dialog = $(templates.dialog); var innerDialog = dialog.find('.modal-dialog'); var body = dialog.find('.modal-body'); var header = $(templates.header); var footer = $(templates.footer); var buttons = options.buttons; var callbacks = { onEscape: options.onEscape }; body.find('.bootbox-body').html(options.message); // Only attempt to create buttons if at least one has // been defined in the options object if (getKeyLength(options.buttons) > 0) { each(buttons, function (key, b) { var button = $(templates.button); button.data('bb-handler', key); button.addClass(b.className); switch (key) { case 'ok': case 'confirm': button.addClass('bootbox-accept'); break; case 'cancel': button.addClass('bootbox-cancel'); break; } button.html(b.label); footer.append(button); callbacks[key] = b.callback; }); body.after(footer); } if (options.animate === true) { dialog.addClass('fade'); } if (options.className) { dialog.addClass(options.className); } if (options.size) { // Requires Bootstrap 3.1.0 or higher if (options.fullBootstrapVersion.substring(0, 3) < '3.1') { console.warn('"size" requires Bootstrap 3.1.0 or higher. You appear to be using ' + options.fullBootstrapVersion + '. Please upgrade to use this option.'); } switch (options.size) { case 'small': case 'sm': innerDialog.addClass('modal-sm'); break; case 'large': case 'lg': innerDialog.addClass('modal-lg'); break; case 'extra-large': case 'xl': innerDialog.addClass('modal-xl'); // Requires Bootstrap 4.2.0 or higher if (options.fullBootstrapVersion.substring(0, 3) < '4.2') { console.warn('Using size "xl"/"extra-large" requires Bootstrap 4.2.0 or higher. You appear to be using ' + options.fullBootstrapVersion + '. Please upgrade to use this option.'); } break; } } if (options.scrollable) { innerDialog.addClass('modal-dialog-scrollable'); // Requires Bootstrap 4.3.0 or higher if (options.fullBootstrapVersion.substring(0, 3) < '4.3') { console.warn('Using "scrollable" requires Bootstrap 4.3.0 or higher. You appear to be using ' + options.fullBootstrapVersion + '. Please upgrade to use this option.'); } } if (options.title) { body.before(header); dialog.find('.modal-title').html(options.title); } if (options.closeButton) { var closeButton = $(templates.closeButton); if (options.title) { if (options.bootstrap > 3) { dialog.find('.modal-header').append(closeButton); } else { dialog.find('.modal-header').prepend(closeButton); } } else { closeButton.prependTo(body); } } if (options.centerVertical) { innerDialog.addClass('modal-dialog-centered'); // Requires Bootstrap 4.0.0-beta.3 or higher if (options.fullBootstrapVersion < '4.0.0') { console.warn('"centerVertical" requires Bootstrap 4.0.0-beta.3 or higher. You appear to be using ' + options.fullBootstrapVersion + '. Please upgrade to use this option.'); } } // Bootstrap event listeners; these handle extra // setup & teardown required after the underlying // modal has performed certain actions. if(!options.reusable) { // make sure we unbind any listeners once the dialog has definitively been dismissed dialog.one('hide.bs.modal', { dialog: dialog }, unbindModal); } if (options.onHide) { if ($.isFunction(options.onHide)) { dialog.on('hide.bs.modal', options.onHide); } else { throw new Error('Argument supplied to "onHide" must be a function'); } } if(!options.reusable) { dialog.one('hidden.bs.modal', { dialog: dialog }, destroyModal); } if (options.onHidden) { if ($.isFunction(options.onHidden)) { dialog.on('hidden.bs.modal', options.onHidden); } else { throw new Error('Argument supplied to "onHidden" must be a function'); } } if (options.onShow) { if ($.isFunction(options.onShow)) { dialog.on('show.bs.modal', options.onShow); } else { throw new Error('Argument supplied to "onShow" must be a function'); } } dialog.one('shown.bs.modal', { dialog: dialog }, focusPrimaryButton); if (options.onShown) { if ($.isFunction(options.onShown)) { dialog.on('shown.bs.modal', options.onShown); } else { throw new Error('Argument supplied to "onShown" must be a function'); } } // Bootbox event listeners; used to decouple some // behaviours from their respective triggers if (options.backdrop === true) { // A boolean true/false according to the Bootstrap docs // should show a dialog the user can dismiss by clicking on // the background. // We always only ever pass static/false to the actual // $.modal function because with "true" we can't trap // this event (the .modal-backdrop swallows it) // However, we still want to sort-of respect true // and invoke the escape mechanism instead dialog.on('click.dismiss.bs.modal', function (e) { // @NOTE: the target varies in >= 3.3.x releases since the modal backdrop // moved *inside* the outer dialog rather than *alongside* it if (dialog.children('.modal-backdrop').length) { e.currentTarget = dialog.children('.modal-backdrop').get(0); } if (e.target !== e.currentTarget) { return; } dialog.trigger('escape.close.bb'); }); } dialog.on('escape.close.bb', function (e) { // the if statement looks redundant but it isn't; without it // if we *didn't* have an onEscape handler then processCallback // would automatically dismiss the dialog if (callbacks.onEscape) { processCallback(e, dialog, callbacks.onEscape); } }); dialog.on('click', '.modal-footer button:not(.disabled)', function (e) { var callbackKey = $(this).data('bb-handler'); if (callbackKey !== undefined) { // Only process callbacks for buttons we recognize: processCallback(e, dialog, callbacks[callbackKey]); } }); dialog.on('click', '.bootbox-close-button', function (e) { // onEscape might be falsy but that's fine; the fact is // if the user has managed to click the close button we // have to close the dialog, callback or not processCallback(e, dialog, callbacks.onEscape); }); dialog.on('keyup', function (e) { if (e.which === 27) { dialog.trigger('escape.close.bb'); } }); // the remainder of this method simply deals with adding our // dialog element to the DOM, augmenting it with Bootstrap's modal // functionality and then giving the resulting object back // to our caller $(options.container).append(dialog); dialog.modal({ backdrop: options.backdrop, keyboard: false, show: false }); if (options.show) { dialog.modal('show'); } return dialog; }; // Helper function to simulate the native alert() behavior. **NOTE**: This is non-blocking, so any // code that must happen after the alert is dismissed should be placed within the callback function // for this alert. exports.alert = function () { var options; options = mergeDialogOptions('alert', ['ok'], ['message', 'callback'], arguments); // @TODO: can this move inside exports.dialog when we're iterating over each // button and checking its button.callback value instead? if (options.callback && !$.isFunction(options.callback)) { throw new Error('alert requires the "callback" property to be a function when provided'); } // override the ok and escape callback to make sure they just invoke // the single user-supplied one (if provided) options.buttons.ok.callback = options.onEscape = function () { if ($.isFunction(options.callback)) { return options.callback.call(this); } return true; }; return exports.dialog(options); }; // Helper function to simulate the native confirm() behavior. **NOTE**: This is non-blocking, so any // code that must happen after the confirm is dismissed should be placed within the callback function // for this confirm. exports.confirm = function () { var options; options = mergeDialogOptions('confirm', ['cancel', 'confirm'], ['message', 'callback'], arguments); // confirm specific validation; they don't make sense without a callback so make // sure it's present if (!$.isFunction(options.callback)) { throw new Error('confirm requires a callback'); } // overrides; undo anything the user tried to set they shouldn't have options.buttons.cancel.callback = options.onEscape = function () { return options.callback.call(this, false); }; options.buttons.confirm.callback = function () { return options.callback.call(this, true); }; return exports.dialog(options); }; // Helper function to simulate the native prompt() behavior. **NOTE**: This is non-blocking, so any // code that must happen after the prompt is dismissed should be placed within the callback function // for this prompt. exports.prompt = function () { var options; var promptDialog; var form; var input; var shouldShow; var inputOptions; // we have to create our form first otherwise // its value is undefined when gearing up our options // @TODO this could be solved by allowing message to // be a function instead... form = $(templates.form); // prompt defaults are more complex than others in that // users can override more defaults options = mergeDialogOptions('prompt', ['cancel', 'confirm'], ['title', 'callback'], arguments); if (!options.value) { options.value = defaults.value; } if (!options.inputType) { options.inputType = defaults.inputType; } // capture the user's show value; we always set this to false before // spawning the dialog to give us a chance to attach some handlers to // it, but we need to make sure we respect a preference not to show it shouldShow = (options.show === undefined) ? defaults.show : options.show; // This is required prior to calling the dialog builder below - we need to // add an event handler just before the prompt is shown options.show = false; // Handles the 'cancel' action options.buttons.cancel.callback = options.onEscape = function () { return options.callback.call(this, null); }; // Prompt submitted - extract the prompt value. This requires a bit of work, // given the different input types available. options.buttons.confirm.callback = function () { var value; if (options.inputType === 'checkbox') { value = input.find('input:checked').map(function () { return $(this).val(); }).get(); } else if (options.inputType === 'radio') { value = input.find('input:checked').val(); } else { if (input[0].checkValidity && !input[0].checkValidity()) { // prevents button callback from being called return false; } else { if (options.inputType === 'select' && options.multiple === true) { value = input.find('option:selected').map(function () { return $(this).val(); }).get(); } else { value = input.val(); } } } return options.callback.call(this, value); }; // prompt-specific validation if (!options.title) { throw new Error('prompt requires a title'); } if (!$.isFunction(options.callback)) { throw new Error('prompt requires a callback'); } if (!templates.inputs[options.inputType]) { throw new Error('Invalid prompt type'); } // create the input based on the supplied type input = $(templates.inputs[options.inputType]); switch (options.inputType) { case 'text': case 'textarea': case 'email': case 'password': input.val(options.value); if (options.placeholder) { input.attr('placeholder', options.placeholder); } if (options.pattern) { input.attr('pattern', options.pattern); } if (options.maxlength) { input.attr('maxlength', options.maxlength); } if (options.required) { input.prop({ 'required': true }); } if (options.rows && !isNaN(parseInt(options.rows))) { if (options.inputType === 'textarea') { input.attr({ 'rows': options.rows }); } } break; case 'date': case 'time': case 'number': case 'range': input.val(options.value); if (options.placeholder) { input.attr('placeholder', options.placeholder); } if (options.pattern) { input.attr('pattern', options.pattern); } if (options.required) { input.prop({ 'required': true }); } // These input types have extra attributes which affect their input validation. // Warning: For most browsers, date inputs are buggy in their implementation of 'step', so // this attribute will have no effect. Therefore, we don't set the attribute for date inputs. // @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date#Setting_maximum_and_minimum_dates if (options.inputType !== 'date') { if (options.step) { if (options.step === 'any' || (!isNaN(options.step) && parseFloat(options.step) > 0)) { input.attr('step', options.step); } else { throw new Error('"step" must be a valid positive number or the value "any". See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-step for more information.'); } } } if (minAndMaxAreValid(options.inputType, options.min, options.max)) { if (options.min !== undefined) { input.attr('min', options.min); } if (options.max !== undefined) { input.attr('max', options.max); } } break; case 'select': var groups = {}; inputOptions = options.inputOptions || []; if (!$.isArray(inputOptions)) { throw new Error('Please pass an array of input options'); } if (!inputOptions.length) { throw new Error('prompt with "inputType" set to "select" requires at least one option'); } // placeholder is not actually a valid attribute for select, // but we'll allow it, assuming it might be used for a plugin if (options.placeholder) { input.attr('placeholder', options.placeholder); } if (options.required) { input.prop({ 'required': true }); } if (options.multiple) { input.prop({ 'multiple': true }); } each(inputOptions, function (_, option) { // assume the element to attach to is the input... var elem = input; if (option.value === undefined || option.text === undefined) { throw new Error('each option needs a "value" property and a "text" property'); } // ... but override that element if this option sits in a group if (option.group) { // initialise group if necessary if (!groups[option.group]) { groups[option.group] = $('<optgroup />').attr('label', option.group); } elem = groups[option.group]; } var o = $(templates.option); o.attr('value', option.value).text(option.text); elem.append(o); }); each(groups, function (_, group) { input.append(group); }); // safe to set a select's value as per a normal input input.val(options.value); break; case 'checkbox': var checkboxValues = $.isArray(options.value) ? options.value : [options.value]; inputOptions = options.inputOptions || []; if (!inputOptions.length) { throw new Error('prompt with "inputType" set to "checkbox" requires at least one option'); } // checkboxes have to nest within a containing element, so // they break the rules a bit and we end up re-assigning // our 'input' element to this container instead input = $('<div class="bootbox-checkbox-list"></div>'); each(inputOptions, function (_, option) { if (option.value === undefined || option.text === undefined) { throw new Error('each option needs a "value" property and a "text" property'); } var checkbox = $(templates.inputs[options.inputType]); checkbox.find('input').attr('value', option.value); checkbox.find('label').append('\n' + option.text); // we've ensured values is an array so we can always iterate over it each(checkboxValues, function (_, value) { if (value === option.value) { checkbox.find('input').prop('checked', true); } }); input.append(checkbox); }); break; case 'radio': // Make sure that value is not an array (only a single radio can ever be checked) if (options.value !== undefined && $.isArray(options.value)) { throw new Error('prompt with "inputType" set to "radio" requires a single, non-array value for "value"'); } inputOptions = options.inputOptions || []; if (!inputOptions.length) { throw new Error('prompt with "inputType" set to "radio" requires at least one option'); } // Radiobuttons have to nest within a containing element, so // they break the rules a bit and we end up re-assigning // our 'input' element to this container instead input = $('<div class="bootbox-radiobutton-list"></div>'); // Radiobuttons should always have an initial checked input checked in a "group". // If value is undefined or doesn't match an input option, select the first radiobutton var checkFirstRadio = true; each(inputOptions, function (_, option) { if (option.value === undefined || option.text === undefined) { throw new Error('each option needs a "value" property and a "text" property'); } var radio = $(templates.inputs[options.inputType]); radio.find('input').attr('value', option.value); radio.find('label').append('\n' + option.text); if (options.value !== undefined) { if (option.value === options.value) { radio.find('input').prop('checked', true); checkFirstRadio = false; } } input.append(radio); }); if (checkFirstRadio) { input.find('input[type="radio"]').first().prop('checked', true); } break; } // now place it in our form form.append(input); form.on('submit', function (e) { e.preventDefault(); // Fix for SammyJS (or similar JS routing library) hijacking the form post. e.stopPropagation(); // @TODO can we actually click *the* button object instead? // e.g. buttons.confirm.click() or similar promptDialog.find('.bootbox-accept').trigger('click'); }); if ($.trim(options.message) !== '') { // Add the form to whatever content the user may have added. var message = $(templates.promptMessage).html(options.message); form.prepend(message); options.message = form; } else { options.message = form; } // Generate the dialog promptDialog = exports.dialog(options); // clear the existing handler focusing the submit button... promptDialog.off('shown.bs.modal', focusPrimaryButton); // ...and replace it with one focusing our input, if possible promptDialog.on('shown.bs.modal', function () { // need the closure here since input isn't // an object otherwise input.focus(); }); if (shouldShow === true) { promptDialog.modal('show'); } return promptDialog; }; // INTERNAL FUNCTIONS // ************************************************************************************************************* // Map a flexible set of arguments into a single returned object // If args.length is already one just return it, otherwise // use the properties argument to map the unnamed args to // object properties. // So in the latter case: // mapArguments(["foo", $.noop], ["message", "callback"]) // -> { message: "foo", callback: $.noop } function mapArguments(args, properties) { var argn = args.length; var options = {}; if (argn < 1 || argn > 2) { throw new Error('Invalid argument length'); } if (argn === 2 || typeof args[0] === 'string') { options[properties[0]] = args[0]; options[properties[1]] = args[1]; } else { options = args[0]; } return options; } // Merge a set of default dialog options with user supplied arguments function mergeArguments(defaults, args, properties) { return $.extend( // deep merge true, // ensure the target is an empty, unreferenced object {}, // the base options object for this type of dialog (often just buttons) defaults, // args could be an object or array; if it's an array properties will // map it to a proper options object mapArguments( args, properties ) ); } // This entry-level method makes heavy use of composition to take a simple // range of inputs and return valid options suitable for passing to bootbox.dialog function mergeDialogOptions(className, labels, properties, args) { var locale; if (args && args[0]) { locale = args[0].locale || defaults.locale; var swapButtons = args[0].swapButtonOrder || defaults.swapButtonOrder; if (swapButtons) { labels = labels.reverse(); } } // build up a base set of dialog properties var baseOptions = { className: 'bootbox-' + className, buttons: createLabels(labels, locale) }; // Ensure the buttons properties generated, *after* merging // with user args are still valid against the supplied labels return validateButtons( // merge the generated base properties with user supplied arguments mergeArguments( baseOptions, args, // if args.length > 1, properties specify how each arg maps to an object key properties ), labels ); } // Checks each button object to see if key is valid. // This function will only be called by the alert, confirm, and prompt helpers. function validateButtons(options, buttons) { var allowedButtons = {}; each(buttons, function (key, value) { allowedButtons[value] = true; }); each(options.buttons, function (key) { if (allowedButtons[key] === undefined) { throw new Error('button key "' + key + '" is not allowed (options are ' + buttons.join(' ') + ')'); } }); return options; } // From a given list of arguments, return a suitable object of button labels. // All this does is normalise the given labels and translate them where possible. // e.g. "ok", "confirm" -> { ok: "OK", cancel: "Annuleren" } function createLabels(labels, locale) { var buttons = {}; for (var i = 0, j = labels.length; i < j; i++) { var argument = labels[i]; var key = argument.toLowerCase(); var value = argument.toUpperCase(); buttons[key] = { label: getText(value, locale) }; } return buttons; } // Get localized text from a locale. Defaults to 'en' locale if no locale // provided or a non-registered locale is requested function getText(key, locale) { var labels = locales[locale]; return labels ? labels[key] : locales.en[key]; } // Filter and tidy up any user supplied parameters to this dialog. // Also looks for any shorthands used and ensures that the options // which are returned are all normalized properly function sanitize(options) { var buttons; var total; if (typeof options !== 'object') { throw new Error('Please supply an object of options'); } if (!options.message) { throw new Error('"message" option must not be null or an empty string.'); } // make sure any supplied options take precedence over defaults options = $.extend({}, defaults, options); //make sure backdrop is either true, false, or 'static' if (!options.backdrop) { options.backdrop = (options.backdrop === false || options.backdrop === 0) ? false : 'static'; } else { options.backdrop = typeof options.backdrop === 'string' && options.backdrop.toLowerCase() === 'static' ? 'static' : true; } // no buttons is still a valid dialog but it's cleaner to always have // a buttons object to iterate over, even if it's empty if (!options.buttons) { options.buttons = {}; } buttons = options.buttons; total = getKeyLength(buttons); each(buttons, function (key, button, index) { if ($.isFunction(button)) { // short form, assume value is our callback. Since button // isn't an object it isn't a reference either so re-assign it button = buttons[key] = { callback: button }; } // before any further checks make sure by now button is the correct type if ($.type(button) !== 'object') { throw new Error('button with key "' + key + '" must be an object'); } if (!button.label) { // the lack of an explicit label means we'll assume the key is good enough button.label = key; } if (!button.className) { var isPrimary = false; if (options.swapButtonOrder) { isPrimary = index === 0; } else { isPrimary = index === total - 1; } if (total <= 2 && isPrimary) { // always add a primary to the main option in a one or two-button dialog button.className = 'btn-primary'; } else { // adding both classes allows us to target both BS3 and BS4 without needing to check the version button.className = 'btn-secondary btn-default'; } } }); return options; } // Returns a count of the properties defined on the object function getKeyLength(obj) { return Object.keys(obj).length; } // Tiny wrapper function around jQuery.each; just adds index as the third parameter function each(collection, iterator) { var index = 0; $.each(collection, function (key, value) { iterator(key, value, index++); }); } function focusPrimaryButton(e) { e.data.dialog.find('.bootbox-accept').first().trigger('focus'); } function destroyModal(e) { // ensure we don't accidentally intercept hidden events triggered // by children of the current dialog. We shouldn't need to handle this anymore, // now that Bootstrap namespaces its events, but still worth doing. if (e.target === e.data.dialog[0]) { e.data.dialog.remove(); } } function unbindModal(e) { if (e.target === e.data.dialog[0]) { e.data.dialog.off('escape.close.bb'); e.data.dialog.off('click'); } } // Handle the invoked dialog callback function processCallback(e, dialog, callback) { e.stopPropagation(); e.preventDefault(); // by default we assume a callback will get rid of the dialog, // although it is given the opportunity to override this // so, if the callback can be invoked and it *explicitly returns false* // then we'll set a flag to keep the dialog active... var preserveDialog = $.isFunction(callback) && callback.call(dialog, e) === false; // ... otherwise we'll bin it if (!preserveDialog) { dialog.modal('hide'); } } // Validate `min` and `max` values based on the current `inputType` value function minAndMaxAreValid(type, min, max) { var result = false; var minValid = true; var maxValid = true; if (type === 'date') { if (min !== undefined && !(minValid = dateIsValid(min))) { console.warn('Browsers which natively support the "date" input type expect date values to be of the form "YYYY-MM-DD" (see ISO-8601 https://www.iso.org/iso-8601-date-and-time-format.html). Bootbox does not enforce this rule, but your min value may not be enforced by this browser.'); } else if (max !== undefined && !(maxValid = dateIsValid(max))) { console.warn('Browsers which natively support the "date" input type expect date values to be of the form "YYYY-MM-DD" (see ISO-8601 https://www.iso.org/iso-8601-date-and-time-format.html). Bootbox does not enforce this rule, but your max value may not be enforced by this browser.'); } } else if (type === 'time') { if (min !== undefined && !(minValid = timeIsValid(min))) { throw new Error('"min" is not a valid time. See https://www.w3.org/TR/2012/WD-html-markup-20120315/datatypes.html#form.data.time for more information.'); } else if (max !== undefined && !(maxValid = timeIsValid(max))) { throw new Error('"max" is not a valid time. See https://www.w3.org/TR/2012/WD-html-markup-20120315/datatypes.html#form.data.time for more information.'); } } else { if (min !== undefined && isNaN(min)) { minValid = false; throw new Error('"min" must be a valid number. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-min for more information.'); } if (max !== undefined && isNaN(max)) { maxValid = false; throw new Error('"max" must be a valid number. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-max for more information.'); } } if (minValid && maxValid) { if (max <= min) { throw new Error('"max" must be greater than "min". See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-max for more information.'); } else { result = true; } } return result; } function timeIsValid(value) { return /([01][0-9]|2[0-3]):[0-5][0-9]?:[0-5][0-9]/.test(value); } function dateIsValid(value) { return /(\d{4})-(\d{2})-(\d{2})/.test(value); } // The Bootbox object return exports; })); /***/ }), /***/ "./node_modules/bootstrap/dist/js/bootstrap.js": /*!*****************************************************!*\ !*** ./node_modules/bootstrap/dist/js/bootstrap.js ***! \*****************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /*! * Bootstrap v4.6.0 (https://getbootstrap.com/) * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ (function (global, factory) { true ? factory(exports, __webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"), __webpack_require__(/*! popper.js */ "./node_modules/popper.js/dist/esm/popper.js")) : 0; }(this, (function (exports, $, Popper) { 'use strict'; function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var $__default = /*#__PURE__*/_interopDefaultLegacy($); var Popper__default = /*#__PURE__*/_interopDefaultLegacy(Popper); function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } /** * -------------------------------------------------------------------------- * Bootstrap (v4.6.0): util.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ /** * ------------------------------------------------------------------------ * Private TransitionEnd Helpers * ------------------------------------------------------------------------ */ var TRANSITION_END = 'transitionend'; var MAX_UID = 1000000; var MILLISECONDS_MULTIPLIER = 1000; // Shoutout AngusCroll (https://goo.gl/pxwQGp) function toType(obj) { if (obj === null || typeof obj === 'undefined') { return "" + obj; } return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase(); } function getSpecialTransitionEndEvent() { return { bindType: TRANSITION_END, delegateType: TRANSITION_END, handle: function handle(event) { if ($__default['default'](event.target).is(this)) { return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params } return undefined; } }; } function transitionEndEmulator(duration) { var _this = this; var called = false; $__default['default'](this).one(Util.TRANSITION_END, function () { called = true; }); setTimeout(function () { if (!called) { Util.triggerTransitionEnd(_this); } }, duration); return this; } function setTransitionEndSupport() { $__default['default'].fn.emulateTransitionEnd = transitionEndEmulator; $__default['default'].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent(); } /** * -------------------------------------------------------------------------- * Public Util Api * -------------------------------------------------------------------------- */ var Util = { TRANSITION_END: 'bsTransitionEnd', getUID: function getUID(prefix) { do { prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here } while (document.getElementById(prefix)); return prefix; }, getSelectorFromElement: function getSelectorFromElement(element) { var selector = element.getAttribute('data-target'); if (!selector || selector === '#') { var hrefAttr = element.getAttribute('href'); selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : ''; } try { return document.querySelector(selector) ? selector : null; } catch (_) { return null; } }, getTransitionDurationFromElement: function getTransitionDurationFromElement(element) { if (!element) { return 0; } // Get transition-duration of the element var transitionDuration = $__default['default'](element).css('transition-duration'); var transitionDelay = $__default['default'](element).css('transition-delay'); var floatTransitionDuration = parseFloat(transitionDuration); var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found if (!floatTransitionDuration && !floatTransitionDelay) { return 0; } // If multiple durations are defined, take the first transitionDuration = transitionDuration.split(',')[0]; transitionDelay = transitionDelay.split(',')[0]; return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER; }, reflow: function reflow(element) { return element.offsetHeight; }, triggerTransitionEnd: function triggerTransitionEnd(element) { $__default['default'](element).trigger(TRANSITION_END); }, supportsTransitionEnd: function supportsTransitionEnd() { return Boolean(TRANSITION_END); }, isElement: function isElement(obj) { return (obj[0] || obj).nodeType; }, typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) { for (var property in configTypes) { if (Object.prototype.hasOwnProperty.call(configTypes, property)) { var expectedTypes = configTypes[property]; var value = config[property]; var valueType = value && Util.isElement(value) ? 'element' : toType(value); if (!new RegExp(expectedTypes).test(valueType)) { throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\".")); } } } }, findShadowRoot: function findShadowRoot(element) { if (!document.documentElement.attachShadow) { return null; } // Can find the shadow root otherwise it'll return the document if (typeof element.getRootNode === 'function') { var root = element.getRootNode(); return root instanceof ShadowRoot ? root : null; } if (element instanceof ShadowRoot) { return element; } // when we don't find a shadow root if (!element.parentNode) { return null; } return Util.findShadowRoot(element.parentNode); }, jQueryDetection: function jQueryDetection() { if (typeof $__default['default'] === 'undefined') { throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.'); } var version = $__default['default'].fn.jquery.split(' ')[0].split('.'); var minMajor = 1; var ltMajor = 2; var minMinor = 9; var minPatch = 1; var maxMajor = 4; if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) { throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0'); } } }; Util.jQueryDetection(); setTransitionEndSupport(); /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME = 'alert'; var VERSION = '4.6.0'; var DATA_KEY = 'bs.alert'; var EVENT_KEY = "." + DATA_KEY; var DATA_API_KEY = '.data-api'; var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME]; var SELECTOR_DISMISS = '[data-dismiss="alert"]'; var EVENT_CLOSE = "close" + EVENT_KEY; var EVENT_CLOSED = "closed" + EVENT_KEY; var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY; var CLASS_NAME_ALERT = 'alert'; var CLASS_NAME_FADE = 'fade'; var CLASS_NAME_SHOW = 'show'; /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ var Alert = /*#__PURE__*/function () { function Alert(element) { this._element = element; } // Getters var _proto = Alert.prototype; // Public _proto.close = function close(element) { var rootElement = this._element; if (element) { rootElement = this._getRootElement(element); } var customEvent = this._triggerCloseEvent(rootElement); if (customEvent.isDefaultPrevented()) { return; } this._removeElement(rootElement); }; _proto.dispose = function dispose() { $__default['default'].removeData(this._element, DATA_KEY); this._element = null; } // Private ; _proto._getRootElement = function _getRootElement(element) { var selector = Util.getSelectorFromElement(element); var parent = false; if (selector) { parent = document.querySelector(selector); } if (!parent) { parent = $__default['default'](element).closest("." + CLASS_NAME_ALERT)[0]; } return parent; }; _proto._triggerCloseEvent = function _triggerCloseEvent(element) { var closeEvent = $__default['default'].Event(EVENT_CLOSE); $__default['default'](element).trigger(closeEvent); return closeEvent; }; _proto._removeElement = function _removeElement(element) { var _this = this; $__default['default'](element).removeClass(CLASS_NAME_SHOW); if (!$__default['default'](element).hasClass(CLASS_NAME_FADE)) { this._destroyElement(element); return; } var transitionDuration = Util.getTransitionDurationFromElement(element); $__default['default'](element).one(Util.TRANSITION_END, function (event) { return _this._destroyElement(element, event); }).emulateTransitionEnd(transitionDuration); }; _proto._destroyElement = function _destroyElement(element) { $__default['default'](element).detach().trigger(EVENT_CLOSED).remove(); } // Static ; Alert._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { var $element = $__default['default'](this); var data = $element.data(DATA_KEY); if (!data) { data = new Alert(this); $element.data(DATA_KEY, data); } if (config === 'close') { data[config](this); } }); }; Alert._handleDismiss = function _handleDismiss(alertInstance) { return function (event) { if (event) { event.preventDefault(); } alertInstance.close(this); }; }; _createClass(Alert, null, [{ key: "VERSION", get: function get() { return VERSION; } }]); return Alert; }(); /** * ------------------------------------------------------------------------ * Data Api implementation * ------------------------------------------------------------------------ */ $__default['default'](document).on(EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert._handleDismiss(new Alert())); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $__default['default'].fn[NAME] = Alert._jQueryInterface; $__default['default'].fn[NAME].Constructor = Alert; $__default['default'].fn[NAME].noConflict = function () { $__default['default'].fn[NAME] = JQUERY_NO_CONFLICT; return Alert._jQueryInterface; }; /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME$1 = 'button'; var VERSION$1 = '4.6.0'; var DATA_KEY$1 = 'bs.button'; var EVENT_KEY$1 = "." + DATA_KEY$1; var DATA_API_KEY$1 = '.data-api'; var JQUERY_NO_CONFLICT$1 = $__default['default'].fn[NAME$1]; var CLASS_NAME_ACTIVE = 'active'; var CLASS_NAME_BUTTON = 'btn'; var CLASS_NAME_FOCUS = 'focus'; var SELECTOR_DATA_TOGGLE_CARROT = '[data-toggle^="button"]'; var SELECTOR_DATA_TOGGLES = '[data-toggle="buttons"]'; var SELECTOR_DATA_TOGGLE = '[data-toggle="button"]'; var SELECTOR_DATA_TOGGLES_BUTTONS = '[data-toggle="buttons"] .btn'; var SELECTOR_INPUT = 'input:not([type="hidden"])'; var SELECTOR_ACTIVE = '.active'; var SELECTOR_BUTTON = '.btn'; var EVENT_CLICK_DATA_API$1 = "click" + EVENT_KEY$1 + DATA_API_KEY$1; var EVENT_FOCUS_BLUR_DATA_API = "focus" + EVENT_KEY$1 + DATA_API_KEY$1 + " " + ("blur" + EVENT_KEY$1 + DATA_API_KEY$1); var EVENT_LOAD_DATA_API = "load" + EVENT_KEY$1 + DATA_API_KEY$1; /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ var Button = /*#__PURE__*/function () { function Button(element) { this._element = element; this.shouldAvoidTriggerChange = false; } // Getters var _proto = Button.prototype; // Public _proto.toggle = function toggle() { var triggerChangeEvent = true; var addAriaPressed = true; var rootElement = $__default['default'](this._element).closest(SELECTOR_DATA_TOGGLES)[0]; if (rootElement) { var input = this._element.querySelector(SELECTOR_INPUT); if (input) { if (input.type === 'radio') { if (input.checked && this._element.classList.contains(CLASS_NAME_ACTIVE)) { triggerChangeEvent = false; } else { var activeElement = rootElement.querySelector(SELECTOR_ACTIVE); if (activeElement) { $__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE); } } } if (triggerChangeEvent) { // if it's not a radio button or checkbox don't add a pointless/invalid checked property to the input if (input.type === 'checkbox' || input.type === 'radio') { input.checked = !this._element.classList.contains(CLASS_NAME_ACTIVE); } if (!this.shouldAvoidTriggerChange) { $__default['default'](input).trigger('change'); } } input.focus(); addAriaPressed = false; } } if (!(this._element.hasAttribute('disabled') || this._element.classList.contains('disabled'))) { if (addAriaPressed) { this._element.setAttribute('aria-pressed', !this._element.classList.contains(CLASS_NAME_ACTIVE)); } if (triggerChangeEvent) { $__default['default'](this._element).toggleClass(CLASS_NAME_ACTIVE); } } }; _proto.dispose = function dispose() { $__default['default'].removeData(this._element, DATA_KEY$1); this._element = null; } // Static ; Button._jQueryInterface = function _jQueryInterface(config, avoidTriggerChange) { return this.each(function () { var $element = $__default['default'](this); var data = $element.data(DATA_KEY$1); if (!data) { data = new Button(this); $element.data(DATA_KEY$1, data); } data.shouldAvoidTriggerChange = avoidTriggerChange; if (config === 'toggle') { data[config](); } }); }; _createClass(Button, null, [{ key: "VERSION", get: function get() { return VERSION$1; } }]); return Button; }(); /** * ------------------------------------------------------------------------ * Data Api implementation * ------------------------------------------------------------------------ */ $__default['default'](document).on(EVENT_CLICK_DATA_API$1, SELECTOR_DATA_TOGGLE_CARROT, function (event) { var button = event.target; var initialButton = button; if (!$__default['default'](button).hasClass(CLASS_NAME_BUTTON)) { button = $__default['default'](button).closest(SELECTOR_BUTTON)[0]; } if (!button || button.hasAttribute('disabled') || button.classList.contains('disabled')) { event.preventDefault(); // work around Firefox bug #1540995 } else { var inputBtn = button.querySelector(SELECTOR_INPUT); if (inputBtn && (inputBtn.hasAttribute('disabled') || inputBtn.classList.contains('disabled'))) { event.preventDefault(); // work around Firefox bug #1540995 return; } if (initialButton.tagName === 'INPUT' || button.tagName !== 'LABEL') { Button._jQueryInterface.call($__default['default'](button), 'toggle', initialButton.tagName === 'INPUT'); } } }).on(EVENT_FOCUS_BLUR_DATA_API, SELECTOR_DATA_TOGGLE_CARROT, function (event) { var button = $__default['default'](event.target).closest(SELECTOR_BUTTON)[0]; $__default['default'](button).toggleClass(CLASS_NAME_FOCUS, /^focus(in)?$/.test(event.type)); }); $__default['default'](window).on(EVENT_LOAD_DATA_API, function () { // ensure correct active class is set to match the controls' actual values/states // find all checkboxes/readio buttons inside data-toggle groups var buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLES_BUTTONS)); for (var i = 0, len = buttons.length; i < len; i++) { var button = buttons[i]; var input = button.querySelector(SELECTOR_INPUT); if (input.checked || input.hasAttribute('checked')) { button.classList.add(CLASS_NAME_ACTIVE); } else { button.classList.remove(CLASS_NAME_ACTIVE); } } // find all button toggles buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE)); for (var _i = 0, _len = buttons.length; _i < _len; _i++) { var _button = buttons[_i]; if (_button.getAttribute('aria-pressed') === 'true') { _button.classList.add(CLASS_NAME_ACTIVE); } else { _button.classList.remove(CLASS_NAME_ACTIVE); } } }); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $__default['default'].fn[NAME$1] = Button._jQueryInterface; $__default['default'].fn[NAME$1].Constructor = Button; $__default['default'].fn[NAME$1].noConflict = function () { $__default['default'].fn[NAME$1] = JQUERY_NO_CONFLICT$1; return Button._jQueryInterface; }; /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME$2 = 'carousel'; var VERSION$2 = '4.6.0'; var DATA_KEY$2 = 'bs.carousel'; var EVENT_KEY$2 = "." + DATA_KEY$2; var DATA_API_KEY$2 = '.data-api'; var JQUERY_NO_CONFLICT$2 = $__default['default'].fn[NAME$2]; var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key var TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch var SWIPE_THRESHOLD = 40; var Default = { interval: 5000, keyboard: true, slide: false, pause: 'hover', wrap: true, touch: true }; var DefaultType = { interval: '(number|boolean)', keyboard: 'boolean', slide: '(boolean|string)', pause: '(string|boolean)', wrap: 'boolean', touch: 'boolean' }; var DIRECTION_NEXT = 'next'; var DIRECTION_PREV = 'prev'; var DIRECTION_LEFT = 'left'; var DIRECTION_RIGHT = 'right'; var EVENT_SLIDE = "slide" + EVENT_KEY$2; var EVENT_SLID = "slid" + EVENT_KEY$2; var EVENT_KEYDOWN = "keydown" + EVENT_KEY$2; var EVENT_MOUSEENTER = "mouseenter" + EVENT_KEY$2; var EVENT_MOUSELEAVE = "mouseleave" + EVENT_KEY$2; var EVENT_TOUCHSTART = "touchstart" + EVENT_KEY$2; var EVENT_TOUCHMOVE = "touchmove" + EVENT_KEY$2; var EVENT_TOUCHEND = "touchend" + EVENT_KEY$2; var EVENT_POINTERDOWN = "pointerdown" + EVENT_KEY$2; var EVENT_POINTERUP = "pointerup" + EVENT_KEY$2; var EVENT_DRAG_START = "dragstart" + EVENT_KEY$2; var EVENT_LOAD_DATA_API$1 = "load" + EVENT_KEY$2 + DATA_API_KEY$2; var EVENT_CLICK_DATA_API$2 = "click" + EVENT_KEY$2 + DATA_API_KEY$2; var CLASS_NAME_CAROUSEL = 'carousel'; var CLASS_NAME_ACTIVE$1 = 'active'; var CLASS_NAME_SLIDE = 'slide'; var CLASS_NAME_RIGHT = 'carousel-item-right'; var CLASS_NAME_LEFT = 'carousel-item-left'; var CLASS_NAME_NEXT = 'carousel-item-next'; var CLASS_NAME_PREV = 'carousel-item-prev'; var CLASS_NAME_POINTER_EVENT = 'pointer-event'; var SELECTOR_ACTIVE$1 = '.active'; var SELECTOR_ACTIVE_ITEM = '.active.carousel-item'; var SELECTOR_ITEM = '.carousel-item'; var SELECTOR_ITEM_IMG = '.carousel-item img'; var SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev'; var SELECTOR_INDICATORS = '.carousel-indicators'; var SELECTOR_DATA_SLIDE = '[data-slide], [data-slide-to]'; var SELECTOR_DATA_RIDE = '[data-ride="carousel"]'; var PointerType = { TOUCH: 'touch', PEN: 'pen' }; /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ var Carousel = /*#__PURE__*/function () { function Carousel(element, config) { this._items = null; this._interval = null; this._activeElement = null; this._isPaused = false; this._isSliding = false; this.touchTimeout = null; this.touchStartX = 0; this.touchDeltaX = 0; this._config = this._getConfig(config); this._element = element; this._indicatorsElement = this._element.querySelector(SELECTOR_INDICATORS); this._touchSupported = 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0; this._pointerEvent = Boolean(window.PointerEvent || window.MSPointerEvent); this._addEventListeners(); } // Getters var _proto = Carousel.prototype; // Public _proto.next = function next() { if (!this._isSliding) { this._slide(DIRECTION_NEXT); } }; _proto.nextWhenVisible = function nextWhenVisible() { var $element = $__default['default'](this._element); // Don't call next when the page isn't visible // or the carousel or its parent isn't visible if (!document.hidden && $element.is(':visible') && $element.css('visibility') !== 'hidden') { this.next(); } }; _proto.prev = function prev() { if (!this._isSliding) { this._slide(DIRECTION_PREV); } }; _proto.pause = function pause(event) { if (!event) { this._isPaused = true; } if (this._element.querySelector(SELECTOR_NEXT_PREV)) { Util.triggerTransitionEnd(this._element); this.cycle(true); } clearInterval(this._interval); this._interval = null; }; _proto.cycle = function cycle(event) { if (!event) { this._isPaused = false; } if (this._interval) { clearInterval(this._interval); this._interval = null; } if (this._config.interval && !this._isPaused) { this._updateInterval(); this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval); } }; _proto.to = function to(index) { var _this = this; this._activeElement = this._element.querySelector(SELECTOR_ACTIVE_ITEM); var activeIndex = this._getItemIndex(this._activeElement); if (index > this._items.length - 1 || index < 0) { return; } if (this._isSliding) { $__default['default'](this._element).one(EVENT_SLID, function () { return _this.to(index); }); return; } if (activeIndex === index) { this.pause(); this.cycle(); return; } var direction = index > activeIndex ? DIRECTION_NEXT : DIRECTION_PREV; this._slide(direction, this._items[index]); }; _proto.dispose = function dispose() { $__default['default'](this._element).off(EVENT_KEY$2); $__default['default'].removeData(this._element, DATA_KEY$2); this._items = null; this._config = null; this._element = null; this._interval = null; this._isPaused = null; this._isSliding = null; this._activeElement = null; this._indicatorsElement = null; } // Private ; _proto._getConfig = function _getConfig(config) { config = _extends({}, Default, config); Util.typeCheckConfig(NAME$2, config, DefaultType); return config; }; _proto._handleSwipe = function _handleSwipe() { var absDeltax = Math.abs(this.touchDeltaX); if (absDeltax <= SWIPE_THRESHOLD) { return; } var direction = absDeltax / this.touchDeltaX; this.touchDeltaX = 0; // swipe left if (direction > 0) { this.prev(); } // swipe right if (direction < 0) { this.next(); } }; _proto._addEventListeners = function _addEventListeners() { var _this2 = this; if (this._config.keyboard) { $__default['default'](this._element).on(EVENT_KEYDOWN, function (event) { return _this2._keydown(event); }); } if (this._config.pause === 'hover') { $__default['default'](this._element).on(EVENT_MOUSEENTER, function (event) { return _this2.pause(event); }).on(EVENT_MOUSELEAVE, function (event) { return _this2.cycle(event); }); } if (this._config.touch) { this._addTouchEventListeners(); } }; _proto._addTouchEventListeners = function _addTouchEventListeners() { var _this3 = this; if (!this._touchSupported) { return; } var start = function start(event) { if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) { _this3.touchStartX = event.originalEvent.clientX; } else if (!_this3._pointerEvent) { _this3.touchStartX = event.originalEvent.touches[0].clientX; } }; var move = function move(event) { // ensure swiping with one touch and not pinching if (event.originalEvent.touches && event.originalEvent.touches.length > 1) { _this3.touchDeltaX = 0; } else { _this3.touchDeltaX = event.originalEvent.touches[0].clientX - _this3.touchStartX; } }; var end = function end(event) { if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) { _this3.touchDeltaX = event.originalEvent.clientX - _this3.touchStartX; } _this3._handleSwipe(); if (_this3._config.pause === 'hover') { // If it's a touch-enabled device, mouseenter/leave are fired as // part of the mouse compatibility events on first tap - the carousel // would stop cycling until user tapped out of it; // here, we listen for touchend, explicitly pause the carousel // (as if it's the second time we tap on it, mouseenter compat event // is NOT fired) and after a timeout (to allow for mouse compatibility // events to fire) we explicitly restart cycling _this3.pause(); if (_this3.touchTimeout) { clearTimeout(_this3.touchTimeout); } _this3.touchTimeout = setTimeout(function (event) { return _this3.cycle(event); }, TOUCHEVENT_COMPAT_WAIT + _this3._config.interval); } }; $__default['default'](this._element.querySelectorAll(SELECTOR_ITEM_IMG)).on(EVENT_DRAG_START, function (e) { return e.preventDefault(); }); if (this._pointerEvent) { $__default['default'](this._element).on(EVENT_POINTERDOWN, function (event) { return start(event); }); $__default['default'](this._element).on(EVENT_POINTERUP, function (event) { return end(event); }); this._element.classList.add(CLASS_NAME_POINTER_EVENT); } else { $__default['default'](this._element).on(EVENT_TOUCHSTART, function (event) { return start(event); }); $__default['default'](this._element).on(EVENT_TOUCHMOVE, function (event) { return move(event); }); $__default['default'](this._element).on(EVENT_TOUCHEND, function (event) { return end(event); }); } }; _proto._keydown = function _keydown(event) { if (/input|textarea/i.test(event.target.tagName)) { return; } switch (event.which) { case ARROW_LEFT_KEYCODE: event.preventDefault(); this.prev(); break; case ARROW_RIGHT_KEYCODE: event.preventDefault(); this.next(); break; } }; _proto._getItemIndex = function _getItemIndex(element) { this._items = element && element.parentNode ? [].slice.call(element.parentNode.querySelectorAll(SELECTOR_ITEM)) : []; return this._items.indexOf(element); }; _proto._getItemByDirection = function _getItemByDirection(direction, activeElement) { var isNextDirection = direction === DIRECTION_NEXT; var isPrevDirection = direction === DIRECTION_PREV; var activeIndex = this._getItemIndex(activeElement); var lastItemIndex = this._items.length - 1; var isGoingToWrap = isPrevDirection && activeIndex === 0 || isNextDirection && activeIndex === lastItemIndex; if (isGoingToWrap && !this._config.wrap) { return activeElement; } var delta = direction === DIRECTION_PREV ? -1 : 1; var itemIndex = (activeIndex + delta) % this._items.length; return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex]; }; _proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) { var targetIndex = this._getItemIndex(relatedTarget); var fromIndex = this._getItemIndex(this._element.querySelector(SELECTOR_ACTIVE_ITEM)); var slideEvent = $__default['default'].Event(EVENT_SLIDE, { relatedTarget: relatedTarget, direction: eventDirectionName, from: fromIndex, to: targetIndex }); $__default['default'](this._element).trigger(slideEvent); return slideEvent; }; _proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) { if (this._indicatorsElement) { var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(SELECTOR_ACTIVE$1)); $__default['default'](indicators).removeClass(CLASS_NAME_ACTIVE$1); var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)]; if (nextIndicator) { $__default['default'](nextIndicator).addClass(CLASS_NAME_ACTIVE$1); } } }; _proto._updateInterval = function _updateInterval() { var element = this._activeElement || this._element.querySelector(SELECTOR_ACTIVE_ITEM); if (!element) { return; } var elementInterval = parseInt(element.getAttribute('data-interval'), 10); if (elementInterval) { this._config.defaultInterval = this._config.defaultInterval || this._config.interval; this._config.interval = elementInterval; } else { this._config.interval = this._config.defaultInterval || this._config.interval; } }; _proto._slide = function _slide(direction, element) { var _this4 = this; var activeElement = this._element.querySelector(SELECTOR_ACTIVE_ITEM); var activeElementIndex = this._getItemIndex(activeElement); var nextElement = element || activeElement && this._getItemByDirection(direction, activeElement); var nextElementIndex = this._getItemIndex(nextElement); var isCycling = Boolean(this._interval); var directionalClassName; var orderClassName; var eventDirectionName; if (direction === DIRECTION_NEXT) { directionalClassName = CLASS_NAME_LEFT; orderClassName = CLASS_NAME_NEXT; eventDirectionName = DIRECTION_LEFT; } else { directionalClassName = CLASS_NAME_RIGHT; orderClassName = CLASS_NAME_PREV; eventDirectionName = DIRECTION_RIGHT; } if (nextElement && $__default['default'](nextElement).hasClass(CLASS_NAME_ACTIVE$1)) { this._isSliding = false; return; } var slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName); if (slideEvent.isDefaultPrevented()) { return; } if (!activeElement || !nextElement) { // Some weirdness is happening, so we bail return; } this._isSliding = true; if (isCycling) { this.pause(); } this._setActiveIndicatorElement(nextElement); this._activeElement = nextElement; var slidEvent = $__default['default'].Event(EVENT_SLID, { relatedTarget: nextElement, direction: eventDirectionName, from: activeElementIndex, to: nextElementIndex }); if ($__default['default'](this._element).hasClass(CLASS_NAME_SLIDE)) { $__default['default'](nextElement).addClass(orderClassName); Util.reflow(nextElement); $__default['default'](activeElement).addClass(directionalClassName); $__default['default'](nextElement).addClass(directionalClassName); var transitionDuration = Util.getTransitionDurationFromElement(activeElement); $__default['default'](activeElement).one(Util.TRANSITION_END, function () { $__default['default'](nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(CLASS_NAME_ACTIVE$1); $__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE$1 + " " + orderClassName + " " + directionalClassName); _this4._isSliding = false; setTimeout(function () { return $__default['default'](_this4._element).trigger(slidEvent); }, 0); }).emulateTransitionEnd(transitionDuration); } else { $__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE$1); $__default['default'](nextElement).addClass(CLASS_NAME_ACTIVE$1); this._isSliding = false; $__default['default'](this._element).trigger(slidEvent); } if (isCycling) { this.cycle(); } } // Static ; Carousel._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { var data = $__default['default'](this).data(DATA_KEY$2); var _config = _extends({}, Default, $__default['default'](this).data()); if (typeof config === 'object') { _config = _extends({}, _config, config); } var action = typeof config === 'string' ? config : _config.slide; if (!data) { data = new Carousel(this, _config); $__default['default'](this).data(DATA_KEY$2, data); } if (typeof config === 'number') { data.to(config); } else if (typeof action === 'string') { if (typeof data[action] === 'undefined') { throw new TypeError("No method named \"" + action + "\""); } data[action](); } else if (_config.interval && _config.ride) { data.pause(); data.cycle(); } }); }; Carousel._dataApiClickHandler = function _dataApiClickHandler(event) { var selector = Util.getSelectorFromElement(this); if (!selector) { return; } var target = $__default['default'](selector)[0]; if (!target || !$__default['default'](target).hasClass(CLASS_NAME_CAROUSEL)) { return; } var config = _extends({}, $__default['default'](target).data(), $__default['default'](this).data()); var slideIndex = this.getAttribute('data-slide-to'); if (slideIndex) { config.interval = false; } Carousel._jQueryInterface.call($__default['default'](target), config); if (slideIndex) { $__default['default'](target).data(DATA_KEY$2).to(slideIndex); } event.preventDefault(); }; _createClass(Carousel, null, [{ key: "VERSION", get: function get() { return VERSION$2; } }, { key: "Default", get: function get() { return Default; } }]); return Carousel; }(); /** * ------------------------------------------------------------------------ * Data Api implementation * ------------------------------------------------------------------------ */ $__default['default'](document).on(EVENT_CLICK_DATA_API$2, SELECTOR_DATA_SLIDE, Carousel._dataApiClickHandler); $__default['default'](window).on(EVENT_LOAD_DATA_API$1, function () { var carousels = [].slice.call(document.querySelectorAll(SELECTOR_DATA_RIDE)); for (var i = 0, len = carousels.length; i < len; i++) { var $carousel = $__default['default'](carousels[i]); Carousel._jQueryInterface.call($carousel, $carousel.data()); } }); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $__default['default'].fn[NAME$2] = Carousel._jQueryInterface; $__default['default'].fn[NAME$2].Constructor = Carousel; $__default['default'].fn[NAME$2].noConflict = function () { $__default['default'].fn[NAME$2] = JQUERY_NO_CONFLICT$2; return Carousel._jQueryInterface; }; /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME$3 = 'collapse'; var VERSION$3 = '4.6.0'; var DATA_KEY$3 = 'bs.collapse'; var EVENT_KEY$3 = "." + DATA_KEY$3; var DATA_API_KEY$3 = '.data-api'; var JQUERY_NO_CONFLICT$3 = $__default['default'].fn[NAME$3]; var Default$1 = { toggle: true, parent: '' }; var DefaultType$1 = { toggle: 'boolean', parent: '(string|element)' }; var EVENT_SHOW = "show" + EVENT_KEY$3; var EVENT_SHOWN = "shown" + EVENT_KEY$3; var EVENT_HIDE = "hide" + EVENT_KEY$3; var EVENT_HIDDEN = "hidden" + EVENT_KEY$3; var EVENT_CLICK_DATA_API$3 = "click" + EVENT_KEY$3 + DATA_API_KEY$3; var CLASS_NAME_SHOW$1 = 'show'; var CLASS_NAME_COLLAPSE = 'collapse'; var CLASS_NAME_COLLAPSING = 'collapsing'; var CLASS_NAME_COLLAPSED = 'collapsed'; var DIMENSION_WIDTH = 'width'; var DIMENSION_HEIGHT = 'height'; var SELECTOR_ACTIVES = '.show, .collapsing'; var SELECTOR_DATA_TOGGLE$1 = '[data-toggle="collapse"]'; /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ var Collapse = /*#__PURE__*/function () { function Collapse(element, config) { this._isTransitioning = false; this._element = element; this._config = this._getConfig(config); this._triggerArray = [].slice.call(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]"))); var toggleList = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$1)); for (var i = 0, len = toggleList.length; i < len; i++) { var elem = toggleList[i]; var selector = Util.getSelectorFromElement(elem); var filterElement = [].slice.call(document.querySelectorAll(selector)).filter(function (foundElem) { return foundElem === element; }); if (selector !== null && filterElement.length > 0) { this._selector = selector; this._triggerArray.push(elem); } } this._parent = this._config.parent ? this._getParent() : null; if (!this._config.parent) { this._addAriaAndCollapsedClass(this._element, this._triggerArray); } if (this._config.toggle) { this.toggle(); } } // Getters var _proto = Collapse.prototype; // Public _proto.toggle = function toggle() { if ($__default['default'](this._element).hasClass(CLASS_NAME_SHOW$1)) { this.hide(); } else { this.show(); } }; _proto.show = function show() { var _this = this; if (this._isTransitioning || $__default['default'](this._element).hasClass(CLASS_NAME_SHOW$1)) { return; } var actives; var activesData; if (this._parent) { actives = [].slice.call(this._parent.querySelectorAll(SELECTOR_ACTIVES)).filter(function (elem) { if (typeof _this._config.parent === 'string') { return elem.getAttribute('data-parent') === _this._config.parent; } return elem.classList.contains(CLASS_NAME_COLLAPSE); }); if (actives.length === 0) { actives = null; } } if (actives) { activesData = $__default['default'](actives).not(this._selector).data(DATA_KEY$3); if (activesData && activesData._isTransitioning) { return; } } var startEvent = $__default['default'].Event(EVENT_SHOW); $__default['default'](this._element).trigger(startEvent); if (startEvent.isDefaultPrevented()) { return; } if (actives) { Collapse._jQueryInterface.call($__default['default'](actives).not(this._selector), 'hide'); if (!activesData) { $__default['default'](actives).data(DATA_KEY$3, null); } } var dimension = this._getDimension(); $__default['default'](this._element).removeClass(CLASS_NAME_COLLAPSE).addClass(CLASS_NAME_COLLAPSING); this._element.style[dimension] = 0; if (this._triggerArray.length) { $__default['default'](this._triggerArray).removeClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', true); } this.setTransitioning(true); var complete = function complete() { $__default['default'](_this._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1); _this._element.style[dimension] = ''; _this.setTransitioning(false); $__default['default'](_this._element).trigger(EVENT_SHOWN); }; var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1); var scrollSize = "scroll" + capitalizedDimension; var transitionDuration = Util.getTransitionDurationFromElement(this._element); $__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); this._element.style[dimension] = this._element[scrollSize] + "px"; }; _proto.hide = function hide() { var _this2 = this; if (this._isTransitioning || !$__default['default'](this._element).hasClass(CLASS_NAME_SHOW$1)) { return; } var startEvent = $__default['default'].Event(EVENT_HIDE); $__default['default'](this._element).trigger(startEvent); if (startEvent.isDefaultPrevented()) { return; } var dimension = this._getDimension(); this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px"; Util.reflow(this._element); $__default['default'](this._element).addClass(CLASS_NAME_COLLAPSING).removeClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1); var triggerArrayLength = this._triggerArray.length; if (triggerArrayLength > 0) { for (var i = 0; i < triggerArrayLength; i++) { var trigger = this._triggerArray[i]; var selector = Util.getSelectorFromElement(trigger); if (selector !== null) { var $elem = $__default['default']([].slice.call(document.querySelectorAll(selector))); if (!$elem.hasClass(CLASS_NAME_SHOW$1)) { $__default['default'](trigger).addClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', false); } } } } this.setTransitioning(true); var complete = function complete() { _this2.setTransitioning(false); $__default['default'](_this2._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE).trigger(EVENT_HIDDEN); }; this._element.style[dimension] = ''; var transitionDuration = Util.getTransitionDurationFromElement(this._element); $__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); }; _proto.setTransitioning = function setTransitioning(isTransitioning) { this._isTransitioning = isTransitioning; }; _proto.dispose = function dispose() { $__default['default'].removeData(this._element, DATA_KEY$3); this._config = null; this._parent = null; this._element = null; this._triggerArray = null; this._isTransitioning = null; } // Private ; _proto._getConfig = function _getConfig(config) { config = _extends({}, Default$1, config); config.toggle = Boolean(config.toggle); // Coerce string values Util.typeCheckConfig(NAME$3, config, DefaultType$1); return config; }; _proto._getDimension = function _getDimension() { var hasWidth = $__default['default'](this._element).hasClass(DIMENSION_WIDTH); return hasWidth ? DIMENSION_WIDTH : DIMENSION_HEIGHT; }; _proto._getParent = function _getParent() { var _this3 = this; var parent; if (Util.isElement(this._config.parent)) { parent = this._config.parent; // It's a jQuery object if (typeof this._config.parent.jquery !== 'undefined') { parent = this._config.parent[0]; } } else { parent = document.querySelector(this._config.parent); } var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]"; var children = [].slice.call(parent.querySelectorAll(selector)); $__default['default'](children).each(function (i, element) { _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]); }); return parent; }; _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) { var isOpen = $__default['default'](element).hasClass(CLASS_NAME_SHOW$1); if (triggerArray.length) { $__default['default'](triggerArray).toggleClass(CLASS_NAME_COLLAPSED, !isOpen).attr('aria-expanded', isOpen); } } // Static ; Collapse._getTargetFromElement = function _getTargetFromElement(element) { var selector = Util.getSelectorFromElement(element); return selector ? document.querySelector(selector) : null; }; Collapse._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { var $element = $__default['default'](this); var data = $element.data(DATA_KEY$3); var _config = _extends({}, Default$1, $element.data(), typeof config === 'object' && config ? config : {}); if (!data && _config.toggle && typeof config === 'string' && /show|hide/.test(config)) { _config.toggle = false; } if (!data) { data = new Collapse(this, _config); $element.data(DATA_KEY$3, data); } if (typeof config === 'string') { if (typeof data[config] === 'undefined') { throw new TypeError("No method named \"" + config + "\""); } data[config](); } }); }; _createClass(Collapse, null, [{ key: "VERSION", get: function get() { return VERSION$3; } }, { key: "Default", get: function get() { return Default$1; } }]); return Collapse; }(); /** * ------------------------------------------------------------------------ * Data Api implementation * ------------------------------------------------------------------------ */ $__default['default'](document).on(EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$1, function (event) { // preventDefault only for <a> elements (which change the URL) not inside the collapsible element if (event.currentTarget.tagName === 'A') { event.preventDefault(); } var $trigger = $__default['default'](this); var selector = Util.getSelectorFromElement(this); var selectors = [].slice.call(document.querySelectorAll(selector)); $__default['default'](selectors).each(function () { var $target = $__default['default'](this); var data = $target.data(DATA_KEY$3); var config = data ? 'toggle' : $trigger.data(); Collapse._jQueryInterface.call($target, config); }); }); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $__default['default'].fn[NAME$3] = Collapse._jQueryInterface; $__default['default'].fn[NAME$3].Constructor = Collapse; $__default['default'].fn[NAME$3].noConflict = function () { $__default['default'].fn[NAME$3] = JQUERY_NO_CONFLICT$3; return Collapse._jQueryInterface; }; /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME$4 = 'dropdown'; var VERSION$4 = '4.6.0'; var DATA_KEY$4 = 'bs.dropdown'; var EVENT_KEY$4 = "." + DATA_KEY$4; var DATA_API_KEY$4 = '.data-api'; var JQUERY_NO_CONFLICT$4 = $__default['default'].fn[NAME$4]; var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key var TAB_KEYCODE = 9; // KeyboardEvent.which value for tab key var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse) var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE); var EVENT_HIDE$1 = "hide" + EVENT_KEY$4; var EVENT_HIDDEN$1 = "hidden" + EVENT_KEY$4; var EVENT_SHOW$1 = "show" + EVENT_KEY$4; var EVENT_SHOWN$1 = "shown" + EVENT_KEY$4; var EVENT_CLICK = "click" + EVENT_KEY$4; var EVENT_CLICK_DATA_API$4 = "click" + EVENT_KEY$4 + DATA_API_KEY$4; var EVENT_KEYDOWN_DATA_API = "keydown" + EVENT_KEY$4 + DATA_API_KEY$4; var EVENT_KEYUP_DATA_API = "keyup" + EVENT_KEY$4 + DATA_API_KEY$4; var CLASS_NAME_DISABLED = 'disabled'; var CLASS_NAME_SHOW$2 = 'show'; var CLASS_NAME_DROPUP = 'dropup'; var CLASS_NAME_DROPRIGHT = 'dropright'; var CLASS_NAME_DROPLEFT = 'dropleft'; var CLASS_NAME_MENURIGHT = 'dropdown-menu-right'; var CLASS_NAME_POSITION_STATIC = 'position-static'; var SELECTOR_DATA_TOGGLE$2 = '[data-toggle="dropdown"]'; var SELECTOR_FORM_CHILD = '.dropdown form'; var SELECTOR_MENU = '.dropdown-menu'; var SELECTOR_NAVBAR_NAV = '.navbar-nav'; var SELECTOR_VISIBLE_ITEMS = '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)'; var PLACEMENT_TOP = 'top-start'; var PLACEMENT_TOPEND = 'top-end'; var PLACEMENT_BOTTOM = 'bottom-start'; var PLACEMENT_BOTTOMEND = 'bottom-end'; var PLACEMENT_RIGHT = 'right-start'; var PLACEMENT_LEFT = 'left-start'; var Default$2 = { offset: 0, flip: true, boundary: 'scrollParent', reference: 'toggle', display: 'dynamic', popperConfig: null }; var DefaultType$2 = { offset: '(number|string|function)', flip: 'boolean', boundary: '(string|element)', reference: '(string|element)', display: 'string', popperConfig: '(null|object)' }; /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ var Dropdown = /*#__PURE__*/function () { function Dropdown(element, config) { this._element = element; this._popper = null; this._config = this._getConfig(config); this._menu = this._getMenuElement(); this._inNavbar = this._detectNavbar(); this._addEventListeners(); } // Getters var _proto = Dropdown.prototype; // Public _proto.toggle = function toggle() { if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED)) { return; } var isActive = $__default['default'](this._menu).hasClass(CLASS_NAME_SHOW$2); Dropdown._clearMenus(); if (isActive) { return; } this.show(true); }; _proto.show = function show(usePopper) { if (usePopper === void 0) { usePopper = false; } if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED) || $__default['default'](this._menu).hasClass(CLASS_NAME_SHOW$2)) { return; } var relatedTarget = { relatedTarget: this._element }; var showEvent = $__default['default'].Event(EVENT_SHOW$1, relatedTarget); var parent = Dropdown._getParentFromElement(this._element); $__default['default'](parent).trigger(showEvent); if (showEvent.isDefaultPrevented()) { return; } // Totally disable Popper for Dropdowns in Navbar if (!this._inNavbar && usePopper) { /** * Check for Popper dependency * Popper - https://popper.js.org */ if (typeof Popper__default['default'] === 'undefined') { throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)'); } var referenceElement = this._element; if (this._config.reference === 'parent') { referenceElement = parent; } else if (Util.isElement(this._config.reference)) { referenceElement = this._config.reference; // Check if it's jQuery element if (typeof this._config.reference.jquery !== 'undefined') { referenceElement = this._config.reference[0]; } } // If boundary is not `scrollParent`, then set position to `static` // to allow the menu to "escape" the scroll parent's boundaries // https://github.com/twbs/bootstrap/issues/24251 if (this._config.boundary !== 'scrollParent') { $__default['default'](parent).addClass(CLASS_NAME_POSITION_STATIC); } this._popper = new Popper__default['default'](referenceElement, this._menu, this._getPopperConfig()); } // If this is a touch-enabled device we add extra // empty mouseover listeners to the body's immediate children; // only needed because of broken event delegation on iOS // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html if ('ontouchstart' in document.documentElement && $__default['default'](parent).closest(SELECTOR_NAVBAR_NAV).length === 0) { $__default['default'](document.body).children().on('mouseover', null, $__default['default'].noop); } this._element.focus(); this._element.setAttribute('aria-expanded', true); $__default['default'](this._menu).toggleClass(CLASS_NAME_SHOW$2); $__default['default'](parent).toggleClass(CLASS_NAME_SHOW$2).trigger($__default['default'].Event(EVENT_SHOWN$1, relatedTarget)); }; _proto.hide = function hide() { if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED) || !$__default['default'](this._menu).hasClass(CLASS_NAME_SHOW$2)) { return; } var relatedTarget = { relatedTarget: this._element }; var hideEvent = $__default['default'].Event(EVENT_HIDE$1, relatedTarget); var parent = Dropdown._getParentFromElement(this._element); $__default['default'](parent).trigger(hideEvent); if (hideEvent.isDefaultPrevented()) { return; } if (this._popper) { this._popper.destroy(); } $__default['default'](this._menu).toggleClass(CLASS_NAME_SHOW$2); $__default['default'](parent).toggleClass(CLASS_NAME_SHOW$2).trigger($__default['default'].Event(EVENT_HIDDEN$1, relatedTarget)); }; _proto.dispose = function dispose() { $__default['default'].removeData(this._element, DATA_KEY$4); $__default['default'](this._element).off(EVENT_KEY$4); this._element = null; this._menu = null; if (this._popper !== null) { this._popper.destroy(); this._popper = null; } }; _proto.update = function update() { this._inNavbar = this._detectNavbar(); if (this._popper !== null) { this._popper.scheduleUpdate(); } } // Private ; _proto._addEventListeners = function _addEventListeners() { var _this = this; $__default['default'](this._element).on(EVENT_CLICK, function (event) { event.preventDefault(); event.stopPropagation(); _this.toggle(); }); }; _proto._getConfig = function _getConfig(config) { config = _extends({}, this.constructor.Default, $__default['default'](this._element).data(), config); Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType); return config; }; _proto._getMenuElement = function _getMenuElement() { if (!this._menu) { var parent = Dropdown._getParentFromElement(this._element); if (parent) { this._menu = parent.querySelector(SELECTOR_MENU); } } return this._menu; }; _proto._getPlacement = function _getPlacement() { var $parentDropdown = $__default['default'](this._element.parentNode); var placement = PLACEMENT_BOTTOM; // Handle dropup if ($parentDropdown.hasClass(CLASS_NAME_DROPUP)) { placement = $__default['default'](this._menu).hasClass(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP; } else if ($parentDropdown.hasClass(CLASS_NAME_DROPRIGHT)) { placement = PLACEMENT_RIGHT; } else if ($parentDropdown.hasClass(CLASS_NAME_DROPLEFT)) { placement = PLACEMENT_LEFT; } else if ($__default['default'](this._menu).hasClass(CLASS_NAME_MENURIGHT)) { placement = PLACEMENT_BOTTOMEND; } return placement; }; _proto._detectNavbar = function _detectNavbar() { return $__default['default'](this._element).closest('.navbar').length > 0; }; _proto._getOffset = function _getOffset() { var _this2 = this; var offset = {}; if (typeof this._config.offset === 'function') { offset.fn = function (data) { data.offsets = _extends({}, data.offsets, _this2._config.offset(data.offsets, _this2._element) || {}); return data; }; } else { offset.offset = this._config.offset; } return offset; }; _proto._getPopperConfig = function _getPopperConfig() { var popperConfig = { placement: this._getPlacement(), modifiers: { offset: this._getOffset(), flip: { enabled: this._config.flip }, preventOverflow: { boundariesElement: this._config.boundary } } }; // Disable Popper if we have a static display if (this._config.display === 'static') { popperConfig.modifiers.applyStyle = { enabled: false }; } return _extends({}, popperConfig, this._config.popperConfig); } // Static ; Dropdown._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { var data = $__default['default'](this).data(DATA_KEY$4); var _config = typeof config === 'object' ? config : null; if (!data) { data = new Dropdown(this, _config); $__default['default'](this).data(DATA_KEY$4, data); } if (typeof config === 'string') { if (typeof data[config] === 'undefined') { throw new TypeError("No method named \"" + config + "\""); } data[config](); } }); }; Dropdown._clearMenus = function _clearMenus(event) { if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) { return; } var toggles = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$2)); for (var i = 0, len = toggles.length; i < len; i++) { var parent = Dropdown._getParentFromElement(toggles[i]); var context = $__default['default'](toggles[i]).data(DATA_KEY$4); var relatedTarget = { relatedTarget: toggles[i] }; if (event && event.type === 'click') { relatedTarget.clickEvent = event; } if (!context) { continue; } var dropdownMenu = context._menu; if (!$__default['default'](parent).hasClass(CLASS_NAME_SHOW$2)) { continue; } if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $__default['default'].contains(parent, event.target)) { continue; } var hideEvent = $__default['default'].Event(EVENT_HIDE$1, relatedTarget); $__default['default'](parent).trigger(hideEvent); if (hideEvent.isDefaultPrevented()) { continue; } // If this is a touch-enabled device we remove the extra // empty mouseover listeners we added for iOS support if ('ontouchstart' in document.documentElement) { $__default['default'](document.body).children().off('mouseover', null, $__default['default'].noop); } toggles[i].setAttribute('aria-expanded', 'false'); if (context._popper) { context._popper.destroy(); } $__default['default'](dropdownMenu).removeClass(CLASS_NAME_SHOW$2); $__default['default'](parent).removeClass(CLASS_NAME_SHOW$2).trigger($__default['default'].Event(EVENT_HIDDEN$1, relatedTarget)); } }; Dropdown._getParentFromElement = function _getParentFromElement(element) { var parent; var selector = Util.getSelectorFromElement(element); if (selector) { parent = document.querySelector(selector); } return parent || element.parentNode; } // eslint-disable-next-line complexity ; Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) { // If not input/textarea: // - And not a key in REGEXP_KEYDOWN => not a dropdown command // If input/textarea: // - If space key => not a dropdown command // - If key is other than escape // - If key is not up or down => not a dropdown command // - If trigger inside the menu => not a dropdown command if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $__default['default'](event.target).closest(SELECTOR_MENU).length) : !REGEXP_KEYDOWN.test(event.which)) { return; } if (this.disabled || $__default['default'](this).hasClass(CLASS_NAME_DISABLED)) { return; } var parent = Dropdown._getParentFromElement(this); var isActive = $__default['default'](parent).hasClass(CLASS_NAME_SHOW$2); if (!isActive && event.which === ESCAPE_KEYCODE) { return; } event.preventDefault(); event.stopPropagation(); if (!isActive || event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE) { if (event.which === ESCAPE_KEYCODE) { $__default['default'](parent.querySelector(SELECTOR_DATA_TOGGLE$2)).trigger('focus'); } $__default['default'](this).trigger('click'); return; } var items = [].slice.call(parent.querySelectorAll(SELECTOR_VISIBLE_ITEMS)).filter(function (item) { return $__default['default'](item).is(':visible'); }); if (items.length === 0) { return; } var index = items.indexOf(event.target); if (event.which === ARROW_UP_KEYCODE && index > 0) { // Up index--; } if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) { // Down index++; } if (index < 0) { index = 0; } items[index].focus(); }; _createClass(Dropdown, null, [{ key: "VERSION", get: function get() { return VERSION$4; } }, { key: "Default", get: function get() { return Default$2; } }, { key: "DefaultType", get: function get() { return DefaultType$2; } }]); return Dropdown; }(); /** * ------------------------------------------------------------------------ * Data Api implementation * ------------------------------------------------------------------------ */ $__default['default'](document).on(EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$2, Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API$4 + " " + EVENT_KEYUP_DATA_API, Dropdown._clearMenus).on(EVENT_CLICK_DATA_API$4, SELECTOR_DATA_TOGGLE$2, function (event) { event.preventDefault(); event.stopPropagation(); Dropdown._jQueryInterface.call($__default['default'](this), 'toggle'); }).on(EVENT_CLICK_DATA_API$4, SELECTOR_FORM_CHILD, function (e) { e.stopPropagation(); }); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $__default['default'].fn[NAME$4] = Dropdown._jQueryInterface; $__default['default'].fn[NAME$4].Constructor = Dropdown; $__default['default'].fn[NAME$4].noConflict = function () { $__default['default'].fn[NAME$4] = JQUERY_NO_CONFLICT$4; return Dropdown._jQueryInterface; }; /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME$5 = 'modal'; var VERSION$5 = '4.6.0'; var DATA_KEY$5 = 'bs.modal'; var EVENT_KEY$5 = "." + DATA_KEY$5; var DATA_API_KEY$5 = '.data-api'; var JQUERY_NO_CONFLICT$5 = $__default['default'].fn[NAME$5]; var ESCAPE_KEYCODE$1 = 27; // KeyboardEvent.which value for Escape (Esc) key var Default$3 = { backdrop: true, keyboard: true, focus: true, show: true }; var DefaultType$3 = { backdrop: '(boolean|string)', keyboard: 'boolean', focus: 'boolean', show: 'boolean' }; var EVENT_HIDE$2 = "hide" + EVENT_KEY$5; var EVENT_HIDE_PREVENTED = "hidePrevented" + EVENT_KEY$5; var EVENT_HIDDEN$2 = "hidden" + EVENT_KEY$5; var EVENT_SHOW$2 = "show" + EVENT_KEY$5; var EVENT_SHOWN$2 = "shown" + EVENT_KEY$5; var EVENT_FOCUSIN = "focusin" + EVENT_KEY$5; var EVENT_RESIZE = "resize" + EVENT_KEY$5; var EVENT_CLICK_DISMISS = "click.dismiss" + EVENT_KEY$5; var EVENT_KEYDOWN_DISMISS = "keydown.dismiss" + EVENT_KEY$5; var EVENT_MOUSEUP_DISMISS = "mouseup.dismiss" + EVENT_KEY$5; var EVENT_MOUSEDOWN_DISMISS = "mousedown.dismiss" + EVENT_KEY$5; var EVENT_CLICK_DATA_API$5 = "click" + EVENT_KEY$5 + DATA_API_KEY$5; var CLASS_NAME_SCROLLABLE = 'modal-dialog-scrollable'; var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure'; var CLASS_NAME_BACKDROP = 'modal-backdrop'; var CLASS_NAME_OPEN = 'modal-open'; var CLASS_NAME_FADE$1 = 'fade'; var CLASS_NAME_SHOW$3 = 'show'; var CLASS_NAME_STATIC = 'modal-static'; var SELECTOR_DIALOG = '.modal-dialog'; var SELECTOR_MODAL_BODY = '.modal-body'; var SELECTOR_DATA_TOGGLE$3 = '[data-toggle="modal"]'; var SELECTOR_DATA_DISMISS = '[data-dismiss="modal"]'; var SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top'; var SELECTOR_STICKY_CONTENT = '.sticky-top'; /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ var Modal = /*#__PURE__*/function () { function Modal(element, config) { this._config = this._getConfig(config); this._element = element; this._dialog = element.querySelector(SELECTOR_DIALOG); this._backdrop = null; this._isShown = false; this._isBodyOverflowing = false; this._ignoreBackdropClick = false; this._isTransitioning = false; this._scrollbarWidth = 0; } // Getters var _proto = Modal.prototype; // Public _proto.toggle = function toggle(relatedTarget) { return this._isShown ? this.hide() : this.show(relatedTarget); }; _proto.show = function show(relatedTarget) { var _this = this; if (this._isShown || this._isTransitioning) { return; } if ($__default['default'](this._element).hasClass(CLASS_NAME_FADE$1)) { this._isTransitioning = true; } var showEvent = $__default['default'].Event(EVENT_SHOW$2, { relatedTarget: relatedTarget }); $__default['default'](this._element).trigger(showEvent); if (this._isShown || showEvent.isDefaultPrevented()) { return; } this._isShown = true; this._checkScrollbar(); this._setScrollbar(); this._adjustDialog(); this._setEscapeEvent(); this._setResizeEvent(); $__default['default'](this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function (event) { return _this.hide(event); }); $__default['default'](this._dialog).on(EVENT_MOUSEDOWN_DISMISS, function () { $__default['default'](_this._element).one(EVENT_MOUSEUP_DISMISS, function (event) { if ($__default['default'](event.target).is(_this._element)) { _this._ignoreBackdropClick = true; } }); }); this._showBackdrop(function () { return _this._showElement(relatedTarget); }); }; _proto.hide = function hide(event) { var _this2 = this; if (event) { event.preventDefault(); } if (!this._isShown || this._isTransitioning) { return; } var hideEvent = $__default['default'].Event(EVENT_HIDE$2); $__default['default'](this._element).trigger(hideEvent); if (!this._isShown || hideEvent.isDefaultPrevented()) { return; } this._isShown = false; var transition = $__default['default'](this._element).hasClass(CLASS_NAME_FADE$1); if (transition) { this._isTransitioning = true; } this._setEscapeEvent(); this._setResizeEvent(); $__default['default'](document).off(EVENT_FOCUSIN); $__default['default'](this._element).removeClass(CLASS_NAME_SHOW$3); $__default['default'](this._element).off(EVENT_CLICK_DISMISS); $__default['default'](this._dialog).off(EVENT_MOUSEDOWN_DISMISS); if (transition) { var transitionDuration = Util.getTransitionDurationFromElement(this._element); $__default['default'](this._element).one(Util.TRANSITION_END, function (event) { return _this2._hideModal(event); }).emulateTransitionEnd(transitionDuration); } else { this._hideModal(); } }; _proto.dispose = function dispose() { [window, this._element, this._dialog].forEach(function (htmlElement) { return $__default['default'](htmlElement).off(EVENT_KEY$5); }); /** * `document` has 2 events `EVENT_FOCUSIN` and `EVENT_CLICK_DATA_API` * Do not move `document` in `htmlElements` array * It will remove `EVENT_CLICK_DATA_API` event that should remain */ $__default['default'](document).off(EVENT_FOCUSIN); $__default['default'].removeData(this._element, DATA_KEY$5); this._config = null; this._element = null; this._dialog = null; this._backdrop = null; this._isShown = null; this._isBodyOverflowing = null; this._ignoreBackdropClick = null; this._isTransitioning = null; this._scrollbarWidth = null; }; _proto.handleUpdate = function handleUpdate() { this._adjustDialog(); } // Private ; _proto._getConfig = function _getConfig(config) { config = _extends({}, Default$3, config); Util.typeCheckConfig(NAME$5, config, DefaultType$3); return config; }; _proto._triggerBackdropTransition = function _triggerBackdropTransition() { var _this3 = this; var hideEventPrevented = $__default['default'].Event(EVENT_HIDE_PREVENTED); $__default['default'](this._element).trigger(hideEventPrevented); if (hideEventPrevented.isDefaultPrevented()) { return; } var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight; if (!isModalOverflowing) { this._element.style.overflowY = 'hidden'; } this._element.classList.add(CLASS_NAME_STATIC); var modalTransitionDuration = Util.getTransitionDurationFromElement(this._dialog); $__default['default'](this._element).off(Util.TRANSITION_END); $__default['default'](this._element).one(Util.TRANSITION_END, function () { _this3._element.classList.remove(CLASS_NAME_STATIC); if (!isModalOverflowing) { $__default['default'](_this3._element).one(Util.TRANSITION_END, function () { _this3._element.style.overflowY = ''; }).emulateTransitionEnd(_this3._element, modalTransitionDuration); } }).emulateTransitionEnd(modalTransitionDuration); this._element.focus(); }; _proto._showElement = function _showElement(relatedTarget) { var _this4 = this; var transition = $__default['default'](this._element).hasClass(CLASS_NAME_FADE$1); var modalBody = this._dialog ? this._dialog.querySelector(SELECTOR_MODAL_BODY) : null; if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) { // Don't move modal's DOM position document.body.appendChild(this._element); } this._element.style.display = 'block'; this._element.removeAttribute('aria-hidden'); this._element.setAttribute('aria-modal', true); this._element.setAttribute('role', 'dialog'); if ($__default['default'](this._dialog).hasClass(CLASS_NAME_SCROLLABLE) && modalBody) { modalBody.scrollTop = 0; } else { this._element.scrollTop = 0; } if (transition) { Util.reflow(this._element); } $__default['default'](this._element).addClass(CLASS_NAME_SHOW$3); if (this._config.focus) { this._enforceFocus(); } var shownEvent = $__default['default'].Event(EVENT_SHOWN$2, { relatedTarget: relatedTarget }); var transitionComplete = function transitionComplete() { if (_this4._config.focus) { _this4._element.focus(); } _this4._isTransitioning = false; $__default['default'](_this4._element).trigger(shownEvent); }; if (transition) { var transitionDuration = Util.getTransitionDurationFromElement(this._dialog); $__default['default'](this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration); } else { transitionComplete(); } }; _proto._enforceFocus = function _enforceFocus() { var _this5 = this; $__default['default'](document).off(EVENT_FOCUSIN) // Guard against infinite focus loop .on(EVENT_FOCUSIN, function (event) { if (document !== event.target && _this5._element !== event.target && $__default['default'](_this5._element).has(event.target).length === 0) { _this5._element.focus(); } }); }; _proto._setEscapeEvent = function _setEscapeEvent() { var _this6 = this; if (this._isShown) { $__default['default'](this._element).on(EVENT_KEYDOWN_DISMISS, function (event) { if (_this6._config.keyboard && event.which === ESCAPE_KEYCODE$1) { event.preventDefault(); _this6.hide(); } else if (!_this6._config.keyboard && event.which === ESCAPE_KEYCODE$1) { _this6._triggerBackdropTransition(); } }); } else if (!this._isShown) { $__default['default'](this._element).off(EVENT_KEYDOWN_DISMISS); } }; _proto._setResizeEvent = function _setResizeEvent() { var _this7 = this; if (this._isShown) { $__default['default'](window).on(EVENT_RESIZE, function (event) { return _this7.handleUpdate(event); }); } else { $__default['default'](window).off(EVENT_RESIZE); } }; _proto._hideModal = function _hideModal() { var _this8 = this; this._element.style.display = 'none'; this._element.setAttribute('aria-hidden', true); this._element.removeAttribute('aria-modal'); this._element.removeAttribute('role'); this._isTransitioning = false; this._showBackdrop(function () { $__default['default'](document.body).removeClass(CLASS_NAME_OPEN); _this8._resetAdjustments(); _this8._resetScrollbar(); $__default['default'](_this8._element).trigger(EVENT_HIDDEN$2); }); }; _proto._removeBackdrop = function _removeBackdrop() { if (this._backdrop) { $__default['default'](this._backdrop).remove(); this._backdrop = null; } }; _proto._showBackdrop = function _showBackdrop(callback) { var _this9 = this; var animate = $__default['default'](this._element).hasClass(CLASS_NAME_FADE$1) ? CLASS_NAME_FADE$1 : ''; if (this._isShown && this._config.backdrop) { this._backdrop = document.createElement('div'); this._backdrop.className = CLASS_NAME_BACKDROP; if (animate) { this._backdrop.classList.add(animate); } $__default['default'](this._backdrop).appendTo(document.body); $__default['default'](this._element).on(EVENT_CLICK_DISMISS, function (event) { if (_this9._ignoreBackdropClick) { _this9._ignoreBackdropClick = false; return; } if (event.target !== event.currentTarget) { return; } if (_this9._config.backdrop === 'static') { _this9._triggerBackdropTransition(); } else { _this9.hide(); } }); if (animate) { Util.reflow(this._backdrop); } $__default['default'](this._backdrop).addClass(CLASS_NAME_SHOW$3); if (!callback) { return; } if (!animate) { callback(); return; } var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop); $__default['default'](this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration); } else if (!this._isShown && this._backdrop) { $__default['default'](this._backdrop).removeClass(CLASS_NAME_SHOW$3); var callbackRemove = function callbackRemove() { _this9._removeBackdrop(); if (callback) { callback(); } }; if ($__default['default'](this._element).hasClass(CLASS_NAME_FADE$1)) { var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop); $__default['default'](this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration); } else { callbackRemove(); } } else if (callback) { callback(); } } // ---------------------------------------------------------------------- // the following methods are used to handle overflowing modals // todo (fat): these should probably be refactored out of modal.js // ---------------------------------------------------------------------- ; _proto._adjustDialog = function _adjustDialog() { var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight; if (!this._isBodyOverflowing && isModalOverflowing) { this._element.style.paddingLeft = this._scrollbarWidth + "px"; } if (this._isBodyOverflowing && !isModalOverflowing) { this._element.style.paddingRight = this._scrollbarWidth + "px"; } }; _proto._resetAdjustments = function _resetAdjustments() { this._element.style.paddingLeft = ''; this._element.style.paddingRight = ''; }; _proto._checkScrollbar = function _checkScrollbar() { var rect = document.body.getBoundingClientRect(); this._isBodyOverflowing = Math.round(rect.left + rect.right) < window.innerWidth; this._scrollbarWidth = this._getScrollbarWidth(); }; _proto._setScrollbar = function _setScrollbar() { var _this10 = this; if (this._isBodyOverflowing) { // Note: DOMNode.style.paddingRight returns the actual value or '' if not set // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT)); var stickyContent = [].slice.call(document.querySelectorAll(SELECTOR_STICKY_CONTENT)); // Adjust fixed content padding $__default['default'](fixedContent).each(function (index, element) { var actualPadding = element.style.paddingRight; var calculatedPadding = $__default['default'](element).css('padding-right'); $__default['default'](element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px"); }); // Adjust sticky content margin $__default['default'](stickyContent).each(function (index, element) { var actualMargin = element.style.marginRight; var calculatedMargin = $__default['default'](element).css('margin-right'); $__default['default'](element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px"); }); // Adjust body padding var actualPadding = document.body.style.paddingRight; var calculatedPadding = $__default['default'](document.body).css('padding-right'); $__default['default'](document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px"); } $__default['default'](document.body).addClass(CLASS_NAME_OPEN); }; _proto._resetScrollbar = function _resetScrollbar() { // Restore fixed content padding var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT)); $__default['default'](fixedContent).each(function (index, element) { var padding = $__default['default'](element).data('padding-right'); $__default['default'](element).removeData('padding-right'); element.style.paddingRight = padding ? padding : ''; }); // Restore sticky content var elements = [].slice.call(document.querySelectorAll("" + SELECTOR_STICKY_CONTENT)); $__default['default'](elements).each(function (index, element) { var margin = $__default['default'](element).data('margin-right'); if (typeof margin !== 'undefined') { $__default['default'](element).css('margin-right', margin).removeData('margin-right'); } }); // Restore body padding var padding = $__default['default'](document.body).data('padding-right'); $__default['default'](document.body).removeData('padding-right'); document.body.style.paddingRight = padding ? padding : ''; }; _proto._getScrollbarWidth = function _getScrollbarWidth() { // thx d.walsh var scrollDiv = document.createElement('div'); scrollDiv.className = CLASS_NAME_SCROLLBAR_MEASURER; document.body.appendChild(scrollDiv); var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth; document.body.removeChild(scrollDiv); return scrollbarWidth; } // Static ; Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) { return this.each(function () { var data = $__default['default'](this).data(DATA_KEY$5); var _config = _extends({}, Default$3, $__default['default'](this).data(), typeof config === 'object' && config ? config : {}); if (!data) { data = new Modal(this, _config); $__default['default'](this).data(DATA_KEY$5, data); } if (typeof config === 'string') { if (typeof data[config] === 'undefined') { throw new TypeError("No method named \"" + config + "\""); } data[config](relatedTarget); } else if (_config.show) { data.show(relatedTarget); } }); }; _createClass(Modal, null, [{ key: "VERSION", get: function get() { return VERSION$5; } }, { key: "Default", get: function get() { return Default$3; } }]); return Modal; }(); /** * ------------------------------------------------------------------------ * Data Api implementation * ------------------------------------------------------------------------ */ $__default['default'](document).on(EVENT_CLICK_DATA_API$5, SELECTOR_DATA_TOGGLE$3, function (event) { var _this11 = this; var target; var selector = Util.getSelectorFromElement(this); if (selector) { target = document.querySelector(selector); } var config = $__default['default'](target).data(DATA_KEY$5) ? 'toggle' : _extends({}, $__default['default'](target).data(), $__default['default'](this).data()); if (this.tagName === 'A' || this.tagName === 'AREA') { event.preventDefault(); } var $target = $__default['default'](target).one(EVENT_SHOW$2, function (showEvent) { if (showEvent.isDefaultPrevented()) { // Only register focus restorer if modal will actually get shown return; } $target.one(EVENT_HIDDEN$2, function () { if ($__default['default'](_this11).is(':visible')) { _this11.focus(); } }); }); Modal._jQueryInterface.call($__default['default'](target), config, this); }); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $__default['default'].fn[NAME$5] = Modal._jQueryInterface; $__default['default'].fn[NAME$5].Constructor = Modal; $__default['default'].fn[NAME$5].noConflict = function () { $__default['default'].fn[NAME$5] = JQUERY_NO_CONFLICT$5; return Modal._jQueryInterface; }; /** * -------------------------------------------------------------------------- * Bootstrap (v4.6.0): tools/sanitizer.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ var uriAttrs = ['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']; var ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i; var DefaultWhitelist = { // Global attributes allowed on any supplied element below. '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN], a: ['target', 'href', 'title', 'rel'], area: [], b: [], br: [], col: [], code: [], div: [], em: [], hr: [], h1: [], h2: [], h3: [], h4: [], h5: [], h6: [], i: [], img: ['src', 'srcset', 'alt', 'title', 'width', 'height'], li: [], ol: [], p: [], pre: [], s: [], small: [], span: [], sub: [], sup: [], strong: [], u: [], ul: [] }; /** * A pattern that recognizes a commonly useful subset of URLs that are safe. * * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts */ var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi; /** * A pattern that matches safe data URLs. Only matches image, video and audio types. * * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts */ var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i; function allowedAttribute(attr, allowedAttributeList) { var attrName = attr.nodeName.toLowerCase(); if (allowedAttributeList.indexOf(attrName) !== -1) { if (uriAttrs.indexOf(attrName) !== -1) { return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN)); } return true; } var regExp = allowedAttributeList.filter(function (attrRegex) { return attrRegex instanceof RegExp; }); // Check if a regular expression validates the attribute. for (var i = 0, len = regExp.length; i < len; i++) { if (attrName.match(regExp[i])) { return true; } } return false; } function sanitizeHtml(unsafeHtml, whiteList, sanitizeFn) { if (unsafeHtml.length === 0) { return unsafeHtml; } if (sanitizeFn && typeof sanitizeFn === 'function') { return sanitizeFn(unsafeHtml); } var domParser = new window.DOMParser(); var createdDocument = domParser.parseFromString(unsafeHtml, 'text/html'); var whitelistKeys = Object.keys(whiteList); var elements = [].slice.call(createdDocument.body.querySelectorAll('*')); var _loop = function _loop(i, len) { var el = elements[i]; var elName = el.nodeName.toLowerCase(); if (whitelistKeys.indexOf(el.nodeName.toLowerCase()) === -1) { el.parentNode.removeChild(el); return "continue"; } var attributeList = [].slice.call(el.attributes); var whitelistedAttributes = [].concat(whiteList['*'] || [], whiteList[elName] || []); attributeList.forEach(function (attr) { if (!allowedAttribute(attr, whitelistedAttributes)) { el.removeAttribute(attr.nodeName); } }); }; for (var i = 0, len = elements.length; i < len; i++) { var _ret = _loop(i); if (_ret === "continue") continue; } return createdDocument.body.innerHTML; } /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME$6 = 'tooltip'; var VERSION$6 = '4.6.0'; var DATA_KEY$6 = 'bs.tooltip'; var EVENT_KEY$6 = "." + DATA_KEY$6; var JQUERY_NO_CONFLICT$6 = $__default['default'].fn[NAME$6]; var CLASS_PREFIX = 'bs-tooltip'; var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g'); var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn']; var DefaultType$4 = { animation: 'boolean', template: 'string', title: '(string|element|function)', trigger: 'string', delay: '(number|object)', html: 'boolean', selector: '(string|boolean)', placement: '(string|function)', offset: '(number|string|function)', container: '(string|element|boolean)', fallbackPlacement: '(string|array)', boundary: '(string|element)', customClass: '(string|function)', sanitize: 'boolean', sanitizeFn: '(null|function)', whiteList: 'object', popperConfig: '(null|object)' }; var AttachmentMap = { AUTO: 'auto', TOP: 'top', RIGHT: 'right', BOTTOM: 'bottom', LEFT: 'left' }; var Default$4 = { animation: true, template: '<div class="tooltip" role="tooltip">' + '<div class="arrow"></div>' + '<div class="tooltip-inner"></div></div>', trigger: 'hover focus', title: '', delay: 0, html: false, selector: false, placement: 'top', offset: 0, container: false, fallbackPlacement: 'flip', boundary: 'scrollParent', customClass: '', sanitize: true, sanitizeFn: null, whiteList: DefaultWhitelist, popperConfig: null }; var HOVER_STATE_SHOW = 'show'; var HOVER_STATE_OUT = 'out'; var Event = { HIDE: "hide" + EVENT_KEY$6, HIDDEN: "hidden" + EVENT_KEY$6, SHOW: "show" + EVENT_KEY$6, SHOWN: "shown" + EVENT_KEY$6, INSERTED: "inserted" + EVENT_KEY$6, CLICK: "click" + EVENT_KEY$6, FOCUSIN: "focusin" + EVENT_KEY$6, FOCUSOUT: "focusout" + EVENT_KEY$6, MOUSEENTER: "mouseenter" + EVENT_KEY$6, MOUSELEAVE: "mouseleave" + EVENT_KEY$6 }; var CLASS_NAME_FADE$2 = 'fade'; var CLASS_NAME_SHOW$4 = 'show'; var SELECTOR_TOOLTIP_INNER = '.tooltip-inner'; var SELECTOR_ARROW = '.arrow'; var TRIGGER_HOVER = 'hover'; var TRIGGER_FOCUS = 'focus'; var TRIGGER_CLICK = 'click'; var TRIGGER_MANUAL = 'manual'; /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ var Tooltip = /*#__PURE__*/function () { function Tooltip(element, config) { if (typeof Popper__default['default'] === 'undefined') { throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)'); } // private this._isEnabled = true; this._timeout = 0; this._hoverState = ''; this._activeTrigger = {}; this._popper = null; // Protected this.element = element; this.config = this._getConfig(config); this.tip = null; this._setListeners(); } // Getters var _proto = Tooltip.prototype; // Public _proto.enable = function enable() { this._isEnabled = true; }; _proto.disable = function disable() { this._isEnabled = false; }; _proto.toggleEnabled = function toggleEnabled() { this._isEnabled = !this._isEnabled; }; _proto.toggle = function toggle(event) { if (!this._isEnabled) { return; } if (event) { var dataKey = this.constructor.DATA_KEY; var context = $__default['default'](event.currentTarget).data(dataKey); if (!context) { context = new this.constructor(event.currentTarget, this._getDelegateConfig()); $__default['default'](event.currentTarget).data(dataKey, context); } context._activeTrigger.click = !context._activeTrigger.click; if (context._isWithActiveTrigger()) { context._enter(null, context); } else { context._leave(null, context); } } else { if ($__default['default'](this.getTipElement()).hasClass(CLASS_NAME_SHOW$4)) { this._leave(null, this); return; } this._enter(null, this); } }; _proto.dispose = function dispose() { clearTimeout(this._timeout); $__default['default'].removeData(this.element, this.constructor.DATA_KEY); $__default['default'](this.element).off(this.constructor.EVENT_KEY); $__default['default'](this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler); if (this.tip) { $__default['default'](this.tip).remove(); } this._isEnabled = null; this._timeout = null; this._hoverState = null; this._activeTrigger = null; if (this._popper) { this._popper.destroy(); } this._popper = null; this.element = null; this.config = null; this.tip = null; }; _proto.show = function show() { var _this = this; if ($__default['default'](this.element).css('display') === 'none') { throw new Error('Please use show on visible elements'); } var showEvent = $__default['default'].Event(this.constructor.Event.SHOW); if (this.isWithContent() && this._isEnabled) { $__default['default'](this.element).trigger(showEvent); var shadowRoot = Util.findShadowRoot(this.element); var isInTheDom = $__default['default'].contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element); if (showEvent.isDefaultPrevented() || !isInTheDom) { return; } var tip = this.getTipElement(); var tipId = Util.getUID(this.constructor.NAME); tip.setAttribute('id', tipId); this.element.setAttribute('aria-describedby', tipId); this.setContent(); if (this.config.animation) { $__default['default'](tip).addClass(CLASS_NAME_FADE$2); } var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement; var attachment = this._getAttachment(placement); this.addAttachmentClass(attachment); var container = this._getContainer(); $__default['default'](tip).data(this.constructor.DATA_KEY, this); if (!$__default['default'].contains(this.element.ownerDocument.documentElement, this.tip)) { $__default['default'](tip).appendTo(container); } $__default['default'](this.element).trigger(this.constructor.Event.INSERTED); this._popper = new Popper__default['default'](this.element, tip, this._getPopperConfig(attachment)); $__default['default'](tip).addClass(CLASS_NAME_SHOW$4); $__default['default'](tip).addClass(this.config.customClass); // If this is a touch-enabled device we add extra // empty mouseover listeners to the body's immediate children; // only needed because of broken event delegation on iOS // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html if ('ontouchstart' in document.documentElement) { $__default['default'](document.body).children().on('mouseover', null, $__default['default'].noop); } var complete = function complete() { if (_this.config.animation) { _this._fixTransition(); } var prevHoverState = _this._hoverState; _this._hoverState = null; $__default['default'](_this.element).trigger(_this.constructor.Event.SHOWN); if (prevHoverState === HOVER_STATE_OUT) { _this._leave(null, _this); } }; if ($__default['default'](this.tip).hasClass(CLASS_NAME_FADE$2)) { var transitionDuration = Util.getTransitionDurationFromElement(this.tip); $__default['default'](this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); } else { complete(); } } }; _proto.hide = function hide(callback) { var _this2 = this; var tip = this.getTipElement(); var hideEvent = $__default['default'].Event(this.constructor.Event.HIDE); var complete = function complete() { if (_this2._hoverState !== HOVER_STATE_SHOW && tip.parentNode) { tip.parentNode.removeChild(tip); } _this2._cleanTipClass(); _this2.element.removeAttribute('aria-describedby'); $__default['default'](_this2.element).trigger(_this2.constructor.Event.HIDDEN); if (_this2._popper !== null) { _this2._popper.destroy(); } if (callback) { callback(); } }; $__default['default'](this.element).trigger(hideEvent); if (hideEvent.isDefaultPrevented()) { return; } $__default['default'](tip).removeClass(CLASS_NAME_SHOW$4); // If this is a touch-enabled device we remove the extra // empty mouseover listeners we added for iOS support if ('ontouchstart' in document.documentElement) { $__default['default'](document.body).children().off('mouseover', null, $__default['default'].noop); } this._activeTrigger[TRIGGER_CLICK] = false; this._activeTrigger[TRIGGER_FOCUS] = false; this._activeTrigger[TRIGGER_HOVER] = false; if ($__default['default'](this.tip).hasClass(CLASS_NAME_FADE$2)) { var transitionDuration = Util.getTransitionDurationFromElement(tip); $__default['default'](tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); } else { complete(); } this._hoverState = ''; }; _proto.update = function update() { if (this._popper !== null) { this._popper.scheduleUpdate(); } } // Protected ; _proto.isWithContent = function isWithContent() { return Boolean(this.getTitle()); }; _proto.addAttachmentClass = function addAttachmentClass(attachment) { $__default['default'](this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment); }; _proto.getTipElement = function getTipElement() { this.tip = this.tip || $__default['default'](this.config.template)[0]; return this.tip; }; _proto.setContent = function setContent() { var tip = this.getTipElement(); this.setElementContent($__default['default'](tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle()); $__default['default'](tip).removeClass(CLASS_NAME_FADE$2 + " " + CLASS_NAME_SHOW$4); }; _proto.setElementContent = function setElementContent($element, content) { if (typeof content === 'object' && (content.nodeType || content.jquery)) { // Content is a DOM node or a jQuery if (this.config.html) { if (!$__default['default'](content).parent().is($element)) { $element.empty().append(content); } } else { $element.text($__default['default'](content).text()); } return; } if (this.config.html) { if (this.config.sanitize) { content = sanitizeHtml(content, this.config.whiteList, this.config.sanitizeFn); } $element.html(content); } else { $element.text(content); } }; _proto.getTitle = function getTitle() { var title = this.element.getAttribute('data-original-title'); if (!title) { title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title; } return title; } // Private ; _proto._getPopperConfig = function _getPopperConfig(attachment) { var _this3 = this; var defaultBsConfig = { placement: attachment, modifiers: { offset: this._getOffset(), flip: { behavior: this.config.fallbackPlacement }, arrow: { element: SELECTOR_ARROW }, preventOverflow: { boundariesElement: this.config.boundary } }, onCreate: function onCreate(data) { if (data.originalPlacement !== data.placement) { _this3._handlePopperPlacementChange(data); } }, onUpdate: function onUpdate(data) { return _this3._handlePopperPlacementChange(data); } }; return _extends({}, defaultBsConfig, this.config.popperConfig); }; _proto._getOffset = function _getOffset() { var _this4 = this; var offset = {}; if (typeof this.config.offset === 'function') { offset.fn = function (data) { data.offsets = _extends({}, data.offsets, _this4.config.offset(data.offsets, _this4.element) || {}); return data; }; } else { offset.offset = this.config.offset; } return offset; }; _proto._getContainer = function _getContainer() { if (this.config.container === false) { return document.body; } if (Util.isElement(this.config.container)) { return $__default['default'](this.config.container); } return $__default['default'](document).find(this.config.container); }; _proto._getAttachment = function _getAttachment(placement) { return AttachmentMap[placement.toUpperCase()]; }; _proto._setListeners = function _setListeners() { var _this5 = this; var triggers = this.config.trigger.split(' '); triggers.forEach(function (trigger) { if (trigger === 'click') { $__default['default'](_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) { return _this5.toggle(event); }); } else if (trigger !== TRIGGER_MANUAL) { var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN; var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT; $__default['default'](_this5.element).on(eventIn, _this5.config.selector, function (event) { return _this5._enter(event); }).on(eventOut, _this5.config.selector, function (event) { return _this5._leave(event); }); } }); this._hideModalHandler = function () { if (_this5.element) { _this5.hide(); } }; $__default['default'](this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler); if (this.config.selector) { this.config = _extends({}, this.config, { trigger: 'manual', selector: '' }); } else { this._fixTitle(); } }; _proto._fixTitle = function _fixTitle() { var titleType = typeof this.element.getAttribute('data-original-title'); if (this.element.getAttribute('title') || titleType !== 'string') { this.element.setAttribute('data-original-title', this.element.getAttribute('title') || ''); this.element.setAttribute('title', ''); } }; _proto._enter = function _enter(event, context) { var dataKey = this.constructor.DATA_KEY; context = context || $__default['default'](event.currentTarget).data(dataKey); if (!context) { context = new this.constructor(event.currentTarget, this._getDelegateConfig()); $__default['default'](event.currentTarget).data(dataKey, context); } if (event) { context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true; } if ($__default['default'](context.getTipElement()).hasClass(CLASS_NAME_SHOW$4) || context._hoverState === HOVER_STATE_SHOW) { context._hoverState = HOVER_STATE_SHOW; return; } clearTimeout(context._timeout); context._hoverState = HOVER_STATE_SHOW; if (!context.config.delay || !context.config.delay.show) { context.show(); return; } context._timeout = setTimeout(function () { if (context._hoverState === HOVER_STATE_SHOW) { context.show(); } }, context.config.delay.show); }; _proto._leave = function _leave(event, context) { var dataKey = this.constructor.DATA_KEY; context = context || $__default['default'](event.currentTarget).data(dataKey); if (!context) { context = new this.constructor(event.currentTarget, this._getDelegateConfig()); $__default['default'](event.currentTarget).data(dataKey, context); } if (event) { context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = false; } if (context._isWithActiveTrigger()) { return; } clearTimeout(context._timeout); context._hoverState = HOVER_STATE_OUT; if (!context.config.delay || !context.config.delay.hide) { context.hide(); return; } context._timeout = setTimeout(function () { if (context._hoverState === HOVER_STATE_OUT) { context.hide(); } }, context.config.delay.hide); }; _proto._isWithActiveTrigger = function _isWithActiveTrigger() { for (var trigger in this._activeTrigger) { if (this._activeTrigger[trigger]) { return true; } } return false; }; _proto._getConfig = function _getConfig(config) { var dataAttributes = $__default['default'](this.element).data(); Object.keys(dataAttributes).forEach(function (dataAttr) { if (DISALLOWED_ATTRIBUTES.indexOf(dataAttr) !== -1) { delete dataAttributes[dataAttr]; } }); config = _extends({}, this.constructor.Default, dataAttributes, typeof config === 'object' && config ? config : {}); if (typeof config.delay === 'number') { config.delay = { show: config.delay, hide: config.delay }; } if (typeof config.title === 'number') { config.title = config.title.toString(); } if (typeof config.content === 'number') { config.content = config.content.toString(); } Util.typeCheckConfig(NAME$6, config, this.constructor.DefaultType); if (config.sanitize) { config.template = sanitizeHtml(config.template, config.whiteList, config.sanitizeFn); } return config; }; _proto._getDelegateConfig = function _getDelegateConfig() { var config = {}; if (this.config) { for (var key in this.config) { if (this.constructor.Default[key] !== this.config[key]) { config[key] = this.config[key]; } } } return config; }; _proto._cleanTipClass = function _cleanTipClass() { var $tip = $__default['default'](this.getTipElement()); var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX); if (tabClass !== null && tabClass.length) { $tip.removeClass(tabClass.join('')); } }; _proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) { this.tip = popperData.instance.popper; this._cleanTipClass(); this.addAttachmentClass(this._getAttachment(popperData.placement)); }; _proto._fixTransition = function _fixTransition() { var tip = this.getTipElement(); var initConfigAnimation = this.config.animation; if (tip.getAttribute('x-placement') !== null) { return; } $__default['default'](tip).removeClass(CLASS_NAME_FADE$2); this.config.animation = false; this.hide(); this.show(); this.config.animation = initConfigAnimation; } // Static ; Tooltip._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { var $element = $__default['default'](this); var data = $element.data(DATA_KEY$6); var _config = typeof config === 'object' && config; if (!data && /dispose|hide/.test(config)) { return; } if (!data) { data = new Tooltip(this, _config); $element.data(DATA_KEY$6, data); } if (typeof config === 'string') { if (typeof data[config] === 'undefined') { throw new TypeError("No method named \"" + config + "\""); } data[config](); } }); }; _createClass(Tooltip, null, [{ key: "VERSION", get: function get() { return VERSION$6; } }, { key: "Default", get: function get() { return Default$4; } }, { key: "NAME", get: function get() { return NAME$6; } }, { key: "DATA_KEY", get: function get() { return DATA_KEY$6; } }, { key: "Event", get: function get() { return Event; } }, { key: "EVENT_KEY", get: function get() { return EVENT_KEY$6; } }, { key: "DefaultType", get: function get() { return DefaultType$4; } }]); return Tooltip; }(); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $__default['default'].fn[NAME$6] = Tooltip._jQueryInterface; $__default['default'].fn[NAME$6].Constructor = Tooltip; $__default['default'].fn[NAME$6].noConflict = function () { $__default['default'].fn[NAME$6] = JQUERY_NO_CONFLICT$6; return Tooltip._jQueryInterface; }; /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME$7 = 'popover'; var VERSION$7 = '4.6.0'; var DATA_KEY$7 = 'bs.popover'; var EVENT_KEY$7 = "." + DATA_KEY$7; var JQUERY_NO_CONFLICT$7 = $__default['default'].fn[NAME$7]; var CLASS_PREFIX$1 = 'bs-popover'; var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g'); var Default$5 = _extends({}, Tooltip.Default, { placement: 'right', trigger: 'click', content: '', template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>' }); var DefaultType$5 = _extends({}, Tooltip.DefaultType, { content: '(string|element|function)' }); var CLASS_NAME_FADE$3 = 'fade'; var CLASS_NAME_SHOW$5 = 'show'; var SELECTOR_TITLE = '.popover-header'; var SELECTOR_CONTENT = '.popover-body'; var Event$1 = { HIDE: "hide" + EVENT_KEY$7, HIDDEN: "hidden" + EVENT_KEY$7, SHOW: "show" + EVENT_KEY$7, SHOWN: "shown" + EVENT_KEY$7, INSERTED: "inserted" + EVENT_KEY$7, CLICK: "click" + EVENT_KEY$7, FOCUSIN: "focusin" + EVENT_KEY$7, FOCUSOUT: "focusout" + EVENT_KEY$7, MOUSEENTER: "mouseenter" + EVENT_KEY$7, MOUSELEAVE: "mouseleave" + EVENT_KEY$7 }; /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ var Popover = /*#__PURE__*/function (_Tooltip) { _inheritsLoose(Popover, _Tooltip); function Popover() { return _Tooltip.apply(this, arguments) || this; } var _proto = Popover.prototype; // Overrides _proto.isWithContent = function isWithContent() { return this.getTitle() || this._getContent(); }; _proto.addAttachmentClass = function addAttachmentClass(attachment) { $__default['default'](this.getTipElement()).addClass(CLASS_PREFIX$1 + "-" + attachment); }; _proto.getTipElement = function getTipElement() { this.tip = this.tip || $__default['default'](this.config.template)[0]; return this.tip; }; _proto.setContent = function setContent() { var $tip = $__default['default'](this.getTipElement()); // We use append for html objects to maintain js events this.setElementContent($tip.find(SELECTOR_TITLE), this.getTitle()); var content = this._getContent(); if (typeof content === 'function') { content = content.call(this.element); } this.setElementContent($tip.find(SELECTOR_CONTENT), content); $tip.removeClass(CLASS_NAME_FADE$3 + " " + CLASS_NAME_SHOW$5); } // Private ; _proto._getContent = function _getContent() { return this.element.getAttribute('data-content') || this.config.content; }; _proto._cleanTipClass = function _cleanTipClass() { var $tip = $__default['default'](this.getTipElement()); var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX$1); if (tabClass !== null && tabClass.length > 0) { $tip.removeClass(tabClass.join('')); } } // Static ; Popover._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { var data = $__default['default'](this).data(DATA_KEY$7); var _config = typeof config === 'object' ? config : null; if (!data && /dispose|hide/.test(config)) { return; } if (!data) { data = new Popover(this, _config); $__default['default'](this).data(DATA_KEY$7, data); } if (typeof config === 'string') { if (typeof data[config] === 'undefined') { throw new TypeError("No method named \"" + config + "\""); } data[config](); } }); }; _createClass(Popover, null, [{ key: "VERSION", // Getters get: function get() { return VERSION$7; } }, { key: "Default", get: function get() { return Default$5; } }, { key: "NAME", get: function get() { return NAME$7; } }, { key: "DATA_KEY", get: function get() { return DATA_KEY$7; } }, { key: "Event", get: function get() { return Event$1; } }, { key: "EVENT_KEY", get: function get() { return EVENT_KEY$7; } }, { key: "DefaultType", get: function get() { return DefaultType$5; } }]); return Popover; }(Tooltip); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $__default['default'].fn[NAME$7] = Popover._jQueryInterface; $__default['default'].fn[NAME$7].Constructor = Popover; $__default['default'].fn[NAME$7].noConflict = function () { $__default['default'].fn[NAME$7] = JQUERY_NO_CONFLICT$7; return Popover._jQueryInterface; }; /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME$8 = 'scrollspy'; var VERSION$8 = '4.6.0'; var DATA_KEY$8 = 'bs.scrollspy'; var EVENT_KEY$8 = "." + DATA_KEY$8; var DATA_API_KEY$6 = '.data-api'; var JQUERY_NO_CONFLICT$8 = $__default['default'].fn[NAME$8]; var Default$6 = { offset: 10, method: 'auto', target: '' }; var DefaultType$6 = { offset: 'number', method: 'string', target: '(string|element)' }; var EVENT_ACTIVATE = "activate" + EVENT_KEY$8; var EVENT_SCROLL = "scroll" + EVENT_KEY$8; var EVENT_LOAD_DATA_API$2 = "load" + EVENT_KEY$8 + DATA_API_KEY$6; var CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item'; var CLASS_NAME_ACTIVE$2 = 'active'; var SELECTOR_DATA_SPY = '[data-spy="scroll"]'; var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group'; var SELECTOR_NAV_LINKS = '.nav-link'; var SELECTOR_NAV_ITEMS = '.nav-item'; var SELECTOR_LIST_ITEMS = '.list-group-item'; var SELECTOR_DROPDOWN = '.dropdown'; var SELECTOR_DROPDOWN_ITEMS = '.dropdown-item'; var SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle'; var METHOD_OFFSET = 'offset'; var METHOD_POSITION = 'position'; /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ var ScrollSpy = /*#__PURE__*/function () { function ScrollSpy(element, config) { var _this = this; this._element = element; this._scrollElement = element.tagName === 'BODY' ? window : element; this._config = this._getConfig(config); this._selector = this._config.target + " " + SELECTOR_NAV_LINKS + "," + (this._config.target + " " + SELECTOR_LIST_ITEMS + ",") + (this._config.target + " " + SELECTOR_DROPDOWN_ITEMS); this._offsets = []; this._targets = []; this._activeTarget = null; this._scrollHeight = 0; $__default['default'](this._scrollElement).on(EVENT_SCROLL, function (event) { return _this._process(event); }); this.refresh(); this._process(); } // Getters var _proto = ScrollSpy.prototype; // Public _proto.refresh = function refresh() { var _this2 = this; var autoMethod = this._scrollElement === this._scrollElement.window ? METHOD_OFFSET : METHOD_POSITION; var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method; var offsetBase = offsetMethod === METHOD_POSITION ? this._getScrollTop() : 0; this._offsets = []; this._targets = []; this._scrollHeight = this._getScrollHeight(); var targets = [].slice.call(document.querySelectorAll(this._selector)); targets.map(function (element) { var target; var targetSelector = Util.getSelectorFromElement(element); if (targetSelector) { target = document.querySelector(targetSelector); } if (target) { var targetBCR = target.getBoundingClientRect(); if (targetBCR.width || targetBCR.height) { // TODO (fat): remove sketch reliance on jQuery position/offset return [$__default['default'](target)[offsetMethod]().top + offsetBase, targetSelector]; } } return null; }).filter(function (item) { return item; }).sort(function (a, b) { return a[0] - b[0]; }).forEach(function (item) { _this2._offsets.push(item[0]); _this2._targets.push(item[1]); }); }; _proto.dispose = function dispose() { $__default['default'].removeData(this._element, DATA_KEY$8); $__default['default'](this._scrollElement).off(EVENT_KEY$8); this._element = null; this._scrollElement = null; this._config = null; this._selector = null; this._offsets = null; this._targets = null; this._activeTarget = null; this._scrollHeight = null; } // Private ; _proto._getConfig = function _getConfig(config) { config = _extends({}, Default$6, typeof config === 'object' && config ? config : {}); if (typeof config.target !== 'string' && Util.isElement(config.target)) { var id = $__default['default'](config.target).attr('id'); if (!id) { id = Util.getUID(NAME$8); $__default['default'](config.target).attr('id', id); } config.target = "#" + id; } Util.typeCheckConfig(NAME$8, config, DefaultType$6); return config; }; _proto._getScrollTop = function _getScrollTop() { return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop; }; _proto._getScrollHeight = function _getScrollHeight() { return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight); }; _proto._getOffsetHeight = function _getOffsetHeight() { return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height; }; _proto._process = function _process() { var scrollTop = this._getScrollTop() + this._config.offset; var scrollHeight = this._getScrollHeight(); var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight(); if (this._scrollHeight !== scrollHeight) { this.refresh(); } if (scrollTop >= maxScroll) { var target = this._targets[this._targets.length - 1]; if (this._activeTarget !== target) { this._activate(target); } return; } if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) { this._activeTarget = null; this._clear(); return; } for (var i = this._offsets.length; i--;) { var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]); if (isActiveTarget) { this._activate(this._targets[i]); } } }; _proto._activate = function _activate(target) { this._activeTarget = target; this._clear(); var queries = this._selector.split(',').map(function (selector) { return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]"; }); var $link = $__default['default']([].slice.call(document.querySelectorAll(queries.join(',')))); if ($link.hasClass(CLASS_NAME_DROPDOWN_ITEM)) { $link.closest(SELECTOR_DROPDOWN).find(SELECTOR_DROPDOWN_TOGGLE).addClass(CLASS_NAME_ACTIVE$2); $link.addClass(CLASS_NAME_ACTIVE$2); } else { // Set triggered link as active $link.addClass(CLASS_NAME_ACTIVE$2); // Set triggered links parents as active // With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor $link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_LINKS + ", " + SELECTOR_LIST_ITEMS).addClass(CLASS_NAME_ACTIVE$2); // Handle special case when .nav-link is inside .nav-item $link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_ITEMS).children(SELECTOR_NAV_LINKS).addClass(CLASS_NAME_ACTIVE$2); } $__default['default'](this._scrollElement).trigger(EVENT_ACTIVATE, { relatedTarget: target }); }; _proto._clear = function _clear() { [].slice.call(document.querySelectorAll(this._selector)).filter(function (node) { return node.classList.contains(CLASS_NAME_ACTIVE$2); }).forEach(function (node) { return node.classList.remove(CLASS_NAME_ACTIVE$2); }); } // Static ; ScrollSpy._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { var data = $__default['default'](this).data(DATA_KEY$8); var _config = typeof config === 'object' && config; if (!data) { data = new ScrollSpy(this, _config); $__default['default'](this).data(DATA_KEY$8, data); } if (typeof config === 'string') { if (typeof data[config] === 'undefined') { throw new TypeError("No method named \"" + config + "\""); } data[config](); } }); }; _createClass(ScrollSpy, null, [{ key: "VERSION", get: function get() { return VERSION$8; } }, { key: "Default", get: function get() { return Default$6; } }]); return ScrollSpy; }(); /** * ------------------------------------------------------------------------ * Data Api implementation * ------------------------------------------------------------------------ */ $__default['default'](window).on(EVENT_LOAD_DATA_API$2, function () { var scrollSpys = [].slice.call(document.querySelectorAll(SELECTOR_DATA_SPY)); var scrollSpysLength = scrollSpys.length; for (var i = scrollSpysLength; i--;) { var $spy = $__default['default'](scrollSpys[i]); ScrollSpy._jQueryInterface.call($spy, $spy.data()); } }); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $__default['default'].fn[NAME$8] = ScrollSpy._jQueryInterface; $__default['default'].fn[NAME$8].Constructor = ScrollSpy; $__default['default'].fn[NAME$8].noConflict = function () { $__default['default'].fn[NAME$8] = JQUERY_NO_CONFLICT$8; return ScrollSpy._jQueryInterface; }; /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME$9 = 'tab'; var VERSION$9 = '4.6.0'; var DATA_KEY$9 = 'bs.tab'; var EVENT_KEY$9 = "." + DATA_KEY$9; var DATA_API_KEY$7 = '.data-api'; var JQUERY_NO_CONFLICT$9 = $__default['default'].fn[NAME$9]; var EVENT_HIDE$3 = "hide" + EVENT_KEY$9; var EVENT_HIDDEN$3 = "hidden" + EVENT_KEY$9; var EVENT_SHOW$3 = "show" + EVENT_KEY$9; var EVENT_SHOWN$3 = "shown" + EVENT_KEY$9; var EVENT_CLICK_DATA_API$6 = "click" + EVENT_KEY$9 + DATA_API_KEY$7; var CLASS_NAME_DROPDOWN_MENU = 'dropdown-menu'; var CLASS_NAME_ACTIVE$3 = 'active'; var CLASS_NAME_DISABLED$1 = 'disabled'; var CLASS_NAME_FADE$4 = 'fade'; var CLASS_NAME_SHOW$6 = 'show'; var SELECTOR_DROPDOWN$1 = '.dropdown'; var SELECTOR_NAV_LIST_GROUP$1 = '.nav, .list-group'; var SELECTOR_ACTIVE$2 = '.active'; var SELECTOR_ACTIVE_UL = '> li > .active'; var SELECTOR_DATA_TOGGLE$4 = '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]'; var SELECTOR_DROPDOWN_TOGGLE$1 = '.dropdown-toggle'; var SELECTOR_DROPDOWN_ACTIVE_CHILD = '> .dropdown-menu .active'; /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ var Tab = /*#__PURE__*/function () { function Tab(element) { this._element = element; } // Getters var _proto = Tab.prototype; // Public _proto.show = function show() { var _this = this; if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $__default['default'](this._element).hasClass(CLASS_NAME_ACTIVE$3) || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED$1)) { return; } var target; var previous; var listElement = $__default['default'](this._element).closest(SELECTOR_NAV_LIST_GROUP$1)[0]; var selector = Util.getSelectorFromElement(this._element); if (listElement) { var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE$2; previous = $__default['default'].makeArray($__default['default'](listElement).find(itemSelector)); previous = previous[previous.length - 1]; } var hideEvent = $__default['default'].Event(EVENT_HIDE$3, { relatedTarget: this._element }); var showEvent = $__default['default'].Event(EVENT_SHOW$3, { relatedTarget: previous }); if (previous) { $__default['default'](previous).trigger(hideEvent); } $__default['default'](this._element).trigger(showEvent); if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) { return; } if (selector) { target = document.querySelector(selector); } this._activate(this._element, listElement); var complete = function complete() { var hiddenEvent = $__default['default'].Event(EVENT_HIDDEN$3, { relatedTarget: _this._element }); var shownEvent = $__default['default'].Event(EVENT_SHOWN$3, { relatedTarget: previous }); $__default['default'](previous).trigger(hiddenEvent); $__default['default'](_this._element).trigger(shownEvent); }; if (target) { this._activate(target, target.parentNode, complete); } else { complete(); } }; _proto.dispose = function dispose() { $__default['default'].removeData(this._element, DATA_KEY$9); this._element = null; } // Private ; _proto._activate = function _activate(element, container, callback) { var _this2 = this; var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $__default['default'](container).find(SELECTOR_ACTIVE_UL) : $__default['default'](container).children(SELECTOR_ACTIVE$2); var active = activeElements[0]; var isTransitioning = callback && active && $__default['default'](active).hasClass(CLASS_NAME_FADE$4); var complete = function complete() { return _this2._transitionComplete(element, active, callback); }; if (active && isTransitioning) { var transitionDuration = Util.getTransitionDurationFromElement(active); $__default['default'](active).removeClass(CLASS_NAME_SHOW$6).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); } else { complete(); } }; _proto._transitionComplete = function _transitionComplete(element, active, callback) { if (active) { $__default['default'](active).removeClass(CLASS_NAME_ACTIVE$3); var dropdownChild = $__default['default'](active.parentNode).find(SELECTOR_DROPDOWN_ACTIVE_CHILD)[0]; if (dropdownChild) { $__default['default'](dropdownChild).removeClass(CLASS_NAME_ACTIVE$3); } if (active.getAttribute('role') === 'tab') { active.setAttribute('aria-selected', false); } } $__default['default'](element).addClass(CLASS_NAME_ACTIVE$3); if (element.getAttribute('role') === 'tab') { element.setAttribute('aria-selected', true); } Util.reflow(element); if (element.classList.contains(CLASS_NAME_FADE$4)) { element.classList.add(CLASS_NAME_SHOW$6); } if (element.parentNode && $__default['default'](element.parentNode).hasClass(CLASS_NAME_DROPDOWN_MENU)) { var dropdownElement = $__default['default'](element).closest(SELECTOR_DROPDOWN$1)[0]; if (dropdownElement) { var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(SELECTOR_DROPDOWN_TOGGLE$1)); $__default['default'](dropdownToggleList).addClass(CLASS_NAME_ACTIVE$3); } element.setAttribute('aria-expanded', true); } if (callback) { callback(); } } // Static ; Tab._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { var $this = $__default['default'](this); var data = $this.data(DATA_KEY$9); if (!data) { data = new Tab(this); $this.data(DATA_KEY$9, data); } if (typeof config === 'string') { if (typeof data[config] === 'undefined') { throw new TypeError("No method named \"" + config + "\""); } data[config](); } }); }; _createClass(Tab, null, [{ key: "VERSION", get: function get() { return VERSION$9; } }]); return Tab; }(); /** * ------------------------------------------------------------------------ * Data Api implementation * ------------------------------------------------------------------------ */ $__default['default'](document).on(EVENT_CLICK_DATA_API$6, SELECTOR_DATA_TOGGLE$4, function (event) { event.preventDefault(); Tab._jQueryInterface.call($__default['default'](this), 'show'); }); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $__default['default'].fn[NAME$9] = Tab._jQueryInterface; $__default['default'].fn[NAME$9].Constructor = Tab; $__default['default'].fn[NAME$9].noConflict = function () { $__default['default'].fn[NAME$9] = JQUERY_NO_CONFLICT$9; return Tab._jQueryInterface; }; /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME$a = 'toast'; var VERSION$a = '4.6.0'; var DATA_KEY$a = 'bs.toast'; var EVENT_KEY$a = "." + DATA_KEY$a; var JQUERY_NO_CONFLICT$a = $__default['default'].fn[NAME$a]; var EVENT_CLICK_DISMISS$1 = "click.dismiss" + EVENT_KEY$a; var EVENT_HIDE$4 = "hide" + EVENT_KEY$a; var EVENT_HIDDEN$4 = "hidden" + EVENT_KEY$a; var EVENT_SHOW$4 = "show" + EVENT_KEY$a; var EVENT_SHOWN$4 = "shown" + EVENT_KEY$a; var CLASS_NAME_FADE$5 = 'fade'; var CLASS_NAME_HIDE = 'hide'; var CLASS_NAME_SHOW$7 = 'show'; var CLASS_NAME_SHOWING = 'showing'; var DefaultType$7 = { animation: 'boolean', autohide: 'boolean', delay: 'number' }; var Default$7 = { animation: true, autohide: true, delay: 500 }; var SELECTOR_DATA_DISMISS$1 = '[data-dismiss="toast"]'; /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ var Toast = /*#__PURE__*/function () { function Toast(element, config) { this._element = element; this._config = this._getConfig(config); this._timeout = null; this._setListeners(); } // Getters var _proto = Toast.prototype; // Public _proto.show = function show() { var _this = this; var showEvent = $__default['default'].Event(EVENT_SHOW$4); $__default['default'](this._element).trigger(showEvent); if (showEvent.isDefaultPrevented()) { return; } this._clearTimeout(); if (this._config.animation) { this._element.classList.add(CLASS_NAME_FADE$5); } var complete = function complete() { _this._element.classList.remove(CLASS_NAME_SHOWING); _this._element.classList.add(CLASS_NAME_SHOW$7); $__default['default'](_this._element).trigger(EVENT_SHOWN$4); if (_this._config.autohide) { _this._timeout = setTimeout(function () { _this.hide(); }, _this._config.delay); } }; this._element.classList.remove(CLASS_NAME_HIDE); Util.reflow(this._element); this._element.classList.add(CLASS_NAME_SHOWING); if (this._config.animation) { var transitionDuration = Util.getTransitionDurationFromElement(this._element); $__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); } else { complete(); } }; _proto.hide = function hide() { if (!this._element.classList.contains(CLASS_NAME_SHOW$7)) { return; } var hideEvent = $__default['default'].Event(EVENT_HIDE$4); $__default['default'](this._element).trigger(hideEvent); if (hideEvent.isDefaultPrevented()) { return; } this._close(); }; _proto.dispose = function dispose() { this._clearTimeout(); if (this._element.classList.contains(CLASS_NAME_SHOW$7)) { this._element.classList.remove(CLASS_NAME_SHOW$7); } $__default['default'](this._element).off(EVENT_CLICK_DISMISS$1); $__default['default'].removeData(this._element, DATA_KEY$a); this._element = null; this._config = null; } // Private ; _proto._getConfig = function _getConfig(config) { config = _extends({}, Default$7, $__default['default'](this._element).data(), typeof config === 'object' && config ? config : {}); Util.typeCheckConfig(NAME$a, config, this.constructor.DefaultType); return config; }; _proto._setListeners = function _setListeners() { var _this2 = this; $__default['default'](this._element).on(EVENT_CLICK_DISMISS$1, SELECTOR_DATA_DISMISS$1, function () { return _this2.hide(); }); }; _proto._close = function _close() { var _this3 = this; var complete = function complete() { _this3._element.classList.add(CLASS_NAME_HIDE); $__default['default'](_this3._element).trigger(EVENT_HIDDEN$4); }; this._element.classList.remove(CLASS_NAME_SHOW$7); if (this._config.animation) { var transitionDuration = Util.getTransitionDurationFromElement(this._element); $__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); } else { complete(); } }; _proto._clearTimeout = function _clearTimeout() { clearTimeout(this._timeout); this._timeout = null; } // Static ; Toast._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { var $element = $__default['default'](this); var data = $element.data(DATA_KEY$a); var _config = typeof config === 'object' && config; if (!data) { data = new Toast(this, _config); $element.data(DATA_KEY$a, data); } if (typeof config === 'string') { if (typeof data[config] === 'undefined') { throw new TypeError("No method named \"" + config + "\""); } data[config](this); } }); }; _createClass(Toast, null, [{ key: "VERSION", get: function get() { return VERSION$a; } }, { key: "DefaultType", get: function get() { return DefaultType$7; } }, { key: "Default", get: function get() { return Default$7; } }]); return Toast; }(); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $__default['default'].fn[NAME$a] = Toast._jQueryInterface; $__default['default'].fn[NAME$a].Constructor = Toast; $__default['default'].fn[NAME$a].noConflict = function () { $__default['default'].fn[NAME$a] = JQUERY_NO_CONFLICT$a; return Toast._jQueryInterface; }; exports.Alert = Alert; exports.Button = Button; exports.Carousel = Carousel; exports.Collapse = Collapse; exports.Dropdown = Dropdown; exports.Modal = Modal; exports.Popover = Popover; exports.Scrollspy = ScrollSpy; exports.Tab = Tab; exports.Toast = Toast; exports.Tooltip = Tooltip; exports.Util = Util; Object.defineProperty(exports, '__esModule', { value: true }); }))); //# sourceMappingURL=bootstrap.js.map /***/ }), /***/ "./node_modules/drag-event-service/dist/drag-event-service.esm.js": /*!************************************************************************!*\ !*** ./node_modules/drag-event-service/dist/drag-event-service.esm.js ***! \************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), /* harmony export */ "trackMouseOrTouchPosition": () => (/* binding */ trackMouseOrTouchPosition) /* harmony export */ }); /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"); /* harmony import */ var helper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! helper-js */ "./node_modules/drag-event-service/node_modules/helper-js/dist/helper-js.esm.js"); /*! * drag-event-service v1.1.7 * (c) phphe <phphe@outlook.com> (https://github.com/phphe) * Homepage: undefined * Released under the MIT License. */ var events = { start: ['mousedown', 'touchstart'], move: ['mousemove', 'touchmove'], end: ['mouseup', 'touchend'] }; var DragEventService = { isTouch: function isTouch(e) { return e.type && e.type.startsWith('touch'); }, _getStore: function _getStore(el) { if (!el._wrapperStore) { el._wrapperStore = []; } return el._wrapperStore; }, on: function on(el, name, handler, options) { var _hp$onDOM, _hp$onDOM2; var _resolveOptions = resolveOptions(options), args = _resolveOptions.args, mouseArgs = _resolveOptions.mouseArgs, touchArgs = _resolveOptions.touchArgs; var store = this._getStore(el); var ts = this; var wrapper = function wrapper(e) { var mouse; var isTouch = ts.isTouch(e); if (isTouch) { // touch mouse = { x: e.changedTouches[0].pageX, y: e.changedTouches[0].pageY, pageX: e.changedTouches[0].pageX, pageY: e.changedTouches[0].pageY, clientX: e.changedTouches[0].clientX, clientY: e.changedTouches[0].clientY, screenX: e.changedTouches[0].screenX, screenY: e.changedTouches[0].screenY }; } else { // mouse mouse = { x: e.pageX, y: e.pageY, pageX: e.pageX, pageY: e.pageY, clientX: e.clientX, clientY: e.clientY, screenX: e.screenX, screenY: e.screenY }; if (name === 'start' && e.which !== 1) { // not left button mousedown return; } } return handler.call(this, e, mouse); }; store.push({ handler: handler, wrapper: wrapper }); // follow format will cause big bundle size // 以下写法将会使打包工具认为hp是上下文, 导致打包整个hp // hp.onDOM(el, events[name][0], wrapper, ...args) (_hp$onDOM = helper_js__WEBPACK_IMPORTED_MODULE_1__.onDOM).call.apply(_hp$onDOM, [null, el, events[name][0], wrapper].concat([].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__.default)(args), (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__.default)(mouseArgs)))); (_hp$onDOM2 = helper_js__WEBPACK_IMPORTED_MODULE_1__.onDOM).call.apply(_hp$onDOM2, [null, el, events[name][1], wrapper].concat([].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__.default)(args), (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__.default)(touchArgs)))); }, off: function off(el, name, handler, options) { var _resolveOptions2 = resolveOptions(options), args = _resolveOptions2.args, mouseArgs = _resolveOptions2.mouseArgs; var store = this._getStore(el); for (var i = store.length - 1; i >= 0; i--) { var _store$i = store[i], handler2 = _store$i.handler, wrapper = _store$i.wrapper; if (handler === handler2) { var _hp$offDOM, _hp$offDOM2; (_hp$offDOM = helper_js__WEBPACK_IMPORTED_MODULE_1__.offDOM).call.apply(_hp$offDOM, [null, el, events[name][0], wrapper].concat([].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__.default)(args), (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__.default)(mouseArgs)))); (_hp$offDOM2 = helper_js__WEBPACK_IMPORTED_MODULE_1__.offDOM).call.apply(_hp$offDOM2, [null, el, events[name][1], wrapper].concat([].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__.default)(args), (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__.default)(mouseArgs)))); store.splice(i, 1); } } } }; function resolveOptions(options) { if (!options) { options = {}; } var args = options.args || []; var mouseArgs = options.mouseArgs || []; var touchArgs = options.touchArgs || []; return { args: args, mouseArgs: mouseArgs, touchArgs: touchArgs }; } function trackMouseOrTouchPosition() { var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var trackedInfo = { position: {} }; var update = function update(name, e) { var isTouch = DragEventService.isTouch(e); if (isTouch) { // touch Object.assign(trackedInfo.position, { x: e.changedTouches[0].pageX, y: e.changedTouches[0].pageY, pageX: e.changedTouches[0].pageX, pageY: e.changedTouches[0].pageY, clientX: e.changedTouches[0].clientX, clientY: e.changedTouches[0].clientY, screenX: e.changedTouches[0].screenX, screenY: e.changedTouches[0].screenY }); } else { // mouse Object.assign(trackedInfo.position, { x: e.pageX, y: e.pageY, pageX: e.pageX, pageY: e.pageY, clientX: e.clientX, clientY: e.clientY, screenX: e.screenX, screenY: e.screenY }); } if (name === 'start') { trackedInfo.startEvent = e; } else if (name === 'end') { trackedInfo.endEvent = e; } Object.assign(trackedInfo, { event: e, isTouch: isTouch, eventType: name }); }; var onStart = function onStart(e) { var isTouch = DragEventService.isTouch(e); if (!isTouch && e.which !== 1) { // not left button mousedown return; } update('start', e); if (options.onStart) { options.onStart(); } }; var onMove = function onMove(e) { update('move', e); if (options.onMove) { options.onMove(); } }; var onEnd = function onEnd(e) { update('end', e); if (options.onEnd) { options.onEnd(); } }; var start = function start() { DragEventService.on(document, 'start', onStart); DragEventService.on(document, 'move', onMove); DragEventService.on(window, 'end', onEnd); trackedInfo.started = true; }; var stop = function stop() { DragEventService.off(document, 'start', onStart); DragEventService.off(document, 'move', onMove); DragEventService.off(window, 'end', onEnd); trackedInfo.started = false; }; return { info: trackedInfo, start: start, stop: stop }; } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DragEventService); /***/ }), /***/ "./node_modules/drag-event-service/node_modules/helper-js/dist/helper-js.esm.js": /*!**************************************************************************************!*\ !*** ./node_modules/drag-event-service/node_modules/helper-js/dist/helper-js.esm.js ***! \**************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "Cache": () => (/* binding */ Cache), /* harmony export */ "CrossWindow": () => (/* binding */ CrossWindow), /* harmony export */ "CrossWindowEventProcessor": () => (/* binding */ CrossWindowEventProcessor), /* harmony export */ "EventProcessor": () => (/* binding */ EventProcessor), /* harmony export */ "TreeData": () => (/* binding */ TreeData), /* harmony export */ "URLHelper": () => (/* binding */ URLHelper), /* harmony export */ "addClass": () => (/* binding */ addClass), /* harmony export */ "addDate": () => (/* binding */ addDate), /* harmony export */ "appendTo": () => (/* binding */ appendTo), /* harmony export */ "arrayAt": () => (/* binding */ arrayAt), /* harmony export */ "arrayDistinct": () => (/* binding */ arrayDistinct), /* harmony export */ "arrayFirst": () => (/* binding */ arrayFirst), /* harmony export */ "arrayFlat": () => (/* binding */ arrayFlat), /* harmony export */ "arrayGetRange": () => (/* binding */ arrayGetRange), /* harmony export */ "arrayLast": () => (/* binding */ arrayLast), /* harmony export */ "arrayRemove": () => (/* binding */ arrayRemove), /* harmony export */ "arrayRemoveBySortedIndexes": () => (/* binding */ arrayRemoveBySortedIndexes), /* harmony export */ "arraySubtract": () => (/* binding */ arraySubtract), /* harmony export */ "arrayWithoutEnd": () => (/* binding */ arrayWithoutEnd), /* harmony export */ "assignIfDifferent": () => (/* binding */ assignIfDifferent), /* harmony export */ "attachCache": () => (/* binding */ attachCache), /* harmony export */ "backupAttr": () => (/* binding */ backupAttr), /* harmony export */ "binarySearch": () => (/* binding */ binarySearch), /* harmony export */ "camelCase": () => (/* binding */ camelCase), /* harmony export */ "camelToWords": () => (/* binding */ camelToWords), /* harmony export */ "cloneDate": () => (/* binding */ cloneDate), /* harmony export */ "copyTextToClipboard": () => (/* binding */ copyTextToClipboard), /* harmony export */ "createElementFromHTML": () => (/* binding */ createElementFromHTML), /* harmony export */ "debounceImmediate": () => (/* binding */ debounceImmediate), /* harmony export */ "debounceTrailing": () => (/* binding */ debounceTrailing), /* harmony export */ "depthFirstSearch": () => (/* binding */ depthFirstSearch), /* harmony export */ "easeInOutQuad": () => (/* binding */ easeInOutQuad), /* harmony export */ "elementsFromPoint": () => (/* binding */ elementsFromPoint), /* harmony export */ "empty": () => (/* binding */ empty), /* harmony export */ "executePromiseGetters": () => (/* binding */ executePromiseGetters), /* harmony export */ "executeWithCount": () => (/* binding */ executeWithCount), /* harmony export */ "findNodeList": () => (/* binding */ findNodeList), /* harmony export */ "findNodeListReverse": () => (/* binding */ findNodeListReverse), /* harmony export */ "findParent": () => (/* binding */ findParent), /* harmony export */ "getArrayItemSibling": () => (/* binding */ getArrayItemSibling), /* harmony export */ "getArrayItemSiblings": () => (/* binding */ getArrayItemSiblings), /* harmony export */ "getBorder": () => (/* binding */ getBorder), /* harmony export */ "getBoundingClientRect": () => (/* binding */ getBoundingClientRect), /* harmony export */ "getCalendar": () => (/* binding */ getCalendar), /* harmony export */ "getElSizeEvenInvisible": () => (/* binding */ getElSizeEvenInvisible), /* harmony export */ "getImageSizeByUrl": () => (/* binding */ getImageSizeByUrl), /* harmony export */ "getLocalStorage2": () => (/* binding */ getLocalStorage2), /* harmony export */ "getMonthEnd": () => (/* binding */ getMonthEnd), /* harmony export */ "getMonthStart": () => (/* binding */ getMonthStart), /* harmony export */ "getOffset": () => (/* binding */ getOffset), /* harmony export */ "getOffsetParent": () => (/* binding */ getOffsetParent), /* harmony export */ "getOuterAttachedHeight": () => (/* binding */ getOuterAttachedHeight), /* harmony export */ "getOuterAttachedWidth": () => (/* binding */ getOuterAttachedWidth), /* harmony export */ "getPosition": () => (/* binding */ getPosition), /* harmony export */ "getPositionFromOffset": () => (/* binding */ getPositionFromOffset), /* harmony export */ "getScroll": () => (/* binding */ getScroll), /* harmony export */ "getSessionStorage2": () => (/* binding */ getSessionStorage2), /* harmony export */ "getUrlParam": () => (/* binding */ getUrlParam), /* harmony export */ "getUserLanguage": () => (/* binding */ getUserLanguage), /* harmony export */ "getViewportPosition": () => (/* binding */ getViewportPosition), /* harmony export */ "glb": () => (/* binding */ glb), /* harmony export */ "groupArray": () => (/* binding */ groupArray), /* harmony export */ "hasClass": () => (/* binding */ hasClass), /* harmony export */ "insertAfter": () => (/* binding */ insertAfter), /* harmony export */ "insertBefore": () => (/* binding */ insertBefore), /* harmony export */ "isArray": () => (/* binding */ isArray), /* harmony export */ "isBool": () => (/* binding */ isBool), /* harmony export */ "isDescendantOf": () => (/* binding */ isDescendantOf), /* harmony export */ "isDocumentExisted": () => (/* binding */ isDocumentExisted), /* harmony export */ "isFunction": () => (/* binding */ isFunction), /* harmony export */ "isIE": () => (/* binding */ isIE), /* harmony export */ "isIsoFormat": () => (/* binding */ isIsoFormat), /* harmony export */ "isNode": () => (/* binding */ isNode), /* harmony export */ "isNumber": () => (/* binding */ isNumber), /* harmony export */ "isNumeric": () => (/* binding */ isNumeric), /* harmony export */ "isObject": () => (/* binding */ isObject), /* harmony export */ "isOffsetInEl": () => (/* binding */ isOffsetInEl), /* harmony export */ "isPromise": () => (/* binding */ isPromise), /* harmony export */ "isString": () => (/* binding */ isString), /* harmony export */ "isWindowDefined": () => (/* binding */ isWindowDefined), /* harmony export */ "iterateAll": () => (/* binding */ iterateAll), /* harmony export */ "joinFunctionsByNext": () => (/* binding */ joinFunctionsByNext), /* harmony export */ "joinFunctionsByResult": () => (/* binding */ joinFunctionsByResult), /* harmony export */ "kebabCase": () => (/* binding */ kebabCase), /* harmony export */ "makeStorageHelper": () => (/* binding */ makeStorageHelper), /* harmony export */ "mapObjectTree": () => (/* binding */ mapObjectTree), /* harmony export */ "mapObjects": () => (/* binding */ mapObjects), /* harmony export */ "newArrayExcludingIndexes": () => (/* binding */ newArrayExcludingIndexes), /* harmony export */ "notGreaterThan": () => (/* binding */ notGreaterThan), /* harmony export */ "notLessThan": () => (/* binding */ notLessThan), /* harmony export */ "objectAssignIfKeyNull": () => (/* binding */ objectAssignIfKeyNull), /* harmony export */ "objectExcept": () => (/* binding */ objectExcept), /* harmony export */ "objectGet": () => (/* binding */ objectGet), /* harmony export */ "objectMap": () => (/* binding */ objectMap), /* harmony export */ "objectOnly": () => (/* binding */ objectOnly), /* harmony export */ "objectSet": () => (/* binding */ objectSet), /* harmony export */ "offDOM": () => (/* binding */ offDOM), /* harmony export */ "offsetToViewportPosition": () => (/* binding */ offsetToViewportPosition), /* harmony export */ "onContinuousInput": () => (/* binding */ onContinuousInput), /* harmony export */ "onDOM": () => (/* binding */ onDOM), /* harmony export */ "onDOMMany": () => (/* binding */ onDOMMany), /* harmony export */ "onQuickKeydown": () => (/* binding */ onQuickKeydown), /* harmony export */ "openCenterWindow": () => (/* binding */ openCenterWindow), /* harmony export */ "openWindow": () => (/* binding */ openWindow), /* harmony export */ "pairRows": () => (/* binding */ pairRows), /* harmony export */ "parseISO": () => (/* binding */ parseISO), /* harmony export */ "prependTo": () => (/* binding */ prependTo), /* harmony export */ "promiseTimeout": () => (/* binding */ promiseTimeout), /* harmony export */ "randChoice": () => (/* binding */ randChoice), /* harmony export */ "randInt": () => (/* binding */ randInt), /* harmony export */ "randString": () => (/* binding */ randString), /* harmony export */ "removeClass": () => (/* binding */ removeClass), /* harmony export */ "removeEl": () => (/* binding */ removeEl), /* harmony export */ "resolveArgsByType": () => (/* binding */ resolveArgsByType), /* harmony export */ "resolveValueOrGettter": () => (/* binding */ resolveValueOrGettter), /* harmony export */ "restoreAttr": () => (/* binding */ restoreAttr), /* harmony export */ "retry": () => (/* binding */ retry), /* harmony export */ "scrollTo": () => (/* binding */ scrollTo), /* harmony export */ "setElChildByIndex": () => (/* binding */ setElChildByIndex), /* harmony export */ "snakeCase": () => (/* binding */ snakeCase), /* harmony export */ "splitArray": () => (/* binding */ splitArray), /* harmony export */ "store": () => (/* binding */ store), /* harmony export */ "strPad": () => (/* binding */ strPad), /* harmony export */ "studlyCase": () => (/* binding */ studlyCase), /* harmony export */ "titleCase": () => (/* binding */ titleCase), /* harmony export */ "toArrayIfNot": () => (/* binding */ toArrayIfNot), /* harmony export */ "uniqueId": () => (/* binding */ uniqueId), /* harmony export */ "unset": () => (/* binding */ unset), /* harmony export */ "viewportPositionToOffset": () => (/* binding */ viewportPositionToOffset), /* harmony export */ "waitFor": () => (/* binding */ waitFor), /* harmony export */ "waitTime": () => (/* binding */ waitTime), /* harmony export */ "walkTreeData": () => (/* binding */ walkTreeData), /* harmony export */ "watchChange": () => (/* binding */ watchChange), /* harmony export */ "windowLoaded": () => (/* binding */ windowLoaded) /* harmony export */ }); /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"); /* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/get */ "./node_modules/@babel/runtime/helpers/esm/get.js"); /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js"); /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"); /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"); /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js"); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"); /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"); /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); /*! * helper-js v2.0.3 * (c) phphe <phphe@outlook.com> (https://github.com/phphe) * Homepage: undefined * Released under the MIT License. */ function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); } function _createSuper(Derived) { return function () { var Super = (0,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__.default)(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = (0,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0,_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__.default)(this, result); }; } function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } var _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default().mark(iterateAll); function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } // 为此库有需要的方法存储信息 // @ts-ignore var store = { uniqueId: {} }; // get global, such as window in browser. // 返回顶级全局变量. 例如浏览器的`window` function glb() { // `this` !== global or window because of build tool. So you can't use `this` to get `global` if (store.glb) { return store.glb; } else { // resolve global var t; try { t = __webpack_require__.g; } catch (e) { t = window; } store.glb = t; return t; } } // detect if global variable `document` existing. // 判断全局变量`document`是否存在 function isDocumentExisted() { try { var t = document; } catch (e) { return false; } return true; } function isArray(v) { return Object.prototype.toString.call(v) === '[object Array]'; } function isBool(v) { return Object.prototype.toString.call(v) === '[object Boolean]'; } function isNumber(v) { return Object.prototype.toString.call(v) === '[object Number]'; } function isNumeric(v) { return isFinite(v) && !isNaN(parseFloat(v)); } function isString(v) { return Object.prototype.toString.call(v) === '[object String]'; } function isObject(v) { return Object.prototype.toString.call(v) === '[object Object]'; } function isFunction(v) { return typeof v === 'function'; } function isPromise(v) { return Object.prototype.toString.call(v) === '[object Promise]'; } // detect if argumrnt is null, undefined, empty array, empty string, false, NaN, empty object // 检查是否是null, undefined, 空数组, 空字符串, false, NaN, 空对象 function empty(v) { if (v == null) { return true; } else if (v.length != null) { return v.length === 0; } else if (isBool(v)) { return false; } else if (isNumber(v)) { return isNaN(v); } else if (isObject(v)) { return Object.keys(v).length === 0; } } // rand int in range, including min and max // 返回指定范围随机整数, 包括范围起始值和终止值 function randInt(min, max) { return Math.floor(Math.random() * (max - min + 1) + min); } // rand item in array // 返回数组随机一项 function randChoice(arr) { return arr[randInt(0, arr.length - 1)]; } // Pad a string to a certain length with another string // 左边补充指定字符, 使其达到指定长度 function strPad(str, n) { var padString = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '0'; var r = str.toString(); var len = str.toString().length; while (len < n) { r = padString + r; len++; } if (r.length > n) { r = r.substr(r.length - n); } return str; } // If n less than `min`, return `min`, else n. // 如果n小于min, 返回min, 否则n. function notLessThan(n, min) { return n < min ? min : n; } // If n greater than `max`, return `max`, else n. // 如果n大于max, 返回max, 否则n. function notGreaterThan(n, max) { return n < max ? n : max; } // ## string // ## 字符串 // 'abc abc' to 'Abc abc' function studlyCase(str) { return str && str[0].toUpperCase() + str.substr(1); } // To lower case and use `-` as delimiter. example: '-ABC abc_def camelCase-- helloMyFriend' to 'a-b-c-abc-def-camel-case-hello-my-friend' function kebabCase(str) { return str.replace(/ /g, '-').replace(/_/g, '-').replace(/([A-Z])/g, '-$1').replace(/--+/g, '-').replace(/^-|-$|/g, '').toLowerCase(); } // To lower case and use `_` as delimiter. function snakeCase(str) { return kebabCase(str).replace(/-/g, '_'); } // 'abc-abc-abc_abc' to 'AbcAbcAbcAbc' function camelCase(str) { var temp = str.toString().split(/[-_]/); for (var i = 1; i < temp.length; i++) { temp[i] = studlyCase(temp[i]); } return temp.join(''); } // 'AbcAbcAbcAbc' to ['Abc', 'Abc', 'Abc', 'Abc'] function camelToWords(str) { return str.toString().trim().split(/(?=[A-Z])/); } // 'abcAbc' to 'Abc Abc' function titleCase(str) { return camelToWords(studlyCase(camelCase(str))).join(' ').replace(/\bid\b/ig, 'ID'); } // generate random string // 随机字符串 function randString() { var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 8; var seeds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; var r = ''; for (var i = 0; i < len; i++) { r += randChoice(seeds); } return r; } // ## Array // ## 数组 // remove item from array. return removed count // 从数组删除项. 返回删除计数 function arrayRemove(arr, v) { var index; var count = 0; while ((index = arr.indexOf(v)) > -1) { arr.splice(index, 1); count++; } return count; } // remove items from array by sorted indexes. indexes example: [0, 2, 6, 8, 9] // 通过有序的索引集删除数组项. 索引集例子: [0, 2, 6, 8, 9] function arrayRemoveBySortedIndexes(arr, sortedIndexes) { for (var i = sortedIndexes.length - 1; i >= 0; i--) { var index = sortedIndexes[i]; arr.splice(index, 1); } } // return new array excluding indexes // 返回新数组除了给定索引 function newArrayExcludingIndexes(arr, indexes) { var mapping = {}; var _iterator = _createForOfIteratorHelper(indexes), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var index = _step.value; mapping[index] = true; } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } var newArr = []; var len = arr.length; for (var i = 0; i < len; i++) { if (!mapping[i]) { newArr.push(arr[i]); } } return newArr; } // get item from array by index. index can be negative number // 通过所以获取数组一项. 支持负值索引. function arrayAt(arr, n) { return arr[n >= 0 ? n : arr.length + n]; } // get first or array // 返回数组首项 function arrayFirst(arr) { return arr[0]; } // get last of array // 返回数组末项 function arrayLast(arr) { return arr[arr.length - 1]; } // return arr1 - arr2 function arraySubtract(arr1, arr2) { var len = arr1.length; var arr = []; while (len--) { if (arr2.indexOf(arr1[len]) < 0) { arr.push(arr1[len]); } } return arr; } // get array item sibling. Example: getArrayItemSibling(arr, item, -1), get previous sibling // 获得数组项的一个同级. 例: getArrayItemSibling(arr, item, -1), 获得前一个 function getArrayItemSibling(arr, item, offset) { return getArrayItemSiblings(arr, item, [offset])[0]; } // get array item siblings. Example: getArrayItemSiblings(arr, item, [-1, 1]), get previous and next sibling // 获得数组项的多个同级. 例: getArrayItemSiblings(arr, item, [-1, 1]), 获得前一个和后一个 function getArrayItemSiblings(arr, item, offsets) { var index = arr.indexOf(item); if (index === -1) { throw 'item is not in array'; } return offsets.map(function (v) { return arr[index + v]; }); } function toArrayIfNot(arrOrNot) { return isArray(arrOrNot) ? arrOrNot : [arrOrNot]; } function splitArray(arr, n) { var r = []; if (isFunction(n)) { var getChunkLength = n; var times = 1; var i = 0; while (i < arr.length) { var _n = getChunkLength(times); var end = i + _n; r.push(arr.slice(i, end)); i = end; times++; } } else { var _i = 0; while (_i < arr.length) { var _end = _i + n; r.push(arr.slice(_i, _end)); _i = _end; } } return r; } // Compute mark of each item, and group them by mark. // 计算每项的标识, 通过标识将数组项分组. function groupArray(arr, getMark) { var groups = new Map(); arr.forEach(function (v) { var mark = getMark(v); if (!groups.has(mark)) { groups.set(mark, []); } groups.get(mark).push(v); }); return groups; } // Each item in the new array is unique. // 新数组每项唯一. function arrayDistinct(arr) { // @ts-ignore if (glb().Set) { return (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(new Set(arr)); } else { return arr.filter(function (v, i, a) { return a.indexOf(v) === i; }); } } // get items from array by range. range can be negative // 从数组获得一个范围内的项. 范围可以为负. function arrayGetRange(arr, index, endIndex) { if (index < 0) { index += arr.length; } if (endIndex == null) { return arr[index]; } else { if (endIndex < 0) { endIndex += arr.length; } return arr.slice(index, endIndex - index + 1); } } // return new array excluding n items from end // 返回新数组排除末尾n项 function arrayWithoutEnd(arr, n) { return arr.slice(0, arr.length - n); } // get one-dimensional array from multidimensional array // 从多维数组获取一维数组 function arrayFlat(arr) { var depth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10; var r = []; var rec = function rec(arr, curentDepth) { var _iterator2 = _createForOfIteratorHelper(arr), _step2; try { for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { var item = _step2.value; if (isArray(item) && curentDepth < depth) { rec(item, curentDepth + 1); } else { r.push(item); } } } catch (err) { _iterator2.e(err); } finally { _iterator2.f(); } }; rec(arr, 0); return r; } // ## Object // ## 对象 function assignIfDifferent(obj, key, val) { if (obj[key] !== val) { obj[key] = val; } } // like Array.map function objectMap(obj, handler) { var r = {}; var i = 0; for (var key in obj) { r[key] = handler(obj[key], key, i); i++; } return r; } function objectOnly(obj, keys) { var keysSet = new Set(keys); var r = {}; for (var key in obj) { if (keysSet.has(key)) { r[key] = obj[key]; } } return r; } function objectExcept(obj, keys) { var keysSet = new Set(keys); var r = {}; for (var key in obj) { if (!keysSet.has(key)) { r[key] = obj[key]; } } return r; } function iterateAll(val) { var opt, i, info, _i2, _Object$keys, key, _info, _i3, _info2, keys, _i4, _keys, _key, _info3, _args = arguments; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default().wrap(function iterateAll$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: opt = _args.length > 1 && _args[1] !== undefined ? _args[1] : {}; if (opt.reverse) { _context.next = 30; break; } if (!(val.length != null)) { _context.next = 14; break; } i = 0; case 4: if (!(i < val.length)) { _context.next = 12; break; } info = { value: val[i], index: i }; if (!(!opt.exclude || !opt.exclude(info))) { _context.next = 9; break; } _context.next = 9; return info; case 9: i++; _context.next = 4; break; case 12: _context.next = 28; break; case 14: if (!isObject(val)) { _context.next = 27; break; } _i2 = 0, _Object$keys = Object.keys(val); case 16: if (!(_i2 < _Object$keys.length)) { _context.next = 25; break; } key = _Object$keys[_i2]; _info = { value: val[key], key: key }; if (!(!opt.exclude || !opt.exclude(_info))) { _context.next = 22; break; } _context.next = 22; return _info; case 22: _i2++; _context.next = 16; break; case 25: _context.next = 28; break; case 27: throw 'Unsupported type'; case 28: _context.next = 58; break; case 30: if (!(val.length != null)) { _context.next = 42; break; } _i3 = val.length - 1; case 32: if (!(_i3 >= 0)) { _context.next = 40; break; } _info2 = { value: val[_i3], index: _i3 }; if (!(!opt.exclude || !opt.exclude(_info2))) { _context.next = 37; break; } _context.next = 37; return _info2; case 37: _i3--; _context.next = 32; break; case 40: _context.next = 58; break; case 42: if (!isObject(val)) { _context.next = 57; break; } keys = Object.keys(val); keys.reverse(); _i4 = 0, _keys = keys; case 46: if (!(_i4 < _keys.length)) { _context.next = 55; break; } _key = _keys[_i4]; _info3 = { value: val[_key], key: _key }; if (!(!opt.exclude || !opt.exclude(_info3))) { _context.next = 52; break; } _context.next = 52; return _info3; case 52: _i4++; _context.next = 46; break; case 55: _context.next = 58; break; case 57: throw 'Unsupported type'; case 58: case "end": return _context.stop(); } } }, _marked); } // example: objectGet(window, 'document.body.children.0') . source: http://stackoverflow.com/questions/8817394/javascript-get-deep-value-from-object-by-passing-path-to-it-as-string // 例: objectGet(window, 'document.body.children.0') . 参考: http://stackoverflow.com/questions/8817394/javascript-get-deep-value-from-object-by-passing-path-to-it-as-string function objectGet(obj, path, throwError) { var paths = isArray(path) ? path : path.split('.'); var current = obj; try { var _iterator3 = _createForOfIteratorHelper(paths), _step3; try { for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) { var key = _step3.value; current = current[key]; } } catch (err) { _iterator3.e(err); } finally { _iterator3.f(); } } catch (e) { if (throwError) { throw "Path does not exist"; } } return current; } // refer [objectGet](#objectGet) function objectSet(obj, path, value) { var paths = isArray(path) ? path : path.split('.'); var lastKey = arrayLast(paths); var parent = objectGet(obj, paths.slice(0, paths.length - 1)); if (!parent) { throw "Path does not exist"; } parent[lastKey] = value; } // try delete obj[prop] function unset(obj, prop) { obj[prop] = undefined; try { delete obj[prop]; } catch (e) {} } function objectAssignIfKeyNull(obj1, obj2) { Object.keys(obj2).forEach(function (key) { if (obj1[key] == null) { obj1[key] = obj2[key]; } }); } function mapObjectTree(obj, handler) { var limit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10000; var r; var count = 0; var stack = [{ value: obj }]; var _loop2 = function _loop2() { if (count >= limit) { throw "mapObjectTree: limit(".concat(limit, ") reached, object may has circular reference"); } count++; // @ts-ignore var _stack$shift = stack.shift(), value = _stack$shift.value, key = _stack$shift.key, parent = _stack$shift.parent, newParent = _stack$shift.newParent; var t = handler(value, key, parent, newParent); var assign = function assign(value, key, canPush) { if (isArray(value)) { value = []; } else if (isObject(value)) { value = {}; } if (parent) { if (isArray(newParent) && canPush) { newParent.push(value); } else { newParent[key] = value; } } else { r = value; } // value may changed return value; }; var newVal = void 0, val = void 0, toDelete = void 0, stop = void 0, skip = void 0; if (!t) { // no change val = value; // @ts-ignore newVal = assign(value, key); } else { var key2 = t.key, _value = t.value; val = _value; // @ts-ignore if (t.delete || key2 === false) { // del toDelete = true; } else if (key2 == null) { // don't change key newVal = assign(_value, key, true); } else if (t.hasOwnProperty('value')) { // @ts-ignore newVal = assign(_value, key2); } stop = t.stop; skip = t.skip; } if (toDelete) { return "continue"; } if (skip) { return "continue"; } if (stop) { return "break"; } if (isArray(val)) { var len = val.length; for (var i = 0; i < len; i++) { // @ts-ignore stack.push({ value: val[i], key: i, parent: val, newParent: newVal }); } } else if (isObject(val)) { Object.keys(val).forEach(function (key) { // @ts-ignore stack.push({ value: val[key], key: key, parent: val, newParent: newVal }); }); } }; _loop: while (stack.length > 0) { var _ret = _loop2(); switch (_ret) { case "continue": continue; case "break": break _loop; } } return r; } function mapObjects(arr, idKey) { var r = {}; var len = arr.length; for (var i = 0; i < len; i++) { var item = arr[i]; // @ts-ignore var id = isFunction(idKey) ? idKey(item, i) : item[idKey]; r[id] = item; } return r; } // example: pairRows(users, userProfiles, 'id', 'user_id') function pairRows(rows1, rows2, key1) { var key2 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : key1; var map = mapObjects(rows2, key2); return rows1.map(function (row1) { return [row1, map[row1[key1]]]; }); } function depthFirstSearch(obj, handler) { var childrenKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'children'; var opt = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; var rootChildren = isArray(obj) ? obj : [obj]; // var StopException = function StopException() { (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__.default)(this, StopException); }; var func = function func(children, parent, parentPath) { if (opt.reverse) { children = children.slice(); children.reverse(); } var len = children.length; for (var i = 0; i < len; i++) { var item = children[i]; var index = opt.reverse ? len - i - 1 : i; var path = parentPath ? [].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(parentPath), [index]) : []; var r = handler(item, index, parent, path); if (r === false) { // stop throw new StopException(); } else if (r === 'skip children') { continue; } else if (r === 'skip siblings') { break; } if (item[childrenKey] != null) { func(item[childrenKey], item, path); } } }; try { func(rootChildren, null, isArray(obj) ? [] : null); } catch (e) { if (e instanceof StopException) ; else { throw e; } } } // refer [depthFirstSearch](#depthFirstSearch) var walkTreeData = depthFirstSearch; // tree data helpers var TreeData = /*#__PURE__*/function () { // data = null; function TreeData() { var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__.default)(this, TreeData); this.childrenKey = 'children'; this.data = data; } (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_6__.default)(TreeData, [{ key: "iteratePath", value: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default().mark(function iteratePath(path) { var opt, childrenKey, rootChildren, prevPath, prevChildren, _iterator4, _step4, index, currentPath, currentNode, list, _iterator5, _step5, _step5$value, path0, node, _path, _args2 = arguments; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default().wrap(function iteratePath$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: opt = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {}; childrenKey = this.childrenKey, rootChildren = this.rootChildren; if (opt.reverse) { _context2.next = 29; break; } prevPath = []; prevChildren = rootChildren; _iterator4 = _createForOfIteratorHelper(path); _context2.prev = 6; _iterator4.s(); case 8: if ((_step4 = _iterator4.n()).done) { _context2.next = 19; break; } index = _step4.value; currentPath = [].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(prevPath), [index]); currentNode = prevChildren[index]; _context2.next = 14; return { path: currentPath, node: currentNode }; case 14: prevPath = currentPath; prevChildren = currentNode[childrenKey]; case 17: _context2.next = 8; break; case 19: _context2.next = 24; break; case 21: _context2.prev = 21; _context2.t0 = _context2["catch"](6); _iterator4.e(_context2.t0); case 24: _context2.prev = 24; _iterator4.f(); return _context2.finish(24); case 27: _context2.next = 49; break; case 29: list = (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(this.iteratePath(path, Object.assign(Object.assign({}, opt), { reverse: false }))); list.reverse(); _iterator5 = _createForOfIteratorHelper(list); _context2.prev = 32; _iterator5.s(); case 34: if ((_step5 = _iterator5.n()).done) { _context2.next = 41; break; } _step5$value = _step5.value, path0 = _step5$value.path, node = _step5$value.node; _path = path0; _context2.next = 39; return { path: _path, node: node }; case 39: _context2.next = 34; break; case 41: _context2.next = 46; break; case 43: _context2.prev = 43; _context2.t1 = _context2["catch"](32); _iterator5.e(_context2.t1); case 46: _context2.prev = 46; _iterator5.f(); return _context2.finish(46); case 49: case "end": return _context2.stop(); } } }, iteratePath, this, [[6, 21, 24, 27], [32, 43, 46, 49]]); }) }, { key: "getAllNodes", value: function getAllNodes(path) { var all = []; var _iterator6 = _createForOfIteratorHelper(this.iteratePath(path)), _step6; try { for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) { var node = _step6.value.node; all.push(node); } } catch (err) { _iterator6.e(err); } finally { _iterator6.f(); } return all; } }, { key: "getNode", value: function getNode(path) { return arrayLast(this.getAllNodes(path)); } }, { key: "getNodeIndexAndParent", value: function getNodeIndexAndParent(path) { var parentPath = path.slice(); var index = parentPath.pop(); return { parent: this.getNode(parentPath), index: index, parentPath: parentPath }; } }, { key: "getNodeParent", value: function getNodeParent(path) { return this.getNodeIndexAndParent(path).parent; } }, { key: "setPathNode", value: function setPathNode(path, node) { if (path == null || path.length === 0) { this.data = node; } else { var childrenKey = this.childrenKey, rootChildren = this.rootChildren; var _this$getNodeIndexAnd = this.getNodeIndexAndParent(path), parent = _this$getNodeIndexAnd.parent, index = _this$getNodeIndexAnd.index; var parentChildren = path.length === 1 ? rootChildren : parent[childrenKey]; parentChildren[index] = node; } } }, { key: "removeNode", value: function removeNode(path) { var childrenKey = this.childrenKey, rootChildren = this.rootChildren; var _this$getNodeIndexAnd2 = this.getNodeIndexAndParent(path), parent = _this$getNodeIndexAnd2.parent, index = _this$getNodeIndexAnd2.index; var parentChildren = path.length === 1 ? rootChildren : parent[childrenKey]; var node = parentChildren[index]; parentChildren.splice(index, 1); return node; } }, { key: "walk", value: function walk(handler, opt) { var childrenKey = this.childrenKey, data = this.data; // @ts-ignore return walkTreeData(data, handler, childrenKey, opt); } }, { key: "clone", value: function clone() { var opt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; // opt.afterNodeCreated(newNode, {oldNode: node, index, parent, path}) var childrenKey = this.childrenKey; var td = new TreeData(); this.walk(function (node, index, parent, path) { var newNode = Object.assign({}, node); if (newNode[childrenKey]) { newNode[childrenKey] = []; } if (opt.afterNodeCreated) { opt.afterNodeCreated(newNode, { oldNode: node, index: index, parent: parent, path: path }); } td.setPathNode(path, newNode); }); return td.data; } }, { key: "rootChildren", get: function get() { var childrenKey = this.childrenKey; var data = this.data; return isArray(data) ? data : data[childrenKey]; } }]); return TreeData; }(); // ## function // ## 函数 // if it is function, return result, else return it directly. function resolveValueOrGettter(valueOrGetter) { var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; if (isFunction(valueOrGetter)) { return valueOrGetter.apply(void 0, (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(args)); } else { return valueOrGetter; } } function executeWithCount(func) { var count = 0; function wrapper() { for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) { args[_key2] = arguments[_key2]; } // @ts-ignore return func.call.apply(func, [this, count++].concat(args)); } return wrapper; } function watchChange(getVal, handler) { var oldVal; var update = function update() { for (var _len2 = arguments.length, args = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) { args[_key3] = arguments[_key3]; } // @ts-ignore var newVal = getVal.apply(void 0, args); if (oldVal !== newVal) { // @ts-ignore handler.apply(void 0, [newVal].concat(args)); } oldVal = newVal; }; return update; } function debounceTrailing(action) { var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; var t; var lastArgs; // when trailing, use last args var resolves = []; var rejects = []; var wrappedAction = function wrappedAction() { var _this = this; for (var _len3 = arguments.length, args = new Array(_len3), _key4 = 0; _key4 < _len3; _key4++) { args[_key4] = arguments[_key4]; } return new Promise(function (resolve, reject) { resolves.push(resolve); rejects.push(reject); // lastArgs = args; if (t) { clearTimeout(t); } t = setTimeout(function () { // @ts-ignore var result = action.call.apply(action, [_this].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(lastArgs))); t = null; resolves.forEach(function (resolve) { return resolve(result); }); resolves = []; rejects = []; }, wait); }); }; var stop = function stop() { if (t) { clearTimeout(t); t = null; } resolves = []; rejects.forEach(function (reject) { return reject(); }); rejects = []; }; // @ts-ignore return { action: wrappedAction, stop: stop }; } function debounceImmediate(action) { var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; var t; var delaying; var result; var wrappedAction = function wrappedAction() { var _this2 = this; return new Promise(function (resolve, reject) { if (delaying) { resolve(result); } else { delaying = true; // @ts-ignore result = action.call.apply(action, [_this2].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(lastArgs))); resolve(result); t = setTimeout(function () { t = null; delaying = false; result = null; }, wait); } }); }; var stop = function stop() { if (t) { clearTimeout(t); t = null; } delaying = false; }; // @ts-ignore return { action: wrappedAction, stop: stop }; } // the returned function only accept one argument function joinFunctionsByResult(funcs) { var wrappedFunc = funcs[0]; for (var i = 1; i < funcs.length; i++) { wrappedFunc = join2func(wrappedFunc, funcs[i]); } return wrappedFunc; function join2func(func1, func2) { return function (arg) { var result1 = func1(arg); return func2(result1); }; } } // must pass arguments to `next` manually function joinFunctionsByNext(funcs) { var next = function next() {}; var _iterator7 = _createForOfIteratorHelper(iterateAll(funcs, { reverse: true })), _step7; try { for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) { var func = _step7.value.value; var currentNext = next; next = wrapFuncWithNext(func, currentNext); } } catch (err) { _iterator7.e(err); } finally { _iterator7.f(); } return next; function wrapFuncWithNext(func, next) { return function () { for (var _len4 = arguments.length, args = new Array(_len4), _key5 = 0; _key5 < _len4; _key5++) { args[_key5] = arguments[_key5]; } return func.apply(void 0, [next].concat(args)); }; } } // ## promise // execute promise in sequence function executePromiseGetters(getters) { var concurrent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; var stopped; var promise = new Promise(function (resolve, reject) { return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default().mark(function _callee() { var chunks, promises, _iterator8, _step8, chunk, chunkPromises; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default().wrap(function _callee$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: chunks = splitArray(getters, concurrent); promises = []; _iterator8 = _createForOfIteratorHelper(chunks); _context3.prev = 3; _iterator8.s(); case 5: if ((_step8 = _iterator8.n()).done) { _context3.next = 15; break; } chunk = _step8.value; chunkPromises = chunk.map(function (v) { return v(); }); promises.push.apply(promises, (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(chunkPromises)); _context3.next = 11; return Promise.all(chunkPromises); case 11: if (!stopped) { _context3.next = 13; break; } return _context3.abrupt("break", 15); case 13: _context3.next = 5; break; case 15: _context3.next = 20; break; case 17: _context3.prev = 17; _context3.t0 = _context3["catch"](3); _iterator8.e(_context3.t0); case 20: _context3.prev = 20; _iterator8.f(); return _context3.finish(20); case 23: Promise.all(promises).then(function () { resolve.apply(void 0, arguments); }); case 24: case "end": return _context3.stop(); } } }, _callee, null, [[3, 17, 20, 23]]); })); }); return { promise: promise, stop: function stop() { stopped = true; } }; } function promiseTimeout(promise, timeout) { return new Promise(function (resolve, reject) { var t, rejected; promise.then(function () { clearTimeout(t); resolve.apply(void 0, arguments); }, function () { if (!rejected) { clearTimeout(t); reject.apply(void 0, arguments); } }); t = setTimeout(function () { rejected = true; var e = new Error('Promise timeout!'); e.name = 'timeout'; reject(e); }, timeout); }); } // ## url function getUrlParam(par) { // 获取当前URL var local_url = document.location.href; // 获取要取得的get参数位置 var get = local_url.indexOf(par + '='); if (get == -1) { return false; } // 截取字符串 var get_par = local_url.slice(par.length + get + 1); // 判断截取后的字符串是否还有其他get参数 var nextPar = get_par.indexOf('&'); if (nextPar != -1) { get_par = get_par.slice(0, nextPar); } return get_par; } // ## dom // return NodeList if there are multiple top-level nodes function createElementFromHTML(htmlString) { var div = document.createElement('div'); div.innerHTML = htmlString.trim(); if (div.childNodes.length > 1) { return div.childNodes; } else { return div.childNodes[0]; } } function uniqueId() { var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'id_'; var id = prefix + randString(); if (!store.uniqueId) store.uniqueId = {}; var generatedIds = store.uniqueId; if (document.getElementById(id) || generatedIds[id]) { return uniqueId(prefix); } else { generatedIds[id] = true; return id; } } function isDescendantOf(el, parent) { while (true) { if (el.parentElement == null) { return false; } else if (el.parentElement === parent) { return true; } else { el = el.parentElement; } } } function removeEl(el) { if (el.parentNode !== null) { return el.parentNode.removeChild(el); } } // refer: https://stackoverflow.com/questions/871399/cross-browser-method-for-detecting-the-scrolltop-of-the-browser-window function getScroll() { if (typeof pageYOffset != 'undefined') { //most browsers except IE before #9 return { top: pageYOffset, left: pageXOffset }; } else { var B = document.body; //IE 'quirks' var D = document.documentElement; //IE with doctype D = D.clientHeight ? D : B; return { top: D.scrollTop, left: D.scrollLeft }; } } // refer: https://gist.github.com/aderaaij/89547e34617b95ac29d1 function getOffset(el) { var rect = getBoundingClientRect(el); var scroll = getScroll(); return { x: rect.left + scroll.left, y: rect.top + scroll.top }; } // there is some trap in el.offsetParent, so use this func to fix function getOffsetParent(el) { var offsetParent = el.offsetParent; if (!offsetParent || offsetParent === document.body && getComputedStyle(document.body).position === 'static') { offsetParent = document.body.parentElement; } return offsetParent; } // get el current position. like jQuery.position. The position is relative to offsetParent viewport left top. it is for set absolute position, absolute position is relative to offsetParent viewport left top. // 相对于offsetParent可视区域左上角(el.offsetLeft或top包含父元素的滚动距离, 所以要减去). position一般用于设置绝对定位的情况, 而绝对定位就是以可视区域左上角为原点. function getPosition(el) { var offsetParent = getOffsetParent(el); var ps = { x: el.offsetLeft, y: el.offsetTop }; var parent = el; while (true) { parent = parent.parentElement; if (parent === offsetParent || !parent) { break; } ps.x -= parent.scrollLeft; ps.y -= parent.scrollTop; } return ps; } // like jQuery.offset(x, y), but it just return cmputed position, don't update style // 类似 jQuery.offset的设置功能, 但是它只返回计算的position, 不改变元素样式. function getPositionFromOffset(el, of) { var offsetParent = getOffsetParent(el); var parentOf = getOffset(offsetParent); return { x: of.x - parentOf.x, y: of.y - parentOf.y }; } function getBoundingClientRect(el) { // refer: http://www.51xuediannao.com/javascript/getBoundingClientRect.html var xy = el.getBoundingClientRect(); var top = xy.top - document.documentElement.clientTop, //document.documentElement.clientTop 在IE67中始终为2,其他高级点的浏览器为0 bottom = xy.bottom, left = xy.left - document.documentElement.clientLeft, //document.documentElement.clientLeft 在IE67中始终为2,其他高级点的浏览器为0 right = xy.right, width = xy.width || right - left, //IE67不存在width 使用right - left获得 height = xy.height || bottom - top; var x = left; var y = top; return { top: top, right: right, bottom: bottom, left: left, width: width, height: height, x: x, y: y }; } // refer [getBoundingClientRect](#getBoundingClientRect) var getViewportPosition = getBoundingClientRect; // TODO not tested function viewportPositionToOffset(position) { var body = document.body; var bodyOf = getOffset(body); var bodyVP = getViewportPosition(body); return { x: position.x + bodyOf.x - bodyVP.x, y: position.y + bodyOf.y - bodyVP.y }; } // TODO not tested function offsetToViewportPosition(offset) { var body = document.body; var bodyOf = getOffset(body); var bodyVP = getViewportPosition(body); return { x: offset.x + bodyVP.x - bodyOf.x, y: offset.y + bodyVP.y - bodyOf.y }; } function findParent(el, callback) { var opt = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; var cur = opt && opt.withSelf ? el : el.parentElement; while (cur) { var r = callback(cur); if (r === 'break') { return; } else if (r) { return cur; } else { cur = cur.parentElement; } } } function backupAttr(el, name) { var key = "original_".concat(name); el[key] = el.getAttribute(name); } function restoreAttr(el, name) { var key = "original_".concat(name); var value = el[key]; if (value == null) { el.removeAttribute(name); } else { el.setAttribute(name, value); } } // source: http://youmightnotneedjquery.com/ function hasClass(el, className) { if (el.classList) { return el.classList.contains(className); } else { return new RegExp('(^| )' + className + '( |$)', 'gi').test(el.className); } } // source: http://youmightnotneedjquery.com/ function addClass(el, className) { if (!hasClass(el, className)) { if (el.classList) { el.classList.add(className); } else { el.className += ' ' + className; } } } // source: http://youmightnotneedjquery.com/ function removeClass(el, className) { if (el.classList) { el.classList.remove(className); } else { el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' '); } } function getElSizeEvenInvisible(el) { backupAttr(el, 'style'); el.style.display = 'block'; var t = getBoundingClientRect(el); var size = { width: t.width, height: t.height }; restoreAttr(el, 'style'); return size; } /** * [isOffsetInEl] * @param {Number} x * @param {Number} y * @param {Object} el HTML Element */ function isOffsetInEl(x, y, el) { var offset = getOffset(el); return offset.x <= x && offset.x + el.offsetWidth >= x && offset.y <= y && offset.y + el.offsetHeight >= y; } // get border function getBorder(el) { var body = document.body; var workArea = findParent(el, function (v) { return hasClass(v, 'work-area'); }); var of = getOffset(workArea); return { left: of.x, right: of.x + workArea.offsetWidth, top: of.y + 50, bottom: body.offsetHeight < glb().innerHeight ? glb().innerHeight : body.offsetHeight }; } function setElChildByIndex(el, child, index) { // @ts-ignore child.childComponentIndex = index; var len = el.childNodes.length; if (len === 0) { el.appendChild(child); } else if (index === 0) { el.insertBefore(child, el.childNodes[0]); } else { var _binarySearch = binarySearch(el.childNodes, function (el) { return el.childComponentIndex - index; }, { start: 0, end: notGreaterThan(index, len - 1), returnNearestIfNoHit: true }), nearestIndex = _binarySearch.index, nearest = _binarySearch.value, greater = _binarySearch.greater; if (greater) { el.insertBefore(child, nearest); } else { var next = el.childNodes[nearestIndex + 1]; if (next) { el.insertBefore(child, next); } else { el.appendChild(child); } } } } function onDOM(el, name, handler) { for (var _len5 = arguments.length, args = new Array(_len5 > 3 ? _len5 - 3 : 0), _key6 = 3; _key6 < _len5; _key6++) { args[_key6 - 3] = arguments[_key6]; } if (el.addEventListener) { // 所有主流浏览器,除了 IE 8 及更早 IE版本 el.addEventListener.apply(el, [name, handler].concat(args)); // @ts-ignore } else if (el.attachEvent) { // IE 8 及更早 IE 版本 // @ts-ignore el.attachEvent.apply(el, ["on".concat(name), handler].concat(args)); } } function offDOM(el, name, handler) { for (var _len6 = arguments.length, args = new Array(_len6 > 3 ? _len6 - 3 : 0), _key7 = 3; _key7 < _len6; _key7++) { args[_key7 - 3] = arguments[_key7]; } if (el.removeEventListener) { // 所有主流浏览器,除了 IE 8 及更早 IE版本 el.removeEventListener.apply(el, [name, handler].concat(args)); // @ts-ignore } else if (el.detachEvent) { // IE 8 及更早 IE 版本 // @ts-ignore el.detachEvent.apply(el, ["on".concat(name), handler].concat(args)); } } function onDOMMany(els, names, handler) { for (var _len7 = arguments.length, args = new Array(_len7 > 3 ? _len7 - 3 : 0), _key8 = 3; _key8 < _len7; _key8++) { args[_key8 - 3] = arguments[_key8]; } var _iterator9 = _createForOfIteratorHelper(els), _step9; try { for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) { var el = _step9.value; var _iterator12 = _createForOfIteratorHelper(names), _step12; try { for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) { var name = _step12.value; onDOM.apply(void 0, [el, name, handler].concat(args)); } } catch (err) { _iterator12.e(err); } finally { _iterator12.f(); } } } catch (err) { _iterator9.e(err); } finally { _iterator9.f(); } var destroy = function destroy() { var _iterator10 = _createForOfIteratorHelper(els), _step10; try { for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) { var el = _step10.value; var _iterator11 = _createForOfIteratorHelper(names), _step11; try { for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) { var name = _step11.value; offDOM(el, name, handler); } } catch (err) { _iterator11.e(err); } finally { _iterator11.f(); } } } catch (err) { _iterator10.e(err); } finally { _iterator10.f(); } }; return destroy; } function getImageSizeByUrl(url) { var image = document.createElement('img'); return new Promise(function (resolve, reject) { onDOM(image, 'load', function () { resolve({ width: image.width, height: image.height }); }); onDOM(image, 'error', function (e) { reject(e); }); image.src = url; }); } function findNodeList(list, callback) { var opt = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; var iterator = iterateAll(list, { reverse: opt.reverse }); var _iterator13 = _createForOfIteratorHelper(iterator), _step13; try { for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) { var _step13$value = _step13.value, value = _step13$value.value, index = _step13$value.index; if (callback(value, index)) { return value; } } } catch (err) { _iterator13.e(err); } finally { _iterator13.f(); } } function findNodeListReverse(list, callback) { return findNodeList(list, callback, { reverse: true }); } function elementsFromPoint(x, y) { var args = [x, y]; // @ts-ignore var func = document.elementsFromPoint || document.msElementsFromPoint || elementsFromPoint; return func.apply(document, args); function elementsFromPoint(x, y) { var parents = []; var parent = void 0; do { if (parent !== document.elementFromPoint(x, y)) { parent = document.elementFromPoint(x, y); parents.push(parent); parent.style.pointerEvents = 'none'; } else { parent = false; } } while (parent); parents.forEach(function (parent) { return parent.style.pointerEvents = 'all'; }); return parents; } } function getOuterAttachedHeight(el) { var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; opt = Object.assign({ margin: true, border: true }, opt); var stl = getComputedStyle(el); var r = 0; var arr = []; if (opt.margin) { arr.push('margin-top', 'margin-bottom'); } if (opt.border) { arr.push('border-top-width', 'border-bottom-width'); } arr.forEach(function (key) { r += parseFloat(stl[key]); }); return r; } function getOuterAttachedWidth(el) { var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; opt = Object.assign({ margin: true, border: true }, opt); var stl = getComputedStyle(el); var r = 0; var arr = []; if (opt.margin) { arr.push('margin-left', 'margin-right'); } if (opt.border) { arr.push('border-left-width', 'border-right-width'); } arr.forEach(function (key) { r += parseFloat(stl[key]); }); return r; } /* scroll to a positon with duration from https://gist.github.com/andjosh/6764939 interface options{ x: number // nullable. don't scroll horizontally when null y: number // nullable. don't scroll vertically when null duration: number // default 0 element: Element // default is the top scrollable element. beforeEveryFrame: (count: number) => boolean|void // call before requestAnimationFrame execution. return false to stop } return stop */ function scrollTo(options) { if (!options.element) { options.element = document.scrollingElement || document.documentElement; } if (options.duration == null) { options.duration = 0; } var x = options.x, y = options.y, duration = options.duration, element = options.element; var requestAnimationFrameId; var count = 0; var startY = element.scrollTop, changeY = y - startY, startX = element.scrollLeft, changeX = x - startX, startDate = +new Date(), animateScroll = function animateScroll() { if (options.beforeEveryFrame && options.beforeEveryFrame(count) === false) { return; } var currentDate = new Date().getTime(); var changedTime = currentDate - startDate; if (y != null) { element.scrollTop = parseInt(calc(startY, changeY, changedTime, duration)); } if (x != null) { element.scrollLeft = parseInt(calc(startX, changeX, changedTime, duration)); } if (changedTime < duration) { requestAnimationFrameId = requestAnimationFrame(animateScroll); } else { if (y != null) { element.scrollTop = y; } if (x != null) { element.scrollLeft = x; } } count++; }; var stop = function stop() { cancelAnimationFrame(requestAnimationFrameId); }; animateScroll(); // return stop return stop; function calc(startValue, changeInValue, changedTime, duration) { return startValue + changeInValue * (changedTime / duration); } } // ### DOM structure function insertBefore(el, target) { target.parentElement.insertBefore(el, target); } function insertAfter(el, target) { target.parentElement.insertBefore(el, target.nextSibling); } function prependTo(el, target) { target.insertBefore(el, target.firstChild); } function appendTo(el, target) { target.appendChild(el); } // ## Date function cloneDate(dateObj) { return new Date(dateObj.getTime()); } // day and date is same function addDate(dateObj, n, type) { if (!['year', 'month', 'day', 'date'].includes(type)) { type += 's'; } var type2 = studlyCase(type); if (type2 === 'Day') { type2 = 'Date'; } var setFuncName = 'set' + type2; var getFuncName = 'get' + type2; dateObj[setFuncName](dateObj[getFuncName]() + n); return dateObj; } function getMonthStart(dateObj) { var clonedObj = cloneDate(dateObj); clonedObj.setDate(1); return clonedObj; } function getMonthEnd(dateObj) { var r = cloneDate(dateObj); addDate(r, 1, 'month'); r.setDate(0); return r; } function getCalendar(year, month) { var startWeekDay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; var results = []; var date = new Date(year, month - 1); year = date.getFullYear(); month = date.getMonth() + 1; var monthStart = getMonthStart(date); var monthStartDay = monthStart.getDay(); var calendarStart = addDate(cloneDate(monthStart), -(monthStartDay + startWeekDay), 'day'); if (monthStartDay > startWeekDay) { var startDate = calendarStart.getDate(); var _year = calendarStart.getFullYear(); var _month = calendarStart.getMonth() + 1; for (var i = startWeekDay; i < monthStartDay; i++) { var _date = startDate + i; results.push({ year: _year, month: _month, date: _date, text: _date, prevMonth: true }); } } // var monthEnd = getMonthEnd(date); var monthEndtDate = monthEnd.getDate(); for (var _i5 = 1; _i5 <= monthEndtDate; _i5++) { var _date2 = _i5; results.push({ year: year, month: month, date: _date2, text: _date2, currentMonth: true }); } // var monthEndDay = monthEnd.getDay(); var endWeekDay = 6 - startWeekDay; if (monthEndDay < endWeekDay) { var nextMonth = addDate(cloneDate(date), 1, 'month'); var _year2 = nextMonth.getFullYear(); var _month2 = nextMonth.getMonth() + 1; for (var _i6 = monthEndDay + 1, _date3 = 1; _i6 <= endWeekDay; _i6++, _date3++) { results.push({ year: _year2, month: _month2, date: _date3, text: _date3, nextMonth: true }); } } // return splitArray(results, 7); } // eg: 2018-09-07T03:38:37.888Z // timezone must be UTC function isIsoFormat(str) { return Boolean(str.length > 15 && str.length < 30 && str.match(/^\d{4}-\d{2}-\d{2}T.*Z$/)); } // timestamp eg: 2018-09-07T03:38:37.888Z function parseISO(timestamp) { var _timestamp$split = timestamp.split('T'), _timestamp$split2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5__.default)(_timestamp$split, 2), datePart = _timestamp$split2[0], timePart = _timestamp$split2[1]; var y, m, d, h = 0, min = 0, s = 0; var _datePart$split$map = datePart.split('-').map(function (v) { return parseInt(v); }); var _datePart$split$map2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5__.default)(_datePart$split$map, 3); y = _datePart$split$map2[0]; m = _datePart$split$map2[1]; d = _datePart$split$map2[2]; m = m - 1; if (timePart) { var t = timePart.split(':').map(function (v) { return parseFloat(v); }); h = t[0]; if (t[1] != null) { min = t[1]; } if (t[2] != null) { s = t[2]; } } var dt = new Date(); dt.setUTCFullYear(y); dt.setUTCMonth(m); dt.setUTCDate(d); dt.setUTCHours(h); dt.setUTCMinutes(min); dt.setUTCSeconds(s); return dt; } function binarySearch(arr, callback) { var opt = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; opt = Object.assign({ start: 0, end: arr.length - 1, maxTimes: 1000 }, opt); var _opt = opt, start = _opt.start, end = _opt.end; var _opt2 = opt, returnNearestIfNoHit = _opt2.returnNearestIfNoHit, maxTimes = _opt2.maxTimes; var midNum; var mid; if (start == null) { start = 0; end = arr.length - 1; } var i = 0; var r; while (start >= 0 && start <= end) { if (i >= maxTimes) { throw Error("binarySearch: loop times is over ".concat(maxTimes, ", you can increase the limit.")); } midNum = Math.floor((end - start) / 2 + start); mid = arr[midNum]; r = callback(mid, i); if (r > 0) { end = midNum - 1; } else if (r < 0) { start = midNum + 1; } else { return { index: midNum, value: mid, count: i + 1, hit: true }; } i++; } return returnNearestIfNoHit ? { index: midNum, value: mid, count: i + 1, hit: false, greater: r > 0 } : null; } // function windowLoaded() { return new Promise(function (resolve, reject) { if (document && document.readyState === 'complete') { resolve(); } else { glb().addEventListener('load', function once() { resolve(); glb().removeEventListener('load', once); }); } }); } function waitTime(milliseconds, callback) { return new Promise(function (resolve, reject) { setTimeout(function () { callback && callback(); resolve(); }, milliseconds); }); } function waitFor(condition) { var time = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100; var maxTimes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1000; var interval; var promise = new Promise(function (resolve, reject) { var count = 0; function judge() { if (count <= maxTimes) { if (condition()) { stop(); resolve(); } } else { stop(); reject(new Error('waitFor: Limit is reached')); } count++; } interval = setInterval(function () { judge(); }, time); judge(); }); return { promise: promise, stop: stop }; function stop() { clearInterval(interval); } } function retry(action) { var limitTimes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3; return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default().mark(function _callee2() { var index; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default().wrap(function _callee2$(_context4) { while (1) { switch (_context4.prev = _context4.next) { case 0: index = 1; case 1: if (!(index <= limitTimes)) { _context4.next = 15; break; } _context4.prev = 2; _context4.next = 5; return action(); case 5: return _context4.abrupt("return", _context4.sent); case 8: _context4.prev = 8; _context4.t0 = _context4["catch"](2); if (!(index === limitTimes)) { _context4.next = 12; break; } throw _context4.t0; case 12: index++; _context4.next = 1; break; case 15: case "end": return _context4.stop(); } } }, _callee2, null, [[2, 8]]); })); } // clipboard-polyfill is more powerful // 复制文字到剪贴板. 仅限于简单使用. 复杂环境推荐clipboard-polyfill function copyTextToClipboard(text) { try { // use latest api navigator.clipboard.writeText(text); return; } catch (e) {} var textArea = document.createElement('textarea'); // // *** This styling is an extra step which is likely not required. *** // // Why is it here? To ensure: // 1. the element is able to have focus and selection. // 2. if element was to flash render it has minimal visual impact. // 3. less flakyness with selection and copying which **might** occur if // the textarea element is not visible. // // The likelihood is the element won't even render, not even a flash, // so some of these are just precautions. However in IE the element // is visible whilst the popup box asking the user for permission for // the web page to copy to the clipboard. // // Place in top-left corner of screen regardless of scroll position. textArea.style.position = 'fixed'; textArea.style.top = '0'; textArea.style.left = '0'; // Ensure it has a small width and height. Setting to 1px / 1em // doesn't work as this gives a negative w/h on some browsers. textArea.style.width = '2em'; textArea.style.height = '2em'; // We don't need padding, reducing the size if it does flash render. textArea.style.padding = '0'; // Clean up any borders. textArea.style.border = 'none'; textArea.style.outline = 'none'; textArea.style.boxShadow = 'none'; // Avoid flash of white box if rendered for any reason. textArea.style.background = 'transparent'; textArea.value = text; document.body.appendChild(textArea); textArea.select(); try { var successful = document.execCommand('copy'); var msg = successful ? 'successful' : 'unsuccessful'; console.log('Copying text command was ' + msg); } catch (err) { console.log('Oops, unable to copy'); } document.body.removeChild(textArea); } function isWindowDefined() { try { return window && true; } catch (error) { return false; } } function isNode() { // @ts-ignore return Boolean(typeof glb().module !== 'undefined' && glb().module.exports); } function isIE() { // @ts-ignore return Boolean(window.ActiveXObject || "ActiveXObject" in window); } /* https://developer.mozilla.org/docs/Web/API/Window/open http://www.w3school.com.cn/htmldom/met_win_open.asp#windowfeatures */ function openWindow(url, name) { var opt = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; glb().open(url, name, Object.keys(opt).map(function (k) { return "".concat(k, "=").concat(opt[k]); }).join(',')); } function openCenterWindow(url, name, width, height) { var opt = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {}; var t = { width: width, height: height, top: (glb().screen.availHeight - 30 - height) / 2, left: (glb().screen.availWidth - 30 - width) / 2 }; Object.assign(t, opt); openWindow(url, name, t); } var URLHelper = /*#__PURE__*/function () { function URLHelper(baseUrl) { var _this3 = this; (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__.default)(this, URLHelper); this.baseUrl = ''; // protocol, hostname, port, pastname this.search = {}; var t = decodeURI(baseUrl).split('?'); this.baseUrl = t[0]; if (t[1]) { t[1].split('&').forEach(function (v) { var t2 = v.split('='); _this3.search[t2[0]] = t2[1] == null ? '' : decodeURIComponent(t2[1]); }); } } (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_6__.default)(URLHelper, [{ key: "getHref", value: function getHref() { var _this4 = this; var t = [this.baseUrl]; var searchStr = Object.keys(this.search).map(function (k) { return "".concat(k, "=").concat(encodeURIComponent(_this4.search[k])); }).join('&'); if (searchStr) { t.push(searchStr); } return t.join('?'); } }]); return URLHelper; }(); /* resolve arguments to help overload. 解析函数参数, 帮助重载 ```js types eg: ['Object', (i) => i > 3, ['Number', default], null ] null represent all types of argument resolveArgsByType([1,'str'], ['Number', 'Boolean' ,'String']) -> [1, null, 'str'] resolveArgsByType([1,'str'], ['Number', ['Boolean', true] ,'String']) -> [1, true, 'str'] ``` */ function resolveArgsByType(args, types) { var argIndex = 0; return types.map(function (v) { // make rule var rule, dft; if (isArray(v)) { rule = v[0]; dft = v[1]; } else { rule = v; dft = undefined; } if (!isFunction(rule)) { if (rule == null) { rule = function rule() { return true; }; } else { var t = rule; rule = function rule(x) { return Object.prototype.toString.call(x) === "[object ".concat(t, "]"); }; } } var arg = args[argIndex]; if (rule(arg)) { argIndex++; return arg; } else { return dft; } }); } function makeStorageHelper(storage) { return { storage: storage, set: function set(name, value, minutes) { // set null can remove a item if (value == null) { this.storage.removeItem(name); } else { this.storage.setItem(name, JSON.stringify({ value: value, expired_at: minutes ? new Date().getTime() + minutes * 60 * 1000 : null })); } }, get: function get(name) { var t = this.storage.getItem(name); if (t) { t = JSON.parse(t); if (!t.expired_at || t.expired_at > new Date().getTime()) { return t.value; } else { this.storage.removeItem(name); } } return null; }, clear: function clear() { this.storage.clear(); } }; } function getLocalStorage2() { if (!store.localStorage2) { store.localStorage2 = makeStorageHelper(localStorage); } return store.localStorage2; } function getSessionStorage2() { if (!store.sessionStorage2) { store.sessionStorage2 = makeStorageHelper(glb().sessionStorage); } return store.sessionStorage2; } // 事件处理 var EventProcessor = /*#__PURE__*/function () { function EventProcessor() { (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__.default)(this, EventProcessor); this.eventStore = []; } (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_6__.default)(EventProcessor, [{ key: "on", value: function on(name, handler) { this.eventStore.push({ name: name, handler: handler }); } }, { key: "once", value: function once(name, handler) { var _this5 = this; var off = function off() { _this5.off(name, wrappedHandler); }; var wrappedHandler = function wrappedHandler() { handler.apply(void 0, arguments); off(); }; this.on(name, wrappedHandler); return off; } }, { key: "onceTimeout", value: function onceTimeout(name, handler, timeout) { var _this6 = this; var off; var promise = new Promise(function (resolve, reject) { var wrappedHandler = function wrappedHandler() { handler.apply(void 0, arguments); resolve(); }; off = _this6.once(name, wrappedHandler); waitTime(timeout).then(function () { off(); reject(); }); }); var off2 = function off2() { off && off(); }; return { off: off2, promise: promise }; } }, { key: "off", value: function off(name, handler) { var indexes = []; // to remove indexes; reverse; 倒序的 var len = this.eventStore.length; for (var i = 0; i < len; i++) { var item = this.eventStore[i]; if (item.name === name && item.handler === handler) { indexes.unshift(i); } } for (var _i7 = 0, _indexes = indexes; _i7 < _indexes.length; _i7++) { var index = _indexes[_i7]; this.eventStore.splice(index, 1); } } }, { key: "emit", value: function emit(name) { // 重要: 先找到要执行的项放在新数组里, 因为执行项会改变事件项存储数组 var items = []; var _iterator14 = _createForOfIteratorHelper(this.eventStore), _step14; try { for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) { var _item = _step14.value; if (_item.name === name) { items.push(_item); } } } catch (err) { _iterator14.e(err); } finally { _iterator14.f(); } for (var _len8 = arguments.length, args = new Array(_len8 > 1 ? _len8 - 1 : 0), _key9 = 1; _key9 < _len8; _key9++) { args[_key9 - 1] = arguments[_key9]; } for (var _i8 = 0, _items = items; _i8 < _items.length; _i8++) { var item = _items[_i8]; item.handler.apply(item, args); } } }]); return EventProcessor; }(); var CrossWindowEventProcessor = /*#__PURE__*/function (_EventProcessor) { (0,_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__.default)(CrossWindowEventProcessor, _EventProcessor); var _super = _createSuper(CrossWindowEventProcessor); // id function CrossWindowEventProcessor(opt) { var _this7; (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__.default)(this, CrossWindowEventProcessor); _this7 = _super.call(this); _this7.storageName = '_crossWindow'; _this7.windows = []; _this7.timeout = 200; _this7.BROADCAST = '__BROADCAST__'; if (opt) { Object.assign((0,_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__.default)(_this7), opt); } onDOM(window, 'storage', function (ev) { if (ev.key === _this7.storageName) { var event = JSON.parse(ev.newValue); if (!event.targets || event.targets.includes(_this7.id)) { var _this8; (_this8 = _this7).emitLocal.apply(_this8, [event.name].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(event.args))); } } }); // social parts 集体部分 // join _this7.id = randString(); _this7.windows = [_this7.id]; _this7.ready = new Promise(function (resolve, reject) { _this7.onceTimeout('_windows_updated', function (_ref) { var windows = _ref.windows; _this7.windows = windows; }, _this7.timeout).promise.then(function () { resolve(); // responsed 被响应 }, function () { // no response 无响应 resolve(); }); _this7.broadcast('_join', _this7.id); }); _this7.ready.then(function () { // on join _this7.on('_join', function (id) { _this7.windows.push(id); if (_this7.isMain()) { _this7.broadcast('_windows_updated', { windows: _this7.windows, type: 'join', id: id }); } }); // on _windows_updated _this7.on('_windows_updated', function (_ref2) { var windows = _ref2.windows; _this7.windows = windows; }); // on exit _this7.on('_exit', function (id) { var oldMain = _this7.windows[0]; arrayRemove(_this7.windows, id); if (_this7.isMain()) { _this7.emit('_windows_updated', { windows: _this7.windows, type: 'exit', id: id }); if (oldMain != _this7.id) { _this7.emit('_main_updated', { windows: _this7.windows, old: oldMain, 'new': _this7.id }); } } }); onDOM(window, 'beforeunload', function () { _this7.exitGroup(); }); }); return _this7; } (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_6__.default)(CrossWindowEventProcessor, [{ key: "isMain", value: function isMain() { return this.id === this.windows[0]; } }, { key: "emitTo", value: function emitTo(name, targets) { for (var _len9 = arguments.length, args = new Array(_len9 > 2 ? _len9 - 2 : 0), _key10 = 2; _key10 < _len9; _key10++) { args[_key10 - 2] = arguments[_key10]; } if (targets === this.BROADCAST) { targets = null; } else { if (targets && !isArray(targets)) { targets = [targets]; } if (targets.includes(this.id)) { var _get2; (_get2 = (0,_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_1__.default)((0,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__.default)(CrossWindowEventProcessor.prototype), "emit", this)).call.apply(_get2, [this, name].concat(args)); // emit to current window } } glb().localStorage.setItem(this.storageName, JSON.stringify({ name: name, targets: targets, args: args, // use random make storage event triggered every time // 加入随机保证触发storage事件 random: Math.random() })); } }, { key: "emitLocal", value: function emitLocal(name) { for (var _len10 = arguments.length, args = new Array(_len10 > 1 ? _len10 - 1 : 0), _key11 = 1; _key11 < _len10; _key11++) { args[_key11 - 1] = arguments[_key11]; } this.emitTo.apply(this, [name, this.id].concat(args)); } }, { key: "broadcast", value: function broadcast(name) { for (var _len11 = arguments.length, args = new Array(_len11 > 1 ? _len11 - 1 : 0), _key12 = 1; _key12 < _len11; _key12++) { args[_key12 - 1] = arguments[_key12]; } this.emitTo.apply(this, [name, this.BROADCAST].concat(args)); } }, { key: "emit", value: function emit(name) { for (var _len12 = arguments.length, args = new Array(_len12 > 1 ? _len12 - 1 : 0), _key13 = 1; _key13 < _len12; _key13++) { args[_key13 - 1] = arguments[_key13]; } this.emitTo.apply(this, [name, this.windows].concat(args)); } }, { key: "exitGroup", value: function exitGroup() { this.broadcast('_exit', this.id); } }]); return CrossWindowEventProcessor; }(EventProcessor); // Deprecated in next version var CrossWindow = CrossWindowEventProcessor; // on continuous input. return destroy // 监听连续输入事件. 返回取消监听函数. function onContinuousInput(handler) { var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; opt = Object.assign({ timeout: 1000 }, opt); var input = ''; var timeoutId; var keydownHandler = function keydownHandler(e) { if (e.key && e.key.length === 1) { input = "".concat(input).concat(e.key); handler(input); if (timeoutId) { clearTimeout(timeoutId); timeoutId = null; } timeoutId = setTimeout(function () { input = ''; }, opt.timeout); } }; onDOM(document, 'keydown', keydownHandler); return function () { offDOM(document, 'keydown', keydownHandler); }; } // refer [onContinuousInput](#onContinuousInput) var onQuickKeydown = onContinuousInput; function getUserLanguage() { // @ts-ignore return navigator.language || navigator.userLanguage; } var Cache = /*#__PURE__*/function () { function Cache() { (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__.default)(this, Cache); this.store = {}; } (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_6__.default)(Cache, [{ key: "has", value: function has(name) { return this.store.hasOwnProperty(name); } }, { key: "remember", value: function remember(name, getter) { if (!this.has(name)) { this.store[name] = { value: getter() }; } return this.store[name].value; } }, { key: "forget", value: function forget(name) { if (name) { if (this.has(name)) { delete this.store[name]; } } else { this.store = {}; } } }]); return Cache; }(); // attach cached getters to an object; can attach to self function attachCache(obj, toCache) { var cache = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Cache(); var _loop3 = function _loop3(key) { var getter = toCache[key]; Object.defineProperty(obj, key, { get: function get() { var _this9 = this; return cache.remember(key, function () { return getter.call(_this9); }); } }); }; for (var key in toCache) { _loop3(key); } } // for animation function easeInOutQuad(startValue, changeInValue, changedTime, duration) { var t = changedTime, d = duration, b = startValue, c = changeInValue; t /= d / 2; if (t < 1) return c / 2 * t * t + b; t--; return -c / 2 * (t * (t - 2) - 1) + b; } /***/ }), /***/ "./node_modules/draggable-helper/dist/draggable-helper.esm.js": /*!********************************************************************!*\ !*** ./node_modules/draggable-helper/dist/draggable-helper.esm.js ***! \********************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); /* harmony import */ var helper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! helper-js */ "./node_modules/helper-js/dist/helper-js.esm.js"); /* harmony import */ var drag_event_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! drag-event-service */ "./node_modules/drag-event-service/dist/drag-event-service.esm.js"); /*! * draggable-helper v4.0.3 * (c) phphe <phphe@outlook.com> (https://github.com/phphe) * Homepage: undefined * Released under the MIT License. */ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } /*** const destroy = draggableHelper(HTMLElement dragHandlerEl, Object opt = {}) opt.beforeDrag(startEvent, moveEvent, store, opt) return false to prevent drag opt.drag(startEvent, moveEvent, store, opt) return false to prevent drag [Object] opt.style || opt.getStyle(store, opt) set style of moving el style [Boolean] opt.clone opt.draggingClass, default dragging opt.moving(e, store, opt) return false can prevent moving opt.drop(e, store, opt) opt.getEl(dragHandlerEl, store, opt) get the el that will be moved. default is dragHandlerEl opt.minTranslate default 10, unit px [Boolean] opt.triggerBySelf: false if trigger only by self, can not be triggered by children [Boolean] opt.restoreDOMManuallyOndrop the changed DOM will be restored automatically on drop. This disable it and pass restoreDOM function into store. add other prop into opt, you can get opt in callback store{ el originalEl initialMouse initialPosition mouse move movedCount // start from 0 startEvent endEvent restoreDOM // function if opt.restoreDOMManuallyOndrop else null } e.g. draggable(this.$el, { vm: this, data: this.data, drag: (e, store, opt) => { dplh.style.height = store.el.querySelector('.TreeNodeSelf').offsetHeight + 'px' th.insertAfter(dplh, opt.data) }, moving: (e, store, opt) => { hp.arrayRemove(dplh.parent.children, dplh) }, drop: (e, store, opt) => { hp.arrayRemove(dplh.parent.children, dplh) }, }) ***/ var IGNORE_TRIGGERS = ['INPUT', 'TEXTAREA', 'SELECT', 'OPTGROUP', 'OPTION']; var UNDRAGGABLE_CLASS = 'undraggable'; function index (dragHandlerEl) { var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; opt = _objectSpread({ minTranslate: 10, draggingClass: 'dragging' }, opt); var store = getPureStore(); var destroy = function destroy() { drag_event_service__WEBPACK_IMPORTED_MODULE_2__.default.off(dragHandlerEl, 'start', dragHandlerEl._draggbleEventHandler); delete dragHandlerEl._draggbleEventHandler; }; if (dragHandlerEl._draggbleEventHandler) { destroy(); } dragHandlerEl._draggbleEventHandler = start; drag_event_service__WEBPACK_IMPORTED_MODULE_2__.default.on(dragHandlerEl, 'start', start); return { destroy: destroy, options: opt }; function start(e, mouse) { // detect draggable ================================= if (opt.triggerBySelf && e.target !== dragHandlerEl) { return; } if (IGNORE_TRIGGERS.includes(e.target.tagName)) { return; } if ((0,helper_js__WEBPACK_IMPORTED_MODULE_1__.hasClass)(e.target, UNDRAGGABLE_CLASS)) { return; } var isParentUndraggable = (0,helper_js__WEBPACK_IMPORTED_MODULE_1__.findParent)(e.target, function (el) { if ((0,helper_js__WEBPACK_IMPORTED_MODULE_1__.hasClass)(el, UNDRAGGABLE_CLASS)) { return true; } if (el === dragHandlerEl) { return 'break'; } }); if (isParentUndraggable) { return; } // detect draggable end ================================= if (!drag_event_service__WEBPACK_IMPORTED_MODULE_2__.default.isTouch(e)) { // Do not prevent event now and when the client is mobile. Doing so will result in elements within the node not triggering click event. // 不要在此时, 客户端为移动端时阻止事件. 否则将导致节点内的元素不触发点击事件. e.preventDefault(); } store.mouse = { x: mouse.x, y: mouse.y }; store.startEvent = e; store.initialMouse = _objectSpread({}, store.mouse); /* must set passive false for touch, else the follow error occurs in Chrome: Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080 */ drag_event_service__WEBPACK_IMPORTED_MODULE_2__.default.on(document, 'move', moving, { touchArgs: [{ passive: false }] }); drag_event_service__WEBPACK_IMPORTED_MODULE_2__.default.on(window, 'end', drop); } function drag(e) { var canDrag = opt.beforeDrag && opt.beforeDrag(store.startEvent, e, store, opt); if (canDrag === false) { return false; } var _resolveDragedElAndIn = resolveDragedElAndInitialPosition(), el = _resolveDragedElAndIn.el, position = _resolveDragedElAndIn.position; store.el = el; store.initialPosition = _objectSpread({}, position); canDrag = opt.drag && opt.drag(store.startEvent, e, store, opt); if (canDrag === false) { return false; } // dom actions var size = (0,helper_js__WEBPACK_IMPORTED_MODULE_1__.getBoundingClientRect)(el); var style = _objectSpread({ width: "".concat(Math.ceil(size.width), "px"), height: "".concat(Math.ceil(size.height), "px"), zIndex: 9999, opacity: 0.8, position: 'absolute', left: position.x + 'px', top: position.y + 'px' }, opt.style || opt.getStyle && opt.getStyle(store, opt) || {}); (0,helper_js__WEBPACK_IMPORTED_MODULE_1__.backupAttr)(el, 'style'); for (var key in style) { el.style[key] = style[key]; } // add class (0,helper_js__WEBPACK_IMPORTED_MODULE_1__.backupAttr)(el, 'class'); (0,helper_js__WEBPACK_IMPORTED_MODULE_1__.addClass)(el, opt.draggingClass); } function moving(e, mouse) { e.preventDefault(); store.mouse = { x: mouse.x, y: mouse.y }; var move = store.move = { x: store.mouse.x - store.initialMouse.x, y: store.mouse.y - store.initialMouse.y }; if (store.movedCount === 0 && opt.minTranslate) { var x2 = Math.pow(store.move.x, 2); var y2 = Math.pow(store.move.y, 2); var dtc = Math.pow(x2 + y2, 0.5); if (dtc < opt.minTranslate) { return; } } var canMove = true; if (store.movedCount === 0) { if (drag(e) === false) { canMove = false; } } // move started if (canMove && opt.moving) { if (opt.moving(e, store, opt) === false) { canMove = false; } } if (canMove) { if (!store || !store.el) { return; } Object.assign(store.el.style, { left: store.initialPosition.x + move.x + 'px', top: store.initialPosition.y + move.y + 'px' }); store.movedCount++; } } function drop(e) { drag_event_service__WEBPACK_IMPORTED_MODULE_2__.default.off(document, 'move', moving, { touchArgs: [{ passive: false }] }); drag_event_service__WEBPACK_IMPORTED_MODULE_2__.default.off(window, 'end', drop); // drag executed if movedCount > 0 if (store.movedCount > 0) { store.movedCount = 0; store.endEvent = e; var _store = store, el = _store.el; var restoreDOM = function restoreDOM() { if (opt.clone) { el.parentElement.removeChild(el); } else { (0,helper_js__WEBPACK_IMPORTED_MODULE_1__.restoreAttr)(el, 'style'); (0,helper_js__WEBPACK_IMPORTED_MODULE_1__.restoreAttr)(el, 'class'); } }; if (!opt.restoreDOMManuallyOndrop) { restoreDOM(); restoreDOM = null; } store.restoreDOM = restoreDOM; opt.drop && opt.drop(e, store, opt); } store = getPureStore(); } function resolveDragedElAndInitialPosition() { var el0 = opt.getEl ? opt.getEl(dragHandlerEl, store, opt) : dragHandlerEl; var el = el0; store.originalEl = el0; if (opt.clone) { el = el0.cloneNode(true); el0.parentElement.appendChild(el); } return { position: (0,helper_js__WEBPACK_IMPORTED_MODULE_1__.getPosition)(el0), el: el }; } function getPureStore() { return { movedCount: 0 }; } } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (index); /***/ }), /***/ "./node_modules/he-tree-vue/dist/he-tree-vue.esm.js": /*!**********************************************************!*\ !*** ./node_modules/he-tree-vue/dist/he-tree-vue.esm.js ***! \**********************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "Check": () => (/* binding */ check), /* harmony export */ "Draggable": () => (/* binding */ __vue_component__$1), /* harmony export */ "Fold": () => (/* binding */ fold), /* harmony export */ "Tree": () => (/* binding */ __vue_component__), /* harmony export */ "cloneTreeData": () => (/* binding */ cloneTreeData), /* harmony export */ "foldAll": () => (/* binding */ foldAll), /* harmony export */ "getPureTreeData": () => (/* binding */ getPureTreeData), /* harmony export */ "unfoldAll": () => (/* binding */ unfoldAll), /* harmony export */ "walkTreeData": () => (/* binding */ walkTreeData) /* harmony export */ }); /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"); /* harmony import */ var helper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! helper-js */ "./node_modules/helper-js/dist/helper-js.esm.js"); /* harmony import */ var vue_functions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-functions */ "./node_modules/vue-functions/dist/vue-functions.esm.js"); /* harmony import */ var vue_runtime_helpers_dist_normalize_component_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-runtime-helpers/dist/normalize-component.mjs */ "./node_modules/vue-runtime-helpers/dist/normalize-component.mjs"); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js"); /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"); /* harmony import */ var draggable_helper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! draggable-helper */ "./node_modules/draggable-helper/dist/draggable-helper.esm.js"); /*! * he-tree-vue v1.2.3 * (c) phphe <phphe@outlook.com> (https://github.com/phphe) * Homepage: https://he-tree-vue.phphe.com * Released under the MIT License. */ function cloneTreeData(treeData, opt) { return new helper_js__WEBPACK_IMPORTED_MODULE_2__.TreeData(treeData).clone(opt); } function walkTreeData(treeData, handler, opt) { return new helper_js__WEBPACK_IMPORTED_MODULE_2__.TreeData(treeData).walk(handler, opt); } function getPureTreeData(treeData) { var opt = { afterNodeCreated: function afterNodeCreated(newNode) { Object.keys(newNode).forEach(function (key) { if (key[0] === '$') { delete newNode[key]; } }); } }; return cloneTreeData(treeData, opt); } function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } var template = function template(h) { var _this = this; // convert undefined to empty str var noUndefined = function noUndefined(str) { return str ? str : ''; }; // tree tpl, to render recursively var childrenListTpl = function childrenListTpl(nodes, parent, parentPath) { var indentStyle = { paddingLeft: parentPath.length * _this.indent + 'px' }; var branchTpl = function branchTpl(node, index) { var path = [].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__.default)(parentPath), [index]); var transitionComponent = _this.foldingTransition || 'transition'; var slotDefault = function slotDefault() { var original = function original() { if (_this.$scopedSlots.default) { return _this.$scopedSlots.default({ node: node, index: index, path: path, tree: _this }); } else if (_this.$slots.default) { return _this.$slots.default; } else { return node.text; } }; if (_this.overrideSlotDefault) { return _this.overrideSlotDefault({ node: node, index: index, path: path, tree: _this }, original); } else { return original(); } }; var nodebackStyle = indentStyle; if (node.$nodeBackStyle) { nodebackStyle = _objectSpread({}, nodebackStyle, {}, node.$nodeBackStyle); } return h("div", { "class": "tree-branch ".concat(noUndefined(node.$branchClass), " ").concat(noUndefined(node.$hidden && 'he-tree--hidden')), "style": node.$branchStyle || {}, "attrs": { "data-tree-node-path": path.join(',') } }, [h("div", { "class": "tree-node-back ".concat(noUndefined(node.$nodeBackClass)), "style": nodebackStyle || {} }, [h("div", { "class": "tree-node ".concat(noUndefined(node.$nodeClass)), "style": node.$nodeStyle || {} }, [slotDefault()])]), (node.children && node.children.length) > 0 && h(transitionComponent, { "attrs": { "name": _this.$props.foldingTransitionName } }, [!node.$folded && childrenListTpl(node.children, node, path)])]); }; return h("div", { "class": "tree-children ".concat(noUndefined(parent === _this.rootNode && 'tree-root'), " ").concat(noUndefined(parent.$childrenClass)), "style": parent.$childrenStyle || {} }, [nodes.map(branchTpl)]); }; return h("div", { "class": "he-tree ".concat(this.treeClass), "attrs": { "data-tree-id": this.treeId } }, [this.blockHeader && this.blockHeader(), childrenListTpl(this.rootNode.children, this.rootNode, []), this.blockFooter && this.blockFooter()]); }; var trees = {}; var Tree = { render: template, mixins: [(0,vue_functions__WEBPACK_IMPORTED_MODULE_3__.updatablePropsEvenUnbound)({ value: { $localName: 'treeData', required: true } }), vue_functions__WEBPACK_IMPORTED_MODULE_3__.hookHelper], props: { indent: { type: Number, default: 20 }, rootNode: { default: function _default(is) { return {}; } } }, // components: {}, data: function data() { return { trees: trees, treeClass: '', treeId: (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.strRand)() }; }, // computed: {}, watch: { treeData: { immediate: true, handler: function handler(treeData) { this._TreeDataHelper = new helper_js__WEBPACK_IMPORTED_MODULE_2__.TreeData(this.treeData); } } }, methods: { iteratePath: function iteratePath(path, opt) { return this._TreeDataHelper.iteratePath(path, opt); }, getTreeVmByTreeEl: function getTreeVmByTreeEl(treeEl) { return this.trees[treeEl.getAttribute('data-tree-id')]; }, getAllNodesByPath: function getAllNodesByPath(path) { return this._TreeDataHelper.getAllNodes(path); }, getNodeByPath: function getNodeByPath(path) { return this._TreeDataHelper.getNode(path); }, getPathByBranchEl: function getPathByBranchEl(branchEl) { return branchEl.getAttribute('data-tree-node-path').split(',').map(function (v) { return parseInt(v); }); }, getBranchElByPath: function getBranchElByPath(path) { return this.$el.querySelector("[data-tree-node-path='".concat(path.join(','), "']")); }, getNodeByBranchEl: function getNodeByBranchEl(branchEl) { return this.getNodeByPath(this.getPathByBranchEl(branchEl)); }, getNodeParentByPath: function getNodeParentByPath(path) { return this._TreeDataHelper.getNodeParent(path); }, removeNodeByPath: function removeNodeByPath(path) { return this._TreeDataHelper.removeNode(path); }, walkTreeData: function walkTreeData$1(handler, opt) { return walkTreeData(this.treeData, handler, opt); }, cloneTreeData: function cloneTreeData$1(opt) { return cloneTreeData(this.treeData, opt); }, // return cloned new tree data without property witch starts with `$` getPureTreeData: function getPureTreeData$1() { return getPureTreeData(this.treeData); } }, created: function created() { var _this2 = this; // var updateRootNode = function updateRootNode() { _this2.$set(_this2.rootNode, 'children', _this2.treeData); }; this.$watch('rootNode', updateRootNode, { immediate: true }); this.$watch('treeData', updateRootNode, { immediate: true }); }, mounted: function mounted() { var _this3 = this; // this.treeId = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.strRand)(); this.$set(this.trees, this.treeId, this); this.$once('hook:beforeDestroy', function () { _this3.$delete(_this3.trees, _this3.treeId); }); }, // beforeDestroy() {}, // mixPlugins: function mixPlugins(plugins) { var MixedTree = { name: 'Tree', extends: Tree, mixins: plugins, mixPlugins: this.mixPlugins }; return MixedTree; } }; /* script */ var __vue_script__ = Tree; /* template */ /* style */ var __vue_inject_styles__ = undefined; /* scoped */ var __vue_scope_id__ = undefined; /* module identifier */ var __vue_module_identifier__ = undefined; /* functional template */ var __vue_is_functional_template__ = undefined; /* style inject */ /* style inject SSR */ /* style inject shadow dom */ var __vue_component__ = (0,vue_runtime_helpers_dist_normalize_component_mjs__WEBPACK_IMPORTED_MODULE_4__.default)({}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined); function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } function foldAll(treeData) { walkTreeData(treeData, function (childNode) { vue__WEBPACK_IMPORTED_MODULE_8__.default.set(childNode, '$folded', true); }); } function unfoldAll(treeData) { walkTreeData(treeData, function (childNode) { vue__WEBPACK_IMPORTED_MODULE_8__.default.set(childNode, '$folded', false); }); } var fold = { props: { foldingTransitionName: { type: String }, foldingTransition: {}, foldAllAfterMounted: { type: Boolean } }, methods: { fold: function fold(node, path) { if (!node.$folded) { this.$set(node, '$folded', true); this.$emit('nodeFoldedChanged', node); } }, unfold: function unfold(node, path) { var opt = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; opt = _objectSpread$1({ foldOthers: false }, opt); if (opt.foldOthers) { this.foldAll(); } if (node.$folded) { this.$set(node, '$folded', false); this.$emit('nodeFoldedChanged', node); } }, toggleFold: function toggleFold(node, path, opt) { if (node.$folded) { this.unfold(node, path, opt); } else { this.fold(node, path, opt); } }, foldAll: function foldAll() { var _this = this; this.walkTreeData(function (childNode) { _this.fold(childNode); }); }, unfoldAll: function unfoldAll() { var _this2 = this; this.walkTreeData(function (childNode) { _this2.unfold(childNode, { unfoldParent: false }); }); } }, mounted: function mounted() { if (this.foldAllAfterMounted) { this.foldAll(); } } }; var check = { props: {}, methods: { afterCheckChanged: function afterCheckChanged(node, path) { var _this = this; // update parent var nodes = this.getAllNodesByPath(path); var reversedParents = nodes.slice(0, nodes.length - 1); reversedParents.reverse(); var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = reversedParents[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var parent = _step.value; this.$set(parent, '$checked', parent.children.every(function (child) { return child.$checked; })); } // update children } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } if (node.children && node.children.length > 0) { walkTreeData(node.children, function (childNode) { _this.$set(childNode, '$checked', node.$checked); }); } }, check: function check(node, path) { this.$set(node, '$checked', true); this.afterCheckChanged(node, path); }, uncheck: function uncheck(node, path) { this.$set(node, '$checked', false); this.afterCheckChanged(node, path); }, toggleCheck: function toggleCheck(node, path) { this.$set(node, '$checked', !node.$checked); this.afterCheckChanged(node, path); } } }; function doDraggableDecision (_ref) { var conditions = _ref.conditions, doAction = _ref.doAction; // decision start ================================= if (conditions['no closest'] === true) { doAction('append to root'); } else if (conditions['no closest'] === false) { if (conditions['closest is top'] === true) { if (conditions['on closest middle'] === true) { doAction('insert before'); } else if (conditions['on closest middle'] === false) { if (conditions['at closest indent right'] === true) { doAction('prepend'); } else if (conditions['at closest indent right'] === false) { if (conditions['closest is placeholder'] === true) { doAction('insert after'); } else if (conditions['closest is placeholder'] === false) { if (conditions['closest has children excluding placeholder movingEl'] === true) { doAction('prepend'); } else if (conditions['closest has children excluding placeholder movingEl'] === false) { doAction('insert after'); } } } } } else if (conditions['closest is top'] === false) { if (conditions['on closest middle'] === true) { if (conditions['at closest indent right'] === false) { if (conditions['at closest left'] === false) { if (conditions['closest is placeholder'] === false) { if (conditions['closest has next'] === true) { if (conditions['closest has children excluding placeholder movingEl'] === false) { doAction('insert after'); } else if (conditions['closest has children excluding placeholder movingEl'] === true) { doAction('prepend'); } } else if (conditions['closest has next'] === false) { if (conditions['closest has children excluding placeholder movingEl'] === true) { doAction('prepend'); } else if (conditions['closest has children excluding placeholder movingEl'] === false) { doAction('insert after'); } } } else if (conditions['closest is placeholder'] === true) { doAction('nothing'); } } else if (conditions['at closest left'] === true) { if (conditions['closest is placeholder'] === true) { if (conditions['no aboveBranch'] === true) { doAction('nothing'); } else if (conditions['no aboveBranch'] === false) { doAction('after above'); } } else if (conditions['closest is placeholder'] === false) { if (conditions['closest has children excluding placeholder movingEl'] === false) { doAction('insert after'); } else if (conditions['closest has children excluding placeholder movingEl'] === true) { doAction('prepend'); } } } } else if (conditions['at closest indent right'] === true) { if (conditions['closest is placeholder'] === false) { if (conditions['closest has next'] === true) { if (conditions['closest has children excluding placeholder movingEl'] === false) { doAction('prepend'); } else if (conditions['closest has children excluding placeholder movingEl'] === true) { if (conditions['closest is top excluding placeholder'] === true) { doAction('insert before'); } else if (conditions['closest is top excluding placeholder'] === false) { doAction('prepend'); } } } else if (conditions['closest has next'] === false) { doAction('prepend'); } } else if (conditions['closest is placeholder'] === true) { if (conditions['no aboveBranch'] === true) { if (conditions['closest has prev'] === false) { doAction('nothing'); } else if (conditions['closest has prev'] === true) { doAction('append to prev'); } } else if (conditions['no aboveBranch'] === false) { if (conditions['closest has prev'] === true) { doAction('append to prev'); } else if (conditions['closest has prev'] === false) { doAction('nothing'); } } } } } else if (conditions['on closest middle'] === false) { if (conditions['at closest indent right'] === false) { if (conditions['at closest left'] === false) { if (conditions['closest is placeholder'] === false) { if (conditions['closest has children excluding placeholder movingEl'] === true) { doAction('prepend'); } else if (conditions['closest has children excluding placeholder movingEl'] === false) { doAction('insert after'); } } else if (conditions['closest is placeholder'] === true) { doAction('nothing'); } } else if (conditions['at closest left'] === true) { if (conditions['closest is placeholder'] === true) { if (conditions['no aboveBranch'] === false) { doAction('after above'); } else if (conditions['no aboveBranch'] === true) { doAction('nothing'); } } else if (conditions['closest is placeholder'] === false) { if (conditions['closest has next'] === false) { if (conditions['closest has children excluding placeholder movingEl'] === false) { doAction('insert after'); } else if (conditions['closest has children excluding placeholder movingEl'] === true) { doAction('prepend'); } } else if (conditions['closest has next'] === true) { if (conditions['closest has children excluding placeholder movingEl'] === true) { doAction('prepend'); } else if (conditions['closest has children excluding placeholder movingEl'] === false) { doAction('insert after'); } } } } } else if (conditions['at closest indent right'] === true) { if (conditions['closest is placeholder'] === true) { if (conditions['no aboveBranch'] === true) { if (conditions['closest has prev'] === false) { doAction('nothing'); } else if (conditions['closest has prev'] === true) { doAction('append to prev'); } } else if (conditions['no aboveBranch'] === false) { if (conditions['closest has prev'] === true) { doAction('append to prev'); } else if (conditions['closest has prev'] === false) { doAction('nothing'); } } } else if (conditions['closest is placeholder'] === false) { doAction('prepend'); } } } } } // decision end ================================= } function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } function makeTreeDraggable(treeEl) { var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; options = _objectSpread$2({}, options, { treeEl: treeEl }); var _draggableHelper = (0,draggable_helper__WEBPACK_IMPORTED_MODULE_7__.default)(treeEl, { draggingClass: options.draggingClass, restoreDOMManuallyOndrop: true, clone: options.cloneWhenDrag, beforeDrag: function beforeDrag(startEvent, moveEvent, store, opt) { store.startTreeEl = treeEl; if (options.beforeDrag && options.beforeDrag(store, opt) === false) { return false; } // if the event target is a trigger var isTrigger = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.findParent)(startEvent.target, function (el) { if ((0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(el, options.triggerClass)) { return true; } if (el === store.startTreeEl || (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(el, options.branchClass)) { return 'break'; } }, { withSelf: true }); if (!isTrigger) { return false; } // _triggeredBy if (startEvent._triggeredBy) { return false; } startEvent._triggeredBy = store.startTree; }, // get the element which will be moved getEl: function getEl(dragHandlerEl, store, opt) { var el = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.findParent)(store.startEvent.target, function (el) { return (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(el, options.branchClass); }, { withSelf: true }); return el; }, drag: function drag(startEvent, moveEvent, store, opt) { store.dragBranchEl = store.el; var movingEl = store.el; // branch store.startPath = options.getPathByBranchEl(movingEl); if (options.ondrag && options.ondrag(store, opt) === false) { return false; } }, moving: function moving(moveEvent, store, opt) { // return false in moving will prevent move animation; return undefined just prevent doAction store.oneMoveStore = {}; // life cycle: one move var movingEl = store.el; // branch // find closest branch and hovering tree var tree; var movingNode = movingEl.querySelector(".".concat(options.nodeClass)); var movingNodeOf = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.getOffset)(movingNode); var movingNodeRect = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.getBoundingClientRect)(movingNode); if (options.draggingNodePositionMode === 'mouse') { // use mouse position as dragging node position movingNodeOf = { x: moveEvent.pageX, y: moveEvent.pageY }; movingNodeRect = { x: moveEvent.clientX, y: moveEvent.clientY }; } var elsBetweenMovingElAndTree = []; // including tree var elsToTree = []; // start from top, including tree // loop to find put els between movingEl and tree var movingElLooped; // 已循环到了movingEl var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.elementsFromPoint)(movingNodeRect.x, movingNodeRect.y)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var itemEl = _step.value; if (movingElLooped) { elsBetweenMovingElAndTree.push(itemEl); } else if (itemEl === movingEl) { movingElLooped = true; } elsToTree.push(itemEl); if ((0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(itemEl, options.treeClass)) { tree = itemEl; break; } } // this is an issue, sometimes, the movingEl is not in elementsFromPoint result } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } if (!movingElLooped) { elsBetweenMovingElAndTree.push.apply(elsBetweenMovingElAndTree, elsToTree); } if (!tree) { // out of tree return; } // check tree if is covered, like modal var treeBeCoved; if (elsBetweenMovingElAndTree && elsBetweenMovingElAndTree[0]) { if (elsBetweenMovingElAndTree[0] !== tree && !(0,helper_js__WEBPACK_IMPORTED_MODULE_2__.isDescendantOf)(elsBetweenMovingElAndTree[0], tree)) { treeBeCoved = true; } } if (treeBeCoved) { return; } // check if target tree right if (options.filterTargetTree(tree, store, opt) === false) { return; } store.targetTreeEl = tree; // info ======================================== // life cycle: one move var info = { tree: function (_tree) { function tree() { return _tree.apply(this, arguments); } tree.toString = function () { return _tree.toString(); }; return tree; }(function () { return tree; }), root: function root() { return info.tree.querySelector(".".concat(options.childrenClass)); }, closestNode: function closestNode() { var nodes = []; // all visible nodes sort by y var walkToGetNodes = function walkToGetNodes(branch) { // if (branch !== info.tree) { var node = branch.querySelector(".".concat(options.nodeClass)); if (node && !isElementHidden(node)) { nodes.push(node); } } // var childrenEl = branch.querySelector(".".concat(options.childrenClass)); if (childrenEl) { for (var i = 0; i < childrenEl.children.length; i++) { var child = childrenEl.children[i]; if (child !== movingEl && (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(child, options.branchClass)) { walkToGetNodes(child); } } } }; walkToGetNodes(info.tree); // if (nodes.length === 0) { return; } // var found; var t = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.binarySearch)(nodes, function (node) { return (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.getOffset)(node).y - movingNodeOf.y; }, null, null, true); if (t.hit) { found = t.value; } else { if (t.bigger) { found = nodes[t.index - 1] || t.value; } else { found = t.value; } } return found; }, closestNodeOffset: function closestNodeOffset() { return (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.getOffset)(info.closestNode); }, closestBranch: function closestBranch() { return (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.findParent)(info.closestNode, function (el) { return (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(el, options.branchClass); }); }, closestNext: function closestNext() { var next = info.closestBranch.nextSibling; while (next) { if (next !== movingEl && (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(next, options.branchClass) && !isElementHidden(next)) { return next; } next = next.nextSibling; } }, closestPrev: function closestPrev() { var prev = info.closestBranch.previousSibling; while (prev) { if (prev !== movingEl && (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(prev, options.branchClass) && !isElementHidden(prev)) { return prev; } prev = prev.previousSibling; } }, aboveBranch: function aboveBranch() { // find above from branch to root // closestBranch must be placeholder if (info.closestBranch !== store.placeholder) { return; } if (conditions['closest has next']) { return; } // find placeholder prev or parent var cur = info.closestBranch; var prev = cur.previousSibling; var found; while (prev) { if (prev !== movingEl && (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(prev, options.branchClass) && !isElementHidden(prev)) { cur = prev; found = true; break; } prev = prev.previousSibling; } if (!found) { cur = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.findParent)(cur, function (el) { return (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(el, options.branchClass); }); } // while (cur) { var curNode = cur.querySelector(".".concat(options.nodeClass)); if ((0,helper_js__WEBPACK_IMPORTED_MODULE_2__.getOffset)(curNode).x <= movingNodeOf.x) { break; } var hasNextBranch = void 0; var t = cur.nextSibling; while (t) { if (t !== movingEl && t !== store.placeholder && (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(t, options.branchClass) && !isElementHidden(t)) { hasNextBranch = true; break; } t = t.nextSibling; } if (hasNextBranch) { break; } var parent = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.findParent)(cur, function (el) { return (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(el, options.branchClass); }); if (!parent) { break; } cur = parent; } return cur; } }; // conditions ======================================== // life cycle: one move var conditions = { 'no closest': function noClosest() { return !info.closestNode; }, 'closest is top': function closestIsTop() { return info.closestBranch === (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.findNodeList)(info.root.children, function (el) { return el !== movingEl && !isElementHidden(el); }); }, 'closest is top excluding placeholder': function closestIsTopExcludingPlaceholder() { return info.closestBranch === (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.findNodeList)(info.root.children, function (el) { return el !== movingEl && el !== store.placeholder && !isElementHidden(el); }); }, 'on closest middle': function onClosestMiddle() { return movingNodeOf.y < info.closestNodeOffset.y + info.closestNode.offsetHeight / 2; }, 'at closest indent right': function atClosestIndentRight() { return movingNodeOf.x > info.closestNodeOffset.x + options.indent; }, 'at closest left': function atClosestLeft() { return movingNodeOf.x < info.closestNodeOffset.x; }, 'closest is placeholder': function closestIsPlaceholder() { return info.closestBranch === store.placeholder; }, 'no aboveBranch': function noAboveBranch() { return !info.aboveBranch; }, 'closest has next': function closestHasNext() { return info.closestNext; }, 'closest has prev': function closestHasPrev() { return info.closestPrev; }, 'closest has children excluding placeholder movingEl': function closestHasChildrenExcludingPlaceholderMovingEl() { var childrenEl = info.closestBranch.querySelector(".".concat(options.childrenClass)); if (childrenEl) { return (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.findNodeList)(childrenEl.children, function (el) { return el !== movingEl && el !== store.placeholder && !isElementHidden(el); }); } } }; // convert conditions result to Boolean Object.keys(conditions).forEach(function (key) { var old = conditions[key]; conditions[key] = function () { return Boolean(old.call(this)); }; }); // (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.attachCache)(info, info); (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.attachCache)(conditions, conditions); // actions start ======================================== var doAction = function doAction(name) { for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } if (!store._doActionQueue) { store._doActionQueue = Promise.resolve(); } var queue = store._doActionQueue; store._doActionQueue = queue.then( /*#__PURE__*/ (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__.default)( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee() { var actionRecords, action, r, placeholderPath, placeholderNodeBack; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: // record tried actions in one move if (!store.oneMoveStore.actionRecords) { store.oneMoveStore.actionRecords = []; } actionRecords = store.oneMoveStore.actionRecords; // action = actions[name]; r = action.apply(void 0, args); actionRecords.push(name); _context.next = 7; return r; case 7: // set indent of placeholder placeholderPath = options.getPathByBranchEl(store.placeholder); placeholderNodeBack = store.placeholder.querySelector(".".concat(options.nodeBackClass)); placeholderNodeBack.style.paddingLeft = (placeholderPath.length - 1) * options.indent + 'px'; // remove tempChildren if empty if (store.tempChildren.children.length === 0) { (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.removeEl)(store.tempChildren); } case 11: case "end": return _context.stop(); } } }, _callee); }))); }; var actions = { 'nothing': function nothing() { return (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__.default)( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee2() { return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee2$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: case "end": return _context2.stop(); } } }, _callee2); }))(); }, // do nothing 'append to root': function appendToRoot() { return (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__.default)( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee3() { return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee3$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: // no closest branch, just append to root if (options.isTargetTreeRootDroppable(store)) { (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.appendTo)(store.placeholder, info.root); } case 1: case "end": return _context3.stop(); } } }, _callee3); }))(); }, 'insert before': function insertBefore$1() { return (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__.default)( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee4() { return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee4$(_context4) { while (1) { switch (_context4.prev = _context4.next) { case 0: if (!options.isNodeParentDroppable(info.closestBranch, store.targetTreeEl)) { _context4.next = 4; break; } (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.insertBefore)(store.placeholder, info.closestBranch); _context4.next = 5; break; case 4: return _context4.abrupt("return", secondCase(getParentBranchByEl(info.closestBranch))); case 5: case "end": return _context4.stop(); } } }, _callee4); }))(); }, 'insert after': function insertAfter$1() { var branch = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : info.closestBranch; return (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__.default)( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee5() { var moved, isFirstTriedAction; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee5$(_context5) { while (1) { switch (_context5.prev = _context5.next) { case 0: if (!options.isNodeParentDroppable(branch, store.targetTreeEl)) { _context5.next = 4; break; } (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.insertAfter)(store.placeholder, branch); _context5.next = 10; break; case 4: _context5.next = 6; return secondCase(getParentBranchByEl(branch)); case 6: moved = _context5.sent; isFirstTriedAction = !store.oneMoveStore.actionRecords || store.oneMoveStore.actionRecords.length === 1; if (!(!moved && isFirstTriedAction)) { _context5.next = 10; break; } return _context5.abrupt("return", thirdCase(branch)); case 10: case "end": return _context5.stop(); } } }, _callee5); }))(); }, prepend: function prepend() { return (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__.default)( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee6() { return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee6$(_context6) { while (1) { switch (_context6.prev = _context6.next) { case 0: if (!(info.closestBranch === store.placeholder)) { _context6.next = 2; break; } return _context6.abrupt("return"); case 2: if (!(options.ifNodeFolded(info.closestBranch, store) && !options.unfoldWhenDragover)) { _context6.next = 6; break; } return _context6.abrupt("return", doAction('insert after', info.closestBranch)); case 6: if (!options.isNodeDroppable(info.closestBranch, store.targetTreeEl)) { _context6.next = 11; break; } _context6.next = 9; return tryUnfoldAndPrepend(info.closestBranch); case 9: _context6.next = 12; break; case 11: return _context6.abrupt("return", secondCase(info.closestBranch)); case 12: case "end": return _context6.stop(); } } }, _callee6); }))(); }, 'after above': function afterAbove() { return (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__.default)( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee7() { return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee7$(_context7) { while (1) { switch (_context7.prev = _context7.next) { case 0: if (!options.isNodeParentDroppable(info.aboveBranch, store.targetTreeEl)) { _context7.next = 4; break; } (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.insertAfter)(store.placeholder, info.aboveBranch); _context7.next = 5; break; case 4: return _context7.abrupt("return", secondCase(getParentBranchByEl(info.aboveBranch))); case 5: case "end": return _context7.stop(); } } }, _callee7); }))(); }, 'append to prev': function appendToPrev() { return (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__.default)( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee8() { var childrenEl; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee8$(_context8) { while (1) { switch (_context8.prev = _context8.next) { case 0: if (!(info.closestPrev === store.placeholder)) { _context8.next = 2; break; } return _context8.abrupt("return"); case 2: if (!options.ifNodeFolded(info.closestPrev, store)) { _context8.next = 6; break; } return _context8.abrupt("return", doAction('insert after', info.closestPrev)); case 6: if (!options.isNodeDroppable(info.closestPrev, store.targetTreeEl)) { _context8.next = 13; break; } _context8.next = 9; return unfoldAndGetChildrenEl(info.closestPrev); case 9: childrenEl = _context8.sent; (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.appendTo)(store.placeholder, childrenEl); _context8.next = 14; break; case 13: return _context8.abrupt("return", secondCase(info.closestPrev)); case 14: case "end": return _context8.stop(); } } }, _callee8); }))(); } }; // second case for actions, when target position not droppable // return true if moved var secondCase = /*#__PURE__*/ function () { var _ref2 = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__.default)( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee9(branchEl) { var targetEl; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee9$(_context9) { while (1) { switch (_context9.prev = _context9.next) { case 0: if (!branchEl) { _context9.next = 5; break; } targetEl = options._findClosestDroppablePosition(branchEl, store.targetTreeEl); if (!targetEl) { _context9.next = 5; break; } (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.insertAfter)(store.placeholder, targetEl); return _context9.abrupt("return", true); case 5: case "end": return _context9.stop(); } } }, _callee9); })); return function secondCase(_x) { return _ref2.apply(this, arguments); }; }(); // when action is after, first case and second case invalid, try prepend // 当操作是'after', 第一种第二种情况无效时, 尝试prepend var thirdCase = /*#__PURE__*/ function () { var _ref3 = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__.default)( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee10(branchEl) { return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee10$(_context10) { while (1) { switch (_context10.prev = _context10.next) { case 0: if (!(!options.ifNodeFolded(branchEl, store) && options.isNodeDroppable(branchEl, store.targetTreeEl))) { _context10.next = 3; break; } _context10.next = 3; return tryUnfoldAndPrepend(branchEl); case 3: case "end": return _context10.stop(); } } }, _callee10); })); return function thirdCase(_x2) { return _ref3.apply(this, arguments); }; }(); var unfoldAndGetChildrenEl = /*#__PURE__*/ function () { var _ref4 = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__.default)( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee11(branch) { var childrenEl; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee11$(_context11) { while (1) { switch (_context11.prev = _context11.next) { case 0: _context11.next = 2; return options.unfoldTargetNodeByEl(branch, store); case 2: childrenEl = branch.querySelector(".".concat(options.childrenClass)); if (!childrenEl) { childrenEl = store.tempChildren; (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.appendTo)(childrenEl, branch); } return _context11.abrupt("return", childrenEl); case 5: case "end": return _context11.stop(); } } }, _callee11); })); return function unfoldAndGetChildrenEl(_x3) { return _ref4.apply(this, arguments); }; }(); var tryUnfoldAndPrepend = /*#__PURE__*/ function () { var _ref5 = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__.default)( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee13(branchEl) { var func, oneMoveStore; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee13$(_context13) { while (1) { switch (_context13.prev = _context13.next) { case 0: func = /*#__PURE__*/ function () { var _ref6 = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__.default)( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee12() { var childrenEl; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee12$(_context12) { while (1) { switch (_context12.prev = _context12.next) { case 0: _context12.next = 2; return unfoldAndGetChildrenEl(branchEl); case 2: childrenEl = _context12.sent; (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.prependTo)(store.placeholder, childrenEl); case 4: case "end": return _context12.stop(); } } }, _callee12); })); return function func() { return _ref6.apply(this, arguments); }; }(); if (!options.ifNodeFolded(branchEl, store)) { _context13.next = 6; break; } // delay if node folded oneMoveStore = store.oneMoveStore; setTimeout(function () { // check if expired if (oneMoveStore === store.oneMoveStore) { func(); } }, options.unfoldWhenDragoverDelay); _context13.next = 8; break; case 6: _context13.next = 8; return func(); case 8: case "end": return _context13.stop(); } } }, _callee13); })); return function tryUnfoldAndPrepend(_x4) { return _ref5.apply(this, arguments); }; }(); // actions end ======================================== // var checkPlaceholder = function checkPlaceholder() { if (!store.placeholder) { var placeholder = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.createElementFromHTML)("\n <div id=\"".concat(options.placeholderId, "\" class=\"").concat(options.branchClass, " ").concat(options.placeholderClass, "\">\n <div class=\"").concat(options.nodeBackClass, " ").concat(options.placeholderNodeBackClass, "\">\n <div class=\"").concat(options.nodeClass, " ").concat(options.placeholderNodeClass, "\">\n </div>\n </div>\n </div>\n ")); (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.insertAfter)(placeholder, movingEl); store.placeholder = placeholder; options.afterPlaceholderCreated(store); // create a tree children el to use when can't get childrenEl var tempChildren = document.createElement('DIV'); (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.addClass)(tempChildren, options.childrenClass); store.tempChildren = tempChildren; } }; // checkPlaceholder(); doDraggableDecision({ options: options, event: event, store: store, opt: opt, info: info, conditions: conditions, actions: actions, doAction: doAction }); }, drop: function () { var _drop = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__.default)( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().mark(function _callee14(endEvent, store, opt) { var movingEl, placeholder, tempChildren, maskTree, pathChanged, isPathChanged; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default().wrap(function _callee14$(_context14) { while (1) { switch (_context14.prev = _context14.next) { case 0: isPathChanged = function _ref7() { var startTree = store.startTree, targetTree = store.targetTree, startPath = store.startPath, targetPath = store.targetPath; return startTree !== targetTree || startPath.toString() !== targetPath.toString(); }; movingEl = store.el; // branch placeholder = store.placeholder, tempChildren = store.tempChildren; // use mask tree to avoid flick caused by DOM update in short time // 复制 targetTreeEl 作为遮罩, 避免短时间内更新DOM引起的闪烁 if (placeholder) { // placeholder not mounted is rarely // create mask tree maskTree = store.targetTreeEl.cloneNode(true); store.targetTreeEl.style.display = 'none'; (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.insertAfter)(maskTree, store.targetTreeEl); // store.targetPath = options.getPathByBranchEl(placeholder); pathChanged = isPathChanged(); store.targetPathNotEqualToStartPath = pathChanged; store.pathChangePrevented = false; if (options.beforeDrop && options.beforeDrop(pathChanged, store, opt) === false) { pathChanged = false; store.pathChangePrevented = false; } store.pathChanged = pathChanged; (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.removeEl)(placeholder); if (tempChildren) { (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.removeEl)(tempChildren); } } store.restoreDOM(); _context14.next = 7; return options.ondrop(store, opt); case 7: if (!maskTree) { _context14.next = 12; break; } _context14.next = 10; return (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.waitTime)(30); case 10: (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.removeEl)(maskTree); store.targetTreeEl.style.display = 'block'; case 12: case "end": return _context14.stop(); } } }, _callee14); })); function drop(_x5, _x6, _x7) { return _drop.apply(this, arguments); } return drop; }() }), destroy = _draggableHelper.destroy, draggableHelperOptions = _draggableHelper.draggableHelperOptions; return { destroy: destroy, options: options, optionsUpdated: optionsUpdated }; function getParentBranchByEl(el) { return (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.findParent)(el, function (el) { if ((0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(el, options.branchClass)) { return true; } if ((0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(el, options.rootClass)) { return 'break'; } }); } function optionsUpdated() { draggableHelperOptions.clone = options.cloneWhenDrag; } } function isElementHidden(el) { return el.offsetWidth === 0 && el.offsetHeight === 0; } var treesStore = {}; var script = { props: { triggerClass: { type: String, default: 'tree-node' }, draggable: { type: [Boolean, Function], default: true }, droppable: { type: [Boolean, Function], default: true }, eachDraggable: { type: [Function] }, // type: [Boolean, Function] eachDroppable: { type: [Function] }, // type: [Boolean, Function] ondragstart: { type: Function }, ondragend: { type: Function }, unfoldWhenDragover: { type: Boolean, default: true }, unfoldWhenDragoverDelay: { type: Number, default: 30 }, draggingNodePositionMode: { type: String, default: 'top_left_corner' } // top_left_corner, mouse }, // components: {}, data: function data() { return { treesStore: treesStore }; }, // computed: {}, // watch: {}, methods: { _Draggable_unfoldTargetNodeByEl: function _Draggable_unfoldTargetNodeByEl(branchEl, store) { var targetTree = store.targetTree; var path = targetTree.getPathByBranchEl(branchEl); var node = targetTree.getNodeByPath(path); targetTree.unfold && targetTree.unfold(node, path); return new Promise(function (resolve, reject) { targetTree.$nextTick(function () { resolve(); }); }); }, isNodeDraggable: function isNodeDraggable(node, path) { var store = this.treesStore.store; var allNodes = this.getAllNodesByPath(path); allNodes.unshift(this.rootNode); var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.iterateAll)(allNodes, { reverse: true })[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var _step$value = _step.value, _node = _step$value.value, index = _step$value.index; var currentPath = path.slice(0, index + 1); var draggableOpt = _node.$draggable !== undefined ? _node.$draggable : this.eachDraggable; var draggable = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.resolveValueOrGettter)(draggableOpt, [currentPath, this, store]); if (draggable === undefined) { continue; } else { return draggable; } } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } return true; }, isNodeDroppable: function isNodeDroppable(node, path) { var store = this.treesStore.store; var allNodes = this.getAllNodesByPath(path); allNodes.unshift(this.rootNode); var droppableFinal, resolved; var _iteratorNormalCompletion2 = true; var _didIteratorError2 = false; var _iteratorError2 = undefined; try { for (var _iterator2 = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.iterateAll)(allNodes, { reverse: true })[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { var _step2$value = _step2.value, _node2 = _step2$value.value, index = _step2$value.index; var currentPath = path.slice(0, index + 1); var droppableOpt = _node2.$droppable !== undefined ? _node2.$droppable : this.eachDroppable; var droppable = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.resolveValueOrGettter)(droppableOpt, [currentPath, this, store]); if (droppable === undefined) { continue; } else { droppableFinal = droppable; resolved = true; break; } } } catch (err) { _didIteratorError2 = true; _iteratorError2 = err; } finally { try { if (!_iteratorNormalCompletion2 && _iterator2.return != null) { _iterator2.return(); } } finally { if (_didIteratorError2) { throw _iteratorError2; } } } if (!resolved) { droppableFinal = true; } if (this._internal_hook_isNodeDroppable) { return this._internal_hook_isNodeDroppable({ droppableFinal: droppableFinal, node: node, path: path, store: store }); } return droppableFinal; }, // override getPathByBranchEl: function getPathByBranchEl(branchEl) { var getAttrPath = function getAttrPath(el) { var pathStr = el.getAttribute('data-tree-node-path'); if (pathStr) { return pathStr.split(',').map(function (v) { return parseInt(v); }); } }; var path = getAttrPath(branchEl); if (path) { return path; } // placeholder path var parentPath; (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.findParent)(branchEl, function (el) { if ((0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(el, 'tree-root')) { parentPath = []; return true; } if ((0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(el, 'tree-branch')) { parentPath = getAttrPath(el); return true; } }); var index = 0; var _iteratorNormalCompletion3 = true; var _didIteratorError3 = false; var _iteratorError3 = undefined; try { for (var _iterator3 = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.iterateAll)(branchEl.parentElement.children)[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { var _step3$value = _step3.value, el = _step3$value.value, index2 = _step3$value.index; if ((0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(el, 'tree-branch') || (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.hasClass)(el, 'tree-placeholder')) { if (el === branchEl) { break; } index++; } } } catch (err) { _didIteratorError3 = true; _iteratorError3 = err; } finally { try { if (!_iteratorNormalCompletion3 && _iterator3.return != null) { _iterator3.return(); } } finally { if (_didIteratorError3) { throw _iteratorError3; } } } return [].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__.default)(parentPath), [index]); } }, // created() {}, mounted: function mounted() { var _this = this; var options = this._draggableOptions = { indent: this.indent, triggerClass: this.triggerClass, unfoldWhenDragover: this.unfoldWhenDragover, unfoldWhenDragoverDelay: this.unfoldWhenDragoverDelay, draggingNodePositionMode: this.draggingNodePositionMode, cloneWhenDrag: this.cloneWhenDrag, treeClass: 'he-tree', rootClass: 'tree-root', childrenClass: 'tree-children', branchClass: 'tree-branch', nodeClass: 'tree-node', nodeBackClass: 'tree-node-back', placeholderClass: 'tree-placeholder', placeholderNodeBackClass: 'tree-placeholder-node-back', placeholderNodeClass: 'tree-placeholder-node', draggingClass: 'dragging', placeholderId: "he_tree_drag_placeholder", ifNodeFolded: function ifNodeFolded(branchEl, store) { var targetTree = store.targetTree; var node = targetTree.getNodeByBranchEl(branchEl); return node.$folded; }, isTargetTreeRootDroppable: function isTargetTreeRootDroppable(store) { var droppable = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.resolveValueOrGettter)(store.targetTree.rootNode.$droppable, [store.targetTree, store]); if (droppable !== undefined) { return droppable; } return true; }, unfoldTargetNodeByEl: function unfoldTargetNodeByEl() { return _this._Draggable_unfoldTargetNodeByEl.apply(_this, arguments); }, isNodeParentDroppable: function isNodeParentDroppable(branchEl, treeEl) { var tree = _this.getTreeVmByTreeEl(treeEl); var path = tree.getPathByBranchEl(branchEl); var parentPath = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.arrayWithoutEnd)(path, 1); var parent = tree.getNodeByPath(parentPath); return tree.isNodeDroppable(parent, parentPath); }, isNodeDroppable: function isNodeDroppable(branchEl, treeEl) { var tree = _this.getTreeVmByTreeEl(treeEl); var path = tree.getPathByBranchEl(branchEl); var node = tree.getNodeByPath(path); return tree.isNodeDroppable(node, path); }, _findClosestDroppablePosition: function _findClosestDroppablePosition(branchEl, treeEl) { var tree = _this.getTreeVmByTreeEl(treeEl); var path = tree.getPathByBranchEl(branchEl); var findPath = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.arrayWithoutEnd)(path, 1); var cur = path; var _iteratorNormalCompletion4 = true; var _didIteratorError4 = false; var _iteratorError4 = undefined; try { for (var _iterator4 = tree.iteratePath(findPath, { reverse: true })[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) { var _step4$value = _step4.value, node = _step4$value.node, _path = _step4$value.path; if (tree.isNodeDroppable(node, _path)) { return tree.getBranchElByPath(cur); } else { cur = _path; } } } catch (err) { _didIteratorError4 = true; _iteratorError4 = err; } finally { try { if (!_iteratorNormalCompletion4 && _iterator4.return != null) { _iterator4.return(); } } finally { if (_didIteratorError4) { throw _iteratorError4; } } } if (tree.isNodeDroppable(_this.rootNode, [])) { return tree.getBranchElByPath(cur); } }, afterPlaceholderCreated: function afterPlaceholderCreated(store) { store.startTree.$emit('afterPlaceholderCreated', store); }, getPathByBranchEl: function getPathByBranchEl(branchEl) { return _this.getPathByBranchEl(branchEl); }, beforeDrag: function beforeDrag(store) { _this.treesStore.store = store; store.startTree = _this.getTreeVmByTreeEl(store.startTreeEl); var draggable = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.resolveValueOrGettter)(store.startTree.draggable, [store.startTree, store]); if (!draggable) { return false; } }, ondrag: function ondrag(store) { var startTree = store.startTree, dragBranchEl = store.dragBranchEl, startPath = store.startPath; var path = startTree.getPathByBranchEl(dragBranchEl); store.dragNode = startTree.getNodeByPath(path); if (_this.cloneWhenDrag) { store.dragNode = cloneTreeData(store.dragNode); } if (!startTree.isNodeDraggable(store.dragNode, path)) { return false; } if (startTree.hasHook('ondragstart') && startTree.executeHook('ondragstart', [startTree, store]) === false) { return false; } store.startTree.$emit('drag', store); _this.$root.$emit('he-tree-drag', store); }, filterTargetTree: function filterTargetTree(targetTreeEl, store) { var targetTree = _this.getTreeVmByTreeEl(targetTreeEl); var startTree = store.startTree; if (startTree !== targetTree) { if (_this._internal_hook_filterTargetTree) { if (_this._internal_hook_filterTargetTree(targetTree, store) === false) { return false; } } else { return false; } } var targetTreeDroppable = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.resolveValueOrGettter)(targetTree.droppable, [targetTree, store]); if (!targetTreeDroppable) { return false; } store.targetTree = targetTree; if (!(0,helper_js__WEBPACK_IMPORTED_MODULE_2__.resolveValueOrGettter)(store.startTree === store.targetTree) && (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.resolveValueOrGettter)(_this._Draggable_unfoldTargetNode, [false, _this.treeData]) !== _this.rootNode.children) { return false; } }, beforeDrop: function beforeDrop(pathChanged, store) { var targetTree = store.targetTree; if (targetTree.hasHook('ondragend') && targetTree.executeHook('ondragend', [targetTree, store]) === false) { return false; } targetTree.$emit('drop', store); _this.$root.$emit('he-tree-drop', store); }, ondrop: function ondrop(store, t) { if (store.pathChanged) { var startTree = store.startTree, targetTree = store.targetTree, startPath = store.startPath, targetPath = store.targetPath, dragNode = store.dragNode; if (_this.cloneWhenDrag !== true) { // remove from start position var startParentPath = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.arrayWithoutEnd)(startPath, 1); var startParent = startTree.getNodeByPath(startParentPath); var startSiblings = startParentPath.length === 0 ? startTree.treeData : startParent.children; var startIndex = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.arrayLast)(startPath); startSiblings.splice(startIndex, 1); // update targetPath if (startTree === targetTree) { if (startPath.length <= targetPath.length) { var lenNoEnd = startPath.length - 1; var same = true; for (var i = 0; i < lenNoEnd; i++) { var s = startPath[i]; var _t = targetPath[i]; if (s !== _t) { same = false; break; } } if (same) { var endIndex = startPath.length - 1; if (startPath[endIndex] < targetPath[endIndex]) { targetPath[endIndex] -= 1; } } } } } // insert to target position var targetParentPath = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.arrayWithoutEnd)(targetPath, 1); var targetParent = targetTree.getNodeByPath(targetParentPath); var targetSiblings; if (targetParentPath.length === 0) { targetSiblings = targetTree.treeData; } else { if (!targetParent.children) { _this.$set(targetParent, 'children', []); } targetSiblings = targetParent.children; } var targetIndex = (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.arrayLast)(targetPath); targetSiblings.splice(targetIndex, 0, dragNode); // emit event startTree.$emit('input', startTree.treeData); startTree.$emit('change'); if (targetTree !== startTree) { targetTree.$emit('input', targetTree.treeData); targetTree.$emit('change'); } return new Promise(function (resolve, reject) { targetTree.$nextTick(function () { resolve(); }); }); } } }; var _makeTreeDraggable_obj = this._makeTreeDraggable_obj = makeTreeDraggable(this.$el, options); // watch props and update options ['indent', 'triggerClass', 'unfoldWhenDragover', 'unfoldWhenDragoverDelay', 'draggingNodePositionMode', 'cloneWhenDrag'].forEach(function (name) { _this.$watch(name, function (value) { _makeTreeDraggable_obj.options[name] = value; _makeTreeDraggable_obj.optionsUpdated(); }); }); } }; /* script */ var __vue_script__$1 = script; /* template */ /* style */ var __vue_inject_styles__$1 = undefined; /* scoped */ var __vue_scope_id__$1 = undefined; /* module identifier */ var __vue_module_identifier__$1 = undefined; /* functional template */ var __vue_is_functional_template__$1 = undefined; /* style inject */ /* style inject SSR */ /* style inject shadow dom */ var __vue_component__$1 = (0,vue_runtime_helpers_dist_normalize_component_mjs__WEBPACK_IMPORTED_MODULE_4__.default)({}, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined); /***/ }), /***/ "./node_modules/helper-js/dist/helper-js.esm.js": /*!******************************************************!*\ !*** ./node_modules/helper-js/dist/helper-js.esm.js ***! \******************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "Cache": () => (/* binding */ Cache), /* harmony export */ "CrossWindow": () => (/* binding */ CrossWindow), /* harmony export */ "CrossWindowEventProcessor": () => (/* binding */ CrossWindowEventProcessor), /* harmony export */ "EventProcessor": () => (/* binding */ EventProcessor), /* harmony export */ "TreeData": () => (/* binding */ TreeData), /* harmony export */ "URLHelper": () => (/* binding */ URLHelper), /* harmony export */ "addClass": () => (/* binding */ addClass), /* harmony export */ "addDate": () => (/* binding */ addDate), /* harmony export */ "appendTo": () => (/* binding */ appendTo), /* harmony export */ "arrayAt": () => (/* binding */ arrayAt), /* harmony export */ "arrayDiff": () => (/* binding */ arrayDiff), /* harmony export */ "arrayDistinct": () => (/* binding */ arrayDistinct), /* harmony export */ "arrayFirst": () => (/* binding */ arrayFirst), /* harmony export */ "arrayFlat": () => (/* binding */ arrayFlat), /* harmony export */ "arrayGet": () => (/* binding */ arrayGet), /* harmony export */ "arrayLast": () => (/* binding */ arrayLast), /* harmony export */ "arrayRemove": () => (/* binding */ arrayRemove), /* harmony export */ "arrayRemoveBySortedIndexes": () => (/* binding */ arrayRemoveBySortedIndexes), /* harmony export */ "arraySibling": () => (/* binding */ arraySibling), /* harmony export */ "arrayWithoutEnd": () => (/* binding */ arrayWithoutEnd), /* harmony export */ "assignIfDifferent": () => (/* binding */ assignIfDifferent), /* harmony export */ "attachCache": () => (/* binding */ attachCache), /* harmony export */ "backupAttr": () => (/* binding */ backupAttr), /* harmony export */ "binarySearch": () => (/* binding */ binarySearch), /* harmony export */ "camelCase": () => (/* binding */ camelCase), /* harmony export */ "camelToWords": () => (/* binding */ camelToWords), /* harmony export */ "cloneDate": () => (/* binding */ cloneDate), /* harmony export */ "cloneObj": () => (/* binding */ cloneObj), /* harmony export */ "copyTextToClipboard": () => (/* binding */ copyTextToClipboard), /* harmony export */ "createElementFromHTML": () => (/* binding */ createElementFromHTML), /* harmony export */ "debounce": () => (/* binding */ debounce), /* harmony export */ "debounceImmediate": () => (/* binding */ debounceImmediate), /* harmony export */ "debounceTrailing": () => (/* binding */ debounceTrailing), /* harmony export */ "depthFirstSearch": () => (/* binding */ depthFirstSearch), /* harmony export */ "elementsFromPoint": () => (/* binding */ elementsFromPoint), /* harmony export */ "empty": () => (/* binding */ empty), /* harmony export */ "executeOnceInScopeByName": () => (/* binding */ executeOnceInScopeByName), /* harmony export */ "executePromiseGetters": () => (/* binding */ executePromiseGetters), /* harmony export */ "executeWithCount": () => (/* binding */ executeWithCount), /* harmony export */ "findNodeList": () => (/* binding */ findNodeList), /* harmony export */ "findNodeListReverse": () => (/* binding */ findNodeListReverse), /* harmony export */ "findParent": () => (/* binding */ findParent), /* harmony export */ "forAll": () => (/* binding */ forAll), /* harmony export */ "getBorder": () => (/* binding */ getBorder), /* harmony export */ "getBoundingClientRect": () => (/* binding */ getBoundingClientRect), /* harmony export */ "getCalendar": () => (/* binding */ getCalendar), /* harmony export */ "getCss3Prefix": () => (/* binding */ getCss3Prefix), /* harmony export */ "getElSize": () => (/* binding */ getElSize), /* harmony export */ "getElSizeEvenInvisible": () => (/* binding */ getElSizeEvenInvisible), /* harmony export */ "getImageSizeByUrl": () => (/* binding */ getImageSizeByUrl), /* harmony export */ "getLocalStorage2": () => (/* binding */ getLocalStorage2), /* harmony export */ "getMonthEnd": () => (/* binding */ getMonthEnd), /* harmony export */ "getMonthStart": () => (/* binding */ getMonthStart), /* harmony export */ "getOffset": () => (/* binding */ getOffset), /* harmony export */ "getOffsetParent": () => (/* binding */ getOffsetParent), /* harmony export */ "getOuterAttachedHeight": () => (/* binding */ getOuterAttachedHeight), /* harmony export */ "getOuterAttachedWidth": () => (/* binding */ getOuterAttachedWidth), /* harmony export */ "getPosition": () => (/* binding */ getPosition), /* harmony export */ "getPositionFromOffset": () => (/* binding */ getPositionFromOffset), /* harmony export */ "getScroll": () => (/* binding */ getScroll), /* harmony export */ "getSessionStorage2": () => (/* binding */ getSessionStorage2), /* harmony export */ "getUrlParam": () => (/* binding */ getUrlParam), /* harmony export */ "getUserLanguage": () => (/* binding */ getUserLanguage), /* harmony export */ "getViewportPosition": () => (/* binding */ getViewportPosition), /* harmony export */ "glb": () => (/* binding */ glb), /* harmony export */ "groupArray": () => (/* binding */ groupArray), /* harmony export */ "hasClass": () => (/* binding */ hasClass), /* harmony export */ "insertAfter": () => (/* binding */ insertAfter), /* harmony export */ "insertBefore": () => (/* binding */ insertBefore), /* harmony export */ "isArray": () => (/* binding */ isArray), /* harmony export */ "isBool": () => (/* binding */ isBool), /* harmony export */ "isDescendantOf": () => (/* binding */ isDescendantOf), /* harmony export */ "isDocumentExisted": () => (/* binding */ isDocumentExisted), /* harmony export */ "isFunction": () => (/* binding */ isFunction), /* harmony export */ "isIE": () => (/* binding */ isIE), /* harmony export */ "isIsoFormat": () => (/* binding */ isIsoFormat), /* harmony export */ "isNode": () => (/* binding */ isNode), /* harmony export */ "isNumber": () => (/* binding */ isNumber), /* harmony export */ "isNumeric": () => (/* binding */ isNumeric), /* harmony export */ "isObject": () => (/* binding */ isObject), /* harmony export */ "isOffsetInEl": () => (/* binding */ isOffsetInEl), /* harmony export */ "isPromise": () => (/* binding */ isPromise), /* harmony export */ "isString": () => (/* binding */ isString), /* harmony export */ "isWindowDefined": () => (/* binding */ isWindowDefined), /* harmony export */ "isset": () => (/* binding */ isset), /* harmony export */ "iterateALL": () => (/* binding */ iterateALL), /* harmony export */ "iterateAll": () => (/* binding */ iterateAll), /* harmony export */ "joinFunctionsByNext": () => (/* binding */ joinFunctionsByNext), /* harmony export */ "joinFunctionsByResult": () => (/* binding */ joinFunctionsByResult), /* harmony export */ "joinMethods": () => (/* binding */ joinMethods), /* harmony export */ "jqFixedSize": () => (/* binding */ jqFixedSize), /* harmony export */ "jqMakeCarousel": () => (/* binding */ jqMakeCarousel), /* harmony export */ "kebabCase": () => (/* binding */ kebabCase), /* harmony export */ "makeStorageHelper": () => (/* binding */ makeStorageHelper), /* harmony export */ "mapObjectTree": () => (/* binding */ mapObjectTree), /* harmony export */ "mapObjects": () => (/* binding */ mapObjects), /* harmony export */ "max": () => (/* binding */ max), /* harmony export */ "min": () => (/* binding */ min), /* harmony export */ "newArrayRemoveAt": () => (/* binding */ newArrayRemoveAt), /* harmony export */ "numPad": () => (/* binding */ numPad), /* harmony export */ "numRand": () => (/* binding */ numRand), /* harmony export */ "objectExcept": () => (/* binding */ objectExcept), /* harmony export */ "objectGet": () => (/* binding */ objectGet), /* harmony export */ "objectMap": () => (/* binding */ objectMap), /* harmony export */ "objectMerge": () => (/* binding */ objectMerge), /* harmony export */ "objectOnly": () => (/* binding */ objectOnly), /* harmony export */ "objectSet": () => (/* binding */ objectSet), /* harmony export */ "offDOM": () => (/* binding */ offDOM), /* harmony export */ "offsetToViewportPosition": () => (/* binding */ offsetToViewportPosition), /* harmony export */ "onDOM": () => (/* binding */ onDOM), /* harmony export */ "onDOMMany": () => (/* binding */ onDOMMany), /* harmony export */ "onQuickKeydown": () => (/* binding */ onQuickKeydown), /* harmony export */ "openCenterWindow": () => (/* binding */ openCenterWindow), /* harmony export */ "openWindow": () => (/* binding */ openWindow), /* harmony export */ "pairRows": () => (/* binding */ pairRows), /* harmony export */ "parseISO": () => (/* binding */ parseISO), /* harmony export */ "prependTo": () => (/* binding */ prependTo), /* harmony export */ "promiseTimeout": () => (/* binding */ promiseTimeout), /* harmony export */ "removeClass": () => (/* binding */ removeClass), /* harmony export */ "removeEl": () => (/* binding */ removeEl), /* harmony export */ "replaceMultiple": () => (/* binding */ replaceMultiple), /* harmony export */ "resolveArgsByType": () => (/* binding */ resolveArgsByType), /* harmony export */ "resolveValueOrGettter": () => (/* binding */ resolveValueOrGettter), /* harmony export */ "restoreAttr": () => (/* binding */ restoreAttr), /* harmony export */ "retry": () => (/* binding */ retry), /* harmony export */ "setElChildByIndex": () => (/* binding */ setElChildByIndex), /* harmony export */ "snakeCase": () => (/* binding */ snakeCase), /* harmony export */ "splitArray": () => (/* binding */ splitArray), /* harmony export */ "store": () => (/* binding */ store), /* harmony export */ "store_executeOnceInScopeByName": () => (/* binding */ store_executeOnceInScopeByName), /* harmony export */ "strRand": () => (/* binding */ strRand), /* harmony export */ "studlyCase": () => (/* binding */ studlyCase), /* harmony export */ "titleCase": () => (/* binding */ titleCase), /* harmony export */ "toArrayIfNot": () => (/* binding */ toArrayIfNot), /* harmony export */ "uniqueId": () => (/* binding */ uniqueId), /* harmony export */ "unset": () => (/* binding */ unset), /* harmony export */ "viewportPositionToOffset": () => (/* binding */ viewportPositionToOffset), /* harmony export */ "waitFor": () => (/* binding */ waitFor), /* harmony export */ "waitTime": () => (/* binding */ waitTime), /* harmony export */ "walkTreeData": () => (/* binding */ walkTreeData), /* harmony export */ "watchChange": () => (/* binding */ watchChange), /* harmony export */ "windowLoaded": () => (/* binding */ windowLoaded) /* harmony export */ }); /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"); /* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/get */ "./node_modules/@babel/runtime/helpers/esm/get.js"); /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js"); /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"); /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"); /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js"); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"); /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_10__); /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"); /*! * helper-js v1.4.38 * (c) phphe <phphe@outlook.com> (https://github.com/phphe) * Homepage: undefined * Released under the MIT License. */ function _createSuper(Derived) { return function () { var Super = (0,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__.default)(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = (0,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0,_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__.default)(this, result); }; } function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } var _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_10___default().mark(iterateAll); function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } // local store var store = {}; // get global // `this` !== global or window because of build tool function glb() { if (store.glb) { return store.glb; } else { // resolve global var t; try { t = __webpack_require__.g; } catch (e) { t = window; } store.glb = t; return t; } } function isDocumentExisted() { try { var t = document; } catch (e) { return false; } return true; } // is 各种判断 function isset(v) { return typeof v !== 'undefined'; } function isArray(v) { return Object.prototype.toString.call(v) === '[object Array]'; } function isBool(v) { return Object.prototype.toString.call(v) === '[object Boolean]'; } function isNumber(v) { return Object.prototype.toString.call(v) === '[object Number]'; } function isNumeric(v) { return isFinite(v) && !isNaN(parseFloat(v)); } function isString(v) { return Object.prototype.toString.call(v) === '[object String]'; } function isObject(v) { return Object.prototype.toString.call(v) === '[object Object]'; } function isFunction(v) { return typeof v === 'function'; } function isPromise(v) { return Object.prototype.toString.call(v) === '[object Promise]'; } function empty(v) { if (v == null) { return true; } else if (v.length != null) { return v.length === 0; } else if (isBool(v)) { return false; } else if (isNumber(v)) { return isNaN(v); } else if (isObject(v)) { return Object.keys(v).length === 0; } } // num function numRand(min, max) { if (arguments.length === 1) { max = min; min = 0; } return Math.floor(Math.random() * (max - min + 1) + min); } function numPad(num, n) { var len = num.toString().length; while (len < n) { num = '0' + num; len++; } return num; } function min(n, min) { return n < min ? min : n; } function max(n, max) { return n < max ? n : max; } // str 字符 function studlyCase(str) { return str && str[0].toUpperCase() + str.substr(1); } function kebabCase(str) { return str.replace(/ /g, '-').replace(/_/g, '-').replace(/([A-Z])/g, '-$1').replace(/--+/g, '-').replace(/^-|-$|/g, '').toLowerCase(); } function snakeCase(str) { return kebabCase(str).replace(/-/g, '_'); } function camelCase(str) { var temp = str.toString().split(/[-_]/); for (var i = 1; i < temp.length; i++) { temp[i] = studlyCase(temp[i]); } return temp.join(''); } function camelToWords(str) { return str.toString().trim().split(/(?=[A-Z])/); } function titleCase(str) { return camelToWords(studlyCase(camelCase(str))).join(' ').replace(/\bid\b/ig, 'ID'); } function strRand() { var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 8; var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; var r = ''; var seeds = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; for (var i = 0; i < len; i++) { r += seeds[numRand(seeds.length - 1)]; } return prefix + r; } function replaceMultiple(mapObj, str) { var reg = new RegExp(Object.keys(mapObj).join('|'), 'g'); return str.replace(reg, function (matchedKey) { return mapObj[matchedKey]; }); } // array function arrayRemove(arr, v) { var index; var count = 0; while ((index = arr.indexOf(v)) > -1) { arr.splice(index, 1); count++; } return count; } function arrayRemoveBySortedIndexes(arr, sortedIndexes) { for (var i = sortedIndexes.length - 1; i >= 0; i--) { var index = sortedIndexes[i]; arr.splice(index, 1); } } function newArrayRemoveAt(arr, indexes) { indexes = toArrayIfNot(indexes); var mapping = {}; var _iterator = _createForOfIteratorHelper(indexes), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var index = _step.value; mapping[index] = true; } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } var newArr = []; var len = arr.length; for (var i = 0; i < len; i++) { if (!mapping[i]) { newArr.push(arr[i]); } } return newArr; } function arrayAt(arr, n) { return arr[n >= 0 ? n : arr.length + n]; } function arrayFirst(arr) { return arr[0]; } function arrayLast(arr) { return arr[arr.length - 1]; } function arrayDiff(arr1, arr2) { var len = arr1.length; var arr = []; while (len--) { if (arr2.indexOf(arr1[len]) < 0) { arr.push(arr1[len]); } } return arr; } // offset can be many function arraySibling(arr, item, offset) { var index = arr.indexOf(item); if (index === -1) { throw 'item is not in array'; } if (isArray(offset)) { return offset.map(function (v) { return arr[index + v]; }); } return arr[index + offset]; } function toArrayIfNot(arrOrNot) { return isArray(arrOrNot) ? arrOrNot : [arrOrNot]; } // n can be getter(number of times) // n可以是方法, 参数1是第几次分块 function splitArray(arr, n) { var r = []; if (isFunction(n)) { var getChunkLength = n; var times = 1; var i = 0; while (i < arr.length) { var _n = getChunkLength(times); var end = i + _n; r.push(arr.slice(i, end)); i = end; times++; } } else { var _i = 0; while (_i < arr.length) { var _end = _i + n; r.push(arr.slice(_i, _end)); _i = _end; } } return r; } function groupArray(arr, getMark) { var groups = new Map(); arr.forEach(function (v) { var mark = getMark(v); if (!groups.has(mark)) { groups.set(mark, []); } groups.get(mark).push(v); }); var r = []; groups.forEach(function (value, key) { r.push([key, value]); }); return r; } function arrayDistinct(arr) { if (glb().Set) { return (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_11__.default)(new Set(arr)); } else { return arr.filter(function (v, i, a) { return a.indexOf(v) === i; }); } } function arrayGet(arr, index, endIndex) { if (index < 0) { index += arr.length; } if (endIndex == null) { return arr[index]; } else { if (endIndex < 0) { endIndex += arr.length; } return arr.slice(index, endIndex - index + 1); } } function arrayWithoutEnd(arr, len) { return arr.slice(0, arr.length - len); } function arrayFlat(arr) { var depth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10; var r = []; var rec = function rec(arr, curentDepth) { var _iterator2 = _createForOfIteratorHelper(arr), _step2; try { for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { var item = _step2.value; if (isArray(item) && curentDepth < depth) { rec(item, curentDepth + 1); } else { r.push(item); } } } catch (err) { _iterator2.e(err); } finally { _iterator2.f(); } }; rec(arr, 0); return r; } // object function assignIfDifferent(obj, key, val) { if (obj[key] !== val) { obj[key] = val; } } function objectMerge(o1, o2) { for (var k in o2) { if (!o1.hasOwnProperty(k)) { o1[k] = o2[k]; } else if (isObject(o1[k]) && isObject(o2[k])) { Object.assign(o1[k], o2[k]); } else { o1[k] = o2[k]; } } return o1; } function objectMap(obj, func) { var r = {}; for (var key in obj) { r[key] = func(obj[key], key, obj); } return r; } function objectOnly(obj, keys) { var r = {}; for (var key in obj) { if (keys.indexOf(key) > -1) { r[key] = obj[key]; } } return r; } function objectExcept(obj, keys) { var r = {}; for (var key in obj) { if (keys.indexOf(key) === -1) { r[key] = obj[key]; } } return r; } // loop for all type // TODO change reverse to opt in next version function forAll(val, handler, reverse) { if (!reverse) { if (isArray(val) || isString(val) || val.hasOwnProperty('length')) { for (var i = 0; i < val.length; i++) { if (handler(val[i], i) === false) { break; } } } else if (isObject(val)) { for (var _i2 = 0, _Object$keys = Object.keys(val); _i2 < _Object$keys.length; _i2++) { var key = _Object$keys[_i2]; if (handler(val[key], key) === false) { break; } } } else if (Number.isInteger(val)) { for (var _i3 = 0; _i3 < val; _i3++) { if (handler(_i3, _i3) === false) { break; } } } } else { if (isArray(val) || isString(val) || val.hasOwnProperty('length')) { for (var _i4 = val.length - 1; _i4 >= 0; _i4--) { if (handler(val[_i4], _i4) === false) { break; } } } else if (isObject(val)) { var keys = Object.keys(val); keys.reverse(); for (var _i5 = 0, _keys = keys; _i5 < _keys.length; _i5++) { var _key = _keys[_i5]; if (handler(val[_key], _key) === false) { break; } } } else if (Number.isInteger(val)) { for (var _i6 = val - 1; _i6 >= 0; _i6--) { if (handler(_i6, _i6) === false) { break; } } } } } // loop for Array, Object, NodeList, String function iterateAll(val) { var opt, i, info, _i7, _Object$keys2, key, _info, _i8, _info2, keys, _i9, _keys2, _key2, _info3, _args = arguments; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_10___default().wrap(function iterateAll$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: opt = _args.length > 1 && _args[1] !== undefined ? _args[1] : {}; if (opt.reverse) { _context.next = 30; break; } if (!(val.length != null)) { _context.next = 14; break; } i = 0; case 4: if (!(i < val.length)) { _context.next = 12; break; } info = { value: val[i], index: i }; if (!(!opt.exclude || !opt.exclude(info))) { _context.next = 9; break; } _context.next = 9; return info; case 9: i++; _context.next = 4; break; case 12: _context.next = 28; break; case 14: if (!isObject(val)) { _context.next = 27; break; } _i7 = 0, _Object$keys2 = Object.keys(val); case 16: if (!(_i7 < _Object$keys2.length)) { _context.next = 25; break; } key = _Object$keys2[_i7]; _info = { value: val[key], key: key }; if (!(!opt.exclude || !opt.exclude(_info))) { _context.next = 22; break; } _context.next = 22; return _info; case 22: _i7++; _context.next = 16; break; case 25: _context.next = 28; break; case 27: throw 'Unsupported type'; case 28: _context.next = 58; break; case 30: if (!(val.length != null)) { _context.next = 42; break; } _i8 = val.length - 1; case 32: if (!(_i8 >= 0)) { _context.next = 40; break; } _info2 = { value: val[_i8], index: _i8 }; if (!(!opt.exclude || !opt.exclude(_info2))) { _context.next = 37; break; } _context.next = 37; return _info2; case 37: _i8--; _context.next = 32; break; case 40: _context.next = 58; break; case 42: if (!isObject(val)) { _context.next = 57; break; } keys = Object.keys(val); keys.reverse(); _i9 = 0, _keys2 = keys; case 46: if (!(_i9 < _keys2.length)) { _context.next = 55; break; } _key2 = _keys2[_i9]; _info3 = { value: val[_key2], key: _key2 }; if (!(!opt.exclude || !opt.exclude(_info3))) { _context.next = 52; break; } _context.next = 52; return _info3; case 52: _i9++; _context.next = 46; break; case 55: _context.next = 58; break; case 57: throw 'Unsupported type'; case 58: case "end": return _context.stop(); } } }, _marked); } // Deprecated in next version var iterateALL = iterateAll; // source: http://stackoverflow.com/questions/8817394/javascript-get-deep-value-from-object-by-passing-path-to-it-as-string function objectGet(obj, path, throwError) { var paths = isArray(path) ? path : path.split('.'); var current = obj; try { var _iterator3 = _createForOfIteratorHelper(paths), _step3; try { for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) { var key = _step3.value; current = current[key]; } } catch (err) { _iterator3.e(err); } finally { _iterator3.f(); } } catch (e) { if (throwError) { throw "Path does not exist"; } } return current; } function objectSet(obj, path, value) { var paths = isArray(path) ? path : path.split('.'); var lastKey = arrayLast(paths); var parent = objectGet(obj, paths.slice(0, paths.length - 1)); if (!parent) { throw "Path does not exist"; } parent[lastKey] = value; } function unset(obj, prop) { obj[prop] = undefined; try { delete obj[prop]; } catch (e) {} } // exclude: array or function function cloneObj(obj, exclude) { var type = (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_9__.default)(obj); switch (type) { case 'undefined': case 'boolean': case 'nuber': case 'string': case 'function': return obj; case 'object': if (obj === null) { // null is object return obj; } var r; if (isArray(obj)) { r = []; var _iterator4 = _createForOfIteratorHelper(obj), _step4; try { for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) { var item = _step4.value; r.push(cloneObj(item, exclude)); } } catch (err) { _iterator4.e(err); } finally { _iterator4.f(); } } else { r = {}; for (var _i10 = 0, _Object$keys3 = Object.keys(obj); _i10 < _Object$keys3.length; _i10++) { var key = _Object$keys3[_i10]; if (!exclude || isArray(exclude) && !exclude.includes(key) || !exclude(key, obj[key], obj)) { r[key] = cloneObj(obj[key], exclude); } } } return r; default: return obj; } } /* return cloned obj handler(value, key, parent, newParent) handler can return null or an object. null: don't change anything object{ key: false, // delete. Deprecated, this will be removed in future, please use `delete` instead of it. key: new key, // use a new key instead of old key. if key == null, the old key will be detected delete, value, // new value. if value not gived, the old value will be detected skip, // skip children stop, } {key: false}: delete {value}: change value {key, value}. change key and value limit: to prevent circular reference. */ function mapObjectTree(obj, handler) { var limit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10000; var r; var count = 0; var stack = [{ value: obj }]; var _loop2 = function _loop2() { if (count >= limit) { throw "mapObjectTree: limit(".concat(limit, ") reached, object may has circular reference"); } count++; var _stack$shift = stack.shift(), value = _stack$shift.value, key = _stack$shift.key, parent = _stack$shift.parent, newParent = _stack$shift.newParent; var t = handler(value, key, parent, newParent); var assign = function assign(value, key, canPush) { if (isArray(value)) { value = []; } else if (isObject(value)) { value = {}; } if (parent) { if (isArray(newParent) && canPush) { newParent.push(value); } else { newParent[key] = value; } } else { r = value; } // value may changed return value; }; var newVal = void 0, val = void 0, toDelete = void 0, stop = void 0, skip = void 0; if (!t) { // no change val = value; newVal = assign(value, key); } else { var key2 = t.key, _value = t.value; val = _value; if (t.delete || key2 === false) { // del toDelete = true; } else if (key2 == null) { // don't change key newVal = assign(_value, key, true); } else if (t.hasOwnProperty('value')) { newVal = assign(_value, key2); } stop = t.stop; skip = t.skip; } if (toDelete) { return "continue"; } if (skip) { return "continue"; } if (stop) { return "break"; } if (isArray(val)) { var len = val.length; for (var i = 0; i < len; i++) { stack.push({ value: val[i], key: i, parent: val, newParent: newVal }); } } else if (isObject(val)) { Object.keys(val).forEach(function (key) { stack.push({ value: val[key], key: key, parent: val, newParent: newVal }); }); } }; _loop: while (stack.length > 0) { var _ret = _loop2(); switch (_ret) { case "continue": continue; case "break": break _loop; } } return r; } // arr, idKey/getId function mapObjects(arr, idKey) { var r = {}; var len = arr.length; for (var i = 0; i < len; i++) { var item = arr[i]; var id = isFunction(idKey) ? idKey(item, i) : item[idKey]; r[id] = item; } return r; } // function pairRows(rows1, rows2, key1, key2) { if (!key2) { key2 = key1; } var map = mapObjects(rows2, key2); return rows1.map(function (row1) { return [row1, map[row1[key1]]]; }); } // 深度优先遍历 // Depth-First-Search // TODO change args in next version function depthFirstSearch(obj, handler) { var childrenKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'children'; var reverse = arguments.length > 3 ? arguments[3] : undefined; var rootChildren = isArray(obj) ? obj : [obj]; // var StopException = function StopException() { (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8__.default)(this, StopException); }; var func = function func(children, parent, parentPath) { if (reverse) { children = children.slice(); children.reverse(); } var len = children.length; for (var i = 0; i < len; i++) { var item = children[i]; var index = reverse ? len - i - 1 : i; var path = parentPath ? [].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_11__.default)(parentPath), [index]) : []; // TODO change args in next version var r = handler(item, index, parent, path); if (r === false) { // stop throw new StopException(); } else if (r === 'skip children') { continue; } else if (r === 'skip siblings') { break; } if (item[childrenKey] != null) { func(item[childrenKey], item, path); } } }; try { func(rootChildren, null, isArray(obj) ? [] : null); } catch (e) { if (e instanceof StopException) ; else { throw e; } } } var walkTreeData = depthFirstSearch; var TreeData = /*#__PURE__*/function () { // data = null; function TreeData(data) { (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8__.default)(this, TreeData); this.childrenKey = 'children'; this.data = data; } (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__.default)(TreeData, [{ key: "iteratePath", value: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_10___default().mark(function iteratePath(path) { var opt, childrenKey, rootChildren, prevPath, prevChildren, _iterator5, _step5, index, currentPath, currentNode, list, _iterator6, _step6, _step6$value, _path, node, _args2 = arguments; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_10___default().wrap(function iteratePath$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: opt = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {}; childrenKey = this.childrenKey, rootChildren = this.rootChildren; if (opt.reverse) { _context2.next = 29; break; } prevPath = []; prevChildren = rootChildren; _iterator5 = _createForOfIteratorHelper(path); _context2.prev = 6; _iterator5.s(); case 8: if ((_step5 = _iterator5.n()).done) { _context2.next = 19; break; } index = _step5.value; currentPath = [].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_11__.default)(prevPath), [index]); currentNode = prevChildren[index]; _context2.next = 14; return { path: currentPath, node: currentNode }; case 14: prevPath = currentPath; prevChildren = currentNode[childrenKey]; case 17: _context2.next = 8; break; case 19: _context2.next = 24; break; case 21: _context2.prev = 21; _context2.t0 = _context2["catch"](6); _iterator5.e(_context2.t0); case 24: _context2.prev = 24; _iterator5.f(); return _context2.finish(24); case 27: _context2.next = 48; break; case 29: list = (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_11__.default)(this.iteratePath(path, _objectSpread({}, opt, { reverse: false }))); list.reverse(); _iterator6 = _createForOfIteratorHelper(list); _context2.prev = 32; _iterator6.s(); case 34: if ((_step6 = _iterator6.n()).done) { _context2.next = 40; break; } _step6$value = _step6.value, _path = _step6$value.path, node = _step6$value.node; _context2.next = 38; return { path: _path, node: node }; case 38: _context2.next = 34; break; case 40: _context2.next = 45; break; case 42: _context2.prev = 42; _context2.t1 = _context2["catch"](32); _iterator6.e(_context2.t1); case 45: _context2.prev = 45; _iterator6.f(); return _context2.finish(45); case 48: case "end": return _context2.stop(); } } }, iteratePath, this, [[6, 21, 24, 27], [32, 42, 45, 48]]); }) }, { key: "getAllNodes", value: function getAllNodes(path) { var all = []; var _iterator7 = _createForOfIteratorHelper(this.iteratePath(path)), _step7; try { for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) { var node = _step7.value.node; all.push(node); } } catch (err) { _iterator7.e(err); } finally { _iterator7.f(); } return all; } }, { key: "getNode", value: function getNode(path) { return arrayLast(this.getAllNodes(path)); } }, { key: "getNodeIndexAndParent", value: function getNodeIndexAndParent(path) { var parentPath = path.slice(); var index = parentPath.pop(); return { parent: this.getNode(parentPath), index: index, parentPath: parentPath }; } }, { key: "getNodeParent", value: function getNodeParent(path) { return this.getNodeIndexAndParent(path).parent; } }, { key: "setPathNode", value: function setPathNode(path, node) { if (path == null || path.length === 0) { this.data = node; } else { var childrenKey = this.childrenKey, rootChildren = this.rootChildren; var _this$getNodeIndexAnd = this.getNodeIndexAndParent(path), parent = _this$getNodeIndexAnd.parent, index = _this$getNodeIndexAnd.index; var parentChildren = path.length === 1 ? rootChildren : parent[childrenKey]; parentChildren[index] = node; } } }, { key: "removeNode", value: function removeNode(path) { var childrenKey = this.childrenKey, rootChildren = this.rootChildren; var _this$getNodeIndexAnd2 = this.getNodeIndexAndParent(path), parent = _this$getNodeIndexAnd2.parent, index = _this$getNodeIndexAnd2.index; var parentChildren = path.length === 1 ? rootChildren : parent[childrenKey]; var node = parentChildren[index]; parentChildren.splice(index, 1); return node; } }, { key: "walk", value: function walk(handler) { var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var childrenKey = this.childrenKey, data = this.data; // TODO change args in next version return walkTreeData(data, handler, childrenKey, opt.reverse); } }, { key: "clone", value: function clone() { var opt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; // opt.afterNodeCreated(newNode, {oldNode: node, index, parent, path}) // TODO change args in next version var childrenKey = this.childrenKey; var td = new TreeData(); this.walk(function (node, index, parent, path) { var newNode = Object.assign({}, node); if (newNode[childrenKey]) { newNode[childrenKey] = []; } if (opt.afterNodeCreated) { opt.afterNodeCreated(newNode, { oldNode: node, index: index, parent: parent, path: path }); } td.setPathNode(path, newNode); }); return td.data; } }, { key: "rootChildren", get: function get() { var childrenKey = this.childrenKey; if (!this.data) { this.data = []; } var data = this.data; return isArray(data) ? data : data[childrenKey]; } }]); return TreeData; }(); // function helper | method helper ============================ function resolveValueOrGettter(valueOrGetter) { var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; if (isFunction(valueOrGetter)) { return valueOrGetter.apply(void 0, (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_11__.default)(args)); } else { return valueOrGetter; } } function executeWithCount(func) { var count = 0; return function () { for (var _len = arguments.length, args = new Array(_len), _key3 = 0; _key3 < _len; _key3++) { args[_key3] = arguments[_key3]; } return func.call.apply(func, [this, count++].concat(args)); }; } function watchChange(getVal, handler) { var oldVal; var update = function update() { for (var _len2 = arguments.length, args = new Array(_len2), _key4 = 0; _key4 < _len2; _key4++) { args[_key4] = arguments[_key4]; } var newVal = getVal.apply(void 0, args); if (oldVal !== newVal) { handler.apply(void 0, [newVal].concat(args)); } oldVal = newVal; }; return update; } var store_executeOnceInScopeByName = {}; function executeOnceInScopeByName(name, action) { var scope = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : scope_executeOnceInScopeByName; var storeResult = arguments.length > 3 ? arguments[3] : undefined; name = "executeOnceInScopeByName_".concat(name); if (!scope[name]) { var value = action(); var destroy = function destroy() { delete scope[name]; }; scope[name] = { destroy: destroy }; if (storeResult) { scope[name].value = value; } } return scope[name]; } function debounceTrailing(action) { var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; var t; var delaying; var lastArgs; // when trailing, use last args var resolves = []; var rejects = []; var wrappedAction = function wrappedAction() { var _this = this; for (var _len3 = arguments.length, args = new Array(_len3), _key5 = 0; _key5 < _len3; _key5++) { args[_key5] = arguments[_key5]; } return new Promise(function (resolve, reject) { resolves.push(resolve); rejects.push(reject); // lastArgs = args; if (!delaying) { delaying = true; t = setTimeout(function () { var result = action.call.apply(action, [_this].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_11__.default)(lastArgs))); t = null; delaying = false; resolves.forEach(function (resolve) { return resolve(result); }); resolves = []; rejects = []; }, wait); } }); }; wrappedAction.stop = function () { if (t) { clearTimeout(t); t = null; } delaying = false; resolves = []; rejects.forEach(function (reject) { return reject(); }); rejects = []; }; return wrappedAction; } function debounceImmediate(action) { var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; var t; var delaying; var result; var wrappedAction = function wrappedAction() { var _this2 = this; return new Promise(function (resolve, reject) { if (delaying) { resolve(result); } else { delaying = true; result = action.call.apply(action, [_this2].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_11__.default)(lastArgs))); resolve(result); t = setTimeout(function () { t = null; delaying = false; result = null; }, wait); } }); }; wrappedAction.stop = function () { if (t) { clearTimeout(t); t = null; } delaying = false; }; return wrappedAction; } function debounce(action) { var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; var opt = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; if (opt.immediate) { return debounceImmediate(action, wait); } else { return debounceTrailing(action, wait); } } /** * [joinMethods description] * @param {[Function[]]} methods [description] * @param {String} [mode='value'] [value, pipeline] * @return {[Function]} [description] */ function joinMethods(methods) { var mode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'value'; var simpleJoinedMethod; var _iterator8 = _createForOfIteratorHelper(methods), _step8; try { var _loop3 = function _loop3() { var method = _step8.value; var old = simpleJoinedMethod; if (old) { simpleJoinedMethod = function simpleJoinedMethod() { for (var _len4 = arguments.length, args = new Array(_len4), _key6 = 0; _key6 < _len4; _key6++) { args[_key6] = arguments[_key6]; } return method.call.apply(method, [this, mode === 'value' ? old.call.apply(old, [this].concat(args)) : old].concat(args)); }; } else { simpleJoinedMethod = method; } }; for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) { _loop3(); } } catch (err) { _iterator8.e(err); } finally { _iterator8.f(); } return simpleJoinedMethod; } // the returned function only accept one argument function joinFunctionsByResult(funcs) { var wrappedFunc = funcs[0]; for (var i = 1; i < funcs.length; i++) { wrappedFunc = join2func(wrappedFunc, funcs[i]); } return wrappedFunc; function join2func(func1, func2) { return function (arg) { var result = args; var result1 = func1(arg); return func2(result1); }; } } // must pass arguments to `next` manually function joinFunctionsByNext(funcs) { var next = function next() {}; var _iterator9 = _createForOfIteratorHelper(iterateAll(funcs, { reverse: true })), _step9; try { for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) { var func = _step9.value.value; var currentNext = next; next = wrapFuncWithNext(func, currentNext); } } catch (err) { _iterator9.e(err); } finally { _iterator9.f(); } return next; function wrapFuncWithNext(func, next) { return function () { for (var _len5 = arguments.length, args = new Array(_len5), _key7 = 0; _key7 < _len5; _key7++) { args[_key7] = arguments[_key7]; } return func.apply(void 0, [next].concat(args)); }; } } // promise // execute promise in sequence function executePromiseGetters(getters) { var concurrent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; var stopped; var promise = new Promise(function (resolve, reject) { var r = []; var chunks = splitArray(getters, concurrent); var promise = Promise.resolve(); chunks.forEach(function (chunk) { promise = promise.then(function (result) { if (result) { r.push.apply(r, (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_11__.default)(result)); } if (stopped) { reject('stopped'); } else { return Promise.all(chunk.map(function (v) { return v(); })); } }); }); promise.then(function (result) { r.push.apply(r, (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_11__.default)(result)); resolve(r); }); }); return { promise: promise, destroy: function destroy() { stopped = true; } }; } function promiseTimeout(promise, timeout) { return new Promise(function (resolve, reject) { var t, rejected; promise.then(function () { clearTimeout(t); resolve.apply(void 0, arguments); }, function () { if (!rejected) { clearTimeout(t); reject.apply(void 0, arguments); } }); t = setTimeout(function () { rejected = true; var e = new Error('Promise timeout!'); e.name = 'timeout'; reject(e); }, timeout); }); } // url /* eslint-disable */ function getUrlParam(par) { // 获取当前URL var local_url = document.location.href; // 获取要取得的get参数位置 var get = local_url.indexOf(par + '='); if (get == -1) { return false; } // 截取字符串 var get_par = local_url.slice(par.length + get + 1); // 判断截取后的字符串是否还有其他get参数 var nextPar = get_par.indexOf('&'); if (nextPar != -1) { get_par = get_par.slice(0, nextPar); } return get_par; } /* eslint-enable */ // dom ===================================================== // return NodeList if there are multiple top-level nodes function createElementFromHTML(htmlString) { var div = document.createElement('div'); div.innerHTML = htmlString.trim(); if (div.childNodes.length > 1) { return div.childNodes; } else { return div.childNodes[0]; } } function uniqueId() { var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'id_'; var id = prefix + strRand(); if (!store.uniqueId) store.uniqueId = {}; var generatedIds = store.uniqueId; if (document.getElementById(id) || generatedIds[id]) { return uniqueId(prefix); } else { generatedIds[id] = true; return id; } } function isDescendantOf(el, parent) { while (true) { if (el.parentElement == null) { return false; } else if (el.parentElement === parent) { return true; } else { el = el.parentElement; } } } function removeEl(el) { if (el.parentNode !== null) { return el.parentNode.removeChild(el); } } // refer: https://stackoverflow.com/questions/871399/cross-browser-method-for-detecting-the-scrolltop-of-the-browser-window function getScroll() { if (typeof pageYOffset != 'undefined') { //most browsers except IE before #9 return { top: pageYOffset, left: pageXOffset }; } else { var B = document.body; //IE 'quirks' var D = document.documentElement; //IE with doctype D = D.clientHeight ? D : B; return { top: D.scrollTop, left: D.scrollLeft }; } } // refer: https://gist.github.com/aderaaij/89547e34617b95ac29d1 function getOffset(el) { var rect = getBoundingClientRect(el); var scroll = getScroll(); return { x: rect.left + scroll.left, y: rect.top + scroll.top }; } // there is some trap in el.offsetParent, so use this func to fix function getOffsetParent(el) { var offsetParent = el.offsetParent; if (!offsetParent || offsetParent === document.body && getComputedStyle(document.body).position === 'static') { offsetParent = document.body.parentElement; } return offsetParent; } // get el current position. like jQuery.position // the position is relative to offsetParent viewport left top. it is for set absolute position, absolute position is relative to offsetParent viewport left top. // 相对于offsetParent可视区域左上角(el.offsetLeft或top包含父元素的滚动距离, 所以要减去). position一般用于设置绝对定位的情况, 而绝对定位就是以可视区域左上角为原点. function getPosition(el) { var offsetParent = getOffsetParent(el); var ps = { x: el.offsetLeft, y: el.offsetTop }; var parent = el; while (true) { parent = parent.parentElement; if (parent === offsetParent || !parent) { break; } ps.x -= parent.scrollLeft; ps.y -= parent.scrollTop; } return ps; } // get position of a el if its offset is given. like jQuery.offset. // 类似 jQuery.offset的设置功能, 但是它只返回计算的position, 不改变元素样式. function getPositionFromOffset(el, of) { var offsetParent = getOffsetParent(el); var parentOf = getOffset(offsetParent); return { x: of.x - parentOf.x, y: of.y - parentOf.y }; } function getBoundingClientRect(el) { // refer: http://www.51xuediannao.com/javascript/getBoundingClientRect.html var xy = el.getBoundingClientRect(); var top = xy.top - document.documentElement.clientTop, //document.documentElement.clientTop 在IE67中始终为2,其他高级点的浏览器为0 bottom = xy.bottom, left = xy.left - document.documentElement.clientLeft, //document.documentElement.clientLeft 在IE67中始终为2,其他高级点的浏览器为0 right = xy.right, width = xy.width || right - left, //IE67不存在width 使用right - left获得 height = xy.height || bottom - top; var x = left; var y = top; return { top: top, right: right, bottom: bottom, left: left, width: width, height: height, x: x, y: y }; } var getViewportPosition = getBoundingClientRect; // TODO not tested function viewportPositionToOffset(position) { var body = document.body; var bodyOf = getOffset(body); var bodyVP = getViewportPosition(body); return { x: position.x + bodyOf.x - bodyVP.x, y: position.y + bodyOf.y - bodyVP.y }; } // TODO not tested function offsetToViewportPosition(offset) { var body = document.body; var bodyOf = getOffset(body); var bodyVP = getViewportPosition(body); return { x: offset.x + bodyVP.x - bodyOf.x, y: offset.y + bodyVP.y - bodyOf.y }; } function findParent(el, callback, opt) { var cur = opt && opt.withSelf ? el : el.parentElement; while (cur) { var r = callback(cur); if (r === 'break') { return; } else if (r) { return cur; } else { cur = cur.parentElement; } } } function backupAttr(el, name) { var key = "original_".concat(name); el[key] = el.getAttribute(name); } function restoreAttr(el, name) { var key = "original_".concat(name); el.setAttribute(name, el[key]); } // source: http://youmightnotneedjquery.com/ function hasClass(el, className) { if (el.classList) { return el.classList.contains(className); } else { return new RegExp('(^| )' + className + '( |$)', 'gi').test(el.className); } } // source: http://youmightnotneedjquery.com/ function addClass(el, className) { if (!hasClass(el, className)) { if (el.classList) { el.classList.add(className); } else { el.className += ' ' + className; } } } // source: http://youmightnotneedjquery.com/ function removeClass(el, className) { if (el.classList) { el.classList.remove(className); } else { el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' '); } } // TODO rename to getElSizeEvenInvisible in next version function getElSize(el) { backupAttr(el, 'style'); el.style.display = 'block'; var t = getBoundingClientRect(el); var size = { width: t.width, height: t.height }; restoreAttr(el, 'style'); return size; } var getElSizeEvenInvisible = getElSize; /** * [isOffsetInEl] * @param {Number} x * @param {Number} y * @param {Object} el HTML Element */ function isOffsetInEl(x, y, el) { var offset = getOffset(el); return offset.x <= x && offset.x + el.offsetWidth >= x && offset.y <= y && offset.y + el.offsetHeight >= y; } // get border function getBorder(el) { var body = document.body; var workArea = findParent(el, function (v) { return hasClass(v, 'work-area'); }); var of = getOffset(workArea); return { left: of.x, right: of.x + workArea.offsetWidth, top: of.y + 50, bottom: body.offsetHeight < glb().innerHeight ? glb().innerHeight : body.offsetHeight }; } function setElChildByIndex(el, index, child) { child.childComponentIndex = index; var len = el.childNodes.length; if (len === 0) { el.appendChild(child); } else if (index === 0) { el.insertBefore(child, el.childNodes[0]); } else { var _binarySearch = binarySearch(el.childNodes, function (el) { return el.childComponentIndex - index; }, 0, max(index, len - 1), true), nearestIndex = _binarySearch.index, nearest = _binarySearch.value, bigger = _binarySearch.bigger; if (bigger) { el.insertBefore(child, nearest); } else { var next = el.childNodes[nearestIndex + 1]; if (next) { el.insertBefore(child, next); } else { el.appendChild(child); } } } } // from https://blog.csdn.net/qq_30100043/article/details/74719534 function getCss3Prefix() { var opt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; if (opt.noCache || store.css3Prefix == null) { store.css3Prefix = reget(); } return store.css3Prefix; function reget() { var div = document.createElement('div'); var cssText = '-webkit-transition:all .1s; -moz-transition:all .1s; -o-transition:all .1s; -ms-transition:all .1s; transition:all .1s;'; div.style.cssText = cssText; var style = div.style; if (style.webkitTransition) { return '-webkit-'; } if (style.MozTransition) { return '-moz-'; } if (style.oTransition) { return '-o-'; } if (style.msTransition) { return '-ms-'; } return ''; } } // dom event function onDOM(el, name, handler) { for (var _len6 = arguments.length, args = new Array(_len6 > 3 ? _len6 - 3 : 0), _key8 = 3; _key8 < _len6; _key8++) { args[_key8 - 3] = arguments[_key8]; } if (el.addEventListener) { // 所有主流浏览器,除了 IE 8 及更早 IE版本 el.addEventListener.apply(el, [name, handler].concat(args)); } else if (el.attachEvent) { // IE 8 及更早 IE 版本 el.attachEvent.apply(el, ["on".concat(name), handler].concat(args)); } } function offDOM(el, name, handler) { for (var _len7 = arguments.length, args = new Array(_len7 > 3 ? _len7 - 3 : 0), _key9 = 3; _key9 < _len7; _key9++) { args[_key9 - 3] = arguments[_key9]; } if (el.removeEventListener) { // 所有主流浏览器,除了 IE 8 及更早 IE版本 el.removeEventListener.apply(el, [name, handler].concat(args)); } else if (el.detachEvent) { // IE 8 及更早 IE 版本 el.detachEvent.apply(el, ["on".concat(name), handler].concat(args)); } } function onDOMMany(els, names, handler) { els = toArrayIfNot(els); names = toArrayIfNot(names); for (var _len8 = arguments.length, args = new Array(_len8 > 3 ? _len8 - 3 : 0), _key10 = 3; _key10 < _len8; _key10++) { args[_key10 - 3] = arguments[_key10]; } var _iterator10 = _createForOfIteratorHelper(els), _step10; try { for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) { var el = _step10.value; var _iterator13 = _createForOfIteratorHelper(names), _step13; try { for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) { var name = _step13.value; onDOM.apply(void 0, [el, name, handler].concat(args)); } } catch (err) { _iterator13.e(err); } finally { _iterator13.f(); } } } catch (err) { _iterator10.e(err); } finally { _iterator10.f(); } var destroy = function destroy() { var _iterator11 = _createForOfIteratorHelper(els), _step11; try { for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) { var el = _step11.value; var _iterator12 = _createForOfIteratorHelper(names), _step12; try { for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) { var name = _step12.value; offDOM(el, name, handler); } } catch (err) { _iterator12.e(err); } finally { _iterator12.f(); } } } catch (err) { _iterator11.e(err); } finally { _iterator11.f(); } }; return destroy; } function getImageSizeByUrl(url) { var image = document.createElement('img'); return new Promise(function (resolve, reject) { onDOM(image, 'load', function () { resolve({ width: image.width, height: image.height }); }); onDOM(image, 'error', function (e) { reject(e); }); image.src = url; }); } function findNodeList(list, callback) { var opt = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; var iterator = iterateAll(list, { reverse: opt.reverse }); var _iterator14 = _createForOfIteratorHelper(iterator), _step14; try { for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) { var _step14$value = _step14.value, value = _step14$value.value, index = _step14$value.index; if (callback(value, index)) { return value; } } } catch (err) { _iterator14.e(err); } finally { _iterator14.f(); } } function findNodeListReverse(list, callback) { var opt = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; opt.reverse = true; return findNodeList(list, callback, opt); } function elementsFromPoint() { var func = document.elementsFromPoint || document.msElementsFromPoint || elementsFromPoint; for (var _len9 = arguments.length, args = new Array(_len9), _key11 = 0; _key11 < _len9; _key11++) { args[_key11] = arguments[_key11]; } return func.apply(document, args); function elementsFromPoint(x, y) { var parents = []; var parent = void 0; do { if (parent !== document.elementFromPoint(x, y)) { parent = document.elementFromPoint(x, y); parents.push(parent); parent.style.pointerEvents = 'none'; } else { parent = false; } } while (parent); parents.forEach(function (parent) { return parent.style.pointerEvents = 'all'; }); return parents; } } function getOuterAttachedHeight(el) { var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; opt = _objectSpread({ margin: true, border: true }, opt); var stl = getComputedStyle(el); var r = 0; var arr = []; if (opt.margin) { arr.push('margin-top', 'margin-bottom'); } if (opt.border) { arr.push('border-top-width', 'border-bottom-width'); } arr.forEach(function (key) { r += parseFloat(stl[key]); }); return r; } function getOuterAttachedWidth(el) { var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; opt = _objectSpread({ margin: true, border: true }, opt); var stl = getComputedStyle(el); var r = 0; var arr = []; if (opt.margin) { arr.push('margin-left', 'margin-right'); } if (opt.border) { arr.push('border-left-width', 'border-right-width'); } arr.forEach(function (key) { r += parseFloat(stl[key]); }); return r; } // DOM structure function insertBefore(el, target) { target.parentElement.insertBefore(el, target); } function insertAfter(el, target) { target.parentElement.insertBefore(el, target.nextSibling); } function prependTo(el, target) { target.insertBefore(el, target.firstChild); } function appendTo(el, target) { target.appendChild(el); } // Date =================================== function cloneDate(dateObj) { return new Date(dateObj.getTime()); } function addDate(dateObj, n, type) { if (!['year', 'month', 'day', 'date'].includes(type)) { type += 's'; } type = studlyCase(type); if (type === 'Day') { type = 'Date'; } var setFuncName = 'set' + type; var getFuncName = 'get' + type; dateObj[setFuncName](dateObj[getFuncName]() + n); return dateObj; } function getMonthStart(dateObj) { var clonedObj = cloneDate(dateObj); clonedObj.setDate(1); return clonedObj; } function getMonthEnd(dateObj) { var r = cloneDate(dateObj); addDate(r, 1, 'month'); r.setDate(0); return r; } /** * [getCalendar description] * @param {[type]} year [description] * @param {[type]} month [description] * @param {Number} [startWeekDay=0] [0 is sunday] * @return {[type]} [description] */ function getCalendar(year, month) { var startWeekDay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; var results = []; var date = new Date(year, month - 1); year = date.getFullYear(); month = date.getMonth() + 1; var monthStart = getMonthStart(date); var monthStartDay = monthStart.getDay(); var calendarStart = addDate(cloneDate(monthStart), -(monthStartDay + startWeekDay), 'day'); if (monthStartDay > startWeekDay) { var startDate = calendarStart.getDate(); var _year = calendarStart.getFullYear(); var _month = calendarStart.getMonth() + 1; for (var i = startWeekDay; i < monthStartDay; i++) { var _date = startDate + i; results.push({ year: _year, month: _month, date: _date, text: _date, prevMonth: true }); } } // var monthEnd = getMonthEnd(date); var monthEndtDate = monthEnd.getDate(); for (var _i11 = 1; _i11 <= monthEndtDate; _i11++) { var _date2 = _i11; results.push({ year: year, month: month, date: _date2, text: _date2, currentMonth: true }); } // var monthEndDay = monthEnd.getDay(); var endWeekDay = 6 - startWeekDay; if (monthEndDay < endWeekDay) { var nextMonth = addDate(cloneDate(date), 1, 'month'); var _year2 = nextMonth.getFullYear(); var _month2 = nextMonth.getMonth() + 1; for (var _i12 = monthEndDay + 1, _date3 = 1; _i12 <= endWeekDay; _i12++, _date3++) { results.push({ year: _year2, month: _month2, date: _date3, text: _date3, nextMonth: true }); } } // return splitArray(results, 7); } // eg: 2018-09-07T03:38:37.888Z // timezone must be UTC function isIsoFormat(str) { return str.length > 15 && str.length < 30 && str.match(/^\d{4}-\d{2}-\d{2}T.*Z$/); } // timestamp eg: 2018-09-07T03:38:37.888Z function parseISO(timestamp) { var _timestamp$split = timestamp.split('T'), _timestamp$split2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5__.default)(_timestamp$split, 2), datePart = _timestamp$split2[0], timePart = _timestamp$split2[1]; var y, m, d, h = 0, min = 0, s = 0; var _datePart$split$map = datePart.split('-').map(function (v) { return parseInt(v); }); var _datePart$split$map2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5__.default)(_datePart$split$map, 3); y = _datePart$split$map2[0]; m = _datePart$split$map2[1]; d = _datePart$split$map2[2]; m = m - 1; if (timePart) { var t = timePart.split('-').map(function (v) { return parseFloat(v); }); h = t[0]; if (t[1] != null) { min = t[1]; } if (t[2] != null) { s = t[2]; } } var dt = new Date(y, m, d, h, min, s); // the dt timezone is current, so reset hour with setUTCHours dt.setUTCHours(h); return dt; } // advance ================================= // binarySearch 二分查找 // callback(mid, i) should return mid - your_value function binarySearch(arr, callback, start, end, returnNearestIfNoHit) { var max = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 1000; var midNum; var mid; if (start == null) { start = 0; end = arr.length - 1; } var i = 0; var r; while (start >= 0 && start <= end) { if (i >= max) { throw Error("binarySearch: loop times is over ".concat(max, ", you can increase the limit.")); } midNum = Math.floor((end - start) / 2 + start); mid = arr[midNum]; r = callback(mid, i); if (r > 0) { end = midNum - 1; } else if (r < 0) { start = midNum + 1; } else { return { index: midNum, value: mid, count: i + 1, hit: true }; } i++; } return returnNearestIfNoHit ? { index: midNum, value: mid, count: i + 1, hit: false, bigger: r > 0 } : null; } // function windowLoaded() { return new Promise(function (resolve, reject) { if (document && document.readyState === 'complete') { resolve(); } else { glb().addEventListener('load', function once() { resolve(); glb().removeEventListener('load', once); }); } }); } function waitTime(milliseconds, callback) { return new Promise(function (resolve, reject) { setTimeout(function () { callback && callback(); resolve(); }, milliseconds); }); } // overload waitFor(condition, time = 100, maxCount = 1000)) function waitFor(name, condition) { var time = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 100; var maxCount = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1000; if (isFunction(name)) { maxCount = time; time = isNumeric(condition) ? condition : 100; condition = name; name = null; } if (!store.waitFor) store.waitFor = {}; var waits = store.waitFor; if (name && isset(waits[name])) { glb().clearInterval(waits[name]); delete waits[name]; } return new Promise(function (resolve, reject) { var count = 0; function judge(interval) { if (count <= maxCount) { if (condition()) { stop(interval, name); resolve(); } } else { stop(interval, name); reject(new Error('waitFor: Limit is reached')); } count++; } function stop(interval, name) { if (interval) { if (name && isset(waits[name])) { glb().clearInterval(waits[name]); delete waits[name]; } else { glb().clearInterval(interval); } } } var interval = glb().setInterval(function () { judge(interval); }, time); if (name) { waits[name] = interval; } judge(); }); } function retry(func) { var limitTimes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3; if (!store.retry) store.retry = {}; var counters = retry; var name = generateName(); counters[name] = 0; return doFunc; function doFunc(arg1, arg2, arg3) { return func(arg1, arg2, arg3).then(function (data) { delete counters[name]; return data; }).catch(function (e) { counters[name]++; if (counters[name] >= limitTimes) { delete counters[name]; return Promise.reject(e); } else { return doFunc(arg1, arg2, arg3); } }); } function generateName() { var name = Math.random() + ''; if (counters[name]) { return generateName(); } else { return name; } } } // 复制文字到剪贴板 function copyTextToClipboard(text) { try { // use latest api navigator.clipboard.writeText(text); return; } catch (e) {} var textArea = document.createElement('textarea'); // // *** This styling is an extra step which is likely not required. *** // // Why is it here? To ensure: // 1. the element is able to have focus and selection. // 2. if element was to flash render it has minimal visual impact. // 3. less flakyness with selection and copying which **might** occur if // the textarea element is not visible. // // The likelihood is the element won't even render, not even a flash, // so some of these are just precautions. However in IE the element // is visible whilst the popup box asking the user for permission for // the web page to copy to the clipboard. // // Place in top-left corner of screen regardless of scroll position. textArea.style.position = 'fixed'; textArea.style.top = 0; textArea.style.left = 0; // Ensure it has a small width and height. Setting to 1px / 1em // doesn't work as this gives a negative w/h on some browsers. textArea.style.width = '2em'; textArea.style.height = '2em'; // We don't need padding, reducing the size if it does flash render. textArea.style.padding = 0; // Clean up any borders. textArea.style.border = 'none'; textArea.style.outline = 'none'; textArea.style.boxShadow = 'none'; // Avoid flash of white box if rendered for any reason. textArea.style.background = 'transparent'; textArea.value = text; document.body.appendChild(textArea); textArea.select(); try { var successful = document.execCommand('copy'); var msg = successful ? 'successful' : 'unsuccessful'; console.log('Copying text command was ' + msg); } catch (err) { console.log('Oops, unable to copy'); } document.body.removeChild(textArea); } function isWindowDefined() { try { return window && true; } catch (error) { return false; } } function isNode() { return Boolean(typeof glb().module !== 'undefined' && glb().module.exports); } function isIE() { return Boolean(window.ActiveXObject || "ActiveXObject" in window); } // jquery function jqFixedSize(sel) { var $ = glb().jQuery; $(sel).each(function () { var t = $(this); t.css({ width: t.width() + 'px', height: t.height() + 'px' }); }); } function jqMakeCarousel(wrapperSel, listSel, itemSel) { var speed = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1000; var space = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 16; var dir = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 'left'; var top = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : 0; if (space.toString().match(/^\d+$/)) { space = space + 'px'; } var spaceNumber = parseFloat(space); var $ = glb().jQuery; var wrapper = $(wrapperSel); var list = wrapper.find(listSel); wrapper.css({ position: 'relative', height: wrapper.height() + 'px' }); var items0 = list.find(itemSel); items0.css({ margin: '0', marginRight: space }); var width = (Math.ceil(items0.width()) + spaceNumber) * items0.length; list.css({ position: 'absolute', margin: '0', width: width + 'px' }); var height = list.height(); var list2 = list.clone(); var list3 = list.clone(); list.css({ left: 0 }); list2.css({ left: width + 'px' }); list3.css({ left: width * 2 + 'px' }); var lists = $('<div></div>'); lists.css({ position: 'absolute', width: width * 3 + 'px', height: height + 'px', left: 0, top: top }); lists.append(list).append(list2).append(list3); wrapper.append(lists); var left = 0; function animateLoop() { if (dir === 'left') { left -= 100; } else { left += 100; } lists.animate({ left: "".concat(left, "px") }, speed, 'linear', function () { if (Math.abs(left) > width) { if (dir === 'left') { left += width; } else { left -= width; } lists.css({ left: left + 'px' }); } animateLoop(); }); } animateLoop(); } // https://developer.mozilla.org/docs/Web/API/Window/open // http://www.w3school.com.cn/htmldom/met_win_open.asp#windowfeatures function openWindow(url, name) { var opt = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; glb().open(url, name, Object.keys(opt).map(function (k) { return "".concat(k, "=").concat(opt[k]); }).join(',')); } function openCenterWindow(url, name, width, height) { var opt = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {}; var t = { width: width, height: height, top: (glb().screen.availHeight - 30 - height) / 2, left: (glb().screen.availWidth - 30 - width) / 2 }; Object.assign(t, opt); openWindow(url, name, t); } var URLHelper = /*#__PURE__*/function () { // protocol, hostname, port, pastname function URLHelper(baseUrl) { var _this3 = this; (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8__.default)(this, URLHelper); this.baseUrl = ''; this.search = {}; var t = decodeURI(baseUrl).split('?'); this.baseUrl = t[0]; if (t[1]) { t[1].split('&').forEach(function (v) { var t2 = v.split('='); _this3.search[t2[0]] = t2[1] == null ? '' : decodeURIComponent(t2[1]); }); } } (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__.default)(URLHelper, [{ key: "getHref", value: function getHref() { var _this4 = this; var t = [this.baseUrl]; var searchStr = Object.keys(this.search).map(function (k) { return "".concat(k, "=").concat(encodeURIComponent(_this4.search[k])); }).join('&'); if (searchStr) { t.push(searchStr); } return t.join('?'); } }]); return URLHelper; }(); // 解析函数参数, 帮助重载 // types eg: ['Object', (i) => i > 3, ['Number', default], null ] // null represent all types of argument function resolveArgsByType(args, types) { var argIndex = 0; return types.map(function (v) { // make rule var rule, dft; if (isArray(v)) { rule = v[0]; dft = v[1]; } else { rule = v; dft = undefined; } if (!isFunction(rule)) { if (rule == null) { rule = function rule() { return true; }; } else { var t = rule; rule = function rule(x) { return Object.prototype.toString.call(x) === "[object ".concat(t, "]"); }; } } var arg = args[argIndex]; if (rule(arg)) { argIndex++; return arg; } else { return dft; } }); } // set null can remove a item function makeStorageHelper(storage) { return { storage: storage, set: function set(name, value, minutes) { if (value == null) { this.storage.removeItem(name); } else { this.storage.setItem(name, JSON.stringify({ value: value, expired_at: minutes ? new Date().getTime() + minutes * 60 * 1000 : null })); } }, get: function get(name) { var t = this.storage.getItem(name); if (t) { t = JSON.parse(t); if (!t.expired_at || t.expired_at > new Date().getTime()) { return t.value; } else { this.storage.removeItem(name); } } return null; }, clear: function clear() { this.storage.clear(); } }; } function getLocalStorage2() { if (!store.localStorage2) { store.localStorage2 = makeStorageHelper(glb().localStorage); } return store.localStorage2; } function getSessionStorage2() { if (!store.sessionStorage2) { store.sessionStorage2 = makeStorageHelper(glb().sessionStorage); } return store.sessionStorage2; } // 事件处理 var EventProcessor = /*#__PURE__*/function () { function EventProcessor() { (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8__.default)(this, EventProcessor); this.eventStore = []; } (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__.default)(EventProcessor, [{ key: "on", value: function on(name, handler) { this.eventStore.push({ name: name, handler: handler }); } }, { key: "once", value: function once(name, handler) { var _this5 = this; var off = function off() { _this5.off(name, wrappedHandler); }; var wrappedHandler = function wrappedHandler() { handler.apply(void 0, arguments); off(); }; this.on(name, wrappedHandler); return off; } }, { key: "onceTimeout", value: function onceTimeout(name, handler, timeout) { var _this6 = this; var off; var promise = new Promise(function (resolve, reject) { var wrappedHandler = function wrappedHandler() { handler.apply(void 0, arguments); resolve(); }; off = _this6.once(name, wrappedHandler); waitTime(timeout).then(function () { off(); reject(); }); }); var off2 = function off2() { off && off(); }; return { off: off2, promise: promise }; } }, { key: "off", value: function off(name, handler) { var indexes = []; // to remove indexes; reverse; 倒序的 var len = this.eventStore.length; for (var i = 0; i < len; i++) { var item = this.eventStore[i]; if (item.name === name && item.handler === handler) { indexes.unshift(i); } } for (var _i13 = 0, _indexes = indexes; _i13 < _indexes.length; _i13++) { var index = _indexes[_i13]; this.eventStore.splice(index, 1); } } }, { key: "emit", value: function emit(name) { // 重要: 先找到要执行的项放在新数组里, 因为执行项会改变事件项存储数组 var items = []; var _iterator15 = _createForOfIteratorHelper(this.eventStore), _step15; try { for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) { var _item = _step15.value; if (_item.name === name) { items.push(_item); } } } catch (err) { _iterator15.e(err); } finally { _iterator15.f(); } for (var _len10 = arguments.length, args = new Array(_len10 > 1 ? _len10 - 1 : 0), _key12 = 1; _key12 < _len10; _key12++) { args[_key12 - 1] = arguments[_key12]; } for (var _i14 = 0, _items = items; _i14 < _items.length; _i14++) { var item = _items[_i14]; item.handler.apply(item, args); } } }]); return EventProcessor; }(); var CrossWindowEventProcessor = /*#__PURE__*/function (_EventProcessor) { (0,_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__.default)(CrossWindowEventProcessor, _EventProcessor); var _super = _createSuper(CrossWindowEventProcessor); // id function CrossWindowEventProcessor(opt) { var _this7; (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8__.default)(this, CrossWindowEventProcessor); _this7 = _super.call(this); _this7.storageName = '_crossWindow'; _this7.windows = []; _this7.timeout = 200; _this7.BROADCAST = '__BROADCAST__'; if (opt) { Object.assign((0,_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__.default)(_this7), opt); } onDOM(window, 'storage', function (ev) { if (ev.key === _this7.storageName) { var event = JSON.parse(ev.newValue); if (!event.targets || event.targets.includes(_this7.id)) { var _this8; (_this8 = _this7).emitLocal.apply(_this8, [event.name].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_11__.default)(event.args))); } } }); // social parts 集体部分 // join _this7.id = strRand(); _this7.windows = [_this7.id]; _this7.ready = new Promise(function (resolve, reject) { _this7.onceTimeout('_windows_updated', function (_ref) { var windows = _ref.windows; _this7.windows = windows; }, _this7.timeout).promise.then(function () { resolve(); // responsed 被响应 }, function () { // no response 无响应 resolve(); }); _this7.broadcast('_join', _this7.id); }); _this7.ready.then(function () { // on join _this7.on('_join', function (id) { _this7.windows.push(id); if (_this7.isMain()) { _this7.broadcast('_windows_updated', { windows: _this7.windows, type: 'join', id: id }); } }); // on _windows_updated _this7.on('_windows_updated', function (_ref2) { var windows = _ref2.windows; _this7.windows = windows; }); // on exit _this7.on('_exit', function (id) { var oldMain = _this7.windows[0]; arrayRemove(_this7.windows, id); if (_this7.isMain()) { _this7.emit('_windows_updated', { windows: _this7.windows, type: 'exit', id: id }); if (oldMain != _this7.id) { _this7.emit('_main_updated', { windows: _this7.windows, old: oldMain, 'new': _this7.id }); } } }); onDOM(window, 'beforeunload', function () { _this7.exitGroup(); }); }); return _this7; } (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__.default)(CrossWindowEventProcessor, [{ key: "isMain", value: function isMain() { return this.id === this.windows[0]; } }, { key: "emitTo", value: function emitTo(name, targets) { for (var _len11 = arguments.length, args = new Array(_len11 > 2 ? _len11 - 2 : 0), _key13 = 2; _key13 < _len11; _key13++) { args[_key13 - 2] = arguments[_key13]; } if (targets === this.BROADCAST) { targets = null; } else { if (targets && !isArray(targets)) { targets = [targets]; } if (targets.includes(this.id)) { var _get2; (_get2 = (0,_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_1__.default)((0,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__.default)(CrossWindowEventProcessor.prototype), "emit", this)).call.apply(_get2, [this, name].concat(args)); // emit to current window } } glb().localStorage.setItem(this.storageName, JSON.stringify({ name: name, targets: targets, args: args, // use random make storage event triggered every time // 加入随机保证触发storage事件 random: Math.random() })); } }, { key: "emitLocal", value: function emitLocal(name) { for (var _len12 = arguments.length, args = new Array(_len12 > 1 ? _len12 - 1 : 0), _key14 = 1; _key14 < _len12; _key14++) { args[_key14 - 1] = arguments[_key14]; } this.emitTo.apply(this, [name, this.id].concat(args)); } }, { key: "broadcast", value: function broadcast(name) { for (var _len13 = arguments.length, args = new Array(_len13 > 1 ? _len13 - 1 : 0), _key15 = 1; _key15 < _len13; _key15++) { args[_key15 - 1] = arguments[_key15]; } this.emitTo.apply(this, [name, this.BROADCAST].concat(args)); } }, { key: "emit", value: function emit(name) { for (var _len14 = arguments.length, args = new Array(_len14 > 1 ? _len14 - 1 : 0), _key16 = 1; _key16 < _len14; _key16++) { args[_key16 - 1] = arguments[_key16]; } this.emitTo.apply(this, [name, this.windows].concat(args)); } }, { key: "exitGroup", value: function exitGroup() { this.broadcast('_exit', this.id); } }]); return CrossWindowEventProcessor; }(EventProcessor); // Deprecated in next version var CrossWindow = CrossWindowEventProcessor; function onQuickKeydown(handler) { var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; opt = _objectSpread({ timeout: 1000 }, opt); var input = ''; var timeoutId; var keydownHandler = function keydownHandler(e) { if (e.key && e.key.length === 1) { input = "".concat(input).concat(e.key); handler(input); if (timeoutId) { clearTimeout(timeoutId); timeoutId = null; } timeoutId = setTimeout(function () { input = ''; }, opt.timeout); } }; onDOM(document, 'keydown', keydownHandler); return function () { offDOM(document, 'keydown', keydownHandler); }; } function getUserLanguage() { return navigator.language || navigator.userLanguage; } var Cache = /*#__PURE__*/function () { function Cache() { (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8__.default)(this, Cache); this.store = {}; } (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__.default)(Cache, [{ key: "has", value: function has(name) { return this.store.hasOwnProperty(name); } }, { key: "remember", value: function remember(name, getter) { if (!this.has(name)) { this.store[name] = { value: getter() }; } return this.store[name].value; } }, { key: "forget", value: function forget(name) { if (name) { if (this.has(name)) { delete this.store[name]; } } else { this.store = {}; } } }]); return Cache; }(); // attach cached getters to an object; can attach to self function attachCache(obj, toCache) { var cache = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Cache(); var _loop4 = function _loop4(key) { var getter = toCache[key]; Object.defineProperty(obj, key, { get: function get() { var _this9 = this; return cache.remember(key, function () { return getter.call(_this9); }); } }); }; for (var key in toCache) { _loop4(key); } } /***/ }), /***/ "./node_modules/jquery/dist/jquery.js": /*!********************************************!*\ !*** ./node_modules/jquery/dist/jquery.js ***! \********************************************/ /***/ (function(module, exports) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! * jQuery JavaScript Library v3.6.0 * https://jquery.com/ * * Includes Sizzle.js * https://sizzlejs.com/ * * Copyright OpenJS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2021-03-02T17:08Z */ ( function( global, factory ) { "use strict"; if ( true && typeof module.exports === "object" ) { // For CommonJS and CommonJS-like environments where a proper `window` // is present, execute the factory and get jQuery. // For environments that do not have a `window` with a `document` // (such as Node.js), expose a factory as module.exports. // This accentuates the need for the creation of a real `window`. // e.g. var jQuery = require("jquery")(window); // See ticket #14549 for more info. module.exports = global.document ? factory( global, true ) : function( w ) { if ( !w.document ) { throw new Error( "jQuery requires a window with a document" ); } return factory( w ); }; } else { factory( global ); } // Pass this if window is not defined yet } )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) { // Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 // throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode // arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common // enough that all such attempts are guarded in a try block. "use strict"; var arr = []; var getProto = Object.getPrototypeOf; var slice = arr.slice; var flat = arr.flat ? function( array ) { return arr.flat.call( array ); } : function( array ) { return arr.concat.apply( [], array ); }; var push = arr.push; var indexOf = arr.indexOf; var class2type = {}; var toString = class2type.toString; var hasOwn = class2type.hasOwnProperty; var fnToString = hasOwn.toString; var ObjectFunctionString = fnToString.call( Object ); var support = {}; var isFunction = function isFunction( obj ) { // Support: Chrome <=57, Firefox <=52 // In some browsers, typeof returns "function" for HTML <object> elements // (i.e., `typeof document.createElement( "object" ) === "function"`). // We don't want to classify *any* DOM node as a function. // Support: QtWeb <=3.8.5, WebKit <=534.34, wkhtmltopdf tool <=0.12.5 // Plus for old WebKit, typeof returns "function" for HTML collections // (e.g., `typeof document.getElementsByTagName("div") === "function"`). (gh-4756) return typeof obj === "function" && typeof obj.nodeType !== "number" && typeof obj.item !== "function"; }; var isWindow = function isWindow( obj ) { return obj != null && obj === obj.window; }; var document = window.document; var preservedScriptAttributes = { type: true, src: true, nonce: true, noModule: true }; function DOMEval( code, node, doc ) { doc = doc || document; var i, val, script = doc.createElement( "script" ); script.text = code; if ( node ) { for ( i in preservedScriptAttributes ) { // Support: Firefox 64+, Edge 18+ // Some browsers don't support the "nonce" property on scripts. // On the other hand, just using `getAttribute` is not enough as // the `nonce` attribute is reset to an empty string whenever it // becomes browsing-context connected. // See https://github.com/whatwg/html/issues/2369 // See https://html.spec.whatwg.org/#nonce-attributes // The `node.getAttribute` check was added for the sake of // `jQuery.globalEval` so that it can fake a nonce-containing node // via an object. val = node[ i ] || node.getAttribute && node.getAttribute( i ); if ( val ) { script.setAttribute( i, val ); } } } doc.head.appendChild( script ).parentNode.removeChild( script ); } function toType( obj ) { if ( obj == null ) { return obj + ""; } // Support: Android <=2.3 only (functionish RegExp) return typeof obj === "object" || typeof obj === "function" ? class2type[ toString.call( obj ) ] || "object" : typeof obj; } /* global Symbol */ // Defining this global in .eslintrc.json would create a danger of using the global // unguarded in another place, it seems safer to define global only for this module var version = "3.6.0", // Define a local copy of jQuery jQuery = function( selector, context ) { // The jQuery object is actually just the init constructor 'enhanced' // Need init if jQuery is called (just allow error to be thrown if not included) return new jQuery.fn.init( selector, context ); }; jQuery.fn = jQuery.prototype = { // The current version of jQuery being used jquery: version, constructor: jQuery, // The default length of a jQuery object is 0 length: 0, toArray: function() { return slice.call( this ); }, // Get the Nth element in the matched element set OR // Get the whole matched element set as a clean array get: function( num ) { // Return all the elements in a clean array if ( num == null ) { return slice.call( this ); } // Return just the one element from the set return num < 0 ? this[ num + this.length ] : this[ num ]; }, // Take an array of elements and push it onto the stack // (returning the new matched element set) pushStack: function( elems ) { // Build a new jQuery matched element set var ret = jQuery.merge( this.constructor(), elems ); // Add the old object onto the stack (as a reference) ret.prevObject = this; // Return the newly-formed element set return ret; }, // Execute a callback for every element in the matched set. each: function( callback ) { return jQuery.each( this, callback ); }, map: function( callback ) { return this.pushStack( jQuery.map( this, function( elem, i ) { return callback.call( elem, i, elem ); } ) ); }, slice: function() { return this.pushStack( slice.apply( this, arguments ) ); }, first: function() { return this.eq( 0 ); }, last: function() { return this.eq( -1 ); }, even: function() { return this.pushStack( jQuery.grep( this, function( _elem, i ) { return ( i + 1 ) % 2; } ) ); }, odd: function() { return this.pushStack( jQuery.grep( this, function( _elem, i ) { return i % 2; } ) ); }, eq: function( i ) { var len = this.length, j = +i + ( i < 0 ? len : 0 ); return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); }, end: function() { return this.prevObject || this.constructor(); }, // For internal use only. // Behaves like an Array's method, not like a jQuery method. push: push, sort: arr.sort, splice: arr.splice }; jQuery.extend = jQuery.fn.extend = function() { var options, name, src, copy, copyIsArray, clone, target = arguments[ 0 ] || {}, i = 1, length = arguments.length, deep = false; // Handle a deep copy situation if ( typeof target === "boolean" ) { deep = target; // Skip the boolean and the target target = arguments[ i ] || {}; i++; } // Handle case when target is a string or something (possible in deep copy) if ( typeof target !== "object" && !isFunction( target ) ) { target = {}; } // Extend jQuery itself if only one argument is passed if ( i === length ) { target = this; i--; } for ( ; i < length; i++ ) { // Only deal with non-null/undefined values if ( ( options = arguments[ i ] ) != null ) { // Extend the base object for ( name in options ) { copy = options[ name ]; // Prevent Object.prototype pollution // Prevent never-ending loop if ( name === "__proto__" || target === copy ) { continue; } // Recurse if we're merging plain objects or arrays if ( deep && copy && ( jQuery.isPlainObject( copy ) || ( copyIsArray = Array.isArray( copy ) ) ) ) { src = target[ name ]; // Ensure proper type for the source value if ( copyIsArray && !Array.isArray( src ) ) { clone = []; } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) { clone = {}; } else { clone = src; } copyIsArray = false; // Never move original objects, clone them target[ name ] = jQuery.extend( deep, clone, copy ); // Don't bring in undefined values } else if ( copy !== undefined ) { target[ name ] = copy; } } } } // Return the modified object return target; }; jQuery.extend( { // Unique for each copy of jQuery on the page expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), // Assume jQuery is ready without the ready module isReady: true, error: function( msg ) { throw new Error( msg ); }, noop: function() {}, isPlainObject: function( obj ) { var proto, Ctor; // Detect obvious negatives // Use toString instead of jQuery.type to catch host objects if ( !obj || toString.call( obj ) !== "[object Object]" ) { return false; } proto = getProto( obj ); // Objects with no prototype (e.g., `Object.create( null )`) are plain if ( !proto ) { return true; } // Objects with prototype are plain iff they were constructed by a global Object function Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; }, isEmptyObject: function( obj ) { var name; for ( name in obj ) { return false; } return true; }, // Evaluates a script in a provided context; falls back to the global one // if not specified. globalEval: function( code, options, doc ) { DOMEval( code, { nonce: options && options.nonce }, doc ); }, each: function( obj, callback ) { var length, i = 0; if ( isArrayLike( obj ) ) { length = obj.length; for ( ; i < length; i++ ) { if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { break; } } } else { for ( i in obj ) { if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { break; } } } return obj; }, // results is for internal usage only makeArray: function( arr, results ) { var ret = results || []; if ( arr != null ) { if ( isArrayLike( Object( arr ) ) ) { jQuery.merge( ret, typeof arr === "string" ? [ arr ] : arr ); } else { push.call( ret, arr ); } } return ret; }, inArray: function( elem, arr, i ) { return arr == null ? -1 : indexOf.call( arr, elem, i ); }, // Support: Android <=4.0 only, PhantomJS 1 only // push.apply(_, arraylike) throws on ancient WebKit merge: function( first, second ) { var len = +second.length, j = 0, i = first.length; for ( ; j < len; j++ ) { first[ i++ ] = second[ j ]; } first.length = i; return first; }, grep: function( elems, callback, invert ) { var callbackInverse, matches = [], i = 0, length = elems.length, callbackExpect = !invert; // Go through the array, only saving the items // that pass the validator function for ( ; i < length; i++ ) { callbackInverse = !callback( elems[ i ], i ); if ( callbackInverse !== callbackExpect ) { matches.push( elems[ i ] ); } } return matches; }, // arg is for internal usage only map: function( elems, callback, arg ) { var length, value, i = 0, ret = []; // Go through the array, translating each of the items to their new values if ( isArrayLike( elems ) ) { length = elems.length; for ( ; i < length; i++ ) { value = callback( elems[ i ], i, arg ); if ( value != null ) { ret.push( value ); } } // Go through every key on the object, } else { for ( i in elems ) { value = callback( elems[ i ], i, arg ); if ( value != null ) { ret.push( value ); } } } // Flatten any nested arrays return flat( ret ); }, // A global GUID counter for objects guid: 1, // jQuery.support is not used in Core but other projects attach their // properties to it so it needs to exist. support: support } ); if ( typeof Symbol === "function" ) { jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; } // Populate the class2type map jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), function( _i, name ) { class2type[ "[object " + name + "]" ] = name.toLowerCase(); } ); function isArrayLike( obj ) { // Support: real iOS 8.2 only (not reproducible in simulator) // `in` check used to prevent JIT error (gh-2145) // hasOwn isn't used here due to false negatives // regarding Nodelist length in IE var length = !!obj && "length" in obj && obj.length, type = toType( obj ); if ( isFunction( obj ) || isWindow( obj ) ) { return false; } return type === "array" || length === 0 || typeof length === "number" && length > 0 && ( length - 1 ) in obj; } var Sizzle = /*! * Sizzle CSS Selector Engine v2.3.6 * https://sizzlejs.com/ * * Copyright JS Foundation and other contributors * Released under the MIT license * https://js.foundation/ * * Date: 2021-02-16 */ ( function( window ) { var i, support, Expr, getText, isXML, tokenize, compile, select, outermostContext, sortInput, hasDuplicate, // Local document vars setDocument, document, docElem, documentIsHTML, rbuggyQSA, rbuggyMatches, matches, contains, // Instance-specific data expando = "sizzle" + 1 * new Date(), preferredDoc = window.document, dirruns = 0, done = 0, classCache = createCache(), tokenCache = createCache(), compilerCache = createCache(), nonnativeSelectorCache = createCache(), sortOrder = function( a, b ) { if ( a === b ) { hasDuplicate = true; } return 0; }, // Instance methods hasOwn = ( {} ).hasOwnProperty, arr = [], pop = arr.pop, pushNative = arr.push, push = arr.push, slice = arr.slice, // Use a stripped-down indexOf as it's faster than native // https://jsperf.com/thor-indexof-vs-for/5 indexOf = function( list, elem ) { var i = 0, len = list.length; for ( ; i < len; i++ ) { if ( list[ i ] === elem ) { return i; } } return -1; }, booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|" + "ismap|loop|multiple|open|readonly|required|scoped", // Regular expressions // http://www.w3.org/TR/css3-selectors/#whitespace whitespace = "[\\x20\\t\\r\\n\\f]", // https://www.w3.org/TR/css-syntax-3/#ident-token-diagram identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + // Operator (capture 2) "*([*^$|!~]?=)" + whitespace + // "Attribute values must be CSS identifiers [capture 5] // or strings [capture 3 or capture 4]" "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + "*\\]", pseudos = ":(" + identifier + ")(?:\\((" + // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: // 1. quoted (capture 3; capture 4 or capture 5) "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + // 2. simple (capture 6) "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + // 3. anything else (capture 2) ".*" + ")\\)|)", // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter rwhitespace = new RegExp( whitespace + "+", "g" ), rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), rdescend = new RegExp( whitespace + "|>" ), rpseudo = new RegExp( pseudos ), ridentifier = new RegExp( "^" + identifier + "$" ), matchExpr = { "ID": new RegExp( "^#(" + identifier + ")" ), "CLASS": new RegExp( "^\\.(" + identifier + ")" ), "TAG": new RegExp( "^(" + identifier + "|[*])" ), "ATTR": new RegExp( "^" + attributes ), "PSEUDO": new RegExp( "^" + pseudos ), "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), // For use in libraries implementing .is() // We use this for POS matching in `select` "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) }, rhtml = /HTML$/i, rinputs = /^(?:input|select|textarea|button)$/i, rheader = /^h\d$/i, rnative = /^[^{]+\{\s*\[native \w/, // Easily-parseable/retrievable ID or TAG or CLASS selectors rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, rsibling = /[+~]/, // CSS escapes // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters runescape = new RegExp( "\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\([^\\r\\n\\f])", "g" ), funescape = function( escape, nonHex ) { var high = "0x" + escape.slice( 1 ) - 0x10000; return nonHex ? // Strip the backslash prefix from a non-hex escape sequence nonHex : // Replace a hexadecimal escape sequence with the encoded Unicode code point // Support: IE <=11+ // For values outside the Basic Multilingual Plane (BMP), manually construct a // surrogate pair high < 0 ? String.fromCharCode( high + 0x10000 ) : String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); }, // CSS string/identifier serialization // https://drafts.csswg.org/cssom/#common-serializing-idioms rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, fcssescape = function( ch, asCodePoint ) { if ( asCodePoint ) { // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER if ( ch === "\0" ) { return "\uFFFD"; } // Control characters and (dependent upon position) numbers get escaped as code points return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; } // Other potentially-special ASCII characters get backslash-escaped return "\\" + ch; }, // Used for iframes // See setDocument() // Removing the function wrapper causes a "Permission Denied" // error in IE unloadHandler = function() { setDocument(); }, inDisabledFieldset = addCombinator( function( elem ) { return elem.disabled === true && elem.nodeName.toLowerCase() === "fieldset"; }, { dir: "parentNode", next: "legend" } ); // Optimize for push.apply( _, NodeList ) try { push.apply( ( arr = slice.call( preferredDoc.childNodes ) ), preferredDoc.childNodes ); // Support: Android<4.0 // Detect silently failing push.apply // eslint-disable-next-line no-unused-expressions arr[ preferredDoc.childNodes.length ].nodeType; } catch ( e ) { push = { apply: arr.length ? // Leverage slice if possible function( target, els ) { pushNative.apply( target, slice.call( els ) ); } : // Support: IE<9 // Otherwise append directly function( target, els ) { var j = target.length, i = 0; // Can't trust NodeList.length while ( ( target[ j++ ] = els[ i++ ] ) ) {} target.length = j - 1; } }; } function Sizzle( selector, context, results, seed ) { var m, i, elem, nid, match, groups, newSelector, newContext = context && context.ownerDocument, // nodeType defaults to 9, since context defaults to document nodeType = context ? context.nodeType : 9; results = results || []; // Return early from calls with invalid selector or context if ( typeof selector !== "string" || !selector || nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { return results; } // Try to shortcut find operations (as opposed to filters) in HTML documents if ( !seed ) { setDocument( context ); context = context || document; if ( documentIsHTML ) { // If the selector is sufficiently simple, try using a "get*By*" DOM method // (excepting DocumentFragment context, where the methods don't exist) if ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) { // ID selector if ( ( m = match[ 1 ] ) ) { // Document context if ( nodeType === 9 ) { if ( ( elem = context.getElementById( m ) ) ) { // Support: IE, Opera, Webkit // TODO: identify versions // getElementById can match elements by name instead of ID if ( elem.id === m ) { results.push( elem ); return results; } } else { return results; } // Element context } else { // Support: IE, Opera, Webkit // TODO: identify versions // getElementById can match elements by name instead of ID if ( newContext && ( elem = newContext.getElementById( m ) ) && contains( context, elem ) && elem.id === m ) { results.push( elem ); return results; } } // Type selector } else if ( match[ 2 ] ) { push.apply( results, context.getElementsByTagName( selector ) ); return results; // Class selector } else if ( ( m = match[ 3 ] ) && support.getElementsByClassName && context.getElementsByClassName ) { push.apply( results, context.getElementsByClassName( m ) ); return results; } } // Take advantage of querySelectorAll if ( support.qsa && !nonnativeSelectorCache[ selector + " " ] && ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) && // Support: IE 8 only // Exclude object elements ( nodeType !== 1 || context.nodeName.toLowerCase() !== "object" ) ) { newSelector = selector; newContext = context; // qSA considers elements outside a scoping root when evaluating child or // descendant combinators, which is not what we want. // In such cases, we work around the behavior by prefixing every selector in the // list with an ID selector referencing the scope context. // The technique has to be used as well when a leading combinator is used // as such selectors are not recognized by querySelectorAll. // Thanks to Andrew Dupont for this technique. if ( nodeType === 1 && ( rdescend.test( selector ) || rcombinators.test( selector ) ) ) { // Expand context for sibling selectors newContext = rsibling.test( selector ) && testContext( context.parentNode ) || context; // We can use :scope instead of the ID hack if the browser // supports it & if we're not changing the context. if ( newContext !== context || !support.scope ) { // Capture the context ID, setting it first if necessary if ( ( nid = context.getAttribute( "id" ) ) ) { nid = nid.replace( rcssescape, fcssescape ); } else { context.setAttribute( "id", ( nid = expando ) ); } } // Prefix every selector in the list groups = tokenize( selector ); i = groups.length; while ( i-- ) { groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " + toSelector( groups[ i ] ); } newSelector = groups.join( "," ); } try { push.apply( results, newContext.querySelectorAll( newSelector ) ); return results; } catch ( qsaError ) { nonnativeSelectorCache( selector, true ); } finally { if ( nid === expando ) { context.removeAttribute( "id" ); } } } } } // All others return select( selector.replace( rtrim, "$1" ), context, results, seed ); } /** * Create key-value caches of limited size * @returns {function(string, object)} Returns the Object data after storing it on itself with * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) * deleting the oldest entry */ function createCache() { var keys = []; function cache( key, value ) { // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) if ( keys.push( key + " " ) > Expr.cacheLength ) { // Only keep the most recent entries delete cache[ keys.shift() ]; } return ( cache[ key + " " ] = value ); } return cache; } /** * Mark a function for special use by Sizzle * @param {Function} fn The function to mark */ function markFunction( fn ) { fn[ expando ] = true; return fn; } /** * Support testing using an element * @param {Function} fn Passed the created element and returns a boolean result */ function assert( fn ) { var el = document.createElement( "fieldset" ); try { return !!fn( el ); } catch ( e ) { return false; } finally { // Remove from its parent by default if ( el.parentNode ) { el.parentNode.removeChild( el ); } // release memory in IE el = null; } } /** * Adds the same handler for all of the specified attrs * @param {String} attrs Pipe-separated list of attributes * @param {Function} handler The method that will be applied */ function addHandle( attrs, handler ) { var arr = attrs.split( "|" ), i = arr.length; while ( i-- ) { Expr.attrHandle[ arr[ i ] ] = handler; } } /** * Checks document order of two siblings * @param {Element} a * @param {Element} b * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b */ function siblingCheck( a, b ) { var cur = b && a, diff = cur && a.nodeType === 1 && b.nodeType === 1 && a.sourceIndex - b.sourceIndex; // Use IE sourceIndex if available on both nodes if ( diff ) { return diff; } // Check if b follows a if ( cur ) { while ( ( cur = cur.nextSibling ) ) { if ( cur === b ) { return -1; } } } return a ? 1 : -1; } /** * Returns a function to use in pseudos for input types * @param {String} type */ function createInputPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === type; }; } /** * Returns a function to use in pseudos for buttons * @param {String} type */ function createButtonPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return ( name === "input" || name === "button" ) && elem.type === type; }; } /** * Returns a function to use in pseudos for :enabled/:disabled * @param {Boolean} disabled true for :disabled; false for :enabled */ function createDisabledPseudo( disabled ) { // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable return function( elem ) { // Only certain elements can match :enabled or :disabled // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled if ( "form" in elem ) { // Check for inherited disabledness on relevant non-disabled elements: // * listed form-associated elements in a disabled fieldset // https://html.spec.whatwg.org/multipage/forms.html#category-listed // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled // * option elements in a disabled optgroup // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled // All such elements have a "form" property. if ( elem.parentNode && elem.disabled === false ) { // Option elements defer to a parent optgroup if present if ( "label" in elem ) { if ( "label" in elem.parentNode ) { return elem.parentNode.disabled === disabled; } else { return elem.disabled === disabled; } } // Support: IE 6 - 11 // Use the isDisabled shortcut property to check for disabled fieldset ancestors return elem.isDisabled === disabled || // Where there is no isDisabled, check manually /* jshint -W018 */ elem.isDisabled !== !disabled && inDisabledFieldset( elem ) === disabled; } return elem.disabled === disabled; // Try to winnow out elements that can't be disabled before trusting the disabled property. // Some victims get caught in our net (label, legend, menu, track), but it shouldn't // even exist on them, let alone have a boolean value. } else if ( "label" in elem ) { return elem.disabled === disabled; } // Remaining elements are neither :enabled nor :disabled return false; }; } /** * Returns a function to use in pseudos for positionals * @param {Function} fn */ function createPositionalPseudo( fn ) { return markFunction( function( argument ) { argument = +argument; return markFunction( function( seed, matches ) { var j, matchIndexes = fn( [], seed.length, argument ), i = matchIndexes.length; // Match elements found at the specified indexes while ( i-- ) { if ( seed[ ( j = matchIndexes[ i ] ) ] ) { seed[ j ] = !( matches[ j ] = seed[ j ] ); } } } ); } ); } /** * Checks a node for validity as a Sizzle context * @param {Element|Object=} context * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value */ function testContext( context ) { return context && typeof context.getElementsByTagName !== "undefined" && context; } // Expose support vars for convenience support = Sizzle.support = {}; /** * Detects XML nodes * @param {Element|Object} elem An element or a document * @returns {Boolean} True iff elem is a non-HTML XML node */ isXML = Sizzle.isXML = function( elem ) { var namespace = elem && elem.namespaceURI, docElem = elem && ( elem.ownerDocument || elem ).documentElement; // Support: IE <=8 // Assume HTML when documentElement doesn't yet exist, such as inside loading iframes // https://bugs.jquery.com/ticket/4833 return !rhtml.test( namespace || docElem && docElem.nodeName || "HTML" ); }; /** * Sets document-related variables once based on the current document * @param {Element|Object} [doc] An element or document object to use to set the document * @returns {Object} Returns the current document */ setDocument = Sizzle.setDocument = function( node ) { var hasCompare, subWindow, doc = node ? node.ownerDocument || node : preferredDoc; // Return early if doc is invalid or already selected // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq if ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) { return document; } // Update global variables document = doc; docElem = document.documentElement; documentIsHTML = !isXML( document ); // Support: IE 9 - 11+, Edge 12 - 18+ // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq if ( preferredDoc != document && ( subWindow = document.defaultView ) && subWindow.top !== subWindow ) { // Support: IE 11, Edge if ( subWindow.addEventListener ) { subWindow.addEventListener( "unload", unloadHandler, false ); // Support: IE 9 - 10 only } else if ( subWindow.attachEvent ) { subWindow.attachEvent( "onunload", unloadHandler ); } } // Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only, // Safari 4 - 5 only, Opera <=11.6 - 12.x only // IE/Edge & older browsers don't support the :scope pseudo-class. // Support: Safari 6.0 only // Safari 6.0 supports :scope but it's an alias of :root there. support.scope = assert( function( el ) { docElem.appendChild( el ).appendChild( document.createElement( "div" ) ); return typeof el.querySelectorAll !== "undefined" && !el.querySelectorAll( ":scope fieldset div" ).length; } ); /* Attributes ---------------------------------------------------------------------- */ // Support: IE<8 // Verify that getAttribute really returns attributes and not properties // (excepting IE8 booleans) support.attributes = assert( function( el ) { el.className = "i"; return !el.getAttribute( "className" ); } ); /* getElement(s)By* ---------------------------------------------------------------------- */ // Check if getElementsByTagName("*") returns only elements support.getElementsByTagName = assert( function( el ) { el.appendChild( document.createComment( "" ) ); return !el.getElementsByTagName( "*" ).length; } ); // Support: IE<9 support.getElementsByClassName = rnative.test( document.getElementsByClassName ); // Support: IE<10 // Check if getElementById returns elements by name // The broken getElementById methods don't pick up programmatically-set names, // so use a roundabout getElementsByName test support.getById = assert( function( el ) { docElem.appendChild( el ).id = expando; return !document.getElementsByName || !document.getElementsByName( expando ).length; } ); // ID filter and find if ( support.getById ) { Expr.filter[ "ID" ] = function( id ) { var attrId = id.replace( runescape, funescape ); return function( elem ) { return elem.getAttribute( "id" ) === attrId; }; }; Expr.find[ "ID" ] = function( id, context ) { if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { var elem = context.getElementById( id ); return elem ? [ elem ] : []; } }; } else { Expr.filter[ "ID" ] = function( id ) { var attrId = id.replace( runescape, funescape ); return function( elem ) { var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode( "id" ); return node && node.value === attrId; }; }; // Support: IE 6 - 7 only // getElementById is not reliable as a find shortcut Expr.find[ "ID" ] = function( id, context ) { if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { var node, i, elems, elem = context.getElementById( id ); if ( elem ) { // Verify the id attribute node = elem.getAttributeNode( "id" ); if ( node && node.value === id ) { return [ elem ]; } // Fall back on getElementsByName elems = context.getElementsByName( id ); i = 0; while ( ( elem = elems[ i++ ] ) ) { node = elem.getAttributeNode( "id" ); if ( node && node.value === id ) { return [ elem ]; } } } return []; } }; } // Tag Expr.find[ "TAG" ] = support.getElementsByTagName ? function( tag, context ) { if ( typeof context.getElementsByTagName !== "undefined" ) { return context.getElementsByTagName( tag ); // DocumentFragment nodes don't have gEBTN } else if ( support.qsa ) { return context.querySelectorAll( tag ); } } : function( tag, context ) { var elem, tmp = [], i = 0, // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too results = context.getElementsByTagName( tag ); // Filter out possible comments if ( tag === "*" ) { while ( ( elem = results[ i++ ] ) ) { if ( elem.nodeType === 1 ) { tmp.push( elem ); } } return tmp; } return results; }; // Class Expr.find[ "CLASS" ] = support.getElementsByClassName && function( className, context ) { if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { return context.getElementsByClassName( className ); } }; /* QSA/matchesSelector ---------------------------------------------------------------------- */ // QSA and matchesSelector support // matchesSelector(:active) reports false when true (IE9/Opera 11.5) rbuggyMatches = []; // qSa(:focus) reports false when true (Chrome 21) // We allow this because of a bug in IE8/9 that throws an error // whenever `document.activeElement` is accessed on an iframe // So, we allow :focus to pass through QSA all the time to avoid the IE error // See https://bugs.jquery.com/ticket/13378 rbuggyQSA = []; if ( ( support.qsa = rnative.test( document.querySelectorAll ) ) ) { // Build QSA regex // Regex strategy adopted from Diego Perini assert( function( el ) { var input; // Select is set to empty string on purpose // This is to test IE's treatment of not explicitly // setting a boolean content attribute, // since its presence should be enough // https://bugs.jquery.com/ticket/12359 docElem.appendChild( el ).innerHTML = "<a id='" + expando + "'></a>" + "<select id='" + expando + "-\r\\' msallowcapture=''>" + "<option selected=''></option></select>"; // Support: IE8, Opera 11-12.16 // Nothing should be selected when empty strings follow ^= or $= or *= // The test attribute must be unknown in Opera but "safe" for WinRT // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section if ( el.querySelectorAll( "[msallowcapture^='']" ).length ) { rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); } // Support: IE8 // Boolean attributes and "value" are not treated correctly if ( !el.querySelectorAll( "[selected]" ).length ) { rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); } // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) { rbuggyQSA.push( "~=" ); } // Support: IE 11+, Edge 15 - 18+ // IE 11/Edge don't find elements on a `[name='']` query in some cases. // Adding a temporary attribute to the document before the selection works // around the issue. // Interestingly, IE 10 & older don't seem to have the issue. input = document.createElement( "input" ); input.setAttribute( "name", "" ); el.appendChild( input ); if ( !el.querySelectorAll( "[name='']" ).length ) { rbuggyQSA.push( "\\[" + whitespace + "*name" + whitespace + "*=" + whitespace + "*(?:''|\"\")" ); } // Webkit/Opera - :checked should return selected option elements // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked // IE8 throws error here and will not see later tests if ( !el.querySelectorAll( ":checked" ).length ) { rbuggyQSA.push( ":checked" ); } // Support: Safari 8+, iOS 8+ // https://bugs.webkit.org/show_bug.cgi?id=136851 // In-page `selector#id sibling-combinator selector` fails if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) { rbuggyQSA.push( ".#.+[+~]" ); } // Support: Firefox <=3.6 - 5 only // Old Firefox doesn't throw on a badly-escaped identifier. el.querySelectorAll( "\\\f" ); rbuggyQSA.push( "[\\r\\n\\f]" ); } ); assert( function( el ) { el.innerHTML = "<a href='' disabled='disabled'></a>" + "<select disabled='disabled'><option/></select>"; // Support: Windows 8 Native Apps // The type and name attributes are restricted during .innerHTML assignment var input = document.createElement( "input" ); input.setAttribute( "type", "hidden" ); el.appendChild( input ).setAttribute( "name", "D" ); // Support: IE8 // Enforce case-sensitivity of name attribute if ( el.querySelectorAll( "[name=d]" ).length ) { rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); } // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) // IE8 throws error here and will not see later tests if ( el.querySelectorAll( ":enabled" ).length !== 2 ) { rbuggyQSA.push( ":enabled", ":disabled" ); } // Support: IE9-11+ // IE's :disabled selector does not pick up the children of disabled fieldsets docElem.appendChild( el ).disabled = true; if ( el.querySelectorAll( ":disabled" ).length !== 2 ) { rbuggyQSA.push( ":enabled", ":disabled" ); } // Support: Opera 10 - 11 only // Opera 10-11 does not throw on post-comma invalid pseudos el.querySelectorAll( "*,:x" ); rbuggyQSA.push( ",.*:" ); } ); } if ( ( support.matchesSelector = rnative.test( ( matches = docElem.matches || docElem.webkitMatchesSelector || docElem.mozMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector ) ) ) ) { assert( function( el ) { // Check to see if it's possible to do matchesSelector // on a disconnected node (IE 9) support.disconnectedMatch = matches.call( el, "*" ); // This should fail with an exception // Gecko does not error, returns false instead matches.call( el, "[s!='']:x" ); rbuggyMatches.push( "!=", pseudos ); } ); } rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( "|" ) ); rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join( "|" ) ); /* Contains ---------------------------------------------------------------------- */ hasCompare = rnative.test( docElem.compareDocumentPosition ); // Element contains another // Purposefully self-exclusive // As in, an element does not contain itself contains = hasCompare || rnative.test( docElem.contains ) ? function( a, b ) { var adown = a.nodeType === 9 ? a.documentElement : a, bup = b && b.parentNode; return a === bup || !!( bup && bup.nodeType === 1 && ( adown.contains ? adown.contains( bup ) : a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 ) ); } : function( a, b ) { if ( b ) { while ( ( b = b.parentNode ) ) { if ( b === a ) { return true; } } } return false; }; /* Sorting ---------------------------------------------------------------------- */ // Document order sorting sortOrder = hasCompare ? function( a, b ) { // Flag for duplicate removal if ( a === b ) { hasDuplicate = true; return 0; } // Sort on method existence if only one input has compareDocumentPosition var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; if ( compare ) { return compare; } // Calculate position if both inputs belong to the same document // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq compare = ( a.ownerDocument || a ) == ( b.ownerDocument || b ) ? a.compareDocumentPosition( b ) : // Otherwise we know they are disconnected 1; // Disconnected nodes if ( compare & 1 || ( !support.sortDetached && b.compareDocumentPosition( a ) === compare ) ) { // Choose the first element that is related to our preferred document // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq if ( a == document || a.ownerDocument == preferredDoc && contains( preferredDoc, a ) ) { return -1; } // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq if ( b == document || b.ownerDocument == preferredDoc && contains( preferredDoc, b ) ) { return 1; } // Maintain original order return sortInput ? ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : 0; } return compare & 4 ? -1 : 1; } : function( a, b ) { // Exit early if the nodes are identical if ( a === b ) { hasDuplicate = true; return 0; } var cur, i = 0, aup = a.parentNode, bup = b.parentNode, ap = [ a ], bp = [ b ]; // Parentless nodes are either documents or disconnected if ( !aup || !bup ) { // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. /* eslint-disable eqeqeq */ return a == document ? -1 : b == document ? 1 : /* eslint-enable eqeqeq */ aup ? -1 : bup ? 1 : sortInput ? ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : 0; // If the nodes are siblings, we can do a quick check } else if ( aup === bup ) { return siblingCheck( a, b ); } // Otherwise we need full lists of their ancestors for comparison cur = a; while ( ( cur = cur.parentNode ) ) { ap.unshift( cur ); } cur = b; while ( ( cur = cur.parentNode ) ) { bp.unshift( cur ); } // Walk down the tree looking for a discrepancy while ( ap[ i ] === bp[ i ] ) { i++; } return i ? // Do a sibling check if the nodes have a common ancestor siblingCheck( ap[ i ], bp[ i ] ) : // Otherwise nodes in our document sort first // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. /* eslint-disable eqeqeq */ ap[ i ] == preferredDoc ? -1 : bp[ i ] == preferredDoc ? 1 : /* eslint-enable eqeqeq */ 0; }; return document; }; Sizzle.matches = function( expr, elements ) { return Sizzle( expr, null, null, elements ); }; Sizzle.matchesSelector = function( elem, expr ) { setDocument( elem ); if ( support.matchesSelector && documentIsHTML && !nonnativeSelectorCache[ expr + " " ] && ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { try { var ret = matches.call( elem, expr ); // IE 9's matchesSelector returns false on disconnected nodes if ( ret || support.disconnectedMatch || // As well, disconnected nodes are said to be in a document // fragment in IE 9 elem.document && elem.document.nodeType !== 11 ) { return ret; } } catch ( e ) { nonnativeSelectorCache( expr, true ); } } return Sizzle( expr, document, null, [ elem ] ).length > 0; }; Sizzle.contains = function( context, elem ) { // Set document vars if needed // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq if ( ( context.ownerDocument || context ) != document ) { setDocument( context ); } return contains( context, elem ); }; Sizzle.attr = function( elem, name ) { // Set document vars if needed // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq if ( ( elem.ownerDocument || elem ) != document ) { setDocument( elem ); } var fn = Expr.attrHandle[ name.toLowerCase() ], // Don't get fooled by Object.prototype properties (jQuery #13807) val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? fn( elem, name, !documentIsHTML ) : undefined; return val !== undefined ? val : support.attributes || !documentIsHTML ? elem.getAttribute( name ) : ( val = elem.getAttributeNode( name ) ) && val.specified ? val.value : null; }; Sizzle.escape = function( sel ) { return ( sel + "" ).replace( rcssescape, fcssescape ); }; Sizzle.error = function( msg ) { throw new Error( "Syntax error, unrecognized expression: " + msg ); }; /** * Document sorting and removing duplicates * @param {ArrayLike} results */ Sizzle.uniqueSort = function( results ) { var elem, duplicates = [], j = 0, i = 0; // Unless we *know* we can detect duplicates, assume their presence hasDuplicate = !support.detectDuplicates; sortInput = !support.sortStable && results.slice( 0 ); results.sort( sortOrder ); if ( hasDuplicate ) { while ( ( elem = results[ i++ ] ) ) { if ( elem === results[ i ] ) { j = duplicates.push( i ); } } while ( j-- ) { results.splice( duplicates[ j ], 1 ); } } // Clear input after sorting to release objects // See https://github.com/jquery/sizzle/pull/225 sortInput = null; return results; }; /** * Utility function for retrieving the text value of an array of DOM nodes * @param {Array|Element} elem */ getText = Sizzle.getText = function( elem ) { var node, ret = "", i = 0, nodeType = elem.nodeType; if ( !nodeType ) { // If no nodeType, this is expected to be an array while ( ( node = elem[ i++ ] ) ) { // Do not traverse comment nodes ret += getText( node ); } } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { // Use textContent for elements // innerText usage removed for consistency of new lines (jQuery #11153) if ( typeof elem.textContent === "string" ) { return elem.textContent; } else { // Traverse its children for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { ret += getText( elem ); } } } else if ( nodeType === 3 || nodeType === 4 ) { return elem.nodeValue; } // Do not include comment or processing instruction nodes return ret; }; Expr = Sizzle.selectors = { // Can be adjusted by the user cacheLength: 50, createPseudo: markFunction, match: matchExpr, attrHandle: {}, find: {}, relative: { ">": { dir: "parentNode", first: true }, " ": { dir: "parentNode" }, "+": { dir: "previousSibling", first: true }, "~": { dir: "previousSibling" } }, preFilter: { "ATTR": function( match ) { match[ 1 ] = match[ 1 ].replace( runescape, funescape ); // Move the given value to match[3] whether quoted or unquoted match[ 3 ] = ( match[ 3 ] || match[ 4 ] || match[ 5 ] || "" ).replace( runescape, funescape ); if ( match[ 2 ] === "~=" ) { match[ 3 ] = " " + match[ 3 ] + " "; } return match.slice( 0, 4 ); }, "CHILD": function( match ) { /* matches from matchExpr["CHILD"] 1 type (only|nth|...) 2 what (child|of-type) 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) 4 xn-component of xn+y argument ([+-]?\d*n|) 5 sign of xn-component 6 x of xn-component 7 sign of y-component 8 y of y-component */ match[ 1 ] = match[ 1 ].toLowerCase(); if ( match[ 1 ].slice( 0, 3 ) === "nth" ) { // nth-* requires argument if ( !match[ 3 ] ) { Sizzle.error( match[ 0 ] ); } // numeric x and y parameters for Expr.filter.CHILD // remember that false/true cast respectively to 0/1 match[ 4 ] = +( match[ 4 ] ? match[ 5 ] + ( match[ 6 ] || 1 ) : 2 * ( match[ 3 ] === "even" || match[ 3 ] === "odd" ) ); match[ 5 ] = +( ( match[ 7 ] + match[ 8 ] ) || match[ 3 ] === "odd" ); // other types prohibit arguments } else if ( match[ 3 ] ) { Sizzle.error( match[ 0 ] ); } return match; }, "PSEUDO": function( match ) { var excess, unquoted = !match[ 6 ] && match[ 2 ]; if ( matchExpr[ "CHILD" ].test( match[ 0 ] ) ) { return null; } // Accept quoted arguments as-is if ( match[ 3 ] ) { match[ 2 ] = match[ 4 ] || match[ 5 ] || ""; // Strip excess characters from unquoted arguments } else if ( unquoted && rpseudo.test( unquoted ) && // Get excess from tokenize (recursively) ( excess = tokenize( unquoted, true ) ) && // advance to the next closing parenthesis ( excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length ) ) { // excess is a negative index match[ 0 ] = match[ 0 ].slice( 0, excess ); match[ 2 ] = unquoted.slice( 0, excess ); } // Return only captures needed by the pseudo filter method (type and argument) return match.slice( 0, 3 ); } }, filter: { "TAG": function( nodeNameSelector ) { var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); return nodeNameSelector === "*" ? function() { return true; } : function( elem ) { return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; }; }, "CLASS": function( className ) { var pattern = classCache[ className + " " ]; return pattern || ( pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" ) ) && classCache( className, function( elem ) { return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute( "class" ) || "" ); } ); }, "ATTR": function( name, operator, check ) { return function( elem ) { var result = Sizzle.attr( elem, name ); if ( result == null ) { return operator === "!="; } if ( !operator ) { return true; } result += ""; /* eslint-disable max-len */ return operator === "=" ? result === check : operator === "!=" ? result !== check : operator === "^=" ? check && result.indexOf( check ) === 0 : operator === "*=" ? check && result.indexOf( check ) > -1 : operator === "$=" ? check && result.slice( -check.length ) === check : operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : false; /* eslint-enable max-len */ }; }, "CHILD": function( type, what, _argument, first, last ) { var simple = type.slice( 0, 3 ) !== "nth", forward = type.slice( -4 ) !== "last", ofType = what === "of-type"; return first === 1 && last === 0 ? // Shortcut for :nth-*(n) function( elem ) { return !!elem.parentNode; } : function( elem, _context, xml ) { var cache, uniqueCache, outerCache, node, nodeIndex, start, dir = simple !== forward ? "nextSibling" : "previousSibling", parent = elem.parentNode, name = ofType && elem.nodeName.toLowerCase(), useCache = !xml && !ofType, diff = false; if ( parent ) { // :(first|last|only)-(child|of-type) if ( simple ) { while ( dir ) { node = elem; while ( ( node = node[ dir ] ) ) { if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { return false; } } // Reverse direction for :only-* (if we haven't yet done so) start = dir = type === "only" && !start && "nextSibling"; } return true; } start = [ forward ? parent.firstChild : parent.lastChild ]; // non-xml :nth-child(...) stores cache data on `parent` if ( forward && useCache ) { // Seek `elem` from a previously-cached index // ...in a gzip-friendly way node = parent; outerCache = node[ expando ] || ( node[ expando ] = {} ); // Support: IE <9 only // Defend against cloned attroperties (jQuery gh-1709) uniqueCache = outerCache[ node.uniqueID ] || ( outerCache[ node.uniqueID ] = {} ); cache = uniqueCache[ type ] || []; nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; diff = nodeIndex && cache[ 2 ]; node = nodeIndex && parent.childNodes[ nodeIndex ]; while ( ( node = ++nodeIndex && node && node[ dir ] || // Fallback to seeking `elem` from the start ( diff = nodeIndex = 0 ) || start.pop() ) ) { // When found, cache indexes on `parent` and break if ( node.nodeType === 1 && ++diff && node === elem ) { uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; break; } } } else { // Use previously-cached element index if available if ( useCache ) { // ...in a gzip-friendly way node = elem; outerCache = node[ expando ] || ( node[ expando ] = {} ); // Support: IE <9 only // Defend against cloned attroperties (jQuery gh-1709) uniqueCache = outerCache[ node.uniqueID ] || ( outerCache[ node.uniqueID ] = {} ); cache = uniqueCache[ type ] || []; nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; diff = nodeIndex; } // xml :nth-child(...) // or :nth-last-child(...) or :nth(-last)?-of-type(...) if ( diff === false ) { // Use the same loop as above to seek `elem` from the start while ( ( node = ++nodeIndex && node && node[ dir ] || ( diff = nodeIndex = 0 ) || start.pop() ) ) { if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { // Cache the index of each encountered element if ( useCache ) { outerCache = node[ expando ] || ( node[ expando ] = {} ); // Support: IE <9 only // Defend against cloned attroperties (jQuery gh-1709) uniqueCache = outerCache[ node.uniqueID ] || ( outerCache[ node.uniqueID ] = {} ); uniqueCache[ type ] = [ dirruns, diff ]; } if ( node === elem ) { break; } } } } } // Incorporate the offset, then check against cycle size diff -= last; return diff === first || ( diff % first === 0 && diff / first >= 0 ); } }; }, "PSEUDO": function( pseudo, argument ) { // pseudo-class names are case-insensitive // http://www.w3.org/TR/selectors/#pseudo-classes // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters // Remember that setFilters inherits from pseudos var args, fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || Sizzle.error( "unsupported pseudo: " + pseudo ); // The user may use createPseudo to indicate that // arguments are needed to create the filter function // just as Sizzle does if ( fn[ expando ] ) { return fn( argument ); } // But maintain support for old signatures if ( fn.length > 1 ) { args = [ pseudo, pseudo, "", argument ]; return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? markFunction( function( seed, matches ) { var idx, matched = fn( seed, argument ), i = matched.length; while ( i-- ) { idx = indexOf( seed, matched[ i ] ); seed[ idx ] = !( matches[ idx ] = matched[ i ] ); } } ) : function( elem ) { return fn( elem, 0, args ); }; } return fn; } }, pseudos: { // Potentially complex pseudos "not": markFunction( function( selector ) { // Trim the selector passed to compile // to avoid treating leading and trailing // spaces as combinators var input = [], results = [], matcher = compile( selector.replace( rtrim, "$1" ) ); return matcher[ expando ] ? markFunction( function( seed, matches, _context, xml ) { var elem, unmatched = matcher( seed, null, xml, [] ), i = seed.length; // Match elements unmatched by `matcher` while ( i-- ) { if ( ( elem = unmatched[ i ] ) ) { seed[ i ] = !( matches[ i ] = elem ); } } } ) : function( elem, _context, xml ) { input[ 0 ] = elem; matcher( input, null, xml, results ); // Don't keep the element (issue #299) input[ 0 ] = null; return !results.pop(); }; } ), "has": markFunction( function( selector ) { return function( elem ) { return Sizzle( selector, elem ).length > 0; }; } ), "contains": markFunction( function( text ) { text = text.replace( runescape, funescape ); return function( elem ) { return ( elem.textContent || getText( elem ) ).indexOf( text ) > -1; }; } ), // "Whether an element is represented by a :lang() selector // is based solely on the element's language value // being equal to the identifier C, // or beginning with the identifier C immediately followed by "-". // The matching of C against the element's language value is performed case-insensitively. // The identifier C does not have to be a valid language name." // http://www.w3.org/TR/selectors/#lang-pseudo "lang": markFunction( function( lang ) { // lang value must be a valid identifier if ( !ridentifier.test( lang || "" ) ) { Sizzle.error( "unsupported lang: " + lang ); } lang = lang.replace( runescape, funescape ).toLowerCase(); return function( elem ) { var elemLang; do { if ( ( elemLang = documentIsHTML ? elem.lang : elem.getAttribute( "xml:lang" ) || elem.getAttribute( "lang" ) ) ) { elemLang = elemLang.toLowerCase(); return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; } } while ( ( elem = elem.parentNode ) && elem.nodeType === 1 ); return false; }; } ), // Miscellaneous "target": function( elem ) { var hash = window.location && window.location.hash; return hash && hash.slice( 1 ) === elem.id; }, "root": function( elem ) { return elem === docElem; }, "focus": function( elem ) { return elem === document.activeElement && ( !document.hasFocus || document.hasFocus() ) && !!( elem.type || elem.href || ~elem.tabIndex ); }, // Boolean properties "enabled": createDisabledPseudo( false ), "disabled": createDisabledPseudo( true ), "checked": function( elem ) { // In CSS3, :checked should return both checked and selected elements // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked var nodeName = elem.nodeName.toLowerCase(); return ( nodeName === "input" && !!elem.checked ) || ( nodeName === "option" && !!elem.selected ); }, "selected": function( elem ) { // Accessing this property makes selected-by-default // options in Safari work properly if ( elem.parentNode ) { // eslint-disable-next-line no-unused-expressions elem.parentNode.selectedIndex; } return elem.selected === true; }, // Contents "empty": function( elem ) { // http://www.w3.org/TR/selectors/#empty-pseudo // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), // but not by others (comment: 8; processing instruction: 7; etc.) // nodeType < 6 works because attributes (2) do not appear as children for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { if ( elem.nodeType < 6 ) { return false; } } return true; }, "parent": function( elem ) { return !Expr.pseudos[ "empty" ]( elem ); }, // Element/input types "header": function( elem ) { return rheader.test( elem.nodeName ); }, "input": function( elem ) { return rinputs.test( elem.nodeName ); }, "button": function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === "button" || name === "button"; }, "text": function( elem ) { var attr; return elem.nodeName.toLowerCase() === "input" && elem.type === "text" && // Support: IE<8 // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" ( ( attr = elem.getAttribute( "type" ) ) == null || attr.toLowerCase() === "text" ); }, // Position-in-collection "first": createPositionalPseudo( function() { return [ 0 ]; } ), "last": createPositionalPseudo( function( _matchIndexes, length ) { return [ length - 1 ]; } ), "eq": createPositionalPseudo( function( _matchIndexes, length, argument ) { return [ argument < 0 ? argument + length : argument ]; } ), "even": createPositionalPseudo( function( matchIndexes, length ) { var i = 0; for ( ; i < length; i += 2 ) { matchIndexes.push( i ); } return matchIndexes; } ), "odd": createPositionalPseudo( function( matchIndexes, length ) { var i = 1; for ( ; i < length; i += 2 ) { matchIndexes.push( i ); } return matchIndexes; } ), "lt": createPositionalPseudo( function( matchIndexes, length, argument ) { var i = argument < 0 ? argument + length : argument > length ? length : argument; for ( ; --i >= 0; ) { matchIndexes.push( i ); } return matchIndexes; } ), "gt": createPositionalPseudo( function( matchIndexes, length, argument ) { var i = argument < 0 ? argument + length : argument; for ( ; ++i < length; ) { matchIndexes.push( i ); } return matchIndexes; } ) } }; Expr.pseudos[ "nth" ] = Expr.pseudos[ "eq" ]; // Add button/input type pseudos for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { Expr.pseudos[ i ] = createInputPseudo( i ); } for ( i in { submit: true, reset: true } ) { Expr.pseudos[ i ] = createButtonPseudo( i ); } // Easy API for creating new setFilters function setFilters() {} setFilters.prototype = Expr.filters = Expr.pseudos; Expr.setFilters = new setFilters(); tokenize = Sizzle.tokenize = function( selector, parseOnly ) { var matched, match, tokens, type, soFar, groups, preFilters, cached = tokenCache[ selector + " " ]; if ( cached ) { return parseOnly ? 0 : cached.slice( 0 ); } soFar = selector; groups = []; preFilters = Expr.preFilter; while ( soFar ) { // Comma and first run if ( !matched || ( match = rcomma.exec( soFar ) ) ) { if ( match ) { // Don't consume trailing commas as valid soFar = soFar.slice( match[ 0 ].length ) || soFar; } groups.push( ( tokens = [] ) ); } matched = false; // Combinators if ( ( match = rcombinators.exec( soFar ) ) ) { matched = match.shift(); tokens.push( { value: matched, // Cast descendant combinators to space type: match[ 0 ].replace( rtrim, " " ) } ); soFar = soFar.slice( matched.length ); } // Filters for ( type in Expr.filter ) { if ( ( match = matchExpr[ type ].exec( soFar ) ) && ( !preFilters[ type ] || ( match = preFilters[ type ]( match ) ) ) ) { matched = match.shift(); tokens.push( { value: matched, type: type, matches: match } ); soFar = soFar.slice( matched.length ); } } if ( !matched ) { break; } } // Return the length of the invalid excess // if we're just parsing // Otherwise, throw an error or return tokens return parseOnly ? soFar.length : soFar ? Sizzle.error( selector ) : // Cache the tokens tokenCache( selector, groups ).slice( 0 ); }; function toSelector( tokens ) { var i = 0, len = tokens.length, selector = ""; for ( ; i < len; i++ ) { selector += tokens[ i ].value; } return selector; } function addCombinator( matcher, combinator, base ) { var dir = combinator.dir, skip = combinator.next, key = skip || dir, checkNonElements = base && key === "parentNode", doneName = done++; return combinator.first ? // Check against closest ancestor/preceding element function( elem, context, xml ) { while ( ( elem = elem[ dir ] ) ) { if ( elem.nodeType === 1 || checkNonElements ) { return matcher( elem, context, xml ); } } return false; } : // Check against all ancestor/preceding elements function( elem, context, xml ) { var oldCache, uniqueCache, outerCache, newCache = [ dirruns, doneName ]; // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching if ( xml ) { while ( ( elem = elem[ dir ] ) ) { if ( elem.nodeType === 1 || checkNonElements ) { if ( matcher( elem, context, xml ) ) { return true; } } } } else { while ( ( elem = elem[ dir ] ) ) { if ( elem.nodeType === 1 || checkNonElements ) { outerCache = elem[ expando ] || ( elem[ expando ] = {} ); // Support: IE <9 only // Defend against cloned attroperties (jQuery gh-1709) uniqueCache = outerCache[ elem.uniqueID ] || ( outerCache[ elem.uniqueID ] = {} ); if ( skip && skip === elem.nodeName.toLowerCase() ) { elem = elem[ dir ] || elem; } else if ( ( oldCache = uniqueCache[ key ] ) && oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { // Assign to newCache so results back-propagate to previous elements return ( newCache[ 2 ] = oldCache[ 2 ] ); } else { // Reuse newcache so results back-propagate to previous elements uniqueCache[ key ] = newCache; // A match means we're done; a fail means we have to keep checking if ( ( newCache[ 2 ] = matcher( elem, context, xml ) ) ) { return true; } } } } } return false; }; } function elementMatcher( matchers ) { return matchers.length > 1 ? function( elem, context, xml ) { var i = matchers.length; while ( i-- ) { if ( !matchers[ i ]( elem, context, xml ) ) { return false; } } return true; } : matchers[ 0 ]; } function multipleContexts( selector, contexts, results ) { var i = 0, len = contexts.length; for ( ; i < len; i++ ) { Sizzle( selector, contexts[ i ], results ); } return results; } function condense( unmatched, map, filter, context, xml ) { var elem, newUnmatched = [], i = 0, len = unmatched.length, mapped = map != null; for ( ; i < len; i++ ) { if ( ( elem = unmatched[ i ] ) ) { if ( !filter || filter( elem, context, xml ) ) { newUnmatched.push( elem ); if ( mapped ) { map.push( i ); } } } } return newUnmatched; } function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { if ( postFilter && !postFilter[ expando ] ) { postFilter = setMatcher( postFilter ); } if ( postFinder && !postFinder[ expando ] ) { postFinder = setMatcher( postFinder, postSelector ); } return markFunction( function( seed, results, context, xml ) { var temp, i, elem, preMap = [], postMap = [], preexisting = results.length, // Get initial elements from seed or context elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), // Prefilter to get matcher input, preserving a map for seed-results synchronization matcherIn = preFilter && ( seed || !selector ) ? condense( elems, preMap, preFilter, context, xml ) : elems, matcherOut = matcher ? // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, postFinder || ( seed ? preFilter : preexisting || postFilter ) ? // ...intermediate processing is necessary [] : // ...otherwise use results directly results : matcherIn; // Find primary matches if ( matcher ) { matcher( matcherIn, matcherOut, context, xml ); } // Apply postFilter if ( postFilter ) { temp = condense( matcherOut, postMap ); postFilter( temp, [], context, xml ); // Un-match failing elements by moving them back to matcherIn i = temp.length; while ( i-- ) { if ( ( elem = temp[ i ] ) ) { matcherOut[ postMap[ i ] ] = !( matcherIn[ postMap[ i ] ] = elem ); } } } if ( seed ) { if ( postFinder || preFilter ) { if ( postFinder ) { // Get the final matcherOut by condensing this intermediate into postFinder contexts temp = []; i = matcherOut.length; while ( i-- ) { if ( ( elem = matcherOut[ i ] ) ) { // Restore matcherIn since elem is not yet a final match temp.push( ( matcherIn[ i ] = elem ) ); } } postFinder( null, ( matcherOut = [] ), temp, xml ); } // Move matched elements from seed to results to keep them synchronized i = matcherOut.length; while ( i-- ) { if ( ( elem = matcherOut[ i ] ) && ( temp = postFinder ? indexOf( seed, elem ) : preMap[ i ] ) > -1 ) { seed[ temp ] = !( results[ temp ] = elem ); } } } // Add elements to results, through postFinder if defined } else { matcherOut = condense( matcherOut === results ? matcherOut.splice( preexisting, matcherOut.length ) : matcherOut ); if ( postFinder ) { postFinder( null, results, matcherOut, xml ); } else { push.apply( results, matcherOut ); } } } ); } function matcherFromTokens( tokens ) { var checkContext, matcher, j, len = tokens.length, leadingRelative = Expr.relative[ tokens[ 0 ].type ], implicitRelative = leadingRelative || Expr.relative[ " " ], i = leadingRelative ? 1 : 0, // The foundational matcher ensures that elements are reachable from top-level context(s) matchContext = addCombinator( function( elem ) { return elem === checkContext; }, implicitRelative, true ), matchAnyContext = addCombinator( function( elem ) { return indexOf( checkContext, elem ) > -1; }, implicitRelative, true ), matchers = [ function( elem, context, xml ) { var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( ( checkContext = context ).nodeType ? matchContext( elem, context, xml ) : matchAnyContext( elem, context, xml ) ); // Avoid hanging onto element (issue #299) checkContext = null; return ret; } ]; for ( ; i < len; i++ ) { if ( ( matcher = Expr.relative[ tokens[ i ].type ] ) ) { matchers = [ addCombinator( elementMatcher( matchers ), matcher ) ]; } else { matcher = Expr.filter[ tokens[ i ].type ].apply( null, tokens[ i ].matches ); // Return special upon seeing a positional matcher if ( matcher[ expando ] ) { // Find the next relative operator (if any) for proper handling j = ++i; for ( ; j < len; j++ ) { if ( Expr.relative[ tokens[ j ].type ] ) { break; } } return setMatcher( i > 1 && elementMatcher( matchers ), i > 1 && toSelector( // If the preceding token was a descendant combinator, insert an implicit any-element `*` tokens .slice( 0, i - 1 ) .concat( { value: tokens[ i - 2 ].type === " " ? "*" : "" } ) ).replace( rtrim, "$1" ), matcher, i < j && matcherFromTokens( tokens.slice( i, j ) ), j < len && matcherFromTokens( ( tokens = tokens.slice( j ) ) ), j < len && toSelector( tokens ) ); } matchers.push( matcher ); } } return elementMatcher( matchers ); } function matcherFromGroupMatchers( elementMatchers, setMatchers ) { var bySet = setMatchers.length > 0, byElement = elementMatchers.length > 0, superMatcher = function( seed, context, xml, results, outermost ) { var elem, j, matcher, matchedCount = 0, i = "0", unmatched = seed && [], setMatched = [], contextBackup = outermostContext, // We must always have either seed elements or outermost context elems = seed || byElement && Expr.find[ "TAG" ]( "*", outermost ), // Use integer dirruns iff this is the outermost matcher dirrunsUnique = ( dirruns += contextBackup == null ? 1 : Math.random() || 0.1 ), len = elems.length; if ( outermost ) { // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq outermostContext = context == document || context || outermost; } // Add elements passing elementMatchers directly to results // Support: IE<9, Safari // Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id for ( ; i !== len && ( elem = elems[ i ] ) != null; i++ ) { if ( byElement && elem ) { j = 0; // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq if ( !context && elem.ownerDocument != document ) { setDocument( elem ); xml = !documentIsHTML; } while ( ( matcher = elementMatchers[ j++ ] ) ) { if ( matcher( elem, context || document, xml ) ) { results.push( elem ); break; } } if ( outermost ) { dirruns = dirrunsUnique; } } // Track unmatched elements for set filters if ( bySet ) { // They will have gone through all possible matchers if ( ( elem = !matcher && elem ) ) { matchedCount--; } // Lengthen the array for every element, matched or not if ( seed ) { unmatched.push( elem ); } } } // `i` is now the count of elements visited above, and adding it to `matchedCount` // makes the latter nonnegative. matchedCount += i; // Apply set filters to unmatched elements // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` // equals `i`), unless we didn't visit _any_ elements in the above loop because we have // no element matchers and no seed. // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that // case, which will result in a "00" `matchedCount` that differs from `i` but is also // numerically zero. if ( bySet && i !== matchedCount ) { j = 0; while ( ( matcher = setMatchers[ j++ ] ) ) { matcher( unmatched, setMatched, context, xml ); } if ( seed ) { // Reintegrate element matches to eliminate the need for sorting if ( matchedCount > 0 ) { while ( i-- ) { if ( !( unmatched[ i ] || setMatched[ i ] ) ) { setMatched[ i ] = pop.call( results ); } } } // Discard index placeholder values to get only actual matches setMatched = condense( setMatched ); } // Add matches to results push.apply( results, setMatched ); // Seedless set matches succeeding multiple successful matchers stipulate sorting if ( outermost && !seed && setMatched.length > 0 && ( matchedCount + setMatchers.length ) > 1 ) { Sizzle.uniqueSort( results ); } } // Override manipulation of globals by nested matchers if ( outermost ) { dirruns = dirrunsUnique; outermostContext = contextBackup; } return unmatched; }; return bySet ? markFunction( superMatcher ) : superMatcher; } compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { var i, setMatchers = [], elementMatchers = [], cached = compilerCache[ selector + " " ]; if ( !cached ) { // Generate a function of recursive functions that can be used to check each element if ( !match ) { match = tokenize( selector ); } i = match.length; while ( i-- ) { cached = matcherFromTokens( match[ i ] ); if ( cached[ expando ] ) { setMatchers.push( cached ); } else { elementMatchers.push( cached ); } } // Cache the compiled function cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); // Save selector and tokenization cached.selector = selector; } return cached; }; /** * A low-level selection function that works with Sizzle's compiled * selector functions * @param {String|Function} selector A selector or a pre-compiled * selector function built with Sizzle.compile * @param {Element} context * @param {Array} [results] * @param {Array} [seed] A set of elements to match against */ select = Sizzle.select = function( selector, context, results, seed ) { var i, tokens, token, type, find, compiled = typeof selector === "function" && selector, match = !seed && tokenize( ( selector = compiled.selector || selector ) ); results = results || []; // Try to minimize operations if there is only one selector in the list and no seed // (the latter of which guarantees us context) if ( match.length === 1 ) { // Reduce context if the leading compound selector is an ID tokens = match[ 0 ] = match[ 0 ].slice( 0 ); if ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === "ID" && context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) { context = ( Expr.find[ "ID" ]( token.matches[ 0 ] .replace( runescape, funescape ), context ) || [] )[ 0 ]; if ( !context ) { return results; // Precompiled matchers will still verify ancestry, so step up a level } else if ( compiled ) { context = context.parentNode; } selector = selector.slice( tokens.shift().value.length ); } // Fetch a seed set for right-to-left matching i = matchExpr[ "needsContext" ].test( selector ) ? 0 : tokens.length; while ( i-- ) { token = tokens[ i ]; // Abort if we hit a combinator if ( Expr.relative[ ( type = token.type ) ] ) { break; } if ( ( find = Expr.find[ type ] ) ) { // Search, expanding context for leading sibling combinators if ( ( seed = find( token.matches[ 0 ].replace( runescape, funescape ), rsibling.test( tokens[ 0 ].type ) && testContext( context.parentNode ) || context ) ) ) { // If seed is empty or no tokens remain, we can return early tokens.splice( i, 1 ); selector = seed.length && toSelector( tokens ); if ( !selector ) { push.apply( results, seed ); return results; } break; } } } } // Compile and execute a filtering function if one is not provided // Provide `match` to avoid retokenization if we modified the selector above ( compiled || compile( selector, match ) )( seed, context, !documentIsHTML, results, !context || rsibling.test( selector ) && testContext( context.parentNode ) || context ); return results; }; // One-time assignments // Sort stability support.sortStable = expando.split( "" ).sort( sortOrder ).join( "" ) === expando; // Support: Chrome 14-35+ // Always assume duplicates if they aren't passed to the comparison function support.detectDuplicates = !!hasDuplicate; // Initialize against the default document setDocument(); // Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) // Detached nodes confoundingly follow *each other* support.sortDetached = assert( function( el ) { // Should return 1, but returns 4 (following) return el.compareDocumentPosition( document.createElement( "fieldset" ) ) & 1; } ); // Support: IE<8 // Prevent attribute/property "interpolation" // https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx if ( !assert( function( el ) { el.innerHTML = "<a href='#'></a>"; return el.firstChild.getAttribute( "href" ) === "#"; } ) ) { addHandle( "type|href|height|width", function( elem, name, isXML ) { if ( !isXML ) { return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); } } ); } // Support: IE<9 // Use defaultValue in place of getAttribute("value") if ( !support.attributes || !assert( function( el ) { el.innerHTML = "<input/>"; el.firstChild.setAttribute( "value", "" ); return el.firstChild.getAttribute( "value" ) === ""; } ) ) { addHandle( "value", function( elem, _name, isXML ) { if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { return elem.defaultValue; } } ); } // Support: IE<9 // Use getAttributeNode to fetch booleans when getAttribute lies if ( !assert( function( el ) { return el.getAttribute( "disabled" ) == null; } ) ) { addHandle( booleans, function( elem, name, isXML ) { var val; if ( !isXML ) { return elem[ name ] === true ? name.toLowerCase() : ( val = elem.getAttributeNode( name ) ) && val.specified ? val.value : null; } } ); } return Sizzle; } )( window ); jQuery.find = Sizzle; jQuery.expr = Sizzle.selectors; // Deprecated jQuery.expr[ ":" ] = jQuery.expr.pseudos; jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; jQuery.text = Sizzle.getText; jQuery.isXMLDoc = Sizzle.isXML; jQuery.contains = Sizzle.contains; jQuery.escapeSelector = Sizzle.escape; var dir = function( elem, dir, until ) { var matched = [], truncate = until !== undefined; while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { if ( elem.nodeType === 1 ) { if ( truncate && jQuery( elem ).is( until ) ) { break; } matched.push( elem ); } } return matched; }; var siblings = function( n, elem ) { var matched = []; for ( ; n; n = n.nextSibling ) { if ( n.nodeType === 1 && n !== elem ) { matched.push( n ); } } return matched; }; var rneedsContext = jQuery.expr.match.needsContext; function nodeName( elem, name ) { return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); } var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); // Implement the identical functionality for filter and not function winnow( elements, qualifier, not ) { if ( isFunction( qualifier ) ) { return jQuery.grep( elements, function( elem, i ) { return !!qualifier.call( elem, i, elem ) !== not; } ); } // Single element if ( qualifier.nodeType ) { return jQuery.grep( elements, function( elem ) { return ( elem === qualifier ) !== not; } ); } // Arraylike of elements (jQuery, arguments, Array) if ( typeof qualifier !== "string" ) { return jQuery.grep( elements, function( elem ) { return ( indexOf.call( qualifier, elem ) > -1 ) !== not; } ); } // Filtered directly for both simple and complex selectors return jQuery.filter( qualifier, elements, not ); } jQuery.filter = function( expr, elems, not ) { var elem = elems[ 0 ]; if ( not ) { expr = ":not(" + expr + ")"; } if ( elems.length === 1 && elem.nodeType === 1 ) { return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : []; } return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { return elem.nodeType === 1; } ) ); }; jQuery.fn.extend( { find: function( selector ) { var i, ret, len = this.length, self = this; if ( typeof selector !== "string" ) { return this.pushStack( jQuery( selector ).filter( function() { for ( i = 0; i < len; i++ ) { if ( jQuery.contains( self[ i ], this ) ) { return true; } } } ) ); } ret = this.pushStack( [] ); for ( i = 0; i < len; i++ ) { jQuery.find( selector, self[ i ], ret ); } return len > 1 ? jQuery.uniqueSort( ret ) : ret; }, filter: function( selector ) { return this.pushStack( winnow( this, selector || [], false ) ); }, not: function( selector ) { return this.pushStack( winnow( this, selector || [], true ) ); }, is: function( selector ) { return !!winnow( this, // If this is a positional/relative selector, check membership in the returned set // so $("p:first").is("p:last") won't return true for a doc with two "p". typeof selector === "string" && rneedsContext.test( selector ) ? jQuery( selector ) : selector || [], false ).length; } } ); // Initialize a jQuery object // A central reference to the root jQuery(document) var rootjQuery, // A simple way to check for HTML strings // Prioritize #id over <tag> to avoid XSS via location.hash (#9521) // Strict HTML recognition (#11290: must start with <) // Shortcut simple #id case for speed rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, init = jQuery.fn.init = function( selector, context, root ) { var match, elem; // HANDLE: $(""), $(null), $(undefined), $(false) if ( !selector ) { return this; } // Method init() accepts an alternate rootjQuery // so migrate can support jQuery.sub (gh-2101) root = root || rootjQuery; // Handle HTML strings if ( typeof selector === "string" ) { if ( selector[ 0 ] === "<" && selector[ selector.length - 1 ] === ">" && selector.length >= 3 ) { // Assume that strings that start and end with <> are HTML and skip the regex check match = [ null, selector, null ]; } else { match = rquickExpr.exec( selector ); } // Match html or make sure no context is specified for #id if ( match && ( match[ 1 ] || !context ) ) { // HANDLE: $(html) -> $(array) if ( match[ 1 ] ) { context = context instanceof jQuery ? context[ 0 ] : context; // Option to run scripts is true for back-compat // Intentionally let the error be thrown if parseHTML is not present jQuery.merge( this, jQuery.parseHTML( match[ 1 ], context && context.nodeType ? context.ownerDocument || context : document, true ) ); // HANDLE: $(html, props) if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) { for ( match in context ) { // Properties of context are called as methods if possible if ( isFunction( this[ match ] ) ) { this[ match ]( context[ match ] ); // ...and otherwise set as attributes } else { this.attr( match, context[ match ] ); } } } return this; // HANDLE: $(#id) } else { elem = document.getElementById( match[ 2 ] ); if ( elem ) { // Inject the element directly into the jQuery object this[ 0 ] = elem; this.length = 1; } return this; } // HANDLE: $(expr, $(...)) } else if ( !context || context.jquery ) { return ( context || root ).find( selector ); // HANDLE: $(expr, context) // (which is just equivalent to: $(context).find(expr) } else { return this.constructor( context ).find( selector ); } // HANDLE: $(DOMElement) } else if ( selector.nodeType ) { this[ 0 ] = selector; this.length = 1; return this; // HANDLE: $(function) // Shortcut for document ready } else if ( isFunction( selector ) ) { return root.ready !== undefined ? root.ready( selector ) : // Execute immediately if ready is not present selector( jQuery ); } return jQuery.makeArray( selector, this ); }; // Give the init function the jQuery prototype for later instantiation init.prototype = jQuery.fn; // Initialize central reference rootjQuery = jQuery( document ); var rparentsprev = /^(?:parents|prev(?:Until|All))/, // Methods guaranteed to produce a unique set when starting from a unique set guaranteedUnique = { children: true, contents: true, next: true, prev: true }; jQuery.fn.extend( { has: function( target ) { var targets = jQuery( target, this ), l = targets.length; return this.filter( function() { var i = 0; for ( ; i < l; i++ ) { if ( jQuery.contains( this, targets[ i ] ) ) { return true; } } } ); }, closest: function( selectors, context ) { var cur, i = 0, l = this.length, matched = [], targets = typeof selectors !== "string" && jQuery( selectors ); // Positional selectors never match, since there's no _selection_ context if ( !rneedsContext.test( selectors ) ) { for ( ; i < l; i++ ) { for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { // Always skip document fragments if ( cur.nodeType < 11 && ( targets ? targets.index( cur ) > -1 : // Don't pass non-elements to Sizzle cur.nodeType === 1 && jQuery.find.matchesSelector( cur, selectors ) ) ) { matched.push( cur ); break; } } } } return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); }, // Determine the position of an element within the set index: function( elem ) { // No argument, return index in parent if ( !elem ) { return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; } // Index in selector if ( typeof elem === "string" ) { return indexOf.call( jQuery( elem ), this[ 0 ] ); } // Locate the position of the desired element return indexOf.call( this, // If it receives a jQuery object, the first element is used elem.jquery ? elem[ 0 ] : elem ); }, add: function( selector, context ) { return this.pushStack( jQuery.uniqueSort( jQuery.merge( this.get(), jQuery( selector, context ) ) ) ); }, addBack: function( selector ) { return this.add( selector == null ? this.prevObject : this.prevObject.filter( selector ) ); } } ); function sibling( cur, dir ) { while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} return cur; } jQuery.each( { parent: function( elem ) { var parent = elem.parentNode; return parent && parent.nodeType !== 11 ? parent : null; }, parents: function( elem ) { return dir( elem, "parentNode" ); }, parentsUntil: function( elem, _i, until ) { return dir( elem, "parentNode", until ); }, next: function( elem ) { return sibling( elem, "nextSibling" ); }, prev: function( elem ) { return sibling( elem, "previousSibling" ); }, nextAll: function( elem ) { return dir( elem, "nextSibling" ); }, prevAll: function( elem ) { return dir( elem, "previousSibling" ); }, nextUntil: function( elem, _i, until ) { return dir( elem, "nextSibling", until ); }, prevUntil: function( elem, _i, until ) { return dir( elem, "previousSibling", until ); }, siblings: function( elem ) { return siblings( ( elem.parentNode || {} ).firstChild, elem ); }, children: function( elem ) { return siblings( elem.firstChild ); }, contents: function( elem ) { if ( elem.contentDocument != null && // Support: IE 11+ // <object> elements with no `data` attribute has an object // `contentDocument` with a `null` prototype. getProto( elem.contentDocument ) ) { return elem.contentDocument; } // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only // Treat the template element as a regular one in browsers that // don't support it. if ( nodeName( elem, "template" ) ) { elem = elem.content || elem; } return jQuery.merge( [], elem.childNodes ); } }, function( name, fn ) { jQuery.fn[ name ] = function( until, selector ) { var matched = jQuery.map( this, fn, until ); if ( name.slice( -5 ) !== "Until" ) { selector = until; } if ( selector && typeof selector === "string" ) { matched = jQuery.filter( selector, matched ); } if ( this.length > 1 ) { // Remove duplicates if ( !guaranteedUnique[ name ] ) { jQuery.uniqueSort( matched ); } // Reverse order for parents* and prev-derivatives if ( rparentsprev.test( name ) ) { matched.reverse(); } } return this.pushStack( matched ); }; } ); var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g ); // Convert String-formatted options into Object-formatted ones function createOptions( options ) { var object = {}; jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { object[ flag ] = true; } ); return object; } /* * Create a callback list using the following parameters: * * options: an optional list of space-separated options that will change how * the callback list behaves or a more traditional option object * * By default a callback list will act like an event callback list and can be * "fired" multiple times. * * Possible options: * * once: will ensure the callback list can only be fired once (like a Deferred) * * memory: will keep track of previous values and will call any callback added * after the list has been fired right away with the latest "memorized" * values (like a Deferred) * * unique: will ensure a callback can only be added once (no duplicate in the list) * * stopOnFalse: interrupt callings when a callback returns false * */ jQuery.Callbacks = function( options ) { // Convert options from String-formatted to Object-formatted if needed // (we check in cache first) options = typeof options === "string" ? createOptions( options ) : jQuery.extend( {}, options ); var // Flag to know if list is currently firing firing, // Last fire value for non-forgettable lists memory, // Flag to know if list was already fired fired, // Flag to prevent firing locked, // Actual callback list list = [], // Queue of execution data for repeatable lists queue = [], // Index of currently firing callback (modified by add/remove as needed) firingIndex = -1, // Fire callbacks fire = function() { // Enforce single-firing locked = locked || options.once; // Execute callbacks for all pending executions, // respecting firingIndex overrides and runtime changes fired = firing = true; for ( ; queue.length; firingIndex = -1 ) { memory = queue.shift(); while ( ++firingIndex < list.length ) { // Run callback and check for early termination if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false && options.stopOnFalse ) { // Jump to end and forget the data so .add doesn't re-fire firingIndex = list.length; memory = false; } } } // Forget the data if we're done with it if ( !options.memory ) { memory = false; } firing = false; // Clean up if we're done firing for good if ( locked ) { // Keep an empty list if we have data for future add calls if ( memory ) { list = []; // Otherwise, this object is spent } else { list = ""; } } }, // Actual Callbacks object self = { // Add a callback or a collection of callbacks to the list add: function() { if ( list ) { // If we have memory from a past run, we should fire after adding if ( memory && !firing ) { firingIndex = list.length - 1; queue.push( memory ); } ( function add( args ) { jQuery.each( args, function( _, arg ) { if ( isFunction( arg ) ) { if ( !options.unique || !self.has( arg ) ) { list.push( arg ); } } else if ( arg && arg.length && toType( arg ) !== "string" ) { // Inspect recursively add( arg ); } } ); } )( arguments ); if ( memory && !firing ) { fire(); } } return this; }, // Remove a callback from the list remove: function() { jQuery.each( arguments, function( _, arg ) { var index; while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { list.splice( index, 1 ); // Handle firing indexes if ( index <= firingIndex ) { firingIndex--; } } } ); return this; }, // Check if a given callback is in the list. // If no argument is given, return whether or not list has callbacks attached. has: function( fn ) { return fn ? jQuery.inArray( fn, list ) > -1 : list.length > 0; }, // Remove all callbacks from the list empty: function() { if ( list ) { list = []; } return this; }, // Disable .fire and .add // Abort any current/pending executions // Clear all callbacks and values disable: function() { locked = queue = []; list = memory = ""; return this; }, disabled: function() { return !list; }, // Disable .fire // Also disable .add unless we have memory (since it would have no effect) // Abort any pending executions lock: function() { locked = queue = []; if ( !memory && !firing ) { list = memory = ""; } return this; }, locked: function() { return !!locked; }, // Call all callbacks with the given context and arguments fireWith: function( context, args ) { if ( !locked ) { args = args || []; args = [ context, args.slice ? args.slice() : args ]; queue.push( args ); if ( !firing ) { fire(); } } return this; }, // Call all the callbacks with the given arguments fire: function() { self.fireWith( this, arguments ); return this; }, // To know if the callbacks have already been called at least once fired: function() { return !!fired; } }; return self; }; function Identity( v ) { return v; } function Thrower( ex ) { throw ex; } function adoptValue( value, resolve, reject, noValue ) { var method; try { // Check for promise aspect first to privilege synchronous behavior if ( value && isFunction( ( method = value.promise ) ) ) { method.call( value ).done( resolve ).fail( reject ); // Other thenables } else if ( value && isFunction( ( method = value.then ) ) ) { method.call( value, resolve, reject ); // Other non-thenables } else { // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer: // * false: [ value ].slice( 0 ) => resolve( value ) // * true: [ value ].slice( 1 ) => resolve() resolve.apply( undefined, [ value ].slice( noValue ) ); } // For Promises/A+, convert exceptions into rejections // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in // Deferred#then to conditionally suppress rejection. } catch ( value ) { // Support: Android 4.0 only // Strict mode functions invoked without .call/.apply get global-object context reject.apply( undefined, [ value ] ); } } jQuery.extend( { Deferred: function( func ) { var tuples = [ // action, add listener, callbacks, // ... .then handlers, argument index, [final state] [ "notify", "progress", jQuery.Callbacks( "memory" ), jQuery.Callbacks( "memory" ), 2 ], [ "resolve", "done", jQuery.Callbacks( "once memory" ), jQuery.Callbacks( "once memory" ), 0, "resolved" ], [ "reject", "fail", jQuery.Callbacks( "once memory" ), jQuery.Callbacks( "once memory" ), 1, "rejected" ] ], state = "pending", promise = { state: function() { return state; }, always: function() { deferred.done( arguments ).fail( arguments ); return this; }, "catch": function( fn ) { return promise.then( null, fn ); }, // Keep pipe for back-compat pipe: function( /* fnDone, fnFail, fnProgress */ ) { var fns = arguments; return jQuery.Deferred( function( newDefer ) { jQuery.each( tuples, function( _i, tuple ) { // Map tuples (progress, done, fail) to arguments (done, fail, progress) var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ]; // deferred.progress(function() { bind to newDefer or newDefer.notify }) // deferred.done(function() { bind to newDefer or newDefer.resolve }) // deferred.fail(function() { bind to newDefer or newDefer.reject }) deferred[ tuple[ 1 ] ]( function() { var returned = fn && fn.apply( this, arguments ); if ( returned && isFunction( returned.promise ) ) { returned.promise() .progress( newDefer.notify ) .done( newDefer.resolve ) .fail( newDefer.reject ); } else { newDefer[ tuple[ 0 ] + "With" ]( this, fn ? [ returned ] : arguments ); } } ); } ); fns = null; } ).promise(); }, then: function( onFulfilled, onRejected, onProgress ) { var maxDepth = 0; function resolve( depth, deferred, handler, special ) { return function() { var that = this, args = arguments, mightThrow = function() { var returned, then; // Support: Promises/A+ section 2.3.3.3.3 // https://promisesaplus.com/#point-59 // Ignore double-resolution attempts if ( depth < maxDepth ) { return; } returned = handler.apply( that, args ); // Support: Promises/A+ section 2.3.1 // https://promisesaplus.com/#point-48 if ( returned === deferred.promise() ) { throw new TypeError( "Thenable self-resolution" ); } // Support: Promises/A+ sections 2.3.3.1, 3.5 // https://promisesaplus.com/#point-54 // https://promisesaplus.com/#point-75 // Retrieve `then` only once then = returned && // Support: Promises/A+ section 2.3.4 // https://promisesaplus.com/#point-64 // Only check objects and functions for thenability ( typeof returned === "object" || typeof returned === "function" ) && returned.then; // Handle a returned thenable if ( isFunction( then ) ) { // Special processors (notify) just wait for resolution if ( special ) { then.call( returned, resolve( maxDepth, deferred, Identity, special ), resolve( maxDepth, deferred, Thrower, special ) ); // Normal processors (resolve) also hook into progress } else { // ...and disregard older resolution values maxDepth++; then.call( returned, resolve( maxDepth, deferred, Identity, special ), resolve( maxDepth, deferred, Thrower, special ), resolve( maxDepth, deferred, Identity, deferred.notifyWith ) ); } // Handle all other returned values } else { // Only substitute handlers pass on context // and multiple values (non-spec behavior) if ( handler !== Identity ) { that = undefined; args = [ returned ]; } // Process the value(s) // Default process is resolve ( special || deferred.resolveWith )( that, args ); } }, // Only normal processors (resolve) catch and reject exceptions process = special ? mightThrow : function() { try { mightThrow(); } catch ( e ) { if ( jQuery.Deferred.exceptionHook ) { jQuery.Deferred.exceptionHook( e, process.stackTrace ); } // Support: Promises/A+ section 2.3.3.3.4.1 // https://promisesaplus.com/#point-61 // Ignore post-resolution exceptions if ( depth + 1 >= maxDepth ) { // Only substitute handlers pass on context // and multiple values (non-spec behavior) if ( handler !== Thrower ) { that = undefined; args = [ e ]; } deferred.rejectWith( that, args ); } } }; // Support: Promises/A+ section 2.3.3.3.1 // https://promisesaplus.com/#point-57 // Re-resolve promises immediately to dodge false rejection from // subsequent errors if ( depth ) { process(); } else { // Call an optional hook to record the stack, in case of exception // since it's otherwise lost when execution goes async if ( jQuery.Deferred.getStackHook ) { process.stackTrace = jQuery.Deferred.getStackHook(); } window.setTimeout( process ); } }; } return jQuery.Deferred( function( newDefer ) { // progress_handlers.add( ... ) tuples[ 0 ][ 3 ].add( resolve( 0, newDefer, isFunction( onProgress ) ? onProgress : Identity, newDefer.notifyWith ) ); // fulfilled_handlers.add( ... ) tuples[ 1 ][ 3 ].add( resolve( 0, newDefer, isFunction( onFulfilled ) ? onFulfilled : Identity ) ); // rejected_handlers.add( ... ) tuples[ 2 ][ 3 ].add( resolve( 0, newDefer, isFunction( onRejected ) ? onRejected : Thrower ) ); } ).promise(); }, // Get a promise for this deferred // If obj is provided, the promise aspect is added to the object promise: function( obj ) { return obj != null ? jQuery.extend( obj, promise ) : promise; } }, deferred = {}; // Add list-specific methods jQuery.each( tuples, function( i, tuple ) { var list = tuple[ 2 ], stateString = tuple[ 5 ]; // promise.progress = list.add // promise.done = list.add // promise.fail = list.add promise[ tuple[ 1 ] ] = list.add; // Handle state if ( stateString ) { list.add( function() { // state = "resolved" (i.e., fulfilled) // state = "rejected" state = stateString; }, // rejected_callbacks.disable // fulfilled_callbacks.disable tuples[ 3 - i ][ 2 ].disable, // rejected_handlers.disable // fulfilled_handlers.disable tuples[ 3 - i ][ 3 ].disable, // progress_callbacks.lock tuples[ 0 ][ 2 ].lock, // progress_handlers.lock tuples[ 0 ][ 3 ].lock ); } // progress_handlers.fire // fulfilled_handlers.fire // rejected_handlers.fire list.add( tuple[ 3 ].fire ); // deferred.notify = function() { deferred.notifyWith(...) } // deferred.resolve = function() { deferred.resolveWith(...) } // deferred.reject = function() { deferred.rejectWith(...) } deferred[ tuple[ 0 ] ] = function() { deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments ); return this; }; // deferred.notifyWith = list.fireWith // deferred.resolveWith = list.fireWith // deferred.rejectWith = list.fireWith deferred[ tuple[ 0 ] + "With" ] = list.fireWith; } ); // Make the deferred a promise promise.promise( deferred ); // Call given func if any if ( func ) { func.call( deferred, deferred ); } // All done! return deferred; }, // Deferred helper when: function( singleValue ) { var // count of uncompleted subordinates remaining = arguments.length, // count of unprocessed arguments i = remaining, // subordinate fulfillment data resolveContexts = Array( i ), resolveValues = slice.call( arguments ), // the primary Deferred primary = jQuery.Deferred(), // subordinate callback factory updateFunc = function( i ) { return function( value ) { resolveContexts[ i ] = this; resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; if ( !( --remaining ) ) { primary.resolveWith( resolveContexts, resolveValues ); } }; }; // Single- and empty arguments are adopted like Promise.resolve if ( remaining <= 1 ) { adoptValue( singleValue, primary.done( updateFunc( i ) ).resolve, primary.reject, !remaining ); // Use .then() to unwrap secondary thenables (cf. gh-3000) if ( primary.state() === "pending" || isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) { return primary.then(); } } // Multiple arguments are aggregated like Promise.all array elements while ( i-- ) { adoptValue( resolveValues[ i ], updateFunc( i ), primary.reject ); } return primary.promise(); } } ); // These usually indicate a programmer mistake during development, // warn about them ASAP rather than swallowing them by default. var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; jQuery.Deferred.exceptionHook = function( error, stack ) { // Support: IE 8 - 9 only // Console exists when dev tools are open, which can happen at any time if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack ); } }; jQuery.readyException = function( error ) { window.setTimeout( function() { throw error; } ); }; // The deferred used on DOM ready var readyList = jQuery.Deferred(); jQuery.fn.ready = function( fn ) { readyList .then( fn ) // Wrap jQuery.readyException in a function so that the lookup // happens at the time of error handling instead of callback // registration. .catch( function( error ) { jQuery.readyException( error ); } ); return this; }; jQuery.extend( { // Is the DOM ready to be used? Set to true once it occurs. isReady: false, // A counter to track how many items to wait for before // the ready event fires. See #6781 readyWait: 1, // Handle when the DOM is ready ready: function( wait ) { // Abort if there are pending holds or we're already ready if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { return; } // Remember that the DOM is ready jQuery.isReady = true; // If a normal DOM Ready event fired, decrement, and wait if need be if ( wait !== true && --jQuery.readyWait > 0 ) { return; } // If there are functions bound, to execute readyList.resolveWith( document, [ jQuery ] ); } } ); jQuery.ready.then = readyList.then; // The ready event handler and self cleanup method function completed() { document.removeEventListener( "DOMContentLoaded", completed ); window.removeEventListener( "load", completed ); jQuery.ready(); } // Catch cases where $(document).ready() is called // after the browser event has already occurred. // Support: IE <=9 - 10 only // Older IE sometimes signals "interactive" too soon if ( document.readyState === "complete" || ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { // Handle it asynchronously to allow scripts the opportunity to delay ready window.setTimeout( jQuery.ready ); } else { // Use the handy event callback document.addEventListener( "DOMContentLoaded", completed ); // A fallback to window.onload, that will always work window.addEventListener( "load", completed ); } // Multifunctional method to get and set values of a collection // The value/s can optionally be executed if it's a function var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { var i = 0, len = elems.length, bulk = key == null; // Sets many values if ( toType( key ) === "object" ) { chainable = true; for ( i in key ) { access( elems, fn, i, key[ i ], true, emptyGet, raw ); } // Sets one value } else if ( value !== undefined ) { chainable = true; if ( !isFunction( value ) ) { raw = true; } if ( bulk ) { // Bulk operations run against the entire set if ( raw ) { fn.call( elems, value ); fn = null; // ...except when executing function values } else { bulk = fn; fn = function( elem, _key, value ) { return bulk.call( jQuery( elem ), value ); }; } } if ( fn ) { for ( ; i < len; i++ ) { fn( elems[ i ], key, raw ? value : value.call( elems[ i ], i, fn( elems[ i ], key ) ) ); } } } if ( chainable ) { return elems; } // Gets if ( bulk ) { return fn.call( elems ); } return len ? fn( elems[ 0 ], key ) : emptyGet; }; // Matches dashed string for camelizing var rmsPrefix = /^-ms-/, rdashAlpha = /-([a-z])/g; // Used by camelCase as callback to replace() function fcamelCase( _all, letter ) { return letter.toUpperCase(); } // Convert dashed to camelCase; used by the css and data modules // Support: IE <=9 - 11, Edge 12 - 15 // Microsoft forgot to hump their vendor prefix (#9572) function camelCase( string ) { return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); } var acceptData = function( owner ) { // Accepts only: // - Node // - Node.ELEMENT_NODE // - Node.DOCUMENT_NODE // - Object // - Any return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); }; function Data() { this.expando = jQuery.expando + Data.uid++; } Data.uid = 1; Data.prototype = { cache: function( owner ) { // Check if the owner object already has a cache var value = owner[ this.expando ]; // If not, create one if ( !value ) { value = {}; // We can accept data for non-element nodes in modern browsers, // but we should not, see #8335. // Always return an empty object. if ( acceptData( owner ) ) { // If it is a node unlikely to be stringify-ed or looped over // use plain assignment if ( owner.nodeType ) { owner[ this.expando ] = value; // Otherwise secure it in a non-enumerable property // configurable must be true to allow the property to be // deleted when data is removed } else { Object.defineProperty( owner, this.expando, { value: value, configurable: true } ); } } } return value; }, set: function( owner, data, value ) { var prop, cache = this.cache( owner ); // Handle: [ owner, key, value ] args // Always use camelCase key (gh-2257) if ( typeof data === "string" ) { cache[ camelCase( data ) ] = value; // Handle: [ owner, { properties } ] args } else { // Copy the properties one-by-one to the cache object for ( prop in data ) { cache[ camelCase( prop ) ] = data[ prop ]; } } return cache; }, get: function( owner, key ) { return key === undefined ? this.cache( owner ) : // Always use camelCase key (gh-2257) owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ]; }, access: function( owner, key, value ) { // In cases where either: // // 1. No key was specified // 2. A string key was specified, but no value provided // // Take the "read" path and allow the get method to determine // which value to return, respectively either: // // 1. The entire cache object // 2. The data stored at the key // if ( key === undefined || ( ( key && typeof key === "string" ) && value === undefined ) ) { return this.get( owner, key ); } // When the key is not a string, or both a key and value // are specified, set or extend (existing objects) with either: // // 1. An object of properties // 2. A key and value // this.set( owner, key, value ); // Since the "set" path can have two possible entry points // return the expected data based on which path was taken[*] return value !== undefined ? value : key; }, remove: function( owner, key ) { var i, cache = owner[ this.expando ]; if ( cache === undefined ) { return; } if ( key !== undefined ) { // Support array or space separated string of keys if ( Array.isArray( key ) ) { // If key is an array of keys... // We always set camelCase keys, so remove that. key = key.map( camelCase ); } else { key = camelCase( key ); // If a key with the spaces exists, use it. // Otherwise, create an array by matching non-whitespace key = key in cache ? [ key ] : ( key.match( rnothtmlwhite ) || [] ); } i = key.length; while ( i-- ) { delete cache[ key[ i ] ]; } } // Remove the expando if there's no more data if ( key === undefined || jQuery.isEmptyObject( cache ) ) { // Support: Chrome <=35 - 45 // Webkit & Blink performance suffers when deleting properties // from DOM nodes, so set to undefined instead // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted) if ( owner.nodeType ) { owner[ this.expando ] = undefined; } else { delete owner[ this.expando ]; } } }, hasData: function( owner ) { var cache = owner[ this.expando ]; return cache !== undefined && !jQuery.isEmptyObject( cache ); } }; var dataPriv = new Data(); var dataUser = new Data(); // Implementation Summary // // 1. Enforce API surface and semantic compatibility with 1.9.x branch // 2. Improve the module's maintainability by reducing the storage // paths to a single mechanism. // 3. Use the same single mechanism to support "private" and "user" data. // 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) // 5. Avoid exposing implementation details on user objects (eg. expando properties) // 6. Provide a clear path for implementation upgrade to WeakMap in 2014 var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, rmultiDash = /[A-Z]/g; function getData( data ) { if ( data === "true" ) { return true; } if ( data === "false" ) { return false; } if ( data === "null" ) { return null; } // Only convert to a number if it doesn't change the string if ( data === +data + "" ) { return +data; } if ( rbrace.test( data ) ) { return JSON.parse( data ); } return data; } function dataAttr( elem, key, data ) { var name; // If nothing was found internally, try to fetch any // data from the HTML5 data-* attribute if ( data === undefined && elem.nodeType === 1 ) { name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); data = elem.getAttribute( name ); if ( typeof data === "string" ) { try { data = getData( data ); } catch ( e ) {} // Make sure we set the data so it isn't changed later dataUser.set( elem, key, data ); } else { data = undefined; } } return data; } jQuery.extend( { hasData: function( elem ) { return dataUser.hasData( elem ) || dataPriv.hasData( elem ); }, data: function( elem, name, data ) { return dataUser.access( elem, name, data ); }, removeData: function( elem, name ) { dataUser.remove( elem, name ); }, // TODO: Now that all calls to _data and _removeData have been replaced // with direct calls to dataPriv methods, these can be deprecated. _data: function( elem, name, data ) { return dataPriv.access( elem, name, data ); }, _removeData: function( elem, name ) { dataPriv.remove( elem, name ); } } ); jQuery.fn.extend( { data: function( key, value ) { var i, name, data, elem = this[ 0 ], attrs = elem && elem.attributes; // Gets all values if ( key === undefined ) { if ( this.length ) { data = dataUser.get( elem ); if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) { i = attrs.length; while ( i-- ) { // Support: IE 11 only // The attrs elements can be null (#14894) if ( attrs[ i ] ) { name = attrs[ i ].name; if ( name.indexOf( "data-" ) === 0 ) { name = camelCase( name.slice( 5 ) ); dataAttr( elem, name, data[ name ] ); } } } dataPriv.set( elem, "hasDataAttrs", true ); } } return data; } // Sets multiple values if ( typeof key === "object" ) { return this.each( function() { dataUser.set( this, key ); } ); } return access( this, function( value ) { var data; // The calling jQuery object (element matches) is not empty // (and therefore has an element appears at this[ 0 ]) and the // `value` parameter was not undefined. An empty jQuery object // will result in `undefined` for elem = this[ 0 ] which will // throw an exception if an attempt to read a data cache is made. if ( elem && value === undefined ) { // Attempt to get data from the cache // The key will always be camelCased in Data data = dataUser.get( elem, key ); if ( data !== undefined ) { return data; } // Attempt to "discover" the data in // HTML5 custom data-* attrs data = dataAttr( elem, key ); if ( data !== undefined ) { return data; } // We tried really hard, but the data doesn't exist. return; } // Set the data... this.each( function() { // We always store the camelCased key dataUser.set( this, key, value ); } ); }, null, value, arguments.length > 1, null, true ); }, removeData: function( key ) { return this.each( function() { dataUser.remove( this, key ); } ); } } ); jQuery.extend( { queue: function( elem, type, data ) { var queue; if ( elem ) { type = ( type || "fx" ) + "queue"; queue = dataPriv.get( elem, type ); // Speed up dequeue by getting out quickly if this is just a lookup if ( data ) { if ( !queue || Array.isArray( data ) ) { queue = dataPriv.access( elem, type, jQuery.makeArray( data ) ); } else { queue.push( data ); } } return queue || []; } }, dequeue: function( elem, type ) { type = type || "fx"; var queue = jQuery.queue( elem, type ), startLength = queue.length, fn = queue.shift(), hooks = jQuery._queueHooks( elem, type ), next = function() { jQuery.dequeue( elem, type ); }; // If the fx queue is dequeued, always remove the progress sentinel if ( fn === "inprogress" ) { fn = queue.shift(); startLength--; } if ( fn ) { // Add a progress sentinel to prevent the fx queue from being // automatically dequeued if ( type === "fx" ) { queue.unshift( "inprogress" ); } // Clear up the last queue stop function delete hooks.stop; fn.call( elem, next, hooks ); } if ( !startLength && hooks ) { hooks.empty.fire(); } }, // Not public - generate a queueHooks object, or return the current one _queueHooks: function( elem, type ) { var key = type + "queueHooks"; return dataPriv.get( elem, key ) || dataPriv.access( elem, key, { empty: jQuery.Callbacks( "once memory" ).add( function() { dataPriv.remove( elem, [ type + "queue", key ] ); } ) } ); } } ); jQuery.fn.extend( { queue: function( type, data ) { var setter = 2; if ( typeof type !== "string" ) { data = type; type = "fx"; setter--; } if ( arguments.length < setter ) { return jQuery.queue( this[ 0 ], type ); } return data === undefined ? this : this.each( function() { var queue = jQuery.queue( this, type, data ); // Ensure a hooks for this queue jQuery._queueHooks( this, type ); if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { jQuery.dequeue( this, type ); } } ); }, dequeue: function( type ) { return this.each( function() { jQuery.dequeue( this, type ); } ); }, clearQueue: function( type ) { return this.queue( type || "fx", [] ); }, // Get a promise resolved when queues of a certain type // are emptied (fx is the type by default) promise: function( type, obj ) { var tmp, count = 1, defer = jQuery.Deferred(), elements = this, i = this.length, resolve = function() { if ( !( --count ) ) { defer.resolveWith( elements, [ elements ] ); } }; if ( typeof type !== "string" ) { obj = type; type = undefined; } type = type || "fx"; while ( i-- ) { tmp = dataPriv.get( elements[ i ], type + "queueHooks" ); if ( tmp && tmp.empty ) { count++; tmp.empty.add( resolve ); } } resolve(); return defer.promise( obj ); } } ); var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; var documentElement = document.documentElement; var isAttached = function( elem ) { return jQuery.contains( elem.ownerDocument, elem ); }, composed = { composed: true }; // Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only // Check attachment across shadow DOM boundaries when possible (gh-3504) // Support: iOS 10.0-10.2 only // Early iOS 10 versions support `attachShadow` but not `getRootNode`, // leading to errors. We need to check for `getRootNode`. if ( documentElement.getRootNode ) { isAttached = function( elem ) { return jQuery.contains( elem.ownerDocument, elem ) || elem.getRootNode( composed ) === elem.ownerDocument; }; } var isHiddenWithinTree = function( elem, el ) { // isHiddenWithinTree might be called from jQuery#filter function; // in that case, element will be second argument elem = el || elem; // Inline style trumps all return elem.style.display === "none" || elem.style.display === "" && // Otherwise, check computed style // Support: Firefox <=43 - 45 // Disconnected elements can have computed display: none, so first confirm that elem is // in the document. isAttached( elem ) && jQuery.css( elem, "display" ) === "none"; }; function adjustCSS( elem, prop, valueParts, tween ) { var adjusted, scale, maxIterations = 20, currentValue = tween ? function() { return tween.cur(); } : function() { return jQuery.css( elem, prop, "" ); }, initial = currentValue(), unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), // Starting value computation is required for potential unit mismatches initialInUnit = elem.nodeType && ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && rcssNum.exec( jQuery.css( elem, prop ) ); if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { // Support: Firefox <=54 // Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144) initial = initial / 2; // Trust units reported by jQuery.css unit = unit || initialInUnit[ 3 ]; // Iteratively approximate from a nonzero starting point initialInUnit = +initial || 1; while ( maxIterations-- ) { // Evaluate and update our best guess (doubling guesses that zero out). // Finish if the scale equals or crosses 1 (making the old*new product non-positive). jQuery.style( elem, prop, initialInUnit + unit ); if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) { maxIterations = 0; } initialInUnit = initialInUnit / scale; } initialInUnit = initialInUnit * 2; jQuery.style( elem, prop, initialInUnit + unit ); // Make sure we update the tween properties later on valueParts = valueParts || []; } if ( valueParts ) { initialInUnit = +initialInUnit || +initial || 0; // Apply relative offset (+=/-=) if specified adjusted = valueParts[ 1 ] ? initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : +valueParts[ 2 ]; if ( tween ) { tween.unit = unit; tween.start = initialInUnit; tween.end = adjusted; } } return adjusted; } var defaultDisplayMap = {}; function getDefaultDisplay( elem ) { var temp, doc = elem.ownerDocument, nodeName = elem.nodeName, display = defaultDisplayMap[ nodeName ]; if ( display ) { return display; } temp = doc.body.appendChild( doc.createElement( nodeName ) ); display = jQuery.css( temp, "display" ); temp.parentNode.removeChild( temp ); if ( display === "none" ) { display = "block"; } defaultDisplayMap[ nodeName ] = display; return display; } function showHide( elements, show ) { var display, elem, values = [], index = 0, length = elements.length; // Determine new display value for elements that need to change for ( ; index < length; index++ ) { elem = elements[ index ]; if ( !elem.style ) { continue; } display = elem.style.display; if ( show ) { // Since we force visibility upon cascade-hidden elements, an immediate (and slow) // check is required in this first loop unless we have a nonempty display value (either // inline or about-to-be-restored) if ( display === "none" ) { values[ index ] = dataPriv.get( elem, "display" ) || null; if ( !values[ index ] ) { elem.style.display = ""; } } if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) { values[ index ] = getDefaultDisplay( elem ); } } else { if ( display !== "none" ) { values[ index ] = "none"; // Remember what we're overwriting dataPriv.set( elem, "display", display ); } } } // Set the display of the elements in a second loop to avoid constant reflow for ( index = 0; index < length; index++ ) { if ( values[ index ] != null ) { elements[ index ].style.display = values[ index ]; } } return elements; } jQuery.fn.extend( { show: function() { return showHide( this, true ); }, hide: function() { return showHide( this ); }, toggle: function( state ) { if ( typeof state === "boolean" ) { return state ? this.show() : this.hide(); } return this.each( function() { if ( isHiddenWithinTree( this ) ) { jQuery( this ).show(); } else { jQuery( this ).hide(); } } ); } } ); var rcheckableType = ( /^(?:checkbox|radio)$/i ); var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i ); var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i ); ( function() { var fragment = document.createDocumentFragment(), div = fragment.appendChild( document.createElement( "div" ) ), input = document.createElement( "input" ); // Support: Android 4.0 - 4.3 only // Check state lost if the name is set (#11217) // Support: Windows Web Apps (WWA) // `name` and `type` must use .setAttribute for WWA (#14901) input.setAttribute( "type", "radio" ); input.setAttribute( "checked", "checked" ); input.setAttribute( "name", "t" ); div.appendChild( input ); // Support: Android <=4.1 only // Older WebKit doesn't clone checked state correctly in fragments support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; // Support: IE <=11 only // Make sure textarea (and checkbox) defaultValue is properly cloned div.innerHTML = "<textarea>x</textarea>"; support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; // Support: IE <=9 only // IE <=9 replaces <option> tags with their contents when inserted outside of // the select element. div.innerHTML = "<option></option>"; support.option = !!div.lastChild; } )(); // We have to close these tags to support XHTML (#13200) var wrapMap = { // XHTML parsers do not magically insert elements in the // same way that tag soup parsers do. So we cannot shorten // this by omitting <tbody> or other required elements. thead: [ 1, "<table>", "</table>" ], col: [ 2, "<table><colgroup>", "</colgroup></table>" ], tr: [ 2, "<table><tbody>", "</tbody></table>" ], td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ], _default: [ 0, "", "" ] }; wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; wrapMap.th = wrapMap.td; // Support: IE <=9 only if ( !support.option ) { wrapMap.optgroup = wrapMap.option = [ 1, "<select multiple='multiple'>", "</select>" ]; } function getAll( context, tag ) { // Support: IE <=9 - 11 only // Use typeof to avoid zero-argument method invocation on host objects (#15151) var ret; if ( typeof context.getElementsByTagName !== "undefined" ) { ret = context.getElementsByTagName( tag || "*" ); } else if ( typeof context.querySelectorAll !== "undefined" ) { ret = context.querySelectorAll( tag || "*" ); } else { ret = []; } if ( tag === undefined || tag && nodeName( context, tag ) ) { return jQuery.merge( [ context ], ret ); } return ret; } // Mark scripts as having already been evaluated function setGlobalEval( elems, refElements ) { var i = 0, l = elems.length; for ( ; i < l; i++ ) { dataPriv.set( elems[ i ], "globalEval", !refElements || dataPriv.get( refElements[ i ], "globalEval" ) ); } } var rhtml = /<|&#?\w+;/; function buildFragment( elems, context, scripts, selection, ignored ) { var elem, tmp, tag, wrap, attached, j, fragment = context.createDocumentFragment(), nodes = [], i = 0, l = elems.length; for ( ; i < l; i++ ) { elem = elems[ i ]; if ( elem || elem === 0 ) { // Add nodes directly if ( toType( elem ) === "object" ) { // Support: Android <=4.0 only, PhantomJS 1 only // push.apply(_, arraylike) throws on ancient WebKit jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); // Convert non-html into a text node } else if ( !rhtml.test( elem ) ) { nodes.push( context.createTextNode( elem ) ); // Convert html into DOM nodes } else { tmp = tmp || fragment.appendChild( context.createElement( "div" ) ); // Deserialize a standard representation tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); wrap = wrapMap[ tag ] || wrapMap._default; tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ]; // Descend through wrappers to the right content j = wrap[ 0 ]; while ( j-- ) { tmp = tmp.lastChild; } // Support: Android <=4.0 only, PhantomJS 1 only // push.apply(_, arraylike) throws on ancient WebKit jQuery.merge( nodes, tmp.childNodes ); // Remember the top-level container tmp = fragment.firstChild; // Ensure the created nodes are orphaned (#12392) tmp.textContent = ""; } } } // Remove wrapper from fragment fragment.textContent = ""; i = 0; while ( ( elem = nodes[ i++ ] ) ) { // Skip elements already in the context collection (trac-4087) if ( selection && jQuery.inArray( elem, selection ) > -1 ) { if ( ignored ) { ignored.push( elem ); } continue; } attached = isAttached( elem ); // Append to fragment tmp = getAll( fragment.appendChild( elem ), "script" ); // Preserve script evaluation history if ( attached ) { setGlobalEval( tmp ); } // Capture executables if ( scripts ) { j = 0; while ( ( elem = tmp[ j++ ] ) ) { if ( rscriptType.test( elem.type || "" ) ) { scripts.push( elem ); } } } } return fragment; } var rtypenamespace = /^([^.]*)(?:\.(.+)|)/; function returnTrue() { return true; } function returnFalse() { return false; } // Support: IE <=9 - 11+ // focus() and blur() are asynchronous, except when they are no-op. // So expect focus to be synchronous when the element is already active, // and blur to be synchronous when the element is not already active. // (focus and blur are always synchronous in other supported browsers, // this just defines when we can count on it). function expectSync( elem, type ) { return ( elem === safeActiveElement() ) === ( type === "focus" ); } // Support: IE <=9 only // Accessing document.activeElement can throw unexpectedly // https://bugs.jquery.com/ticket/13393 function safeActiveElement() { try { return document.activeElement; } catch ( err ) { } } function on( elem, types, selector, data, fn, one ) { var origFn, type; // Types can be a map of types/handlers if ( typeof types === "object" ) { // ( types-Object, selector, data ) if ( typeof selector !== "string" ) { // ( types-Object, data ) data = data || selector; selector = undefined; } for ( type in types ) { on( elem, type, selector, data, types[ type ], one ); } return elem; } if ( data == null && fn == null ) { // ( types, fn ) fn = selector; data = selector = undefined; } else if ( fn == null ) { if ( typeof selector === "string" ) { // ( types, selector, fn ) fn = data; data = undefined; } else { // ( types, data, fn ) fn = data; data = selector; selector = undefined; } } if ( fn === false ) { fn = returnFalse; } else if ( !fn ) { return elem; } if ( one === 1 ) { origFn = fn; fn = function( event ) { // Can use an empty set, since event contains the info jQuery().off( event ); return origFn.apply( this, arguments ); }; // Use same guid so caller can remove using origFn fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); } return elem.each( function() { jQuery.event.add( this, types, fn, data, selector ); } ); } /* * Helper functions for managing events -- not part of the public interface. * Props to Dean Edwards' addEvent library for many of the ideas. */ jQuery.event = { global: {}, add: function( elem, types, handler, data, selector ) { var handleObjIn, eventHandle, tmp, events, t, handleObj, special, handlers, type, namespaces, origType, elemData = dataPriv.get( elem ); // Only attach events to objects that accept data if ( !acceptData( elem ) ) { return; } // Caller can pass in an object of custom data in lieu of the handler if ( handler.handler ) { handleObjIn = handler; handler = handleObjIn.handler; selector = handleObjIn.selector; } // Ensure that invalid selectors throw exceptions at attach time // Evaluate against documentElement in case elem is a non-element node (e.g., document) if ( selector ) { jQuery.find.matchesSelector( documentElement, selector ); } // Make sure that the handler has a unique ID, used to find/remove it later if ( !handler.guid ) { handler.guid = jQuery.guid++; } // Init the element's event structure and main handler, if this is the first if ( !( events = elemData.events ) ) { events = elemData.events = Object.create( null ); } if ( !( eventHandle = elemData.handle ) ) { eventHandle = elemData.handle = function( e ) { // Discard the second event of a jQuery.event.trigger() and // when an event is called after a page has unloaded return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? jQuery.event.dispatch.apply( elem, arguments ) : undefined; }; } // Handle multiple events separated by a space types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; t = types.length; while ( t-- ) { tmp = rtypenamespace.exec( types[ t ] ) || []; type = origType = tmp[ 1 ]; namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); // There *must* be a type, no attaching namespace-only handlers if ( !type ) { continue; } // If event changes its type, use the special event handlers for the changed type special = jQuery.event.special[ type ] || {}; // If selector defined, determine special event api type, otherwise given type type = ( selector ? special.delegateType : special.bindType ) || type; // Update special based on newly reset type special = jQuery.event.special[ type ] || {}; // handleObj is passed to all event handlers handleObj = jQuery.extend( { type: type, origType: origType, data: data, handler: handler, guid: handler.guid, selector: selector, needsContext: selector && jQuery.expr.match.needsContext.test( selector ), namespace: namespaces.join( "." ) }, handleObjIn ); // Init the event handler queue if we're the first if ( !( handlers = events[ type ] ) ) { handlers = events[ type ] = []; handlers.delegateCount = 0; // Only use addEventListener if the special events handler returns false if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { if ( elem.addEventListener ) { elem.addEventListener( type, eventHandle ); } } } if ( special.add ) { special.add.call( elem, handleObj ); if ( !handleObj.handler.guid ) { handleObj.handler.guid = handler.guid; } } // Add to the element's handler list, delegates in front if ( selector ) { handlers.splice( handlers.delegateCount++, 0, handleObj ); } else { handlers.push( handleObj ); } // Keep track of which events have ever been used, for event optimization jQuery.event.global[ type ] = true; } }, // Detach an event or set of events from an element remove: function( elem, types, handler, selector, mappedTypes ) { var j, origCount, tmp, events, t, handleObj, special, handlers, type, namespaces, origType, elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); if ( !elemData || !( events = elemData.events ) ) { return; } // Once for each type.namespace in types; type may be omitted types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; t = types.length; while ( t-- ) { tmp = rtypenamespace.exec( types[ t ] ) || []; type = origType = tmp[ 1 ]; namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); // Unbind all events (on this namespace, if provided) for the element if ( !type ) { for ( type in events ) { jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); } continue; } special = jQuery.event.special[ type ] || {}; type = ( selector ? special.delegateType : special.bindType ) || type; handlers = events[ type ] || []; tmp = tmp[ 2 ] && new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); // Remove matching events origCount = j = handlers.length; while ( j-- ) { handleObj = handlers[ j ]; if ( ( mappedTypes || origType === handleObj.origType ) && ( !handler || handler.guid === handleObj.guid ) && ( !tmp || tmp.test( handleObj.namespace ) ) && ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { handlers.splice( j, 1 ); if ( handleObj.selector ) { handlers.delegateCount--; } if ( special.remove ) { special.remove.call( elem, handleObj ); } } } // Remove generic event handler if we removed something and no more handlers exist // (avoids potential for endless recursion during removal of special event handlers) if ( origCount && !handlers.length ) { if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { jQuery.removeEvent( elem, type, elemData.handle ); } delete events[ type ]; } } // Remove data and the expando if it's no longer used if ( jQuery.isEmptyObject( events ) ) { dataPriv.remove( elem, "handle events" ); } }, dispatch: function( nativeEvent ) { var i, j, ret, matched, handleObj, handlerQueue, args = new Array( arguments.length ), // Make a writable jQuery.Event from the native event object event = jQuery.event.fix( nativeEvent ), handlers = ( dataPriv.get( this, "events" ) || Object.create( null ) )[ event.type ] || [], special = jQuery.event.special[ event.type ] || {}; // Use the fix-ed jQuery.Event rather than the (read-only) native event args[ 0 ] = event; for ( i = 1; i < arguments.length; i++ ) { args[ i ] = arguments[ i ]; } event.delegateTarget = this; // Call the preDispatch hook for the mapped type, and let it bail if desired if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { return; } // Determine handlers handlerQueue = jQuery.event.handlers.call( this, event, handlers ); // Run delegates first; they may want to stop propagation beneath us i = 0; while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { event.currentTarget = matched.elem; j = 0; while ( ( handleObj = matched.handlers[ j++ ] ) && !event.isImmediatePropagationStopped() ) { // If the event is namespaced, then each handler is only invoked if it is // specially universal or its namespaces are a superset of the event's. if ( !event.rnamespace || handleObj.namespace === false || event.rnamespace.test( handleObj.namespace ) ) { event.handleObj = handleObj; event.data = handleObj.data; ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || handleObj.handler ).apply( matched.elem, args ); if ( ret !== undefined ) { if ( ( event.result = ret ) === false ) { event.preventDefault(); event.stopPropagation(); } } } } } // Call the postDispatch hook for the mapped type if ( special.postDispatch ) { special.postDispatch.call( this, event ); } return event.result; }, handlers: function( event, handlers ) { var i, handleObj, sel, matchedHandlers, matchedSelectors, handlerQueue = [], delegateCount = handlers.delegateCount, cur = event.target; // Find delegate handlers if ( delegateCount && // Support: IE <=9 // Black-hole SVG <use> instance trees (trac-13180) cur.nodeType && // Support: Firefox <=42 // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click // Support: IE 11 only // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) !( event.type === "click" && event.button >= 1 ) ) { for ( ; cur !== this; cur = cur.parentNode || this ) { // Don't check non-elements (#13208) // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { matchedHandlers = []; matchedSelectors = {}; for ( i = 0; i < delegateCount; i++ ) { handleObj = handlers[ i ]; // Don't conflict with Object.prototype properties (#13203) sel = handleObj.selector + " "; if ( matchedSelectors[ sel ] === undefined ) { matchedSelectors[ sel ] = handleObj.needsContext ? jQuery( sel, this ).index( cur ) > -1 : jQuery.find( sel, this, null, [ cur ] ).length; } if ( matchedSelectors[ sel ] ) { matchedHandlers.push( handleObj ); } } if ( matchedHandlers.length ) { handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); } } } } // Add the remaining (directly-bound) handlers cur = this; if ( delegateCount < handlers.length ) { handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); } return handlerQueue; }, addProp: function( name, hook ) { Object.defineProperty( jQuery.Event.prototype, name, { enumerable: true, configurable: true, get: isFunction( hook ) ? function() { if ( this.originalEvent ) { return hook( this.originalEvent ); } } : function() { if ( this.originalEvent ) { return this.originalEvent[ name ]; } }, set: function( value ) { Object.defineProperty( this, name, { enumerable: true, configurable: true, writable: true, value: value } ); } } ); }, fix: function( originalEvent ) { return originalEvent[ jQuery.expando ] ? originalEvent : new jQuery.Event( originalEvent ); }, special: { load: { // Prevent triggered image.load events from bubbling to window.load noBubble: true }, click: { // Utilize native event to ensure correct state for checkable inputs setup: function( data ) { // For mutual compressibility with _default, replace `this` access with a local var. // `|| data` is dead code meant only to preserve the variable through minification. var el = this || data; // Claim the first handler if ( rcheckableType.test( el.type ) && el.click && nodeName( el, "input" ) ) { // dataPriv.set( el, "click", ... ) leverageNative( el, "click", returnTrue ); } // Return false to allow normal processing in the caller return false; }, trigger: function( data ) { // For mutual compressibility with _default, replace `this` access with a local var. // `|| data` is dead code meant only to preserve the variable through minification. var el = this || data; // Force setup before triggering a click if ( rcheckableType.test( el.type ) && el.click && nodeName( el, "input" ) ) { leverageNative( el, "click" ); } // Return non-false to allow normal event-path propagation return true; }, // For cross-browser consistency, suppress native .click() on links // Also prevent it if we're currently inside a leveraged native-event stack _default: function( event ) { var target = event.target; return rcheckableType.test( target.type ) && target.click && nodeName( target, "input" ) && dataPriv.get( target, "click" ) || nodeName( target, "a" ); } }, beforeunload: { postDispatch: function( event ) { // Support: Firefox 20+ // Firefox doesn't alert if the returnValue field is not set. if ( event.result !== undefined && event.originalEvent ) { event.originalEvent.returnValue = event.result; } } } } }; // Ensure the presence of an event listener that handles manually-triggered // synthetic events by interrupting progress until reinvoked in response to // *native* events that it fires directly, ensuring that state changes have // already occurred before other listeners are invoked. function leverageNative( el, type, expectSync ) { // Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add if ( !expectSync ) { if ( dataPriv.get( el, type ) === undefined ) { jQuery.event.add( el, type, returnTrue ); } return; } // Register the controller as a special universal handler for all event namespaces dataPriv.set( el, type, false ); jQuery.event.add( el, type, { namespace: false, handler: function( event ) { var notAsync, result, saved = dataPriv.get( this, type ); if ( ( event.isTrigger & 1 ) && this[ type ] ) { // Interrupt processing of the outer synthetic .trigger()ed event // Saved data should be false in such cases, but might be a leftover capture object // from an async native handler (gh-4350) if ( !saved.length ) { // Store arguments for use when handling the inner native event // There will always be at least one argument (an event object), so this array // will not be confused with a leftover capture object. saved = slice.call( arguments ); dataPriv.set( this, type, saved ); // Trigger the native event and capture its result // Support: IE <=9 - 11+ // focus() and blur() are asynchronous notAsync = expectSync( this, type ); this[ type ](); result = dataPriv.get( this, type ); if ( saved !== result || notAsync ) { dataPriv.set( this, type, false ); } else { result = {}; } if ( saved !== result ) { // Cancel the outer synthetic event event.stopImmediatePropagation(); event.preventDefault(); // Support: Chrome 86+ // In Chrome, if an element having a focusout handler is blurred by // clicking outside of it, it invokes the handler synchronously. If // that handler calls `.remove()` on the element, the data is cleared, // leaving `result` undefined. We need to guard against this. return result && result.value; } // If this is an inner synthetic event for an event with a bubbling surrogate // (focus or blur), assume that the surrogate already propagated from triggering the // native event and prevent that from happening again here. // This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the // bubbling surrogate propagates *after* the non-bubbling base), but that seems // less bad than duplication. } else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) { event.stopPropagation(); } // If this is a native event triggered above, everything is now in order // Fire an inner synthetic event with the original arguments } else if ( saved.length ) { // ...and capture the result dataPriv.set( this, type, { value: jQuery.event.trigger( // Support: IE <=9 - 11+ // Extend with the prototype to reset the above stopImmediatePropagation() jQuery.extend( saved[ 0 ], jQuery.Event.prototype ), saved.slice( 1 ), this ) } ); // Abort handling of the native event event.stopImmediatePropagation(); } } } ); } jQuery.removeEvent = function( elem, type, handle ) { // This "if" is needed for plain objects if ( elem.removeEventListener ) { elem.removeEventListener( type, handle ); } }; jQuery.Event = function( src, props ) { // Allow instantiation without the 'new' keyword if ( !( this instanceof jQuery.Event ) ) { return new jQuery.Event( src, props ); } // Event object if ( src && src.type ) { this.originalEvent = src; this.type = src.type; // Events bubbling up the document may have been marked as prevented // by a handler lower down the tree; reflect the correct value. this.isDefaultPrevented = src.defaultPrevented || src.defaultPrevented === undefined && // Support: Android <=2.3 only src.returnValue === false ? returnTrue : returnFalse; // Create target properties // Support: Safari <=6 - 7 only // Target should not be a text node (#504, #13143) this.target = ( src.target && src.target.nodeType === 3 ) ? src.target.parentNode : src.target; this.currentTarget = src.currentTarget; this.relatedTarget = src.relatedTarget; // Event type } else { this.type = src; } // Put explicitly provided properties onto the event object if ( props ) { jQuery.extend( this, props ); } // Create a timestamp if incoming event doesn't have one this.timeStamp = src && src.timeStamp || Date.now(); // Mark it as fixed this[ jQuery.expando ] = true; }; // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding // https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html jQuery.Event.prototype = { constructor: jQuery.Event, isDefaultPrevented: returnFalse, isPropagationStopped: returnFalse, isImmediatePropagationStopped: returnFalse, isSimulated: false, preventDefault: function() { var e = this.originalEvent; this.isDefaultPrevented = returnTrue; if ( e && !this.isSimulated ) { e.preventDefault(); } }, stopPropagation: function() { var e = this.originalEvent; this.isPropagationStopped = returnTrue; if ( e && !this.isSimulated ) { e.stopPropagation(); } }, stopImmediatePropagation: function() { var e = this.originalEvent; this.isImmediatePropagationStopped = returnTrue; if ( e && !this.isSimulated ) { e.stopImmediatePropagation(); } this.stopPropagation(); } }; // Includes all common event props including KeyEvent and MouseEvent specific props jQuery.each( { altKey: true, bubbles: true, cancelable: true, changedTouches: true, ctrlKey: true, detail: true, eventPhase: true, metaKey: true, pageX: true, pageY: true, shiftKey: true, view: true, "char": true, code: true, charCode: true, key: true, keyCode: true, button: true, buttons: true, clientX: true, clientY: true, offsetX: true, offsetY: true, pointerId: true, pointerType: true, screenX: true, screenY: true, targetTouches: true, toElement: true, touches: true, which: true }, jQuery.event.addProp ); jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) { jQuery.event.special[ type ] = { // Utilize native event if possible so blur/focus sequence is correct setup: function() { // Claim the first handler // dataPriv.set( this, "focus", ... ) // dataPriv.set( this, "blur", ... ) leverageNative( this, type, expectSync ); // Return false to allow normal processing in the caller return false; }, trigger: function() { // Force setup before trigger leverageNative( this, type ); // Return non-false to allow normal event-path propagation return true; }, // Suppress native focus or blur as it's already being fired // in leverageNative. _default: function() { return true; }, delegateType: delegateType }; } ); // Create mouseenter/leave events using mouseover/out and event-time checks // so that event delegation works in jQuery. // Do the same for pointerenter/pointerleave and pointerover/pointerout // // Support: Safari 7 only // Safari sends mouseenter too often; see: // https://bugs.chromium.org/p/chromium/issues/detail?id=470258 // for the description of the bug (it existed in older Chrome versions as well). jQuery.each( { mouseenter: "mouseover", mouseleave: "mouseout", pointerenter: "pointerover", pointerleave: "pointerout" }, function( orig, fix ) { jQuery.event.special[ orig ] = { delegateType: fix, bindType: fix, handle: function( event ) { var ret, target = this, related = event.relatedTarget, handleObj = event.handleObj; // For mouseenter/leave call the handler if related is outside the target. // NB: No relatedTarget if the mouse left/entered the browser window if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { event.type = handleObj.origType; ret = handleObj.handler.apply( this, arguments ); event.type = fix; } return ret; } }; } ); jQuery.fn.extend( { on: function( types, selector, data, fn ) { return on( this, types, selector, data, fn ); }, one: function( types, selector, data, fn ) { return on( this, types, selector, data, fn, 1 ); }, off: function( types, selector, fn ) { var handleObj, type; if ( types && types.preventDefault && types.handleObj ) { // ( event ) dispatched jQuery.Event handleObj = types.handleObj; jQuery( types.delegateTarget ).off( handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, handleObj.selector, handleObj.handler ); return this; } if ( typeof types === "object" ) { // ( types-object [, selector] ) for ( type in types ) { this.off( type, selector, types[ type ] ); } return this; } if ( selector === false || typeof selector === "function" ) { // ( types [, fn] ) fn = selector; selector = undefined; } if ( fn === false ) { fn = returnFalse; } return this.each( function() { jQuery.event.remove( this, types, fn, selector ); } ); } } ); var // Support: IE <=10 - 11, Edge 12 - 13 only // In IE/Edge using regex groups here causes severe slowdowns. // See https://connect.microsoft.com/IE/feedback/details/1736512/ rnoInnerhtml = /<script|<style|<link/i, // checked="checked" or checked rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g; // Prefer a tbody over its parent table for containing new rows function manipulationTarget( elem, content ) { if ( nodeName( elem, "table" ) && nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { return jQuery( elem ).children( "tbody" )[ 0 ] || elem; } return elem; } // Replace/restore the type attribute of script elements for safe DOM manipulation function disableScript( elem ) { elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; return elem; } function restoreScript( elem ) { if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) { elem.type = elem.type.slice( 5 ); } else { elem.removeAttribute( "type" ); } return elem; } function cloneCopyEvent( src, dest ) { var i, l, type, pdataOld, udataOld, udataCur, events; if ( dest.nodeType !== 1 ) { return; } // 1. Copy private data: events, handlers, etc. if ( dataPriv.hasData( src ) ) { pdataOld = dataPriv.get( src ); events = pdataOld.events; if ( events ) { dataPriv.remove( dest, "handle events" ); for ( type in events ) { for ( i = 0, l = events[ type ].length; i < l; i++ ) { jQuery.event.add( dest, type, events[ type ][ i ] ); } } } } // 2. Copy user data if ( dataUser.hasData( src ) ) { udataOld = dataUser.access( src ); udataCur = jQuery.extend( {}, udataOld ); dataUser.set( dest, udataCur ); } } // Fix IE bugs, see support tests function fixInput( src, dest ) { var nodeName = dest.nodeName.toLowerCase(); // Fails to persist the checked state of a cloned checkbox or radio button. if ( nodeName === "input" && rcheckableType.test( src.type ) ) { dest.checked = src.checked; // Fails to return the selected option to the default selected state when cloning options } else if ( nodeName === "input" || nodeName === "textarea" ) { dest.defaultValue = src.defaultValue; } } function domManip( collection, args, callback, ignored ) { // Flatten any nested arrays args = flat( args ); var fragment, first, scripts, hasScripts, node, doc, i = 0, l = collection.length, iNoClone = l - 1, value = args[ 0 ], valueIsFunction = isFunction( value ); // We can't cloneNode fragments that contain checked, in WebKit if ( valueIsFunction || ( l > 1 && typeof value === "string" && !support.checkClone && rchecked.test( value ) ) ) { return collection.each( function( index ) { var self = collection.eq( index ); if ( valueIsFunction ) { args[ 0 ] = value.call( this, index, self.html() ); } domManip( self, args, callback, ignored ); } ); } if ( l ) { fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); first = fragment.firstChild; if ( fragment.childNodes.length === 1 ) { fragment = first; } // Require either new content or an interest in ignored elements to invoke the callback if ( first || ignored ) { scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); hasScripts = scripts.length; // Use the original fragment for the last item // instead of the first because it can end up // being emptied incorrectly in certain situations (#8070). for ( ; i < l; i++ ) { node = fragment; if ( i !== iNoClone ) { node = jQuery.clone( node, true, true ); // Keep references to cloned scripts for later restoration if ( hasScripts ) { // Support: Android <=4.0 only, PhantomJS 1 only // push.apply(_, arraylike) throws on ancient WebKit jQuery.merge( scripts, getAll( node, "script" ) ); } } callback.call( collection[ i ], node, i ); } if ( hasScripts ) { doc = scripts[ scripts.length - 1 ].ownerDocument; // Reenable scripts jQuery.map( scripts, restoreScript ); // Evaluate executable scripts on first document insertion for ( i = 0; i < hasScripts; i++ ) { node = scripts[ i ]; if ( rscriptType.test( node.type || "" ) && !dataPriv.access( node, "globalEval" ) && jQuery.contains( doc, node ) ) { if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) { // Optional AJAX dependency, but won't run scripts if not present if ( jQuery._evalUrl && !node.noModule ) { jQuery._evalUrl( node.src, { nonce: node.nonce || node.getAttribute( "nonce" ) }, doc ); } } else { DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc ); } } } } } } return collection; } function remove( elem, selector, keepData ) { var node, nodes = selector ? jQuery.filter( selector, elem ) : elem, i = 0; for ( ; ( node = nodes[ i ] ) != null; i++ ) { if ( !keepData && node.nodeType === 1 ) { jQuery.cleanData( getAll( node ) ); } if ( node.parentNode ) { if ( keepData && isAttached( node ) ) { setGlobalEval( getAll( node, "script" ) ); } node.parentNode.removeChild( node ); } } return elem; } jQuery.extend( { htmlPrefilter: function( html ) { return html; }, clone: function( elem, dataAndEvents, deepDataAndEvents ) { var i, l, srcElements, destElements, clone = elem.cloneNode( true ), inPage = isAttached( elem ); // Fix IE cloning issues if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && !jQuery.isXMLDoc( elem ) ) { // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 destElements = getAll( clone ); srcElements = getAll( elem ); for ( i = 0, l = srcElements.length; i < l; i++ ) { fixInput( srcElements[ i ], destElements[ i ] ); } } // Copy the events from the original to the clone if ( dataAndEvents ) { if ( deepDataAndEvents ) { srcElements = srcElements || getAll( elem ); destElements = destElements || getAll( clone ); for ( i = 0, l = srcElements.length; i < l; i++ ) { cloneCopyEvent( srcElements[ i ], destElements[ i ] ); } } else { cloneCopyEvent( elem, clone ); } } // Preserve script evaluation history destElements = getAll( clone, "script" ); if ( destElements.length > 0 ) { setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); } // Return the cloned set return clone; }, cleanData: function( elems ) { var data, elem, type, special = jQuery.event.special, i = 0; for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { if ( acceptData( elem ) ) { if ( ( data = elem[ dataPriv.expando ] ) ) { if ( data.events ) { for ( type in data.events ) { if ( special[ type ] ) { jQuery.event.remove( elem, type ); // This is a shortcut to avoid jQuery.event.remove's overhead } else { jQuery.removeEvent( elem, type, data.handle ); } } } // Support: Chrome <=35 - 45+ // Assign undefined instead of using delete, see Data#remove elem[ dataPriv.expando ] = undefined; } if ( elem[ dataUser.expando ] ) { // Support: Chrome <=35 - 45+ // Assign undefined instead of using delete, see Data#remove elem[ dataUser.expando ] = undefined; } } } } } ); jQuery.fn.extend( { detach: function( selector ) { return remove( this, selector, true ); }, remove: function( selector ) { return remove( this, selector ); }, text: function( value ) { return access( this, function( value ) { return value === undefined ? jQuery.text( this ) : this.empty().each( function() { if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { this.textContent = value; } } ); }, null, value, arguments.length ); }, append: function() { return domManip( this, arguments, function( elem ) { if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { var target = manipulationTarget( this, elem ); target.appendChild( elem ); } } ); }, prepend: function() { return domManip( this, arguments, function( elem ) { if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { var target = manipulationTarget( this, elem ); target.insertBefore( elem, target.firstChild ); } } ); }, before: function() { return domManip( this, arguments, function( elem ) { if ( this.parentNode ) { this.parentNode.insertBefore( elem, this ); } } ); }, after: function() { return domManip( this, arguments, function( elem ) { if ( this.parentNode ) { this.parentNode.insertBefore( elem, this.nextSibling ); } } ); }, empty: function() { var elem, i = 0; for ( ; ( elem = this[ i ] ) != null; i++ ) { if ( elem.nodeType === 1 ) { // Prevent memory leaks jQuery.cleanData( getAll( elem, false ) ); // Remove any remaining nodes elem.textContent = ""; } } return this; }, clone: function( dataAndEvents, deepDataAndEvents ) { dataAndEvents = dataAndEvents == null ? false : dataAndEvents; deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; return this.map( function() { return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); } ); }, html: function( value ) { return access( this, function( value ) { var elem = this[ 0 ] || {}, i = 0, l = this.length; if ( value === undefined && elem.nodeType === 1 ) { return elem.innerHTML; } // See if we can take a shortcut and just use innerHTML if ( typeof value === "string" && !rnoInnerhtml.test( value ) && !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { value = jQuery.htmlPrefilter( value ); try { for ( ; i < l; i++ ) { elem = this[ i ] || {}; // Remove element nodes and prevent memory leaks if ( elem.nodeType === 1 ) { jQuery.cleanData( getAll( elem, false ) ); elem.innerHTML = value; } } elem = 0; // If using innerHTML throws an exception, use the fallback method } catch ( e ) {} } if ( elem ) { this.empty().append( value ); } }, null, value, arguments.length ); }, replaceWith: function() { var ignored = []; // Make the changes, replacing each non-ignored context element with the new content return domManip( this, arguments, function( elem ) { var parent = this.parentNode; if ( jQuery.inArray( this, ignored ) < 0 ) { jQuery.cleanData( getAll( this ) ); if ( parent ) { parent.replaceChild( elem, this ); } } // Force callback invocation }, ignored ); } } ); jQuery.each( { appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function( name, original ) { jQuery.fn[ name ] = function( selector ) { var elems, ret = [], insert = jQuery( selector ), last = insert.length - 1, i = 0; for ( ; i <= last; i++ ) { elems = i === last ? this : this.clone( true ); jQuery( insert[ i ] )[ original ]( elems ); // Support: Android <=4.0 only, PhantomJS 1 only // .get() because push.apply(_, arraylike) throws on ancient WebKit push.apply( ret, elems.get() ); } return this.pushStack( ret ); }; } ); var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); var getStyles = function( elem ) { // Support: IE <=11 only, Firefox <=30 (#15098, #14150) // IE throws on elements created in popups // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" var view = elem.ownerDocument.defaultView; if ( !view || !view.opener ) { view = window; } return view.getComputedStyle( elem ); }; var swap = function( elem, options, callback ) { var ret, name, old = {}; // Remember the old values, and insert the new ones for ( name in options ) { old[ name ] = elem.style[ name ]; elem.style[ name ] = options[ name ]; } ret = callback.call( elem ); // Revert the old values for ( name in options ) { elem.style[ name ] = old[ name ]; } return ret; }; var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" ); ( function() { // Executing both pixelPosition & boxSizingReliable tests require only one layout // so they're executed at the same time to save the second computation. function computeStyleTests() { // This is a singleton, we need to execute it only once if ( !div ) { return; } container.style.cssText = "position:absolute;left:-11111px;width:60px;" + "margin-top:1px;padding:0;border:0"; div.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;" + "margin:auto;border:1px;padding:1px;" + "width:60%;top:1%"; documentElement.appendChild( container ).appendChild( div ); var divStyle = window.getComputedStyle( div ); pixelPositionVal = divStyle.top !== "1%"; // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44 reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12; // Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3 // Some styles come back with percentage values, even though they shouldn't div.style.right = "60%"; pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36; // Support: IE 9 - 11 only // Detect misreporting of content dimensions for box-sizing:border-box elements boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36; // Support: IE 9 only // Detect overflow:scroll screwiness (gh-3699) // Support: Chrome <=64 // Don't get tricked when zoom affects offsetWidth (gh-4029) div.style.position = "absolute"; scrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12; documentElement.removeChild( container ); // Nullify the div so it wouldn't be stored in the memory and // it will also be a sign that checks already performed div = null; } function roundPixelMeasures( measure ) { return Math.round( parseFloat( measure ) ); } var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal, reliableTrDimensionsVal, reliableMarginLeftVal, container = document.createElement( "div" ), div = document.createElement( "div" ); // Finish early in limited (non-browser) environments if ( !div.style ) { return; } // Support: IE <=9 - 11 only // Style of cloned element affects source element cloned (#8908) div.style.backgroundClip = "content-box"; div.cloneNode( true ).style.backgroundClip = ""; support.clearCloneStyle = div.style.backgroundClip === "content-box"; jQuery.extend( support, { boxSizingReliable: function() { computeStyleTests(); return boxSizingReliableVal; }, pixelBoxStyles: function() { computeStyleTests(); return pixelBoxStylesVal; }, pixelPosition: function() { computeStyleTests(); return pixelPositionVal; }, reliableMarginLeft: function() { computeStyleTests(); return reliableMarginLeftVal; }, scrollboxSize: function() { computeStyleTests(); return scrollboxSizeVal; }, // Support: IE 9 - 11+, Edge 15 - 18+ // IE/Edge misreport `getComputedStyle` of table rows with width/height // set in CSS while `offset*` properties report correct values. // Behavior in IE 9 is more subtle than in newer versions & it passes // some versions of this test; make sure not to make it pass there! // // Support: Firefox 70+ // Only Firefox includes border widths // in computed dimensions. (gh-4529) reliableTrDimensions: function() { var table, tr, trChild, trStyle; if ( reliableTrDimensionsVal == null ) { table = document.createElement( "table" ); tr = document.createElement( "tr" ); trChild = document.createElement( "div" ); table.style.cssText = "position:absolute;left:-11111px;border-collapse:separate"; tr.style.cssText = "border:1px solid"; // Support: Chrome 86+ // Height set through cssText does not get applied. // Computed height then comes back as 0. tr.style.height = "1px"; trChild.style.height = "9px"; // Support: Android 8 Chrome 86+ // In our bodyBackground.html iframe, // display for all div elements is set to "inline", // which causes a problem only in Android 8 Chrome 86. // Ensuring the div is display: block // gets around this issue. trChild.style.display = "block"; documentElement .appendChild( table ) .appendChild( tr ) .appendChild( trChild ); trStyle = window.getComputedStyle( tr ); reliableTrDimensionsVal = ( parseInt( trStyle.height, 10 ) + parseInt( trStyle.borderTopWidth, 10 ) + parseInt( trStyle.borderBottomWidth, 10 ) ) === tr.offsetHeight; documentElement.removeChild( table ); } return reliableTrDimensionsVal; } } ); } )(); function curCSS( elem, name, computed ) { var width, minWidth, maxWidth, ret, // Support: Firefox 51+ // Retrieving style before computed somehow // fixes an issue with getting wrong values // on detached elements style = elem.style; computed = computed || getStyles( elem ); // getPropertyValue is needed for: // .css('filter') (IE 9 only, #12537) // .css('--customProperty) (#3144) if ( computed ) { ret = computed.getPropertyValue( name ) || computed[ name ]; if ( ret === "" && !isAttached( elem ) ) { ret = jQuery.style( elem, name ); } // A tribute to the "awesome hack by Dean Edwards" // Android Browser returns percentage for some values, // but width seems to be reliably pixels. // This is against the CSSOM draft spec: // https://drafts.csswg.org/cssom/#resolved-values if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) { // Remember the original values width = style.width; minWidth = style.minWidth; maxWidth = style.maxWidth; // Put in the new values to get a computed value out style.minWidth = style.maxWidth = style.width = ret; ret = computed.width; // Revert the changed values style.width = width; style.minWidth = minWidth; style.maxWidth = maxWidth; } } return ret !== undefined ? // Support: IE <=9 - 11 only // IE returns zIndex value as an integer. ret + "" : ret; } function addGetHookIf( conditionFn, hookFn ) { // Define the hook, we'll check on the first run if it's really needed. return { get: function() { if ( conditionFn() ) { // Hook not needed (or it's not possible to use it due // to missing dependency), remove it. delete this.get; return; } // Hook needed; redefine it so that the support test is not executed again. return ( this.get = hookFn ).apply( this, arguments ); } }; } var cssPrefixes = [ "Webkit", "Moz", "ms" ], emptyStyle = document.createElement( "div" ).style, vendorProps = {}; // Return a vendor-prefixed property or undefined function vendorPropName( name ) { // Check for vendor prefixed names var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), i = cssPrefixes.length; while ( i-- ) { name = cssPrefixes[ i ] + capName; if ( name in emptyStyle ) { return name; } } } // Return a potentially-mapped jQuery.cssProps or vendor prefixed property function finalPropName( name ) { var final = jQuery.cssProps[ name ] || vendorProps[ name ]; if ( final ) { return final; } if ( name in emptyStyle ) { return name; } return vendorProps[ name ] = vendorPropName( name ) || name; } var // Swappable if display is none or starts with table // except "table", "table-cell", or "table-caption" // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display rdisplayswap = /^(none|table(?!-c[ea]).+)/, rcustomProp = /^--/, cssShow = { position: "absolute", visibility: "hidden", display: "block" }, cssNormalTransform = { letterSpacing: "0", fontWeight: "400" }; function setPositiveNumber( _elem, value, subtract ) { // Any relative (+/-) values have already been // normalized at this point var matches = rcssNum.exec( value ); return matches ? // Guard against undefined "subtract", e.g., when used as in cssHooks Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : value; } function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) { var i = dimension === "width" ? 1 : 0, extra = 0, delta = 0; // Adjustment may not be necessary if ( box === ( isBorderBox ? "border" : "content" ) ) { return 0; } for ( ; i < 4; i += 2 ) { // Both box models exclude margin if ( box === "margin" ) { delta += jQuery.css( elem, box + cssExpand[ i ], true, styles ); } // If we get here with a content-box, we're seeking "padding" or "border" or "margin" if ( !isBorderBox ) { // Add padding delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); // For "border" or "margin", add border if ( box !== "padding" ) { delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); // But still keep track of it otherwise } else { extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); } // If we get here with a border-box (content + padding + border), we're seeking "content" or // "padding" or "margin" } else { // For "content", subtract padding if ( box === "content" ) { delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); } // For "content" or "padding", subtract border if ( box !== "margin" ) { delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); } } } // Account for positive content-box scroll gutter when requested by providing computedVal if ( !isBorderBox && computedVal >= 0 ) { // offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border // Assuming integer scroll gutter, subtract the rest and round down delta += Math.max( 0, Math.ceil( elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - computedVal - delta - extra - 0.5 // If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter // Use an explicit zero to avoid NaN (gh-3964) ) ) || 0; } return delta; } function getWidthOrHeight( elem, dimension, extra ) { // Start with computed style var styles = getStyles( elem ), // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322). // Fake content-box until we know it's needed to know the true value. boxSizingNeeded = !support.boxSizingReliable() || extra, isBorderBox = boxSizingNeeded && jQuery.css( elem, "boxSizing", false, styles ) === "border-box", valueIsBorderBox = isBorderBox, val = curCSS( elem, dimension, styles ), offsetProp = "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ); // Support: Firefox <=54 // Return a confounding non-pixel value or feign ignorance, as appropriate. if ( rnumnonpx.test( val ) ) { if ( !extra ) { return val; } val = "auto"; } // Support: IE 9 - 11 only // Use offsetWidth/offsetHeight for when box sizing is unreliable. // In those cases, the computed value can be trusted to be border-box. if ( ( !support.boxSizingReliable() && isBorderBox || // Support: IE 10 - 11+, Edge 15 - 18+ // IE/Edge misreport `getComputedStyle` of table rows with width/height // set in CSS while `offset*` properties report correct values. // Interestingly, in some cases IE 9 doesn't suffer from this issue. !support.reliableTrDimensions() && nodeName( elem, "tr" ) || // Fall back to offsetWidth/offsetHeight when value is "auto" // This happens for inline elements with no explicit setting (gh-3571) val === "auto" || // Support: Android <=4.1 - 4.3 only // Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602) !parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) && // Make sure the element is visible & connected elem.getClientRects().length ) { isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; // Where available, offsetWidth/offsetHeight approximate border box dimensions. // Where not available (e.g., SVG), assume unreliable box-sizing and interpret the // retrieved value as a content box dimension. valueIsBorderBox = offsetProp in elem; if ( valueIsBorderBox ) { val = elem[ offsetProp ]; } } // Normalize "" and auto val = parseFloat( val ) || 0; // Adjust for the element's box model return ( val + boxModelAdjustment( elem, dimension, extra || ( isBorderBox ? "border" : "content" ), valueIsBorderBox, styles, // Provide the current computed size to request scroll gutter calculation (gh-3589) val ) ) + "px"; } jQuery.extend( { // Add in style property hooks for overriding the default // behavior of getting and setting a style property cssHooks: { opacity: { get: function( elem, computed ) { if ( computed ) { // We should always get a number back from opacity var ret = curCSS( elem, "opacity" ); return ret === "" ? "1" : ret; } } } }, // Don't automatically add "px" to these possibly-unitless properties cssNumber: { "animationIterationCount": true, "columnCount": true, "fillOpacity": true, "flexGrow": true, "flexShrink": true, "fontWeight": true, "gridArea": true, "gridColumn": true, "gridColumnEnd": true, "gridColumnStart": true, "gridRow": true, "gridRowEnd": true, "gridRowStart": true, "lineHeight": true, "opacity": true, "order": true, "orphans": true, "widows": true, "zIndex": true, "zoom": true }, // Add in properties whose names you wish to fix before // setting or getting the value cssProps: {}, // Get and set the style property on a DOM Node style: function( elem, name, value, extra ) { // Don't set styles on text and comment nodes if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { return; } // Make sure that we're working with the right name var ret, type, hooks, origName = camelCase( name ), isCustomProp = rcustomProp.test( name ), style = elem.style; // Make sure that we're working with the right name. We don't // want to query the value if it is a CSS custom property // since they are user-defined. if ( !isCustomProp ) { name = finalPropName( origName ); } // Gets hook for the prefixed version, then unprefixed version hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; // Check if we're setting a value if ( value !== undefined ) { type = typeof value; // Convert "+=" or "-=" to relative numbers (#7345) if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { value = adjustCSS( elem, name, ret ); // Fixes bug #9237 type = "number"; } // Make sure that null and NaN values aren't set (#7116) if ( value == null || value !== value ) { return; } // If a number was passed in, add the unit (except for certain CSS properties) // The isCustomProp check can be removed in jQuery 4.0 when we only auto-append // "px" to a few hardcoded values. if ( type === "number" && !isCustomProp ) { value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); } // background-* props affect original clone's values if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { style[ name ] = "inherit"; } // If a hook was provided, use that value, otherwise just set the specified value if ( !hooks || !( "set" in hooks ) || ( value = hooks.set( elem, value, extra ) ) !== undefined ) { if ( isCustomProp ) { style.setProperty( name, value ); } else { style[ name ] = value; } } } else { // If a hook was provided get the non-computed value from there if ( hooks && "get" in hooks && ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { return ret; } // Otherwise just get the value from the style object return style[ name ]; } }, css: function( elem, name, extra, styles ) { var val, num, hooks, origName = camelCase( name ), isCustomProp = rcustomProp.test( name ); // Make sure that we're working with the right name. We don't // want to modify the value if it is a CSS custom property // since they are user-defined. if ( !isCustomProp ) { name = finalPropName( origName ); } // Try prefixed name followed by the unprefixed name hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; // If a hook was provided get the computed value from there if ( hooks && "get" in hooks ) { val = hooks.get( elem, true, extra ); } // Otherwise, if a way to get the computed value exists, use that if ( val === undefined ) { val = curCSS( elem, name, styles ); } // Convert "normal" to computed value if ( val === "normal" && name in cssNormalTransform ) { val = cssNormalTransform[ name ]; } // Make numeric if forced or a qualifier was provided and val looks numeric if ( extra === "" || extra ) { num = parseFloat( val ); return extra === true || isFinite( num ) ? num || 0 : val; } return val; } } ); jQuery.each( [ "height", "width" ], function( _i, dimension ) { jQuery.cssHooks[ dimension ] = { get: function( elem, computed, extra ) { if ( computed ) { // Certain elements can have dimension info if we invisibly show them // but it must have a current display style that would benefit return rdisplayswap.test( jQuery.css( elem, "display" ) ) && // Support: Safari 8+ // Table columns in Safari have non-zero offsetWidth & zero // getBoundingClientRect().width unless display is changed. // Support: IE <=11 only // Running getBoundingClientRect on a disconnected node // in IE throws an error. ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? swap( elem, cssShow, function() { return getWidthOrHeight( elem, dimension, extra ); } ) : getWidthOrHeight( elem, dimension, extra ); } }, set: function( elem, value, extra ) { var matches, styles = getStyles( elem ), // Only read styles.position if the test has a chance to fail // to avoid forcing a reflow. scrollboxSizeBuggy = !support.scrollboxSize() && styles.position === "absolute", // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991) boxSizingNeeded = scrollboxSizeBuggy || extra, isBorderBox = boxSizingNeeded && jQuery.css( elem, "boxSizing", false, styles ) === "border-box", subtract = extra ? boxModelAdjustment( elem, dimension, extra, isBorderBox, styles ) : 0; // Account for unreliable border-box dimensions by comparing offset* to computed and // faking a content-box to get border and padding (gh-3699) if ( isBorderBox && scrollboxSizeBuggy ) { subtract -= Math.ceil( elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - parseFloat( styles[ dimension ] ) - boxModelAdjustment( elem, dimension, "border", false, styles ) - 0.5 ); } // Convert to pixels if value adjustment is needed if ( subtract && ( matches = rcssNum.exec( value ) ) && ( matches[ 3 ] || "px" ) !== "px" ) { elem.style[ dimension ] = value; value = jQuery.css( elem, dimension ); } return setPositiveNumber( elem, value, subtract ); } }; } ); jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, function( elem, computed ) { if ( computed ) { return ( parseFloat( curCSS( elem, "marginLeft" ) ) || elem.getBoundingClientRect().left - swap( elem, { marginLeft: 0 }, function() { return elem.getBoundingClientRect().left; } ) ) + "px"; } } ); // These hooks are used by animate to expand properties jQuery.each( { margin: "", padding: "", border: "Width" }, function( prefix, suffix ) { jQuery.cssHooks[ prefix + suffix ] = { expand: function( value ) { var i = 0, expanded = {}, // Assumes a single number if not a string parts = typeof value === "string" ? value.split( " " ) : [ value ]; for ( ; i < 4; i++ ) { expanded[ prefix + cssExpand[ i ] + suffix ] = parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; } return expanded; } }; if ( prefix !== "margin" ) { jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; } } ); jQuery.fn.extend( { css: function( name, value ) { return access( this, function( elem, name, value ) { var styles, len, map = {}, i = 0; if ( Array.isArray( name ) ) { styles = getStyles( elem ); len = name.length; for ( ; i < len; i++ ) { map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); } return map; } return value !== undefined ? jQuery.style( elem, name, value ) : jQuery.css( elem, name ); }, name, value, arguments.length > 1 ); } } ); function Tween( elem, options, prop, end, easing ) { return new Tween.prototype.init( elem, options, prop, end, easing ); } jQuery.Tween = Tween; Tween.prototype = { constructor: Tween, init: function( elem, options, prop, end, easing, unit ) { this.elem = elem; this.prop = prop; this.easing = easing || jQuery.easing._default; this.options = options; this.start = this.now = this.cur(); this.end = end; this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); }, cur: function() { var hooks = Tween.propHooks[ this.prop ]; return hooks && hooks.get ? hooks.get( this ) : Tween.propHooks._default.get( this ); }, run: function( percent ) { var eased, hooks = Tween.propHooks[ this.prop ]; if ( this.options.duration ) { this.pos = eased = jQuery.easing[ this.easing ]( percent, this.options.duration * percent, 0, 1, this.options.duration ); } else { this.pos = eased = percent; } this.now = ( this.end - this.start ) * eased + this.start; if ( this.options.step ) { this.options.step.call( this.elem, this.now, this ); } if ( hooks && hooks.set ) { hooks.set( this ); } else { Tween.propHooks._default.set( this ); } return this; } }; Tween.prototype.init.prototype = Tween.prototype; Tween.propHooks = { _default: { get: function( tween ) { var result; // Use a property on the element directly when it is not a DOM element, // or when there is no matching style property that exists. if ( tween.elem.nodeType !== 1 || tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) { return tween.elem[ tween.prop ]; } // Passing an empty string as a 3rd parameter to .css will automatically // attempt a parseFloat and fallback to a string if the parse fails. // Simple values such as "10px" are parsed to Float; // complex values such as "rotate(1rad)" are returned as-is. result = jQuery.css( tween.elem, tween.prop, "" ); // Empty strings, null, undefined and "auto" are converted to 0. return !result || result === "auto" ? 0 : result; }, set: function( tween ) { // Use step hook for back compat. // Use cssHook if its there. // Use .style if available and use plain properties where available. if ( jQuery.fx.step[ tween.prop ] ) { jQuery.fx.step[ tween.prop ]( tween ); } else if ( tween.elem.nodeType === 1 && ( jQuery.cssHooks[ tween.prop ] || tween.elem.style[ finalPropName( tween.prop ) ] != null ) ) { jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); } else { tween.elem[ tween.prop ] = tween.now; } } } }; // Support: IE <=9 only // Panic based approach to setting things on disconnected nodes Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { set: function( tween ) { if ( tween.elem.nodeType && tween.elem.parentNode ) { tween.elem[ tween.prop ] = tween.now; } } }; jQuery.easing = { linear: function( p ) { return p; }, swing: function( p ) { return 0.5 - Math.cos( p * Math.PI ) / 2; }, _default: "swing" }; jQuery.fx = Tween.prototype.init; // Back compat <1.8 extension point jQuery.fx.step = {}; var fxNow, inProgress, rfxtypes = /^(?:toggle|show|hide)$/, rrun = /queueHooks$/; function schedule() { if ( inProgress ) { if ( document.hidden === false && window.requestAnimationFrame ) { window.requestAnimationFrame( schedule ); } else { window.setTimeout( schedule, jQuery.fx.interval ); } jQuery.fx.tick(); } } // Animations created synchronously will run synchronously function createFxNow() { window.setTimeout( function() { fxNow = undefined; } ); return ( fxNow = Date.now() ); } // Generate parameters to create a standard animation function genFx( type, includeWidth ) { var which, i = 0, attrs = { height: type }; // If we include width, step value is 1 to do all cssExpand values, // otherwise step value is 2 to skip over Left and Right includeWidth = includeWidth ? 1 : 0; for ( ; i < 4; i += 2 - includeWidth ) { which = cssExpand[ i ]; attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; } if ( includeWidth ) { attrs.opacity = attrs.width = type; } return attrs; } function createTween( value, prop, animation ) { var tween, collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), index = 0, length = collection.length; for ( ; index < length; index++ ) { if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { // We're done with this property return tween; } } } function defaultPrefilter( elem, props, opts ) { var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, isBox = "width" in props || "height" in props, anim = this, orig = {}, style = elem.style, hidden = elem.nodeType && isHiddenWithinTree( elem ), dataShow = dataPriv.get( elem, "fxshow" ); // Queue-skipping animations hijack the fx hooks if ( !opts.queue ) { hooks = jQuery._queueHooks( elem, "fx" ); if ( hooks.unqueued == null ) { hooks.unqueued = 0; oldfire = hooks.empty.fire; hooks.empty.fire = function() { if ( !hooks.unqueued ) { oldfire(); } }; } hooks.unqueued++; anim.always( function() { // Ensure the complete handler is called before this completes anim.always( function() { hooks.unqueued--; if ( !jQuery.queue( elem, "fx" ).length ) { hooks.empty.fire(); } } ); } ); } // Detect show/hide animations for ( prop in props ) { value = props[ prop ]; if ( rfxtypes.test( value ) ) { delete props[ prop ]; toggle = toggle || value === "toggle"; if ( value === ( hidden ? "hide" : "show" ) ) { // Pretend to be hidden if this is a "show" and // there is still data from a stopped show/hide if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { hidden = true; // Ignore all other no-op show/hide data } else { continue; } } orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); } } // Bail out if this is a no-op like .hide().hide() propTween = !jQuery.isEmptyObject( props ); if ( !propTween && jQuery.isEmptyObject( orig ) ) { return; } // Restrict "overflow" and "display" styles during box animations if ( isBox && elem.nodeType === 1 ) { // Support: IE <=9 - 11, Edge 12 - 15 // Record all 3 overflow attributes because IE does not infer the shorthand // from identically-valued overflowX and overflowY and Edge just mirrors // the overflowX value there. opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; // Identify a display type, preferring old show/hide data over the CSS cascade restoreDisplay = dataShow && dataShow.display; if ( restoreDisplay == null ) { restoreDisplay = dataPriv.get( elem, "display" ); } display = jQuery.css( elem, "display" ); if ( display === "none" ) { if ( restoreDisplay ) { display = restoreDisplay; } else { // Get nonempty value(s) by temporarily forcing visibility showHide( [ elem ], true ); restoreDisplay = elem.style.display || restoreDisplay; display = jQuery.css( elem, "display" ); showHide( [ elem ] ); } } // Animate inline elements as inline-block if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) { if ( jQuery.css( elem, "float" ) === "none" ) { // Restore the original display value at the end of pure show/hide animations if ( !propTween ) { anim.done( function() { style.display = restoreDisplay; } ); if ( restoreDisplay == null ) { display = style.display; restoreDisplay = display === "none" ? "" : display; } } style.display = "inline-block"; } } } if ( opts.overflow ) { style.overflow = "hidden"; anim.always( function() { style.overflow = opts.overflow[ 0 ]; style.overflowX = opts.overflow[ 1 ]; style.overflowY = opts.overflow[ 2 ]; } ); } // Implement show/hide animations propTween = false; for ( prop in orig ) { // General show/hide setup for this element animation if ( !propTween ) { if ( dataShow ) { if ( "hidden" in dataShow ) { hidden = dataShow.hidden; } } else { dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } ); } // Store hidden/visible for toggle so `.stop().toggle()` "reverses" if ( toggle ) { dataShow.hidden = !hidden; } // Show elements before animating them if ( hidden ) { showHide( [ elem ], true ); } /* eslint-disable no-loop-func */ anim.done( function() { /* eslint-enable no-loop-func */ // The final step of a "hide" animation is actually hiding the element if ( !hidden ) { showHide( [ elem ] ); } dataPriv.remove( elem, "fxshow" ); for ( prop in orig ) { jQuery.style( elem, prop, orig[ prop ] ); } } ); } // Per-property setup propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); if ( !( prop in dataShow ) ) { dataShow[ prop ] = propTween.start; if ( hidden ) { propTween.end = propTween.start; propTween.start = 0; } } } } function propFilter( props, specialEasing ) { var index, name, easing, value, hooks; // camelCase, specialEasing and expand cssHook pass for ( index in props ) { name = camelCase( index ); easing = specialEasing[ name ]; value = props[ index ]; if ( Array.isArray( value ) ) { easing = value[ 1 ]; value = props[ index ] = value[ 0 ]; } if ( index !== name ) { props[ name ] = value; delete props[ index ]; } hooks = jQuery.cssHooks[ name ]; if ( hooks && "expand" in hooks ) { value = hooks.expand( value ); delete props[ name ]; // Not quite $.extend, this won't overwrite existing keys. // Reusing 'index' because we have the correct "name" for ( index in value ) { if ( !( index in props ) ) { props[ index ] = value[ index ]; specialEasing[ index ] = easing; } } } else { specialEasing[ name ] = easing; } } } function Animation( elem, properties, options ) { var result, stopped, index = 0, length = Animation.prefilters.length, deferred = jQuery.Deferred().always( function() { // Don't match elem in the :animated selector delete tick.elem; } ), tick = function() { if ( stopped ) { return false; } var currentTime = fxNow || createFxNow(), remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), // Support: Android 2.3 only // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) temp = remaining / animation.duration || 0, percent = 1 - temp, index = 0, length = animation.tweens.length; for ( ; index < length; index++ ) { animation.tweens[ index ].run( percent ); } deferred.notifyWith( elem, [ animation, percent, remaining ] ); // If there's more to do, yield if ( percent < 1 && length ) { return remaining; } // If this was an empty animation, synthesize a final progress notification if ( !length ) { deferred.notifyWith( elem, [ animation, 1, 0 ] ); } // Resolve the animation and report its conclusion deferred.resolveWith( elem, [ animation ] ); return false; }, animation = deferred.promise( { elem: elem, props: jQuery.extend( {}, properties ), opts: jQuery.extend( true, { specialEasing: {}, easing: jQuery.easing._default }, options ), originalProperties: properties, originalOptions: options, startTime: fxNow || createFxNow(), duration: options.duration, tweens: [], createTween: function( prop, end ) { var tween = jQuery.Tween( elem, animation.opts, prop, end, animation.opts.specialEasing[ prop ] || animation.opts.easing ); animation.tweens.push( tween ); return tween; }, stop: function( gotoEnd ) { var index = 0, // If we are going to the end, we want to run all the tweens // otherwise we skip this part length = gotoEnd ? animation.tweens.length : 0; if ( stopped ) { return this; } stopped = true; for ( ; index < length; index++ ) { animation.tweens[ index ].run( 1 ); } // Resolve when we played the last frame; otherwise, reject if ( gotoEnd ) { deferred.notifyWith( elem, [ animation, 1, 0 ] ); deferred.resolveWith( elem, [ animation, gotoEnd ] ); } else { deferred.rejectWith( elem, [ animation, gotoEnd ] ); } return this; } } ), props = animation.props; propFilter( props, animation.opts.specialEasing ); for ( ; index < length; index++ ) { result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); if ( result ) { if ( isFunction( result.stop ) ) { jQuery._queueHooks( animation.elem, animation.opts.queue ).stop = result.stop.bind( result ); } return result; } } jQuery.map( props, createTween, animation ); if ( isFunction( animation.opts.start ) ) { animation.opts.start.call( elem, animation ); } // Attach callbacks from options animation .progress( animation.opts.progress ) .done( animation.opts.done, animation.opts.complete ) .fail( animation.opts.fail ) .always( animation.opts.always ); jQuery.fx.timer( jQuery.extend( tick, { elem: elem, anim: animation, queue: animation.opts.queue } ) ); return animation; } jQuery.Animation = jQuery.extend( Animation, { tweeners: { "*": [ function( prop, value ) { var tween = this.createTween( prop, value ); adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween ); return tween; } ] }, tweener: function( props, callback ) { if ( isFunction( props ) ) { callback = props; props = [ "*" ]; } else { props = props.match( rnothtmlwhite ); } var prop, index = 0, length = props.length; for ( ; index < length; index++ ) { prop = props[ index ]; Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; Animation.tweeners[ prop ].unshift( callback ); } }, prefilters: [ defaultPrefilter ], prefilter: function( callback, prepend ) { if ( prepend ) { Animation.prefilters.unshift( callback ); } else { Animation.prefilters.push( callback ); } } } ); jQuery.speed = function( speed, easing, fn ) { var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { complete: fn || !fn && easing || isFunction( speed ) && speed, duration: speed, easing: fn && easing || easing && !isFunction( easing ) && easing }; // Go to the end state if fx are off if ( jQuery.fx.off ) { opt.duration = 0; } else { if ( typeof opt.duration !== "number" ) { if ( opt.duration in jQuery.fx.speeds ) { opt.duration = jQuery.fx.speeds[ opt.duration ]; } else { opt.duration = jQuery.fx.speeds._default; } } } // Normalize opt.queue - true/undefined/null -> "fx" if ( opt.queue == null || opt.queue === true ) { opt.queue = "fx"; } // Queueing opt.old = opt.complete; opt.complete = function() { if ( isFunction( opt.old ) ) { opt.old.call( this ); } if ( opt.queue ) { jQuery.dequeue( this, opt.queue ); } }; return opt; }; jQuery.fn.extend( { fadeTo: function( speed, to, easing, callback ) { // Show any hidden elements after setting opacity to 0 return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show() // Animate to the value specified .end().animate( { opacity: to }, speed, easing, callback ); }, animate: function( prop, speed, easing, callback ) { var empty = jQuery.isEmptyObject( prop ), optall = jQuery.speed( speed, easing, callback ), doAnimation = function() { // Operate on a copy of prop so per-property easing won't be lost var anim = Animation( this, jQuery.extend( {}, prop ), optall ); // Empty animations, or finishing resolves immediately if ( empty || dataPriv.get( this, "finish" ) ) { anim.stop( true ); } }; doAnimation.finish = doAnimation; return empty || optall.queue === false ? this.each( doAnimation ) : this.queue( optall.queue, doAnimation ); }, stop: function( type, clearQueue, gotoEnd ) { var stopQueue = function( hooks ) { var stop = hooks.stop; delete hooks.stop; stop( gotoEnd ); }; if ( typeof type !== "string" ) { gotoEnd = clearQueue; clearQueue = type; type = undefined; } if ( clearQueue ) { this.queue( type || "fx", [] ); } return this.each( function() { var dequeue = true, index = type != null && type + "queueHooks", timers = jQuery.timers, data = dataPriv.get( this ); if ( index ) { if ( data[ index ] && data[ index ].stop ) { stopQueue( data[ index ] ); } } else { for ( index in data ) { if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { stopQueue( data[ index ] ); } } } for ( index = timers.length; index--; ) { if ( timers[ index ].elem === this && ( type == null || timers[ index ].queue === type ) ) { timers[ index ].anim.stop( gotoEnd ); dequeue = false; timers.splice( index, 1 ); } } // Start the next in the queue if the last step wasn't forced. // Timers currently will call their complete callbacks, which // will dequeue but only if they were gotoEnd. if ( dequeue || !gotoEnd ) { jQuery.dequeue( this, type ); } } ); }, finish: function( type ) { if ( type !== false ) { type = type || "fx"; } return this.each( function() { var index, data = dataPriv.get( this ), queue = data[ type + "queue" ], hooks = data[ type + "queueHooks" ], timers = jQuery.timers, length = queue ? queue.length : 0; // Enable finishing flag on private data data.finish = true; // Empty the queue first jQuery.queue( this, type, [] ); if ( hooks && hooks.stop ) { hooks.stop.call( this, true ); } // Look for any active animations, and finish them for ( index = timers.length; index--; ) { if ( timers[ index ].elem === this && timers[ index ].queue === type ) { timers[ index ].anim.stop( true ); timers.splice( index, 1 ); } } // Look for any animations in the old queue and finish them for ( index = 0; index < length; index++ ) { if ( queue[ index ] && queue[ index ].finish ) { queue[ index ].finish.call( this ); } } // Turn off finishing flag delete data.finish; } ); } } ); jQuery.each( [ "toggle", "show", "hide" ], function( _i, name ) { var cssFn = jQuery.fn[ name ]; jQuery.fn[ name ] = function( speed, easing, callback ) { return speed == null || typeof speed === "boolean" ? cssFn.apply( this, arguments ) : this.animate( genFx( name, true ), speed, easing, callback ); }; } ); // Generate shortcuts for custom animations jQuery.each( { slideDown: genFx( "show" ), slideUp: genFx( "hide" ), slideToggle: genFx( "toggle" ), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide" }, fadeToggle: { opacity: "toggle" } }, function( name, props ) { jQuery.fn[ name ] = function( speed, easing, callback ) { return this.animate( props, speed, easing, callback ); }; } ); jQuery.timers = []; jQuery.fx.tick = function() { var timer, i = 0, timers = jQuery.timers; fxNow = Date.now(); for ( ; i < timers.length; i++ ) { timer = timers[ i ]; // Run the timer and safely remove it when done (allowing for external removal) if ( !timer() && timers[ i ] === timer ) { timers.splice( i--, 1 ); } } if ( !timers.length ) { jQuery.fx.stop(); } fxNow = undefined; }; jQuery.fx.timer = function( timer ) { jQuery.timers.push( timer ); jQuery.fx.start(); }; jQuery.fx.interval = 13; jQuery.fx.start = function() { if ( inProgress ) { return; } inProgress = true; schedule(); }; jQuery.fx.stop = function() { inProgress = null; }; jQuery.fx.speeds = { slow: 600, fast: 200, // Default speed _default: 400 }; // Based off of the plugin by Clint Helfers, with permission. // https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/ jQuery.fn.delay = function( time, type ) { time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; type = type || "fx"; return this.queue( type, function( next, hooks ) { var timeout = window.setTimeout( next, time ); hooks.stop = function() { window.clearTimeout( timeout ); }; } ); }; ( function() { var input = document.createElement( "input" ), select = document.createElement( "select" ), opt = select.appendChild( document.createElement( "option" ) ); input.type = "checkbox"; // Support: Android <=4.3 only // Default value for a checkbox should be "on" support.checkOn = input.value !== ""; // Support: IE <=11 only // Must access selectedIndex to make default options select support.optSelected = opt.selected; // Support: IE <=11 only // An input loses its value after becoming a radio input = document.createElement( "input" ); input.value = "t"; input.type = "radio"; support.radioValue = input.value === "t"; } )(); var boolHook, attrHandle = jQuery.expr.attrHandle; jQuery.fn.extend( { attr: function( name, value ) { return access( this, jQuery.attr, name, value, arguments.length > 1 ); }, removeAttr: function( name ) { return this.each( function() { jQuery.removeAttr( this, name ); } ); } } ); jQuery.extend( { attr: function( elem, name, value ) { var ret, hooks, nType = elem.nodeType; // Don't get/set attributes on text, comment and attribute nodes if ( nType === 3 || nType === 8 || nType === 2 ) { return; } // Fallback to prop when attributes are not supported if ( typeof elem.getAttribute === "undefined" ) { return jQuery.prop( elem, name, value ); } // Attribute hooks are determined by the lowercase version // Grab necessary hook if one is defined if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { hooks = jQuery.attrHooks[ name.toLowerCase() ] || ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined ); } if ( value !== undefined ) { if ( value === null ) { jQuery.removeAttr( elem, name ); return; } if ( hooks && "set" in hooks && ( ret = hooks.set( elem, value, name ) ) !== undefined ) { return ret; } elem.setAttribute( name, value + "" ); return value; } if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { return ret; } ret = jQuery.find.attr( elem, name ); // Non-existent attributes return null, we normalize to undefined return ret == null ? undefined : ret; }, attrHooks: { type: { set: function( elem, value ) { if ( !support.radioValue && value === "radio" && nodeName( elem, "input" ) ) { var val = elem.value; elem.setAttribute( "type", value ); if ( val ) { elem.value = val; } return value; } } } }, removeAttr: function( elem, value ) { var name, i = 0, // Attribute names can contain non-HTML whitespace characters // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 attrNames = value && value.match( rnothtmlwhite ); if ( attrNames && elem.nodeType === 1 ) { while ( ( name = attrNames[ i++ ] ) ) { elem.removeAttribute( name ); } } } } ); // Hooks for boolean attributes boolHook = { set: function( elem, value, name ) { if ( value === false ) { // Remove boolean attributes when set to false jQuery.removeAttr( elem, name ); } else { elem.setAttribute( name, name ); } return name; } }; jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( _i, name ) { var getter = attrHandle[ name ] || jQuery.find.attr; attrHandle[ name ] = function( elem, name, isXML ) { var ret, handle, lowercaseName = name.toLowerCase(); if ( !isXML ) { // Avoid an infinite loop by temporarily removing this function from the getter handle = attrHandle[ lowercaseName ]; attrHandle[ lowercaseName ] = ret; ret = getter( elem, name, isXML ) != null ? lowercaseName : null; attrHandle[ lowercaseName ] = handle; } return ret; }; } ); var rfocusable = /^(?:input|select|textarea|button)$/i, rclickable = /^(?:a|area)$/i; jQuery.fn.extend( { prop: function( name, value ) { return access( this, jQuery.prop, name, value, arguments.length > 1 ); }, removeProp: function( name ) { return this.each( function() { delete this[ jQuery.propFix[ name ] || name ]; } ); } } ); jQuery.extend( { prop: function( elem, name, value ) { var ret, hooks, nType = elem.nodeType; // Don't get/set properties on text, comment and attribute nodes if ( nType === 3 || nType === 8 || nType === 2 ) { return; } if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { // Fix name and attach hooks name = jQuery.propFix[ name ] || name; hooks = jQuery.propHooks[ name ]; } if ( value !== undefined ) { if ( hooks && "set" in hooks && ( ret = hooks.set( elem, value, name ) ) !== undefined ) { return ret; } return ( elem[ name ] = value ); } if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { return ret; } return elem[ name ]; }, propHooks: { tabIndex: { get: function( elem ) { // Support: IE <=9 - 11 only // elem.tabIndex doesn't always return the // correct value when it hasn't been explicitly set // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ // Use proper attribute retrieval(#12072) var tabindex = jQuery.find.attr( elem, "tabindex" ); if ( tabindex ) { return parseInt( tabindex, 10 ); } if ( rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ) { return 0; } return -1; } } }, propFix: { "for": "htmlFor", "class": "className" } } ); // Support: IE <=11 only // Accessing the selectedIndex property // forces the browser to respect setting selected // on the option // The getter ensures a default option is selected // when in an optgroup // eslint rule "no-unused-expressions" is disabled for this code // since it considers such accessions noop if ( !support.optSelected ) { jQuery.propHooks.selected = { get: function( elem ) { /* eslint no-unused-expressions: "off" */ var parent = elem.parentNode; if ( parent && parent.parentNode ) { parent.parentNode.selectedIndex; } return null; }, set: function( elem ) { /* eslint no-unused-expressions: "off" */ var parent = elem.parentNode; if ( parent ) { parent.selectedIndex; if ( parent.parentNode ) { parent.parentNode.selectedIndex; } } } }; } jQuery.each( [ "tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable" ], function() { jQuery.propFix[ this.toLowerCase() ] = this; } ); // Strip and collapse whitespace according to HTML spec // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace function stripAndCollapse( value ) { var tokens = value.match( rnothtmlwhite ) || []; return tokens.join( " " ); } function getClass( elem ) { return elem.getAttribute && elem.getAttribute( "class" ) || ""; } function classesToArray( value ) { if ( Array.isArray( value ) ) { return value; } if ( typeof value === "string" ) { return value.match( rnothtmlwhite ) || []; } return []; } jQuery.fn.extend( { addClass: function( value ) { var classes, elem, cur, curValue, clazz, j, finalValue, i = 0; if ( isFunction( value ) ) { return this.each( function( j ) { jQuery( this ).addClass( value.call( this, j, getClass( this ) ) ); } ); } classes = classesToArray( value ); if ( classes.length ) { while ( ( elem = this[ i++ ] ) ) { curValue = getClass( elem ); cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); if ( cur ) { j = 0; while ( ( clazz = classes[ j++ ] ) ) { if ( cur.indexOf( " " + clazz + " " ) < 0 ) { cur += clazz + " "; } } // Only assign if different to avoid unneeded rendering. finalValue = stripAndCollapse( cur ); if ( curValue !== finalValue ) { elem.setAttribute( "class", finalValue ); } } } } return this; }, removeClass: function( value ) { var classes, elem, cur, curValue, clazz, j, finalValue, i = 0; if ( isFunction( value ) ) { return this.each( function( j ) { jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) ); } ); } if ( !arguments.length ) { return this.attr( "class", "" ); } classes = classesToArray( value ); if ( classes.length ) { while ( ( elem = this[ i++ ] ) ) { curValue = getClass( elem ); // This expression is here for better compressibility (see addClass) cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); if ( cur ) { j = 0; while ( ( clazz = classes[ j++ ] ) ) { // Remove *all* instances while ( cur.indexOf( " " + clazz + " " ) > -1 ) { cur = cur.replace( " " + clazz + " ", " " ); } } // Only assign if different to avoid unneeded rendering. finalValue = stripAndCollapse( cur ); if ( curValue !== finalValue ) { elem.setAttribute( "class", finalValue ); } } } } return this; }, toggleClass: function( value, stateVal ) { var type = typeof value, isValidValue = type === "string" || Array.isArray( value ); if ( typeof stateVal === "boolean" && isValidValue ) { return stateVal ? this.addClass( value ) : this.removeClass( value ); } if ( isFunction( value ) ) { return this.each( function( i ) { jQuery( this ).toggleClass( value.call( this, i, getClass( this ), stateVal ), stateVal ); } ); } return this.each( function() { var className, i, self, classNames; if ( isValidValue ) { // Toggle individual class names i = 0; self = jQuery( this ); classNames = classesToArray( value ); while ( ( className = classNames[ i++ ] ) ) { // Check each className given, space separated list if ( self.hasClass( className ) ) { self.removeClass( className ); } else { self.addClass( className ); } } // Toggle whole class name } else if ( value === undefined || type === "boolean" ) { className = getClass( this ); if ( className ) { // Store className if set dataPriv.set( this, "__className__", className ); } // If the element has a class name or if we're passed `false`, // then remove the whole classname (if there was one, the above saved it). // Otherwise bring back whatever was previously saved (if anything), // falling back to the empty string if nothing was stored. if ( this.setAttribute ) { this.setAttribute( "class", className || value === false ? "" : dataPriv.get( this, "__className__" ) || "" ); } } } ); }, hasClass: function( selector ) { var className, elem, i = 0; className = " " + selector + " "; while ( ( elem = this[ i++ ] ) ) { if ( elem.nodeType === 1 && ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { return true; } } return false; } } ); var rreturn = /\r/g; jQuery.fn.extend( { val: function( value ) { var hooks, ret, valueIsFunction, elem = this[ 0 ]; if ( !arguments.length ) { if ( elem ) { hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; if ( hooks && "get" in hooks && ( ret = hooks.get( elem, "value" ) ) !== undefined ) { return ret; } ret = elem.value; // Handle most common string cases if ( typeof ret === "string" ) { return ret.replace( rreturn, "" ); } // Handle cases where value is null/undef or number return ret == null ? "" : ret; } return; } valueIsFunction = isFunction( value ); return this.each( function( i ) { var val; if ( this.nodeType !== 1 ) { return; } if ( valueIsFunction ) { val = value.call( this, i, jQuery( this ).val() ); } else { val = value; } // Treat null/undefined as ""; convert numbers to string if ( val == null ) { val = ""; } else if ( typeof val === "number" ) { val += ""; } else if ( Array.isArray( val ) ) { val = jQuery.map( val, function( value ) { return value == null ? "" : value + ""; } ); } hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; // If set returns undefined, fall back to normal setting if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) { this.value = val; } } ); } } ); jQuery.extend( { valHooks: { option: { get: function( elem ) { var val = jQuery.find.attr( elem, "value" ); return val != null ? val : // Support: IE <=10 - 11 only // option.text throws exceptions (#14686, #14858) // Strip and collapse whitespace // https://html.spec.whatwg.org/#strip-and-collapse-whitespace stripAndCollapse( jQuery.text( elem ) ); } }, select: { get: function( elem ) { var value, option, i, options = elem.options, index = elem.selectedIndex, one = elem.type === "select-one", values = one ? null : [], max = one ? index + 1 : options.length; if ( index < 0 ) { i = max; } else { i = one ? index : 0; } // Loop through all the selected options for ( ; i < max; i++ ) { option = options[ i ]; // Support: IE <=9 only // IE8-9 doesn't update selected after form reset (#2551) if ( ( option.selected || i === index ) && // Don't return options that are disabled or in a disabled optgroup !option.disabled && ( !option.parentNode.disabled || !nodeName( option.parentNode, "optgroup" ) ) ) { // Get the specific value for the option value = jQuery( option ).val(); // We don't need an array for one selects if ( one ) { return value; } // Multi-Selects return an array values.push( value ); } } return values; }, set: function( elem, value ) { var optionSet, option, options = elem.options, values = jQuery.makeArray( value ), i = options.length; while ( i-- ) { option = options[ i ]; /* eslint-disable no-cond-assign */ if ( option.selected = jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 ) { optionSet = true; } /* eslint-enable no-cond-assign */ } // Force browsers to behave consistently when non-matching value is set if ( !optionSet ) { elem.selectedIndex = -1; } return values; } } } } ); // Radios and checkboxes getter/setter jQuery.each( [ "radio", "checkbox" ], function() { jQuery.valHooks[ this ] = { set: function( elem, value ) { if ( Array.isArray( value ) ) { return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 ); } } }; if ( !support.checkOn ) { jQuery.valHooks[ this ].get = function( elem ) { return elem.getAttribute( "value" ) === null ? "on" : elem.value; }; } } ); // Return jQuery for attributes-only inclusion support.focusin = "onfocusin" in window; var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, stopPropagationCallback = function( e ) { e.stopPropagation(); }; jQuery.extend( jQuery.event, { trigger: function( event, data, elem, onlyHandlers ) { var i, cur, tmp, bubbleType, ontype, handle, special, lastElement, eventPath = [ elem || document ], type = hasOwn.call( event, "type" ) ? event.type : event, namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; cur = lastElement = tmp = elem = elem || document; // Don't do events on text and comment nodes if ( elem.nodeType === 3 || elem.nodeType === 8 ) { return; } // focus/blur morphs to focusin/out; ensure we're not firing them right now if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { return; } if ( type.indexOf( "." ) > -1 ) { // Namespaced trigger; create a regexp to match event type in handle() namespaces = type.split( "." ); type = namespaces.shift(); namespaces.sort(); } ontype = type.indexOf( ":" ) < 0 && "on" + type; // Caller can pass in a jQuery.Event object, Object, or just an event type string event = event[ jQuery.expando ] ? event : new jQuery.Event( type, typeof event === "object" && event ); // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) event.isTrigger = onlyHandlers ? 2 : 3; event.namespace = namespaces.join( "." ); event.rnamespace = event.namespace ? new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : null; // Clean up the event in case it is being reused event.result = undefined; if ( !event.target ) { event.target = elem; } // Clone any incoming data and prepend the event, creating the handler arg list data = data == null ? [ event ] : jQuery.makeArray( data, [ event ] ); // Allow special events to draw outside the lines special = jQuery.event.special[ type ] || {}; if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { return; } // Determine event propagation path in advance, per W3C events spec (#9951) // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) { bubbleType = special.delegateType || type; if ( !rfocusMorph.test( bubbleType + type ) ) { cur = cur.parentNode; } for ( ; cur; cur = cur.parentNode ) { eventPath.push( cur ); tmp = cur; } // Only add window if we got to document (e.g., not plain obj or detached DOM) if ( tmp === ( elem.ownerDocument || document ) ) { eventPath.push( tmp.defaultView || tmp.parentWindow || window ); } } // Fire handlers on the event path i = 0; while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { lastElement = cur; event.type = i > 1 ? bubbleType : special.bindType || type; // jQuery handler handle = ( dataPriv.get( cur, "events" ) || Object.create( null ) )[ event.type ] && dataPriv.get( cur, "handle" ); if ( handle ) { handle.apply( cur, data ); } // Native handler handle = ontype && cur[ ontype ]; if ( handle && handle.apply && acceptData( cur ) ) { event.result = handle.apply( cur, data ); if ( event.result === false ) { event.preventDefault(); } } } event.type = type; // If nobody prevented the default action, do it now if ( !onlyHandlers && !event.isDefaultPrevented() ) { if ( ( !special._default || special._default.apply( eventPath.pop(), data ) === false ) && acceptData( elem ) ) { // Call a native DOM method on the target with the same name as the event. // Don't do default actions on window, that's where global variables be (#6170) if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) { // Don't re-trigger an onFOO event when we call its FOO() method tmp = elem[ ontype ]; if ( tmp ) { elem[ ontype ] = null; } // Prevent re-triggering of the same event, since we already bubbled it above jQuery.event.triggered = type; if ( event.isPropagationStopped() ) { lastElement.addEventListener( type, stopPropagationCallback ); } elem[ type ](); if ( event.isPropagationStopped() ) { lastElement.removeEventListener( type, stopPropagationCallback ); } jQuery.event.triggered = undefined; if ( tmp ) { elem[ ontype ] = tmp; } } } } return event.result; }, // Piggyback on a donor event to simulate a different one // Used only for `focus(in | out)` events simulate: function( type, elem, event ) { var e = jQuery.extend( new jQuery.Event(), event, { type: type, isSimulated: true } ); jQuery.event.trigger( e, null, elem ); } } ); jQuery.fn.extend( { trigger: function( type, data ) { return this.each( function() { jQuery.event.trigger( type, data, this ); } ); }, triggerHandler: function( type, data ) { var elem = this[ 0 ]; if ( elem ) { return jQuery.event.trigger( type, data, elem, true ); } } } ); // Support: Firefox <=44 // Firefox doesn't have focus(in | out) events // Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 // // Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 // focus(in | out) events fire after focus & blur events, // which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order // Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857 if ( !support.focusin ) { jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { // Attach a single capturing handler on the document while someone wants focusin/focusout var handler = function( event ) { jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); }; jQuery.event.special[ fix ] = { setup: function() { // Handle: regular nodes (via `this.ownerDocument`), window // (via `this.document`) & document (via `this`). var doc = this.ownerDocument || this.document || this, attaches = dataPriv.access( doc, fix ); if ( !attaches ) { doc.addEventListener( orig, handler, true ); } dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); }, teardown: function() { var doc = this.ownerDocument || this.document || this, attaches = dataPriv.access( doc, fix ) - 1; if ( !attaches ) { doc.removeEventListener( orig, handler, true ); dataPriv.remove( doc, fix ); } else { dataPriv.access( doc, fix, attaches ); } } }; } ); } var location = window.location; var nonce = { guid: Date.now() }; var rquery = ( /\?/ ); // Cross-browser xml parsing jQuery.parseXML = function( data ) { var xml, parserErrorElem; if ( !data || typeof data !== "string" ) { return null; } // Support: IE 9 - 11 only // IE throws on parseFromString with invalid input. try { xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); } catch ( e ) {} parserErrorElem = xml && xml.getElementsByTagName( "parsererror" )[ 0 ]; if ( !xml || parserErrorElem ) { jQuery.error( "Invalid XML: " + ( parserErrorElem ? jQuery.map( parserErrorElem.childNodes, function( el ) { return el.textContent; } ).join( "\n" ) : data ) ); } return xml; }; var rbracket = /\[\]$/, rCRLF = /\r?\n/g, rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, rsubmittable = /^(?:input|select|textarea|keygen)/i; function buildParams( prefix, obj, traditional, add ) { var name; if ( Array.isArray( obj ) ) { // Serialize array item. jQuery.each( obj, function( i, v ) { if ( traditional || rbracket.test( prefix ) ) { // Treat each array item as a scalar. add( prefix, v ); } else { // Item is non-scalar (array or object), encode its numeric index. buildParams( prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]", v, traditional, add ); } } ); } else if ( !traditional && toType( obj ) === "object" ) { // Serialize object item. for ( name in obj ) { buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); } } else { // Serialize scalar item. add( prefix, obj ); } } // Serialize an array of form elements or a set of // key/values into a query string jQuery.param = function( a, traditional ) { var prefix, s = [], add = function( key, valueOrFunction ) { // If value is a function, invoke it and use its return value var value = isFunction( valueOrFunction ) ? valueOrFunction() : valueOrFunction; s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value == null ? "" : value ); }; if ( a == null ) { return ""; } // If an array was passed in, assume that it is an array of form elements. if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { // Serialize the form elements jQuery.each( a, function() { add( this.name, this.value ); } ); } else { // If traditional, encode the "old" way (the way 1.3.2 or older // did it), otherwise encode params recursively. for ( prefix in a ) { buildParams( prefix, a[ prefix ], traditional, add ); } } // Return the resulting serialization return s.join( "&" ); }; jQuery.fn.extend( { serialize: function() { return jQuery.param( this.serializeArray() ); }, serializeArray: function() { return this.map( function() { // Can add propHook for "elements" to filter or add form elements var elements = jQuery.prop( this, "elements" ); return elements ? jQuery.makeArray( elements ) : this; } ).filter( function() { var type = this.type; // Use .is( ":disabled" ) so that fieldset[disabled] works return this.name && !jQuery( this ).is( ":disabled" ) && rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && ( this.checked || !rcheckableType.test( type ) ); } ).map( function( _i, elem ) { var val = jQuery( this ).val(); if ( val == null ) { return null; } if ( Array.isArray( val ) ) { return jQuery.map( val, function( val ) { return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; } ); } return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; } ).get(); } } ); var r20 = /%20/g, rhash = /#.*$/, rantiCache = /([?&])_=[^&]*/, rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, // #7653, #8125, #8152: local protocol detection rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, rnoContent = /^(?:GET|HEAD)$/, rprotocol = /^\/\//, /* Prefilters * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) * 2) These are called: * - BEFORE asking for a transport * - AFTER param serialization (s.data is a string if s.processData is true) * 3) key is the dataType * 4) the catchall symbol "*" can be used * 5) execution will start with transport dataType and THEN continue down to "*" if needed */ prefilters = {}, /* Transports bindings * 1) key is the dataType * 2) the catchall symbol "*" can be used * 3) selection will start with transport dataType and THEN go to "*" if needed */ transports = {}, // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression allTypes = "*/".concat( "*" ), // Anchor tag for parsing the document origin originAnchor = document.createElement( "a" ); originAnchor.href = location.href; // Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport function addToPrefiltersOrTransports( structure ) { // dataTypeExpression is optional and defaults to "*" return function( dataTypeExpression, func ) { if ( typeof dataTypeExpression !== "string" ) { func = dataTypeExpression; dataTypeExpression = "*"; } var dataType, i = 0, dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; if ( isFunction( func ) ) { // For each dataType in the dataTypeExpression while ( ( dataType = dataTypes[ i++ ] ) ) { // Prepend if requested if ( dataType[ 0 ] === "+" ) { dataType = dataType.slice( 1 ) || "*"; ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); // Otherwise append } else { ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); } } } }; } // Base inspection function for prefilters and transports function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { var inspected = {}, seekingTransport = ( structure === transports ); function inspect( dataType ) { var selected; inspected[ dataType ] = true; jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); if ( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) { options.dataTypes.unshift( dataTypeOrTransport ); inspect( dataTypeOrTransport ); return false; } else if ( seekingTransport ) { return !( selected = dataTypeOrTransport ); } } ); return selected; } return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); } // A special extend for ajax options // that takes "flat" options (not to be deep extended) // Fixes #9887 function ajaxExtend( target, src ) { var key, deep, flatOptions = jQuery.ajaxSettings.flatOptions || {}; for ( key in src ) { if ( src[ key ] !== undefined ) { ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; } } if ( deep ) { jQuery.extend( true, target, deep ); } return target; } /* Handles responses to an ajax request: * - finds the right dataType (mediates between content-type and expected dataType) * - returns the corresponding response */ function ajaxHandleResponses( s, jqXHR, responses ) { var ct, type, finalDataType, firstDataType, contents = s.contents, dataTypes = s.dataTypes; // Remove auto dataType and get content-type in the process while ( dataTypes[ 0 ] === "*" ) { dataTypes.shift(); if ( ct === undefined ) { ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); } } // Check if we're dealing with a known content-type if ( ct ) { for ( type in contents ) { if ( contents[ type ] && contents[ type ].test( ct ) ) { dataTypes.unshift( type ); break; } } } // Check to see if we have a response for the expected dataType if ( dataTypes[ 0 ] in responses ) { finalDataType = dataTypes[ 0 ]; } else { // Try convertible dataTypes for ( type in responses ) { if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { finalDataType = type; break; } if ( !firstDataType ) { firstDataType = type; } } // Or just use first one finalDataType = finalDataType || firstDataType; } // If we found a dataType // We add the dataType to the list if needed // and return the corresponding response if ( finalDataType ) { if ( finalDataType !== dataTypes[ 0 ] ) { dataTypes.unshift( finalDataType ); } return responses[ finalDataType ]; } } /* Chain conversions given the request and the original response * Also sets the responseXXX fields on the jqXHR instance */ function ajaxConvert( s, response, jqXHR, isSuccess ) { var conv2, current, conv, tmp, prev, converters = {}, // Work with a copy of dataTypes in case we need to modify it for conversion dataTypes = s.dataTypes.slice(); // Create converters map with lowercased keys if ( dataTypes[ 1 ] ) { for ( conv in s.converters ) { converters[ conv.toLowerCase() ] = s.converters[ conv ]; } } current = dataTypes.shift(); // Convert to each sequential dataType while ( current ) { if ( s.responseFields[ current ] ) { jqXHR[ s.responseFields[ current ] ] = response; } // Apply the dataFilter if provided if ( !prev && isSuccess && s.dataFilter ) { response = s.dataFilter( response, s.dataType ); } prev = current; current = dataTypes.shift(); if ( current ) { // There's only work to do if current dataType is non-auto if ( current === "*" ) { current = prev; // Convert response if prev dataType is non-auto and differs from current } else if ( prev !== "*" && prev !== current ) { // Seek a direct converter conv = converters[ prev + " " + current ] || converters[ "* " + current ]; // If none found, seek a pair if ( !conv ) { for ( conv2 in converters ) { // If conv2 outputs current tmp = conv2.split( " " ); if ( tmp[ 1 ] === current ) { // If prev can be converted to accepted input conv = converters[ prev + " " + tmp[ 0 ] ] || converters[ "* " + tmp[ 0 ] ]; if ( conv ) { // Condense equivalence converters if ( conv === true ) { conv = converters[ conv2 ]; // Otherwise, insert the intermediate dataType } else if ( converters[ conv2 ] !== true ) { current = tmp[ 0 ]; dataTypes.unshift( tmp[ 1 ] ); } break; } } } } // Apply converter (if not an equivalence) if ( conv !== true ) { // Unless errors are allowed to bubble, catch and return them if ( conv && s.throws ) { response = conv( response ); } else { try { response = conv( response ); } catch ( e ) { return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current }; } } } } } } return { state: "success", data: response }; } jQuery.extend( { // Counter for holding the number of active queries active: 0, // Last-Modified header cache for next request lastModified: {}, etag: {}, ajaxSettings: { url: location.href, type: "GET", isLocal: rlocalProtocol.test( location.protocol ), global: true, processData: true, async: true, contentType: "application/x-www-form-urlencoded; charset=UTF-8", /* timeout: 0, data: null, dataType: null, username: null, password: null, cache: null, throws: false, traditional: false, headers: {}, */ accepts: { "*": allTypes, text: "text/plain", html: "text/html", xml: "application/xml, text/xml", json: "application/json, text/javascript" }, contents: { xml: /\bxml\b/, html: /\bhtml/, json: /\bjson\b/ }, responseFields: { xml: "responseXML", text: "responseText", json: "responseJSON" }, // Data converters // Keys separate source (or catchall "*") and destination types with a single space converters: { // Convert anything to text "* text": String, // Text to html (true = no transformation) "text html": true, // Evaluate text as a json expression "text json": JSON.parse, // Parse text as xml "text xml": jQuery.parseXML }, // For options that shouldn't be deep extended: // you can add your own custom options here if // and when you create one that shouldn't be // deep extended (see ajaxExtend) flatOptions: { url: true, context: true } }, // Creates a full fledged settings object into target // with both ajaxSettings and settings fields. // If target is omitted, writes into ajaxSettings. ajaxSetup: function( target, settings ) { return settings ? // Building a settings object ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : // Extending ajaxSettings ajaxExtend( jQuery.ajaxSettings, target ); }, ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), ajaxTransport: addToPrefiltersOrTransports( transports ), // Main method ajax: function( url, options ) { // If url is an object, simulate pre-1.5 signature if ( typeof url === "object" ) { options = url; url = undefined; } // Force options to be an object options = options || {}; var transport, // URL without anti-cache param cacheURL, // Response headers responseHeadersString, responseHeaders, // timeout handle timeoutTimer, // Url cleanup var urlAnchor, // Request state (becomes false upon send and true upon completion) completed, // To know if global events are to be dispatched fireGlobals, // Loop variable i, // uncached part of the url uncached, // Create the final options object s = jQuery.ajaxSetup( {}, options ), // Callbacks context callbackContext = s.context || s, // Context for global events is callbackContext if it is a DOM node or jQuery collection globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ? jQuery( callbackContext ) : jQuery.event, // Deferreds deferred = jQuery.Deferred(), completeDeferred = jQuery.Callbacks( "once memory" ), // Status-dependent callbacks statusCode = s.statusCode || {}, // Headers (they are sent all at once) requestHeaders = {}, requestHeadersNames = {}, // Default abort message strAbort = "canceled", // Fake xhr jqXHR = { readyState: 0, // Builds headers hashtable if needed getResponseHeader: function( key ) { var match; if ( completed ) { if ( !responseHeaders ) { responseHeaders = {}; while ( ( match = rheaders.exec( responseHeadersString ) ) ) { responseHeaders[ match[ 1 ].toLowerCase() + " " ] = ( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] ) .concat( match[ 2 ] ); } } match = responseHeaders[ key.toLowerCase() + " " ]; } return match == null ? null : match.join( ", " ); }, // Raw string getAllResponseHeaders: function() { return completed ? responseHeadersString : null; }, // Caches the header setRequestHeader: function( name, value ) { if ( completed == null ) { name = requestHeadersNames[ name.toLowerCase() ] = requestHeadersNames[ name.toLowerCase() ] || name; requestHeaders[ name ] = value; } return this; }, // Overrides response content-type header overrideMimeType: function( type ) { if ( completed == null ) { s.mimeType = type; } return this; }, // Status-dependent callbacks statusCode: function( map ) { var code; if ( map ) { if ( completed ) { // Execute the appropriate callbacks jqXHR.always( map[ jqXHR.status ] ); } else { // Lazy-add the new callbacks in a way that preserves old ones for ( code in map ) { statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; } } } return this; }, // Cancel the request abort: function( statusText ) { var finalText = statusText || strAbort; if ( transport ) { transport.abort( finalText ); } done( 0, finalText ); return this; } }; // Attach deferreds deferred.promise( jqXHR ); // Add protocol if not provided (prefilters might expect it) // Handle falsy url in the settings object (#10093: consistency with old signature) // We also use the url parameter if available s.url = ( ( url || s.url || location.href ) + "" ) .replace( rprotocol, location.protocol + "//" ); // Alias method option to type as per ticket #12004 s.type = options.method || options.type || s.method || s.type; // Extract dataTypes list s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; // A cross-domain request is in order when the origin doesn't match the current origin. if ( s.crossDomain == null ) { urlAnchor = document.createElement( "a" ); // Support: IE <=8 - 11, Edge 12 - 15 // IE throws exception on accessing the href property if url is malformed, // e.g. http://example.com:80x/ try { urlAnchor.href = s.url; // Support: IE <=8 - 11 only // Anchor's host property isn't correctly set when s.url is relative urlAnchor.href = urlAnchor.href; s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== urlAnchor.protocol + "//" + urlAnchor.host; } catch ( e ) { // If there is an error parsing the URL, assume it is crossDomain, // it can be rejected by the transport if it is invalid s.crossDomain = true; } } // Convert data if not already a string if ( s.data && s.processData && typeof s.data !== "string" ) { s.data = jQuery.param( s.data, s.traditional ); } // Apply prefilters inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); // If request was aborted inside a prefilter, stop there if ( completed ) { return jqXHR; } // We can fire global events as of now if asked to // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) fireGlobals = jQuery.event && s.global; // Watch for a new set of requests if ( fireGlobals && jQuery.active++ === 0 ) { jQuery.event.trigger( "ajaxStart" ); } // Uppercase the type s.type = s.type.toUpperCase(); // Determine if request has content s.hasContent = !rnoContent.test( s.type ); // Save the URL in case we're toying with the If-Modified-Since // and/or If-None-Match header later on // Remove hash to simplify url manipulation cacheURL = s.url.replace( rhash, "" ); // More options handling for requests with no content if ( !s.hasContent ) { // Remember the hash so we can put it back uncached = s.url.slice( cacheURL.length ); // If data is available and should be processed, append data to url if ( s.data && ( s.processData || typeof s.data === "string" ) ) { cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; // #9682: remove data so that it's not used in an eventual retry delete s.data; } // Add or update anti-cache param if needed if ( s.cache === false ) { cacheURL = cacheURL.replace( rantiCache, "$1" ); uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce.guid++ ) + uncached; } // Put hash and anti-cache on the URL that will be requested (gh-1732) s.url = cacheURL + uncached; // Change '%20' to '+' if this is encoded form body content (gh-2658) } else if ( s.data && s.processData && ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { s.data = s.data.replace( r20, "+" ); } // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. if ( s.ifModified ) { if ( jQuery.lastModified[ cacheURL ] ) { jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); } if ( jQuery.etag[ cacheURL ] ) { jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); } } // Set the correct header, if data is being sent if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { jqXHR.setRequestHeader( "Content-Type", s.contentType ); } // Set the Accepts header for the server, depending on the dataType jqXHR.setRequestHeader( "Accept", s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? s.accepts[ s.dataTypes[ 0 ] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : s.accepts[ "*" ] ); // Check for headers option for ( i in s.headers ) { jqXHR.setRequestHeader( i, s.headers[ i ] ); } // Allow custom headers/mimetypes and early abort if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { // Abort if not done already and return return jqXHR.abort(); } // Aborting is no longer a cancellation strAbort = "abort"; // Install callbacks on deferreds completeDeferred.add( s.complete ); jqXHR.done( s.success ); jqXHR.fail( s.error ); // Get transport transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); // If no transport, we auto-abort if ( !transport ) { done( -1, "No Transport" ); } else { jqXHR.readyState = 1; // Send global event if ( fireGlobals ) { globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); } // If request was aborted inside ajaxSend, stop there if ( completed ) { return jqXHR; } // Timeout if ( s.async && s.timeout > 0 ) { timeoutTimer = window.setTimeout( function() { jqXHR.abort( "timeout" ); }, s.timeout ); } try { completed = false; transport.send( requestHeaders, done ); } catch ( e ) { // Rethrow post-completion exceptions if ( completed ) { throw e; } // Propagate others as results done( -1, e ); } } // Callback for when everything is done function done( status, nativeStatusText, responses, headers ) { var isSuccess, success, error, response, modified, statusText = nativeStatusText; // Ignore repeat invocations if ( completed ) { return; } completed = true; // Clear timeout if it exists if ( timeoutTimer ) { window.clearTimeout( timeoutTimer ); } // Dereference transport for early garbage collection // (no matter how long the jqXHR object will be used) transport = undefined; // Cache response headers responseHeadersString = headers || ""; // Set readyState jqXHR.readyState = status > 0 ? 4 : 0; // Determine if successful isSuccess = status >= 200 && status < 300 || status === 304; // Get response data if ( responses ) { response = ajaxHandleResponses( s, jqXHR, responses ); } // Use a noop converter for missing script but not if jsonp if ( !isSuccess && jQuery.inArray( "script", s.dataTypes ) > -1 && jQuery.inArray( "json", s.dataTypes ) < 0 ) { s.converters[ "text script" ] = function() {}; } // Convert no matter what (that way responseXXX fields are always set) response = ajaxConvert( s, response, jqXHR, isSuccess ); // If successful, handle type chaining if ( isSuccess ) { // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. if ( s.ifModified ) { modified = jqXHR.getResponseHeader( "Last-Modified" ); if ( modified ) { jQuery.lastModified[ cacheURL ] = modified; } modified = jqXHR.getResponseHeader( "etag" ); if ( modified ) { jQuery.etag[ cacheURL ] = modified; } } // if no content if ( status === 204 || s.type === "HEAD" ) { statusText = "nocontent"; // if not modified } else if ( status === 304 ) { statusText = "notmodified"; // If we have data, let's convert it } else { statusText = response.state; success = response.data; error = response.error; isSuccess = !error; } } else { // Extract error from statusText and normalize for non-aborts error = statusText; if ( status || !statusText ) { statusText = "error"; if ( status < 0 ) { status = 0; } } } // Set data for the fake xhr object jqXHR.status = status; jqXHR.statusText = ( nativeStatusText || statusText ) + ""; // Success/Error if ( isSuccess ) { deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); } else { deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); } // Status-dependent callbacks jqXHR.statusCode( statusCode ); statusCode = undefined; if ( fireGlobals ) { globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", [ jqXHR, s, isSuccess ? success : error ] ); } // Complete completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); if ( fireGlobals ) { globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); // Handle the global AJAX counter if ( !( --jQuery.active ) ) { jQuery.event.trigger( "ajaxStop" ); } } } return jqXHR; }, getJSON: function( url, data, callback ) { return jQuery.get( url, data, callback, "json" ); }, getScript: function( url, callback ) { return jQuery.get( url, undefined, callback, "script" ); } } ); jQuery.each( [ "get", "post" ], function( _i, method ) { jQuery[ method ] = function( url, data, callback, type ) { // Shift arguments if data argument was omitted if ( isFunction( data ) ) { type = type || callback; callback = data; data = undefined; } // The url can be an options object (which then must have .url) return jQuery.ajax( jQuery.extend( { url: url, type: method, dataType: type, data: data, success: callback }, jQuery.isPlainObject( url ) && url ) ); }; } ); jQuery.ajaxPrefilter( function( s ) { var i; for ( i in s.headers ) { if ( i.toLowerCase() === "content-type" ) { s.contentType = s.headers[ i ] || ""; } } } ); jQuery._evalUrl = function( url, options, doc ) { return jQuery.ajax( { url: url, // Make this explicit, since user can override this through ajaxSetup (#11264) type: "GET", dataType: "script", cache: true, async: false, global: false, // Only evaluate the response if it is successful (gh-4126) // dataFilter is not invoked for failure responses, so using it instead // of the default converter is kludgy but it works. converters: { "text script": function() {} }, dataFilter: function( response ) { jQuery.globalEval( response, options, doc ); } } ); }; jQuery.fn.extend( { wrapAll: function( html ) { var wrap; if ( this[ 0 ] ) { if ( isFunction( html ) ) { html = html.call( this[ 0 ] ); } // The elements to wrap the target around wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); if ( this[ 0 ].parentNode ) { wrap.insertBefore( this[ 0 ] ); } wrap.map( function() { var elem = this; while ( elem.firstElementChild ) { elem = elem.firstElementChild; } return elem; } ).append( this ); } return this; }, wrapInner: function( html ) { if ( isFunction( html ) ) { return this.each( function( i ) { jQuery( this ).wrapInner( html.call( this, i ) ); } ); } return this.each( function() { var self = jQuery( this ), contents = self.contents(); if ( contents.length ) { contents.wrapAll( html ); } else { self.append( html ); } } ); }, wrap: function( html ) { var htmlIsFunction = isFunction( html ); return this.each( function( i ) { jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html ); } ); }, unwrap: function( selector ) { this.parent( selector ).not( "body" ).each( function() { jQuery( this ).replaceWith( this.childNodes ); } ); return this; } } ); jQuery.expr.pseudos.hidden = function( elem ) { return !jQuery.expr.pseudos.visible( elem ); }; jQuery.expr.pseudos.visible = function( elem ) { return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); }; jQuery.ajaxSettings.xhr = function() { try { return new window.XMLHttpRequest(); } catch ( e ) {} }; var xhrSuccessStatus = { // File protocol always yields status code 0, assume 200 0: 200, // Support: IE <=9 only // #1450: sometimes IE returns 1223 when it should be 204 1223: 204 }, xhrSupported = jQuery.ajaxSettings.xhr(); support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); support.ajax = xhrSupported = !!xhrSupported; jQuery.ajaxTransport( function( options ) { var callback, errorCallback; // Cross domain only allowed if supported through XMLHttpRequest if ( support.cors || xhrSupported && !options.crossDomain ) { return { send: function( headers, complete ) { var i, xhr = options.xhr(); xhr.open( options.type, options.url, options.async, options.username, options.password ); // Apply custom fields if provided if ( options.xhrFields ) { for ( i in options.xhrFields ) { xhr[ i ] = options.xhrFields[ i ]; } } // Override mime type if needed if ( options.mimeType && xhr.overrideMimeType ) { xhr.overrideMimeType( options.mimeType ); } // X-Requested-With header // For cross-domain requests, seeing as conditions for a preflight are // akin to a jigsaw puzzle, we simply never set it to be sure. // (it can always be set on a per-request basis or even using ajaxSetup) // For same-domain requests, won't change header if already provided. if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) { headers[ "X-Requested-With" ] = "XMLHttpRequest"; } // Set headers for ( i in headers ) { xhr.setRequestHeader( i, headers[ i ] ); } // Callback callback = function( type ) { return function() { if ( callback ) { callback = errorCallback = xhr.onload = xhr.onerror = xhr.onabort = xhr.ontimeout = xhr.onreadystatechange = null; if ( type === "abort" ) { xhr.abort(); } else if ( type === "error" ) { // Support: IE <=9 only // On a manual native abort, IE9 throws // errors on any property access that is not readyState if ( typeof xhr.status !== "number" ) { complete( 0, "error" ); } else { complete( // File: protocol always yields status 0; see #8605, #14207 xhr.status, xhr.statusText ); } } else { complete( xhrSuccessStatus[ xhr.status ] || xhr.status, xhr.statusText, // Support: IE <=9 only // IE9 has no XHR2 but throws on binary (trac-11426) // For XHR2 non-text, let the caller handle it (gh-2498) ( xhr.responseType || "text" ) !== "text" || typeof xhr.responseText !== "string" ? { binary: xhr.response } : { text: xhr.responseText }, xhr.getAllResponseHeaders() ); } } }; }; // Listen to events xhr.onload = callback(); errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" ); // Support: IE 9 only // Use onreadystatechange to replace onabort // to handle uncaught aborts if ( xhr.onabort !== undefined ) { xhr.onabort = errorCallback; } else { xhr.onreadystatechange = function() { // Check readyState before timeout as it changes if ( xhr.readyState === 4 ) { // Allow onerror to be called first, // but that will not handle a native abort // Also, save errorCallback to a variable // as xhr.onerror cannot be accessed window.setTimeout( function() { if ( callback ) { errorCallback(); } } ); } }; } // Create the abort callback callback = callback( "abort" ); try { // Do send the request (this may raise an exception) xhr.send( options.hasContent && options.data || null ); } catch ( e ) { // #14683: Only rethrow if this hasn't been notified as an error yet if ( callback ) { throw e; } } }, abort: function() { if ( callback ) { callback(); } } }; } } ); // Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) jQuery.ajaxPrefilter( function( s ) { if ( s.crossDomain ) { s.contents.script = false; } } ); // Install script dataType jQuery.ajaxSetup( { accepts: { script: "text/javascript, application/javascript, " + "application/ecmascript, application/x-ecmascript" }, contents: { script: /\b(?:java|ecma)script\b/ }, converters: { "text script": function( text ) { jQuery.globalEval( text ); return text; } } } ); // Handle cache's special case and crossDomain jQuery.ajaxPrefilter( "script", function( s ) { if ( s.cache === undefined ) { s.cache = false; } if ( s.crossDomain ) { s.type = "GET"; } } ); // Bind script tag hack transport jQuery.ajaxTransport( "script", function( s ) { // This transport only deals with cross domain or forced-by-attrs requests if ( s.crossDomain || s.scriptAttrs ) { var script, callback; return { send: function( _, complete ) { script = jQuery( "<script>" ) .attr( s.scriptAttrs || {} ) .prop( { charset: s.scriptCharset, src: s.url } ) .on( "load error", callback = function( evt ) { script.remove(); callback = null; if ( evt ) { complete( evt.type === "error" ? 404 : 200, evt.type ); } } ); // Use native DOM manipulation to avoid our domManip AJAX trickery document.head.appendChild( script[ 0 ] ); }, abort: function() { if ( callback ) { callback(); } } }; } } ); var oldCallbacks = [], rjsonp = /(=)\?(?=&|$)|\?\?/; // Default jsonp settings jQuery.ajaxSetup( { jsonp: "callback", jsonpCallback: function() { var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce.guid++ ) ); this[ callback ] = true; return callback; } } ); // Detect, normalize options and install callbacks for jsonp requests jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) { var callbackName, overwritten, responseContainer, jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ? "url" : typeof s.data === "string" && ( s.contentType || "" ) .indexOf( "application/x-www-form-urlencoded" ) === 0 && rjsonp.test( s.data ) && "data" ); // Handle iff the expected data type is "jsonp" or we have a parameter to set if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) { // Get callback name, remembering preexisting value associated with it callbackName = s.jsonpCallback = isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback; // Insert callback into url or form data if ( jsonProp ) { s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName ); } else if ( s.jsonp !== false ) { s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName; } // Use data converter to retrieve json after script execution s.converters[ "script json" ] = function() { if ( !responseContainer ) { jQuery.error( callbackName + " was not called" ); } return responseContainer[ 0 ]; }; // Force json dataType s.dataTypes[ 0 ] = "json"; // Install callback overwritten = window[ callbackName ]; window[ callbackName ] = function() { responseContainer = arguments; }; // Clean-up function (fires after converters) jqXHR.always( function() { // If previous value didn't exist - remove it if ( overwritten === undefined ) { jQuery( window ).removeProp( callbackName ); // Otherwise restore preexisting value } else { window[ callbackName ] = overwritten; } // Save back as free if ( s[ callbackName ] ) { // Make sure that re-using the options doesn't screw things around s.jsonpCallback = originalSettings.jsonpCallback; // Save the callback name for future use oldCallbacks.push( callbackName ); } // Call if it was a function and we have a response if ( responseContainer && isFunction( overwritten ) ) { overwritten( responseContainer[ 0 ] ); } responseContainer = overwritten = undefined; } ); // Delegate to script return "script"; } } ); // Support: Safari 8 only // In Safari 8 documents created via document.implementation.createHTMLDocument // collapse sibling forms: the second one becomes a child of the first one. // Because of that, this security measure has to be disabled in Safari 8. // https://bugs.webkit.org/show_bug.cgi?id=137337 support.createHTMLDocument = ( function() { var body = document.implementation.createHTMLDocument( "" ).body; body.innerHTML = "<form></form><form></form>"; return body.childNodes.length === 2; } )(); // Argument "data" should be string of html // context (optional): If specified, the fragment will be created in this context, // defaults to document // keepScripts (optional): If true, will include scripts passed in the html string jQuery.parseHTML = function( data, context, keepScripts ) { if ( typeof data !== "string" ) { return []; } if ( typeof context === "boolean" ) { keepScripts = context; context = false; } var base, parsed, scripts; if ( !context ) { // Stop scripts or inline event handlers from being executed immediately // by using document.implementation if ( support.createHTMLDocument ) { context = document.implementation.createHTMLDocument( "" ); // Set the base href for the created document // so any parsed elements with URLs // are based on the document's URL (gh-2965) base = context.createElement( "base" ); base.href = document.location.href; context.head.appendChild( base ); } else { context = document; } } parsed = rsingleTag.exec( data ); scripts = !keepScripts && []; // Single tag if ( parsed ) { return [ context.createElement( parsed[ 1 ] ) ]; } parsed = buildFragment( [ data ], context, scripts ); if ( scripts && scripts.length ) { jQuery( scripts ).remove(); } return jQuery.merge( [], parsed.childNodes ); }; /** * Load a url into a page */ jQuery.fn.load = function( url, params, callback ) { var selector, type, response, self = this, off = url.indexOf( " " ); if ( off > -1 ) { selector = stripAndCollapse( url.slice( off ) ); url = url.slice( 0, off ); } // If it's a function if ( isFunction( params ) ) { // We assume that it's the callback callback = params; params = undefined; // Otherwise, build a param string } else if ( params && typeof params === "object" ) { type = "POST"; } // If we have elements to modify, make the request if ( self.length > 0 ) { jQuery.ajax( { url: url, // If "type" variable is undefined, then "GET" method will be used. // Make value of this field explicit since // user can override it through ajaxSetup method type: type || "GET", dataType: "html", data: params } ).done( function( responseText ) { // Save response for use in complete callback response = arguments; self.html( selector ? // If a selector was specified, locate the right elements in a dummy div // Exclude scripts to avoid IE 'Permission Denied' errors jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) : // Otherwise use the full result responseText ); // If the request succeeds, this function gets "data", "status", "jqXHR" // but they are ignored because response was set above. // If it fails, this function gets "jqXHR", "status", "error" } ).always( callback && function( jqXHR, status ) { self.each( function() { callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] ); } ); } ); } return this; }; jQuery.expr.pseudos.animated = function( elem ) { return jQuery.grep( jQuery.timers, function( fn ) { return elem === fn.elem; } ).length; }; jQuery.offset = { setOffset: function( elem, options, i ) { var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition, position = jQuery.css( elem, "position" ), curElem = jQuery( elem ), props = {}; // Set position first, in-case top/left are set even on static elem if ( position === "static" ) { elem.style.position = "relative"; } curOffset = curElem.offset(); curCSSTop = jQuery.css( elem, "top" ); curCSSLeft = jQuery.css( elem, "left" ); calculatePosition = ( position === "absolute" || position === "fixed" ) && ( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1; // Need to be able to calculate position if either // top or left is auto and position is either absolute or fixed if ( calculatePosition ) { curPosition = curElem.position(); curTop = curPosition.top; curLeft = curPosition.left; } else { curTop = parseFloat( curCSSTop ) || 0; curLeft = parseFloat( curCSSLeft ) || 0; } if ( isFunction( options ) ) { // Use jQuery.extend here to allow modification of coordinates argument (gh-1848) options = options.call( elem, i, jQuery.extend( {}, curOffset ) ); } if ( options.top != null ) { props.top = ( options.top - curOffset.top ) + curTop; } if ( options.left != null ) { props.left = ( options.left - curOffset.left ) + curLeft; } if ( "using" in options ) { options.using.call( elem, props ); } else { curElem.css( props ); } } }; jQuery.fn.extend( { // offset() relates an element's border box to the document origin offset: function( options ) { // Preserve chaining for setter if ( arguments.length ) { return options === undefined ? this : this.each( function( i ) { jQuery.offset.setOffset( this, options, i ); } ); } var rect, win, elem = this[ 0 ]; if ( !elem ) { return; } // Return zeros for disconnected and hidden (display: none) elements (gh-2310) // Support: IE <=11 only // Running getBoundingClientRect on a // disconnected node in IE throws an error if ( !elem.getClientRects().length ) { return { top: 0, left: 0 }; } // Get document-relative position by adding viewport scroll to viewport-relative gBCR rect = elem.getBoundingClientRect(); win = elem.ownerDocument.defaultView; return { top: rect.top + win.pageYOffset, left: rect.left + win.pageXOffset }; }, // position() relates an element's margin box to its offset parent's padding box // This corresponds to the behavior of CSS absolute positioning position: function() { if ( !this[ 0 ] ) { return; } var offsetParent, offset, doc, elem = this[ 0 ], parentOffset = { top: 0, left: 0 }; // position:fixed elements are offset from the viewport, which itself always has zero offset if ( jQuery.css( elem, "position" ) === "fixed" ) { // Assume position:fixed implies availability of getBoundingClientRect offset = elem.getBoundingClientRect(); } else { offset = this.offset(); // Account for the *real* offset parent, which can be the document or its root element // when a statically positioned element is identified doc = elem.ownerDocument; offsetParent = elem.offsetParent || doc.documentElement; while ( offsetParent && ( offsetParent === doc.body || offsetParent === doc.documentElement ) && jQuery.css( offsetParent, "position" ) === "static" ) { offsetParent = offsetParent.parentNode; } if ( offsetParent && offsetParent !== elem && offsetParent.nodeType === 1 ) { // Incorporate borders into its offset, since they are outside its content origin parentOffset = jQuery( offsetParent ).offset(); parentOffset.top += jQuery.css( offsetParent, "borderTopWidth", true ); parentOffset.left += jQuery.css( offsetParent, "borderLeftWidth", true ); } } // Subtract parent offsets and element margins return { top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ), left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true ) }; }, // This method will return documentElement in the following cases: // 1) For the element inside the iframe without offsetParent, this method will return // documentElement of the parent window // 2) For the hidden or detached element // 3) For body or html element, i.e. in case of the html node - it will return itself // // but those exceptions were never presented as a real life use-cases // and might be considered as more preferable results. // // This logic, however, is not guaranteed and can change at any point in the future offsetParent: function() { return this.map( function() { var offsetParent = this.offsetParent; while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) { offsetParent = offsetParent.offsetParent; } return offsetParent || documentElement; } ); } } ); // Create scrollLeft and scrollTop methods jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) { var top = "pageYOffset" === prop; jQuery.fn[ method ] = function( val ) { return access( this, function( elem, method, val ) { // Coalesce documents and windows var win; if ( isWindow( elem ) ) { win = elem; } else if ( elem.nodeType === 9 ) { win = elem.defaultView; } if ( val === undefined ) { return win ? win[ prop ] : elem[ method ]; } if ( win ) { win.scrollTo( !top ? val : win.pageXOffset, top ? val : win.pageYOffset ); } else { elem[ method ] = val; } }, method, val, arguments.length ); }; } ); // Support: Safari <=7 - 9.1, Chrome <=37 - 49 // Add the top/left cssHooks using jQuery.fn.position // Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084 // Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347 // getComputedStyle returns percent when specified for top/left/bottom/right; // rather than make the css module depend on the offset module, just check for it here jQuery.each( [ "top", "left" ], function( _i, prop ) { jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition, function( elem, computed ) { if ( computed ) { computed = curCSS( elem, prop ); // If curCSS returns percentage, fallback to offset return rnumnonpx.test( computed ) ? jQuery( elem ).position()[ prop ] + "px" : computed; } } ); } ); // Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods jQuery.each( { Height: "height", Width: "width" }, function( name, type ) { jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) { // Margin is only for outerHeight, outerWidth jQuery.fn[ funcName ] = function( margin, value ) { var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ), extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" ); return access( this, function( elem, type, value ) { var doc; if ( isWindow( elem ) ) { // $( window ).outerWidth/Height return w/h including scrollbars (gh-1729) return funcName.indexOf( "outer" ) === 0 ? elem[ "inner" + name ] : elem.document.documentElement[ "client" + name ]; } // Get document width or height if ( elem.nodeType === 9 ) { doc = elem.documentElement; // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], // whichever is greatest return Math.max( elem.body[ "scroll" + name ], doc[ "scroll" + name ], elem.body[ "offset" + name ], doc[ "offset" + name ], doc[ "client" + name ] ); } return value === undefined ? // Get width or height on the element, requesting but not forcing parseFloat jQuery.css( elem, type, extra ) : // Set width or height on the element jQuery.style( elem, type, value, extra ); }, type, chainable ? margin : undefined, chainable ); }; } ); } ); jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( _i, type ) { jQuery.fn[ type ] = function( fn ) { return this.on( type, fn ); }; } ); jQuery.fn.extend( { bind: function( types, data, fn ) { return this.on( types, null, data, fn ); }, unbind: function( types, fn ) { return this.off( types, null, fn ); }, delegate: function( selector, types, data, fn ) { return this.on( types, selector, data, fn ); }, undelegate: function( selector, types, fn ) { // ( namespace ) or ( selector, types [, fn] ) return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn ); }, hover: function( fnOver, fnOut ) { return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); } } ); jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " + "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + "change select submit keydown keypress keyup contextmenu" ).split( " " ), function( _i, name ) { // Handle event binding jQuery.fn[ name ] = function( data, fn ) { return arguments.length > 0 ? this.on( name, null, data, fn ) : this.trigger( name ); }; } ); // Support: Android <=4.0 only // Make sure we trim BOM and NBSP var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g; // Bind a function to a context, optionally partially applying any // arguments. // jQuery.proxy is deprecated to promote standards (specifically Function#bind) // However, it is not slated for removal any time soon jQuery.proxy = function( fn, context ) { var tmp, args, proxy; if ( typeof context === "string" ) { tmp = fn[ context ]; context = fn; fn = tmp; } // Quick check to determine if target is callable, in the spec // this throws a TypeError, but we will just return undefined. if ( !isFunction( fn ) ) { return undefined; } // Simulated bind args = slice.call( arguments, 2 ); proxy = function() { return fn.apply( context || this, args.concat( slice.call( arguments ) ) ); }; // Set the guid of unique handler to the same of original handler, so it can be removed proxy.guid = fn.guid = fn.guid || jQuery.guid++; return proxy; }; jQuery.holdReady = function( hold ) { if ( hold ) { jQuery.readyWait++; } else { jQuery.ready( true ); } }; jQuery.isArray = Array.isArray; jQuery.parseJSON = JSON.parse; jQuery.nodeName = nodeName; jQuery.isFunction = isFunction; jQuery.isWindow = isWindow; jQuery.camelCase = camelCase; jQuery.type = toType; jQuery.now = Date.now; jQuery.isNumeric = function( obj ) { // As of jQuery 3.0, isNumeric is limited to // strings and numbers (primitives or objects) // that can be coerced to finite numbers (gh-2662) var type = jQuery.type( obj ); return ( type === "number" || type === "string" ) && // parseFloat NaNs numeric-cast false positives ("") // ...but misinterprets leading-number strings, particularly hex literals ("0x...") // subtraction forces infinities to NaN !isNaN( obj - parseFloat( obj ) ); }; jQuery.trim = function( text ) { return text == null ? "" : ( text + "" ).replace( rtrim, "" ); }; // Register as a named AMD module, since jQuery can be concatenated with other // files that may use define, but not via a proper concatenation script that // understands anonymous AMD modules. A named AMD is safest and most robust // way to register. Lowercase jquery is used because AMD module names are // derived from file names, and jQuery is normally delivered in a lowercase // file name. Do this after creating the global so that if an AMD module wants // to call noConflict to hide this version of jQuery, it will work. // Note that for maximum portability, libraries that are not jQuery should // declare themselves as anonymous modules, and avoid setting a global if an // AMD loader is present. jQuery is a special case. For more information, see // https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon if ( true ) { !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function() { return jQuery; }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } var // Map over jQuery in case of overwrite _jQuery = window.jQuery, // Map over the $ in case of overwrite _$ = window.$; jQuery.noConflict = function( deep ) { if ( window.$ === jQuery ) { window.$ = _$; } if ( deep && window.jQuery === jQuery ) { window.jQuery = _jQuery; } return jQuery; }; // Expose jQuery and $ identifiers, even in AMD // (#7102#comment:10, https://github.com/jquery/jquery/pull/557) // and CommonJS for browser emulators (#13566) if ( typeof noGlobal === "undefined" ) { window.jQuery = window.$ = jQuery; } return jQuery; } ); /***/ }), /***/ "./resources/admin/scss/vendors.scss": /*!*******************************************!*\ !*** ./resources/admin/scss/vendors.scss ***! \*******************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); // extracted by mini-css-extract-plugin /***/ }), /***/ "./resources/admin/scss/app.scss": /*!***************************************!*\ !*** ./resources/admin/scss/app.scss ***! \***************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); // extracted by mini-css-extract-plugin /***/ }), /***/ "./public/module/page/admin/scss/builder.scss": /*!****************************************************!*\ !*** ./public/module/page/admin/scss/builder.scss ***! \****************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); // extracted by mini-css-extract-plugin /***/ }), /***/ "./node_modules/popper.js/dist/esm/popper.js": /*!***************************************************!*\ !*** ./node_modules/popper.js/dist/esm/popper.js ***! \***************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /**! * @fileOverview Kickass library to create and place poppers near their reference elements. * @version 1.16.1 * @license * Copyright (c) 2016 Federico Zivolo and contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined'; var timeoutDuration = function () { var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox']; for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) { if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) { return 1; } } return 0; }(); function microtaskDebounce(fn) { var called = false; return function () { if (called) { return; } called = true; window.Promise.resolve().then(function () { called = false; fn(); }); }; } function taskDebounce(fn) { var scheduled = false; return function () { if (!scheduled) { scheduled = true; setTimeout(function () { scheduled = false; fn(); }, timeoutDuration); } }; } var supportsMicroTasks = isBrowser && window.Promise; /** * Create a debounced version of a method, that's asynchronously deferred * but called in the minimum time possible. * * @method * @memberof Popper.Utils * @argument {Function} fn * @returns {Function} */ var debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce; /** * Check if the given variable is a function * @method * @memberof Popper.Utils * @argument {Any} functionToCheck - variable to check * @returns {Boolean} answer to: is a function? */ function isFunction(functionToCheck) { var getType = {}; return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; } /** * Get CSS computed property of the given element * @method * @memberof Popper.Utils * @argument {Eement} element * @argument {String} property */ function getStyleComputedProperty(element, property) { if (element.nodeType !== 1) { return []; } // NOTE: 1 DOM access here var window = element.ownerDocument.defaultView; var css = window.getComputedStyle(element, null); return property ? css[property] : css; } /** * Returns the parentNode or the host of the element * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Element} parent */ function getParentNode(element) { if (element.nodeName === 'HTML') { return element; } return element.parentNode || element.host; } /** * Returns the scrolling parent of the given element * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Element} scroll parent */ function getScrollParent(element) { // Return body, `getScroll` will take care to get the correct `scrollTop` from it if (!element) { return document.body; } switch (element.nodeName) { case 'HTML': case 'BODY': return element.ownerDocument.body; case '#document': return element.body; } // Firefox want us to check `-x` and `-y` variations as well var _getStyleComputedProp = getStyleComputedProperty(element), overflow = _getStyleComputedProp.overflow, overflowX = _getStyleComputedProp.overflowX, overflowY = _getStyleComputedProp.overflowY; if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) { return element; } return getScrollParent(getParentNode(element)); } /** * Returns the reference node of the reference object, or the reference object itself. * @method * @memberof Popper.Utils * @param {Element|Object} reference - the reference element (the popper will be relative to this) * @returns {Element} parent */ function getReferenceNode(reference) { return reference && reference.referenceNode ? reference.referenceNode : reference; } var isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode); var isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent); /** * Determines if the browser is Internet Explorer * @method * @memberof Popper.Utils * @param {Number} version to check * @returns {Boolean} isIE */ function isIE(version) { if (version === 11) { return isIE11; } if (version === 10) { return isIE10; } return isIE11 || isIE10; } /** * Returns the offset parent of the given element * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Element} offset parent */ function getOffsetParent(element) { if (!element) { return document.documentElement; } var noOffsetParent = isIE(10) ? document.body : null; // NOTE: 1 DOM access here var offsetParent = element.offsetParent || null; // Skip hidden elements which don't have an offsetParent while (offsetParent === noOffsetParent && element.nextElementSibling) { offsetParent = (element = element.nextElementSibling).offsetParent; } var nodeName = offsetParent && offsetParent.nodeName; if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') { return element ? element.ownerDocument.documentElement : document.documentElement; } // .offsetParent will return the closest TH, TD or TABLE in case // no offsetParent is present, I hate this job... if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') { return getOffsetParent(offsetParent); } return offsetParent; } function isOffsetContainer(element) { var nodeName = element.nodeName; if (nodeName === 'BODY') { return false; } return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element; } /** * Finds the root node (document, shadowDOM root) of the given element * @method * @memberof Popper.Utils * @argument {Element} node * @returns {Element} root node */ function getRoot(node) { if (node.parentNode !== null) { return getRoot(node.parentNode); } return node; } /** * Finds the offset parent common to the two provided nodes * @method * @memberof Popper.Utils * @argument {Element} element1 * @argument {Element} element2 * @returns {Element} common offset parent */ function findCommonOffsetParent(element1, element2) { // This check is needed to avoid errors in case one of the elements isn't defined for any reason if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) { return document.documentElement; } // Here we make sure to give as "start" the element that comes first in the DOM var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING; var start = order ? element1 : element2; var end = order ? element2 : element1; // Get common ancestor container var range = document.createRange(); range.setStart(start, 0); range.setEnd(end, 0); var commonAncestorContainer = range.commonAncestorContainer; // Both nodes are inside #document if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) { if (isOffsetContainer(commonAncestorContainer)) { return commonAncestorContainer; } return getOffsetParent(commonAncestorContainer); } // one of the nodes is inside shadowDOM, find which one var element1root = getRoot(element1); if (element1root.host) { return findCommonOffsetParent(element1root.host, element2); } else { return findCommonOffsetParent(element1, getRoot(element2).host); } } /** * Gets the scroll value of the given element in the given side (top and left) * @method * @memberof Popper.Utils * @argument {Element} element * @argument {String} side `top` or `left` * @returns {number} amount of scrolled pixels */ function getScroll(element) { var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top'; var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft'; var nodeName = element.nodeName; if (nodeName === 'BODY' || nodeName === 'HTML') { var html = element.ownerDocument.documentElement; var scrollingElement = element.ownerDocument.scrollingElement || html; return scrollingElement[upperSide]; } return element[upperSide]; } /* * Sum or subtract the element scroll values (left and top) from a given rect object * @method * @memberof Popper.Utils * @param {Object} rect - Rect object you want to change * @param {HTMLElement} element - The element from the function reads the scroll values * @param {Boolean} subtract - set to true if you want to subtract the scroll values * @return {Object} rect - The modifier rect object */ function includeScroll(rect, element) { var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; var scrollTop = getScroll(element, 'top'); var scrollLeft = getScroll(element, 'left'); var modifier = subtract ? -1 : 1; rect.top += scrollTop * modifier; rect.bottom += scrollTop * modifier; rect.left += scrollLeft * modifier; rect.right += scrollLeft * modifier; return rect; } /* * Helper to detect borders of a given element * @method * @memberof Popper.Utils * @param {CSSStyleDeclaration} styles * Result of `getStyleComputedProperty` on the given element * @param {String} axis - `x` or `y` * @return {number} borders - The borders size of the given axis */ function getBordersSize(styles, axis) { var sideA = axis === 'x' ? 'Left' : 'Top'; var sideB = sideA === 'Left' ? 'Right' : 'Bottom'; return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']); } function getSize(axis, body, html, computedStyle) { return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0); } function getWindowSizes(document) { var body = document.body; var html = document.documentElement; var computedStyle = isIE(10) && getComputedStyle(html); return { height: getSize('Height', body, html, computedStyle), width: getSize('Width', body, html, computedStyle) }; } var classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }; var createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var defineProperty = function (obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /** * Given element offsets, generate an output similar to getBoundingClientRect * @method * @memberof Popper.Utils * @argument {Object} offsets * @returns {Object} ClientRect like output */ function getClientRect(offsets) { return _extends({}, offsets, { right: offsets.left + offsets.width, bottom: offsets.top + offsets.height }); } /** * Get bounding client rect of given element * @method * @memberof Popper.Utils * @param {HTMLElement} element * @return {Object} client rect */ function getBoundingClientRect(element) { var rect = {}; // IE10 10 FIX: Please, don't ask, the element isn't // considered in DOM in some circumstances... // This isn't reproducible in IE10 compatibility mode of IE11 try { if (isIE(10)) { rect = element.getBoundingClientRect(); var scrollTop = getScroll(element, 'top'); var scrollLeft = getScroll(element, 'left'); rect.top += scrollTop; rect.left += scrollLeft; rect.bottom += scrollTop; rect.right += scrollLeft; } else { rect = element.getBoundingClientRect(); } } catch (e) {} var result = { left: rect.left, top: rect.top, width: rect.right - rect.left, height: rect.bottom - rect.top }; // subtract scrollbar size from sizes var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {}; var width = sizes.width || element.clientWidth || result.width; var height = sizes.height || element.clientHeight || result.height; var horizScrollbar = element.offsetWidth - width; var vertScrollbar = element.offsetHeight - height; // if an hypothetical scrollbar is detected, we must be sure it's not a `border` // we make this check conditional for performance reasons if (horizScrollbar || vertScrollbar) { var styles = getStyleComputedProperty(element); horizScrollbar -= getBordersSize(styles, 'x'); vertScrollbar -= getBordersSize(styles, 'y'); result.width -= horizScrollbar; result.height -= vertScrollbar; } return getClientRect(result); } function getOffsetRectRelativeToArbitraryNode(children, parent) { var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; var isIE10 = isIE(10); var isHTML = parent.nodeName === 'HTML'; var childrenRect = getBoundingClientRect(children); var parentRect = getBoundingClientRect(parent); var scrollParent = getScrollParent(children); var styles = getStyleComputedProperty(parent); var borderTopWidth = parseFloat(styles.borderTopWidth); var borderLeftWidth = parseFloat(styles.borderLeftWidth); // In cases where the parent is fixed, we must ignore negative scroll in offset calc if (fixedPosition && isHTML) { parentRect.top = Math.max(parentRect.top, 0); parentRect.left = Math.max(parentRect.left, 0); } var offsets = getClientRect({ top: childrenRect.top - parentRect.top - borderTopWidth, left: childrenRect.left - parentRect.left - borderLeftWidth, width: childrenRect.width, height: childrenRect.height }); offsets.marginTop = 0; offsets.marginLeft = 0; // Subtract margins of documentElement in case it's being used as parent // we do this only on HTML because it's the only element that behaves // differently when margins are applied to it. The margins are included in // the box of the documentElement, in the other cases not. if (!isIE10 && isHTML) { var marginTop = parseFloat(styles.marginTop); var marginLeft = parseFloat(styles.marginLeft); offsets.top -= borderTopWidth - marginTop; offsets.bottom -= borderTopWidth - marginTop; offsets.left -= borderLeftWidth - marginLeft; offsets.right -= borderLeftWidth - marginLeft; // Attach marginTop and marginLeft because in some circumstances we may need them offsets.marginTop = marginTop; offsets.marginLeft = marginLeft; } if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') { offsets = includeScroll(offsets, parent); } return offsets; } function getViewportOffsetRectRelativeToArtbitraryNode(element) { var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var html = element.ownerDocument.documentElement; var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html); var width = Math.max(html.clientWidth, window.innerWidth || 0); var height = Math.max(html.clientHeight, window.innerHeight || 0); var scrollTop = !excludeScroll ? getScroll(html) : 0; var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0; var offset = { top: scrollTop - relativeOffset.top + relativeOffset.marginTop, left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft, width: width, height: height }; return getClientRect(offset); } /** * Check if the given element is fixed or is inside a fixed parent * @method * @memberof Popper.Utils * @argument {Element} element * @argument {Element} customContainer * @returns {Boolean} answer to "isFixed?" */ function isFixed(element) { var nodeName = element.nodeName; if (nodeName === 'BODY' || nodeName === 'HTML') { return false; } if (getStyleComputedProperty(element, 'position') === 'fixed') { return true; } var parentNode = getParentNode(element); if (!parentNode) { return false; } return isFixed(parentNode); } /** * Finds the first parent of an element that has a transformed property defined * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Element} first transformed parent or documentElement */ function getFixedPositionOffsetParent(element) { // This check is needed to avoid errors in case one of the elements isn't defined for any reason if (!element || !element.parentElement || isIE()) { return document.documentElement; } var el = element.parentElement; while (el && getStyleComputedProperty(el, 'transform') === 'none') { el = el.parentElement; } return el || document.documentElement; } /** * Computed the boundaries limits and return them * @method * @memberof Popper.Utils * @param {HTMLElement} popper * @param {HTMLElement} reference * @param {number} padding * @param {HTMLElement} boundariesElement - Element used to define the boundaries * @param {Boolean} fixedPosition - Is in fixed position mode * @returns {Object} Coordinates of the boundaries */ function getBoundaries(popper, reference, padding, boundariesElement) { var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; // NOTE: 1 DOM access here var boundaries = { top: 0, left: 0 }; var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference)); // Handle viewport case if (boundariesElement === 'viewport') { boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition); } else { // Handle other cases based on DOM element used as boundaries var boundariesNode = void 0; if (boundariesElement === 'scrollParent') { boundariesNode = getScrollParent(getParentNode(reference)); if (boundariesNode.nodeName === 'BODY') { boundariesNode = popper.ownerDocument.documentElement; } } else if (boundariesElement === 'window') { boundariesNode = popper.ownerDocument.documentElement; } else { boundariesNode = boundariesElement; } var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition); // In case of HTML, we need a different computation if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) { var _getWindowSizes = getWindowSizes(popper.ownerDocument), height = _getWindowSizes.height, width = _getWindowSizes.width; boundaries.top += offsets.top - offsets.marginTop; boundaries.bottom = height + offsets.top; boundaries.left += offsets.left - offsets.marginLeft; boundaries.right = width + offsets.left; } else { // for all the other DOM elements, this one is good boundaries = offsets; } } // Add paddings padding = padding || 0; var isPaddingNumber = typeof padding === 'number'; boundaries.left += isPaddingNumber ? padding : padding.left || 0; boundaries.top += isPaddingNumber ? padding : padding.top || 0; boundaries.right -= isPaddingNumber ? padding : padding.right || 0; boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0; return boundaries; } function getArea(_ref) { var width = _ref.width, height = _ref.height; return width * height; } /** * Utility used to transform the `auto` placement to the placement with more * available space. * @method * @memberof Popper.Utils * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) { var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; if (placement.indexOf('auto') === -1) { return placement; } var boundaries = getBoundaries(popper, reference, padding, boundariesElement); var rects = { top: { width: boundaries.width, height: refRect.top - boundaries.top }, right: { width: boundaries.right - refRect.right, height: boundaries.height }, bottom: { width: boundaries.width, height: boundaries.bottom - refRect.bottom }, left: { width: refRect.left - boundaries.left, height: boundaries.height } }; var sortedAreas = Object.keys(rects).map(function (key) { return _extends({ key: key }, rects[key], { area: getArea(rects[key]) }); }).sort(function (a, b) { return b.area - a.area; }); var filteredAreas = sortedAreas.filter(function (_ref2) { var width = _ref2.width, height = _ref2.height; return width >= popper.clientWidth && height >= popper.clientHeight; }); var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key; var variation = placement.split('-')[1]; return computedPlacement + (variation ? '-' + variation : ''); } /** * Get offsets to the reference element * @method * @memberof Popper.Utils * @param {Object} state * @param {Element} popper - the popper element * @param {Element} reference - the reference element (the popper will be relative to this) * @param {Element} fixedPosition - is in fixed position mode * @returns {Object} An object containing the offsets which will be applied to the popper */ function getReferenceOffsets(state, popper, reference) { var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference)); return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition); } /** * Get the outer sizes of the given element (offset size + margins) * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Object} object containing width and height properties */ function getOuterSizes(element) { var window = element.ownerDocument.defaultView; var styles = window.getComputedStyle(element); var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0); var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0); var result = { width: element.offsetWidth + y, height: element.offsetHeight + x }; return result; } /** * Get the opposite placement of the given one * @method * @memberof Popper.Utils * @argument {String} placement * @returns {String} flipped placement */ function getOppositePlacement(placement) { var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' }; return placement.replace(/left|right|bottom|top/g, function (matched) { return hash[matched]; }); } /** * Get offsets to the popper * @method * @memberof Popper.Utils * @param {Object} position - CSS position the Popper will get applied * @param {HTMLElement} popper - the popper element * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this) * @param {String} placement - one of the valid placement options * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper */ function getPopperOffsets(popper, referenceOffsets, placement) { placement = placement.split('-')[0]; // Get popper node sizes var popperRect = getOuterSizes(popper); // Add position, width and height to our offsets object var popperOffsets = { width: popperRect.width, height: popperRect.height }; // depending by the popper placement we have to compute its offsets slightly differently var isHoriz = ['right', 'left'].indexOf(placement) !== -1; var mainSide = isHoriz ? 'top' : 'left'; var secondarySide = isHoriz ? 'left' : 'top'; var measurement = isHoriz ? 'height' : 'width'; var secondaryMeasurement = !isHoriz ? 'height' : 'width'; popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2; if (placement === secondarySide) { popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement]; } else { popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)]; } return popperOffsets; } /** * Mimics the `find` method of Array * @method * @memberof Popper.Utils * @argument {Array} arr * @argument prop * @argument value * @returns index or -1 */ function find(arr, check) { // use native find if supported if (Array.prototype.find) { return arr.find(check); } // use `filter` to obtain the same behavior of `find` return arr.filter(check)[0]; } /** * Return the index of the matching object * @method * @memberof Popper.Utils * @argument {Array} arr * @argument prop * @argument value * @returns index or -1 */ function findIndex(arr, prop, value) { // use native findIndex if supported if (Array.prototype.findIndex) { return arr.findIndex(function (cur) { return cur[prop] === value; }); } // use `find` + `indexOf` if `findIndex` isn't supported var match = find(arr, function (obj) { return obj[prop] === value; }); return arr.indexOf(match); } /** * Loop trough the list of modifiers and run them in order, * each of them will then edit the data object. * @method * @memberof Popper.Utils * @param {dataObject} data * @param {Array} modifiers * @param {String} ends - Optional modifier name used as stopper * @returns {dataObject} */ function runModifiers(modifiers, data, ends) { var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends)); modifiersToRun.forEach(function (modifier) { if (modifier['function']) { // eslint-disable-line dot-notation console.warn('`modifier.function` is deprecated, use `modifier.fn`!'); } var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation if (modifier.enabled && isFunction(fn)) { // Add properties to offsets to make them a complete clientRect object // we do this before each modifier to make sure the previous one doesn't // mess with these values data.offsets.popper = getClientRect(data.offsets.popper); data.offsets.reference = getClientRect(data.offsets.reference); data = fn(data, modifier); } }); return data; } /** * Updates the position of the popper, computing the new offsets and applying * the new style.<br /> * Prefer `scheduleUpdate` over `update` because of performance reasons. * @method * @memberof Popper */ function update() { // if popper is destroyed, don't perform any further update if (this.state.isDestroyed) { return; } var data = { instance: this, styles: {}, arrowStyles: {}, attributes: {}, flipped: false, offsets: {} }; // compute reference element offsets data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed); // compute auto placement, store placement inside the data object, // modifiers will be able to edit `placement` if needed // and refer to originalPlacement to know the original value data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding); // store the computed placement inside `originalPlacement` data.originalPlacement = data.placement; data.positionFixed = this.options.positionFixed; // compute the popper offsets data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement); data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute'; // run the modifiers data = runModifiers(this.modifiers, data); // the first `update` will call `onCreate` callback // the other ones will call `onUpdate` callback if (!this.state.isCreated) { this.state.isCreated = true; this.options.onCreate(data); } else { this.options.onUpdate(data); } } /** * Helper used to know if the given modifier is enabled. * @method * @memberof Popper.Utils * @returns {Boolean} */ function isModifierEnabled(modifiers, modifierName) { return modifiers.some(function (_ref) { var name = _ref.name, enabled = _ref.enabled; return enabled && name === modifierName; }); } /** * Get the prefixed supported property name * @method * @memberof Popper.Utils * @argument {String} property (camelCase) * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix) */ function getSupportedPropertyName(property) { var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O']; var upperProp = property.charAt(0).toUpperCase() + property.slice(1); for (var i = 0; i < prefixes.length; i++) { var prefix = prefixes[i]; var toCheck = prefix ? '' + prefix + upperProp : property; if (typeof document.body.style[toCheck] !== 'undefined') { return toCheck; } } return null; } /** * Destroys the popper. * @method * @memberof Popper */ function destroy() { this.state.isDestroyed = true; // touch DOM only if `applyStyle` modifier is enabled if (isModifierEnabled(this.modifiers, 'applyStyle')) { this.popper.removeAttribute('x-placement'); this.popper.style.position = ''; this.popper.style.top = ''; this.popper.style.left = ''; this.popper.style.right = ''; this.popper.style.bottom = ''; this.popper.style.willChange = ''; this.popper.style[getSupportedPropertyName('transform')] = ''; } this.disableEventListeners(); // remove the popper if user explicitly asked for the deletion on destroy // do not use `remove` because IE11 doesn't support it if (this.options.removeOnDestroy) { this.popper.parentNode.removeChild(this.popper); } return this; } /** * Get the window associated with the element * @argument {Element} element * @returns {Window} */ function getWindow(element) { var ownerDocument = element.ownerDocument; return ownerDocument ? ownerDocument.defaultView : window; } function attachToScrollParents(scrollParent, event, callback, scrollParents) { var isBody = scrollParent.nodeName === 'BODY'; var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent; target.addEventListener(event, callback, { passive: true }); if (!isBody) { attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents); } scrollParents.push(target); } /** * Setup needed event listeners used to update the popper position * @method * @memberof Popper.Utils * @private */ function setupEventListeners(reference, options, state, updateBound) { // Resize event listener on window state.updateBound = updateBound; getWindow(reference).addEventListener('resize', state.updateBound, { passive: true }); // Scroll event listener on scroll parents var scrollElement = getScrollParent(reference); attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents); state.scrollElement = scrollElement; state.eventsEnabled = true; return state; } /** * It will add resize/scroll events and start recalculating * position of the popper element when they are triggered. * @method * @memberof Popper */ function enableEventListeners() { if (!this.state.eventsEnabled) { this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate); } } /** * Remove event listeners used to update the popper position * @method * @memberof Popper.Utils * @private */ function removeEventListeners(reference, state) { // Remove resize event listener on window getWindow(reference).removeEventListener('resize', state.updateBound); // Remove scroll event listener on scroll parents state.scrollParents.forEach(function (target) { target.removeEventListener('scroll', state.updateBound); }); // Reset state state.updateBound = null; state.scrollParents = []; state.scrollElement = null; state.eventsEnabled = false; return state; } /** * It will remove resize/scroll events and won't recalculate popper position * when they are triggered. It also won't trigger `onUpdate` callback anymore, * unless you call `update` method manually. * @method * @memberof Popper */ function disableEventListeners() { if (this.state.eventsEnabled) { cancelAnimationFrame(this.scheduleUpdate); this.state = removeEventListeners(this.reference, this.state); } } /** * Tells if a given input is a number * @method * @memberof Popper.Utils * @param {*} input to check * @return {Boolean} */ function isNumeric(n) { return n !== '' && !isNaN(parseFloat(n)) && isFinite(n); } /** * Set the style to the given popper * @method * @memberof Popper.Utils * @argument {Element} element - Element to apply the style to * @argument {Object} styles * Object with a list of properties and values which will be applied to the element */ function setStyles(element, styles) { Object.keys(styles).forEach(function (prop) { var unit = ''; // add unit if the value is numeric and is one of the following if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) { unit = 'px'; } element.style[prop] = styles[prop] + unit; }); } /** * Set the attributes to the given popper * @method * @memberof Popper.Utils * @argument {Element} element - Element to apply the attributes to * @argument {Object} styles * Object with a list of properties and values which will be applied to the element */ function setAttributes(element, attributes) { Object.keys(attributes).forEach(function (prop) { var value = attributes[prop]; if (value !== false) { element.setAttribute(prop, attributes[prop]); } else { element.removeAttribute(prop); } }); } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by `update` method * @argument {Object} data.styles - List of style properties - values to apply to popper element * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element * @argument {Object} options - Modifiers configuration and options * @returns {Object} The same data object */ function applyStyle(data) { // any property present in `data.styles` will be applied to the popper, // in this way we can make the 3rd party modifiers add custom styles to it // Be aware, modifiers could override the properties defined in the previous // lines of this modifier! setStyles(data.instance.popper, data.styles); // any property present in `data.attributes` will be applied to the popper, // they will be set as HTML attributes of the element setAttributes(data.instance.popper, data.attributes); // if arrowElement is defined and arrowStyles has some properties if (data.arrowElement && Object.keys(data.arrowStyles).length) { setStyles(data.arrowElement, data.arrowStyles); } return data; } /** * Set the x-placement attribute before everything else because it could be used * to add margins to the popper margins needs to be calculated to get the * correct popper offsets. * @method * @memberof Popper.modifiers * @param {HTMLElement} reference - The reference element used to position the popper * @param {HTMLElement} popper - The HTML element used as popper * @param {Object} options - Popper.js options */ function applyStyleOnLoad(reference, popper, options, modifierOptions, state) { // compute reference element offsets var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed); // compute auto placement, store placement inside the data object, // modifiers will be able to edit `placement` if needed // and refer to originalPlacement to know the original value var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding); popper.setAttribute('x-placement', placement); // Apply `position` to popper before anything else because // without the position applied we can't guarantee correct computations setStyles(popper, { position: options.positionFixed ? 'fixed' : 'absolute' }); return options; } /** * @function * @memberof Popper.Utils * @argument {Object} data - The data object generated by `update` method * @argument {Boolean} shouldRound - If the offsets should be rounded at all * @returns {Object} The popper's position offsets rounded * * The tale of pixel-perfect positioning. It's still not 100% perfect, but as * good as it can be within reason. * Discussion here: https://github.com/FezVrasta/popper.js/pull/715 * * Low DPI screens cause a popper to be blurry if not using full pixels (Safari * as well on High DPI screens). * * Firefox prefers no rounding for positioning and does not have blurriness on * high DPI screens. * * Only horizontal placement and left/right values need to be considered. */ function getRoundedOffsets(data, shouldRound) { var _data$offsets = data.offsets, popper = _data$offsets.popper, reference = _data$offsets.reference; var round = Math.round, floor = Math.floor; var noRound = function noRound(v) { return v; }; var referenceWidth = round(reference.width); var popperWidth = round(popper.width); var isVertical = ['left', 'right'].indexOf(data.placement) !== -1; var isVariation = data.placement.indexOf('-') !== -1; var sameWidthParity = referenceWidth % 2 === popperWidth % 2; var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1; var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor; var verticalToInteger = !shouldRound ? noRound : round; return { left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left), top: verticalToInteger(popper.top), bottom: verticalToInteger(popper.bottom), right: horizontalToInteger(popper.right) }; } var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent); /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by `update` method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function computeStyle(data, options) { var x = options.x, y = options.y; var popper = data.offsets.popper; // Remove this legacy support in Popper.js v2 var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) { return modifier.name === 'applyStyle'; }).gpuAcceleration; if (legacyGpuAccelerationOption !== undefined) { console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!'); } var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration; var offsetParent = getOffsetParent(data.instance.popper); var offsetParentRect = getBoundingClientRect(offsetParent); // Styles var styles = { position: popper.position }; var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox); var sideA = x === 'bottom' ? 'top' : 'bottom'; var sideB = y === 'right' ? 'left' : 'right'; // if gpuAcceleration is set to `true` and transform is supported, // we use `translate3d` to apply the position to the popper we // automatically use the supported prefixed version if needed var prefixedProperty = getSupportedPropertyName('transform'); // now, let's make a step back and look at this code closely (wtf?) // If the content of the popper grows once it's been positioned, it // may happen that the popper gets misplaced because of the new content // overflowing its reference element // To avoid this problem, we provide two options (x and y), which allow // the consumer to define the offset origin. // If we position a popper on top of a reference element, we can set // `x` to `top` to make the popper grow towards its top instead of // its bottom. var left = void 0, top = void 0; if (sideA === 'bottom') { // when offsetParent is <html> the positioning is relative to the bottom of the screen (excluding the scrollbar) // and not the bottom of the html element if (offsetParent.nodeName === 'HTML') { top = -offsetParent.clientHeight + offsets.bottom; } else { top = -offsetParentRect.height + offsets.bottom; } } else { top = offsets.top; } if (sideB === 'right') { if (offsetParent.nodeName === 'HTML') { left = -offsetParent.clientWidth + offsets.right; } else { left = -offsetParentRect.width + offsets.right; } } else { left = offsets.left; } if (gpuAcceleration && prefixedProperty) { styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)'; styles[sideA] = 0; styles[sideB] = 0; styles.willChange = 'transform'; } else { // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties var invertTop = sideA === 'bottom' ? -1 : 1; var invertLeft = sideB === 'right' ? -1 : 1; styles[sideA] = top * invertTop; styles[sideB] = left * invertLeft; styles.willChange = sideA + ', ' + sideB; } // Attributes var attributes = { 'x-placement': data.placement }; // Update `data` attributes, styles and arrowStyles data.attributes = _extends({}, attributes, data.attributes); data.styles = _extends({}, styles, data.styles); data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles); return data; } /** * Helper used to know if the given modifier depends from another one.<br /> * It checks if the needed modifier is listed and enabled. * @method * @memberof Popper.Utils * @param {Array} modifiers - list of modifiers * @param {String} requestingName - name of requesting modifier * @param {String} requestedName - name of requested modifier * @returns {Boolean} */ function isModifierRequired(modifiers, requestingName, requestedName) { var requesting = find(modifiers, function (_ref) { var name = _ref.name; return name === requestingName; }); var isRequired = !!requesting && modifiers.some(function (modifier) { return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order; }); if (!isRequired) { var _requesting = '`' + requestingName + '`'; var requested = '`' + requestedName + '`'; console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!'); } return isRequired; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function arrow(data, options) { var _data$offsets$arrow; // arrow depends on keepTogether in order to work if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) { return data; } var arrowElement = options.element; // if arrowElement is a string, suppose it's a CSS selector if (typeof arrowElement === 'string') { arrowElement = data.instance.popper.querySelector(arrowElement); // if arrowElement is not found, don't run the modifier if (!arrowElement) { return data; } } else { // if the arrowElement isn't a query selector we must check that the // provided DOM node is child of its popper node if (!data.instance.popper.contains(arrowElement)) { console.warn('WARNING: `arrow.element` must be child of its popper element!'); return data; } } var placement = data.placement.split('-')[0]; var _data$offsets = data.offsets, popper = _data$offsets.popper, reference = _data$offsets.reference; var isVertical = ['left', 'right'].indexOf(placement) !== -1; var len = isVertical ? 'height' : 'width'; var sideCapitalized = isVertical ? 'Top' : 'Left'; var side = sideCapitalized.toLowerCase(); var altSide = isVertical ? 'left' : 'top'; var opSide = isVertical ? 'bottom' : 'right'; var arrowElementSize = getOuterSizes(arrowElement)[len]; // // extends keepTogether behavior making sure the popper and its // reference have enough pixels in conjunction // // top/left side if (reference[opSide] - arrowElementSize < popper[side]) { data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize); } // bottom/right side if (reference[side] + arrowElementSize > popper[opSide]) { data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide]; } data.offsets.popper = getClientRect(data.offsets.popper); // compute center of the popper var center = reference[side] + reference[len] / 2 - arrowElementSize / 2; // Compute the sideValue using the updated popper offsets // take popper margin in account because we don't have this info available var css = getStyleComputedProperty(data.instance.popper); var popperMarginSide = parseFloat(css['margin' + sideCapitalized]); var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']); var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide; // prevent arrowElement from being placed not contiguously to its popper sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0); data.arrowElement = arrowElement; data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow); return data; } /** * Get the opposite placement variation of the given one * @method * @memberof Popper.Utils * @argument {String} placement variation * @returns {String} flipped placement variation */ function getOppositeVariation(variation) { if (variation === 'end') { return 'start'; } else if (variation === 'start') { return 'end'; } return variation; } /** * List of accepted placements to use as values of the `placement` option.<br /> * Valid placements are: * - `auto` * - `top` * - `right` * - `bottom` * - `left` * * Each placement can have a variation from this list: * - `-start` * - `-end` * * Variations are interpreted easily if you think of them as the left to right * written languages. Horizontally (`top` and `bottom`), `start` is left and `end` * is right.<br /> * Vertically (`left` and `right`), `start` is top and `end` is bottom. * * Some valid examples are: * - `top-end` (on top of reference, right aligned) * - `right-start` (on right of reference, top aligned) * - `bottom` (on bottom, centered) * - `auto-end` (on the side with more space available, alignment depends by placement) * * @static * @type {Array} * @enum {String} * @readonly * @method placements * @memberof Popper */ var placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start']; // Get rid of `auto` `auto-start` and `auto-end` var validPlacements = placements.slice(3); /** * Given an initial placement, returns all the subsequent placements * clockwise (or counter-clockwise). * * @method * @memberof Popper.Utils * @argument {String} placement - A valid placement (it accepts variations) * @argument {Boolean} counter - Set to true to walk the placements counterclockwise * @returns {Array} placements including their variations */ function clockwise(placement) { var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var index = validPlacements.indexOf(placement); var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index)); return counter ? arr.reverse() : arr; } var BEHAVIORS = { FLIP: 'flip', CLOCKWISE: 'clockwise', COUNTERCLOCKWISE: 'counterclockwise' }; /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function flip(data, options) { // if `inner` modifier is enabled, we can't use the `flip` modifier if (isModifierEnabled(data.instance.modifiers, 'inner')) { return data; } if (data.flipped && data.placement === data.originalPlacement) { // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides return data; } var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed); var placement = data.placement.split('-')[0]; var placementOpposite = getOppositePlacement(placement); var variation = data.placement.split('-')[1] || ''; var flipOrder = []; switch (options.behavior) { case BEHAVIORS.FLIP: flipOrder = [placement, placementOpposite]; break; case BEHAVIORS.CLOCKWISE: flipOrder = clockwise(placement); break; case BEHAVIORS.COUNTERCLOCKWISE: flipOrder = clockwise(placement, true); break; default: flipOrder = options.behavior; } flipOrder.forEach(function (step, index) { if (placement !== step || flipOrder.length === index + 1) { return data; } placement = data.placement.split('-')[0]; placementOpposite = getOppositePlacement(placement); var popperOffsets = data.offsets.popper; var refOffsets = data.offsets.reference; // using floor because the reference offsets may contain decimals we are not going to consider here var floor = Math.floor; var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom); var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left); var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right); var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top); var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom); var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom; // flip the variation if required var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; // flips variation if reference element overflows boundaries var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom); // flips variation if popper content overflows boundaries var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop); var flippedVariation = flippedVariationByRef || flippedVariationByContent; if (overlapsRef || overflowsBoundaries || flippedVariation) { // this boolean to detect any flip loop data.flipped = true; if (overlapsRef || overflowsBoundaries) { placement = flipOrder[index + 1]; } if (flippedVariation) { variation = getOppositeVariation(variation); } data.placement = placement + (variation ? '-' + variation : ''); // this object contains `position`, we want to preserve it along with // any additional property we may add in the future data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement)); data = runModifiers(data.instance.modifiers, data, 'flip'); } }); return data; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function keepTogether(data) { var _data$offsets = data.offsets, popper = _data$offsets.popper, reference = _data$offsets.reference; var placement = data.placement.split('-')[0]; var floor = Math.floor; var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; var side = isVertical ? 'right' : 'bottom'; var opSide = isVertical ? 'left' : 'top'; var measurement = isVertical ? 'width' : 'height'; if (popper[side] < floor(reference[opSide])) { data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement]; } if (popper[opSide] > floor(reference[side])) { data.offsets.popper[opSide] = floor(reference[side]); } return data; } /** * Converts a string containing value + unit into a px value number * @function * @memberof {modifiers~offset} * @private * @argument {String} str - Value + unit string * @argument {String} measurement - `height` or `width` * @argument {Object} popperOffsets * @argument {Object} referenceOffsets * @returns {Number|String} * Value in pixels, or original string if no values were extracted */ function toValue(str, measurement, popperOffsets, referenceOffsets) { // separate value from unit var split = str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/); var value = +split[1]; var unit = split[2]; // If it's not a number it's an operator, I guess if (!value) { return str; } if (unit.indexOf('%') === 0) { var element = void 0; switch (unit) { case '%p': element = popperOffsets; break; case '%': case '%r': default: element = referenceOffsets; } var rect = getClientRect(element); return rect[measurement] / 100 * value; } else if (unit === 'vh' || unit === 'vw') { // if is a vh or vw, we calculate the size based on the viewport var size = void 0; if (unit === 'vh') { size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); } else { size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); } return size / 100 * value; } else { // if is an explicit pixel unit, we get rid of the unit and keep the value // if is an implicit unit, it's px, and we return just the value return value; } } /** * Parse an `offset` string to extrapolate `x` and `y` numeric offsets. * @function * @memberof {modifiers~offset} * @private * @argument {String} offset * @argument {Object} popperOffsets * @argument {Object} referenceOffsets * @argument {String} basePlacement * @returns {Array} a two cells array with x and y offsets in numbers */ function parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) { var offsets = [0, 0]; // Use height if placement is left or right and index is 0 otherwise use width // in this way the first offset will use an axis and the second one // will use the other one var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1; // Split the offset string to obtain a list of values and operands // The regex addresses values with the plus or minus sign in front (+10, -20, etc) var fragments = offset.split(/(\+|\-)/).map(function (frag) { return frag.trim(); }); // Detect if the offset string contains a pair of values or a single one // they could be separated by comma or space var divider = fragments.indexOf(find(fragments, function (frag) { return frag.search(/,|\s/) !== -1; })); if (fragments[divider] && fragments[divider].indexOf(',') === -1) { console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.'); } // If divider is found, we divide the list of values and operands to divide // them by ofset X and Y. var splitRegex = /\s*,\s*|\s+/; var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments]; // Convert the values with units to absolute pixels to allow our computations ops = ops.map(function (op, index) { // Most of the units rely on the orientation of the popper var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width'; var mergeWithPrevious = false; return op // This aggregates any `+` or `-` sign that aren't considered operators // e.g.: 10 + +5 => [10, +, +5] .reduce(function (a, b) { if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) { a[a.length - 1] = b; mergeWithPrevious = true; return a; } else if (mergeWithPrevious) { a[a.length - 1] += b; mergeWithPrevious = false; return a; } else { return a.concat(b); } }, []) // Here we convert the string values into number values (in px) .map(function (str) { return toValue(str, measurement, popperOffsets, referenceOffsets); }); }); // Loop trough the offsets arrays and execute the operations ops.forEach(function (op, index) { op.forEach(function (frag, index2) { if (isNumeric(frag)) { offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1); } }); }); return offsets; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @argument {Number|String} options.offset=0 * The offset value as described in the modifier description * @returns {Object} The data object, properly modified */ function offset(data, _ref) { var offset = _ref.offset; var placement = data.placement, _data$offsets = data.offsets, popper = _data$offsets.popper, reference = _data$offsets.reference; var basePlacement = placement.split('-')[0]; var offsets = void 0; if (isNumeric(+offset)) { offsets = [+offset, 0]; } else { offsets = parseOffset(offset, popper, reference, basePlacement); } if (basePlacement === 'left') { popper.top += offsets[0]; popper.left -= offsets[1]; } else if (basePlacement === 'right') { popper.top += offsets[0]; popper.left += offsets[1]; } else if (basePlacement === 'top') { popper.left += offsets[0]; popper.top -= offsets[1]; } else if (basePlacement === 'bottom') { popper.left += offsets[0]; popper.top += offsets[1]; } data.popper = popper; return data; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by `update` method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function preventOverflow(data, options) { var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper); // If offsetParent is the reference element, we really want to // go one step up and use the next offsetParent as reference to // avoid to make this modifier completely useless and look like broken if (data.instance.reference === boundariesElement) { boundariesElement = getOffsetParent(boundariesElement); } // NOTE: DOM access here // resets the popper's position so that the document size can be calculated excluding // the size of the popper element itself var transformProp = getSupportedPropertyName('transform'); var popperStyles = data.instance.popper.style; // assignment to help minification var top = popperStyles.top, left = popperStyles.left, transform = popperStyles[transformProp]; popperStyles.top = ''; popperStyles.left = ''; popperStyles[transformProp] = ''; var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed); // NOTE: DOM access here // restores the original style properties after the offsets have been computed popperStyles.top = top; popperStyles.left = left; popperStyles[transformProp] = transform; options.boundaries = boundaries; var order = options.priority; var popper = data.offsets.popper; var check = { primary: function primary(placement) { var value = popper[placement]; if (popper[placement] < boundaries[placement] && !options.escapeWithReference) { value = Math.max(popper[placement], boundaries[placement]); } return defineProperty({}, placement, value); }, secondary: function secondary(placement) { var mainSide = placement === 'right' ? 'left' : 'top'; var value = popper[mainSide]; if (popper[placement] > boundaries[placement] && !options.escapeWithReference) { value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height)); } return defineProperty({}, mainSide, value); } }; order.forEach(function (placement) { var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary'; popper = _extends({}, popper, check[side](placement)); }); data.offsets.popper = popper; return data; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by `update` method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function shift(data) { var placement = data.placement; var basePlacement = placement.split('-')[0]; var shiftvariation = placement.split('-')[1]; // if shift shiftvariation is specified, run the modifier if (shiftvariation) { var _data$offsets = data.offsets, reference = _data$offsets.reference, popper = _data$offsets.popper; var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1; var side = isVertical ? 'left' : 'top'; var measurement = isVertical ? 'width' : 'height'; var shiftOffsets = { start: defineProperty({}, side, reference[side]), end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement]) }; data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]); } return data; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function hide(data) { if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) { return data; } var refRect = data.offsets.reference; var bound = find(data.instance.modifiers, function (modifier) { return modifier.name === 'preventOverflow'; }).boundaries; if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) { // Avoid unnecessary DOM access if visibility hasn't changed if (data.hide === true) { return data; } data.hide = true; data.attributes['x-out-of-boundaries'] = ''; } else { // Avoid unnecessary DOM access if visibility hasn't changed if (data.hide === false) { return data; } data.hide = false; data.attributes['x-out-of-boundaries'] = false; } return data; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by `update` method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function inner(data) { var placement = data.placement; var basePlacement = placement.split('-')[0]; var _data$offsets = data.offsets, popper = _data$offsets.popper, reference = _data$offsets.reference; var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1; var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1; popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0); data.placement = getOppositePlacement(placement); data.offsets.popper = getClientRect(popper); return data; } /** * Modifier function, each modifier can have a function of this type assigned * to its `fn` property.<br /> * These functions will be called on each update, this means that you must * make sure they are performant enough to avoid performance bottlenecks. * * @function ModifierFn * @argument {dataObject} data - The data object generated by `update` method * @argument {Object} options - Modifiers configuration and options * @returns {dataObject} The data object, properly modified */ /** * Modifiers are plugins used to alter the behavior of your poppers.<br /> * Popper.js uses a set of 9 modifiers to provide all the basic functionalities * needed by the library. * * Usually you don't want to override the `order`, `fn` and `onLoad` props. * All the other properties are configurations that could be tweaked. * @namespace modifiers */ var modifiers = { /** * Modifier used to shift the popper on the start or end of its reference * element.<br /> * It will read the variation of the `placement` property.<br /> * It can be one either `-end` or `-start`. * @memberof modifiers * @inner */ shift: { /** @prop {number} order=100 - Index used to define the order of execution */ order: 100, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: shift }, /** * The `offset` modifier can shift your popper on both its axis. * * It accepts the following units: * - `px` or unit-less, interpreted as pixels * - `%` or `%r`, percentage relative to the length of the reference element * - `%p`, percentage relative to the length of the popper element * - `vw`, CSS viewport width unit * - `vh`, CSS viewport height unit * * For length is intended the main axis relative to the placement of the popper.<br /> * This means that if the placement is `top` or `bottom`, the length will be the * `width`. In case of `left` or `right`, it will be the `height`. * * You can provide a single value (as `Number` or `String`), or a pair of values * as `String` divided by a comma or one (or more) white spaces.<br /> * The latter is a deprecated method because it leads to confusion and will be * removed in v2.<br /> * Additionally, it accepts additions and subtractions between different units. * Note that multiplications and divisions aren't supported. * * Valid examples are: * ``` * 10 * '10%' * '10, 10' * '10%, 10' * '10 + 10%' * '10 - 5vh + 3%' * '-10px + 5vh, 5px - 6%' * ``` * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap * > with their reference element, unfortunately, you will have to disable the `flip` modifier. * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373). * * @memberof modifiers * @inner */ offset: { /** @prop {number} order=200 - Index used to define the order of execution */ order: 200, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: offset, /** @prop {Number|String} offset=0 * The offset value as described in the modifier description */ offset: 0 }, /** * Modifier used to prevent the popper from being positioned outside the boundary. * * A scenario exists where the reference itself is not within the boundaries.<br /> * We can say it has "escaped the boundaries" — or just "escaped".<br /> * In this case we need to decide whether the popper should either: * * - detach from the reference and remain "trapped" in the boundaries, or * - if it should ignore the boundary and "escape with its reference" * * When `escapeWithReference` is set to`true` and reference is completely * outside its boundaries, the popper will overflow (or completely leave) * the boundaries in order to remain attached to the edge of the reference. * * @memberof modifiers * @inner */ preventOverflow: { /** @prop {number} order=300 - Index used to define the order of execution */ order: 300, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: preventOverflow, /** * @prop {Array} [priority=['left','right','top','bottom']] * Popper will try to prevent overflow following these priorities by default, * then, it could overflow on the left and on top of the `boundariesElement` */ priority: ['left', 'right', 'top', 'bottom'], /** * @prop {number} padding=5 * Amount of pixel used to define a minimum distance between the boundaries * and the popper. This makes sure the popper always has a little padding * between the edges of its container */ padding: 5, /** * @prop {String|HTMLElement} boundariesElement='scrollParent' * Boundaries used by the modifier. Can be `scrollParent`, `window`, * `viewport` or any DOM element. */ boundariesElement: 'scrollParent' }, /** * Modifier used to make sure the reference and its popper stay near each other * without leaving any gap between the two. Especially useful when the arrow is * enabled and you want to ensure that it points to its reference element. * It cares only about the first axis. You can still have poppers with margin * between the popper and its reference element. * @memberof modifiers * @inner */ keepTogether: { /** @prop {number} order=400 - Index used to define the order of execution */ order: 400, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: keepTogether }, /** * This modifier is used to move the `arrowElement` of the popper to make * sure it is positioned between the reference element and its popper element. * It will read the outer size of the `arrowElement` node to detect how many * pixels of conjunction are needed. * * It has no effect if no `arrowElement` is provided. * @memberof modifiers * @inner */ arrow: { /** @prop {number} order=500 - Index used to define the order of execution */ order: 500, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: arrow, /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */ element: '[x-arrow]' }, /** * Modifier used to flip the popper's placement when it starts to overlap its * reference element. * * Requires the `preventOverflow` modifier before it in order to work. * * **NOTE:** this modifier will interrupt the current update cycle and will * restart it if it detects the need to flip the placement. * @memberof modifiers * @inner */ flip: { /** @prop {number} order=600 - Index used to define the order of execution */ order: 600, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: flip, /** * @prop {String|Array} behavior='flip' * The behavior used to change the popper's placement. It can be one of * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid * placements (with optional variations) */ behavior: 'flip', /** * @prop {number} padding=5 * The popper will flip if it hits the edges of the `boundariesElement` */ padding: 5, /** * @prop {String|HTMLElement} boundariesElement='viewport' * The element which will define the boundaries of the popper position. * The popper will never be placed outside of the defined boundaries * (except if `keepTogether` is enabled) */ boundariesElement: 'viewport', /** * @prop {Boolean} flipVariations=false * The popper will switch placement variation between `-start` and `-end` when * the reference element overlaps its boundaries. * * The original placement should have a set variation. */ flipVariations: false, /** * @prop {Boolean} flipVariationsByContent=false * The popper will switch placement variation between `-start` and `-end` when * the popper element overlaps its reference boundaries. * * The original placement should have a set variation. */ flipVariationsByContent: false }, /** * Modifier used to make the popper flow toward the inner of the reference element. * By default, when this modifier is disabled, the popper will be placed outside * the reference element. * @memberof modifiers * @inner */ inner: { /** @prop {number} order=700 - Index used to define the order of execution */ order: 700, /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */ enabled: false, /** @prop {ModifierFn} */ fn: inner }, /** * Modifier used to hide the popper when its reference element is outside of the * popper boundaries. It will set a `x-out-of-boundaries` attribute which can * be used to hide with a CSS selector the popper when its reference is * out of boundaries. * * Requires the `preventOverflow` modifier before it in order to work. * @memberof modifiers * @inner */ hide: { /** @prop {number} order=800 - Index used to define the order of execution */ order: 800, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: hide }, /** * Computes the style that will be applied to the popper element to gets * properly positioned. * * Note that this modifier will not touch the DOM, it just prepares the styles * so that `applyStyle` modifier can apply it. This separation is useful * in case you need to replace `applyStyle` with a custom implementation. * * This modifier has `850` as `order` value to maintain backward compatibility * with previous versions of Popper.js. Expect the modifiers ordering method * to change in future major versions of the library. * * @memberof modifiers * @inner */ computeStyle: { /** @prop {number} order=850 - Index used to define the order of execution */ order: 850, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: computeStyle, /** * @prop {Boolean} gpuAcceleration=true * If true, it uses the CSS 3D transformation to position the popper. * Otherwise, it will use the `top` and `left` properties */ gpuAcceleration: true, /** * @prop {string} [x='bottom'] * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin. * Change this if your popper should grow in a direction different from `bottom` */ x: 'bottom', /** * @prop {string} [x='left'] * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin. * Change this if your popper should grow in a direction different from `right` */ y: 'right' }, /** * Applies the computed styles to the popper element. * * All the DOM manipulations are limited to this modifier. This is useful in case * you want to integrate Popper.js inside a framework or view library and you * want to delegate all the DOM manipulations to it. * * Note that if you disable this modifier, you must make sure the popper element * has its position set to `absolute` before Popper.js can do its work! * * Just disable this modifier and define your own to achieve the desired effect. * * @memberof modifiers * @inner */ applyStyle: { /** @prop {number} order=900 - Index used to define the order of execution */ order: 900, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: applyStyle, /** @prop {Function} */ onLoad: applyStyleOnLoad, /** * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier * @prop {Boolean} gpuAcceleration=true * If true, it uses the CSS 3D transformation to position the popper. * Otherwise, it will use the `top` and `left` properties */ gpuAcceleration: undefined } }; /** * The `dataObject` is an object containing all the information used by Popper.js. * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks. * @name dataObject * @property {Object} data.instance The Popper.js instance * @property {String} data.placement Placement applied to popper * @property {String} data.originalPlacement Placement originally defined on init * @property {Boolean} data.flipped True if popper has been flipped by flip modifier * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`) * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`) * @property {Object} data.boundaries Offsets of the popper boundaries * @property {Object} data.offsets The measurements of popper, reference and arrow elements * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0 */ /** * Default options provided to Popper.js constructor.<br /> * These can be overridden using the `options` argument of Popper.js.<br /> * To override an option, simply pass an object with the same * structure of the `options` object, as the 3rd argument. For example: * ``` * new Popper(ref, pop, { * modifiers: { * preventOverflow: { enabled: false } * } * }) * ``` * @type {Object} * @static * @memberof Popper */ var Defaults = { /** * Popper's placement. * @prop {Popper.placements} placement='bottom' */ placement: 'bottom', /** * Set this to true if you want popper to position it self in 'fixed' mode * @prop {Boolean} positionFixed=false */ positionFixed: false, /** * Whether events (resize, scroll) are initially enabled. * @prop {Boolean} eventsEnabled=true */ eventsEnabled: true, /** * Set to true if you want to automatically remove the popper when * you call the `destroy` method. * @prop {Boolean} removeOnDestroy=false */ removeOnDestroy: false, /** * Callback called when the popper is created.<br /> * By default, it is set to no-op.<br /> * Access Popper.js instance with `data.instance`. * @prop {onCreate} */ onCreate: function onCreate() {}, /** * Callback called when the popper is updated. This callback is not called * on the initialization/creation of the popper, but only on subsequent * updates.<br /> * By default, it is set to no-op.<br /> * Access Popper.js instance with `data.instance`. * @prop {onUpdate} */ onUpdate: function onUpdate() {}, /** * List of modifiers used to modify the offsets before they are applied to the popper. * They provide most of the functionalities of Popper.js. * @prop {modifiers} */ modifiers: modifiers }; /** * @callback onCreate * @param {dataObject} data */ /** * @callback onUpdate * @param {dataObject} data */ // Utils // Methods var Popper = function () { /** * Creates a new Popper.js instance. * @class Popper * @param {Element|referenceObject} reference - The reference element used to position the popper * @param {Element} popper - The HTML / XML element used as the popper * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults) * @return {Object} instance - The generated Popper.js instance */ function Popper(reference, popper) { var _this = this; var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; classCallCheck(this, Popper); this.scheduleUpdate = function () { return requestAnimationFrame(_this.update); }; // make update() debounced, so that it only runs at most once-per-tick this.update = debounce(this.update.bind(this)); // with {} we create a new object with the options inside it this.options = _extends({}, Popper.Defaults, options); // init state this.state = { isDestroyed: false, isCreated: false, scrollParents: [] }; // get reference and popper elements (allow jQuery wrappers) this.reference = reference && reference.jquery ? reference[0] : reference; this.popper = popper && popper.jquery ? popper[0] : popper; // Deep merge modifiers options this.options.modifiers = {}; Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) { _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {}); }); // Refactoring modifiers' list (Object => Array) this.modifiers = Object.keys(this.options.modifiers).map(function (name) { return _extends({ name: name }, _this.options.modifiers[name]); }) // sort the modifiers by order .sort(function (a, b) { return a.order - b.order; }); // modifiers have the ability to execute arbitrary code when Popper.js get inited // such code is executed in the same order of its modifier // they could add new properties to their options configuration // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`! this.modifiers.forEach(function (modifierOptions) { if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) { modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state); } }); // fire the first update to position the popper in the right place this.update(); var eventsEnabled = this.options.eventsEnabled; if (eventsEnabled) { // setup event listeners, they will take care of update the position in specific situations this.enableEventListeners(); } this.state.eventsEnabled = eventsEnabled; } // We can't use class properties because they don't get listed in the // class prototype and break stuff like Sinon stubs createClass(Popper, [{ key: 'update', value: function update$$1() { return update.call(this); } }, { key: 'destroy', value: function destroy$$1() { return destroy.call(this); } }, { key: 'enableEventListeners', value: function enableEventListeners$$1() { return enableEventListeners.call(this); } }, { key: 'disableEventListeners', value: function disableEventListeners$$1() { return disableEventListeners.call(this); } /** * Schedules an update. It will run on the next UI update available. * @method scheduleUpdate * @memberof Popper */ /** * Collection of utilities useful when writing custom modifiers. * Starting from version 1.7, this method is available only if you * include `popper-utils.js` before `popper.js`. * * **DEPRECATION**: This way to access PopperUtils is deprecated * and will be removed in v2! Use the PopperUtils module directly instead. * Due to the high instability of the methods contained in Utils, we can't * guarantee them to follow semver. Use them at your own risk! * @static * @private * @type {Object} * @deprecated since version 1.8 * @member Utils * @memberof Popper */ }]); return Popper; }(); /** * The `referenceObject` is an object that provides an interface compatible with Popper.js * and lets you use it as replacement of a real DOM node.<br /> * You can use this method to position a popper relatively to a set of coordinates * in case you don't have a DOM node to use as reference. * * ``` * new Popper(referenceObject, popperNode); * ``` * * NB: This feature isn't supported in Internet Explorer 10. * @name referenceObject * @property {Function} data.getBoundingClientRect * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method. * @property {number} data.clientWidth * An ES6 getter that will return the width of the virtual reference element. * @property {number} data.clientHeight * An ES6 getter that will return the height of the virtual reference element. */ Popper.Utils = (typeof window !== 'undefined' ? window : __webpack_require__.g).PopperUtils; Popper.placements = placements; Popper.Defaults = Defaults; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Popper); //# sourceMappingURL=popper.js.map /***/ }), /***/ "./node_modules/regenerator-runtime/runtime.js": /*!*****************************************************!*\ !*** ./node_modules/regenerator-runtime/runtime.js ***! \*****************************************************/ /***/ ((module) => { /** * Copyright (c) 2014-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var runtime = (function (exports) { "use strict"; var Op = Object.prototype; var hasOwn = Op.hasOwnProperty; var undefined; // More compressible than void 0. var $Symbol = typeof Symbol === "function" ? Symbol : {}; var iteratorSymbol = $Symbol.iterator || "@@iterator"; var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); return obj[key]; } try { // IE 8 has a broken Object.defineProperty that only works on DOM objects. define({}, ""); } catch (err) { define = function(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; var generator = Object.create(protoGenerator.prototype); var context = new Context(tryLocsList || []); // The ._invoke method unifies the implementations of the .next, // .throw, and .return methods. generator._invoke = makeInvokeMethod(innerFn, self, context); return generator; } exports.wrap = wrap; // Try/catch helper to minimize deoptimizations. Returns a completion // record like context.tryEntries[i].completion. This interface could // have been (and was previously) designed to take a closure to be // invoked without arguments, but in all the cases we care about we // already have an existing method we want to call, so there's no need // to create a new function object. We can even get away with assuming // the method takes exactly one argument, since that happens to be true // in every case, so we don't have to touch the arguments object. The // only additional allocation required is the completion record, which // has a stable shape and so hopefully should be cheap to allocate. function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } var GenStateSuspendedStart = "suspendedStart"; var GenStateSuspendedYield = "suspendedYield"; var GenStateExecuting = "executing"; var GenStateCompleted = "completed"; // Returning this object from the innerFn has the same effect as // breaking out of the dispatch switch statement. var ContinueSentinel = {}; // Dummy constructor functions that we use as the .constructor and // .constructor.prototype properties for functions that return Generator // objects. For full spec compliance, you may wish to configure your // minifier not to mangle the names of these two functions. function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} // This is a polyfill for %IteratorPrototype% for environments that // don't natively support it. var IteratorPrototype = {}; IteratorPrototype[iteratorSymbol] = function () { return this; }; var getProto = Object.getPrototypeOf; var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { // This environment has a native %IteratorPrototype%; use it instead // of the polyfill. IteratorPrototype = NativeIteratorPrototype; } var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; GeneratorFunctionPrototype.constructor = GeneratorFunction; GeneratorFunction.displayName = define( GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction" ); // Helper for defining the .next, .throw, and .return methods of the // Iterator interface in terms of a single ._invoke method. function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function(method) { define(prototype, method, function(arg) { return this._invoke(method, arg); }); }); } exports.isGeneratorFunction = function(genFun) { var ctor = typeof genFun === "function" && genFun.constructor; return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can // do is to check its .name property. (ctor.displayName || ctor.name) === "GeneratorFunction" : false; }; exports.mark = function(genFun) { if (Object.setPrototypeOf) { Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); } else { genFun.__proto__ = GeneratorFunctionPrototype; define(genFun, toStringTagSymbol, "GeneratorFunction"); } genFun.prototype = Object.create(Gp); return genFun; }; // Within the body of any async function, `await x` is transformed to // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test // `hasOwn.call(value, "__await")` to determine if the yielded value is // meant to be awaited. exports.awrap = function(arg) { return { __await: arg }; }; function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if (record.type === "throw") { reject(record.arg); } else { var result = record.arg; var value = result.value; if (value && typeof value === "object" && hasOwn.call(value, "__await")) { return PromiseImpl.resolve(value.__await).then(function(value) { invoke("next", value, resolve, reject); }, function(err) { invoke("throw", err, resolve, reject); }); } return PromiseImpl.resolve(value).then(function(unwrapped) { // When a yielded Promise is resolved, its final value becomes // the .value of the Promise<{value,done}> result for the // current iteration. result.value = unwrapped; resolve(result); }, function(error) { // If a rejected Promise was yielded, throw the rejection back // into the async generator function so it can be handled there. return invoke("throw", error, resolve, reject); }); } } var previousPromise; function enqueue(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function(resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = // If enqueue has been called before, then we want to wait until // all previous Promises have been resolved before calling invoke, // so that results are always delivered in the correct order. If // enqueue has not been called before, then it is important to // call invoke immediately, without waiting on a callback to fire, // so that the async generator function has the opportunity to do // any necessary setup in a predictable way. This predictability // is why the Promise constructor synchronously invokes its // executor callback, and why async functions synchronously // execute code before the first await. Since we implement simple // async functions in terms of async generators, it is especially // important to get this right, even though it requires care. previousPromise ? previousPromise.then( callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later // invocations of the iterator. callInvokeWithMethodAndArg ) : callInvokeWithMethodAndArg(); } // Define the unified helper method that is used to implement .next, // .throw, and .return (see defineIteratorMethods). this._invoke = enqueue; } defineIteratorMethods(AsyncIterator.prototype); AsyncIterator.prototype[asyncIteratorSymbol] = function () { return this; }; exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of // AsyncIterator objects; they just return a Promise for the value of // the final result produced by the iterator. exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) { if (PromiseImpl === void 0) PromiseImpl = Promise; var iter = new AsyncIterator( wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl ); return exports.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator. : iter.next().then(function(result) { return result.done ? result.value : iter.next(); }); }; function makeInvokeMethod(innerFn, self, context) { var state = GenStateSuspendedStart; return function invoke(method, arg) { if (state === GenStateExecuting) { throw new Error("Generator is already running"); } if (state === GenStateCompleted) { if (method === "throw") { throw arg; } // Be forgiving, per 25.3.3.3.3 of the spec: // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume return doneResult(); } context.method = method; context.arg = arg; while (true) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if (context.method === "next") { // Setting context._sent for legacy support of Babel's // function.sent implementation. context.sent = context._sent = context.arg; } else if (context.method === "throw") { if (state === GenStateSuspendedStart) { state = GenStateCompleted; throw context.arg; } context.dispatchException(context.arg); } else if (context.method === "return") { context.abrupt("return", context.arg); } state = GenStateExecuting; var record = tryCatch(innerFn, self, context); if (record.type === "normal") { // If an exception is thrown from innerFn, we leave state === // GenStateExecuting and loop back for another invocation. state = context.done ? GenStateCompleted : GenStateSuspendedYield; if (record.arg === ContinueSentinel) { continue; } return { value: record.arg, done: context.done }; } else if (record.type === "throw") { state = GenStateCompleted; // Dispatch the exception by looping back around to the // context.dispatchException(context.arg) call above. context.method = "throw"; context.arg = record.arg; } } }; } // Call delegate.iterator[context.method](context.arg) and handle the // result, either by returning a { value, done } result from the // delegate iterator, or by modifying context.method and context.arg, // setting context.delegate to null, and returning the ContinueSentinel. function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (method === undefined) { // A .throw or .return when the delegate iterator has no .throw // method always terminates the yield* loop. context.delegate = null; if (context.method === "throw") { // Note: ["return"] must be used for ES3 parsing compatibility. if (delegate.iterator["return"]) { // If the delegate iterator has a return method, give it a // chance to clean up. context.method = "return"; context.arg = undefined; maybeInvokeDelegate(delegate, context); if (context.method === "throw") { // If maybeInvokeDelegate(context) changed context.method from // "return" to "throw", let that override the TypeError below. return ContinueSentinel; } } context.method = "throw"; context.arg = new TypeError( "The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if (record.type === "throw") { context.method = "throw"; context.arg = record.arg; context.delegate = null; return ContinueSentinel; } var info = record.arg; if (! info) { context.method = "throw"; context.arg = new TypeError("iterator result is not an object"); context.delegate = null; return ContinueSentinel; } if (info.done) { // Assign the result of the finished delegate to the temporary // variable specified by delegate.resultName (see delegateYield). context[delegate.resultName] = info.value; // Resume execution at the desired location (see delegateYield). context.next = delegate.nextLoc; // If context.method was "throw" but the delegate handled the // exception, let the outer generator proceed normally. If // context.method was "next", forget context.arg since it has been // "consumed" by the delegate iterator. If context.method was // "return", allow the original .return call to continue in the // outer generator. if (context.method !== "return") { context.method = "next"; context.arg = undefined; } } else { // Re-yield the result returned by the delegate method. return info; } // The delegate iterator is finished, so forget it and continue with // the outer generator. context.delegate = null; return ContinueSentinel; } // Define Generator.prototype.{next,throw,return} in terms of the // unified ._invoke helper method. defineIteratorMethods(Gp); define(Gp, toStringTagSymbol, "Generator"); // A Generator should always return itself as the iterator object when the // @@iterator function is called on it. Some browsers' implementations of the // iterator prototype chain incorrectly implement this, causing the Generator // object to not be returned from this call. This ensures that doesn't happen. // See https://github.com/facebook/regenerator/issues/274 for more details. Gp[iteratorSymbol] = function() { return this; }; Gp.toString = function() { return "[object Generator]"; }; function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; if (1 in locs) { entry.catchLoc = locs[1]; } if (2 in locs) { entry.finallyLoc = locs[2]; entry.afterLoc = locs[3]; } this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal"; delete record.arg; entry.completion = record; } function Context(tryLocsList) { // The root entry object (effectively a try statement without a catch // or a finally block) gives us a place to store values thrown from // locations where there is no enclosing try statement. this.tryEntries = [{ tryLoc: "root" }]; tryLocsList.forEach(pushTryEntry, this); this.reset(true); } exports.keys = function(object) { var keys = []; for (var key in object) { keys.push(key); } keys.reverse(); // Rather than returning an object with a next method, we keep // things simple and return the next function itself. return function next() { while (keys.length) { var key = keys.pop(); if (key in object) { next.value = key; next.done = false; return next; } } // To avoid creating an additional object, we just hang the .value // and .done properties off the next function object itself. This // also ensures that the minifier will not anonymize the function. next.done = true; return next; }; }; function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) { return iteratorMethod.call(iterable); } if (typeof iterable.next === "function") { return iterable; } if (!isNaN(iterable.length)) { var i = -1, next = function next() { while (++i < iterable.length) { if (hasOwn.call(iterable, i)) { next.value = iterable[i]; next.done = false; return next; } } next.value = undefined; next.done = true; return next; }; return next.next = next; } } // Return an iterator with no values. return { next: doneResult }; } exports.values = values; function doneResult() { return { value: undefined, done: true }; } Context.prototype = { constructor: Context, reset: function(skipTempReset) { this.prev = 0; this.next = 0; // Resetting context._sent for legacy support of Babel's // function.sent implementation. this.sent = this._sent = undefined; this.done = false; this.delegate = null; this.method = "next"; this.arg = undefined; this.tryEntries.forEach(resetTryEntry); if (!skipTempReset) { for (var name in this) { // Not sure about the optimal order of these conditions: if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) { this[name] = undefined; } } } }, stop: function() { this.done = true; var rootEntry = this.tryEntries[0]; var rootRecord = rootEntry.completion; if (rootRecord.type === "throw") { throw rootRecord.arg; } return this.rval; }, dispatchException: function(exception) { if (this.done) { throw exception; } var context = this; function handle(loc, caught) { record.type = "throw"; record.arg = exception; context.next = loc; if (caught) { // If the dispatched exception was caught by a catch block, // then let that catch block handle the exception normally. context.method = "next"; context.arg = undefined; } return !! caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; var record = entry.completion; if (entry.tryLoc === "root") { // Exception thrown outside of any try block that could handle // it, so set the completion value of the entire function to // throw the exception. return handle("end"); } if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"); var hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) { return handle(entry.catchLoc, true); } else if (this.prev < entry.finallyLoc) { return handle(entry.finallyLoc); } } else if (hasCatch) { if (this.prev < entry.catchLoc) { return handle(entry.catchLoc, true); } } else if (hasFinally) { if (this.prev < entry.finallyLoc) { return handle(entry.finallyLoc); } } else { throw new Error("try statement without catch or finally"); } } } }, abrupt: function(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) { // Ignore the finally entry if control is not jumping to a // location outside the try/catch block. finallyEntry = null; } var record = finallyEntry ? finallyEntry.completion : {}; record.type = type; record.arg = arg; if (finallyEntry) { this.method = "next"; this.next = finallyEntry.finallyLoc; return ContinueSentinel; } return this.complete(record); }, complete: function(record, afterLoc) { if (record.type === "throw") { throw record.arg; } if (record.type === "break" || record.type === "continue") { this.next = record.arg; } else if (record.type === "return") { this.rval = this.arg = record.arg; this.method = "return"; this.next = "end"; } else if (record.type === "normal" && afterLoc) { this.next = afterLoc; } return ContinueSentinel; }, finish: function(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) { this.complete(entry.completion, entry.afterLoc); resetTryEntry(entry); return ContinueSentinel; } } }, "catch": function(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if (record.type === "throw") { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } // The context.catch method must only be called with a location // argument that corresponds to a known catch block. throw new Error("illegal catch attempt"); }, delegateYield: function(iterable, resultName, nextLoc) { this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }; if (this.method === "next") { // Deliberately forget the last sent value so that we don't // accidentally pass it on to the delegate. this.arg = undefined; } return ContinueSentinel; } }; // Regardless of whether this script is executing as a CommonJS module // or not, return the runtime object so that we can declare the variable // regeneratorRuntime in the outer scope, which allows this module to be // injected easily by `bin/regenerator --include-runtime script.js`. return exports; }( // If this script is executing as a CommonJS module, use module.exports // as the regeneratorRuntime namespace. Otherwise create a new empty // object. Either way, the resulting object will be used to initialize // the regeneratorRuntime variable at the top of this file. true ? module.exports : 0 )); try { regeneratorRuntime = runtime; } catch (accidentalStrictMode) { // This module should not be running in strict mode, so the above // assignment should always work unless something is misconfigured. Just // in case runtime.js accidentally runs in strict mode, we can escape // strict mode using a global Function call. This could conceivably fail // if a Content Security Policy forbids using Function, but in that case // the proper solution is to fix the accidental strict mode problem. If // you've misconfigured your bundler to force strict mode and applied a // CSP to forbid Function, and you're not willing to fix either of those // problems, please detail your unique predicament in a GitHub issue. Function("r", "regeneratorRuntime = r")(runtime); } /***/ }), /***/ "./node_modules/sortablejs/modular/sortable.esm.js": /*!*********************************************************!*\ !*** ./node_modules/sortablejs/modular/sortable.esm.js ***! \*********************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), /* harmony export */ "MultiDrag": () => (/* binding */ MultiDragPlugin), /* harmony export */ "Sortable": () => (/* binding */ Sortable), /* harmony export */ "Swap": () => (/* binding */ SwapPlugin) /* harmony export */ }); /**! * Sortable 1.10.2 * @author RubaXa <trash@rubaxa.org> * @author owenm <owen23355@gmail.com> * @license MIT */ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function (obj) { return typeof obj; }; } else { _typeof = function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } var version = "1.10.2"; function userAgent(pattern) { if (typeof window !== 'undefined' && window.navigator) { return !! /*@__PURE__*/ navigator.userAgent.match(pattern); } } var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i); var Edge = userAgent(/Edge/i); var FireFox = userAgent(/firefox/i); var Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i); var IOS = userAgent(/iP(ad|od|hone)/i); var ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i); var captureMode = { capture: false, passive: false }; function on(el, event, fn) { el.addEventListener(event, fn, !IE11OrLess && captureMode); } function off(el, event, fn) { el.removeEventListener(event, fn, !IE11OrLess && captureMode); } function matches( /**HTMLElement*/ el, /**String*/ selector) { if (!selector) return; selector[0] === '>' && (selector = selector.substring(1)); if (el) { try { if (el.matches) { return el.matches(selector); } else if (el.msMatchesSelector) { return el.msMatchesSelector(selector); } else if (el.webkitMatchesSelector) { return el.webkitMatchesSelector(selector); } } catch (_) { return false; } } return false; } function getParentOrHost(el) { return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode; } function closest( /**HTMLElement*/ el, /**String*/ selector, /**HTMLElement*/ ctx, includeCTX) { if (el) { ctx = ctx || document; do { if (selector != null && (selector[0] === '>' ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) { return el; } if (el === ctx) break; /* jshint boss:true */ } while (el = getParentOrHost(el)); } return null; } var R_SPACE = /\s+/g; function toggleClass(el, name, state) { if (el && name) { if (el.classList) { el.classList[state ? 'add' : 'remove'](name); } else { var className = (' ' + el.className + ' ').replace(R_SPACE, ' ').replace(' ' + name + ' ', ' '); el.className = (className + (state ? ' ' + name : '')).replace(R_SPACE, ' '); } } } function css(el, prop, val) { var style = el && el.style; if (style) { if (val === void 0) { if (document.defaultView && document.defaultView.getComputedStyle) { val = document.defaultView.getComputedStyle(el, ''); } else if (el.currentStyle) { val = el.currentStyle; } return prop === void 0 ? val : val[prop]; } else { if (!(prop in style) && prop.indexOf('webkit') === -1) { prop = '-webkit-' + prop; } style[prop] = val + (typeof val === 'string' ? '' : 'px'); } } } function matrix(el, selfOnly) { var appliedTransforms = ''; if (typeof el === 'string') { appliedTransforms = el; } else { do { var transform = css(el, 'transform'); if (transform && transform !== 'none') { appliedTransforms = transform + ' ' + appliedTransforms; } /* jshint boss:true */ } while (!selfOnly && (el = el.parentNode)); } var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix; /*jshint -W056 */ return matrixFn && new matrixFn(appliedTransforms); } function find(ctx, tagName, iterator) { if (ctx) { var list = ctx.getElementsByTagName(tagName), i = 0, n = list.length; if (iterator) { for (; i < n; i++) { iterator(list[i], i); } } return list; } return []; } function getWindowScrollingElement() { var scrollingElement = document.scrollingElement; if (scrollingElement) { return scrollingElement; } else { return document.documentElement; } } /** * Returns the "bounding client rect" of given element * @param {HTMLElement} el The element whose boundingClientRect is wanted * @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container * @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr * @param {[Boolean]} undoScale Whether the container's scale() should be undone * @param {[HTMLElement]} container The parent the element will be placed in * @return {Object} The boundingClientRect of el, with specified adjustments */ function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) { if (!el.getBoundingClientRect && el !== window) return; var elRect, top, left, bottom, right, height, width; if (el !== window && el !== getWindowScrollingElement()) { elRect = el.getBoundingClientRect(); top = elRect.top; left = elRect.left; bottom = elRect.bottom; right = elRect.right; height = elRect.height; width = elRect.width; } else { top = 0; left = 0; bottom = window.innerHeight; right = window.innerWidth; height = window.innerHeight; width = window.innerWidth; } if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) { // Adjust for translate() container = container || el.parentNode; // solves #1123 (see: https://stackoverflow.com/a/37953806/6088312) // Not needed on <= IE11 if (!IE11OrLess) { do { if (container && container.getBoundingClientRect && (css(container, 'transform') !== 'none' || relativeToNonStaticParent && css(container, 'position') !== 'static')) { var containerRect = container.getBoundingClientRect(); // Set relative to edges of padding box of container top -= containerRect.top + parseInt(css(container, 'border-top-width')); left -= containerRect.left + parseInt(css(container, 'border-left-width')); bottom = top + elRect.height; right = left + elRect.width; break; } /* jshint boss:true */ } while (container = container.parentNode); } } if (undoScale && el !== window) { // Adjust for scale() var elMatrix = matrix(container || el), scaleX = elMatrix && elMatrix.a, scaleY = elMatrix && elMatrix.d; if (elMatrix) { top /= scaleY; left /= scaleX; width /= scaleX; height /= scaleY; bottom = top + height; right = left + width; } } return { top: top, left: left, bottom: bottom, right: right, width: width, height: height }; } /** * Checks if a side of an element is scrolled past a side of its parents * @param {HTMLElement} el The element who's side being scrolled out of view is in question * @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom') * @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom') * @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element */ function isScrolledPast(el, elSide, parentSide) { var parent = getParentAutoScrollElement(el, true), elSideVal = getRect(el)[elSide]; /* jshint boss:true */ while (parent) { var parentSideVal = getRect(parent)[parentSide], visible = void 0; if (parentSide === 'top' || parentSide === 'left') { visible = elSideVal >= parentSideVal; } else { visible = elSideVal <= parentSideVal; } if (!visible) return parent; if (parent === getWindowScrollingElement()) break; parent = getParentAutoScrollElement(parent, false); } return false; } /** * Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible) * and non-draggable elements * @param {HTMLElement} el The parent element * @param {Number} childNum The index of the child * @param {Object} options Parent Sortable's options * @return {HTMLElement} The child at index childNum, or null if not found */ function getChild(el, childNum, options) { var currentChild = 0, i = 0, children = el.children; while (i < children.length) { if (children[i].style.display !== 'none' && children[i] !== Sortable.ghost && children[i] !== Sortable.dragged && closest(children[i], options.draggable, el, false)) { if (currentChild === childNum) { return children[i]; } currentChild++; } i++; } return null; } /** * Gets the last child in the el, ignoring ghostEl or invisible elements (clones) * @param {HTMLElement} el Parent element * @param {selector} selector Any other elements that should be ignored * @return {HTMLElement} The last child, ignoring ghostEl */ function lastChild(el, selector) { var last = el.lastElementChild; while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) { last = last.previousElementSibling; } return last || null; } /** * Returns the index of an element within its parent for a selected set of * elements * @param {HTMLElement} el * @param {selector} selector * @return {number} */ function index(el, selector) { var index = 0; if (!el || !el.parentNode) { return -1; } /* jshint boss:true */ while (el = el.previousElementSibling) { if (el.nodeName.toUpperCase() !== 'TEMPLATE' && el !== Sortable.clone && (!selector || matches(el, selector))) { index++; } } return index; } /** * Returns the scroll offset of the given element, added with all the scroll offsets of parent elements. * The value is returned in real pixels. * @param {HTMLElement} el * @return {Array} Offsets in the format of [left, top] */ function getRelativeScrollOffset(el) { var offsetLeft = 0, offsetTop = 0, winScroller = getWindowScrollingElement(); if (el) { do { var elMatrix = matrix(el), scaleX = elMatrix.a, scaleY = elMatrix.d; offsetLeft += el.scrollLeft * scaleX; offsetTop += el.scrollTop * scaleY; } while (el !== winScroller && (el = el.parentNode)); } return [offsetLeft, offsetTop]; } /** * Returns the index of the object within the given array * @param {Array} arr Array that may or may not hold the object * @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find * @return {Number} The index of the object in the array, or -1 */ function indexOfObject(arr, obj) { for (var i in arr) { if (!arr.hasOwnProperty(i)) continue; for (var key in obj) { if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i); } } return -1; } function getParentAutoScrollElement(el, includeSelf) { // skip to window if (!el || !el.getBoundingClientRect) return getWindowScrollingElement(); var elem = el; var gotSelf = false; do { // we don't need to get elem css if it isn't even overflowing in the first place (performance) if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) { var elemCSS = css(elem); if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == 'auto' || elemCSS.overflowX == 'scroll') || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == 'auto' || elemCSS.overflowY == 'scroll')) { if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement(); if (gotSelf || includeSelf) return elem; gotSelf = true; } } /* jshint boss:true */ } while (elem = elem.parentNode); return getWindowScrollingElement(); } function extend(dst, src) { if (dst && src) { for (var key in src) { if (src.hasOwnProperty(key)) { dst[key] = src[key]; } } } return dst; } function isRectEqual(rect1, rect2) { return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width); } var _throttleTimeout; function throttle(callback, ms) { return function () { if (!_throttleTimeout) { var args = arguments, _this = this; if (args.length === 1) { callback.call(_this, args[0]); } else { callback.apply(_this, args); } _throttleTimeout = setTimeout(function () { _throttleTimeout = void 0; }, ms); } }; } function cancelThrottle() { clearTimeout(_throttleTimeout); _throttleTimeout = void 0; } function scrollBy(el, x, y) { el.scrollLeft += x; el.scrollTop += y; } function clone(el) { var Polymer = window.Polymer; var $ = window.jQuery || window.Zepto; if (Polymer && Polymer.dom) { return Polymer.dom(el).cloneNode(true); } else if ($) { return $(el).clone(true)[0]; } else { return el.cloneNode(true); } } function setRect(el, rect) { css(el, 'position', 'absolute'); css(el, 'top', rect.top); css(el, 'left', rect.left); css(el, 'width', rect.width); css(el, 'height', rect.height); } function unsetRect(el) { css(el, 'position', ''); css(el, 'top', ''); css(el, 'left', ''); css(el, 'width', ''); css(el, 'height', ''); } var expando = 'Sortable' + new Date().getTime(); function AnimationStateManager() { var animationStates = [], animationCallbackId; return { captureAnimationState: function captureAnimationState() { animationStates = []; if (!this.options.animation) return; var children = [].slice.call(this.el.children); children.forEach(function (child) { if (css(child, 'display') === 'none' || child === Sortable.ghost) return; animationStates.push({ target: child, rect: getRect(child) }); var fromRect = _objectSpread({}, animationStates[animationStates.length - 1].rect); // If animating: compensate for current animation if (child.thisAnimationDuration) { var childMatrix = matrix(child, true); if (childMatrix) { fromRect.top -= childMatrix.f; fromRect.left -= childMatrix.e; } } child.fromRect = fromRect; }); }, addAnimationState: function addAnimationState(state) { animationStates.push(state); }, removeAnimationState: function removeAnimationState(target) { animationStates.splice(indexOfObject(animationStates, { target: target }), 1); }, animateAll: function animateAll(callback) { var _this = this; if (!this.options.animation) { clearTimeout(animationCallbackId); if (typeof callback === 'function') callback(); return; } var animating = false, animationTime = 0; animationStates.forEach(function (state) { var time = 0, target = state.target, fromRect = target.fromRect, toRect = getRect(target), prevFromRect = target.prevFromRect, prevToRect = target.prevToRect, animatingRect = state.rect, targetMatrix = matrix(target, true); if (targetMatrix) { // Compensate for current animation toRect.top -= targetMatrix.f; toRect.left -= targetMatrix.e; } target.toRect = toRect; if (target.thisAnimationDuration) { // Could also check if animatingRect is between fromRect and toRect if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) { // If returning to same place as started from animation and on same axis time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options); } } // if fromRect != toRect: animate if (!isRectEqual(toRect, fromRect)) { target.prevFromRect = fromRect; target.prevToRect = toRect; if (!time) { time = _this.options.animation; } _this.animate(target, animatingRect, toRect, time); } if (time) { animating = true; animationTime = Math.max(animationTime, time); clearTimeout(target.animationResetTimer); target.animationResetTimer = setTimeout(function () { target.animationTime = 0; target.prevFromRect = null; target.fromRect = null; target.prevToRect = null; target.thisAnimationDuration = null; }, time); target.thisAnimationDuration = time; } }); clearTimeout(animationCallbackId); if (!animating) { if (typeof callback === 'function') callback(); } else { animationCallbackId = setTimeout(function () { if (typeof callback === 'function') callback(); }, animationTime); } animationStates = []; }, animate: function animate(target, currentRect, toRect, duration) { if (duration) { css(target, 'transition', ''); css(target, 'transform', ''); var elMatrix = matrix(this.el), scaleX = elMatrix && elMatrix.a, scaleY = elMatrix && elMatrix.d, translateX = (currentRect.left - toRect.left) / (scaleX || 1), translateY = (currentRect.top - toRect.top) / (scaleY || 1); target.animatingX = !!translateX; target.animatingY = !!translateY; css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)'); repaint(target); // repaint css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : '')); css(target, 'transform', 'translate3d(0,0,0)'); typeof target.animated === 'number' && clearTimeout(target.animated); target.animated = setTimeout(function () { css(target, 'transition', ''); css(target, 'transform', ''); target.animated = false; target.animatingX = false; target.animatingY = false; }, duration); } } }; } function repaint(target) { return target.offsetWidth; } function calculateRealTime(animatingRect, fromRect, toRect, options) { return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation; } var plugins = []; var defaults = { initializeByDefault: true }; var PluginManager = { mount: function mount(plugin) { // Set default static properties for (var option in defaults) { if (defaults.hasOwnProperty(option) && !(option in plugin)) { plugin[option] = defaults[option]; } } plugins.push(plugin); }, pluginEvent: function pluginEvent(eventName, sortable, evt) { var _this = this; this.eventCanceled = false; evt.cancel = function () { _this.eventCanceled = true; }; var eventNameGlobal = eventName + 'Global'; plugins.forEach(function (plugin) { if (!sortable[plugin.pluginName]) return; // Fire global events if it exists in this sortable if (sortable[plugin.pluginName][eventNameGlobal]) { sortable[plugin.pluginName][eventNameGlobal](_objectSpread({ sortable: sortable }, evt)); } // Only fire plugin event if plugin is enabled in this sortable, // and plugin has event defined if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) { sortable[plugin.pluginName][eventName](_objectSpread({ sortable: sortable }, evt)); } }); }, initializePlugins: function initializePlugins(sortable, el, defaults, options) { plugins.forEach(function (plugin) { var pluginName = plugin.pluginName; if (!sortable.options[pluginName] && !plugin.initializeByDefault) return; var initialized = new plugin(sortable, el, sortable.options); initialized.sortable = sortable; initialized.options = sortable.options; sortable[pluginName] = initialized; // Add default options from plugin _extends(defaults, initialized.defaults); }); for (var option in sortable.options) { if (!sortable.options.hasOwnProperty(option)) continue; var modified = this.modifyOption(sortable, option, sortable.options[option]); if (typeof modified !== 'undefined') { sortable.options[option] = modified; } } }, getEventProperties: function getEventProperties(name, sortable) { var eventProperties = {}; plugins.forEach(function (plugin) { if (typeof plugin.eventProperties !== 'function') return; _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name)); }); return eventProperties; }, modifyOption: function modifyOption(sortable, name, value) { var modifiedValue; plugins.forEach(function (plugin) { // Plugin must exist on the Sortable if (!sortable[plugin.pluginName]) return; // If static option listener exists for this option, call in the context of the Sortable's instance of this plugin if (plugin.optionListeners && typeof plugin.optionListeners[name] === 'function') { modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value); } }); return modifiedValue; } }; function dispatchEvent(_ref) { var sortable = _ref.sortable, rootEl = _ref.rootEl, name = _ref.name, targetEl = _ref.targetEl, cloneEl = _ref.cloneEl, toEl = _ref.toEl, fromEl = _ref.fromEl, oldIndex = _ref.oldIndex, newIndex = _ref.newIndex, oldDraggableIndex = _ref.oldDraggableIndex, newDraggableIndex = _ref.newDraggableIndex, originalEvent = _ref.originalEvent, putSortable = _ref.putSortable, extraEventProperties = _ref.extraEventProperties; sortable = sortable || rootEl && rootEl[expando]; if (!sortable) return; var evt, options = sortable.options, onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1); // Support for new CustomEvent feature if (window.CustomEvent && !IE11OrLess && !Edge) { evt = new CustomEvent(name, { bubbles: true, cancelable: true }); } else { evt = document.createEvent('Event'); evt.initEvent(name, true, true); } evt.to = toEl || rootEl; evt.from = fromEl || rootEl; evt.item = targetEl || rootEl; evt.clone = cloneEl; evt.oldIndex = oldIndex; evt.newIndex = newIndex; evt.oldDraggableIndex = oldDraggableIndex; evt.newDraggableIndex = newDraggableIndex; evt.originalEvent = originalEvent; evt.pullMode = putSortable ? putSortable.lastPutMode : undefined; var allEventProperties = _objectSpread({}, extraEventProperties, PluginManager.getEventProperties(name, sortable)); for (var option in allEventProperties) { evt[option] = allEventProperties[option]; } if (rootEl) { rootEl.dispatchEvent(evt); } if (options[onName]) { options[onName].call(sortable, evt); } } var pluginEvent = function pluginEvent(eventName, sortable) { var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, originalEvent = _ref.evt, data = _objectWithoutProperties(_ref, ["evt"]); PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread({ dragEl: dragEl, parentEl: parentEl, ghostEl: ghostEl, rootEl: rootEl, nextEl: nextEl, lastDownEl: lastDownEl, cloneEl: cloneEl, cloneHidden: cloneHidden, dragStarted: moved, putSortable: putSortable, activeSortable: Sortable.active, originalEvent: originalEvent, oldIndex: oldIndex, oldDraggableIndex: oldDraggableIndex, newIndex: newIndex, newDraggableIndex: newDraggableIndex, hideGhostForTarget: _hideGhostForTarget, unhideGhostForTarget: _unhideGhostForTarget, cloneNowHidden: function cloneNowHidden() { cloneHidden = true; }, cloneNowShown: function cloneNowShown() { cloneHidden = false; }, dispatchSortableEvent: function dispatchSortableEvent(name) { _dispatchEvent({ sortable: sortable, name: name, originalEvent: originalEvent }); } }, data)); }; function _dispatchEvent(info) { dispatchEvent(_objectSpread({ putSortable: putSortable, cloneEl: cloneEl, targetEl: dragEl, rootEl: rootEl, oldIndex: oldIndex, oldDraggableIndex: oldDraggableIndex, newIndex: newIndex, newDraggableIndex: newDraggableIndex }, info)); } var dragEl, parentEl, ghostEl, rootEl, nextEl, lastDownEl, cloneEl, cloneHidden, oldIndex, newIndex, oldDraggableIndex, newDraggableIndex, activeGroup, putSortable, awaitingDragStarted = false, ignoreNextClick = false, sortables = [], tapEvt, touchEvt, lastDx, lastDy, tapDistanceLeft, tapDistanceTop, moved, lastTarget, lastDirection, pastFirstInvertThresh = false, isCircumstantialInvert = false, targetMoveDistance, // For positioning ghost absolutely ghostRelativeParent, ghostRelativeParentInitialScroll = [], // (left, top) _silent = false, savedInputChecked = []; /** @const */ var documentExists = typeof document !== 'undefined', PositionGhostAbsolutely = IOS, CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float', // This will not pass for IE9, because IE9 DnD only works on anchors supportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'), supportCssPointerEvents = function () { if (!documentExists) return; // false when <= IE11 if (IE11OrLess) { return false; } var el = document.createElement('x'); el.style.cssText = 'pointer-events:auto'; return el.style.pointerEvents === 'auto'; }(), _detectDirection = function _detectDirection(el, options) { var elCSS = css(el), elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth), child1 = getChild(el, 0, options), child2 = getChild(el, 1, options), firstChildCSS = child1 && css(child1), secondChildCSS = child2 && css(child2), firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width, secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width; if (elCSS.display === 'flex') { return elCSS.flexDirection === 'column' || elCSS.flexDirection === 'column-reverse' ? 'vertical' : 'horizontal'; } if (elCSS.display === 'grid') { return elCSS.gridTemplateColumns.split(' ').length <= 1 ? 'vertical' : 'horizontal'; } if (child1 && firstChildCSS["float"] && firstChildCSS["float"] !== 'none') { var touchingSideChild2 = firstChildCSS["float"] === 'left' ? 'left' : 'right'; return child2 && (secondChildCSS.clear === 'both' || secondChildCSS.clear === touchingSideChild2) ? 'vertical' : 'horizontal'; } return child1 && (firstChildCSS.display === 'block' || firstChildCSS.display === 'flex' || firstChildCSS.display === 'table' || firstChildCSS.display === 'grid' || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === 'none' || child2 && elCSS[CSSFloatProperty] === 'none' && firstChildWidth + secondChildWidth > elWidth) ? 'vertical' : 'horizontal'; }, _dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) { var dragElS1Opp = vertical ? dragRect.left : dragRect.top, dragElS2Opp = vertical ? dragRect.right : dragRect.bottom, dragElOppLength = vertical ? dragRect.width : dragRect.height, targetS1Opp = vertical ? targetRect.left : targetRect.top, targetS2Opp = vertical ? targetRect.right : targetRect.bottom, targetOppLength = vertical ? targetRect.width : targetRect.height; return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2; }, /** * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold. * @param {Number} x X position * @param {Number} y Y position * @return {HTMLElement} Element of the first found nearest Sortable */ _detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) { var ret; sortables.some(function (sortable) { if (lastChild(sortable)) return; var rect = getRect(sortable), threshold = sortable[expando].options.emptyInsertThreshold, insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold, insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold; if (threshold && insideHorizontally && insideVertically) { return ret = sortable; } }); return ret; }, _prepareGroup = function _prepareGroup(options) { function toFn(value, pull) { return function (to, from, dragEl, evt) { var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name; if (value == null && (pull || sameGroup)) { // Default pull value // Default pull and put value if same group return true; } else if (value == null || value === false) { return false; } else if (pull && value === 'clone') { return value; } else if (typeof value === 'function') { return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt); } else { var otherGroup = (pull ? to : from).options.group.name; return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1; } }; } var group = {}; var originalGroup = options.group; if (!originalGroup || _typeof(originalGroup) != 'object') { originalGroup = { name: originalGroup }; } group.name = originalGroup.name; group.checkPull = toFn(originalGroup.pull, true); group.checkPut = toFn(originalGroup.put); group.revertClone = originalGroup.revertClone; options.group = group; }, _hideGhostForTarget = function _hideGhostForTarget() { if (!supportCssPointerEvents && ghostEl) { css(ghostEl, 'display', 'none'); } }, _unhideGhostForTarget = function _unhideGhostForTarget() { if (!supportCssPointerEvents && ghostEl) { css(ghostEl, 'display', ''); } }; // #1184 fix - Prevent click event on fallback if dragged but item not changed position if (documentExists) { document.addEventListener('click', function (evt) { if (ignoreNextClick) { evt.preventDefault(); evt.stopPropagation && evt.stopPropagation(); evt.stopImmediatePropagation && evt.stopImmediatePropagation(); ignoreNextClick = false; return false; } }, true); } var nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) { if (dragEl) { evt = evt.touches ? evt.touches[0] : evt; var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY); if (nearest) { // Create imitation event var event = {}; for (var i in evt) { if (evt.hasOwnProperty(i)) { event[i] = evt[i]; } } event.target = event.rootEl = nearest; event.preventDefault = void 0; event.stopPropagation = void 0; nearest[expando]._onDragOver(event); } } }; var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) { if (dragEl) { dragEl.parentNode[expando]._isOutsideThisEl(evt.target); } }; /** * @class Sortable * @param {HTMLElement} el * @param {Object} [options] */ function Sortable(el, options) { if (!(el && el.nodeType && el.nodeType === 1)) { throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(el)); } this.el = el; // root element this.options = options = _extends({}, options); // Export instance el[expando] = this; var defaults = { group: null, sort: true, disabled: false, store: null, handle: null, draggable: /^[uo]l$/i.test(el.nodeName) ? '>li' : '>*', swapThreshold: 1, // percentage; 0 <= x <= 1 invertSwap: false, // invert always invertedSwapThreshold: null, // will be set to same as swapThreshold if default removeCloneOnHide: true, direction: function direction() { return _detectDirection(el, this.options); }, ghostClass: 'sortable-ghost', chosenClass: 'sortable-chosen', dragClass: 'sortable-drag', ignore: 'a, img', filter: null, preventOnFilter: true, animation: 0, easing: null, setData: function setData(dataTransfer, dragEl) { dataTransfer.setData('Text', dragEl.textContent); }, dropBubble: false, dragoverBubble: false, dataIdAttr: 'data-id', delay: 0, delayOnTouchOnly: false, touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1, forceFallback: false, fallbackClass: 'sortable-fallback', fallbackOnBody: false, fallbackTolerance: 0, fallbackOffset: { x: 0, y: 0 }, supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window, emptyInsertThreshold: 5 }; PluginManager.initializePlugins(this, el, defaults); // Set default options for (var name in defaults) { !(name in options) && (options[name] = defaults[name]); } _prepareGroup(options); // Bind all private methods for (var fn in this) { if (fn.charAt(0) === '_' && typeof this[fn] === 'function') { this[fn] = this[fn].bind(this); } } // Setup drag mode this.nativeDraggable = options.forceFallback ? false : supportDraggable; if (this.nativeDraggable) { // Touch start threshold cannot be greater than the native dragstart threshold this.options.touchStartThreshold = 1; } // Bind events if (options.supportPointer) { on(el, 'pointerdown', this._onTapStart); } else { on(el, 'mousedown', this._onTapStart); on(el, 'touchstart', this._onTapStart); } if (this.nativeDraggable) { on(el, 'dragover', this); on(el, 'dragenter', this); } sortables.push(this.el); // Restore sorting options.store && options.store.get && this.sort(options.store.get(this) || []); // Add animation state manager _extends(this, AnimationStateManager()); } Sortable.prototype = /** @lends Sortable.prototype */ { constructor: Sortable, _isOutsideThisEl: function _isOutsideThisEl(target) { if (!this.el.contains(target) && target !== this.el) { lastTarget = null; } }, _getDirection: function _getDirection(evt, target) { return typeof this.options.direction === 'function' ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction; }, _onTapStart: function _onTapStart( /** Event|TouchEvent */ evt) { if (!evt.cancelable) return; var _this = this, el = this.el, options = this.options, preventOnFilter = options.preventOnFilter, type = evt.type, touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === 'touch' && evt, target = (touch || evt).target, originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target, filter = options.filter; _saveInputCheckedState(el); // Don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group. if (dragEl) { return; } if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) { return; // only left button and enabled } // cancel dnd if original target is content editable if (originalTarget.isContentEditable) { return; } target = closest(target, options.draggable, el, false); if (target && target.animated) { return; } if (lastDownEl === target) { // Ignoring duplicate `down` return; } // Get the index of the dragged element within its parent oldIndex = index(target); oldDraggableIndex = index(target, options.draggable); // Check filter if (typeof filter === 'function') { if (filter.call(this, evt, target, this)) { _dispatchEvent({ sortable: _this, rootEl: originalTarget, name: 'filter', targetEl: target, toEl: el, fromEl: el }); pluginEvent('filter', _this, { evt: evt }); preventOnFilter && evt.cancelable && evt.preventDefault(); return; // cancel dnd } } else if (filter) { filter = filter.split(',').some(function (criteria) { criteria = closest(originalTarget, criteria.trim(), el, false); if (criteria) { _dispatchEvent({ sortable: _this, rootEl: criteria, name: 'filter', targetEl: target, fromEl: el, toEl: el }); pluginEvent('filter', _this, { evt: evt }); return true; } }); if (filter) { preventOnFilter && evt.cancelable && evt.preventDefault(); return; // cancel dnd } } if (options.handle && !closest(originalTarget, options.handle, el, false)) { return; } // Prepare `dragstart` this._prepareDragStart(evt, touch, target); }, _prepareDragStart: function _prepareDragStart( /** Event */ evt, /** Touch */ touch, /** HTMLElement */ target) { var _this = this, el = _this.el, options = _this.options, ownerDocument = el.ownerDocument, dragStartFn; if (target && !dragEl && target.parentNode === el) { var dragRect = getRect(target); rootEl = el; dragEl = target; parentEl = dragEl.parentNode; nextEl = dragEl.nextSibling; lastDownEl = target; activeGroup = options.group; Sortable.dragged = dragEl; tapEvt = { target: dragEl, clientX: (touch || evt).clientX, clientY: (touch || evt).clientY }; tapDistanceLeft = tapEvt.clientX - dragRect.left; tapDistanceTop = tapEvt.clientY - dragRect.top; this._lastX = (touch || evt).clientX; this._lastY = (touch || evt).clientY; dragEl.style['will-change'] = 'all'; dragStartFn = function dragStartFn() { pluginEvent('delayEnded', _this, { evt: evt }); if (Sortable.eventCanceled) { _this._onDrop(); return; } // Delayed drag has been triggered // we can re-enable the events: touchmove/mousemove _this._disableDelayedDragEvents(); if (!FireFox && _this.nativeDraggable) { dragEl.draggable = true; } // Bind the events: dragstart/dragend _this._triggerDragStart(evt, touch); // Drag start event _dispatchEvent({ sortable: _this, name: 'choose', originalEvent: evt }); // Chosen item toggleClass(dragEl, options.chosenClass, true); }; // Disable "draggable" options.ignore.split(',').forEach(function (criteria) { find(dragEl, criteria.trim(), _disableDraggable); }); on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent); on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent); on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent); on(ownerDocument, 'mouseup', _this._onDrop); on(ownerDocument, 'touchend', _this._onDrop); on(ownerDocument, 'touchcancel', _this._onDrop); // Make dragEl draggable (must be before delay for FireFox) if (FireFox && this.nativeDraggable) { this.options.touchStartThreshold = 4; dragEl.draggable = true; } pluginEvent('delayStart', this, { evt: evt }); // Delay is impossible for native DnD in Edge or IE if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) { if (Sortable.eventCanceled) { this._onDrop(); return; } // If the user moves the pointer or let go the click or touch // before the delay has been reached: // disable the delayed drag on(ownerDocument, 'mouseup', _this._disableDelayedDrag); on(ownerDocument, 'touchend', _this._disableDelayedDrag); on(ownerDocument, 'touchcancel', _this._disableDelayedDrag); on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler); on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler); options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler); _this._dragStartTimer = setTimeout(dragStartFn, options.delay); } else { dragStartFn(); } } }, _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler( /** TouchEvent|PointerEvent **/ e) { var touch = e.touches ? e.touches[0] : e; if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) { this._disableDelayedDrag(); } }, _disableDelayedDrag: function _disableDelayedDrag() { dragEl && _disableDraggable(dragEl); clearTimeout(this._dragStartTimer); this._disableDelayedDragEvents(); }, _disableDelayedDragEvents: function _disableDelayedDragEvents() { var ownerDocument = this.el.ownerDocument; off(ownerDocument, 'mouseup', this._disableDelayedDrag); off(ownerDocument, 'touchend', this._disableDelayedDrag); off(ownerDocument, 'touchcancel', this._disableDelayedDrag); off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler); off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler); off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler); }, _triggerDragStart: function _triggerDragStart( /** Event */ evt, /** Touch */ touch) { touch = touch || evt.pointerType == 'touch' && evt; if (!this.nativeDraggable || touch) { if (this.options.supportPointer) { on(document, 'pointermove', this._onTouchMove); } else if (touch) { on(document, 'touchmove', this._onTouchMove); } else { on(document, 'mousemove', this._onTouchMove); } } else { on(dragEl, 'dragend', this); on(rootEl, 'dragstart', this._onDragStart); } try { if (document.selection) { // Timeout neccessary for IE9 _nextTick(function () { document.selection.empty(); }); } else { window.getSelection().removeAllRanges(); } } catch (err) {} }, _dragStarted: function _dragStarted(fallback, evt) { awaitingDragStarted = false; if (rootEl && dragEl) { pluginEvent('dragStarted', this, { evt: evt }); if (this.nativeDraggable) { on(document, 'dragover', _checkOutsideTargetEl); } var options = this.options; // Apply effect !fallback && toggleClass(dragEl, options.dragClass, false); toggleClass(dragEl, options.ghostClass, true); Sortable.active = this; fallback && this._appendGhost(); // Drag start event _dispatchEvent({ sortable: this, name: 'start', originalEvent: evt }); } else { this._nulling(); } }, _emulateDragOver: function _emulateDragOver() { if (touchEvt) { this._lastX = touchEvt.clientX; this._lastY = touchEvt.clientY; _hideGhostForTarget(); var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY); var parent = target; while (target && target.shadowRoot) { target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY); if (target === parent) break; parent = target; } dragEl.parentNode[expando]._isOutsideThisEl(target); if (parent) { do { if (parent[expando]) { var inserted = void 0; inserted = parent[expando]._onDragOver({ clientX: touchEvt.clientX, clientY: touchEvt.clientY, target: target, rootEl: parent }); if (inserted && !this.options.dragoverBubble) { break; } } target = parent; // store last element } /* jshint boss:true */ while (parent = parent.parentNode); } _unhideGhostForTarget(); } }, _onTouchMove: function _onTouchMove( /**TouchEvent*/ evt) { if (tapEvt) { var options = this.options, fallbackTolerance = options.fallbackTolerance, fallbackOffset = options.fallbackOffset, touch = evt.touches ? evt.touches[0] : evt, ghostMatrix = ghostEl && matrix(ghostEl, true), scaleX = ghostEl && ghostMatrix && ghostMatrix.a, scaleY = ghostEl && ghostMatrix && ghostMatrix.d, relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent), dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1), dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1); // only set the status to dragging, when we are actually dragging if (!Sortable.active && !awaitingDragStarted) { if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) { return; } this._onDragStart(evt, true); } if (ghostEl) { if (ghostMatrix) { ghostMatrix.e += dx - (lastDx || 0); ghostMatrix.f += dy - (lastDy || 0); } else { ghostMatrix = { a: 1, b: 0, c: 0, d: 1, e: dx, f: dy }; } var cssMatrix = "matrix(".concat(ghostMatrix.a, ",").concat(ghostMatrix.b, ",").concat(ghostMatrix.c, ",").concat(ghostMatrix.d, ",").concat(ghostMatrix.e, ",").concat(ghostMatrix.f, ")"); css(ghostEl, 'webkitTransform', cssMatrix); css(ghostEl, 'mozTransform', cssMatrix); css(ghostEl, 'msTransform', cssMatrix); css(ghostEl, 'transform', cssMatrix); lastDx = dx; lastDy = dy; touchEvt = touch; } evt.cancelable && evt.preventDefault(); } }, _appendGhost: function _appendGhost() { // Bug if using scale(): https://stackoverflow.com/questions/2637058 // Not being adjusted for if (!ghostEl) { var container = this.options.fallbackOnBody ? document.body : rootEl, rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container), options = this.options; // Position absolutely if (PositionGhostAbsolutely) { // Get relatively positioned parent ghostRelativeParent = container; while (css(ghostRelativeParent, 'position') === 'static' && css(ghostRelativeParent, 'transform') === 'none' && ghostRelativeParent !== document) { ghostRelativeParent = ghostRelativeParent.parentNode; } if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) { if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement(); rect.top += ghostRelativeParent.scrollTop; rect.left += ghostRelativeParent.scrollLeft; } else { ghostRelativeParent = getWindowScrollingElement(); } ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent); } ghostEl = dragEl.cloneNode(true); toggleClass(ghostEl, options.ghostClass, false); toggleClass(ghostEl, options.fallbackClass, true); toggleClass(ghostEl, options.dragClass, true); css(ghostEl, 'transition', ''); css(ghostEl, 'transform', ''); css(ghostEl, 'box-sizing', 'border-box'); css(ghostEl, 'margin', 0); css(ghostEl, 'top', rect.top); css(ghostEl, 'left', rect.left); css(ghostEl, 'width', rect.width); css(ghostEl, 'height', rect.height); css(ghostEl, 'opacity', '0.8'); css(ghostEl, 'position', PositionGhostAbsolutely ? 'absolute' : 'fixed'); css(ghostEl, 'zIndex', '100000'); css(ghostEl, 'pointerEvents', 'none'); Sortable.ghost = ghostEl; container.appendChild(ghostEl); // Set transform-origin css(ghostEl, 'transform-origin', tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + '% ' + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + '%'); } }, _onDragStart: function _onDragStart( /**Event*/ evt, /**boolean*/ fallback) { var _this = this; var dataTransfer = evt.dataTransfer; var options = _this.options; pluginEvent('dragStart', this, { evt: evt }); if (Sortable.eventCanceled) { this._onDrop(); return; } pluginEvent('setupClone', this); if (!Sortable.eventCanceled) { cloneEl = clone(dragEl); cloneEl.draggable = false; cloneEl.style['will-change'] = ''; this._hideClone(); toggleClass(cloneEl, this.options.chosenClass, false); Sortable.clone = cloneEl; } // #1143: IFrame support workaround _this.cloneId = _nextTick(function () { pluginEvent('clone', _this); if (Sortable.eventCanceled) return; if (!_this.options.removeCloneOnHide) { rootEl.insertBefore(cloneEl, dragEl); } _this._hideClone(); _dispatchEvent({ sortable: _this, name: 'clone' }); }); !fallback && toggleClass(dragEl, options.dragClass, true); // Set proper drop events if (fallback) { ignoreNextClick = true; _this._loopId = setInterval(_this._emulateDragOver, 50); } else { // Undo what was set in _prepareDragStart before drag started off(document, 'mouseup', _this._onDrop); off(document, 'touchend', _this._onDrop); off(document, 'touchcancel', _this._onDrop); if (dataTransfer) { dataTransfer.effectAllowed = 'move'; options.setData && options.setData.call(_this, dataTransfer, dragEl); } on(document, 'drop', _this); // #1276 fix: css(dragEl, 'transform', 'translateZ(0)'); } awaitingDragStarted = true; _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt)); on(document, 'selectstart', _this); moved = true; if (Safari) { css(document.body, 'user-select', 'none'); } }, // Returns true - if no further action is needed (either inserted or another condition) _onDragOver: function _onDragOver( /**Event*/ evt) { var el = this.el, target = evt.target, dragRect, targetRect, revert, options = this.options, group = options.group, activeSortable = Sortable.active, isOwner = activeGroup === group, canSort = options.sort, fromSortable = putSortable || activeSortable, vertical, _this = this, completedFired = false; if (_silent) return; function dragOverEvent(name, extra) { pluginEvent(name, _this, _objectSpread({ evt: evt, isOwner: isOwner, axis: vertical ? 'vertical' : 'horizontal', revert: revert, dragRect: dragRect, targetRect: targetRect, canSort: canSort, fromSortable: fromSortable, target: target, completed: completed, onMove: function onMove(target, after) { return _onMove(rootEl, el, dragEl, dragRect, target, getRect(target), evt, after); }, changed: changed }, extra)); } // Capture animation state function capture() { dragOverEvent('dragOverAnimationCapture'); _this.captureAnimationState(); if (_this !== fromSortable) { fromSortable.captureAnimationState(); } } // Return invocation when dragEl is inserted (or completed) function completed(insertion) { dragOverEvent('dragOverCompleted', { insertion: insertion }); if (insertion) { // Clones must be hidden before folding animation to capture dragRectAbsolute properly if (isOwner) { activeSortable._hideClone(); } else { activeSortable._showClone(_this); } if (_this !== fromSortable) { // Set ghost class to new sortable's ghost class toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false); toggleClass(dragEl, options.ghostClass, true); } if (putSortable !== _this && _this !== Sortable.active) { putSortable = _this; } else if (_this === Sortable.active && putSortable) { putSortable = null; } // Animation if (fromSortable === _this) { _this._ignoreWhileAnimating = target; } _this.animateAll(function () { dragOverEvent('dragOverAnimationComplete'); _this._ignoreWhileAnimating = null; }); if (_this !== fromSortable) { fromSortable.animateAll(); fromSortable._ignoreWhileAnimating = null; } } // Null lastTarget if it is not inside a previously swapped element if (target === dragEl && !dragEl.animated || target === el && !target.animated) { lastTarget = null; } // no bubbling and not fallback if (!options.dragoverBubble && !evt.rootEl && target !== document) { dragEl.parentNode[expando]._isOutsideThisEl(evt.target); // Do not detect for empty insert if already inserted !insertion && nearestEmptyInsertDetectEvent(evt); } !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation(); return completedFired = true; } // Call when dragEl has been inserted function changed() { newIndex = index(dragEl); newDraggableIndex = index(dragEl, options.draggable); _dispatchEvent({ sortable: _this, name: 'change', toEl: el, newIndex: newIndex, newDraggableIndex: newDraggableIndex, originalEvent: evt }); } if (evt.preventDefault !== void 0) { evt.cancelable && evt.preventDefault(); } target = closest(target, options.draggable, el, true); dragOverEvent('dragOver'); if (Sortable.eventCanceled) return completedFired; if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) { return completed(false); } ignoreNextClick = false; if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = !rootEl.contains(dragEl)) // Reverting item into the original list : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) { vertical = this._getDirection(evt, target) === 'vertical'; dragRect = getRect(dragEl); dragOverEvent('dragOverValid'); if (Sortable.eventCanceled) return completedFired; if (revert) { parentEl = rootEl; // actualization capture(); this._hideClone(); dragOverEvent('revert'); if (!Sortable.eventCanceled) { if (nextEl) { rootEl.insertBefore(dragEl, nextEl); } else { rootEl.appendChild(dragEl); } } return completed(true); } var elLastChild = lastChild(el, options.draggable); if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) { // If already at end of list: Do not insert if (elLastChild === dragEl) { return completed(false); } // assign target only if condition is true if (elLastChild && el === evt.target) { target = elLastChild; } if (target) { targetRect = getRect(target); } if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) { capture(); el.appendChild(dragEl); parentEl = el; // actualization changed(); return completed(true); } } else if (target.parentNode === el) { targetRect = getRect(target); var direction = 0, targetBeforeFirstSwap, differentLevel = dragEl.parentNode !== el, differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical), side1 = vertical ? 'top' : 'left', scrolledPastTop = isScrolledPast(target, 'top', 'top') || isScrolledPast(dragEl, 'top', 'top'), scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0; if (lastTarget !== target) { targetBeforeFirstSwap = targetRect[side1]; pastFirstInvertThresh = false; isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel; } direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target); var sibling; if (direction !== 0) { // Check if target is beside dragEl in respective direction (ignoring hidden elements) var dragIndex = index(dragEl); do { dragIndex -= direction; sibling = parentEl.children[dragIndex]; } while (sibling && (css(sibling, 'display') === 'none' || sibling === ghostEl)); } // If dragEl is already beside target: Do not insert if (direction === 0 || sibling === target) { return completed(false); } lastTarget = target; lastDirection = direction; var nextSibling = target.nextElementSibling, after = false; after = direction === 1; var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after); if (moveVector !== false) { if (moveVector === 1 || moveVector === -1) { after = moveVector === 1; } _silent = true; setTimeout(_unsilent, 30); capture(); if (after && !nextSibling) { el.appendChild(dragEl); } else { target.parentNode.insertBefore(dragEl, after ? nextSibling : target); } // Undo chrome's scroll adjustment (has no effect on other browsers) if (scrolledPastTop) { scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop); } parentEl = dragEl.parentNode; // actualization // must be done before animation if (targetBeforeFirstSwap !== undefined && !isCircumstantialInvert) { targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]); } changed(); return completed(true); } } if (el.contains(dragEl)) { return completed(false); } } return false; }, _ignoreWhileAnimating: null, _offMoveEvents: function _offMoveEvents() { off(document, 'mousemove', this._onTouchMove); off(document, 'touchmove', this._onTouchMove); off(document, 'pointermove', this._onTouchMove); off(document, 'dragover', nearestEmptyInsertDetectEvent); off(document, 'mousemove', nearestEmptyInsertDetectEvent); off(document, 'touchmove', nearestEmptyInsertDetectEvent); }, _offUpEvents: function _offUpEvents() { var ownerDocument = this.el.ownerDocument; off(ownerDocument, 'mouseup', this._onDrop); off(ownerDocument, 'touchend', this._onDrop); off(ownerDocument, 'pointerup', this._onDrop); off(ownerDocument, 'touchcancel', this._onDrop); off(document, 'selectstart', this); }, _onDrop: function _onDrop( /**Event*/ evt) { var el = this.el, options = this.options; // Get the index of the dragged element within its parent newIndex = index(dragEl); newDraggableIndex = index(dragEl, options.draggable); pluginEvent('drop', this, { evt: evt }); parentEl = dragEl && dragEl.parentNode; // Get again after plugin event newIndex = index(dragEl); newDraggableIndex = index(dragEl, options.draggable); if (Sortable.eventCanceled) { this._nulling(); return; } awaitingDragStarted = false; isCircumstantialInvert = false; pastFirstInvertThresh = false; clearInterval(this._loopId); clearTimeout(this._dragStartTimer); _cancelNextTick(this.cloneId); _cancelNextTick(this._dragStartId); // Unbind events if (this.nativeDraggable) { off(document, 'drop', this); off(el, 'dragstart', this._onDragStart); } this._offMoveEvents(); this._offUpEvents(); if (Safari) { css(document.body, 'user-select', ''); } css(dragEl, 'transform', ''); if (evt) { if (moved) { evt.cancelable && evt.preventDefault(); !options.dropBubble && evt.stopPropagation(); } ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl); if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') { // Remove clone(s) cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl); } if (dragEl) { if (this.nativeDraggable) { off(dragEl, 'dragend', this); } _disableDraggable(dragEl); dragEl.style['will-change'] = ''; // Remove classes // ghostClass is added in dragStarted if (moved && !awaitingDragStarted) { toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false); } toggleClass(dragEl, this.options.chosenClass, false); // Drag stop event _dispatchEvent({ sortable: this, name: 'unchoose', toEl: parentEl, newIndex: null, newDraggableIndex: null, originalEvent: evt }); if (rootEl !== parentEl) { if (newIndex >= 0) { // Add event _dispatchEvent({ rootEl: parentEl, name: 'add', toEl: parentEl, fromEl: rootEl, originalEvent: evt }); // Remove event _dispatchEvent({ sortable: this, name: 'remove', toEl: parentEl, originalEvent: evt }); // drag from one list and drop into another _dispatchEvent({ rootEl: parentEl, name: 'sort', toEl: parentEl, fromEl: rootEl, originalEvent: evt }); _dispatchEvent({ sortable: this, name: 'sort', toEl: parentEl, originalEvent: evt }); } putSortable && putSortable.save(); } else { if (newIndex !== oldIndex) { if (newIndex >= 0) { // drag & drop within the same list _dispatchEvent({ sortable: this, name: 'update', toEl: parentEl, originalEvent: evt }); _dispatchEvent({ sortable: this, name: 'sort', toEl: parentEl, originalEvent: evt }); } } } if (Sortable.active) { /* jshint eqnull:true */ if (newIndex == null || newIndex === -1) { newIndex = oldIndex; newDraggableIndex = oldDraggableIndex; } _dispatchEvent({ sortable: this, name: 'end', toEl: parentEl, originalEvent: evt }); // Save sorting this.save(); } } } this._nulling(); }, _nulling: function _nulling() { pluginEvent('nulling', this); rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null; savedInputChecked.forEach(function (el) { el.checked = true; }); savedInputChecked.length = lastDx = lastDy = 0; }, handleEvent: function handleEvent( /**Event*/ evt) { switch (evt.type) { case 'drop': case 'dragend': this._onDrop(evt); break; case 'dragenter': case 'dragover': if (dragEl) { this._onDragOver(evt); _globalDragOver(evt); } break; case 'selectstart': evt.preventDefault(); break; } }, /** * Serializes the item into an array of string. * @returns {String[]} */ toArray: function toArray() { var order = [], el, children = this.el.children, i = 0, n = children.length, options = this.options; for (; i < n; i++) { el = children[i]; if (closest(el, options.draggable, this.el, false)) { order.push(el.getAttribute(options.dataIdAttr) || _generateId(el)); } } return order; }, /** * Sorts the elements according to the array. * @param {String[]} order order of the items */ sort: function sort(order) { var items = {}, rootEl = this.el; this.toArray().forEach(function (id, i) { var el = rootEl.children[i]; if (closest(el, this.options.draggable, rootEl, false)) { items[id] = el; } }, this); order.forEach(function (id) { if (items[id]) { rootEl.removeChild(items[id]); rootEl.appendChild(items[id]); } }); }, /** * Save the current sorting */ save: function save() { var store = this.options.store; store && store.set && store.set(this); }, /** * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. * @param {HTMLElement} el * @param {String} [selector] default: `options.draggable` * @returns {HTMLElement|null} */ closest: function closest$1(el, selector) { return closest(el, selector || this.options.draggable, this.el, false); }, /** * Set/get option * @param {string} name * @param {*} [value] * @returns {*} */ option: function option(name, value) { var options = this.options; if (value === void 0) { return options[name]; } else { var modifiedValue = PluginManager.modifyOption(this, name, value); if (typeof modifiedValue !== 'undefined') { options[name] = modifiedValue; } else { options[name] = value; } if (name === 'group') { _prepareGroup(options); } } }, /** * Destroy */ destroy: function destroy() { pluginEvent('destroy', this); var el = this.el; el[expando] = null; off(el, 'mousedown', this._onTapStart); off(el, 'touchstart', this._onTapStart); off(el, 'pointerdown', this._onTapStart); if (this.nativeDraggable) { off(el, 'dragover', this); off(el, 'dragenter', this); } // Remove draggable attributes Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function (el) { el.removeAttribute('draggable'); }); this._onDrop(); this._disableDelayedDragEvents(); sortables.splice(sortables.indexOf(this.el), 1); this.el = el = null; }, _hideClone: function _hideClone() { if (!cloneHidden) { pluginEvent('hideClone', this); if (Sortable.eventCanceled) return; css(cloneEl, 'display', 'none'); if (this.options.removeCloneOnHide && cloneEl.parentNode) { cloneEl.parentNode.removeChild(cloneEl); } cloneHidden = true; } }, _showClone: function _showClone(putSortable) { if (putSortable.lastPutMode !== 'clone') { this._hideClone(); return; } if (cloneHidden) { pluginEvent('showClone', this); if (Sortable.eventCanceled) return; // show clone at dragEl or original position if (rootEl.contains(dragEl) && !this.options.group.revertClone) { rootEl.insertBefore(cloneEl, dragEl); } else if (nextEl) { rootEl.insertBefore(cloneEl, nextEl); } else { rootEl.appendChild(cloneEl); } if (this.options.group.revertClone) { this.animate(dragEl, cloneEl); } css(cloneEl, 'display', ''); cloneHidden = false; } } }; function _globalDragOver( /**Event*/ evt) { if (evt.dataTransfer) { evt.dataTransfer.dropEffect = 'move'; } evt.cancelable && evt.preventDefault(); } function _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) { var evt, sortable = fromEl[expando], onMoveFn = sortable.options.onMove, retVal; // Support for new CustomEvent feature if (window.CustomEvent && !IE11OrLess && !Edge) { evt = new CustomEvent('move', { bubbles: true, cancelable: true }); } else { evt = document.createEvent('Event'); evt.initEvent('move', true, true); } evt.to = toEl; evt.from = fromEl; evt.dragged = dragEl; evt.draggedRect = dragRect; evt.related = targetEl || toEl; evt.relatedRect = targetRect || getRect(toEl); evt.willInsertAfter = willInsertAfter; evt.originalEvent = originalEvent; fromEl.dispatchEvent(evt); if (onMoveFn) { retVal = onMoveFn.call(sortable, evt, originalEvent); } return retVal; } function _disableDraggable(el) { el.draggable = false; } function _unsilent() { _silent = false; } function _ghostIsLast(evt, vertical, sortable) { var rect = getRect(lastChild(sortable.el, sortable.options.draggable)); var spacer = 10; return vertical ? evt.clientX > rect.right + spacer || evt.clientX <= rect.right && evt.clientY > rect.bottom && evt.clientX >= rect.left : evt.clientX > rect.right && evt.clientY > rect.top || evt.clientX <= rect.right && evt.clientY > rect.bottom + spacer; } function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) { var mouseOnAxis = vertical ? evt.clientY : evt.clientX, targetLength = vertical ? targetRect.height : targetRect.width, targetS1 = vertical ? targetRect.top : targetRect.left, targetS2 = vertical ? targetRect.bottom : targetRect.right, invert = false; if (!invertSwap) { // Never invert or create dragEl shadow when target movemenet causes mouse to move past the end of regular swapThreshold if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) { // multiplied only by swapThreshold because mouse will already be inside target by (1 - threshold) * targetLength / 2 // check if past first invert threshold on side opposite of lastDirection if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) { // past first invert threshold, do not restrict inverted threshold to dragEl shadow pastFirstInvertThresh = true; } if (!pastFirstInvertThresh) { // dragEl shadow (target move distance shadow) if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance // over dragEl shadow : mouseOnAxis > targetS2 - targetMoveDistance) { return -lastDirection; } } else { invert = true; } } else { // Regular if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) { return _getInsertDirection(target); } } } invert = invert || invertSwap; if (invert) { // Invert of regular if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) { return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1; } } return 0; } /** * Gets the direction dragEl must be swapped relative to target in order to make it * seem that dragEl has been "inserted" into that element's position * @param {HTMLElement} target The target whose position dragEl is being inserted at * @return {Number} Direction dragEl must be swapped */ function _getInsertDirection(target) { if (index(dragEl) < index(target)) { return 1; } else { return -1; } } /** * Generate id * @param {HTMLElement} el * @returns {String} * @private */ function _generateId(el) { var str = el.tagName + el.className + el.src + el.href + el.textContent, i = str.length, sum = 0; while (i--) { sum += str.charCodeAt(i); } return sum.toString(36); } function _saveInputCheckedState(root) { savedInputChecked.length = 0; var inputs = root.getElementsByTagName('input'); var idx = inputs.length; while (idx--) { var el = inputs[idx]; el.checked && savedInputChecked.push(el); } } function _nextTick(fn) { return setTimeout(fn, 0); } function _cancelNextTick(id) { return clearTimeout(id); } // Fixed #973: if (documentExists) { on(document, 'touchmove', function (evt) { if ((Sortable.active || awaitingDragStarted) && evt.cancelable) { evt.preventDefault(); } }); } // Export utils Sortable.utils = { on: on, off: off, css: css, find: find, is: function is(el, selector) { return !!closest(el, selector, el, false); }, extend: extend, throttle: throttle, closest: closest, toggleClass: toggleClass, clone: clone, index: index, nextTick: _nextTick, cancelNextTick: _cancelNextTick, detectDirection: _detectDirection, getChild: getChild }; /** * Get the Sortable instance of an element * @param {HTMLElement} element The element * @return {Sortable|undefined} The instance of Sortable */ Sortable.get = function (element) { return element[expando]; }; /** * Mount a plugin to Sortable * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted */ Sortable.mount = function () { for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) { plugins[_key] = arguments[_key]; } if (plugins[0].constructor === Array) plugins = plugins[0]; plugins.forEach(function (plugin) { if (!plugin.prototype || !plugin.prototype.constructor) { throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(plugin)); } if (plugin.utils) Sortable.utils = _objectSpread({}, Sortable.utils, plugin.utils); PluginManager.mount(plugin); }); }; /** * Create sortable instance * @param {HTMLElement} el * @param {Object} [options] */ Sortable.create = function (el, options) { return new Sortable(el, options); }; // Export Sortable.version = version; var autoScrolls = [], scrollEl, scrollRootEl, scrolling = false, lastAutoScrollX, lastAutoScrollY, touchEvt$1, pointerElemChangedInterval; function AutoScrollPlugin() { function AutoScroll() { this.defaults = { scroll: true, scrollSensitivity: 30, scrollSpeed: 10, bubbleScroll: true }; // Bind all private methods for (var fn in this) { if (fn.charAt(0) === '_' && typeof this[fn] === 'function') { this[fn] = this[fn].bind(this); } } } AutoScroll.prototype = { dragStarted: function dragStarted(_ref) { var originalEvent = _ref.originalEvent; if (this.sortable.nativeDraggable) { on(document, 'dragover', this._handleAutoScroll); } else { if (this.options.supportPointer) { on(document, 'pointermove', this._handleFallbackAutoScroll); } else if (originalEvent.touches) { on(document, 'touchmove', this._handleFallbackAutoScroll); } else { on(document, 'mousemove', this._handleFallbackAutoScroll); } } }, dragOverCompleted: function dragOverCompleted(_ref2) { var originalEvent = _ref2.originalEvent; // For when bubbling is canceled and using fallback (fallback 'touchmove' always reached) if (!this.options.dragOverBubble && !originalEvent.rootEl) { this._handleAutoScroll(originalEvent); } }, drop: function drop() { if (this.sortable.nativeDraggable) { off(document, 'dragover', this._handleAutoScroll); } else { off(document, 'pointermove', this._handleFallbackAutoScroll); off(document, 'touchmove', this._handleFallbackAutoScroll); off(document, 'mousemove', this._handleFallbackAutoScroll); } clearPointerElemChangedInterval(); clearAutoScrolls(); cancelThrottle(); }, nulling: function nulling() { touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null; autoScrolls.length = 0; }, _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) { this._handleAutoScroll(evt, true); }, _handleAutoScroll: function _handleAutoScroll(evt, fallback) { var _this = this; var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, elem = document.elementFromPoint(x, y); touchEvt$1 = evt; // IE does not seem to have native autoscroll, // Edge's autoscroll seems too conditional, // MACOS Safari does not have autoscroll, // Firefox and Chrome are good if (fallback || Edge || IE11OrLess || Safari) { autoScroll(evt, this.options, elem, fallback); // Listener for pointer element change var ogElemScroller = getParentAutoScrollElement(elem, true); if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) { pointerElemChangedInterval && clearPointerElemChangedInterval(); // Detect for pointer elem change, emulating native DnD behaviour pointerElemChangedInterval = setInterval(function () { var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true); if (newElem !== ogElemScroller) { ogElemScroller = newElem; clearAutoScrolls(); } autoScroll(evt, _this.options, newElem, fallback); }, 10); lastAutoScrollX = x; lastAutoScrollY = y; } } else { // if DnD is enabled (and browser has good autoscrolling), first autoscroll will already scroll, so get parent autoscroll of first autoscroll if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) { clearAutoScrolls(); return; } autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false); } } }; return _extends(AutoScroll, { pluginName: 'scroll', initializeByDefault: true }); } function clearAutoScrolls() { autoScrolls.forEach(function (autoScroll) { clearInterval(autoScroll.pid); }); autoScrolls = []; } function clearPointerElemChangedInterval() { clearInterval(pointerElemChangedInterval); } var autoScroll = throttle(function (evt, options, rootEl, isFallback) { // Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521 if (!options.scroll) return; var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, sens = options.scrollSensitivity, speed = options.scrollSpeed, winScroller = getWindowScrollingElement(); var scrollThisInstance = false, scrollCustomFn; // New scroll root, set scrollEl if (scrollRootEl !== rootEl) { scrollRootEl = rootEl; clearAutoScrolls(); scrollEl = options.scroll; scrollCustomFn = options.scrollFn; if (scrollEl === true) { scrollEl = getParentAutoScrollElement(rootEl, true); } } var layersOut = 0; var currentParent = scrollEl; do { var el = currentParent, rect = getRect(el), top = rect.top, bottom = rect.bottom, left = rect.left, right = rect.right, width = rect.width, height = rect.height, canScrollX = void 0, canScrollY = void 0, scrollWidth = el.scrollWidth, scrollHeight = el.scrollHeight, elCSS = css(el), scrollPosX = el.scrollLeft, scrollPosY = el.scrollTop; if (el === winScroller) { canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll' || elCSS.overflowX === 'visible'); canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll' || elCSS.overflowY === 'visible'); } else { canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll'); canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll'); } var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX); var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY); if (!autoScrolls[layersOut]) { for (var i = 0; i <= layersOut; i++) { if (!autoScrolls[i]) { autoScrolls[i] = {}; } } } if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) { autoScrolls[layersOut].el = el; autoScrolls[layersOut].vx = vx; autoScrolls[layersOut].vy = vy; clearInterval(autoScrolls[layersOut].pid); if (vx != 0 || vy != 0) { scrollThisInstance = true; /* jshint loopfunc:true */ autoScrolls[layersOut].pid = setInterval(function () { // emulate drag over during autoscroll (fallback), emulating native DnD behaviour if (isFallback && this.layer === 0) { Sortable.active._onTouchMove(touchEvt$1); // To move ghost if it is positioned absolutely } var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0; var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0; if (typeof scrollCustomFn === 'function') { if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== 'continue') { return; } } scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY); }.bind({ layer: layersOut }), 24); } } layersOut++; } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false))); scrolling = scrollThisInstance; // in case another function catches scrolling as false in between when it is not }, 30); var drop = function drop(_ref) { var originalEvent = _ref.originalEvent, putSortable = _ref.putSortable, dragEl = _ref.dragEl, activeSortable = _ref.activeSortable, dispatchSortableEvent = _ref.dispatchSortableEvent, hideGhostForTarget = _ref.hideGhostForTarget, unhideGhostForTarget = _ref.unhideGhostForTarget; if (!originalEvent) return; var toSortable = putSortable || activeSortable; hideGhostForTarget(); var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent; var target = document.elementFromPoint(touch.clientX, touch.clientY); unhideGhostForTarget(); if (toSortable && !toSortable.el.contains(target)) { dispatchSortableEvent('spill'); this.onSpill({ dragEl: dragEl, putSortable: putSortable }); } }; function Revert() {} Revert.prototype = { startIndex: null, dragStart: function dragStart(_ref2) { var oldDraggableIndex = _ref2.oldDraggableIndex; this.startIndex = oldDraggableIndex; }, onSpill: function onSpill(_ref3) { var dragEl = _ref3.dragEl, putSortable = _ref3.putSortable; this.sortable.captureAnimationState(); if (putSortable) { putSortable.captureAnimationState(); } var nextSibling = getChild(this.sortable.el, this.startIndex, this.options); if (nextSibling) { this.sortable.el.insertBefore(dragEl, nextSibling); } else { this.sortable.el.appendChild(dragEl); } this.sortable.animateAll(); if (putSortable) { putSortable.animateAll(); } }, drop: drop }; _extends(Revert, { pluginName: 'revertOnSpill' }); function Remove() {} Remove.prototype = { onSpill: function onSpill(_ref4) { var dragEl = _ref4.dragEl, putSortable = _ref4.putSortable; var parentSortable = putSortable || this.sortable; parentSortable.captureAnimationState(); dragEl.parentNode && dragEl.parentNode.removeChild(dragEl); parentSortable.animateAll(); }, drop: drop }; _extends(Remove, { pluginName: 'removeOnSpill' }); var lastSwapEl; function SwapPlugin() { function Swap() { this.defaults = { swapClass: 'sortable-swap-highlight' }; } Swap.prototype = { dragStart: function dragStart(_ref) { var dragEl = _ref.dragEl; lastSwapEl = dragEl; }, dragOverValid: function dragOverValid(_ref2) { var completed = _ref2.completed, target = _ref2.target, onMove = _ref2.onMove, activeSortable = _ref2.activeSortable, changed = _ref2.changed, cancel = _ref2.cancel; if (!activeSortable.options.swap) return; var el = this.sortable.el, options = this.options; if (target && target !== el) { var prevSwapEl = lastSwapEl; if (onMove(target) !== false) { toggleClass(target, options.swapClass, true); lastSwapEl = target; } else { lastSwapEl = null; } if (prevSwapEl && prevSwapEl !== lastSwapEl) { toggleClass(prevSwapEl, options.swapClass, false); } } changed(); completed(true); cancel(); }, drop: function drop(_ref3) { var activeSortable = _ref3.activeSortable, putSortable = _ref3.putSortable, dragEl = _ref3.dragEl; var toSortable = putSortable || this.sortable; var options = this.options; lastSwapEl && toggleClass(lastSwapEl, options.swapClass, false); if (lastSwapEl && (options.swap || putSortable && putSortable.options.swap)) { if (dragEl !== lastSwapEl) { toSortable.captureAnimationState(); if (toSortable !== activeSortable) activeSortable.captureAnimationState(); swapNodes(dragEl, lastSwapEl); toSortable.animateAll(); if (toSortable !== activeSortable) activeSortable.animateAll(); } } }, nulling: function nulling() { lastSwapEl = null; } }; return _extends(Swap, { pluginName: 'swap', eventProperties: function eventProperties() { return { swapItem: lastSwapEl }; } }); } function swapNodes(n1, n2) { var p1 = n1.parentNode, p2 = n2.parentNode, i1, i2; if (!p1 || !p2 || p1.isEqualNode(n2) || p2.isEqualNode(n1)) return; i1 = index(n1); i2 = index(n2); if (p1.isEqualNode(p2) && i1 < i2) { i2++; } p1.insertBefore(n2, p1.children[i1]); p2.insertBefore(n1, p2.children[i2]); } var multiDragElements = [], multiDragClones = [], lastMultiDragSelect, // for selection with modifier key down (SHIFT) multiDragSortable, initialFolding = false, // Initial multi-drag fold when drag started folding = false, // Folding any other time dragStarted = false, dragEl$1, clonesFromRect, clonesHidden; function MultiDragPlugin() { function MultiDrag(sortable) { // Bind all private methods for (var fn in this) { if (fn.charAt(0) === '_' && typeof this[fn] === 'function') { this[fn] = this[fn].bind(this); } } if (sortable.options.supportPointer) { on(document, 'pointerup', this._deselectMultiDrag); } else { on(document, 'mouseup', this._deselectMultiDrag); on(document, 'touchend', this._deselectMultiDrag); } on(document, 'keydown', this._checkKeyDown); on(document, 'keyup', this._checkKeyUp); this.defaults = { selectedClass: 'sortable-selected', multiDragKey: null, setData: function setData(dataTransfer, dragEl) { var data = ''; if (multiDragElements.length && multiDragSortable === sortable) { multiDragElements.forEach(function (multiDragElement, i) { data += (!i ? '' : ', ') + multiDragElement.textContent; }); } else { data = dragEl.textContent; } dataTransfer.setData('Text', data); } }; } MultiDrag.prototype = { multiDragKeyDown: false, isMultiDrag: false, delayStartGlobal: function delayStartGlobal(_ref) { var dragged = _ref.dragEl; dragEl$1 = dragged; }, delayEnded: function delayEnded() { this.isMultiDrag = ~multiDragElements.indexOf(dragEl$1); }, setupClone: function setupClone(_ref2) { var sortable = _ref2.sortable, cancel = _ref2.cancel; if (!this.isMultiDrag) return; for (var i = 0; i < multiDragElements.length; i++) { multiDragClones.push(clone(multiDragElements[i])); multiDragClones[i].sortableIndex = multiDragElements[i].sortableIndex; multiDragClones[i].draggable = false; multiDragClones[i].style['will-change'] = ''; toggleClass(multiDragClones[i], this.options.selectedClass, false); multiDragElements[i] === dragEl$1 && toggleClass(multiDragClones[i], this.options.chosenClass, false); } sortable._hideClone(); cancel(); }, clone: function clone(_ref3) { var sortable = _ref3.sortable, rootEl = _ref3.rootEl, dispatchSortableEvent = _ref3.dispatchSortableEvent, cancel = _ref3.cancel; if (!this.isMultiDrag) return; if (!this.options.removeCloneOnHide) { if (multiDragElements.length && multiDragSortable === sortable) { insertMultiDragClones(true, rootEl); dispatchSortableEvent('clone'); cancel(); } } }, showClone: function showClone(_ref4) { var cloneNowShown = _ref4.cloneNowShown, rootEl = _ref4.rootEl, cancel = _ref4.cancel; if (!this.isMultiDrag) return; insertMultiDragClones(false, rootEl); multiDragClones.forEach(function (clone) { css(clone, 'display', ''); }); cloneNowShown(); clonesHidden = false; cancel(); }, hideClone: function hideClone(_ref5) { var _this = this; var sortable = _ref5.sortable, cloneNowHidden = _ref5.cloneNowHidden, cancel = _ref5.cancel; if (!this.isMultiDrag) return; multiDragClones.forEach(function (clone) { css(clone, 'display', 'none'); if (_this.options.removeCloneOnHide && clone.parentNode) { clone.parentNode.removeChild(clone); } }); cloneNowHidden(); clonesHidden = true; cancel(); }, dragStartGlobal: function dragStartGlobal(_ref6) { var sortable = _ref6.sortable; if (!this.isMultiDrag && multiDragSortable) { multiDragSortable.multiDrag._deselectMultiDrag(); } multiDragElements.forEach(function (multiDragElement) { multiDragElement.sortableIndex = index(multiDragElement); }); // Sort multi-drag elements multiDragElements = multiDragElements.sort(function (a, b) { return a.sortableIndex - b.sortableIndex; }); dragStarted = true; }, dragStarted: function dragStarted(_ref7) { var _this2 = this; var sortable = _ref7.sortable; if (!this.isMultiDrag) return; if (this.options.sort) { // Capture rects, // hide multi drag elements (by positioning them absolute), // set multi drag elements rects to dragRect, // show multi drag elements, // animate to rects, // unset rects & remove from DOM sortable.captureAnimationState(); if (this.options.animation) { multiDragElements.forEach(function (multiDragElement) { if (multiDragElement === dragEl$1) return; css(multiDragElement, 'position', 'absolute'); }); var dragRect = getRect(dragEl$1, false, true, true); multiDragElements.forEach(function (multiDragElement) { if (multiDragElement === dragEl$1) return; setRect(multiDragElement, dragRect); }); folding = true; initialFolding = true; } } sortable.animateAll(function () { folding = false; initialFolding = false; if (_this2.options.animation) { multiDragElements.forEach(function (multiDragElement) { unsetRect(multiDragElement); }); } // Remove all auxiliary multidrag items from el, if sorting enabled if (_this2.options.sort) { removeMultiDragElements(); } }); }, dragOver: function dragOver(_ref8) { var target = _ref8.target, completed = _ref8.completed, cancel = _ref8.cancel; if (folding && ~multiDragElements.indexOf(target)) { completed(false); cancel(); } }, revert: function revert(_ref9) { var fromSortable = _ref9.fromSortable, rootEl = _ref9.rootEl, sortable = _ref9.sortable, dragRect = _ref9.dragRect; if (multiDragElements.length > 1) { // Setup unfold animation multiDragElements.forEach(function (multiDragElement) { sortable.addAnimationState({ target: multiDragElement, rect: folding ? getRect(multiDragElement) : dragRect }); unsetRect(multiDragElement); multiDragElement.fromRect = dragRect; fromSortable.removeAnimationState(multiDragElement); }); folding = false; insertMultiDragElements(!this.options.removeCloneOnHide, rootEl); } }, dragOverCompleted: function dragOverCompleted(_ref10) { var sortable = _ref10.sortable, isOwner = _ref10.isOwner, insertion = _ref10.insertion, activeSortable = _ref10.activeSortable, parentEl = _ref10.parentEl, putSortable = _ref10.putSortable; var options = this.options; if (insertion) { // Clones must be hidden before folding animation to capture dragRectAbsolute properly if (isOwner) { activeSortable._hideClone(); } initialFolding = false; // If leaving sort:false root, or already folding - Fold to new location if (options.animation && multiDragElements.length > 1 && (folding || !isOwner && !activeSortable.options.sort && !putSortable)) { // Fold: Set all multi drag elements's rects to dragEl's rect when multi-drag elements are invisible var dragRectAbsolute = getRect(dragEl$1, false, true, true); multiDragElements.forEach(function (multiDragElement) { if (multiDragElement === dragEl$1) return; setRect(multiDragElement, dragRectAbsolute); // Move element(s) to end of parentEl so that it does not interfere with multi-drag clones insertion if they are inserted // while folding, and so that we can capture them again because old sortable will no longer be fromSortable parentEl.appendChild(multiDragElement); }); folding = true; } // Clones must be shown (and check to remove multi drags) after folding when interfering multiDragElements are moved out if (!isOwner) { // Only remove if not folding (folding will remove them anyways) if (!folding) { removeMultiDragElements(); } if (multiDragElements.length > 1) { var clonesHiddenBefore = clonesHidden; activeSortable._showClone(sortable); // Unfold animation for clones if showing from hidden if (activeSortable.options.animation && !clonesHidden && clonesHiddenBefore) { multiDragClones.forEach(function (clone) { activeSortable.addAnimationState({ target: clone, rect: clonesFromRect }); clone.fromRect = clonesFromRect; clone.thisAnimationDuration = null; }); } } else { activeSortable._showClone(sortable); } } } }, dragOverAnimationCapture: function dragOverAnimationCapture(_ref11) { var dragRect = _ref11.dragRect, isOwner = _ref11.isOwner, activeSortable = _ref11.activeSortable; multiDragElements.forEach(function (multiDragElement) { multiDragElement.thisAnimationDuration = null; }); if (activeSortable.options.animation && !isOwner && activeSortable.multiDrag.isMultiDrag) { clonesFromRect = _extends({}, dragRect); var dragMatrix = matrix(dragEl$1, true); clonesFromRect.top -= dragMatrix.f; clonesFromRect.left -= dragMatrix.e; } }, dragOverAnimationComplete: function dragOverAnimationComplete() { if (folding) { folding = false; removeMultiDragElements(); } }, drop: function drop(_ref12) { var evt = _ref12.originalEvent, rootEl = _ref12.rootEl, parentEl = _ref12.parentEl, sortable = _ref12.sortable, dispatchSortableEvent = _ref12.dispatchSortableEvent, oldIndex = _ref12.oldIndex, putSortable = _ref12.putSortable; var toSortable = putSortable || this.sortable; if (!evt) return; var options = this.options, children = parentEl.children; // Multi-drag selection if (!dragStarted) { if (options.multiDragKey && !this.multiDragKeyDown) { this._deselectMultiDrag(); } toggleClass(dragEl$1, options.selectedClass, !~multiDragElements.indexOf(dragEl$1)); if (!~multiDragElements.indexOf(dragEl$1)) { multiDragElements.push(dragEl$1); dispatchEvent({ sortable: sortable, rootEl: rootEl, name: 'select', targetEl: dragEl$1, originalEvt: evt }); // Modifier activated, select from last to dragEl if (evt.shiftKey && lastMultiDragSelect && sortable.el.contains(lastMultiDragSelect)) { var lastIndex = index(lastMultiDragSelect), currentIndex = index(dragEl$1); if (~lastIndex && ~currentIndex && lastIndex !== currentIndex) { // Must include lastMultiDragSelect (select it), in case modified selection from no selection // (but previous selection existed) var n, i; if (currentIndex > lastIndex) { i = lastIndex; n = currentIndex; } else { i = currentIndex; n = lastIndex + 1; } for (; i < n; i++) { if (~multiDragElements.indexOf(children[i])) continue; toggleClass(children[i], options.selectedClass, true); multiDragElements.push(children[i]); dispatchEvent({ sortable: sortable, rootEl: rootEl, name: 'select', targetEl: children[i], originalEvt: evt }); } } } else { lastMultiDragSelect = dragEl$1; } multiDragSortable = toSortable; } else { multiDragElements.splice(multiDragElements.indexOf(dragEl$1), 1); lastMultiDragSelect = null; dispatchEvent({ sortable: sortable, rootEl: rootEl, name: 'deselect', targetEl: dragEl$1, originalEvt: evt }); } } // Multi-drag drop if (dragStarted && this.isMultiDrag) { // Do not "unfold" after around dragEl if reverted if ((parentEl[expando].options.sort || parentEl !== rootEl) && multiDragElements.length > 1) { var dragRect = getRect(dragEl$1), multiDragIndex = index(dragEl$1, ':not(.' + this.options.selectedClass + ')'); if (!initialFolding && options.animation) dragEl$1.thisAnimationDuration = null; toSortable.captureAnimationState(); if (!initialFolding) { if (options.animation) { dragEl$1.fromRect = dragRect; multiDragElements.forEach(function (multiDragElement) { multiDragElement.thisAnimationDuration = null; if (multiDragElement !== dragEl$1) { var rect = folding ? getRect(multiDragElement) : dragRect; multiDragElement.fromRect = rect; // Prepare unfold animation toSortable.addAnimationState({ target: multiDragElement, rect: rect }); } }); } // Multi drag elements are not necessarily removed from the DOM on drop, so to reinsert // properly they must all be removed removeMultiDragElements(); multiDragElements.forEach(function (multiDragElement) { if (children[multiDragIndex]) { parentEl.insertBefore(multiDragElement, children[multiDragIndex]); } else { parentEl.appendChild(multiDragElement); } multiDragIndex++; }); // If initial folding is done, the elements may have changed position because they are now // unfolding around dragEl, even though dragEl may not have his index changed, so update event // must be fired here as Sortable will not. if (oldIndex === index(dragEl$1)) { var update = false; multiDragElements.forEach(function (multiDragElement) { if (multiDragElement.sortableIndex !== index(multiDragElement)) { update = true; return; } }); if (update) { dispatchSortableEvent('update'); } } } // Must be done after capturing individual rects (scroll bar) multiDragElements.forEach(function (multiDragElement) { unsetRect(multiDragElement); }); toSortable.animateAll(); } multiDragSortable = toSortable; } // Remove clones if necessary if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') { multiDragClones.forEach(function (clone) { clone.parentNode && clone.parentNode.removeChild(clone); }); } }, nullingGlobal: function nullingGlobal() { this.isMultiDrag = dragStarted = false; multiDragClones.length = 0; }, destroyGlobal: function destroyGlobal() { this._deselectMultiDrag(); off(document, 'pointerup', this._deselectMultiDrag); off(document, 'mouseup', this._deselectMultiDrag); off(document, 'touchend', this._deselectMultiDrag); off(document, 'keydown', this._checkKeyDown); off(document, 'keyup', this._checkKeyUp); }, _deselectMultiDrag: function _deselectMultiDrag(evt) { if (typeof dragStarted !== "undefined" && dragStarted) return; // Only deselect if selection is in this sortable if (multiDragSortable !== this.sortable) return; // Only deselect if target is not item in this sortable if (evt && closest(evt.target, this.options.draggable, this.sortable.el, false)) return; // Only deselect if left click if (evt && evt.button !== 0) return; while (multiDragElements.length) { var el = multiDragElements[0]; toggleClass(el, this.options.selectedClass, false); multiDragElements.shift(); dispatchEvent({ sortable: this.sortable, rootEl: this.sortable.el, name: 'deselect', targetEl: el, originalEvt: evt }); } }, _checkKeyDown: function _checkKeyDown(evt) { if (evt.key === this.options.multiDragKey) { this.multiDragKeyDown = true; } }, _checkKeyUp: function _checkKeyUp(evt) { if (evt.key === this.options.multiDragKey) { this.multiDragKeyDown = false; } } }; return _extends(MultiDrag, { // Static methods & properties pluginName: 'multiDrag', utils: { /** * Selects the provided multi-drag item * @param {HTMLElement} el The element to be selected */ select: function select(el) { var sortable = el.parentNode[expando]; if (!sortable || !sortable.options.multiDrag || ~multiDragElements.indexOf(el)) return; if (multiDragSortable && multiDragSortable !== sortable) { multiDragSortable.multiDrag._deselectMultiDrag(); multiDragSortable = sortable; } toggleClass(el, sortable.options.selectedClass, true); multiDragElements.push(el); }, /** * Deselects the provided multi-drag item * @param {HTMLElement} el The element to be deselected */ deselect: function deselect(el) { var sortable = el.parentNode[expando], index = multiDragElements.indexOf(el); if (!sortable || !sortable.options.multiDrag || !~index) return; toggleClass(el, sortable.options.selectedClass, false); multiDragElements.splice(index, 1); } }, eventProperties: function eventProperties() { var _this3 = this; var oldIndicies = [], newIndicies = []; multiDragElements.forEach(function (multiDragElement) { oldIndicies.push({ multiDragElement: multiDragElement, index: multiDragElement.sortableIndex }); // multiDragElements will already be sorted if folding var newIndex; if (folding && multiDragElement !== dragEl$1) { newIndex = -1; } else if (folding) { newIndex = index(multiDragElement, ':not(.' + _this3.options.selectedClass + ')'); } else { newIndex = index(multiDragElement); } newIndicies.push({ multiDragElement: multiDragElement, index: newIndex }); }); return { items: _toConsumableArray(multiDragElements), clones: [].concat(multiDragClones), oldIndicies: oldIndicies, newIndicies: newIndicies }; }, optionListeners: { multiDragKey: function multiDragKey(key) { key = key.toLowerCase(); if (key === 'ctrl') { key = 'Control'; } else if (key.length > 1) { key = key.charAt(0).toUpperCase() + key.substr(1); } return key; } } }); } function insertMultiDragElements(clonesInserted, rootEl) { multiDragElements.forEach(function (multiDragElement, i) { var target = rootEl.children[multiDragElement.sortableIndex + (clonesInserted ? Number(i) : 0)]; if (target) { rootEl.insertBefore(multiDragElement, target); } else { rootEl.appendChild(multiDragElement); } }); } /** * Insert multi-drag clones * @param {[Boolean]} elementsInserted Whether the multi-drag elements are inserted * @param {HTMLElement} rootEl */ function insertMultiDragClones(elementsInserted, rootEl) { multiDragClones.forEach(function (clone, i) { var target = rootEl.children[clone.sortableIndex + (elementsInserted ? Number(i) : 0)]; if (target) { rootEl.insertBefore(clone, target); } else { rootEl.appendChild(clone); } }); } function removeMultiDragElements() { multiDragElements.forEach(function (multiDragElement) { if (multiDragElement === dragEl$1) return; multiDragElement.parentNode && multiDragElement.parentNode.removeChild(multiDragElement); }); } Sortable.mount(new AutoScrollPlugin()); Sortable.mount(Remove, Revert); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Sortable); /***/ }), /***/ "./node_modules/vue-form-generator/dist/vfg.js": /*!*****************************************************!*\ !*** ./node_modules/vue-form-generator/dist/vfg.js ***! \*****************************************************/ /***/ (function(module) { /** * vue-form-generator v2.3.4 * https://github.com/vue-generators/vue-form-generator/ * Released under the MIT License. */ !function(t,e){ true?module.exports=e():0}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=113)}([function(t,e,n){"use strict";function r(t,e,n,r,i,o,u,a){t=t||{};var c=typeof t.default;"object"!==c&&"function"!==c||(t=t.default);var s="function"==typeof t?t.options:t;e&&(s.render=e,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),o&&(s._scopeId=o);var l;if(u?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},s._ssrRegister=l):i&&(l=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(s.functional){s._injectStyles=l;var f=s.render;s.render=function(t,e){return l.call(e),f(t,e)}}else{var d=s.beforeCreate;s.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:s}}e.a=r},function(t,e,n){"use strict";function r(t){return m()(t)?null!=O.default[t]?O.default[t]:(console.warn("'"+t+"' is not a validator function!"),null):t}function i(t,e,n){var r=w()(n.context,"schema.attributes",{}),i=e.value||"input";m()(i)&&(r=w()(r,i)||r),b()(r,function(e,n){t.setAttribute(n,e)})}Object.defineProperty(e,"__esModule",{value:!0});var o=n(50),u=n.n(o),a=n(199),c=n.n(a),s=n(207),l=n.n(s),f=n(83),d=n.n(f),h=n(2),p=n.n(h),v=n(45),m=n.n(v),g=n(5),_=n.n(g),y=n(23),b=n.n(y),x=n(8),w=n.n(x),O=n(85),j=n(28);e.default={props:["vfg","model","schema","formOptions","disabled"],data:function(){return{errors:[],debouncedValidateFunc:null,debouncedFormatFunc:null}},directives:{attributes:{bind:i,updated:i,componentUpdated:i}},computed:{value:{cache:!1,get:function(){var t=void 0;return t=_()(w()(this.schema,"get"))?this.schema.get(this.model):w()(this.model,this.schema.model),this.formatValueToField(t)},set:function(t){var e=this.value;t=this.formatValueToModel(t),_()(t)?t(t,e):this.updateModelValue(t,e)}}},methods:{validate:function(t){var e=this;this.clearValidationErrors();var n=w()(this.formOptions,"validateAsync",!1),i=[];if(this.schema.validator&&!0!==this.schema.readonly&&!0!==this.disabled){var o=[];p()(this.schema.validator)?b()(this.schema.validator,function(t){o.push(r(t).bind(e))}):o.push(r(this.schema.validator).bind(this)),b()(o,function(t){if(n)i.push(t(e.value,e.schema,e.model));else{var r=t(e.value,e.schema,e.model);r&&_()(r.then)?r.then(function(t){t&&(e.errors=e.errors.concat(t));var n=0===e.errors.length;e.$emit("validated",n,e.errors,e)}):r&&(i=i.concat(r))}})}var a=function(n){var r=[];b()(c()(n),function(t){p()(t)&&t.length>0?r=r.concat(t):m()(t)&&r.push(t)}),_()(e.schema.onValidated)&&e.schema.onValidated.call(e,e.model,r,e.schema);var i=0===r.length;return t||e.$emit("validated",i,r,e),e.errors=r,r};return n?u.a.all(i).then(a):a(i)},debouncedValidate:function(){_()(this.debouncedValidateFunc)||(this.debouncedValidateFunc=d()(this.validate.bind(this),w()(this.schema,"validateDebounceTime",w()(this.formOptions,"validateDebounceTime",500)))),this.debouncedValidateFunc()},updateModelValue:function(t,e){var n=!1;_()(this.schema.set)?(this.schema.set(this.model,t),n=!0):this.schema.model&&(this.setModelValueByPath(this.schema.model,t),n=!0),n&&(this.$emit("model-updated",t,this.schema.model),_()(this.schema.onChanged)&&this.schema.onChanged.call(this,this.model,t,e,this.schema),!0===w()(this.formOptions,"validateAfterChanged",!1)&&(w()(this.schema,"validateDebounceTime",w()(this.formOptions,"validateDebounceTime",0))>0?this.debouncedValidate():this.validate()))},clearValidationErrors:function(){this.errors.splice(0)},setModelValueByPath:function(t,e){var n=t.replace(/\[(\w+)\]/g,".$1");n=n.replace(/^\./,"");for(var r=this.model,i=n.split("."),o=0,u=i.length;o<u;){var a=i[o];if(!(o<u-1))return void this.$root.$set(r,a,e);void 0!==r[a]?r=r[a]:(this.$root.$set(r,a,{}),r=r[a]),++o}},getFieldID:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=w()(this.formOptions,"fieldIdPrefix","");return Object(j.slugifyFormID)(t,n)+(e?"-"+l()():"")},getFieldClasses:function(){return w()(this.schema,"fieldClasses",[])},formatValueToField:function(t){return t},formatValueToModel:function(t){return t}}}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(56)("wks"),i=n(57),o=n(6).Symbol,u="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=r},function(t,e,n){function r(t){if(!o(t))return!1;var e=i(t);return e==a||e==c||e==u||e==s}var i=n(43),o=n(7),u="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",s="[object Proxy]";t.exports=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){function r(t,e,n){var r=null==t?void 0:i(t,e);return void 0===r?n:r}var i=n(151);t.exports=r},function(t,e,n){var r=n(17);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(216),i=n(46),o=n(221),u=n(75),a=Object.prototype,c=a.hasOwnProperty,s=r(function(t,e){t=Object(t);var n=-1,r=e.length,s=r>2?e[2]:void 0;for(s&&o(e[0],e[1],s)&&(r=1);++n<r;)for(var l=e[n],f=u(l),d=-1,h=f.length;++d<h;){var p=f[d],v=t[p];(void 0===v||i(v,a[p])&&!c.call(t,p))&&(t[p]=l[p])}return t});t.exports=s},function(t,e,n){var r=n(6),i=n(3),o=n(18),u=n(12),a=function(t,e,n){var c,s,l,f=t&a.F,d=t&a.G,h=t&a.S,p=t&a.P,v=t&a.B,m=t&a.W,g=d?i:i[e]||(i[e]={}),_=g.prototype,y=d?r:h?r[e]:(r[e]||{}).prototype;d&&(n=e);for(c in n)(s=!f&&y&&void 0!==y[c])&&c in g||(l=s?y[c]:n[c],g[c]=d&&"function"!=typeof y[c]?n[c]:v&&s?o(l,r):m&&y[c]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):p&&"function"==typeof l?o(Function.call,l):l,p&&((g.virtual||(g.virtual={}))[c]=l,t&a.R&&_&&!_[c]&&u(_,c,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var r=n(16),i=n(53);t.exports=n(13)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports=!n(20)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports={}},function(t,e){function n(t){return null==t}t.exports=n},function(t,e,n){var r=n(9),i=n(119),o=n(120),u=Object.defineProperty;e.f=n(13)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(19);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){function r(t,e){return(a(t)?i:o)(t,u(e))}var i=n(65),o=n(144),u=n(150),a=n(2);t.exports=r},function(t,e,n){var r=n(25),i=r(Object.keys,Object);t.exports=i},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e){function n(){return!1}t.exports=n},function(t,e,n){var r=n(157),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"createDefaultObject",function(){return g}),n.d(e,"getMultipleFields",function(){return _}),n.d(e,"mergeMultiObjectFields",function(){return y}),n.d(e,"slugifyFormID",function(){return b}),n.d(e,"slugify",function(){return x});var r=n(165),i=n.n(r),o=n(5),u=n.n(o),a=n(2),c=n.n(a),s=n(7),l=n.n(s),f=n(191),d=n.n(f),h=n(192),p=n.n(h),v=n(8),m=n.n(v),g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d()(t.fields,function(n){void 0===m()(e,n.model)&&void 0!==n.default&&(u()(n.default)?p()(e,n.model,n.default(n,t,e)):l()(n.default)||c()(n.default)?p()(e,n.model,i()(n.default)):p()(e,n.model,n.default))}),e},_=function(t){var e=[];return d()(t.fields,function(t){!0===t.multi&&e.push(t)}),e},y=function(t,e){var n={},r=_(t);return d()(r,function(t){var r=void 0,i=!0,o=t.model;d()(e,function(t){var e=m()(t,o);i?(r=e,i=!1):r!==e&&(r=void 0)}),p()(n,o,r)}),n},b=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return void 0!==t.id?e+t.id:e+(t.inputName||t.label||t.model||"").toString().trim().toLowerCase().replace(/ |_/g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-]+)/g,"")},x=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString().trim().replace(/ /g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-_\/.\/:]+)/g,"")}},function(t,e,n){function r(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}var i=n(46);t.exports=r},function(t,e,n){function r(t,e,n,r){var u=!n;n||(n={});for(var a=-1,c=e.length;++a<c;){var s=e[a],l=r?r(n[s],t[s],s,n,t):void 0;void 0===l&&(l=t[s]),u?o(n,s,l):i(n,s,l)}return n}var i=n(47),o=n(74);t.exports=r},function(t,e,n){"use strict";var r=n(118)(!0);n(51)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(17),i=n(6).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(125),i=n(58);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(54),i=n(33);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(56)("keys"),i=n(57);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(16).f,i=n(21),o=n(4)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(33);t.exports=function(t){return Object(r(t))}},function(t,e,n){n(129);for(var r=n(6),i=n(12),o=n(14),u=n(4)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var s=a[c],l=r[s],f=l&&l.prototype;f&&!f[u]&&i(f,u,s),o[s]=o.Array}},function(t,e,n){var r=n(22),i=n(4)("toStringTag"),o="Arguments"==r(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=i(e),this.reject=i(n)}var i=n(19);t.exports.f=function(t){return new r(t)}},function(t,e){function n(t){return i.call(t)}var r=Object.prototype,i=r.toString;t.exports=n},function(t,e,n){function r(t){return null!=t&&o(t.length)&&!i(t)}var i=n(5),o=n(149);t.exports=r},function(t,e,n){function r(t){return"string"==typeof t||!o(t)&&u(t)&&i(t)==a}var i=n(43),o=n(2),u=n(71),a="[object String]";t.exports=r},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){function r(t,e,n){var r=t[e];a.call(t,e)&&o(r,n)&&(void 0!==n||e in t)||i(t,e,n)}var i=n(74),o=n(46),u=Object.prototype,a=u.hasOwnProperty;t.exports=r},function(t,e,n){var r;!function(i){"use strict";function o(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}function u(t){return function(e,n,r){var i=r[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(e.month=i)}}function a(t,e){for(t=String(t),e=e||2;t.length<e;)t="0"+t;return t}var c={},s=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,l=/\d\d?/,f=/\d{3}/,d=/\d{4}/,h=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,p=/\[([^]*?)\]/gm,v=function(){},m=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],g=["January","February","March","April","May","June","July","August","September","October","November","December"],_=o(g,3),y=o(m,3);c.i18n={dayNamesShort:y,dayNames:m,monthNamesShort:_,monthNames:g,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10)*t%10]}};var b={D:function(t){return t.getDate()},DD:function(t){return a(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return a(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return a(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return String(t.getFullYear()).substr(2)},YYYY:function(t){return a(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return a(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return a(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return a(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return a(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return a(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return a(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+a(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},x={D:[l,function(t,e){t.day=e}],Do:[new RegExp(l.source+h.source),function(t,e){t.day=parseInt(e,10)}],M:[l,function(t,e){t.month=e-1}],YY:[l,function(t,e){var n=new Date,r=+(""+n.getFullYear()).substr(0,2);t.year=""+(e>68?r-1:r)+e}],h:[l,function(t,e){t.hour=e}],m:[l,function(t,e){t.minute=e}],s:[l,function(t,e){t.second=e}],YYYY:[d,function(t,e){t.year=e}],S:[/\d/,function(t,e){t.millisecond=100*e}],SS:[/\d{2}/,function(t,e){t.millisecond=10*e}],SSS:[f,function(t,e){t.millisecond=e}],d:[l,v],ddd:[h,v],MMM:[h,u("monthNamesShort")],MMMM:[h,u("monthNames")],a:[h,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,e){"Z"===e&&(e="+00:00");var n,r=(e+"").match(/([\+\-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};x.dd=x.d,x.dddd=x.ddd,x.DD=x.D,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,c.masks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},c.format=function(t,e,n){var r=n||c.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");e=c.masks[e]||e||c.masks.default;var i=[];return e=e.replace(p,function(t,e){return i.push(e),"??"}),e=e.replace(s,function(e){return e in b?b[e](t,r):e.slice(1,e.length-1)}),e.replace(/\?\?/g,function(){return i.shift()})},c.parse=function(t,e,n){var r=n||c.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=c.masks[e]||e,t.length>1e3)return!1;var i=!0,o={};if(e.replace(s,function(e){if(x[e]){var n=x[e],u=t.search(n[0]);~u?t.replace(n[0],function(e){return n[1](o,e,r),t=t.substr(u+e.length),e}):i=!1}return x[e]?"":e.slice(1,e.length-1)}),!i)return!1;var u=new Date;!0===o.isPm&&null!=o.hour&&12!=+o.hour?o.hour=+o.hour+12:!1===o.isPm&&12==+o.hour&&(o.hour=0);var a;return null!=o.timezoneOffset?(o.minute=+(o.minute||0)-+o.timezoneOffset,a=new Date(Date.UTC(o.year||u.getFullYear(),o.month||0,o.day||1,o.hour||0,o.minute||0,o.second||0,o.millisecond||0))):a=new Date(o.year||u.getFullYear(),o.month||0,o.day||1,o.hour||0,o.minute||0,o.second||0,o.millisecond||0),a},void 0!==t&&t.exports?t.exports=c:void 0!==(r=function(){return c}.call(e,n,e,t))&&(t.exports=r)}()},function(t,e,n){"use strict";var r=n(50),i=n.n(r),o=n(2),u=n.n(o),a=n(15),c=n.n(a),s=n(5),l=n.n(s),f=n(23),d=n.n(f),h=n(8),p=n.n(h),v=n(70),m=n(163);e.a={name:"formGenerator",components:{formGroup:m.a},mixins:[v.a],props:{schema:Object,model:Object,options:{type:Object,default:function(){return{validateAfterLoad:!1,validateAfterChanged:!1,fieldIdPrefix:"",validateAsync:!1,validationErrorClass:"error",validationSuccessClass:""}}},multiple:{type:Boolean,default:!1},isNewModel:{type:Boolean,default:!1},tag:{type:String,default:"fieldset",validator:function(t){return t.length>0}}},data:function(){return{vfg:this,errors:[]}},computed:{fields:function(){var t=this,e=[];return this.schema&&this.schema.fields&&d()(this.schema.fields,function(n){t.multiple&&!0!==n.multi||e.push(n)}),e},groups:function(){var t=[];return this.schema&&this.schema.groups&&d()(this.schema.groups.slice(0),function(e){t.push(e)}),t}},watch:{model:function(t,e){var n=this;e!==t&&null!=t&&this.$nextTick(function(){!0===n.options.validateAfterLoad&&!0!==n.isNewModel?n.validate():n.clearValidationErrors()})}},mounted:function(){var t=this;this.$nextTick(function(){t.model&&(!0===t.options.validateAfterLoad&&!0!==t.isNewModel?t.validate():t.clearValidationErrors())})},methods:{fieldVisible:function(t){return l()(t.visible)?t.visible.call(this,this.model,t,this):!!c()(t.visible)||t.visible},onFieldValidated:function(t,e,n){var r=this;this.errors=this.errors.filter(function(t){return t.field!==n.schema}),!t&&e&&e.length>0&&d()(e,function(t){r.errors.push({field:n.schema,error:t})});var i=0===this.errors.length;this.$emit("validated",i,this.errors,this)},onModelUpdated:function(t,e){this.$emit("model-updated",t,e)},validate:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null===e&&(e=p()(this.options,"validateAsync",!1)),this.clearValidationErrors();var n=[],r=[];d()(this.$children,function(t){l()(t.validate)&&(n.push(t.$refs.child),r.push(t.validate(!0)))});var o=function(r){var i=[];d()(r,function(t,e){u()(t)&&t.length>0&&d()(t,function(t){i.push({field:n[e].schema,error:t})})}),t.errors=i;var o=0===i.length;return t.$emit("validated",o,i,t),e?i:o};return e?i.a.all(r).then(o):o(r)},clearValidationErrors:function(){this.errors.splice(0),d()(this.$children,function(t){t.clearValidationErrors()})}}}},function(t,e,n){t.exports={default:n(116),__esModule:!0}},function(t,e,n){"use strict";var r=n(52),i=n(11),o=n(121),u=n(12),a=n(21),c=n(14),s=n(122),l=n(38),f=n(128),d=n(4)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,v,m,g,_){s(n,e,v);var y,b,x,w=function(t){if(!h&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",j="values"==m,k=!1,S=t.prototype,C=S[d]||S["@@iterator"]||m&&S[m],M=C||w(m),T=m?j?w("entries"):M:void 0,I="Array"==e?S.entries||C:C;if(I&&(x=f(I.call(new t)))!==Object.prototype&&x.next&&(l(x,O,!0),r||a(x,d)||u(x,d,p)),j&&C&&"values"!==C.name&&(k=!0,M=function(){return C.call(this)}),r&&!_||!h&&!k&&S[d]||u(S,d,M),c[e]=M,c[O]=p,m)if(y={values:j?M:w("values"),keys:g?M:w("keys"),entries:T},_)for(b in y)b in S||o(S,b,y[b]);else i(i.P+i.F*(h||k),e,y);return y}},function(t,e){t.exports=!0},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(22);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(32),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(6),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(6).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(41),i=n(4)("iterator"),o=n(14);t.exports=n(3).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(9),i=n(19),o=n(4)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||void 0==(n=r(u)[o])?e:i(n)}},function(t,e,n){var r,i,o,u=n(18),a=n(137),c=n(59),s=n(34),l=n(6),f=l.process,d=l.setImmediate,h=l.clearImmediate,p=l.MessageChannel,v=l.Dispatch,m=0,g={},_=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},y=function(t){_.call(t.data)};d&&h||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++m]=function(){a("function"==typeof t?t:Function(t),e)},r(m),m},h=function(t){delete g[t]},"process"==n(22)(f)?r=function(t){f.nextTick(u(_,t,1))}:v&&v.now?r=function(t){v.now(u(_,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=y,r=u(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",y,!1)):r="onreadystatechange"in s("script")?function(t){c.appendChild(s("script")).onreadystatechange=function(){c.removeChild(this),_.call(t)}}:function(t){setTimeout(u(_,t,1),0)}),t.exports={set:d,clear:h}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(9),i=n(17),o=n(42);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}t.exports=n},function(t,e,n){function r(t,e){return i(t)?t:o(t,e)?[t]:u(a(t))}var i=n(2),o=n(152),u=n(153),a=n(67);t.exports=r},function(t,e,n){function r(t){return null==t?"":i(t)}var i=n(155);t.exports=r},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){function r(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}var i=n(26),o=1/0;t.exports=r},function(t,e,n){"use strict";var r=n(159),i=n.n(r),o=n(5),u=n.n(o),a=n(45),c=n.n(a),s=n(2),l=n.n(s),f=n(15),d=n.n(f),h=n(23),p=n.n(h),v=n(8),m=n.n(v);e.a={methods:{getFieldRowClasses:function(t){var e,n=this.fieldErrors(t).length>0,r=(e={},i()(e,m()(this.options,"validationErrorClass","error"),n),i()(e,m()(this.options,"validationSuccessClass","valid"),!n),i()(e,"disabled",this.fieldDisabled(t)),i()(e,"readonly",this.fieldReadonly(t)),i()(e,"featured",this.fieldFeatured(t)),i()(e,"required",this.fieldRequired(t)),e);return l()(t.styleClasses)?p()(t.styleClasses,function(t){return r[t]=!0}):c()(t.styleClasses)&&(r[t.styleClasses]=!0),d()(t.type)||(r["field-"+t.type]=!0),r},fieldErrors:function(t){return this.errors.filter(function(e){return e.field===t}).map(function(t){return t.error})},fieldDisabled:function(t){return u()(t.disabled)?t.disabled.call(this,this.model,t,this):!d()(t.disabled)&&t.disabled},fieldReadonly:function(t){return u()(t.readonly)?t.readonly.call(this,this.model,t,this):!d()(t.readonly)&&t.readonly},fieldFeatured:function(t){return u()(t.featured)?t.featured.call(this,this.model,t,this):!d()(t.featured)&&t.featured},fieldRequired:function(t){return u()(t.required)?t.required.call(this,this.model,t,this):!d()(t.required)&&t.required}}}},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){"use strict";var r=n(5),i=n.n(r),o=n(15),u=n.n(o),a=n(8),c=n.n(a),s=n(28),l=n(70),f=n(80),d=n.n(f);e.a={name:"form-group",components:d.a,mixins:[l.a],props:{vfg:{type:Object,required:!0},model:Object,options:{type:Object},field:{type:Object,required:!0},errors:{type:Array,default:function(){return[]}}},methods:{fieldTypeHasLabel:function(t){if(u()(t.label))return!1;switch("input"===t.type?t.inputType:t.type){case"button":case"submit":case"reset":return!1;default:return!0}},getFieldID:function(t){var e=c()(this.options,"fieldIdPrefix","");return Object(s.slugifyFormID)(t,e)},getFieldType:function(t){return"field-"+t.type},getButtonType:function(t){return c()(t,"type","button")},onFieldValidated:function(t,e,n){this.$emit("validated",t,e,n)},buttonVisibility:function(t){return t.buttons&&t.buttons.length>0},buttonClickHandler:function(t,e,n){return t.onclick.call(this,this.model,e,n,this)},fieldHint:function(t){return i()(t.hint)?t.hint.call(this,this.model,t,this):t.hint},fieldErrors:function(t){return this.errors.filter(function(e){return e.field===t}).map(function(t){return t.error})},onModelUpdated:function(t,e){this.$emit("model-updated",t,e)},validate:function(t){return this.$refs.child.validate(t)},clearValidationErrors:function(){if(this.$refs.child)return this.$refs.child.clearValidationErrors()}}}},function(t,e,n){function r(t,e,n,E,D,F){var $,N=e&k,L=e&S,R=e&C;if(n&&($=D?n(t,E,D,F):n(t)),void 0!==$)return $;if(!w(t))return t;var V=y(t);if(V){if($=m(t),!N)return l(t,$)}else{var z=v(t),U=z==T||z==I;if(b(t))return s(t,N);if(z==P||z==M||U&&!D){if($=L||U?{}:_(t),!N)return L?d(t,c($,t)):f(t,a($,t))}else{if(!A[z])return D?t:{};$=g(t,z,N)}}F||(F=new i);var Y=F.get(t);if(Y)return Y;if(F.set(t,$),O(t))return t.forEach(function(i){$.add(r(i,e,n,i,t,F))}),$;if(x(t))return t.forEach(function(i,o){$.set(o,r(i,e,n,o,t,F))}),$;var q=R?L?p:h:L?keysIn:j,B=V?void 0:q(t);return o(B||t,function(i,o){B&&(o=i,i=t[o]),u($,o,r(i,e,n,o,t,F))}),$}var i=n(166),o=n(65),u=n(47),a=n(174),c=n(175),s=n(176),l=n(177),f=n(178),d=n(180),h=n(182),p=n(183),v=n(77),m=n(184),g=n(185),_=n(186),y=n(2),b=n(79),x=n(189),w=n(7),O=n(190),j=n(24),k=1,S=2,C=4,M="[object Arguments]",T="[object Function]",I="[object GeneratorFunction]",P="[object Object]",A={};A[M]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[P]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[T]=A["[object WeakMap]"]=!1,t.exports=r},function(t,e,n){function r(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var i=n(172);t.exports=r},function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){function n(t){return i.call(t)}var r=Object.prototype,i=r.toString;t.exports=n},function(t,e){function n(){return!1}t.exports=n},function(t,e){function n(){return!1}t.exports=n},function(t,e,n){var r=n(195).forEach,i={},o=n(196);r(o.keys(),function(t){var e=t.replace(/^\.\//,"").replace(/\.vue/,"");i[e]=o(t).default});var u=n(256);r(u.keys(),function(t){var e=t.replace(/^\.\//,"").replace(/\.vue/,"");i[e]=u(t).default}),t.exports=i},function(t,e,n){"use strict";var r=n(1);e.a={mixins:[r.default]}},function(t,e){function n(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}t.exports=n},function(t,e,n){function r(t,e,n){function r(e){var n=_,r=y;return _=y=void 0,j=e,x=t.apply(r,n)}function l(t){return j=t,w=setTimeout(h,e),k?r(t):x}function f(t){var n=t-O,r=t-j,i=e-n;return S?s(i,b-r):i}function d(t){var n=t-O,r=t-j;return void 0===O||n>=e||n<0||S&&r>=b}function h(){var t=o();if(d(t))return p(t);w=setTimeout(h,f(t))}function p(t){return w=void 0,C&&_?r(t):(_=y=void 0,x)}function v(){void 0!==w&&clearTimeout(w),j=0,_=O=y=w=void 0}function m(){return void 0===w?x:p(o())}function g(){var t=o(),n=d(t);if(_=arguments,y=this,O=t,n){if(void 0===w)return l(O);if(S)return w=setTimeout(h,e),r(O)}return void 0===w&&(w=setTimeout(h,e)),x}var _,y,b,x,w,O,j=0,k=!1,S=!1,C=!0;if("function"!=typeof t)throw new TypeError(a);return e=u(e)||0,i(n)&&(k=!!n.leading,S="maxWait"in n,b=S?c(u(n.maxWait)||0,e):b,C="trailing"in n?!!n.trailing:C),g.cancel=v,g.flush=m,g}var i=n(7),o=n(208),u=n(84),a="Expected a function",c=Math.max,s=Math.min;t.exports=r},function(t,e,n){function r(t){if("number"==typeof t)return t;if(o(t))return u;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=s.test(t);return n||l.test(t)?f(t.slice(2),n?2:8):c.test(t)?u:+t}var i=n(7),o=n(26),u=NaN,a=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,f=parseInt;t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;return b()(t)||""===t?e?[i(n.fieldIsRequired)]:[]:null}function i(t){if(null!=t&&arguments.length>1)for(var e=1;e<arguments.length;e++)t=t.replace("{"+(e-1)+"}",arguments[e]);return t}Object.defineProperty(e,"__esModule",{value:!0});var o=n(209),u=n.n(o),a=n(213),c=n.n(a),s=n(5),l=n.n(s),f=n(2),d=n.n(f),h=n(45),p=n.n(h),v=n(214),m=n.n(v),g=n(87),_=n.n(g),y=n(15),b=n.n(y),x=n(10),w=n.n(x),O=n(48),j=n.n(O),k={fieldIsRequired:"This field is required!",invalidFormat:"Invalid format!",numberTooSmall:"The number is too small! Minimum: {0}",numberTooBig:"The number is too big! Maximum: {0}",invalidNumber:"Invalid number",invalidInteger:"The value is not an integer",textTooSmall:"The length of text is too small! Current: {0}, Minimum: {1}",textTooBig:"The length of text is too big! Current: {0}, Maximum: {1}",thisNotText:"This is not a text!",thisNotArray:"This is not an array!",selectMinItems:"Select minimum {0} items!",selectMaxItems:"Select maximum {0} items!",invalidDate:"Invalid date!",dateIsEarly:"The date is too early! Current: {0}, Minimum: {1}",dateIsLate:"The date is too late! Current: {0}, Maximum: {1}",invalidEmail:"Invalid e-mail address!",invalidURL:"Invalid URL!",invalidCard:"Invalid card format!",invalidCardNumber:"Invalid card number!",invalidTextContainNumber:"Invalid text! Cannot contains numbers or special characters",invalidTextContainSpec:"Invalid text! Cannot contains special characters"},S={resources:k,required:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k;return r(t,e.required,i)},number:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k,u=r(t,e.required,o);if(null!=u)return u;var a=[];return c()(t)?(!b()(e.min)&&t<e.min&&a.push(i(o.numberTooSmall,e.min)),!b()(e.max)&&t>e.max&&a.push(i(o.numberTooBig,e.max))):a.push(i(o.invalidNumber)),a},integer:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k,u=r(t,e.required,o);if(null!=u)return u;var a=S.number(t,e,n,o);return m()(t)||a.push(i(o.invalidInteger)),a},double:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k,u=r(t,e.required,o);return null!=u?u:!_()(t)||isNaN(t)?[i(o.invalidNumber)]:void 0},string:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k,u=r(t,e.required,o);if(null!=u)return u;var a=[];return p()(t)?(!b()(e.min)&&t.length<e.min&&a.push(i(o.textTooSmall,t.length,e.min)),!b()(e.max)&&t.length>e.max&&a.push(i(o.textTooBig,t.length,e.max))):a.push(i(o.thisNotText)),a},array:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k;if(e.required){if(!d()(t))return[i(r.thisNotArray)];if(0===t.length)return[i(r.fieldIsRequired)]}if(!b()(t)){if(!b()(e.min)&&t.length<e.min)return[i(r.selectMinItems,e.min)];if(!b()(e.max)&&t.length>e.max)return[i(r.selectMaxItems,e.max)]}},date:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k,u=r(t,e.required,o);if(null!=u)return u;var a=new Date(t);if(isNaN(a.getDate()))return[i(o.invalidDate)];var c=[];if(!b()(e.min)){var s=new Date(e.min);a.valueOf()<s.valueOf()&&c.push(i(o.dateIsEarly,j.a.format(a),j.a.format(s)))}if(!b()(e.max)){var l=new Date(e.max);a.valueOf()>l.valueOf()&&c.push(i(o.dateIsLate,j.a.format(a),j.a.format(l)))}return c},regexp:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k,u=r(t,e.required,o);if(null!=u)return u;if(!b()(e.pattern)){if(!new RegExp(e.pattern).test(t))return[i(o.invalidFormat)]}},email:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k,u=r(t,e.required,o);return null!=u?u:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)?void 0:[i(o.invalidEmail)]},url:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k,u=r(t,e.required,o);return null!=u?u:/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/g.test(t)?void 0:[i(o.invalidURL)]},creditCard:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k,u=r(t,e.required,o);if(null!=u)return u;var a=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,c=t.replace(/[^0-9]+/g,"");if(!a.test(c))return[i(o.invalidCard)];for(var s=0,l=void 0,f=void 0,d=void 0,h=c.length-1;h>=0;h--)l=c.substring(h,h+1),f=parseInt(l,10),d?(f*=2,s+=f>=10?f%10+1:f):s+=f,d=!d;return s%10==0&&c?void 0:[i(o.invalidCardNumber)]},alpha:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k,u=r(t,e.required,o);return null!=u?u:/^[a-zA-Z]*$/.test(t)?void 0:[i(o.invalidTextContainNumber)]},alphaNumeric:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k,u=r(t,e.required,o);return null!=u?u:/^[a-zA-Z0-9]*$/.test(t)?void 0:[i(o.invalidTextContainSpec)]}};u()(S).forEach(function(t){var e=S[t];l()(e)&&(e.locale=function(t){return function(n,r,i){return e(n,r,i,w()(t,k))}})}),e.default=S},function(t,e,n){function r(t){var e=i(t),n=e%1;return e===e?n?e-n:e:0}var i=n(215);t.exports=r},function(t,e,n){function r(t){return"number"==typeof t||o(t)&&i(t)==u}var i=n(43),o=n(71),u="[object Number]";t.exports=r},function(t,e,n){"use strict";var r=n(225),i=n.n(r),o=n(15),u=n.n(o),a=n(7),c=n.n(a),s=n(1),l=n(28);e.a={mixins:[s.default],data:function(){return{comboExpanded:!1}},computed:{items:function(){var t=this.schema.values;return"function"==typeof t?t.apply(this,[this.model,this.schema]):t},selectedCount:function(){return this.value?this.value.length:0}},methods:{getInputName:function(t){return this.schema&&this.schema.inputName&&this.schema.inputName.length>0?Object(l.slugify)(this.schema.inputName+"_"+this.getItemValue(t)):Object(l.slugify)(this.getItemValue(t))},getItemValue:function(t){if(c()(t)){if(void 0!==this.schema.checklistOptions&&void 0!==this.schema.checklistOptions.value)return t[this.schema.checklistOptions.value];if(void 0!==t.value)return t.value;throw"`value` is not defined. If you want to use another key name, add a `value` property under `checklistOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/checklist.html#checklist-field-with-object-values"}return t},getItemName:function(t){if(c()(t)){if(void 0!==this.schema.checklistOptions&&void 0!==this.schema.checklistOptions.name)return t[this.schema.checklistOptions.name];if(void 0!==t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `checklistOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/checklist.html#checklist-field-with-object-values"}return t},isItemChecked:function(t){return this.value&&-1!==this.value.indexOf(this.getItemValue(t))},onChanged:function(t,e){if(!u()(this.value)&&Array.isArray(this.value)||(this.value=[]),t.target.checked){var n=i()(this.value);n.push(this.getItemValue(e)),this.value=n}else{var r=i()(this.value);r.splice(this.value.indexOf(this.getItemValue(e)),1),this.value=r}},onExpandCombo:function(){this.comboExpanded=!this.comboExpanded}}}},function(t,e,n){"use strict";var r=n(87),i=n.n(r),o=n(5),u=n.n(o),a=n(8),c=n.n(a),s=n(83),l=n.n(s),f=n(1),d=n(48),h=n.n(d),p={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss","datetime-local":"YYYY-MM-DDTHH:mm:ss"};e.a={mixins:[f.default],computed:{inputType:function(){return this.schema&&"datetime"===this.schema.inputType?"datetime-local":this.schema.inputType}},methods:{formatValueToModel:function(t){var e=this;if(null!=t)switch(this.schema.inputType.toLowerCase()){case"date":case"datetime":case"datetime-local":case"number":case"range":return function(n,r){e.debouncedFormatFunc(t,r)}}return t},formatValueToField:function(t){switch(this.schema.inputType.toLowerCase()){case"date":case"datetime":case"datetime-local":return this.formatDatetimeValueToField(t)}return t},formatDatetimeToModel:function(t,e){var n=p[this.schema.inputType.toLowerCase()],r=h.a.parse(t,n);!1!==r&&(t=this.schema.format?h.a.format(r,this.schema.format):r.valueOf()),this.updateModelValue(t,e)},formatDatetimeValueToField:function(t){if(null===t||void 0===t)return null;var e=p[this.schema.inputType.toLowerCase()],n=t;return i()(t)||(n=h.a.parse(t,e)),!1!==n?h.a.format(n,e):t},formatNumberToModel:function(t,e){i()(t)||(t=NaN),this.updateModelValue(t,e)},onInput:function(t){var e=t.target.value;switch(this.schema.inputType.toLowerCase()){case"number":case"range":i()(parseFloat(t.target.value))&&(e=parseFloat(t.target.value))}this.value=e},onBlur:function(){u()(this.debouncedFormatFunc)&&this.debouncedFormatFunc.flush()}},mounted:function(){var t=this;switch(this.schema.inputType.toLowerCase()){case"number":case"range":this.debouncedFormatFunc=l()(function(e,n){t.formatNumberToModel(e,n)},parseInt(c()(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1});break;case"date":case"datetime":case"datetime-local":this.debouncedFormatFunc=l()(function(e,n){t.formatDatetimeToModel(e,n)},parseInt(c()(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1})}},created:function(){"file"===this.schema.inputType.toLowerCase()&&console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.")}}},function(t,e,n){"use strict";var r=n(1);e.a={mixins:[r.default]}},function(t,e,n){"use strict";var r=n(8),i=n.n(r),o=n(5),u=n.n(o),a=n(7),c=n.n(a),s=n(1);e.a={mixins:[s.default],computed:{items:function(){var t=this.schema.values;return"function"==typeof t?t.apply(this,[this.model,this.schema]):t},id:function(){return this.schema.model}},methods:{getItemValue:function(t){if(c()(t)){if(void 0!==this.schema.radiosOptions&&void 0!==this.schema.radiosOptions.value)return t[this.schema.radiosOptions.value];if(void 0!==t.value)return t.value;throw"`value` is not defined. If you want to use another key name, add a `value` property under `radiosOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/radios.html#radios-field-with-object-values"}return t},getItemName:function(t){if(c()(t)){if(void 0!==this.schema.radiosOptions&&void 0!==this.schema.radiosOptions.name)return t[this.schema.radiosOptions.name];if(void 0!==t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `radiosOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/radios.html#radios-field-with-object-values"}return t},getItemCssClasses:function(t){return{"is-checked":this.isItemChecked(t),"is-disabled":this.isItemDisabled(t)}},onSelection:function(t){this.value=this.getItemValue(t)},isItemChecked:function(t){return this.getItemValue(t)===this.value},isItemDisabled:function(t){if(this.disabled)return!0;var e=i()(t,"disabled",!1);return u()(e)?e(this.model):e}}}},function(t,e,n){"use strict";var r=n(238),i=n.n(r),o=n(15),u=n.n(o),a=n(7),c=n.n(a),s=n(1);e.a={mixins:[s.default],computed:{selectOptions:function(){return this.schema.selectOptions||{}},items:function(){var t=this.schema.values;return"function"==typeof t?this.groupValues(t.apply(this,[this.model,this.schema])):this.groupValues(t)}},methods:{formatValueToField:function(t){return u()(t)?null:t},groupValues:function(t){var e=[],n={};return t.forEach(function(t){n=null,t.group&&c()(t)?(n=i()(e,function(e){return e.group===t.group}),n?n.ops.push({id:t.id,name:t.name}):(n={group:"",ops:[]},n.group=t.group,n.ops.push({id:t.id,name:t.name}),e.push(n))):e.push(t)}),e},getGroupName:function(t){if(t&&t.group)return t.group;throw"Group name is missing! https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"},getItemValue:function(t){if(c()(t)){if(void 0!==this.schema.selectOptions&&void 0!==this.schema.selectOptions.value)return t[this.schema.selectOptions.value];if(void 0!==t.id)return t.id;throw"`id` is not defined. If you want to use another key name, add a `value` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"}return t},getItemName:function(t){if(c()(t)){if(void 0!==this.schema.selectOptions&&void 0!==this.schema.selectOptions.name)return t[this.schema.selectOptions.name];if(void 0!==t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"}return t}}}},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){"use strict";var r=n(245),i=n.n(r),o=n(5),u=n.n(o),a=n(8),c=n.n(a),s=n(1);e.a={mixins:[s.default],methods:{onClick:function(t){var e=this;if(!0===this.schema.validateBeforeSubmit){t.preventDefault();var n=c()(this.formOptions,"validateAsync",!1),r=this.vfg.validate(),o=function(r){n&&!i()(r)||!n&&!r?u()(e.schema.onValidationError)&&e.schema.onValidationError(e.model,e.schema,r,t):u()(e.schema.onSubmit)&&e.schema.onSubmit(e.model,e.schema,t)};r&&u()(r.then)?r.then(o):o(r)}else u()(this.schema.onSubmit)&&this.schema.onSubmit(this.model,this.schema,t)}}}},function(t,e,n){"use strict";var r=n(1);e.a={mixins:[r.default]}},function(t,e,n){"use strict";var r=n(5),i=n.n(r),o=n(1);e.a={mixins:[o.default],methods:{onChange:function(t){i()(this.schema.onChanged)&&this.schema.onChanged.call(this,this.model,this.schema,t,this)}}}},function(t,e,n){"use strict";var r=n(10),i=n.n(r),o=n(1);e.a={mixins:[o.default],data:function(){return{cleave:null}},mounted:function(){this.$nextTick(function(){var t=this;window.Cleave?(this.cleave=new window.Cleave(this.$el,i()(this.schema.cleaveOptions||{},{creditCard:!1,phone:!1,phoneRegionCode:"AU",date:!1,datePattern:["d","m","Y"],numeral:!1,numeralThousandsGroupStyle:"thousand",numeralDecimalScale:2,numeralDecimalMark:".",blocks:[],delimiter:" ",prefix:null,numericOnly:!1,uppercase:!1,lowercase:!1,maxLength:0})),this.cleave.properties&&this.cleave.properties.hasOwnProperty("result")?this.$watch("cleave.properties.result",function(){t.value=t.cleave.properties.result}):this.$el.addEventListener("input",this.inputChange)):console.warn("Cleave is missing. Please download from https://github.com/nosir/cleave.js/ and load the script in the HTML head section!")})},methods:{inputChange:function(){this.value=this.$el.value}},beforeDestroy:function(){this.cleave&&(this.cleave.destroy(),this.$el.removeEventListener("input",this.inputChange))}}},function(t,e,n){"use strict";var r=n(99),i=n.n(r),o=n(10),u=n.n(o),a=n(1),c=n(100);e.a={mixins:[a.default],methods:i()({getDateFormat:function(){return this.schema.dateTimePickerOptions&&this.schema.dateTimePickerOptions.format?this.schema.dateTimePickerOptions.format:"YYYY-MM-DD HH:mm:ss"}},c.a),mounted:function(){this.$nextTick(function(){var t=this;if(window.$&&window.$.fn.datetimepicker){var e=this.$el.querySelector(".form-control");$(this.$el).datetimepicker(u()(this.schema.dateTimePickerOptions||{},{format:"YYYY-MM-DD HH:mm:ss"})).on("dp.change",function(){t.value=e.value})}else console.warn("Bootstrap datetimepicker library is missing. Please download from https://eonasdan.github.io/bootstrap-datetimepicker/ and load the script and CSS in the HTML head section!")})},beforeDestroy:function(){window.$&&window.$.fn.datetimepicker&&$(this.$el).data("DateTimePicker").destroy()}}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(262),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){"use strict";var r=n(48),i=n.n(r);e.a={formatValueToField:function(t){if(null!=t){var e=this.schema.format?i.a.parse(t,this.schema.format):new Date(t);return i.a.format(e,this.getDateFormat())}return t},formatValueToModel:function(t){if(null!=t){var e=i.a.parse(t,this.getDateFormat());t=this.schema.format?i.a.format(e,this.schema.format):e.valueOf()}return t}}},function(t,e,n){"use strict";var r=n(5),i=n.n(r),o=n(1);e.a={mixins:[o.default],data:function(){return{autocomplete:"",inputs:{street_number:"long_name",route:"long_name",country:"long_name",administrative_area_level_1:"long_name",administrative_area_level_2:"long_name",locality:"long_name",postal_code:"short_name"}}},mounted:function(){var t=this;this.$nextTick(function(){window.google&&window.google.maps&&window.google.maps.places&&window.google.maps.places.Autocomplete?(t.autocomplete=new google.maps.places.Autocomplete(t.$el,{types:["geocode"]}),t.autocomplete.addListener("place_changed",t.pipeAddress)):console.warn("Google Maps API is missing. Please add https://maps.googleapis.com/maps/api/js?key=YOUR_KEY&libraries=places script in the HTML head section!")})},methods:{pipeAddress:function(){var t=this.autocomplete.getPlace();if(t){this.value=t.formatted_address;var e={};if(void 0!==t.address_components)for(var n=0;n<t.address_components.length;n++){var r=t.address_components[n].types[0];this.inputs[r]&&(e[r]=t.address_components[n][this.inputs[r]])}i()(this.schema.onPlaceChanged)&&this.schema.onPlaceChanged(this.value,e,t,this.model,this.schema)}},geolocate:function(){var t=this;navigator.geolocation&&navigator.geolocation.getCurrentPosition(function(e){var n={lat:e.coords.latitude,lng:e.coords.longitude},r=new window.google.maps.Circle({center:n,radius:e.coords.accuracy});t.autocomplete.setBounds(r.getBounds())})}}}},function(t,e,n){"use strict";var r=n(1);e.a={mixins:[r.default],computed:{previewStyle:function(){return!1!==this.schema.preview?{display:"block","background-image":null!=this.value?"url("+this.value+")":"none"}:{display:"none"}},wrappedValue:{get:function(){return this.value&&0===this.value.indexOf("data")?"<inline base64 image>":this.value},set:function(t){t&&0===t.indexOf("http")&&(this.value=t)}}},watch:{model:function(){var t=this.$el.querySelector("input.file");t&&(t.value="")}},methods:{remove:function(){this.value=""},fileChanged:function(t){var e=this,n=new FileReader;n.onload=function(t){e.value=t.target.result},t.target.files&&t.target.files.length>0&&n.readAsDataURL(t.target.files[0])}}}},function(t,e,n){"use strict";var r=n(1);e.a={mixins:[r.default],mounted:function(){this.$nextTick(function(){window.$&&window.$.fn.mask?$(this.$el).unmask().mask(this.schema.mask,this.schema.maskOptions):console.warn("JQuery MaskedInput library is missing. Please download from https://github.com/digitalBush/jquery.maskedinput and load the script in the HTML head section!")})},beforeDestroy:function(){window.$&&window.$.fn.mask&&$(this.$el).unmask()}}},function(t,e,n){"use strict";var r=n(10),i=n.n(r),o=n(2),u=n.n(o),a=n(1);e.a={mixins:[a.default],data:function(){return{slider:null}},watch:{model:function(){window.noUiSlider&&this.slider&&this.slider.noUiSlider&&this.slider.noUiSlider.set(this.value)}},computed:{containPips:function(){return this.schema.noUiSliderOptions&&void 0!==this.schema.noUiSliderOptions.pips},containTooltip:function(){return this.schema.noUiSliderOptions&&this.schema.noUiSliderOptions.tooltips}},methods:{onChange:function(t){u()(t)?this.value=[parseFloat(t[0]),parseFloat(t[1])]:this.value=parseFloat(t)},formatValueToField:function(t){null!==this.slider&&void 0!==this.slider.noUiSlider&&this.slider.noUiSlider.set(t)},formatValueToModel:function(t){if(void 0!==this.slider.noUiSlider)return t instanceof Array?[Number(t[0]),Number(t[1])]:Number(t)},getStartValue:function(){return null!=this.value?this.value:void 0!==this.schema.noUiSliderOptions&&this.schema.noUiSliderOptions.double?[this.schema.min,this.schema.min]:this.schema.min}},mounted:function(){var t=this;this.$nextTick(function(){window.noUiSlider?(t.slider=t.$el,window.noUiSlider.create(t.slider,i()(t.schema.noUiSliderOptions||{},{start:t.getStartValue(),range:{min:t.schema.min,max:t.schema.max}})),t.slider.noUiSlider.on("change",t.onChange.bind(t))):console.warn("noUiSlider is missing. Please download from https://github.com/leongersen/noUiSlider and load the script and CSS in the HTML head section!")})},beforeDestroy:function(){this.slider&&this.slider.noUiSlider.off("change")}}},function(t,e,n){"use strict";var r=n(99),i=n.n(r),o=n(8),u=n.n(o),a=n(10),c=n.n(a),s=n(1),l=n(100);e.a={mixins:[s.default],data:function(){return{picker:null,options:null}},methods:i()({getDateFormat:function(){return u()(this.schema,"pikadayOptions.format","YYYY-MM-DD")}},l.a,{initialize:function(t){var e=this;this.picker&&this.picker.destroy&&this.picker.destroy(),this.$nextTick(function(){window.Pikaday?(e.options=c()({},t,{field:e.$el,onSelect:function(){e.value=e.picker.toString()}}),e.picker=new window.Pikaday(e.options)):console.warn("Pikaday is missing. Please download from https://github.com/dbushell/Pikaday/ and load the script and CSS in the HTML head section!")})}}),mounted:function(){this.initialize(u()(this.schema,"pikadayOptions",{}))},beforeDestroy:function(){this.picker&&this.picker.destroy()}}},function(t,e,n){"use strict";var r=n(285),i=n.n(r),o=n(2),u=n.n(o),a=n(10),c=n.n(a),s=n(1);e.a={mixins:[s.default],data:function(){return{slider:null}},watch:{model:function(){if(window.$&&window.$.fn.ionRangeSlider){var t=void 0,e=void 0;if(u()(this.value)){var n=i()(this.value,2);t=n[0],e=n[1]}else t=this.value;this.slider&&this.slider.update({from:t,to:e})}}},mounted:function(){this.$nextTick(function(){if(window.$&&window.$.fn.ionRangeSlider){var t=void 0,e=void 0;if(u()(this.value)){var n=i()(this.value,2);t=n[0],e=n[1]}else t=this.value;var r=this;$(this.$el).ionRangeSlider(c()(this.schema.rangeSliderOptions||{},{type:"single",grid:!0,hide_min_max:!0,from:t,to:e,onChange:function(t){"double"===r.slider.options.type?r.value=[t.from,t.to]:r.value=t.from}})),this.slider=$(this.$el).data("ionRangeSlider")}else console.warn("ion.rangeSlider library is missing. Please download from https://github.com/IonDen/ion.rangeSlider and load the script and CSS in the HTML head section!")})},beforeDestroy:function(){this.slider&&this.slider.destroy()}}},function(t,e,n){t.exports={default:n(289),__esModule:!0}},function(t,e,n){"use strict";var r=n(7),i=n.n(r),o=n(1);e.a={mixins:[o.default],computed:{items:function(){var t=this.schema.values;return"function"==typeof t?t.apply(this,[this.model,this.schema]):t}},methods:{getItemValue:function(t){if(i()(t)){if(void 0!==this.schema.selectOptions&&void 0!==this.schema.selectOptions.value)return t[this.schema.selectOptions.value];if(void 0!==t.id)return t.id;throw"`id` is not defined. If you want to use another key name, add a `value` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"}return t},getItemName:function(t){if(i()(t)){if(void 0!==this.schema.selectOptions&&void 0!==this.schema.selectOptions.name)return t[this.schema.selectOptions.name];if(void 0!==t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"}return t}},watch:{model:function(){$.fn.selectpicker&&$(this.$el).selectpicker("refresh")}},mounted:function(){this.$nextTick(function(){$.fn.selectpicker?$(this.$el).selectpicker("destroy").selectpicker(this.schema.selectOptions):console.warn("Bootstrap-select library is missing. Please download from https://silviomoreto.github.io/bootstrap-select/ and load the script and CSS in the HTML head section!")})},beforeDestroy:function(){$.fn.selectpicker&&$(this.$el).selectpicker("destroy")}}},function(t,e,n){"use strict";var r=n(10),i=n.n(r),o=n(1);e.a={mixins:[o.default],data:function(){return{picker:null}},watch:{model:function(){window.$&&window.$.fn.spectrum&&this.picker.spectrum("set",this.value)},disabled:function(t){t?this.picker.spectrum("disable"):this.picker.spectrum("enable")}},mounted:function(){this.$nextTick(function(){var t=this;window.$&&window.$.fn.spectrum?(this.picker=$(this.$el).spectrum("destroy").spectrum(i()(this.schema.colorOptions||{},{showInput:!0,showAlpha:!0,disabled:this.schema.disabled,allowEmpty:!this.schema.required,preferredFormat:"hex",change:function(e){t.value=e?e.toString():null}})),this.picker.spectrum("set",this.value)):console.warn("Spectrum color library is missing. Please download from http://bgrins.github.io/spectrum/ and load the script and CSS in the HTML head section!")})},beforeDestroy:function(){this.picker&&this.picker.spectrum("destroy")}}},function(t,e,n){"use strict";var r=n(107),i=n.n(r),o=n(10),u=n.n(o),a=n(1);e.a={mixins:[a.default],computed:{mapLink:function(){if(this.value){var t=void 0,e=void 0,n=u()(this.schema.staticMapOptions||{},{lat:"lat",lng:"lng",zoom:8,sizeX:640,sizeY:640});t=this.value[n.lat],e=this.value[n.lng];var r="http://maps.googleapis.com/maps/api/staticmap?center="+t+","+e+"&zoom="+n.zoom+"&size="+n.sizeX+"x"+n.sizeY,o=["scale","format","maptype","language","region","markers","path","visible","style","key","signature"],a=!0,c=!1,s=void 0;try{for(var l,f=i()(o);!(a=(l=f.next()).done);a=!0){var d=l.value;void 0!==n[d]&&(r+="&"+d+"="+n[d])}}catch(t){c=!0,s=t}finally{try{!a&&f.return&&f.return()}finally{if(c)throw s}}if(t&&e)return r}}}}},function(t,e,n){"use strict";var r=n(1);e.a={mixins:[r.default],methods:{formatValueToField:function(t){return null!=t&&this.schema.valueOn?t===this.schema.valueOn:t},formatValueToModel:function(t){return null!=t&&this.schema.valueOn?t?this.schema.valueOn:this.schema.valueOff:t}}}},function(t,e,n){"use strict";var r=n(1);e.a={mixins:[r.default],computed:{selectOptions:function(){return this.schema.selectOptions||{}},options:function(){var t=this.schema.values;return"function"==typeof t?t.apply(this,[this.model,this.schema]):t},customLabel:function(){return void 0!==this.schema.selectOptions&&void 0!==this.schema.selectOptions.customLabel&&"function"==typeof this.schema.selectOptions.customLabel?this.schema.selectOptions.customLabel:void 0}},methods:{updateSelected:function(t){this.value=t},addTag:function(t,e){var n=this.selectOptions.onNewTag;"function"==typeof n&&n(t,e,this.options,this.value)},onSearchChange:function(t,e){var n=this.selectOptions.onSearch;"function"==typeof n&&n(t,e,this.options)},onSelect:function(){},onRemove:function(){},onOpen:function(){},onClose:function(){}},created:function(){this.$root.$options.components.multiselect||console.error("'vue-multiselect' is missing. Please download from https://github.com/monterail/vue-multiselect and register the component globally!")}}},function(t,e,n){var r=n(114).default,i=n(28),o=n(85).default,u=n(80).default,a=n(1).default,c=function(e,n){if(e.component("VueFormGenerator",t.exports.component),n&&n.validators)for(var r in n.validators)({}).hasOwnProperty.call(n.validators,r)&&(o[r]=n.validators[r])};t.exports={component:r,schema:i,validators:o,abstractField:a,fieldComponents:u,install:c}},function(t,e,n){"use strict";function r(t){n(115)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(49),o=n(307),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){n(117),n(31),n(40),n(132),n(142),n(143),t.exports=n(3).Promise},function(t,e){},function(t,e,n){var r=n(32),i=n(33);t.exports=function(t){return function(e,n){var o,u,a=String(i(e)),c=r(n),s=a.length;return c<0||c>=s?t?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===s||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):o:t?a.slice(c,c+2):u-56320+(o-55296<<10)+65536)}}},function(t,e,n){t.exports=!n(13)&&!n(20)(function(){return 7!=Object.defineProperty(n(34)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(17);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){t.exports=n(12)},function(t,e,n){"use strict";var r=n(123),i=n(53),o=n(38),u={};n(12)(u,n(4)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(9),i=n(124),o=n(58),u=n(37)("IE_PROTO"),a=function(){},c=function(){var t,e=n(34)("iframe"),r=o.length;for(e.style.display="none",n(59).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[u]=t):n=c(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(16),i=n(9),o=n(35);t.exports=n(13)?Object.defineProperties:function(t,e){i(t);for(var n,u=o(e),a=u.length,c=0;a>c;)r.f(t,n=u[c++],e[n]);return t}},function(t,e,n){var r=n(21),i=n(36),o=n(126)(!1),u=n(37)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),c=0,s=[];for(n in a)n!=u&&r(a,n)&&s.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~o(s,n)||s.push(n));return s}},function(t,e,n){var r=n(36),i=n(55),o=n(127);t.exports=function(t){return function(e,n,u){var a,c=r(e),s=i(c.length),l=o(u,s);if(t&&n!=n){for(;s>l;)if((a=c[l++])!=a)return!0}else for(;s>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(32),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(21),i=n(39),o=n(37)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){"use strict";var r=n(130),i=n(131),o=n(14),u=n(36);t.exports=n(51)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r,i,o,u,a=n(52),c=n(6),s=n(18),l=n(41),f=n(11),d=n(17),h=n(19),p=n(133),v=n(134),m=n(61),g=n(62).set,_=n(138)(),y=n(42),b=n(63),x=n(64),w=c.TypeError,O=c.process,j=c.Promise,k="process"==l(O),S=function(){},C=i=y.f,M=!!function(){try{var t=j.resolve(1),e=(t.constructor={})[n(4)("species")]=function(t){t(S,S)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(S)instanceof e}catch(t){}}(),T=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;_(function(){for(var r=t._v,i=1==t._s,o=0;n.length>o;)!function(e){var n,o,u=i?e.ok:e.fail,a=e.resolve,c=e.reject,s=e.domain;try{u?(i||(2==t._h&&E(t),t._h=1),!0===u?n=r:(s&&s.enter(),n=u(r),s&&s.exit()),n===e.promise?c(w("Promise-chain cycle")):(o=T(n))?o.call(n,a,c):a(n)):c(r)}catch(t){c(t)}}(n[o++]);t._c=[],t._n=!1,e&&!t._h&&P(t)})}},P=function(t){g.call(c,function(){var e,n,r,i=t._v,o=A(t);if(o&&(e=b(function(){k?O.emit("unhandledRejection",i,t):(n=c.onunhandledrejection)?n({promise:t,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=k||A(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},A=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!A(e.promise))return!1;return!0},E=function(t){g.call(c,function(){var e;k?O.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},D=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},F=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw w("Promise can't be resolved itself");(e=T(t))?_(function(){var r={_w:n,_d:!1};try{e.call(t,s(F,r,1),s(D,r,1))}catch(t){D.call(r,t)}}):(n._v=t,n._s=1,I(n,!1))}catch(t){D.call({_w:n,_d:!1},t)}}};M||(j=function(t){p(this,j,"Promise","_h"),h(t),r.call(this);try{t(s(F,this,1),s(D,this,1))}catch(t){D.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(139)(j.prototype,{then:function(t,e){var n=C(m(this,j));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=k?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=s(F,t,1),this.reject=s(D,t,1)},y.f=C=function(t){return t===j||t===u?new o(t):i(t)}),f(f.G+f.W+f.F*!M,{Promise:j}),n(38)(j,"Promise"),n(140)("Promise"),u=n(3).Promise,f(f.S+f.F*!M,"Promise",{reject:function(t){var e=C(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(a||!M),"Promise",{resolve:function(t){return x(a&&this===u?j:this,t)}}),f(f.S+f.F*!(M&&n(141)(function(t){j.all(t).catch(S)})),"Promise",{all:function(t){var e=this,n=C(e),r=n.resolve,i=n.reject,o=b(function(){var n=[],o=0,u=1;v(t,!1,function(t){var a=o++,c=!1;n.push(void 0),u++,e.resolve(t).then(function(t){c||(c=!0,n[a]=t,--u||r(n))},i)}),--u||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=C(e),r=n.reject,i=b(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(18),i=n(135),o=n(136),u=n(9),a=n(55),c=n(60),s={},l={},e=t.exports=function(t,e,n,f,d){var h,p,v,m,g=d?function(){return t}:c(t),_=r(n,f,e?2:1),y=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(h=a(t.length);h>y;y++)if((m=e?_(u(p=t[y])[0],p[1]):_(t[y]))===s||m===l)return m}else for(v=g.call(t);!(p=v.next()).done;)if((m=i(v,_,p.value,e))===s||m===l)return m};e.BREAK=s,e.RETURN=l},function(t,e,n){var r=n(9);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(14),i=n(4)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(6),i=n(62).set,o=r.MutationObserver||r.WebKitMutationObserver,u=r.process,a=r.Promise,c="process"==n(22)(u);t.exports=function(){var t,e,n,s=function(){var r,i;for(c&&(r=u.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){u.nextTick(s)};else if(o){var l=!0,f=document.createTextNode("");new o(s).observe(f,{characterData:!0}),n=function(){f.data=l=!l}}else if(a&&a.resolve){var d=a.resolve();n=function(){d.then(s)}}else n=function(){i.call(r,s)};return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){var r=n(12);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},function(t,e,n){"use strict";var r=n(6),i=n(3),o=n(16),u=n(13),a=n(4)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];u&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(4)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],u=o[r]();u.next=function(){return{done:n=!0}},o[r]=function(){return u},t(o)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(11),i=n(3),o=n(6),u=n(61),a=n(64);r(r.P+r.R,"Promise",{finally:function(t){var e=u(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var r=n(11),i=n(42),o=n(63);r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){var r=n(145),i=n(148),o=i(r);t.exports=o},function(t,e,n){function r(t,e){return t&&i(t,e,o)}var i=n(146),o=n(24);t.exports=r},function(t,e,n){var r=n(147),i=r();t.exports=i},function(t,e){function n(t){return function(e,n,r){for(var i=-1,o=Object(e),u=r(e),a=u.length;a--;){var c=u[t?a:++i];if(!1===n(o[c],c,o))break}return e}}t.exports=n},function(t,e,n){function r(t,e){return function(n,r){if(null==n)return n;if(!i(n))return t(n,r);for(var o=n.length,u=e?o:-1,a=Object(n);(e?u--:++u<o)&&!1!==r(a[u],u,a););return n}}var i=n(44);t.exports=r},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){function r(t,e){e=i(e,t);for(var n=0,r=e.length;null!=t&&n<r;)t=t[o(e[n++])];return n&&n==r?t:void 0}var i=n(66),o=n(69);t.exports=r},function(t,e,n){function r(t,e){if(i(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||(a.test(t)||!u.test(t)||null!=e&&t in Object(e))}var i=n(2),o=n(26),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=r},function(t,e,n){var r=n(154),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,u=r(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)}),e});t.exports=u},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){function r(t){if("string"==typeof t)return t;if(u(t))return o(t,r)+"";if(a(t))return l?l.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}var i=n(156),o=n(158),u=n(2),a=n(26),c=1/0,s=i?i.prototype:void 0,l=s?s.toString:void 0;t.exports=r},function(t,e,n){var r=n(27),i=r.Symbol;t.exports=i},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(68))},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}t.exports=n},function(t,e,n){"use strict";e.__esModule=!0;var r=n(160),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e,n){return e in t?(0,i.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){t.exports={default:n(161),__esModule:!0}},function(t,e,n){n(162);var r=n(3).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(11);r(r.S+r.F*!n(13),"Object",{defineProperty:n(16).f})},function(t,e,n){"use strict";function r(t){n(164)}var i=n(72),o=n(306),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.a=c.exports},function(t,e){},function(t,e,n){function r(t){return i(t,o|u)}var i=n(73),o=1,u=4;t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var i=n(167),o=n(168),u=n(169),a=n(170),c=n(171);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=u,r.prototype.has=a,r.prototype.set=c,t.exports=r},function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,e,n){function r(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():u.call(e,n,1),--this.size,!0)}var i=n(29),o=Array.prototype,u=o.splice;t.exports=r},function(t,e,n){function r(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}var i=n(29);t.exports=r},function(t,e,n){function r(t){return i(this.__data__,t)>-1}var i=n(29);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var i=n(29);t.exports=r},function(t,e,n){var r=n(173),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},function(t,e,n){function r(t,e){return t&&i(e,o(e),t)}var i=n(30),o=n(24);t.exports=r},function(t,e,n){function r(t,e){return t&&i(e,o(e),t)}var i=n(30),o=n(75);t.exports=r},function(t,e,n){(function(t){function r(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}var i=n(27),o="object"==typeof e&&e&&!e.nodeType&&e,u=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=u&&u.exports===o,c=a?i.Buffer:void 0,s=c?c.allocUnsafe:void 0;t.exports=r}).call(e,n(76)(t))},function(t,e){function n(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}t.exports=n},function(t,e,n){function r(t,e){return i(t,o(t),e)}var i=n(30),o=n(179);t.exports=r},function(t,e){function n(){return[]}t.exports=n},function(t,e,n){function r(t,e){return i(t,o(t),e)}var i=n(30),o=n(181);t.exports=r},function(t,e){function n(){return[]}t.exports=n},function(t,e,n){var r=n(25),i=r(Object.keys,Object);t.exports=i},function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},function(t,e){function n(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&i.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var r=Object.prototype,i=r.hasOwnProperty;t.exports=n},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){function r(t){return"function"!=typeof t.constructor||u(t)?{}:i(o(t))}var i=n(187),o=n(188),u=n(78);t.exports=r},function(t,e,n){var r=n(7),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},function(t,e,n){var r=n(25),i=r(Object.getPrototypeOf,Object);t.exports=i},function(t,e){function n(){return!1}t.exports=n},function(t,e){function n(){return!1}t.exports=n},function(t,e,n){t.exports=n(23)},function(t,e,n){function r(t,e,n){return null==t?t:i(t,e,n)}var i=n(193);t.exports=r},function(t,e,n){function r(t,e,n,r){if(!a(t))return t;e=o(e,t);for(var s=-1,l=e.length,f=l-1,d=t;null!=d&&++s<l;){var h=c(e[s]),p=n;if(s!=f){var v=d[h];p=r?r(v,h,d):void 0,void 0===p&&(p=a(v)?v:u(e[s+1])?[]:{})}i(d,h,p),d=d[h]}return t}var i=n(47),o=n(66),u=n(194),a=n(7),c=n(69);t.exports=r},function(t,e){function n(t,e){var n=typeof t;return!!(e=null==e?r:e)&&("number"==n||"symbol"!=n&&i.test(t))&&t>-1&&t%1==0&&t<e}var r=9007199254740991,i=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,e,n){(function(t,r){var i;(function(){function o(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function u(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var u=t[i];e(r,u,n(u),t)}return r}function a(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function c(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function s(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function l(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var u=t[n];e(u,n,t)&&(o[i++]=u)}return o}function f(t,e){return!!(null==t?0:t.length)&&w(t,e,0)>-1}function d(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function h(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function p(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function v(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function m(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function g(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function _(t){return t.split("")}function y(t){return t.match(Le)||[]}function b(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function x(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function w(t,e,n){return e===e?K(t,e,n):x(t,j,n)}function O(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function j(t){return t!==t}function k(t,e){var n=null==t?0:t.length;return n?I(t,e)/n:Dt}function S(t){return function(e){return null==e?rt:e[t]}}function C(t){return function(e){return null==t?rt:t[e]}}function M(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function T(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function I(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);o!==rt&&(n=n===rt?o:n+o)}return n}function P(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function A(t,e){return h(e,function(e){return[e,t[e]]})}function E(t){return function(e){return t(e)}}function D(t,e){return h(e,function(e){return t[e]})}function F(t,e){return t.has(e)}function $(t,e){for(var n=-1,r=t.length;++n<r&&w(e,t[n],0)>-1;);return n}function N(t,e){for(var n=t.length;n--&&w(e,t[n],0)>-1;);return n}function L(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}function R(t){return"\\"+Sn[t]}function V(t,e){return null==t?rt:t[e]}function z(t){return gn.test(t)}function U(t){return _n.test(t)}function Y(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function q(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function B(t,e){return function(n){return t(e(n))}}function H(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var u=t[n];u!==e&&u!==st||(t[n]=st,o[i++]=n)}return o}function W(t,e){return"__proto__"==e?rt:t[e]}function Z(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function G(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function K(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function J(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}function X(t){return z(t)?tt(t):Yn(t)}function Q(t){return z(t)?et(t):_(t)}function tt(t){for(var e=vn.lastIndex=0;vn.test(t);)++e;return e}function et(t){return t.match(vn)||[]}function nt(t){return t.match(mn)||[]}var rt,it=200,ot="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",ut="Expected a function",at="__lodash_hash_undefined__",ct=500,st="__lodash_placeholder__",lt=1,ft=2,dt=4,ht=1,pt=2,vt=1,mt=2,gt=4,_t=8,yt=16,bt=32,xt=64,wt=128,Ot=256,jt=512,kt=30,St="...",Ct=800,Mt=16,Tt=1,It=2,Pt=1/0,At=9007199254740991,Et=1.7976931348623157e308,Dt=NaN,Ft=4294967295,$t=Ft-1,Nt=Ft>>>1,Lt=[["ary",wt],["bind",vt],["bindKey",mt],["curry",_t],["curryRight",yt],["flip",jt],["partial",bt],["partialRight",xt],["rearg",Ot]],Rt="[object Arguments]",Vt="[object Array]",zt="[object AsyncFunction]",Ut="[object Boolean]",Yt="[object Date]",qt="[object DOMException]",Bt="[object Error]",Ht="[object Function]",Wt="[object GeneratorFunction]",Zt="[object Map]",Gt="[object Number]",Kt="[object Null]",Jt="[object Object]",Xt="[object Proxy]",Qt="[object RegExp]",te="[object Set]",ee="[object String]",ne="[object Symbol]",re="[object Undefined]",ie="[object WeakMap]",oe="[object WeakSet]",ue="[object ArrayBuffer]",ae="[object DataView]",ce="[object Float32Array]",se="[object Float64Array]",le="[object Int8Array]",fe="[object Int16Array]",de="[object Int32Array]",he="[object Uint8Array]",pe="[object Uint8ClampedArray]",ve="[object Uint16Array]",me="[object Uint32Array]",ge=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,ye=/(__e\(.*?\)|\b__t\)) \+\n'';/g,be=/&(?:amp|lt|gt|quot|#39);/g,xe=/[&<>"']/g,we=RegExp(be.source),Oe=RegExp(xe.source),je=/<%-([\s\S]+?)%>/g,ke=/<%([\s\S]+?)%>/g,Se=/<%=([\s\S]+?)%>/g,Ce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Me=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ie=/[\\^$.*+?()[\]{}|]/g,Pe=RegExp(Ie.source),Ae=/^\s+|\s+$/g,Ee=/^\s+/,De=/\s+$/,Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$e=/\{\n\/\* \[wrapped with (.+)\] \*/,Ne=/,? & /,Le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Re=/\\(\\)?/g,Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ze=/\w*$/,Ue=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,qe=/^\[object .+?Constructor\]$/,Be=/^0o[0-7]+$/i,He=/^(?:0|[1-9]\d*)$/,We=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Ge=/['\n\r\u2028\u2029\\]/g,Ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Je="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Xe="["+Je+"]",Qe="["+Ke+"]",tn="[a-z\\xdf-\\xf6\\xf8-\\xff]",en="[^\\ud800-\\udfff"+Je+"\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",nn="\\ud83c[\\udffb-\\udfff]",rn="(?:\\ud83c[\\udde6-\\uddff]){2}",on="[\\ud800-\\udbff][\\udc00-\\udfff]",un="[A-Z\\xc0-\\xd6\\xd8-\\xde]",an="(?:"+tn+"|"+en+")",cn="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",sn="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",rn,on].join("|")+")[\\ufe0e\\ufe0f]?"+cn+")*",ln="[\\ufe0e\\ufe0f]?"+cn+sn,fn="(?:"+["[\\u2700-\\u27bf]",rn,on].join("|")+")"+ln,dn="(?:"+["[^\\ud800-\\udfff]"+Qe+"?",Qe,rn,on,"[\\ud800-\\udfff]"].join("|")+")",hn=RegExp("['’]","g"),pn=RegExp(Qe,"g"),vn=RegExp(nn+"(?="+nn+")|"+dn+ln,"g"),mn=RegExp([un+"?"+tn+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Xe,un,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Xe,un+an,"$"].join("|")+")",un+"?"+an+"+(?:['’](?:d|ll|m|re|s|t|ve))?",un+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",fn].join("|"),"g"),gn=RegExp("[\\u200d\\ud800-\\udfff"+Ke+"\\ufe0e\\ufe0f]"),_n=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],bn=-1,xn={};xn[ce]=xn[se]=xn[le]=xn[fe]=xn[de]=xn[he]=xn[pe]=xn[ve]=xn[me]=!0,xn[Rt]=xn[Vt]=xn[ue]=xn[Ut]=xn[ae]=xn[Yt]=xn[Bt]=xn[Ht]=xn[Zt]=xn[Gt]=xn[Jt]=xn[Qt]=xn[te]=xn[ee]=xn[ie]=!1;var wn={};wn[Rt]=wn[Vt]=wn[ue]=wn[ae]=wn[Ut]=wn[Yt]=wn[ce]=wn[se]=wn[le]=wn[fe]=wn[de]=wn[Zt]=wn[Gt]=wn[Jt]=wn[Qt]=wn[te]=wn[ee]=wn[ne]=wn[he]=wn[pe]=wn[ve]=wn[me]=!0,wn[Bt]=wn[Ht]=wn[ie]=!1;var On={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},jn={"&":"&","<":"<",">":">",'"':""","'":"'"},kn={"&":"&","<":"<",">":">",""":'"',"'":"'"},Sn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cn=parseFloat,Mn=parseInt,Tn="object"==typeof t&&t&&t.Object===Object&&t,In="object"==typeof self&&self&&self.Object===Object&&self,Pn=Tn||In||Function("return this")(),An="object"==typeof e&&e&&!e.nodeType&&e,En=An&&"object"==typeof r&&r&&!r.nodeType&&r,Dn=En&&En.exports===An,Fn=Dn&&Tn.process,$n=function(){try{var t=En&&En.require&&En.require("util").types;return t||Fn&&Fn.binding&&Fn.binding("util")}catch(t){}}(),Nn=$n&&$n.isArrayBuffer,Ln=$n&&$n.isDate,Rn=$n&&$n.isMap,Vn=$n&&$n.isRegExp,zn=$n&&$n.isSet,Un=$n&&$n.isTypedArray,Yn=S("length"),qn=C(On),Bn=C(jn),Hn=C(kn),Wn=function t(e){function n(t){if(ec(t)&&!hd(t)&&!(t instanceof _)){if(t instanceof i)return t;if(dl.call(t,"__wrapped__"))return Xo(t)}return new i(t)}function r(){}function i(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=rt}function _(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ft,this.__views__=[]}function C(){var t=new _(this.__wrapped__);return t.__actions__=Ei(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ei(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ei(this.__views__),t}function K(){if(this.__filtered__){var t=new _(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function tt(){var t=this.__wrapped__.value(),e=this.__dir__,n=hd(t),r=e<0,i=n?t.length:0,o=Oo(0,i,this.__views__),u=o.start,a=o.end,c=a-u,s=r?a:u-1,l=this.__iteratees__,f=l.length,d=0,h=Ul(c,this.__takeCount__);if(!n||!r&&i==c&&h==c)return mi(t,this.__actions__);var p=[];t:for(;c--&&d<h;){s+=e;for(var v=-1,m=t[s];++v<f;){var g=l[v],_=g.iteratee,y=g.type,b=_(m);if(y==It)m=b;else if(!b){if(y==Tt)continue t;break t}}p[d++]=m}return p}function et(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Le(){this.__data__=Xl?Xl(null):{},this.size=0}function Ke(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Je(t){var e=this.__data__;if(Xl){var n=e[t];return n===at?rt:n}return dl.call(e,t)?e[t]:rt}function Xe(t){var e=this.__data__;return Xl?e[t]!==rt:dl.call(e,t)}function Qe(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Xl&&e===rt?at:e,this}function tn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function en(){this.__data__=[],this.size=0}function nn(t){var e=this.__data__,n=Zn(e,t);return!(n<0)&&(n==e.length-1?e.pop():Sl.call(e,n,1),--this.size,!0)}function rn(t){var e=this.__data__,n=Zn(e,t);return n<0?rt:e[n][1]}function on(t){return Zn(this.__data__,t)>-1}function un(t,e){var n=this.__data__,r=Zn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function an(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function cn(){this.size=0,this.__data__={hash:new et,map:new(Zl||tn),string:new et}}function sn(t){var e=yo(this,t).delete(t);return this.size-=e?1:0,e}function ln(t){return yo(this,t).get(t)}function fn(t){return yo(this,t).has(t)}function dn(t,e){var n=yo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function vn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new an;++e<n;)this.add(t[e])}function mn(t){return this.__data__.set(t,at),this}function gn(t){return this.__data__.has(t)}function _n(t){var e=this.__data__=new tn(t);this.size=e.size}function On(){this.__data__=new tn,this.size=0}function jn(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function kn(t){return this.__data__.get(t)}function Sn(t){return this.__data__.has(t)}function Tn(t,e){var n=this.__data__;if(n instanceof tn){var r=n.__data__;if(!Zl||r.length<it-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new an(r)}return n.set(t,e),this.size=n.size,this}function In(t,e){var n=hd(t),r=!n&&dd(t),i=!n&&!r&&vd(t),o=!n&&!r&&!i&&bd(t),u=n||r||i||o,a=u?P(t.length,ol):[],c=a.length;for(var s in t)!e&&!dl.call(t,s)||u&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Po(s,c))||a.push(s);return a}function An(t){var e=t.length;return e?t[Jr(0,e-1)]:rt}function En(t,e){return Zo(Ei(t),tr(e,0,t.length))}function Fn(t){return Zo(Ei(t))}function $n(t,e,n){(n===rt||za(t[e],n))&&(n!==rt||e in t)||Xn(t,e,n)}function Yn(t,e,n){var r=t[e];dl.call(t,e)&&za(r,n)&&(n!==rt||e in t)||Xn(t,e,n)}function Zn(t,e){for(var n=t.length;n--;)if(za(t[n][0],e))return n;return-1}function Gn(t,e,n,r){return ff(t,function(t,i,o){e(r,t,n(t),o)}),r}function Kn(t,e){return t&&Di(e,$c(e),t)}function Jn(t,e){return t&&Di(e,Nc(e),t)}function Xn(t,e,n){"__proto__"==e&&Il?Il(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Qn(t,e){for(var n=-1,r=e.length,i=Xs(r),o=null==t;++n<r;)i[n]=o?rt:Ec(t,e[n]);return i}function tr(t,e,n){return t===t&&(n!==rt&&(t=t<=n?t:n),e!==rt&&(t=t>=e?t:e)),t}function er(t,e,n,r,i,o){var u,c=e<,s=e&ft,l=e&dt;if(n&&(u=i?n(t,r,i,o):n(t)),u!==rt)return u;if(!tc(t))return t;var f=hd(t);if(f){if(u=So(t),!c)return Ei(t,u)}else{var d=Of(t),h=d==Ht||d==Wt;if(vd(t))return Oi(t,c);if(d==Jt||d==Rt||h&&!i){if(u=s||h?{}:Co(t),!c)return s?$i(t,Jn(u,t)):Fi(t,Kn(u,t))}else{if(!wn[d])return i?t:{};u=Mo(t,d,c)}}o||(o=new _n);var p=o.get(t);if(p)return p;if(o.set(t,u),yd(t))return t.forEach(function(r){u.add(er(r,e,n,r,t,o))}),u;if(gd(t))return t.forEach(function(r,i){u.set(i,er(r,e,n,i,t,o))}),u;var v=l?s?vo:po:s?Nc:$c,m=f?rt:v(t);return a(m||t,function(r,i){m&&(i=r,r=t[i]),Yn(u,i,er(r,e,n,i,t,o))}),u}function nr(t){var e=$c(t);return function(n){return rr(n,t,e)}}function rr(t,e,n){var r=n.length;if(null==t)return!r;for(t=rl(t);r--;){var i=n[r],o=e[i],u=t[i];if(u===rt&&!(i in t)||!o(u))return!1}return!0}function ir(t,e,n){if("function"!=typeof t)throw new ul(ut);return Sf(function(){t.apply(rt,n)},e)}function or(t,e,n,r){var i=-1,o=f,u=!0,a=t.length,c=[],s=e.length;if(!a)return c;n&&(e=h(e,E(n))),r?(o=d,u=!1):e.length>=it&&(o=F,u=!1,e=new vn(e));t:for(;++i<a;){var l=t[i],p=null==n?l:n(l);if(l=r||0!==l?l:0,u&&p===p){for(var v=s;v--;)if(e[v]===p)continue t;c.push(l)}else o(e,p,r)||c.push(l)}return c}function ur(t,e){var n=!0;return ff(t,function(t,r,i){return n=!!e(t,r,i)}),n}function ar(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],u=e(o);if(null!=u&&(a===rt?u===u&&!dc(u):n(u,a)))var a=u,c=o}return c}function cr(t,e,n,r){var i=t.length;for(n=_c(n),n<0&&(n=-n>i?0:i+n),r=r===rt||r>i?i:_c(r),r<0&&(r+=i),r=n>r?0:yc(r);n<r;)t[n++]=e;return t}function sr(t,e){var n=[];return ff(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function lr(t,e,n,r,i){var o=-1,u=t.length;for(n||(n=Io),i||(i=[]);++o<u;){var a=t[o];e>0&&n(a)?e>1?lr(a,e-1,n,r,i):p(i,a):r||(i[i.length]=a)}return i}function fr(t,e){return t&&hf(t,e,$c)}function dr(t,e){return t&&pf(t,e,$c)}function hr(t,e){return l(e,function(e){return Ja(t[e])})}function pr(t,e){e=xi(e,t);for(var n=0,r=e.length;null!=t&&n<r;)t=t[Go(e[n++])];return n&&n==r?t:rt}function vr(t,e,n){var r=e(t);return hd(t)?r:p(r,n(t))}function mr(t){return null==t?t===rt?re:Kt:Tl&&Tl in rl(t)?wo(t):Uo(t)}function gr(t,e){return t>e}function _r(t,e){return null!=t&&dl.call(t,e)}function yr(t,e){return null!=t&&e in rl(t)}function br(t,e,n){return t>=Ul(e,n)&&t<zl(e,n)}function xr(t,e,n){for(var r=n?d:f,i=t[0].length,o=t.length,u=o,a=Xs(o),c=1/0,s=[];u--;){var l=t[u];u&&e&&(l=h(l,E(e))),c=Ul(l.length,c),a[u]=!n&&(e||i>=120&&l.length>=120)?new vn(u&&l):rt}l=t[0];var p=-1,v=a[0];t:for(;++p<i&&s.length<c;){var m=l[p],g=e?e(m):m;if(m=n||0!==m?m:0,!(v?F(v,g):r(s,g,n))){for(u=o;--u;){var _=a[u];if(!(_?F(_,g):r(t[u],g,n)))continue t}v&&v.push(g),s.push(m)}}return s}function wr(t,e,n,r){return fr(t,function(t,i,o){e(r,n(t),i,o)}),r}function Or(t,e,n){e=xi(e,t),t=qo(t,e);var r=null==t?t:t[Go(gu(e))];return null==r?rt:o(r,t,n)}function jr(t){return ec(t)&&mr(t)==Rt}function kr(t){return ec(t)&&mr(t)==ue}function Sr(t){return ec(t)&&mr(t)==Yt}function Cr(t,e,n,r,i){return t===e||(null==t||null==e||!ec(t)&&!ec(e)?t!==t&&e!==e:Mr(t,e,n,r,Cr,i))}function Mr(t,e,n,r,i,o){var u=hd(t),a=hd(e),c=u?Vt:Of(t),s=a?Vt:Of(e);c=c==Rt?Jt:c,s=s==Rt?Jt:s;var l=c==Jt,f=s==Jt,d=c==s;if(d&&vd(t)){if(!vd(e))return!1;u=!0,l=!1}if(d&&!l)return o||(o=new _n),u||bd(t)?so(t,e,n,r,i,o):lo(t,e,c,n,r,i,o);if(!(n&ht)){var h=l&&dl.call(t,"__wrapped__"),p=f&&dl.call(e,"__wrapped__");if(h||p){var v=h?t.value():t,m=p?e.value():e;return o||(o=new _n),i(v,m,n,r,o)}}return!!d&&(o||(o=new _n),fo(t,e,n,r,i,o))}function Tr(t){return ec(t)&&Of(t)==Zt}function Ir(t,e,n,r){var i=n.length,o=i,u=!r;if(null==t)return!o;for(t=rl(t);i--;){var a=n[i];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){a=n[i];var c=a[0],s=t[c],l=a[1];if(u&&a[2]){if(s===rt&&!(c in t))return!1}else{var f=new _n;if(r)var d=r(s,l,c,t,e,f);if(!(d===rt?Cr(l,s,ht|pt,r,f):d))return!1}}return!0}function Pr(t){return!(!tc(t)||$o(t))&&(Ja(t)?_l:qe).test(Ko(t))}function Ar(t){return ec(t)&&mr(t)==Qt}function Er(t){return ec(t)&&Of(t)==te}function Dr(t){return ec(t)&&Qa(t.length)&&!!xn[mr(t)]}function Fr(t){return"function"==typeof t?t:null==t?Ss:"object"==typeof t?hd(t)?zr(t[0],t[1]):Vr(t):Ds(t)}function $r(t){if(!No(t))return Vl(t);var e=[];for(var n in rl(t))dl.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Nr(t){if(!tc(t))return zo(t);var e=No(t),n=[];for(var r in t)("constructor"!=r||!e&&dl.call(t,r))&&n.push(r);return n}function Lr(t,e){return t<e}function Rr(t,e){var n=-1,r=Ua(t)?Xs(t.length):[];return ff(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function Vr(t){var e=bo(t);return 1==e.length&&e[0][2]?Ro(e[0][0],e[0][1]):function(n){return n===t||Ir(n,t,e)}}function zr(t,e){return Eo(t)&&Lo(e)?Ro(Go(t),e):function(n){var r=Ec(n,t);return r===rt&&r===e?Fc(n,t):Cr(e,r,ht|pt)}}function Ur(t,e,n,r,i){t!==e&&hf(e,function(o,u){if(tc(o))i||(i=new _n),Yr(t,e,u,n,Ur,r,i);else{var a=r?r(W(t,u),o,u+"",t,e,i):rt;a===rt&&(a=o),$n(t,u,a)}},Nc)}function Yr(t,e,n,r,i,o,u){var a=W(t,n),c=W(e,n),s=u.get(c);if(s)return void $n(t,n,s);var l=o?o(a,c,n+"",t,e,u):rt,f=l===rt;if(f){var d=hd(c),h=!d&&vd(c),p=!d&&!h&&bd(c);l=c,d||h||p?hd(a)?l=a:Ya(a)?l=Ei(a):h?(f=!1,l=Oi(c,!0)):p?(f=!1,l=Mi(c,!0)):l=[]:sc(c)||dd(c)?(l=a,dd(a)?l=xc(a):(!tc(a)||r&&Ja(a))&&(l=Co(c))):f=!1}f&&(u.set(c,l),i(l,c,r,o,u),u.delete(c)),$n(t,n,l)}function qr(t,e){var n=t.length;if(n)return e+=e<0?n:0,Po(e,n)?t[e]:rt}function Br(t,e,n){var r=-1;return e=h(e.length?e:[Ss],E(_o())),T(Rr(t,function(t,n,i){return{criteria:h(e,function(e){return e(t)}),index:++r,value:t}}),function(t,e){return Ii(t,e,n)})}function Hr(t,e){return Wr(t,e,function(e,n){return Fc(t,n)})}function Wr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var u=e[r],a=pr(t,u);n(a,u)&&ri(o,xi(u,t),a)}return o}function Zr(t){return function(e){return pr(e,t)}}function Gr(t,e,n,r){var i=r?O:w,o=-1,u=e.length,a=t;for(t===e&&(e=Ei(e)),n&&(a=h(t,E(n)));++o<u;)for(var c=0,s=e[o],l=n?n(s):s;(c=i(a,l,c,r))>-1;)a!==t&&Sl.call(a,c,1),Sl.call(t,c,1);return t}function Kr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;Po(i)?Sl.call(t,i,1):hi(t,i)}}return t}function Jr(t,e){return t+Fl(Bl()*(e-t+1))}function Xr(t,e,n,r){for(var i=-1,o=zl(Dl((e-t)/(n||1)),0),u=Xs(o);o--;)u[r?o:++i]=t,t+=n;return u}function Qr(t,e){var n="";if(!t||e<1||e>At)return n;do{e%2&&(n+=t),(e=Fl(e/2))&&(t+=t)}while(e);return n}function ti(t,e){return Cf(Yo(t,e,Ss),t+"")}function ei(t){return An(Gc(t))}function ni(t,e){var n=Gc(t);return Zo(n,tr(e,0,n.length))}function ri(t,e,n,r){if(!tc(t))return t;e=xi(e,t);for(var i=-1,o=e.length,u=o-1,a=t;null!=a&&++i<o;){var c=Go(e[i]),s=n;if(i!=u){var l=a[c];s=r?r(l,c,a):rt,s===rt&&(s=tc(l)?l:Po(e[i+1])?[]:{})}Yn(a,c,s),a=a[c]}return t}function ii(t){return Zo(Gc(t))}function oi(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Xs(i);++r<i;)o[r]=t[r+e];return o}function ui(t,e){var n;return ff(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}function ai(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e===e&&i<=Nt){for(;r<i;){var o=r+i>>>1,u=t[o];null!==u&&!dc(u)&&(n?u<=e:u<e)?r=o+1:i=o}return i}return ci(t,e,Ss,n)}function ci(t,e,n,r){e=n(e);for(var i=0,o=null==t?0:t.length,u=e!==e,a=null===e,c=dc(e),s=e===rt;i<o;){var l=Fl((i+o)/2),f=n(t[l]),d=f!==rt,h=null===f,p=f===f,v=dc(f);if(u)var m=r||p;else m=s?p&&(r||d):a?p&&d&&(r||!h):c?p&&d&&!h&&(r||!v):!h&&!v&&(r?f<=e:f<e);m?i=l+1:o=l}return Ul(o,$t)}function si(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var u=t[n],a=e?e(u):u;if(!n||!za(a,c)){var c=a;o[i++]=0===u?0:u}}return o}function li(t){return"number"==typeof t?t:dc(t)?Dt:+t}function fi(t){if("string"==typeof t)return t;if(hd(t))return h(t,fi)+"";if(dc(t))return sf?sf.call(t):"";var e=t+"";return"0"==e&&1/t==-Pt?"-0":e}function di(t,e,n){var r=-1,i=f,o=t.length,u=!0,a=[],c=a;if(n)u=!1,i=d;else if(o>=it){var s=e?null:yf(t);if(s)return Z(s);u=!1,i=F,c=new vn}else c=e?[]:a;t:for(;++r<o;){var l=t[r],h=e?e(l):l;if(l=n||0!==l?l:0,u&&h===h){for(var p=c.length;p--;)if(c[p]===h)continue t;e&&c.push(h),a.push(l)}else i(c,h,n)||(c!==a&&c.push(h),a.push(l))}return a}function hi(t,e){return e=xi(e,t),null==(t=qo(t,e))||delete t[Go(gu(e))]}function pi(t,e,n,r){return ri(t,e,n(pr(t,e)),r)}function vi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?oi(t,r?0:o,r?o+1:i):oi(t,r?o+1:0,r?i:o)}function mi(t,e){var n=t;return n instanceof _&&(n=n.value()),v(e,function(t,e){return e.func.apply(e.thisArg,p([t],e.args))},n)}function gi(t,e,n){var r=t.length;if(r<2)return r?di(t[0]):[];for(var i=-1,o=Xs(r);++i<r;)for(var u=t[i],a=-1;++a<r;)a!=i&&(o[i]=or(o[i]||u,t[a],e,n));return di(lr(o,1),e,n)}function _i(t,e,n){for(var r=-1,i=t.length,o=e.length,u={};++r<i;){var a=r<o?e[r]:rt;n(u,t[r],a)}return u}function yi(t){return Ya(t)?t:[]}function bi(t){return"function"==typeof t?t:Ss}function xi(t,e){return hd(t)?t:Eo(t,e)?[t]:Mf(Oc(t))}function wi(t,e,n){var r=t.length;return n=n===rt?r:n,!e&&n>=r?t:oi(t,e,n)}function Oi(t,e){if(e)return t.slice();var n=t.length,r=wl?wl(n):new t.constructor(n);return t.copy(r),r}function ji(t){var e=new t.constructor(t.byteLength);return new xl(e).set(new xl(t)),e}function ki(t,e){var n=e?ji(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Si(t){var e=new t.constructor(t.source,ze.exec(t));return e.lastIndex=t.lastIndex,e}function Ci(t){return cf?rl(cf.call(t)):{}}function Mi(t,e){var n=e?ji(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ti(t,e){if(t!==e){var n=t!==rt,r=null===t,i=t===t,o=dc(t),u=e!==rt,a=null===e,c=e===e,s=dc(e);if(!a&&!s&&!o&&t>e||o&&u&&c&&!a&&!s||r&&u&&c||!n&&c||!i)return 1;if(!r&&!o&&!s&&t<e||s&&n&&i&&!r&&!o||a&&n&&i||!u&&i||!c)return-1}return 0}function Ii(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,u=i.length,a=n.length;++r<u;){var c=Ti(i[r],o[r]);if(c){if(r>=a)return c;return c*("desc"==n[r]?-1:1)}}return t.index-e.index}function Pi(t,e,n,r){for(var i=-1,o=t.length,u=n.length,a=-1,c=e.length,s=zl(o-u,0),l=Xs(c+s),f=!r;++a<c;)l[a]=e[a];for(;++i<u;)(f||i<o)&&(l[n[i]]=t[i]);for(;s--;)l[a++]=t[i++];return l}function Ai(t,e,n,r){for(var i=-1,o=t.length,u=-1,a=n.length,c=-1,s=e.length,l=zl(o-a,0),f=Xs(l+s),d=!r;++i<l;)f[i]=t[i];for(var h=i;++c<s;)f[h+c]=e[c];for(;++u<a;)(d||i<o)&&(f[h+n[u]]=t[i++]);return f}function Ei(t,e){var n=-1,r=t.length;for(e||(e=Xs(r));++n<r;)e[n]=t[n];return e}function Di(t,e,n,r){var i=!n;n||(n={});for(var o=-1,u=e.length;++o<u;){var a=e[o],c=r?r(n[a],t[a],a,n,t):rt;c===rt&&(c=t[a]),i?Xn(n,a,c):Yn(n,a,c)}return n}function Fi(t,e){return Di(t,xf(t),e)}function $i(t,e){return Di(t,wf(t),e)}function Ni(t,e){return function(n,r){var i=hd(n)?u:Gn,o=e?e():{};return i(n,t,_o(r,2),o)}}function Li(t){return ti(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:rt,u=i>2?n[2]:rt;for(o=t.length>3&&"function"==typeof o?(i--,o):rt,u&&Ao(n[0],n[1],u)&&(o=i<3?rt:o,i=1),e=rl(e);++r<i;){var a=n[r];a&&t(e,a,r,o)}return e})}function Ri(t,e){return function(n,r){if(null==n)return n;if(!Ua(n))return t(n,r);for(var i=n.length,o=e?i:-1,u=rl(n);(e?o--:++o<i)&&!1!==r(u[o],o,u););return n}}function Vi(t){return function(e,n,r){for(var i=-1,o=rl(e),u=r(e),a=u.length;a--;){var c=u[t?a:++i];if(!1===n(o[c],c,o))break}return e}}function zi(t,e,n){function r(){return(this&&this!==Pn&&this instanceof r?o:t).apply(i?n:this,arguments)}var i=e&vt,o=qi(t);return r}function Ui(t){return function(e){e=Oc(e);var n=z(e)?Q(e):rt,r=n?n[0]:e.charAt(0),i=n?wi(n,1).join(""):e.slice(1);return r[t]()+i}}function Yi(t){return function(e){return v(xs(es(e).replace(hn,"")),t,"")}}function qi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=lf(t.prototype),r=t.apply(n,e);return tc(r)?r:n}}function Bi(t,e,n){function r(){for(var u=arguments.length,a=Xs(u),c=u,s=go(r);c--;)a[c]=arguments[c];var l=u<3&&a[0]!==s&&a[u-1]!==s?[]:H(a,s);return(u-=l.length)<n?no(t,e,Zi,r.placeholder,rt,a,l,rt,rt,n-u):o(this&&this!==Pn&&this instanceof r?i:t,this,a)}var i=qi(t);return r}function Hi(t){return function(e,n,r){var i=rl(e);if(!Ua(e)){var o=_o(n,3);e=$c(e),n=function(t){return o(i[t],t,i)}}var u=t(e,n,r);return u>-1?i[o?e[u]:u]:rt}}function Wi(t){return ho(function(e){var n=e.length,r=n,o=i.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new ul(ut);if(o&&!a&&"wrapper"==mo(u))var a=new i([],!0)}for(r=a?r:n;++r<n;){u=e[r];var c=mo(u),s="wrapper"==c?bf(u):rt;a=s&&Fo(s[0])&&s[1]==(wt|_t|bt|Ot)&&!s[4].length&&1==s[9]?a[mo(s[0])].apply(a,s[3]):1==u.length&&Fo(u)?a[c]():a.thru(u)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&hd(r))return a.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}})}function Zi(t,e,n,r,i,o,u,a,c,s){function l(){for(var g=arguments.length,_=Xs(g),y=g;y--;)_[y]=arguments[y];if(p)var b=go(l),x=L(_,b);if(r&&(_=Pi(_,r,i,p)),o&&(_=Ai(_,o,u,p)),g-=x,p&&g<s){var w=H(_,b);return no(t,e,Zi,l.placeholder,n,_,w,a,c,s-g)}var O=d?n:this,j=h?O[t]:t;return g=_.length,a?_=Bo(_,a):v&&g>1&&_.reverse(),f&&c<g&&(_.length=c),this&&this!==Pn&&this instanceof l&&(j=m||qi(j)),j.apply(O,_)}var f=e&wt,d=e&vt,h=e&mt,p=e&(_t|yt),v=e&jt,m=h?rt:qi(t);return l}function Gi(t,e){return function(n,r){return wr(n,t,e(r),{})}}function Ki(t,e){return function(n,r){var i;if(n===rt&&r===rt)return e;if(n!==rt&&(i=n),r!==rt){if(i===rt)return r;"string"==typeof n||"string"==typeof r?(n=fi(n),r=fi(r)):(n=li(n),r=li(r)),i=t(n,r)}return i}}function Ji(t){return ho(function(e){return e=h(e,E(_o())),ti(function(n){var r=this;return t(e,function(t){return o(t,r,n)})})})}function Xi(t,e){e=e===rt?" ":fi(e);var n=e.length;if(n<2)return n?Qr(e,t):e;var r=Qr(e,Dl(t/X(e)));return z(e)?wi(Q(r),0,t).join(""):r.slice(0,t)}function Qi(t,e,n,r){function i(){for(var e=-1,c=arguments.length,s=-1,l=r.length,f=Xs(l+c),d=this&&this!==Pn&&this instanceof i?a:t;++s<l;)f[s]=r[s];for(;c--;)f[s++]=arguments[++e];return o(d,u?n:this,f)}var u=e&vt,a=qi(t);return i}function to(t){return function(e,n,r){return r&&"number"!=typeof r&&Ao(e,n,r)&&(n=r=rt),e=gc(e),n===rt?(n=e,e=0):n=gc(n),r=r===rt?e<n?1:-1:gc(r),Xr(e,n,r,t)}}function eo(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=bc(e),n=bc(n)),t(e,n)}}function no(t,e,n,r,i,o,u,a,c,s){var l=e&_t,f=l?u:rt,d=l?rt:u,h=l?o:rt,p=l?rt:o;e|=l?bt:xt,(e&=~(l?xt:bt))>||(e&=~(vt|mt));var v=[t,e,i,h,f,p,d,a,c,s],m=n.apply(rt,v);return Fo(t)&&kf(m,v),m.placeholder=r,Ho(m,t,e)}function ro(t){var e=nl[t];return function(t,n){if(t=bc(t),n=null==n?0:Ul(_c(n),292)){var r=(Oc(t)+"e").split("e");return r=(Oc(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}function io(t){return function(e){var n=Of(e);return n==Zt?q(e):n==te?G(e):A(e,t(e))}}function oo(t,e,n,r,i,o,u,a){var c=e&mt;if(!c&&"function"!=typeof t)throw new ul(ut);var s=r?r.length:0;if(s||(e&=~(bt|xt),r=i=rt),u=u===rt?u:zl(_c(u),0),a=a===rt?a:_c(a),s-=i?i.length:0,e&xt){var l=r,f=i;r=i=rt}var d=c?rt:bf(t),h=[t,e,n,r,i,l,f,o,u,a];if(d&&Vo(h,d),t=h[0],e=h[1],n=h[2],r=h[3],i=h[4],a=h[9]=h[9]===rt?c?0:t.length:zl(h[9]-s,0),!a&&e&(_t|yt)&&(e&=~(_t|yt)),e&&e!=vt)p=e==_t||e==yt?Bi(t,e,a):e!=bt&&e!=(vt|bt)||i.length?Zi.apply(rt,h):Qi(t,e,n,r);else var p=zi(t,e,n);return Ho((d?vf:kf)(p,h),t,e)}function uo(t,e,n,r){return t===rt||za(t,sl[n])&&!dl.call(r,n)?e:t}function ao(t,e,n,r,i,o){return tc(t)&&tc(e)&&(o.set(e,t),Ur(t,e,rt,ao,o),o.delete(e)),t}function co(t){return sc(t)?rt:t}function so(t,e,n,r,i,o){var u=n&ht,a=t.length,c=e.length;if(a!=c&&!(u&&c>a))return!1;var s=o.get(t);if(s&&o.get(e))return s==e;var l=-1,f=!0,d=n&pt?new vn:rt;for(o.set(t,e),o.set(e,t);++l<a;){var h=t[l],p=e[l];if(r)var v=u?r(p,h,l,e,t,o):r(h,p,l,t,e,o);if(v!==rt){if(v)continue;f=!1;break}if(d){if(!g(e,function(t,e){if(!F(d,e)&&(h===t||i(h,t,n,r,o)))return d.push(e)})){f=!1;break}}else if(h!==p&&!i(h,p,n,r,o)){f=!1;break}}return o.delete(t),o.delete(e),f}function lo(t,e,n,r,i,o,u){switch(n){case ae:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ue:return!(t.byteLength!=e.byteLength||!o(new xl(t),new xl(e)));case Ut:case Yt:case Gt:return za(+t,+e);case Bt:return t.name==e.name&&t.message==e.message;case Qt:case ee:return t==e+"";case Zt:var a=q;case te:var c=r&ht;if(a||(a=Z),t.size!=e.size&&!c)return!1;var s=u.get(t);if(s)return s==e;r|=pt,u.set(t,e);var l=so(a(t),a(e),r,i,o,u);return u.delete(t),l;case ne:if(cf)return cf.call(t)==cf.call(e)}return!1}function fo(t,e,n,r,i,o){var u=n&ht,a=po(t),c=a.length;if(c!=po(e).length&&!u)return!1;for(var s=c;s--;){var l=a[s];if(!(u?l in e:dl.call(e,l)))return!1}var f=o.get(t);if(f&&o.get(e))return f==e;var d=!0;o.set(t,e),o.set(e,t);for(var h=u;++s<c;){l=a[s];var p=t[l],v=e[l];if(r)var m=u?r(v,p,l,e,t,o):r(p,v,l,t,e,o);if(!(m===rt?p===v||i(p,v,n,r,o):m)){d=!1;break}h||(h="constructor"==l)}if(d&&!h){var g=t.constructor,_=e.constructor;g!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof g&&g instanceof g&&"function"==typeof _&&_ instanceof _)&&(d=!1)}return o.delete(t),o.delete(e),d}function ho(t){return Cf(Yo(t,rt,su),t+"")}function po(t){return vr(t,$c,xf)}function vo(t){return vr(t,Nc,wf)}function mo(t){for(var e=t.name+"",n=tf[e],r=dl.call(tf,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function go(t){return(dl.call(n,"placeholder")?n:t).placeholder}function _o(){var t=n.iteratee||Cs;return t=t===Cs?Fr:t,arguments.length?t(arguments[0],arguments[1]):t}function yo(t,e){var n=t.__data__;return Do(e)?n["string"==typeof e?"string":"hash"]:n.map}function bo(t){for(var e=$c(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Lo(i)]}return e}function xo(t,e){var n=V(t,e);return Pr(n)?n:rt}function wo(t){var e=dl.call(t,Tl),n=t[Tl];try{t[Tl]=rt;var r=!0}catch(t){}var i=vl.call(t);return r&&(e?t[Tl]=n:delete t[Tl]),i}function Oo(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],u=o.size;switch(o.type){case"drop":t+=u;break;case"dropRight":e-=u;break;case"take":e=Ul(e,t+u);break;case"takeRight":t=zl(t,e-u)}}return{start:t,end:e}}function jo(t){var e=t.match($e);return e?e[1].split(Ne):[]}function ko(t,e,n){e=xi(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var u=Go(e[r]);if(!(o=null!=t&&n(t,u)))break;t=t[u]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Qa(i)&&Po(u,i)&&(hd(t)||dd(t))}function So(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&dl.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function Co(t){return"function"!=typeof t.constructor||No(t)?{}:lf(Ol(t))}function Mo(t,e,n){var r=t.constructor;switch(e){case ue:return ji(t);case Ut:case Yt:return new r(+t);case ae:return ki(t,n);case ce:case se:case le:case fe:case de:case he:case pe:case ve:case me:return Mi(t,n);case Zt:return new r;case Gt:case ee:return new r(t);case Qt:return Si(t);case te:return new r;case ne:return Ci(t)}}function To(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Fe,"{\n/* [wrapped with "+e+"] */\n")}function Io(t){return hd(t)||dd(t)||!!(Cl&&t&&t[Cl])}function Po(t,e){var n=typeof t;return!!(e=null==e?At:e)&&("number"==n||"symbol"!=n&&He.test(t))&&t>-1&&t%1==0&&t<e}function Ao(t,e,n){if(!tc(n))return!1;var r=typeof e;return!!("number"==r?Ua(n)&&Po(e,n.length):"string"==r&&e in n)&&za(n[e],t)}function Eo(t,e){if(hd(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!dc(t))||(Me.test(t)||!Ce.test(t)||null!=e&&t in rl(e))}function Do(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Fo(t){var e=mo(t),r=n[e];if("function"!=typeof r||!(e in _.prototype))return!1;if(t===r)return!0;var i=bf(r);return!!i&&t===i[0]}function $o(t){return!!pl&&pl in t}function No(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||sl)}function Lo(t){return t===t&&!tc(t)}function Ro(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==rt||t in rl(n)))}}function Vo(t,e){var n=t[1],r=e[1],i=n|r,o=i<(vt|mt|wt),u=r==wt&&n==_t||r==wt&&n==Ot&&t[7].length<=e[8]||r==(wt|Ot)&&e[7].length<=e[8]&&n==_t;if(!o&&!u)return t;r&vt&&(t[2]=e[2],i|=n&vt?0:gt);var a=e[3];if(a){var c=t[3];t[3]=c?Pi(c,a,e[4]):a,t[4]=c?H(t[3],st):e[4]}return a=e[5],a&&(c=t[5],t[5]=c?Ai(c,a,e[6]):a,t[6]=c?H(t[5],st):e[6]),a=e[7],a&&(t[7]=a),r&wt&&(t[8]=null==t[8]?e[8]:Ul(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function zo(t){var e=[];if(null!=t)for(var n in rl(t))e.push(n);return e}function Uo(t){return vl.call(t)}function Yo(t,e,n){return e=zl(e===rt?t.length-1:e,0),function(){for(var r=arguments,i=-1,u=zl(r.length-e,0),a=Xs(u);++i<u;)a[i]=r[e+i];i=-1;for(var c=Xs(e+1);++i<e;)c[i]=r[i];return c[e]=n(a),o(t,this,c)}}function qo(t,e){return e.length<2?t:pr(t,oi(e,0,-1))}function Bo(t,e){for(var n=t.length,r=Ul(e.length,n),i=Ei(t);r--;){var o=e[r];t[r]=Po(o,n)?i[o]:rt}return t}function Ho(t,e,n){var r=e+"";return Cf(t,To(r,Jo(jo(r),n)))}function Wo(t){var e=0,n=0;return function(){var r=Yl(),i=Mt-(r-n);if(n=r,i>0){if(++e>=Ct)return arguments[0]}else e=0;return t.apply(rt,arguments)}}function Zo(t,e){var n=-1,r=t.length,i=r-1;for(e=e===rt?r:e;++n<e;){var o=Jr(n,i),u=t[o];t[o]=t[n],t[n]=u}return t.length=e,t}function Go(t){if("string"==typeof t||dc(t))return t;var e=t+"";return"0"==e&&1/t==-Pt?"-0":e}function Ko(t){if(null!=t){try{return fl.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Jo(t,e){return a(Lt,function(n){var r="_."+n[0];e&n[1]&&!f(t,r)&&t.push(r)}),t.sort()}function Xo(t){if(t instanceof _)return t.clone();var e=new i(t.__wrapped__,t.__chain__);return e.__actions__=Ei(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function Qo(t,e,n){e=(n?Ao(t,e,n):e===rt)?1:zl(_c(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var i=0,o=0,u=Xs(Dl(r/e));i<r;)u[o++]=oi(t,i,i+=e);return u}function tu(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}function eu(){var t=arguments.length;if(!t)return[];for(var e=Xs(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return p(hd(n)?Ei(n):[n],lr(e,1))}function nu(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===rt?1:_c(e),oi(t,e<0?0:e,r)):[]}function ru(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===rt?1:_c(e),e=r-e,oi(t,0,e<0?0:e)):[]}function iu(t,e){return t&&t.length?vi(t,_o(e,3),!0,!0):[]}function ou(t,e){return t&&t.length?vi(t,_o(e,3),!0):[]}function uu(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&Ao(t,e,n)&&(n=0,r=i),cr(t,e,n,r)):[]}function au(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:_c(n);return i<0&&(i=zl(r+i,0)),x(t,_o(e,3),i)}function cu(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==rt&&(i=_c(n),i=n<0?zl(r+i,0):Ul(i,r-1)),x(t,_o(e,3),i,!0)}function su(t){return(null==t?0:t.length)?lr(t,1):[]}function lu(t){return(null==t?0:t.length)?lr(t,Pt):[]}function fu(t,e){return(null==t?0:t.length)?(e=e===rt?1:_c(e),lr(t,e)):[]}function du(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r}function hu(t){return t&&t.length?t[0]:rt}function pu(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:_c(n);return i<0&&(i=zl(r+i,0)),w(t,e,i)}function vu(t){return(null==t?0:t.length)?oi(t,0,-1):[]}function mu(t,e){return null==t?"":Rl.call(t,e)}function gu(t){var e=null==t?0:t.length;return e?t[e-1]:rt}function _u(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==rt&&(i=_c(n),i=i<0?zl(r+i,0):Ul(i,r-1)),e===e?J(t,e,i):x(t,j,i,!0)}function yu(t,e){return t&&t.length?qr(t,_c(e)):rt}function bu(t,e){return t&&t.length&&e&&e.length?Gr(t,e):t}function xu(t,e,n){return t&&t.length&&e&&e.length?Gr(t,e,_o(n,2)):t}function wu(t,e,n){return t&&t.length&&e&&e.length?Gr(t,e,rt,n):t}function Ou(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=_o(e,3);++r<o;){var u=t[r];e(u,r,t)&&(n.push(u),i.push(r))}return Kr(t,i),n}function ju(t){return null==t?t:Hl.call(t)}function ku(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Ao(t,e,n)?(e=0,n=r):(e=null==e?0:_c(e),n=n===rt?r:_c(n)),oi(t,e,n)):[]}function Su(t,e){return ai(t,e)}function Cu(t,e,n){return ci(t,e,_o(n,2))}function Mu(t,e){var n=null==t?0:t.length;if(n){var r=ai(t,e);if(r<n&&za(t[r],e))return r}return-1}function Tu(t,e){return ai(t,e,!0)}function Iu(t,e,n){return ci(t,e,_o(n,2),!0)}function Pu(t,e){if(null==t?0:t.length){var n=ai(t,e,!0)-1;if(za(t[n],e))return n}return-1}function Au(t){return t&&t.length?si(t):[]}function Eu(t,e){return t&&t.length?si(t,_o(e,2)):[]}function Du(t){var e=null==t?0:t.length;return e?oi(t,1,e):[]}function Fu(t,e,n){return t&&t.length?(e=n||e===rt?1:_c(e),oi(t,0,e<0?0:e)):[]}function $u(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===rt?1:_c(e),e=r-e,oi(t,e<0?0:e,r)):[]}function Nu(t,e){return t&&t.length?vi(t,_o(e,3),!1,!0):[]}function Lu(t,e){return t&&t.length?vi(t,_o(e,3)):[]}function Ru(t){return t&&t.length?di(t):[]}function Vu(t,e){return t&&t.length?di(t,_o(e,2)):[]}function zu(t,e){return e="function"==typeof e?e:rt,t&&t.length?di(t,rt,e):[]}function Uu(t){if(!t||!t.length)return[];var e=0;return t=l(t,function(t){if(Ya(t))return e=zl(t.length,e),!0}),P(e,function(e){return h(t,S(e))})}function Yu(t,e){if(!t||!t.length)return[];var n=Uu(t);return null==e?n:h(n,function(t){return o(e,rt,t)})}function qu(t,e){return _i(t||[],e||[],Yn)}function Bu(t,e){return _i(t||[],e||[],ri)}function Hu(t){var e=n(t);return e.__chain__=!0,e}function Wu(t,e){return e(t),t}function Zu(t,e){return e(t)}function Gu(){return Hu(this)}function Ku(){return new i(this.value(),this.__chain__)}function Ju(){this.__values__===rt&&(this.__values__=mc(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?rt:this.__values__[this.__index__++]}}function Xu(){return this}function Qu(t){for(var e,n=this;n instanceof r;){var i=Xo(n);i.__index__=0,i.__values__=rt,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e}function ta(){var t=this.__wrapped__;if(t instanceof _){var e=t;return this.__actions__.length&&(e=new _(this)),e=e.reverse(),e.__actions__.push({func:Zu,args:[ju],thisArg:rt}),new i(e,this.__chain__)}return this.thru(ju)}function ea(){return mi(this.__wrapped__,this.__actions__)}function na(t,e,n){var r=hd(t)?s:ur;return n&&Ao(t,e,n)&&(e=rt),r(t,_o(e,3))}function ra(t,e){return(hd(t)?l:sr)(t,_o(e,3))}function ia(t,e){return lr(la(t,e),1)}function oa(t,e){return lr(la(t,e),Pt)}function ua(t,e,n){return n=n===rt?1:_c(n),lr(la(t,e),n)}function aa(t,e){return(hd(t)?a:ff)(t,_o(e,3))}function ca(t,e){return(hd(t)?c:df)(t,_o(e,3))}function sa(t,e,n,r){t=Ua(t)?t:Gc(t),n=n&&!r?_c(n):0;var i=t.length;return n<0&&(n=zl(i+n,0)),fc(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&w(t,e,n)>-1}function la(t,e){return(hd(t)?h:Rr)(t,_o(e,3))}function fa(t,e,n,r){return null==t?[]:(hd(e)||(e=null==e?[]:[e]),n=r?rt:n,hd(n)||(n=null==n?[]:[n]),Br(t,e,n))}function da(t,e,n){var r=hd(t)?v:M,i=arguments.length<3;return r(t,_o(e,4),n,i,ff)}function ha(t,e,n){var r=hd(t)?m:M,i=arguments.length<3;return r(t,_o(e,4),n,i,df)}function pa(t,e){return(hd(t)?l:sr)(t,Ma(_o(e,3)))}function va(t){return(hd(t)?An:ei)(t)}function ma(t,e,n){return e=(n?Ao(t,e,n):e===rt)?1:_c(e),(hd(t)?En:ni)(t,e)}function ga(t){return(hd(t)?Fn:ii)(t)}function _a(t){if(null==t)return 0;if(Ua(t))return fc(t)?X(t):t.length;var e=Of(t);return e==Zt||e==te?t.size:$r(t).length}function ya(t,e,n){var r=hd(t)?g:ui;return n&&Ao(t,e,n)&&(e=rt),r(t,_o(e,3))}function ba(t,e){if("function"!=typeof e)throw new ul(ut);return t=_c(t),function(){if(--t<1)return e.apply(this,arguments)}}function xa(t,e,n){return e=n?rt:e,e=t&&null==e?t.length:e,oo(t,wt,rt,rt,rt,rt,e)}function wa(t,e){var n;if("function"!=typeof e)throw new ul(ut);return t=_c(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=rt),n}}function Oa(t,e,n){e=n?rt:e;var r=oo(t,_t,rt,rt,rt,rt,rt,e);return r.placeholder=Oa.placeholder,r}function ja(t,e,n){e=n?rt:e;var r=oo(t,yt,rt,rt,rt,rt,rt,e);return r.placeholder=ja.placeholder,r}function ka(t,e,n){function r(e){var n=d,r=h;return d=h=rt,_=e,v=t.apply(r,n)}function i(t){return _=t,m=Sf(a,e),y?r(t):v}function o(t){var n=t-g,r=t-_,i=e-n;return b?Ul(i,p-r):i}function u(t){var n=t-g,r=t-_;return g===rt||n>=e||n<0||b&&r>=p}function a(){var t=ed();if(u(t))return c(t);m=Sf(a,o(t))}function c(t){return m=rt,x&&d?r(t):(d=h=rt,v)}function s(){m!==rt&&_f(m),_=0,d=g=h=m=rt}function l(){return m===rt?v:c(ed())}function f(){var t=ed(),n=u(t);if(d=arguments,h=this,g=t,n){if(m===rt)return i(g);if(b)return m=Sf(a,e),r(g)}return m===rt&&(m=Sf(a,e)),v}var d,h,p,v,m,g,_=0,y=!1,b=!1,x=!0;if("function"!=typeof t)throw new ul(ut);return e=bc(e)||0,tc(n)&&(y=!!n.leading,b="maxWait"in n,p=b?zl(bc(n.maxWait)||0,e):p,x="trailing"in n?!!n.trailing:x),f.cancel=s,f.flush=l,f}function Sa(t){return oo(t,jt)}function Ca(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new ul(ut);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var u=t.apply(this,r);return n.cache=o.set(i,u)||o,u};return n.cache=new(Ca.Cache||an),n}function Ma(t){if("function"!=typeof t)throw new ul(ut);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Ta(t){return wa(2,t)}function Ia(t,e){if("function"!=typeof t)throw new ul(ut);return e=e===rt?e:_c(e),ti(t,e)}function Pa(t,e){if("function"!=typeof t)throw new ul(ut);return e=null==e?0:zl(_c(e),0),ti(function(n){var r=n[e],i=wi(n,0,e);return r&&p(i,r),o(t,this,i)})}function Aa(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new ul(ut);return tc(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ka(t,e,{leading:r,maxWait:e,trailing:i})}function Ea(t){return xa(t,1)}function Da(t,e){return ad(bi(e),t)}function Fa(){if(!arguments.length)return[];var t=arguments[0];return hd(t)?t:[t]}function $a(t){return er(t,dt)}function Na(t,e){return e="function"==typeof e?e:rt,er(t,dt,e)}function La(t){return er(t,lt|dt)}function Ra(t,e){return e="function"==typeof e?e:rt,er(t,lt|dt,e)}function Va(t,e){return null==e||rr(t,e,$c(e))}function za(t,e){return t===e||t!==t&&e!==e}function Ua(t){return null!=t&&Qa(t.length)&&!Ja(t)}function Ya(t){return ec(t)&&Ua(t)}function qa(t){return!0===t||!1===t||ec(t)&&mr(t)==Ut}function Ba(t){return ec(t)&&1===t.nodeType&&!sc(t)}function Ha(t){if(null==t)return!0;if(Ua(t)&&(hd(t)||"string"==typeof t||"function"==typeof t.splice||vd(t)||bd(t)||dd(t)))return!t.length;var e=Of(t);if(e==Zt||e==te)return!t.size;if(No(t))return!$r(t).length;for(var n in t)if(dl.call(t,n))return!1;return!0}function Wa(t,e){return Cr(t,e)}function Za(t,e,n){n="function"==typeof n?n:rt;var r=n?n(t,e):rt;return r===rt?Cr(t,e,rt,n):!!r}function Ga(t){if(!ec(t))return!1;var e=mr(t);return e==Bt||e==qt||"string"==typeof t.message&&"string"==typeof t.name&&!sc(t)}function Ka(t){return"number"==typeof t&&Ll(t)}function Ja(t){if(!tc(t))return!1;var e=mr(t);return e==Ht||e==Wt||e==zt||e==Xt}function Xa(t){return"number"==typeof t&&t==_c(t)}function Qa(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=At}function tc(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ec(t){return null!=t&&"object"==typeof t}function nc(t,e){return t===e||Ir(t,e,bo(e))}function rc(t,e,n){return n="function"==typeof n?n:rt,Ir(t,e,bo(e),n)}function ic(t){return cc(t)&&t!=+t}function oc(t){if(jf(t))throw new tl(ot);return Pr(t)}function uc(t){return null===t}function ac(t){return null==t}function cc(t){return"number"==typeof t||ec(t)&&mr(t)==Gt}function sc(t){if(!ec(t)||mr(t)!=Jt)return!1;var e=Ol(t);if(null===e)return!0;var n=dl.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&fl.call(n)==ml}function lc(t){return Xa(t)&&t>=-At&&t<=At}function fc(t){return"string"==typeof t||!hd(t)&&ec(t)&&mr(t)==ee}function dc(t){return"symbol"==typeof t||ec(t)&&mr(t)==ne}function hc(t){return t===rt}function pc(t){return ec(t)&&Of(t)==ie}function vc(t){return ec(t)&&mr(t)==oe}function mc(t){if(!t)return[];if(Ua(t))return fc(t)?Q(t):Ei(t);if(Ml&&t[Ml])return Y(t[Ml]());var e=Of(t);return(e==Zt?q:e==te?Z:Gc)(t)}function gc(t){if(!t)return 0===t?t:0;if((t=bc(t))===Pt||t===-Pt){return(t<0?-1:1)*Et}return t===t?t:0}function _c(t){var e=gc(t),n=e%1;return e===e?n?e-n:e:0}function yc(t){return t?tr(_c(t),0,Ft):0}function bc(t){if("number"==typeof t)return t;if(dc(t))return Dt;if(tc(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=tc(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ae,"");var n=Ye.test(t);return n||Be.test(t)?Mn(t.slice(2),n?2:8):Ue.test(t)?Dt:+t}function xc(t){return Di(t,Nc(t))}function wc(t){return t?tr(_c(t),-At,At):0===t?t:0}function Oc(t){return null==t?"":fi(t)}function jc(t,e){var n=lf(t);return null==e?n:Kn(n,e)}function kc(t,e){return b(t,_o(e,3),fr)}function Sc(t,e){return b(t,_o(e,3),dr)}function Cc(t,e){return null==t?t:hf(t,_o(e,3),Nc)}function Mc(t,e){return null==t?t:pf(t,_o(e,3),Nc)}function Tc(t,e){return t&&fr(t,_o(e,3))}function Ic(t,e){return t&&dr(t,_o(e,3))}function Pc(t){return null==t?[]:hr(t,$c(t))}function Ac(t){return null==t?[]:hr(t,Nc(t))}function Ec(t,e,n){var r=null==t?rt:pr(t,e);return r===rt?n:r}function Dc(t,e){return null!=t&&ko(t,e,_r)}function Fc(t,e){return null!=t&&ko(t,e,yr)}function $c(t){return Ua(t)?In(t):$r(t)}function Nc(t){return Ua(t)?In(t,!0):Nr(t)}function Lc(t,e){var n={};return e=_o(e,3),fr(t,function(t,r,i){Xn(n,e(t,r,i),t)}),n}function Rc(t,e){var n={};return e=_o(e,3),fr(t,function(t,r,i){Xn(n,r,e(t,r,i))}),n}function Vc(t,e){return zc(t,Ma(_o(e)))}function zc(t,e){if(null==t)return{};var n=h(vo(t),function(t){return[t]});return e=_o(e),Wr(t,n,function(t,n){return e(t,n[0])})}function Uc(t,e,n){e=xi(e,t);var r=-1,i=e.length;for(i||(i=1,t=rt);++r<i;){var o=null==t?rt:t[Go(e[r])];o===rt&&(r=i,o=n),t=Ja(o)?o.call(t):o}return t}function Yc(t,e,n){return null==t?t:ri(t,e,n)}function qc(t,e,n,r){return r="function"==typeof r?r:rt,null==t?t:ri(t,e,n,r)}function Bc(t,e,n){var r=hd(t),i=r||vd(t)||bd(t);if(e=_o(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:tc(t)&&Ja(o)?lf(Ol(t)):{}}return(i?a:fr)(t,function(t,r,i){return e(n,t,r,i)}),n}function Hc(t,e){return null==t||hi(t,e)}function Wc(t,e,n){return null==t?t:pi(t,e,bi(n))}function Zc(t,e,n,r){return r="function"==typeof r?r:rt,null==t?t:pi(t,e,bi(n),r)}function Gc(t){return null==t?[]:D(t,$c(t))}function Kc(t){return null==t?[]:D(t,Nc(t))}function Jc(t,e,n){return n===rt&&(n=e,e=rt),n!==rt&&(n=bc(n),n=n===n?n:0),e!==rt&&(e=bc(e),e=e===e?e:0),tr(bc(t),e,n)}function Xc(t,e,n){return e=gc(e),n===rt?(n=e,e=0):n=gc(n),t=bc(t),br(t,e,n)}function Qc(t,e,n){if(n&&"boolean"!=typeof n&&Ao(t,e,n)&&(e=n=rt),n===rt&&("boolean"==typeof e?(n=e,e=rt):"boolean"==typeof t&&(n=t,t=rt)),t===rt&&e===rt?(t=0,e=1):(t=gc(t),e===rt?(e=t,t=0):e=gc(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Bl();return Ul(t+i*(e-t+Cn("1e-"+((i+"").length-1))),e)}return Jr(t,e)}function ts(t){return Hd(Oc(t).toLowerCase())}function es(t){return(t=Oc(t))&&t.replace(We,qn).replace(pn,"")}function ns(t,e,n){t=Oc(t),e=fi(e);var r=t.length;n=n===rt?r:tr(_c(n),0,r);var i=n;return(n-=e.length)>=0&&t.slice(n,i)==e}function rs(t){return t=Oc(t),t&&Oe.test(t)?t.replace(xe,Bn):t}function is(t){return t=Oc(t),t&&Pe.test(t)?t.replace(Ie,"\\$&"):t}function os(t,e,n){t=Oc(t),e=_c(e);var r=e?X(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Xi(Fl(i),n)+t+Xi(Dl(i),n)}function us(t,e,n){t=Oc(t),e=_c(e);var r=e?X(t):0;return e&&r<e?t+Xi(e-r,n):t}function as(t,e,n){t=Oc(t),e=_c(e);var r=e?X(t):0;return e&&r<e?Xi(e-r,n)+t:t}function cs(t,e,n){return n||null==e?e=0:e&&(e=+e),ql(Oc(t).replace(Ee,""),e||0)}function ss(t,e,n){return e=(n?Ao(t,e,n):e===rt)?1:_c(e),Qr(Oc(t),e)}function ls(){var t=arguments,e=Oc(t[0]);return t.length<3?e:e.replace(t[1],t[2])}function fs(t,e,n){return n&&"number"!=typeof n&&Ao(t,e,n)&&(e=n=rt),(n=n===rt?Ft:n>>>0)?(t=Oc(t),t&&("string"==typeof e||null!=e&&!_d(e))&&!(e=fi(e))&&z(t)?wi(Q(t),0,n):t.split(e,n)):[]}function ds(t,e,n){return t=Oc(t),n=null==n?0:tr(_c(n),0,t.length),e=fi(e),t.slice(n,n+e.length)==e}function hs(t,e,r){var i=n.templateSettings;r&&Ao(t,e,r)&&(e=rt),t=Oc(t),e=kd({},e,i,uo);var o,u,a=kd({},e.imports,i.imports,uo),c=$c(a),s=D(a,c),l=0,f=e.interpolate||Ze,d="__p += '",h=il((e.escape||Ze).source+"|"+f.source+"|"+(f===Se?Ve:Ze).source+"|"+(e.evaluate||Ze).source+"|$","g"),p="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++bn+"]")+"\n";t.replace(h,function(e,n,r,i,a,c){return r||(r=i),d+=t.slice(l,c).replace(Ge,R),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),a&&(u=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+e.length,e}),d+="';\n";var v=e.variable;v||(d="with (obj) {\n"+d+"\n}\n"),d=(u?d.replace(ge,""):d).replace(_e,"$1").replace(ye,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Wd(function(){return el(c,p+"return "+d).apply(rt,s)});if(m.source=d,Ga(m))throw m;return m}function ps(t){return Oc(t).toLowerCase()}function vs(t){return Oc(t).toUpperCase()}function ms(t,e,n){if((t=Oc(t))&&(n||e===rt))return t.replace(Ae,"");if(!t||!(e=fi(e)))return t;var r=Q(t),i=Q(e);return wi(r,$(r,i),N(r,i)+1).join("")}function gs(t,e,n){if((t=Oc(t))&&(n||e===rt))return t.replace(De,"");if(!t||!(e=fi(e)))return t;var r=Q(t);return wi(r,0,N(r,Q(e))+1).join("")}function _s(t,e,n){if((t=Oc(t))&&(n||e===rt))return t.replace(Ee,"");if(!t||!(e=fi(e)))return t;var r=Q(t);return wi(r,$(r,Q(e))).join("")}function ys(t,e){var n=kt,r=St;if(tc(e)){var i="separator"in e?e.separator:i;n="length"in e?_c(e.length):n,r="omission"in e?fi(e.omission):r}t=Oc(t);var o=t.length;if(z(t)){var u=Q(t);o=u.length}if(n>=o)return t;var a=n-X(r);if(a<1)return r;var c=u?wi(u,0,a).join(""):t.slice(0,a);if(i===rt)return c+r;if(u&&(a+=c.length-a),_d(i)){if(t.slice(a).search(i)){var s,l=c;for(i.global||(i=il(i.source,Oc(ze.exec(i))+"g")),i.lastIndex=0;s=i.exec(l);)var f=s.index;c=c.slice(0,f===rt?a:f)}}else if(t.indexOf(fi(i),a)!=a){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r}function bs(t){return t=Oc(t),t&&we.test(t)?t.replace(be,Hn):t}function xs(t,e,n){return t=Oc(t),e=n?rt:e,e===rt?U(t)?nt(t):y(t):t.match(e)||[]}function ws(t){var e=null==t?0:t.length,n=_o();return t=e?h(t,function(t){if("function"!=typeof t[1])throw new ul(ut);return[n(t[0]),t[1]]}):[],ti(function(n){for(var r=-1;++r<e;){var i=t[r];if(o(i[0],this,n))return o(i[1],this,n)}})}function Os(t){return nr(er(t,lt))}function js(t){return function(){return t}}function ks(t,e){return null==t||t!==t?e:t}function Ss(t){return t}function Cs(t){return Fr("function"==typeof t?t:er(t,lt))}function Ms(t){return Vr(er(t,lt))}function Ts(t,e){return zr(t,er(e,lt))}function Is(t,e,n){var r=$c(e),i=hr(e,r);null!=n||tc(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=hr(e,$c(e)));var o=!(tc(n)&&"chain"in n&&!n.chain),u=Ja(t);return a(i,function(n){var r=e[n];t[n]=r,u&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Ei(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,p([this.value()],arguments))})}),t}function Ps(){return Pn._===this&&(Pn._=gl),this}function As(){}function Es(t){return t=_c(t),ti(function(e){return qr(e,t)})}function Ds(t){return Eo(t)?S(Go(t)):Zr(t)}function Fs(t){return function(e){return null==t?rt:pr(t,e)}}function $s(){return[]}function Ns(){return!1}function Ls(){return{}}function Rs(){return""}function Vs(){return!0}function zs(t,e){if((t=_c(t))<1||t>At)return[];var n=Ft,r=Ul(t,Ft);e=_o(e),t-=Ft;for(var i=P(r,e);++n<t;)e(n);return i}function Us(t){return hd(t)?h(t,Go):dc(t)?[t]:Ei(Mf(Oc(t)))}function Ys(t){var e=++hl;return Oc(t)+e}function qs(t){return t&&t.length?ar(t,Ss,gr):rt}function Bs(t,e){return t&&t.length?ar(t,_o(e,2),gr):rt}function Hs(t){return k(t,Ss)}function Ws(t,e){return k(t,_o(e,2))}function Zs(t){return t&&t.length?ar(t,Ss,Lr):rt}function Gs(t,e){return t&&t.length?ar(t,_o(e,2),Lr):rt}function Ks(t){return t&&t.length?I(t,Ss):0}function Js(t,e){return t&&t.length?I(t,_o(e,2)):0}e=null==e?Pn:Wn.defaults(Pn.Object(),e,Wn.pick(Pn,yn));var Xs=e.Array,Qs=e.Date,tl=e.Error,el=e.Function,nl=e.Math,rl=e.Object,il=e.RegExp,ol=e.String,ul=e.TypeError,al=Xs.prototype,cl=el.prototype,sl=rl.prototype,ll=e["__core-js_shared__"],fl=cl.toString,dl=sl.hasOwnProperty,hl=0,pl=function(){var t=/[^.]+$/.exec(ll&&ll.keys&&ll.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),vl=sl.toString,ml=fl.call(rl),gl=Pn._,_l=il("^"+fl.call(dl).replace(Ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yl=Dn?e.Buffer:rt,bl=e.Symbol,xl=e.Uint8Array,wl=yl?yl.allocUnsafe:rt,Ol=B(rl.getPrototypeOf,rl),jl=rl.create,kl=sl.propertyIsEnumerable,Sl=al.splice,Cl=bl?bl.isConcatSpreadable:rt,Ml=bl?bl.iterator:rt,Tl=bl?bl.toStringTag:rt,Il=function(){try{var t=xo(rl,"defineProperty");return t({},"",{}),t}catch(t){}}(),Pl=e.clearTimeout!==Pn.clearTimeout&&e.clearTimeout,Al=Qs&&Qs.now!==Pn.Date.now&&Qs.now,El=e.setTimeout!==Pn.setTimeout&&e.setTimeout,Dl=nl.ceil,Fl=nl.floor,$l=rl.getOwnPropertySymbols,Nl=yl?yl.isBuffer:rt,Ll=e.isFinite,Rl=al.join,Vl=B(rl.keys,rl),zl=nl.max,Ul=nl.min,Yl=Qs.now,ql=e.parseInt,Bl=nl.random,Hl=al.reverse,Wl=xo(e,"DataView"),Zl=xo(e,"Map"),Gl=xo(e,"Promise"),Kl=xo(e,"Set"),Jl=xo(e,"WeakMap"),Xl=xo(rl,"create"),Ql=Jl&&new Jl,tf={},ef=Ko(Wl),nf=Ko(Zl),rf=Ko(Gl),of=Ko(Kl),uf=Ko(Jl),af=bl?bl.prototype:rt,cf=af?af.valueOf:rt,sf=af?af.toString:rt,lf=function(){function t(){}return function(e){if(!tc(e))return{};if(jl)return jl(e);t.prototype=e;var n=new t;return t.prototype=rt,n}}();n.templateSettings={escape:je,evaluate:ke,interpolate:Se,variable:"",imports:{_:n}},n.prototype=r.prototype,n.prototype.constructor=n,i.prototype=lf(r.prototype),i.prototype.constructor=i,_.prototype=lf(r.prototype),_.prototype.constructor=_,et.prototype.clear=Le,et.prototype.delete=Ke,et.prototype.get=Je,et.prototype.has=Xe,et.prototype.set=Qe,tn.prototype.clear=en,tn.prototype.delete=nn,tn.prototype.get=rn,tn.prototype.has=on,tn.prototype.set=un,an.prototype.clear=cn,an.prototype.delete=sn,an.prototype.get=ln,an.prototype.has=fn,an.prototype.set=dn,vn.prototype.add=vn.prototype.push=mn,vn.prototype.has=gn,_n.prototype.clear=On,_n.prototype.delete=jn,_n.prototype.get=kn,_n.prototype.has=Sn,_n.prototype.set=Tn;var ff=Ri(fr),df=Ri(dr,!0),hf=Vi(),pf=Vi(!0),vf=Ql?function(t,e){return Ql.set(t,e),t}:Ss,mf=Il?function(t,e){return Il(t,"toString",{configurable:!0,enumerable:!1,value:js(e),writable:!0})}:Ss,gf=ti,_f=Pl||function(t){return Pn.clearTimeout(t)},yf=Kl&&1/Z(new Kl([,-0]))[1]==Pt?function(t){return new Kl(t)}:As,bf=Ql?function(t){return Ql.get(t)}:As,xf=$l?function(t){return null==t?[]:(t=rl(t),l($l(t),function(e){return kl.call(t,e)}))}:$s,wf=$l?function(t){for(var e=[];t;)p(e,xf(t)),t=Ol(t);return e}:$s,Of=mr;(Wl&&Of(new Wl(new ArrayBuffer(1)))!=ae||Zl&&Of(new Zl)!=Zt||Gl&&"[object Promise]"!=Of(Gl.resolve())||Kl&&Of(new Kl)!=te||Jl&&Of(new Jl)!=ie)&&(Of=function(t){var e=mr(t),n=e==Jt?t.constructor:rt,r=n?Ko(n):"";if(r)switch(r){case ef:return ae;case nf:return Zt;case rf:return"[object Promise]";case of:return te;case uf:return ie}return e});var jf=ll?Ja:Ns,kf=Wo(vf),Sf=El||function(t,e){return Pn.setTimeout(t,e)},Cf=Wo(mf),Mf=function(t){var e=Ca(t,function(t){return n.size===ct&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Te,function(t,n,r,i){e.push(r?i.replace(Re,"$1"):n||t)}),e}),Tf=ti(function(t,e){return Ya(t)?or(t,lr(e,1,Ya,!0)):[]}),If=ti(function(t,e){var n=gu(e);return Ya(n)&&(n=rt),Ya(t)?or(t,lr(e,1,Ya,!0),_o(n,2)):[]}),Pf=ti(function(t,e){var n=gu(e);return Ya(n)&&(n=rt),Ya(t)?or(t,lr(e,1,Ya,!0),rt,n):[]}),Af=ti(function(t){var e=h(t,yi);return e.length&&e[0]===t[0]?xr(e):[]}),Ef=ti(function(t){var e=gu(t),n=h(t,yi);return e===gu(n)?e=rt:n.pop(),n.length&&n[0]===t[0]?xr(n,_o(e,2)):[]}),Df=ti(function(t){var e=gu(t),n=h(t,yi);return e="function"==typeof e?e:rt,e&&n.pop(),n.length&&n[0]===t[0]?xr(n,rt,e):[]}),Ff=ti(bu),$f=ho(function(t,e){var n=null==t?0:t.length,r=Qn(t,e);return Kr(t,h(e,function(t){return Po(t,n)?+t:t}).sort(Ti)),r}),Nf=ti(function(t){return di(lr(t,1,Ya,!0))}),Lf=ti(function(t){var e=gu(t);return Ya(e)&&(e=rt),di(lr(t,1,Ya,!0),_o(e,2))}),Rf=ti(function(t){var e=gu(t);return e="function"==typeof e?e:rt,di(lr(t,1,Ya,!0),rt,e)}),Vf=ti(function(t,e){return Ya(t)?or(t,e):[]}),zf=ti(function(t){return gi(l(t,Ya))}),Uf=ti(function(t){var e=gu(t);return Ya(e)&&(e=rt),gi(l(t,Ya),_o(e,2))}),Yf=ti(function(t){var e=gu(t);return e="function"==typeof e?e:rt,gi(l(t,Ya),rt,e)}),qf=ti(Uu),Bf=ti(function(t){var e=t.length,n=e>1?t[e-1]:rt;return n="function"==typeof n?(t.pop(),n):rt,Yu(t,n)}),Hf=ho(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return Qn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof _&&Po(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:Zu,args:[o],thisArg:rt}),new i(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(rt),t})):this.thru(o)}),Wf=Ni(function(t,e,n){dl.call(t,n)?++t[n]:Xn(t,n,1)}),Zf=Hi(au),Gf=Hi(cu),Kf=Ni(function(t,e,n){dl.call(t,n)?t[n].push(e):Xn(t,n,[e])}),Jf=ti(function(t,e,n){var r=-1,i="function"==typeof e,u=Ua(t)?Xs(t.length):[];return ff(t,function(t){u[++r]=i?o(e,t,n):Or(t,e,n)}),u}),Xf=Ni(function(t,e,n){Xn(t,n,e)}),Qf=Ni(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),td=ti(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Ao(t,e[0],e[1])?e=[]:n>2&&Ao(e[0],e[1],e[2])&&(e=[e[0]]),Br(t,lr(e,1),[])}),ed=Al||function(){return Pn.Date.now()},nd=ti(function(t,e,n){var r=vt;if(n.length){var i=H(n,go(nd));r|=bt}return oo(t,r,e,n,i)}),rd=ti(function(t,e,n){var r=vt|mt;if(n.length){var i=H(n,go(rd));r|=bt}return oo(e,r,t,n,i)}),id=ti(function(t,e){return ir(t,1,e)}),od=ti(function(t,e,n){return ir(t,bc(e)||0,n)});Ca.Cache=an;var ud=gf(function(t,e){e=1==e.length&&hd(e[0])?h(e[0],E(_o())):h(lr(e,1),E(_o()));var n=e.length;return ti(function(r){for(var i=-1,u=Ul(r.length,n);++i<u;)r[i]=e[i].call(this,r[i]);return o(t,this,r)})}),ad=ti(function(t,e){var n=H(e,go(ad));return oo(t,bt,rt,e,n)}),cd=ti(function(t,e){var n=H(e,go(cd));return oo(t,xt,rt,e,n)}),sd=ho(function(t,e){return oo(t,Ot,rt,rt,rt,e)}),ld=eo(gr),fd=eo(function(t,e){return t>=e}),dd=jr(function(){return arguments}())?jr:function(t){return ec(t)&&dl.call(t,"callee")&&!kl.call(t,"callee")},hd=Xs.isArray,pd=Nn?E(Nn):kr,vd=Nl||Ns,md=Ln?E(Ln):Sr,gd=Rn?E(Rn):Tr,_d=Vn?E(Vn):Ar,yd=zn?E(zn):Er,bd=Un?E(Un):Dr,xd=eo(Lr),wd=eo(function(t,e){return t<=e}),Od=Li(function(t,e){if(No(e)||Ua(e))return void Di(e,$c(e),t);for(var n in e)dl.call(e,n)&&Yn(t,n,e[n])}),jd=Li(function(t,e){Di(e,Nc(e),t)}),kd=Li(function(t,e,n,r){Di(e,Nc(e),t,r)}),Sd=Li(function(t,e,n,r){Di(e,$c(e),t,r)}),Cd=ho(Qn),Md=ti(function(t,e){t=rl(t);var n=-1,r=e.length,i=r>2?e[2]:rt;for(i&&Ao(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],u=Nc(o),a=-1,c=u.length;++a<c;){var s=u[a],l=t[s];(l===rt||za(l,sl[s])&&!dl.call(t,s))&&(t[s]=o[s])}return t}),Td=ti(function(t){return t.push(rt,ao),o(Dd,rt,t)}),Id=Gi(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=vl.call(e)),t[e]=n},js(Ss)),Pd=Gi(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=vl.call(e)),dl.call(t,e)?t[e].push(n):t[e]=[n]},_o),Ad=ti(Or),Ed=Li(function(t,e,n){Ur(t,e,n)}),Dd=Li(function(t,e,n,r){Ur(t,e,n,r)}),Fd=ho(function(t,e){var n={};if(null==t)return n;var r=!1;e=h(e,function(e){return e=xi(e,t),r||(r=e.length>1),e}),Di(t,vo(t),n),r&&(n=er(n,lt|ft|dt,co));for(var i=e.length;i--;)hi(n,e[i]);return n}),$d=ho(function(t,e){return null==t?{}:Hr(t,e)}),Nd=io($c),Ld=io(Nc),Rd=Yi(function(t,e,n){return e=e.toLowerCase(),t+(n?ts(e):e)}),Vd=Yi(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),zd=Yi(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Ud=Ui("toLowerCase"),Yd=Yi(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),qd=Yi(function(t,e,n){return t+(n?" ":"")+Hd(e)}),Bd=Yi(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Hd=Ui("toUpperCase"),Wd=ti(function(t,e){try{return o(t,rt,e)}catch(t){return Ga(t)?t:new tl(t)}}),Zd=ho(function(t,e){return a(e,function(e){e=Go(e),Xn(t,e,nd(t[e],t))}),t}),Gd=Wi(),Kd=Wi(!0),Jd=ti(function(t,e){return function(n){return Or(n,t,e)}}),Xd=ti(function(t,e){return function(n){return Or(t,n,e)}}),Qd=Ji(h),th=Ji(s),eh=Ji(g),nh=to(),rh=to(!0),ih=Ki(function(t,e){return t+e},0),oh=ro("ceil"),uh=Ki(function(t,e){return t/e},1),ah=ro("floor"),ch=Ki(function(t,e){return t*e},1),sh=ro("round"),lh=Ki(function(t,e){return t-e},0);return n.after=ba,n.ary=xa,n.assign=Od,n.assignIn=jd,n.assignInWith=kd,n.assignWith=Sd,n.at=Cd,n.before=wa,n.bind=nd,n.bindAll=Zd,n.bindKey=rd,n.castArray=Fa,n.chain=Hu,n.chunk=Qo,n.compact=tu,n.concat=eu,n.cond=ws,n.conforms=Os,n.constant=js,n.countBy=Wf,n.create=jc,n.curry=Oa,n.curryRight=ja,n.debounce=ka,n.defaults=Md,n.defaultsDeep=Td,n.defer=id,n.delay=od,n.difference=Tf,n.differenceBy=If,n.differenceWith=Pf,n.drop=nu,n.dropRight=ru,n.dropRightWhile=iu,n.dropWhile=ou,n.fill=uu,n.filter=ra,n.flatMap=ia,n.flatMapDeep=oa,n.flatMapDepth=ua,n.flatten=su,n.flattenDeep=lu,n.flattenDepth=fu,n.flip=Sa,n.flow=Gd,n.flowRight=Kd,n.fromPairs=du,n.functions=Pc,n.functionsIn=Ac,n.groupBy=Kf,n.initial=vu,n.intersection=Af,n.intersectionBy=Ef,n.intersectionWith=Df,n.invert=Id,n.invertBy=Pd,n.invokeMap=Jf,n.iteratee=Cs,n.keyBy=Xf,n.keys=$c,n.keysIn=Nc,n.map=la,n.mapKeys=Lc,n.mapValues=Rc,n.matches=Ms,n.matchesProperty=Ts,n.memoize=Ca,n.merge=Ed,n.mergeWith=Dd,n.method=Jd,n.methodOf=Xd,n.mixin=Is,n.negate=Ma,n.nthArg=Es,n.omit=Fd,n.omitBy=Vc,n.once=Ta,n.orderBy=fa,n.over=Qd,n.overArgs=ud,n.overEvery=th,n.overSome=eh,n.partial=ad,n.partialRight=cd,n.partition=Qf,n.pick=$d,n.pickBy=zc,n.property=Ds,n.propertyOf=Fs,n.pull=Ff,n.pullAll=bu,n.pullAllBy=xu,n.pullAllWith=wu,n.pullAt=$f,n.range=nh,n.rangeRight=rh,n.rearg=sd,n.reject=pa,n.remove=Ou,n.rest=Ia,n.reverse=ju,n.sampleSize=ma,n.set=Yc,n.setWith=qc,n.shuffle=ga,n.slice=ku,n.sortBy=td,n.sortedUniq=Au,n.sortedUniqBy=Eu,n.split=fs,n.spread=Pa,n.tail=Du,n.take=Fu,n.takeRight=$u,n.takeRightWhile=Nu,n.takeWhile=Lu,n.tap=Wu,n.throttle=Aa,n.thru=Zu,n.toArray=mc,n.toPairs=Nd,n.toPairsIn=Ld,n.toPath=Us,n.toPlainObject=xc,n.transform=Bc,n.unary=Ea,n.union=Nf,n.unionBy=Lf,n.unionWith=Rf,n.uniq=Ru,n.uniqBy=Vu,n.uniqWith=zu,n.unset=Hc,n.unzip=Uu,n.unzipWith=Yu,n.update=Wc,n.updateWith=Zc,n.values=Gc,n.valuesIn=Kc,n.without=Vf,n.words=xs,n.wrap=Da,n.xor=zf,n.xorBy=Uf,n.xorWith=Yf,n.zip=qf,n.zipObject=qu,n.zipObjectDeep=Bu,n.zipWith=Bf,n.entries=Nd,n.entriesIn=Ld,n.extend=jd,n.extendWith=kd,Is(n,n),n.add=ih,n.attempt=Wd,n.camelCase=Rd,n.capitalize=ts,n.ceil=oh,n.clamp=Jc,n.clone=$a,n.cloneDeep=La,n.cloneDeepWith=Ra,n.cloneWith=Na,n.conformsTo=Va,n.deburr=es,n.defaultTo=ks,n.divide=uh,n.endsWith=ns,n.eq=za,n.escape=rs,n.escapeRegExp=is,n.every=na,n.find=Zf,n.findIndex=au,n.findKey=kc,n.findLast=Gf,n.findLastIndex=cu,n.findLastKey=Sc,n.floor=ah,n.forEach=aa,n.forEachRight=ca,n.forIn=Cc,n.forInRight=Mc,n.forOwn=Tc,n.forOwnRight=Ic,n.get=Ec,n.gt=ld,n.gte=fd,n.has=Dc,n.hasIn=Fc,n.head=hu,n.identity=Ss,n.includes=sa,n.indexOf=pu,n.inRange=Xc,n.invoke=Ad,n.isArguments=dd,n.isArray=hd,n.isArrayBuffer=pd,n.isArrayLike=Ua,n.isArrayLikeObject=Ya,n.isBoolean=qa,n.isBuffer=vd,n.isDate=md,n.isElement=Ba,n.isEmpty=Ha,n.isEqual=Wa,n.isEqualWith=Za,n.isError=Ga,n.isFinite=Ka,n.isFunction=Ja,n.isInteger=Xa,n.isLength=Qa,n.isMap=gd,n.isMatch=nc,n.isMatchWith=rc,n.isNaN=ic,n.isNative=oc,n.isNil=ac,n.isNull=uc,n.isNumber=cc,n.isObject=tc,n.isObjectLike=ec,n.isPlainObject=sc,n.isRegExp=_d,n.isSafeInteger=lc,n.isSet=yd,n.isString=fc,n.isSymbol=dc,n.isTypedArray=bd,n.isUndefined=hc,n.isWeakMap=pc,n.isWeakSet=vc,n.join=mu,n.kebabCase=Vd,n.last=gu,n.lastIndexOf=_u,n.lowerCase=zd,n.lowerFirst=Ud,n.lt=xd,n.lte=wd,n.max=qs,n.maxBy=Bs,n.mean=Hs,n.meanBy=Ws,n.min=Zs,n.minBy=Gs,n.stubArray=$s,n.stubFalse=Ns,n.stubObject=Ls,n.stubString=Rs,n.stubTrue=Vs,n.multiply=ch,n.nth=yu,n.noConflict=Ps,n.noop=As,n.now=ed,n.pad=os,n.padEnd=us,n.padStart=as,n.parseInt=cs,n.random=Qc,n.reduce=da,n.reduceRight=ha,n.repeat=ss,n.replace=ls,n.result=Uc,n.round=sh,n.runInContext=t,n.sample=va,n.size=_a,n.snakeCase=Yd,n.some=ya,n.sortedIndex=Su,n.sortedIndexBy=Cu,n.sortedIndexOf=Mu,n.sortedLastIndex=Tu,n.sortedLastIndexBy=Iu,n.sortedLastIndexOf=Pu,n.startCase=qd,n.startsWith=ds,n.subtract=lh,n.sum=Ks,n.sumBy=Js,n.template=hs,n.times=zs,n.toFinite=gc,n.toInteger=_c,n.toLength=yc,n.toLower=ps,n.toNumber=bc,n.toSafeInteger=wc,n.toString=Oc,n.toUpper=vs,n.trim=ms,n.trimEnd=gs,n.trimStart=_s,n.truncate=ys,n.unescape=bs,n.uniqueId=Ys,n.upperCase=Bd,n.upperFirst=Hd,n.each=aa,n.eachRight=ca,n.first=hu,Is(n,function(){var t={};return fr(n,function(e,r){dl.call(n.prototype,r)||(t[r]=e)}),t}(),{chain:!1}),n.VERSION="4.17.10",a(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){n[t].placeholder=n}),a(["drop","take"],function(t,e){_.prototype[t]=function(n){n=n===rt?1:zl(_c(n),0);var r=this.__filtered__&&!e?new _(this):this.clone();return r.__filtered__?r.__takeCount__=Ul(n,r.__takeCount__):r.__views__.push({size:Ul(n,Ft),type:t+(r.__dir__<0?"Right":"")}),r},_.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),a(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==Tt||3==n;_.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:_o(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),a(["head","last"],function(t,e){var n="take"+(e?"Right":"");_.prototype[t]=function(){return this[n](1).value()[0]}}),a(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");_.prototype[t]=function(){return this.__filtered__?new _(this):this[n](1)}}),_.prototype.compact=function(){return this.filter(Ss)},_.prototype.find=function(t){return this.filter(t).head()},_.prototype.findLast=function(t){return this.reverse().find(t)},_.prototype.invokeMap=ti(function(t,e){return"function"==typeof t?new _(this):this.map(function(n){return Or(n,t,e)})}),_.prototype.reject=function(t){return this.filter(Ma(_o(t)))},_.prototype.slice=function(t,e){t=_c(t);var n=this;return n.__filtered__&&(t>0||e<0)?new _(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==rt&&(e=_c(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},_.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},_.prototype.toArray=function(){return this.take(Ft)},fr(_.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),o=/^(?:head|last)$/.test(e),u=n[o?"take"+("last"==e?"Right":""):e],a=o||/^find/.test(e);u&&(n.prototype[e]=function(){var e=this.__wrapped__,c=o?[1]:arguments,s=e instanceof _,l=c[0],f=s||hd(e),d=function(t){var e=u.apply(n,p([t],c));return o&&h?e[0]:e};f&&r&&"function"==typeof l&&1!=l.length&&(s=f=!1);var h=this.__chain__,v=!!this.__actions__.length,m=a&&!h,g=s&&!v;if(!a&&f){e=g?e:new _(this);var y=t.apply(e,c);return y.__actions__.push({func:Zu,args:[d],thisArg:rt}),new i(y,h)}return m&&g?t.apply(this,c):(y=this.thru(d),m?o?y.value()[0]:y.value():y)})}),a(["pop","push","shift","sort","splice","unshift"],function(t){var e=al[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var n=this.value();return e.apply(hd(n)?n:[],t)}return this[r](function(n){return e.apply(hd(n)?n:[],t)})}}),fr(_.prototype,function(t,e){var r=n[e];if(r){var i=r.name+"";(tf[i]||(tf[i]=[])).push({name:e,func:r})}}),tf[Zi(rt,mt).name]=[{name:"wrapper",func:rt}],_.prototype.clone=C,_.prototype.reverse=K,_.prototype.value=tt,n.prototype.at=Hf,n.prototype.chain=Gu,n.prototype.commit=Ku,n.prototype.next=Ju,n.prototype.plant=Qu,n.prototype.reverse=ta,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=ea,n.prototype.first=n.prototype.head,Ml&&(n.prototype[Ml]=Xu),n}();Pn._=Wn,(i=function(){return Wn}.call(e,n,e,r))!==rt&&(r.exports=i)}).call(this)}).call(e,n(68),n(76)(t))},function(t,e,n){function r(t){return n(i(t))}function i(t){var e=o[t];if(!(e+1))throw new Error("Cannot find module '"+t+"'.");return e}var o={"./fieldCheckbox.vue":197,"./fieldChecklist.vue":223,"./fieldInput.vue":227,"./fieldLabel.vue":230,"./fieldRadios.vue":233,"./fieldSelect.vue":236,"./fieldSubmit.vue":243,"./fieldTextArea.vue":250,"./fieldUpload.vue":253};r.keys=function(){return Object.keys(o)},r.resolve=i,t.exports=r,r.id=196},function(t,e,n){"use strict";function r(t){n(198)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(81),o=n(222),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){function r(t){return t&&t.length?i(t):[]}var i=n(200);t.exports=r},function(t,e,n){function r(t,e,n){var r=-1,f=o,d=t.length,h=!0,p=[],v=p;if(n)h=!1,f=u;else if(d>=l){var m=e?null:c(t);if(m)return s(m);h=!1,f=a,v=new i}else v=e?[]:p;t:for(;++r<d;){var g=t[r],_=e?e(g):g;if(g=n||0!==g?g:0,h&&_===_){for(var y=v.length;y--;)if(v[y]===_)continue t;e&&v.push(_),p.push(g)}else f(v,_,n)||(v!==p&&v.push(_),p.push(g))}return p}var i=n(201),o=n(202),u=n(203),a=n(204),c=n(205),s=n(206),l=200;t.exports=r},function(t,e,n){function r(){if(!arguments.length)return[];var t=arguments[0];return i(t)?t:[t]}var i=n(2);t.exports=r},function(t,e,n){function r(t,e){return!!(null==t?0:t.length)&&i(t,e,0)>-1}var i=n(82);t.exports=r},function(t,e){function n(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}t.exports=n},function(t,e,n){function r(t,e){return!!(null==t?0:t.length)&&i(t,e,0)>-1}var i=n(82);t.exports=r},function(t,e){function n(){}t.exports=n},function(t,e){function n(){return[]}t.exports=n},function(t,e,n){function r(t){var e=++o;return i(t)+e}var i=n(67),o=0;t.exports=r},function(t,e,n){var r=n(27),i=function(){return r.Date.now()};t.exports=i},function(t,e,n){t.exports={default:n(210),__esModule:!0}},function(t,e,n){n(211),t.exports=n(3).Object.keys},function(t,e,n){var r=n(39),i=n(35);n(212)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(11),i=n(3),o=n(20);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",u)}},function(t,e,n){function r(t){return"number"==typeof t&&o(t)}var i=n(27),o=i.isFinite;t.exports=r},function(t,e,n){function r(t){return"number"==typeof t&&t==i(t)}var i=n(86);t.exports=r},function(t,e,n){function r(t){if(!t)return 0===t?t:0;if((t=i(t))===o||t===-o){return(t<0?-1:1)*u}return t===t?t:0}var i=n(84),o=1/0,u=1.7976931348623157e308;t.exports=r},function(t,e,n){function r(t,e){return u(o(t,e,i),t+"")}var i=n(217),o=n(218),u=n(220);t.exports=r},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){function r(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var r=arguments,u=-1,a=o(r.length-e,0),c=Array(a);++u<a;)c[u]=r[e+u];u=-1;for(var s=Array(e+1);++u<e;)s[u]=r[u];return s[e]=n(c),i(t,this,s)}}var i=n(219),o=Math.max;t.exports=r},function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},function(t,e){function n(t){return t}t.exports=n},function(t,e){function n(){return!1}t.exports=n},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"},{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema),type:"checkbox",autocomplete:t.schema.autocomplete,disabled:t.disabled,name:t.schema.inputName,required:t.schema.required},domProps:{checked:Array.isArray(t.value)?t._i(t.value,null)>-1:t.value},on:{change:function(e){var n=t.value,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.value=n.concat([null])):o>-1&&(t.value=n.slice(0,o).concat(n.slice(o+1)))}else t.value=i}}})},i=[]},function(t,e,n){"use strict";function r(t){n(224)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(88),o=n(226),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){function r(t){return i(t,o)}var i=n(73),o=4;t.exports=r},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"attributes",rawName:"v-attributes",value:"wrapper",expression:"'wrapper'"}],staticClass:"wrapper"},[t.schema.listBox?n("div",{staticClass:"listbox form-control",attrs:{disabled:t.disabled}},t._l(t.items,function(e){return n("div",{staticClass:"list-row",class:{"is-checked":t.isItemChecked(e)}},[n("label",[n("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],attrs:{id:t.getFieldID(t.schema,!0),type:"checkbox",disabled:t.disabled,name:t.getInputName(e)},domProps:{checked:t.isItemChecked(e)},on:{change:function(n){t.onChanged(n,e)}}}),t._v(t._s(t.getItemName(e)))])])})):t._e(),t.schema.listBox?t._e():n("div",{staticClass:"combobox form-control",attrs:{disabled:t.disabled}},[n("div",{staticClass:"mainRow",class:{expanded:t.comboExpanded},on:{click:t.onExpandCombo}},[n("div",{staticClass:"info"},[t._v(t._s(t.selectedCount)+" selected")]),n("div",{staticClass:"arrow"})]),n("div",{staticClass:"dropList"},t._l(t.items,function(e){return t.comboExpanded?n("div",{staticClass:"list-row",class:{"is-checked":t.isItemChecked(e)}},[n("label",[n("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],attrs:{id:t.getFieldID(t.schema,!0),type:"checkbox",disabled:t.disabled,name:t.getInputName(e)},domProps:{checked:t.isItemChecked(e)},on:{change:function(n){t.onChanged(n,e)}}}),t._v(t._s(t.getItemName(e)))])]):t._e()}))])])},i=[]},function(t,e,n){"use strict";function r(t){n(228)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(89),o=n(229),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"attributes",rawName:"v-attributes",value:"wrapper",expression:"'wrapper'"}],staticClass:"wrapper"},[n("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],staticClass:"form-control",class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema),type:t.inputType,disabled:t.disabled,accept:t.schema.accept,alt:t.schema.alt,autocomplete:t.schema.autocomplete,dirname:t.schema.dirname,formaction:t.schema.formaction,formenctype:t.schema.formenctype,formmethod:t.schema.formmethod,formnovalidate:t.schema.formnovalidate,formtarget:t.schema.formtarget,height:t.schema.height,list:t.schema.list,max:t.schema.max,maxlength:t.schema.maxlength,min:t.schema.min,minlength:t.schema.minlength,multiple:t.schema.multiple,name:t.schema.inputName,pattern:t.schema.pattern,placeholder:t.schema.placeholder,readonly:t.schema.readonly,required:t.schema.required,size:t.schema.size,src:t.schema.src,step:t.schema.step,width:t.schema.width,files:t.schema.files},domProps:{value:t.value,checked:t.schema.checked},on:{input:t.onInput,blur:t.onBlur,change:function(e){t.schema.onChange}}}),"color"===t.schema.inputType.toLowerCase()||"range"===t.schema.inputType.toLowerCase()?n("span",{staticClass:"helper"},[t._v(t._s(t.value))]):t._e()])},i=[]},function(t,e,n){"use strict";function r(t){n(231)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(90),o=n(232),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",{directives:[{name:"attributes",rawName:"v-attributes",value:"label",expression:"'label'"}],class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema)}},[t._v(t._s(t.value))])},i=[]},function(t,e,n){"use strict";function r(t){n(234)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(91),o=n(235),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"attributes",rawName:"v-attributes",value:"wrapper",expression:"'wrapper'"}],staticClass:"radio-list",attrs:{disabled:t.disabled}},t._l(t.items,function(e){return n("label",{directives:[{name:"attributes",rawName:"v-attributes",value:"label",expression:"'label'"}],class:t.getItemCssClasses(e)},[n("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema,!0),type:"radio",disabled:t.isItemDisabled(e),name:t.id,required:t.schema.required},domProps:{value:t.getItemValue(e),checked:t.isItemChecked(e)},on:{click:function(n){t.onSelection(e)}}}),t._v(t._s(t.getItemName(e)))])}))},i=[]},function(t,e,n){"use strict";function r(t){n(237)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(92),o=n(242),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){var r=n(239),i=n(240),o=r(i);t.exports=o},function(t,e,n){function r(t){return function(e,n,r){var a=Object(e);if(!o(e)){var c=i(n,3);e=u(e),n=function(t){return c(a[t],t,a)}}var s=t(e,n,r);return s>-1?a[c?e[s]:s]:void 0}}var i=n(93),o=n(44),u=n(24);t.exports=r},function(t,e,n){function r(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var c=null==n?0:u(n);return c<0&&(c=a(r+c,0)),i(t,o(e,3),c)}var i=n(241),o=n(93),u=n(86),a=Math.max;t.exports=r},function(t,e){function n(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}t.exports=n},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("select",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"},{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],staticClass:"form-control",class:t.schema.fieldClasses,attrs:{disabled:t.disabled,name:t.schema.inputName,id:t.getFieldID(t.schema)},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.value=e.target.multiple?n:n[0]}}},[t.selectOptions.hideNoneSelectedText?t._e():n("option",{attrs:{disabled:t.schema.required},domProps:{value:null}},[t._v(t._s(t.selectOptions.noneSelectedText||"<Nothing selected>"))]),t._l(t.items,function(e){return[e.group?n("optgroup",{attrs:{label:t.getGroupName(e)}},t._l(e.ops,function(r){return e.ops?n("option",{domProps:{value:t.getItemValue(r)}},[t._v(t._s(t.getItemName(r)))]):t._e()})):t._e(),e.group?t._e():n("option",{domProps:{value:t.getItemValue(e)}},[t._v(t._s(t.getItemName(e)))])]})],2)},i=[]},function(t,e,n){"use strict";function r(t){n(244)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(94),o=n(249),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){function r(t){if(null==t)return!0;if(c(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||s(t)||f(t)||u(t)))return!t.length;var e=o(t);if(e==d||e==h)return!t.size;if(l(t))return!i(t).length;for(var n in t)if(v.call(t,n))return!1;return!0}var i=n(246),o=n(77),u=n(247),a=n(2),c=n(44),s=n(79),l=n(78),f=n(248),d="[object Map]",h="[object Set]",p=Object.prototype,v=p.hasOwnProperty;t.exports=r},function(t,e,n){var r=n(25),i=r(Object.keys,Object);t.exports=i},function(t,e){function n(){return!1}t.exports=n},function(t,e){function n(){return!1}t.exports=n},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema),type:"submit",name:t.schema.inputName,disabled:t.disabled},domProps:{value:t.schema.buttonText},on:{click:t.onClick}})},i=[]},function(t,e,n){"use strict";function r(t){n(251)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(95),o=n(252),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("textarea",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"},{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],staticClass:"form-control",class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema),disabled:t.disabled,maxlength:t.schema.max,minlength:t.schema.min,placeholder:t.schema.placeholder,readonly:t.schema.readonly,required:t.schema.required,rows:t.schema.rows||2,name:t.schema.inputName},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}})},i=[]},function(t,e,n){"use strict";function r(t){n(254)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(96),o=n(255),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"attributes",rawName:"v-attributes",value:"wrapper",expression:"'wrapper'"}],staticClass:"wrapper"},[n("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],staticClass:"form-control",attrs:{id:t.getFieldID(t.schema),type:"file",name:t.schema.inputName,accept:t.schema.accept,multiple:t.schema.multiple,placeholder:t.schema.placeholder,readonly:t.schema.readonly,required:t.schema.required,disabled:t.disabled},on:{change:t.onChange}})])},i=[]},function(t,e,n){function r(t){return n(i(t))}function i(t){var e=o[t];if(!(e+1))throw new Error("Cannot find module '"+t+"'.");return e}var o={"./fieldCleave.vue":257,"./fieldDateTimePicker.vue":260,"./fieldGoogleAddress.vue":269,"./fieldImage.vue":271,"./fieldMasked.vue":274,"./fieldNoUiSlider.vue":277,"./fieldPikaday.vue":280,"./fieldRangeSlider.vue":283,"./fieldSelectEx.vue":292,"./fieldSpectrum.vue":295,"./fieldStaticMap.vue":298,"./fieldSwitch.vue":301,"./fieldVueMultiSelect.vue":304};r.keys=function(){return Object.keys(o)},r.resolve=i,t.exports=r,r.id=256},function(t,e,n){"use strict";function r(t){n(258)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(97),o=n(259),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{staticClass:"form-control",attrs:{type:"text",autocomplete:t.schema.autocomplete,disabled:t.disabled,placeholder:t.schema.placeholder,readonly:t.schema.readonly,name:t.schema.inputName,id:t.getFieldID(t.schema)},domProps:{value:t.value}})},i=[]},function(t,e,n){"use strict";function r(t){n(261)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(98),o=n(268),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){t.exports={default:n(263),__esModule:!0}},function(t,e,n){n(264),t.exports=n(3).Object.assign},function(t,e,n){var r=n(11);r(r.S+r.F,"Object",{assign:n(265)})},function(t,e,n){"use strict";var r=n(35),i=n(266),o=n(267),u=n(39),a=n(54),c=Object.assign;t.exports=!c||n(20)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=u(t),c=arguments.length,s=1,l=i.f,f=o.f;c>s;)for(var d,h=a(arguments[s++]),p=l?r(h).concat(l(h)):r(h),v=p.length,m=0;v>m;)f.call(h,d=p[m++])&&(n[d]=h[d]);return n}:c},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"input-group date"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",attrs:{type:"text",autocomplete:t.schema.autocomplete,disabled:t.disabled,placeholder:t.schema.placeholder,readonly:t.schema.readonly,name:t.schema.inputName,id:t.getFieldID(t.schema)},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}),t._m(0)])},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"input-group-addon"},[n("span",{staticClass:"glyphicon glyphicon-calendar"})])}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(101),i=n(270),o=n(0),u=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.default=u.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",attrs:{type:"text",autocomplete:t.schema.autocomplete,disabled:t.disabled,placeholder:t.schema.placeholder,readonly:t.schema.readonly,name:t.schema.inputName,debounce:"500",id:t.getFieldID(t.schema)},domProps:{value:t.value},on:{focus:function(e){t.geolocate()},input:function(e){e.target.composing||(t.value=e.target.value)}}})},i=[]},function(t,e,n){"use strict";function r(t){n(272)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(102),o=n(273),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wrapper"},[n("input",{directives:[{name:"show",rawName:"v-show",value:!0!==t.schema.hideInput,expression:"schema.hideInput !== true"},{name:"model",rawName:"v-model",value:t.wrappedValue,expression:"wrappedValue"}],staticClass:"form-control link",attrs:{type:"text",autocomplete:t.schema.autocomplete,disabled:t.disabled,placeholder:t.schema.placeholder,readonly:t.schema.readonly},domProps:{value:t.wrappedValue},on:{input:function(e){e.target.composing||(t.wrappedValue=e.target.value)}}}),!1!==t.schema.browse?n("input",{staticClass:"form-control file",attrs:{type:"file",disabled:t.disabled,name:t.schema.inputName},on:{change:t.fileChanged}}):t._e(),n("div",{staticClass:"preview",style:t.previewStyle},[n("div",{staticClass:"remove",attrs:{title:"Remove image"},on:{click:t.remove}})])])},i=[]},function(t,e,n){"use strict";function r(t){n(275)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(103),o=n(276),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",attrs:{type:"text",autocomplete:t.schema.autocomplete,disabled:t.disabled,placeholder:t.schema.placeholder,readonly:t.schema.readonly,name:t.schema.inputName,id:t.getFieldID(t.schema)},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}})},i=[]},function(t,e,n){"use strict";function r(t){n(278)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(104),o=n(279),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"slider",class:{"contain-pips":t.containPips,"contain-tooltip":t.containTooltip},attrs:{disabled:t.disabled}})},i=[]},function(t,e,n){"use strict";function r(t){n(281)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(105),o=n(282),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",attrs:{type:"text",autocomplete:t.schema.autocomplete,disabled:t.disabled,placeholder:t.schema.placeholder,readonly:t.schema.readonly,name:t.schema.inputName},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}})},i=[]},function(t,e,n){"use strict";function r(t){n(284)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(106),o=n(291),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(286),o=r(i),u=n(107),a=r(u);e.default=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var u,c=(0,a.default)(t);!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if((0,o.default)(Object(e)))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,n){t.exports={default:n(287),__esModule:!0}},function(t,e,n){n(40),n(31),t.exports=n(288)},function(t,e,n){var r=n(41),i=n(4)("iterator"),o=n(14);t.exports=n(3).isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(r(e))}},function(t,e,n){n(40),n(31),t.exports=n(290)},function(t,e,n){var r=n(9),i=n(60);t.exports=n(3).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{attrs:{type:"text",autocomplete:t.schema.autocomplete,"data-disable":t.disabled,"data-max":t.schema.max,"data-min":t.schema.min,"data-step":t.schema.step,placeholder:t.schema.placeholder,readonly:t.schema.readonly,name:t.schema.inputName}})},i=[]},function(t,e,n){"use strict";function r(t){n(293)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(108),o=n(294),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("select",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"selectpicker",attrs:{disabled:t.disabled,multiple:t.schema.multiSelect,title:t.schema.placeholder,"data-width":"100%",name:t.schema.inputName},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.value=e.target.multiple?n:n[0]}}},[!0!==t.schema.multiSelect?n("option",{attrs:{disabled:t.schema.required},domProps:{value:null,selected:void 0==t.value}}):t._e(),t._l(t.items,function(e){return n("option",{domProps:{value:t.getItemValue(e)}},[t._v(t._s(t.getItemName(e)))])})],2)},i=[]},function(t,e,n){"use strict";function r(t){n(296)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(109),o=n(297),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{attrs:{type:"text",autocomplete:t.schema.autocomplete,disabled:t.disabled,placeholder:t.schema.placeholder,readonly:t.schema.readonly,name:t.schema.inputName,id:t.getFieldID(t.schema)}})},i=[]},function(t,e,n){"use strict";function r(t){n(299)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(110),o=n(300),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("img",{attrs:{src:t.mapLink}})},i=[]},function(t,e,n){"use strict";function r(t){n(302)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(111),o=n(303),u=n(0),a=r,c=Object(u.a)(i.a,o.a,o.b,!1,a,null,null);e.default=c.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],attrs:{type:"checkbox",autocomplete:t.schema.autocomplete,disabled:t.disabled,name:t.schema.inputName,id:t.getFieldID(t.schema)},domProps:{checked:Array.isArray(t.value)?t._i(t.value,null)>-1:t.value},on:{change:function(e){var n=t.value,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.value=n.concat([null])):o>-1&&(t.value=n.slice(0,o).concat(n.slice(o+1)))}else t.value=i}}}),n("span",{staticClass:"label",attrs:{"data-on":t.schema.textOn||"On","data-off":t.schema.textOff||"Off",for:t.getFieldID(t.schema)}}),n("span",{staticClass:"handle"})])},i=[]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(112),i=n(305),o=n(0),u=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.default=u.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("multiselect",{attrs:{id:t.selectOptions.id,options:t.options,value:t.value,multiple:t.selectOptions.multiple,"track-by":t.selectOptions.trackBy||null,label:t.selectOptions.label||null,searchable:t.selectOptions.searchable,"clear-on-select":t.selectOptions.clearOnSelect,"hide-selected":t.selectOptions.hideSelected,placeholder:t.schema.placeholder,"allow-empty":t.selectOptions.allowEmpty,"reset-after":t.selectOptions.resetAfter,"close-on-select":t.selectOptions.closeOnSelect,"custom-label":t.customLabel,taggable:t.selectOptions.taggable,"tag-placeholder":t.selectOptions.tagPlaceholder,max:t.schema.max||null,"options-limit":t.selectOptions.optionsLimit,"group-values":t.selectOptions.groupValues,"group-label":t.selectOptions.groupLabel,"block-keys":t.selectOptions.blockKeys,"internal-search":t.selectOptions.internalSearch,"select-label":t.selectOptions.selectLabel,"selected-label":t.selectOptions.selectedLabel,"deselect-label":t.selectOptions.deselectLabel,"show-labels":t.selectOptions.showLabels,limit:t.selectOptions.limit,"limit-text":t.selectOptions.limitText,loading:t.selectOptions.loading,disabled:t.disabled,"max-height":t.selectOptions.maxHeight,"show-pointer":t.selectOptions.showPointer,"option-height":t.selectOptions.optionHeight},on:{input:t.updateSelected,select:t.onSelect,remove:t.onRemove,"search-change":t.onSearchChange,tag:t.addTag,open:t.onOpen,close:t.onClose}},[n("span",{attrs:{slot:"noResult"},slot:"noResult"},[t._v(t._s(t.selectOptions.noResult))]),n("span",{attrs:{slot:"maxElements"},slot:"maxElements"},[t._v(t._s(t.selectOptions.maxElements))])])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:t.getFieldRowClasses(t.field)},[t.fieldTypeHasLabel(t.field)?n("label",{class:t.field.labelClasses,attrs:{for:t.getFieldID(t.field)}},[n("span",{domProps:{innerHTML:t._s(t.field.label)}}),t._v(" "),t.field.help?n("span",{staticClass:"help"},[n("i",{staticClass:"icon"}),t._v(" "),n("div",{staticClass:"helpText",domProps:{innerHTML:t._s(t.field.help)}})]):t._e()]):t._e(),t._v(" "),n("div",{staticClass:"field-wrap"},[n(t.getFieldType(t.field),{ref:"child",tag:"component",attrs:{vfg:t.vfg,disabled:t.fieldDisabled(t.field),model:t.model,schema:t.field,formOptions:t.options},on:{"model-updated":t.onModelUpdated,validated:t.onFieldValidated}}),t._v(" "),t.buttonVisibility(t.field)?n("div",{staticClass:"buttons"},t._l(t.field.buttons,function(e,r){return n("button",{key:r,class:e.classes,attrs:{type:t.getButtonType(e)},domProps:{textContent:t._s(e.label)},on:{click:function(n){t.buttonClickHandler(e,t.field,n)}}})})):t._e()],1),t._v(" "),t.field.hint?n("div",{staticClass:"hint",domProps:{innerHTML:t._s(t.fieldHint(t.field))}}):t._e(),t._v(" "),t.fieldErrors(t.field).length>0?n("div",{staticClass:"errors help-block"},t._l(t.fieldErrors(t.field),function(e,r){return n("span",{key:r,domProps:{innerHTML:t._s(e)}})})):t._e()])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return null!=t.schema?n("div",{staticClass:"vue-form-generator"},[t.schema.fields?n(t.tag,{tag:"fieldset"},[t._l(t.fields,function(e){return[t.fieldVisible(e)?n("form-group",{attrs:{vfg:t.vfg,field:e,errors:t.errors,model:t.model,options:t.options},on:{validated:t.onFieldValidated,"model-updated":t.onModelUpdated}}):t._e()]})],2):t._e(),t._l(t.groups,function(e){return[n(t.tag,{tag:"fieldset",class:t.getFieldRowClasses(e)},[e.legend?n("legend",[t._v(t._s(e.legend))]):t._e(),t._l(e.fields,function(e){return[t.fieldVisible(e)?n("form-group",{attrs:{vfg:t.vfg,field:e,errors:t.errors,model:t.model,options:t.options},on:{validated:t.onFieldValidated,"model-updated":t.onModelUpdated}}):t._e()]})],2)]})],2):t._e()},i=[]}])}); /***/ }), /***/ "./node_modules/vue-functions/dist/vue-functions.esm.js": /*!**************************************************************!*\ !*** ./node_modules/vue-functions/dist/vue-functions.esm.js ***! \**************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "doWatch": () => (/* binding */ doWatch), /* harmony export */ "hookHelper": () => (/* binding */ hookHelper), /* harmony export */ "isPropTrue": () => (/* binding */ isPropTrue), /* harmony export */ "iterateObjectWithoutDollarDash": () => (/* binding */ iterateObjectWithoutDollarDash), /* harmony export */ "mountedMixin": () => (/* binding */ mountedMixin), /* harmony export */ "registerPreventURLChange": () => (/* binding */ registerPreventURLChange), /* harmony export */ "updatablePropsEvenUnbound": () => (/* binding */ updatablePropsEvenUnbound), /* harmony export */ "watchAsync": () => (/* binding */ watchAsync), /* harmony export */ "windowSize": () => (/* binding */ windowSize) /* harmony export */ }); /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"); /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var helper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! helper-js */ "./node_modules/vue-functions/node_modules/helper-js/dist/helper-js.esm.js"); /*! * vue-functions v2.0.6 * (c) phphe <phphe@outlook.com> (https://github.com/phphe) * Homepage: undefined * Released under the MIT License. */ var _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(iterateObjectWithoutDollarDash); /** * [updatablePropsEvenUnbound description] * @param {[type]} props [object or getter] * @return {[type]} [description] * props eg: { value: {$localName: 'current', $localSetter: (value, vm)}, } default localName is `localProps_${name}` */ function updatablePropsEvenUnbound(props) { if ((0,helper_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(props)) { props = props(); } else { // object props = Object.assign({}, props); } var standardProps = {}; // without key starts with `$` var _loop = function _loop(name) { var prop = props[name]; // complete 补全选项 if (!prop.$localName) { prop.$localName = "localProps_".concat(name); } if (!prop.$localSetter) { prop.$localSetter = function (value) { return value; }; } // make standardProp var standardProp = {}; standardProps[name] = standardProp; Object.keys(props[name]).forEach(function (key) { if (key[0] !== '$') { standardProp[key] = prop[key]; } }); }; for (var name in props) { _loop(name); } var component = { props: standardProps, computed: {}, watch: {} }; component.data = function () { var t = { localValueOfUpdatableProps: {} }; for (var _i = 0, _Object$keys = Object.keys(props); _i < _Object$keys.length; _i++) { var _name = _Object$keys[_i]; t.localValueOfUpdatableProps[_name] = this[_name]; } return t; }; var _loop2 = function _loop2() { var name = _Object$keys2[_i2]; var prop = props[name]; component.watch[name] = function (value) { this.localValueOfUpdatableProps[name] = prop.$localSetter(value, this); }; var localName = prop.$localName; component.computed[localName] = { get: function get() { return this.localValueOfUpdatableProps[name]; }, set: function set(value) { if (name === 'value') { this.$emit('input', value); } else { this.$emit("update:".concat(name), value); } this.localValueOfUpdatableProps[name] = prop.$localSetter(value, this); } }; }; for (var _i2 = 0, _Object$keys2 = Object.keys(props); _i2 < _Object$keys2.length; _i2++) { _loop2(); } return component; } function isPropTrue(value) { return value === '' || value; } // the dependences in getter can't be auto resolved. must use exec to include dependences function watchAsync(vm, getter, handler, opt) { var destroies = []; var value, oldValue; var count = -1; // updated count main(); return destroy; function destroy() { destroies.forEach(function (f) { return f(); }); destroies = []; } function exec(getter, opt) { var value; var first = true; var unwatch = vm.$watch(function () { return getter.call(vm, exec); }, function (value2) { value = value2; if (first) { first = false; } else { main(); } }, { immediate: true, deep: opt && opt.deep }); destroies.push(unwatch); return value; } function main() { destroy(); var result = getter.call(vm, exec); count++; var localCount = count; oldValue = value; var getterExecuted = function getterExecuted(value) { if (localCount !== count) { // expired return; } if (localCount === 0) { if (opt && opt.immediate) { handler.call(vm, value, oldValue); } } else { handler.call(vm, value, oldValue); } }; // if ((0,helper_js__WEBPACK_IMPORTED_MODULE_2__.isPromise)(result)) { result.then(getterExecuted); } else { getterExecuted(result); } } } // do handler first, handler return getter function doWatch(vm, handler) { var oldValue, unwatch; var update = function update() { var getter = handler.call(vm, oldValue); unwatch = vm.$watch(getter, function (value) { unwatch(); oldValue = value; update(); }); }; update(); return function () { return unwatch && unwatch(); }; } function iterateObjectWithoutDollarDash(obj) { var key, start; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function iterateObjectWithoutDollarDash$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: _context.t0 = _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().keys(obj); case 1: if ((_context.t1 = _context.t0()).done) { _context.next = 9; break; } key = _context.t1.value; start = key.substr(0, 1); if (!(start !== '$' && start !== '_')) { _context.next = 7; break; } _context.next = 7; return { key: key, value: obj[key] }; case 7: _context.next = 1; break; case 9: case "end": return _context.stop(); } } }, _marked); } // add reactive `windowSize` var windowSize = { data: function data() { return { windowSize: { innerWidth: window.innerWidth, innerHeight: window.innerHeight, outerWidth: window.outerWidth, outerHeight: window.outerHeight } }; }, methods: { updateWindowSize: function updateWindowSize() { Object.assign(this.windowSize, { innerWidth: window.innerWidth, innerHeight: window.innerHeight, outerWidth: window.outerWidth, outerHeight: window.outerHeight }); } }, created: function created() { var _this = this; this._windowSize_onresize = function () { _this.updateWindowSize(); _this.$emit('window-resize'); }; (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.onDOM)(window, 'resize', this._windowSize_onresize); }, beforeDestroy: function beforeDestroy() { (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.offDOM)(window, 'resize', this._windowSize_onresize); } }; function registerPreventURLChange(Vue, router, msg) { var preventRouter = false; var msg0 = "It looks like you have been editing something.\nIf you leave before saving, your changes will be lost."; router.beforeEach(function (to, from, next) { if (preventRouter) { if (window.confirm(msg || msg0)) { Vue.allowURLChange(); next(); } else { next(false); } } else { next(); } }); var beforeunload = function beforeunload(e) { var confirmationMessage = msg || msg0; e.returnValue = confirmationMessage; // Gecko, Trident, Chrome 34+ return confirmationMessage; // Gecko, WebKit, Chrome <34 }; Vue.preventURLChange = Vue.prototype.$preventURLChange = function (msg2) { if (msg2 != null) { msg = msg2; } if (!preventRouter) { preventRouter = true; window.addEventListener("beforeunload", beforeunload); } }; Vue.allowURLChange = Vue.prototype.$allowURLChange = function () { preventRouter = false; window.removeEventListener("beforeunload", beforeunload); }; } var hookHelper = { methods: { // todo extract hooks to vue-functions // get hooks in this._hooks, without which in props _getNonPropHooksByName: function _getNonPropHooksByName(name) { if (this._hooks) { return this._hooks[name]; } }, addHook: function addHook(name, func) { if (!this._getNonPropHooksByName(name)) { if (!this._hooks) { this._hooks = {}; } if (!this._hooks[name]) { this._hooks[name] = []; } } this._hooks[name].push(func); }, removeHook: function removeHook(name, func) { var hooks = this._getNonPropHooksByName(name); if (hooks) { (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.arrayRemove)(hooks, func); } }, hasHook: function hasHook(name) { return this._getNonPropHooksByName(name) || this[name]; }, executeHook: function executeHook(name, args) { var _this2 = this; var hooks = this._getNonPropHooksByName(name); hooks = hooks ? hooks.slice() : []; if (this[name] && (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(this[name])) { hooks.push(function (next) { for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } return _this2[name].apply(_this2, args); }); } return (0,helper_js__WEBPACK_IMPORTED_MODULE_2__.joinFunctionsByNext)(hooks).apply(void 0, (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__.default)(args)); } } }; var mountedMixin = { data: function data() { var _this3 = this; return { mounted: new Promise(function (resolve, reject) { _this3._mounted_resolve = resolve; }) }; }, mounted: function mounted() { this._mounted_resolve(); } }; /***/ }), /***/ "./node_modules/vue-functions/node_modules/helper-js/dist/helper-js.esm.js": /*!*********************************************************************************!*\ !*** ./node_modules/vue-functions/node_modules/helper-js/dist/helper-js.esm.js ***! \*********************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "Cache": () => (/* binding */ Cache), /* harmony export */ "CrossWindow": () => (/* binding */ CrossWindow), /* harmony export */ "CrossWindowEventProcessor": () => (/* binding */ CrossWindowEventProcessor), /* harmony export */ "EventProcessor": () => (/* binding */ EventProcessor), /* harmony export */ "TreeData": () => (/* binding */ TreeData), /* harmony export */ "URLHelper": () => (/* binding */ URLHelper), /* harmony export */ "addClass": () => (/* binding */ addClass), /* harmony export */ "addDate": () => (/* binding */ addDate), /* harmony export */ "appendTo": () => (/* binding */ appendTo), /* harmony export */ "arrayAt": () => (/* binding */ arrayAt), /* harmony export */ "arrayDistinct": () => (/* binding */ arrayDistinct), /* harmony export */ "arrayFirst": () => (/* binding */ arrayFirst), /* harmony export */ "arrayFlat": () => (/* binding */ arrayFlat), /* harmony export */ "arrayGetRange": () => (/* binding */ arrayGetRange), /* harmony export */ "arrayLast": () => (/* binding */ arrayLast), /* harmony export */ "arrayRemove": () => (/* binding */ arrayRemove), /* harmony export */ "arrayRemoveBySortedIndexes": () => (/* binding */ arrayRemoveBySortedIndexes), /* harmony export */ "arraySubtract": () => (/* binding */ arraySubtract), /* harmony export */ "arrayWithoutEnd": () => (/* binding */ arrayWithoutEnd), /* harmony export */ "assignIfDifferent": () => (/* binding */ assignIfDifferent), /* harmony export */ "attachCache": () => (/* binding */ attachCache), /* harmony export */ "backupAttr": () => (/* binding */ backupAttr), /* harmony export */ "binarySearch": () => (/* binding */ binarySearch), /* harmony export */ "camelCase": () => (/* binding */ camelCase), /* harmony export */ "camelToWords": () => (/* binding */ camelToWords), /* harmony export */ "cloneDate": () => (/* binding */ cloneDate), /* harmony export */ "copyTextToClipboard": () => (/* binding */ copyTextToClipboard), /* harmony export */ "createElementFromHTML": () => (/* binding */ createElementFromHTML), /* harmony export */ "debounceImmediate": () => (/* binding */ debounceImmediate), /* harmony export */ "debounceTrailing": () => (/* binding */ debounceTrailing), /* harmony export */ "depthFirstSearch": () => (/* binding */ depthFirstSearch), /* harmony export */ "easeInOutQuad": () => (/* binding */ easeInOutQuad), /* harmony export */ "elementsFromPoint": () => (/* binding */ elementsFromPoint), /* harmony export */ "empty": () => (/* binding */ empty), /* harmony export */ "executePromiseGetters": () => (/* binding */ executePromiseGetters), /* harmony export */ "executeWithCount": () => (/* binding */ executeWithCount), /* harmony export */ "findNodeList": () => (/* binding */ findNodeList), /* harmony export */ "findNodeListReverse": () => (/* binding */ findNodeListReverse), /* harmony export */ "findParent": () => (/* binding */ findParent), /* harmony export */ "getArrayItemSibling": () => (/* binding */ getArrayItemSibling), /* harmony export */ "getArrayItemSiblings": () => (/* binding */ getArrayItemSiblings), /* harmony export */ "getBorder": () => (/* binding */ getBorder), /* harmony export */ "getBoundingClientRect": () => (/* binding */ getBoundingClientRect), /* harmony export */ "getCalendar": () => (/* binding */ getCalendar), /* harmony export */ "getElSizeEvenInvisible": () => (/* binding */ getElSizeEvenInvisible), /* harmony export */ "getImageSizeByUrl": () => (/* binding */ getImageSizeByUrl), /* harmony export */ "getLocalStorage2": () => (/* binding */ getLocalStorage2), /* harmony export */ "getMonthEnd": () => (/* binding */ getMonthEnd), /* harmony export */ "getMonthStart": () => (/* binding */ getMonthStart), /* harmony export */ "getOffset": () => (/* binding */ getOffset), /* harmony export */ "getOffsetParent": () => (/* binding */ getOffsetParent), /* harmony export */ "getOuterAttachedHeight": () => (/* binding */ getOuterAttachedHeight), /* harmony export */ "getOuterAttachedWidth": () => (/* binding */ getOuterAttachedWidth), /* harmony export */ "getPosition": () => (/* binding */ getPosition), /* harmony export */ "getPositionFromOffset": () => (/* binding */ getPositionFromOffset), /* harmony export */ "getScroll": () => (/* binding */ getScroll), /* harmony export */ "getSessionStorage2": () => (/* binding */ getSessionStorage2), /* harmony export */ "getUrlParam": () => (/* binding */ getUrlParam), /* harmony export */ "getUserLanguage": () => (/* binding */ getUserLanguage), /* harmony export */ "getViewportPosition": () => (/* binding */ getViewportPosition), /* harmony export */ "glb": () => (/* binding */ glb), /* harmony export */ "groupArray": () => (/* binding */ groupArray), /* harmony export */ "hasClass": () => (/* binding */ hasClass), /* harmony export */ "insertAfter": () => (/* binding */ insertAfter), /* harmony export */ "insertBefore": () => (/* binding */ insertBefore), /* harmony export */ "isArray": () => (/* binding */ isArray), /* harmony export */ "isBool": () => (/* binding */ isBool), /* harmony export */ "isDescendantOf": () => (/* binding */ isDescendantOf), /* harmony export */ "isDocumentExisted": () => (/* binding */ isDocumentExisted), /* harmony export */ "isFunction": () => (/* binding */ isFunction), /* harmony export */ "isIE": () => (/* binding */ isIE), /* harmony export */ "isIsoFormat": () => (/* binding */ isIsoFormat), /* harmony export */ "isNode": () => (/* binding */ isNode), /* harmony export */ "isNumber": () => (/* binding */ isNumber), /* harmony export */ "isNumeric": () => (/* binding */ isNumeric), /* harmony export */ "isObject": () => (/* binding */ isObject), /* harmony export */ "isOffsetInEl": () => (/* binding */ isOffsetInEl), /* harmony export */ "isPromise": () => (/* binding */ isPromise), /* harmony export */ "isString": () => (/* binding */ isString), /* harmony export */ "isWindowDefined": () => (/* binding */ isWindowDefined), /* harmony export */ "iterateAll": () => (/* binding */ iterateAll), /* harmony export */ "joinFunctionsByNext": () => (/* binding */ joinFunctionsByNext), /* harmony export */ "joinFunctionsByResult": () => (/* binding */ joinFunctionsByResult), /* harmony export */ "kebabCase": () => (/* binding */ kebabCase), /* harmony export */ "makeStorageHelper": () => (/* binding */ makeStorageHelper), /* harmony export */ "mapObjectTree": () => (/* binding */ mapObjectTree), /* harmony export */ "mapObjects": () => (/* binding */ mapObjects), /* harmony export */ "newArrayExcludingIndexes": () => (/* binding */ newArrayExcludingIndexes), /* harmony export */ "notGreaterThan": () => (/* binding */ notGreaterThan), /* harmony export */ "notLessThan": () => (/* binding */ notLessThan), /* harmony export */ "objectAssignIfKeyNull": () => (/* binding */ objectAssignIfKeyNull), /* harmony export */ "objectExcept": () => (/* binding */ objectExcept), /* harmony export */ "objectGet": () => (/* binding */ objectGet), /* harmony export */ "objectMap": () => (/* binding */ objectMap), /* harmony export */ "objectOnly": () => (/* binding */ objectOnly), /* harmony export */ "objectSet": () => (/* binding */ objectSet), /* harmony export */ "offDOM": () => (/* binding */ offDOM), /* harmony export */ "offsetToViewportPosition": () => (/* binding */ offsetToViewportPosition), /* harmony export */ "onContinuousInput": () => (/* binding */ onContinuousInput), /* harmony export */ "onDOM": () => (/* binding */ onDOM), /* harmony export */ "onDOMMany": () => (/* binding */ onDOMMany), /* harmony export */ "onQuickKeydown": () => (/* binding */ onQuickKeydown), /* harmony export */ "openCenterWindow": () => (/* binding */ openCenterWindow), /* harmony export */ "openWindow": () => (/* binding */ openWindow), /* harmony export */ "pairRows": () => (/* binding */ pairRows), /* harmony export */ "parseISO": () => (/* binding */ parseISO), /* harmony export */ "prependTo": () => (/* binding */ prependTo), /* harmony export */ "promiseTimeout": () => (/* binding */ promiseTimeout), /* harmony export */ "randChoice": () => (/* binding */ randChoice), /* harmony export */ "randInt": () => (/* binding */ randInt), /* harmony export */ "randString": () => (/* binding */ randString), /* harmony export */ "removeClass": () => (/* binding */ removeClass), /* harmony export */ "removeEl": () => (/* binding */ removeEl), /* harmony export */ "resolveArgsByType": () => (/* binding */ resolveArgsByType), /* harmony export */ "resolveValueOrGettter": () => (/* binding */ resolveValueOrGettter), /* harmony export */ "restoreAttr": () => (/* binding */ restoreAttr), /* harmony export */ "retry": () => (/* binding */ retry), /* harmony export */ "scrollTo": () => (/* binding */ scrollTo), /* harmony export */ "setElChildByIndex": () => (/* binding */ setElChildByIndex), /* harmony export */ "snakeCase": () => (/* binding */ snakeCase), /* harmony export */ "splitArray": () => (/* binding */ splitArray), /* harmony export */ "store": () => (/* binding */ store), /* harmony export */ "strPad": () => (/* binding */ strPad), /* harmony export */ "studlyCase": () => (/* binding */ studlyCase), /* harmony export */ "titleCase": () => (/* binding */ titleCase), /* harmony export */ "toArrayIfNot": () => (/* binding */ toArrayIfNot), /* harmony export */ "uniqueId": () => (/* binding */ uniqueId), /* harmony export */ "unset": () => (/* binding */ unset), /* harmony export */ "viewportPositionToOffset": () => (/* binding */ viewportPositionToOffset), /* harmony export */ "waitFor": () => (/* binding */ waitFor), /* harmony export */ "waitTime": () => (/* binding */ waitTime), /* harmony export */ "walkTreeData": () => (/* binding */ walkTreeData), /* harmony export */ "watchChange": () => (/* binding */ watchChange), /* harmony export */ "windowLoaded": () => (/* binding */ windowLoaded) /* harmony export */ }); /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"); /* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/get */ "./node_modules/@babel/runtime/helpers/esm/get.js"); /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js"); /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"); /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"); /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js"); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"); /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"); /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); /*! * helper-js v2.0.3 * (c) phphe <phphe@outlook.com> (https://github.com/phphe) * Homepage: undefined * Released under the MIT License. */ function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); } function _createSuper(Derived) { return function () { var Super = (0,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__.default)(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = (0,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0,_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__.default)(this, result); }; } function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } var _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default().mark(iterateAll); function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } // 为此库有需要的方法存储信息 // @ts-ignore var store = { uniqueId: {} }; // get global, such as window in browser. // 返回顶级全局变量. 例如浏览器的`window` function glb() { // `this` !== global or window because of build tool. So you can't use `this` to get `global` if (store.glb) { return store.glb; } else { // resolve global var t; try { t = __webpack_require__.g; } catch (e) { t = window; } store.glb = t; return t; } } // detect if global variable `document` existing. // 判断全局变量`document`是否存在 function isDocumentExisted() { try { var t = document; } catch (e) { return false; } return true; } function isArray(v) { return Object.prototype.toString.call(v) === '[object Array]'; } function isBool(v) { return Object.prototype.toString.call(v) === '[object Boolean]'; } function isNumber(v) { return Object.prototype.toString.call(v) === '[object Number]'; } function isNumeric(v) { return isFinite(v) && !isNaN(parseFloat(v)); } function isString(v) { return Object.prototype.toString.call(v) === '[object String]'; } function isObject(v) { return Object.prototype.toString.call(v) === '[object Object]'; } function isFunction(v) { return typeof v === 'function'; } function isPromise(v) { return Object.prototype.toString.call(v) === '[object Promise]'; } // detect if argumrnt is null, undefined, empty array, empty string, false, NaN, empty object // 检查是否是null, undefined, 空数组, 空字符串, false, NaN, 空对象 function empty(v) { if (v == null) { return true; } else if (v.length != null) { return v.length === 0; } else if (isBool(v)) { return false; } else if (isNumber(v)) { return isNaN(v); } else if (isObject(v)) { return Object.keys(v).length === 0; } } // rand int in range, including min and max // 返回指定范围随机整数, 包括范围起始值和终止值 function randInt(min, max) { return Math.floor(Math.random() * (max - min + 1) + min); } // rand item in array // 返回数组随机一项 function randChoice(arr) { return arr[randInt(0, arr.length - 1)]; } // Pad a string to a certain length with another string // 左边补充指定字符, 使其达到指定长度 function strPad(str, n) { var padString = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '0'; var r = str.toString(); var len = str.toString().length; while (len < n) { r = padString + r; len++; } if (r.length > n) { r = r.substr(r.length - n); } return str; } // If n less than `min`, return `min`, else n. // 如果n小于min, 返回min, 否则n. function notLessThan(n, min) { return n < min ? min : n; } // If n greater than `max`, return `max`, else n. // 如果n大于max, 返回max, 否则n. function notGreaterThan(n, max) { return n < max ? n : max; } // ## string // ## 字符串 // 'abc abc' to 'Abc abc' function studlyCase(str) { return str && str[0].toUpperCase() + str.substr(1); } // To lower case and use `-` as delimiter. example: '-ABC abc_def camelCase-- helloMyFriend' to 'a-b-c-abc-def-camel-case-hello-my-friend' function kebabCase(str) { return str.replace(/ /g, '-').replace(/_/g, '-').replace(/([A-Z])/g, '-$1').replace(/--+/g, '-').replace(/^-|-$|/g, '').toLowerCase(); } // To lower case and use `_` as delimiter. function snakeCase(str) { return kebabCase(str).replace(/-/g, '_'); } // 'abc-abc-abc_abc' to 'AbcAbcAbcAbc' function camelCase(str) { var temp = str.toString().split(/[-_]/); for (var i = 1; i < temp.length; i++) { temp[i] = studlyCase(temp[i]); } return temp.join(''); } // 'AbcAbcAbcAbc' to ['Abc', 'Abc', 'Abc', 'Abc'] function camelToWords(str) { return str.toString().trim().split(/(?=[A-Z])/); } // 'abcAbc' to 'Abc Abc' function titleCase(str) { return camelToWords(studlyCase(camelCase(str))).join(' ').replace(/\bid\b/ig, 'ID'); } // generate random string // 随机字符串 function randString() { var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 8; var seeds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; var r = ''; for (var i = 0; i < len; i++) { r += randChoice(seeds); } return r; } // ## Array // ## 数组 // remove item from array. return removed count // 从数组删除项. 返回删除计数 function arrayRemove(arr, v) { var index; var count = 0; while ((index = arr.indexOf(v)) > -1) { arr.splice(index, 1); count++; } return count; } // remove items from array by sorted indexes. indexes example: [0, 2, 6, 8, 9] // 通过有序的索引集删除数组项. 索引集例子: [0, 2, 6, 8, 9] function arrayRemoveBySortedIndexes(arr, sortedIndexes) { for (var i = sortedIndexes.length - 1; i >= 0; i--) { var index = sortedIndexes[i]; arr.splice(index, 1); } } // return new array excluding indexes // 返回新数组除了给定索引 function newArrayExcludingIndexes(arr, indexes) { var mapping = {}; var _iterator = _createForOfIteratorHelper(indexes), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var index = _step.value; mapping[index] = true; } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } var newArr = []; var len = arr.length; for (var i = 0; i < len; i++) { if (!mapping[i]) { newArr.push(arr[i]); } } return newArr; } // get item from array by index. index can be negative number // 通过所以获取数组一项. 支持负值索引. function arrayAt(arr, n) { return arr[n >= 0 ? n : arr.length + n]; } // get first or array // 返回数组首项 function arrayFirst(arr) { return arr[0]; } // get last of array // 返回数组末项 function arrayLast(arr) { return arr[arr.length - 1]; } // return arr1 - arr2 function arraySubtract(arr1, arr2) { var len = arr1.length; var arr = []; while (len--) { if (arr2.indexOf(arr1[len]) < 0) { arr.push(arr1[len]); } } return arr; } // get array item sibling. Example: getArrayItemSibling(arr, item, -1), get previous sibling // 获得数组项的一个同级. 例: getArrayItemSibling(arr, item, -1), 获得前一个 function getArrayItemSibling(arr, item, offset) { return getArrayItemSiblings(arr, item, [offset])[0]; } // get array item siblings. Example: getArrayItemSiblings(arr, item, [-1, 1]), get previous and next sibling // 获得数组项的多个同级. 例: getArrayItemSiblings(arr, item, [-1, 1]), 获得前一个和后一个 function getArrayItemSiblings(arr, item, offsets) { var index = arr.indexOf(item); if (index === -1) { throw 'item is not in array'; } return offsets.map(function (v) { return arr[index + v]; }); } function toArrayIfNot(arrOrNot) { return isArray(arrOrNot) ? arrOrNot : [arrOrNot]; } function splitArray(arr, n) { var r = []; if (isFunction(n)) { var getChunkLength = n; var times = 1; var i = 0; while (i < arr.length) { var _n = getChunkLength(times); var end = i + _n; r.push(arr.slice(i, end)); i = end; times++; } } else { var _i = 0; while (_i < arr.length) { var _end = _i + n; r.push(arr.slice(_i, _end)); _i = _end; } } return r; } // Compute mark of each item, and group them by mark. // 计算每项的标识, 通过标识将数组项分组. function groupArray(arr, getMark) { var groups = new Map(); arr.forEach(function (v) { var mark = getMark(v); if (!groups.has(mark)) { groups.set(mark, []); } groups.get(mark).push(v); }); return groups; } // Each item in the new array is unique. // 新数组每项唯一. function arrayDistinct(arr) { // @ts-ignore if (glb().Set) { return (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(new Set(arr)); } else { return arr.filter(function (v, i, a) { return a.indexOf(v) === i; }); } } // get items from array by range. range can be negative // 从数组获得一个范围内的项. 范围可以为负. function arrayGetRange(arr, index, endIndex) { if (index < 0) { index += arr.length; } if (endIndex == null) { return arr[index]; } else { if (endIndex < 0) { endIndex += arr.length; } return arr.slice(index, endIndex - index + 1); } } // return new array excluding n items from end // 返回新数组排除末尾n项 function arrayWithoutEnd(arr, n) { return arr.slice(0, arr.length - n); } // get one-dimensional array from multidimensional array // 从多维数组获取一维数组 function arrayFlat(arr) { var depth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10; var r = []; var rec = function rec(arr, curentDepth) { var _iterator2 = _createForOfIteratorHelper(arr), _step2; try { for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { var item = _step2.value; if (isArray(item) && curentDepth < depth) { rec(item, curentDepth + 1); } else { r.push(item); } } } catch (err) { _iterator2.e(err); } finally { _iterator2.f(); } }; rec(arr, 0); return r; } // ## Object // ## 对象 function assignIfDifferent(obj, key, val) { if (obj[key] !== val) { obj[key] = val; } } // like Array.map function objectMap(obj, handler) { var r = {}; var i = 0; for (var key in obj) { r[key] = handler(obj[key], key, i); i++; } return r; } function objectOnly(obj, keys) { var keysSet = new Set(keys); var r = {}; for (var key in obj) { if (keysSet.has(key)) { r[key] = obj[key]; } } return r; } function objectExcept(obj, keys) { var keysSet = new Set(keys); var r = {}; for (var key in obj) { if (!keysSet.has(key)) { r[key] = obj[key]; } } return r; } function iterateAll(val) { var opt, i, info, _i2, _Object$keys, key, _info, _i3, _info2, keys, _i4, _keys, _key, _info3, _args = arguments; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default().wrap(function iterateAll$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: opt = _args.length > 1 && _args[1] !== undefined ? _args[1] : {}; if (opt.reverse) { _context.next = 30; break; } if (!(val.length != null)) { _context.next = 14; break; } i = 0; case 4: if (!(i < val.length)) { _context.next = 12; break; } info = { value: val[i], index: i }; if (!(!opt.exclude || !opt.exclude(info))) { _context.next = 9; break; } _context.next = 9; return info; case 9: i++; _context.next = 4; break; case 12: _context.next = 28; break; case 14: if (!isObject(val)) { _context.next = 27; break; } _i2 = 0, _Object$keys = Object.keys(val); case 16: if (!(_i2 < _Object$keys.length)) { _context.next = 25; break; } key = _Object$keys[_i2]; _info = { value: val[key], key: key }; if (!(!opt.exclude || !opt.exclude(_info))) { _context.next = 22; break; } _context.next = 22; return _info; case 22: _i2++; _context.next = 16; break; case 25: _context.next = 28; break; case 27: throw 'Unsupported type'; case 28: _context.next = 58; break; case 30: if (!(val.length != null)) { _context.next = 42; break; } _i3 = val.length - 1; case 32: if (!(_i3 >= 0)) { _context.next = 40; break; } _info2 = { value: val[_i3], index: _i3 }; if (!(!opt.exclude || !opt.exclude(_info2))) { _context.next = 37; break; } _context.next = 37; return _info2; case 37: _i3--; _context.next = 32; break; case 40: _context.next = 58; break; case 42: if (!isObject(val)) { _context.next = 57; break; } keys = Object.keys(val); keys.reverse(); _i4 = 0, _keys = keys; case 46: if (!(_i4 < _keys.length)) { _context.next = 55; break; } _key = _keys[_i4]; _info3 = { value: val[_key], key: _key }; if (!(!opt.exclude || !opt.exclude(_info3))) { _context.next = 52; break; } _context.next = 52; return _info3; case 52: _i4++; _context.next = 46; break; case 55: _context.next = 58; break; case 57: throw 'Unsupported type'; case 58: case "end": return _context.stop(); } } }, _marked); } // example: objectGet(window, 'document.body.children.0') . source: http://stackoverflow.com/questions/8817394/javascript-get-deep-value-from-object-by-passing-path-to-it-as-string // 例: objectGet(window, 'document.body.children.0') . 参考: http://stackoverflow.com/questions/8817394/javascript-get-deep-value-from-object-by-passing-path-to-it-as-string function objectGet(obj, path, throwError) { var paths = isArray(path) ? path : path.split('.'); var current = obj; try { var _iterator3 = _createForOfIteratorHelper(paths), _step3; try { for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) { var key = _step3.value; current = current[key]; } } catch (err) { _iterator3.e(err); } finally { _iterator3.f(); } } catch (e) { if (throwError) { throw "Path does not exist"; } } return current; } // refer [objectGet](#objectGet) function objectSet(obj, path, value) { var paths = isArray(path) ? path : path.split('.'); var lastKey = arrayLast(paths); var parent = objectGet(obj, paths.slice(0, paths.length - 1)); if (!parent) { throw "Path does not exist"; } parent[lastKey] = value; } // try delete obj[prop] function unset(obj, prop) { obj[prop] = undefined; try { delete obj[prop]; } catch (e) {} } function objectAssignIfKeyNull(obj1, obj2) { Object.keys(obj2).forEach(function (key) { if (obj1[key] == null) { obj1[key] = obj2[key]; } }); } function mapObjectTree(obj, handler) { var limit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10000; var r; var count = 0; var stack = [{ value: obj }]; var _loop2 = function _loop2() { if (count >= limit) { throw "mapObjectTree: limit(".concat(limit, ") reached, object may has circular reference"); } count++; // @ts-ignore var _stack$shift = stack.shift(), value = _stack$shift.value, key = _stack$shift.key, parent = _stack$shift.parent, newParent = _stack$shift.newParent; var t = handler(value, key, parent, newParent); var assign = function assign(value, key, canPush) { if (isArray(value)) { value = []; } else if (isObject(value)) { value = {}; } if (parent) { if (isArray(newParent) && canPush) { newParent.push(value); } else { newParent[key] = value; } } else { r = value; } // value may changed return value; }; var newVal = void 0, val = void 0, toDelete = void 0, stop = void 0, skip = void 0; if (!t) { // no change val = value; // @ts-ignore newVal = assign(value, key); } else { var key2 = t.key, _value = t.value; val = _value; // @ts-ignore if (t.delete || key2 === false) { // del toDelete = true; } else if (key2 == null) { // don't change key newVal = assign(_value, key, true); } else if (t.hasOwnProperty('value')) { // @ts-ignore newVal = assign(_value, key2); } stop = t.stop; skip = t.skip; } if (toDelete) { return "continue"; } if (skip) { return "continue"; } if (stop) { return "break"; } if (isArray(val)) { var len = val.length; for (var i = 0; i < len; i++) { // @ts-ignore stack.push({ value: val[i], key: i, parent: val, newParent: newVal }); } } else if (isObject(val)) { Object.keys(val).forEach(function (key) { // @ts-ignore stack.push({ value: val[key], key: key, parent: val, newParent: newVal }); }); } }; _loop: while (stack.length > 0) { var _ret = _loop2(); switch (_ret) { case "continue": continue; case "break": break _loop; } } return r; } function mapObjects(arr, idKey) { var r = {}; var len = arr.length; for (var i = 0; i < len; i++) { var item = arr[i]; // @ts-ignore var id = isFunction(idKey) ? idKey(item, i) : item[idKey]; r[id] = item; } return r; } // example: pairRows(users, userProfiles, 'id', 'user_id') function pairRows(rows1, rows2, key1) { var key2 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : key1; var map = mapObjects(rows2, key2); return rows1.map(function (row1) { return [row1, map[row1[key1]]]; }); } function depthFirstSearch(obj, handler) { var childrenKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'children'; var opt = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; var rootChildren = isArray(obj) ? obj : [obj]; // var StopException = function StopException() { (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__.default)(this, StopException); }; var func = function func(children, parent, parentPath) { if (opt.reverse) { children = children.slice(); children.reverse(); } var len = children.length; for (var i = 0; i < len; i++) { var item = children[i]; var index = opt.reverse ? len - i - 1 : i; var path = parentPath ? [].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(parentPath), [index]) : []; var r = handler(item, index, parent, path); if (r === false) { // stop throw new StopException(); } else if (r === 'skip children') { continue; } else if (r === 'skip siblings') { break; } if (item[childrenKey] != null) { func(item[childrenKey], item, path); } } }; try { func(rootChildren, null, isArray(obj) ? [] : null); } catch (e) { if (e instanceof StopException) ; else { throw e; } } } // refer [depthFirstSearch](#depthFirstSearch) var walkTreeData = depthFirstSearch; // tree data helpers var TreeData = /*#__PURE__*/function () { // data = null; function TreeData() { var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__.default)(this, TreeData); this.childrenKey = 'children'; this.data = data; } (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_6__.default)(TreeData, [{ key: "iteratePath", value: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default().mark(function iteratePath(path) { var opt, childrenKey, rootChildren, prevPath, prevChildren, _iterator4, _step4, index, currentPath, currentNode, list, _iterator5, _step5, _step5$value, path0, node, _path, _args2 = arguments; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default().wrap(function iteratePath$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: opt = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {}; childrenKey = this.childrenKey, rootChildren = this.rootChildren; if (opt.reverse) { _context2.next = 29; break; } prevPath = []; prevChildren = rootChildren; _iterator4 = _createForOfIteratorHelper(path); _context2.prev = 6; _iterator4.s(); case 8: if ((_step4 = _iterator4.n()).done) { _context2.next = 19; break; } index = _step4.value; currentPath = [].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(prevPath), [index]); currentNode = prevChildren[index]; _context2.next = 14; return { path: currentPath, node: currentNode }; case 14: prevPath = currentPath; prevChildren = currentNode[childrenKey]; case 17: _context2.next = 8; break; case 19: _context2.next = 24; break; case 21: _context2.prev = 21; _context2.t0 = _context2["catch"](6); _iterator4.e(_context2.t0); case 24: _context2.prev = 24; _iterator4.f(); return _context2.finish(24); case 27: _context2.next = 49; break; case 29: list = (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(this.iteratePath(path, Object.assign(Object.assign({}, opt), { reverse: false }))); list.reverse(); _iterator5 = _createForOfIteratorHelper(list); _context2.prev = 32; _iterator5.s(); case 34: if ((_step5 = _iterator5.n()).done) { _context2.next = 41; break; } _step5$value = _step5.value, path0 = _step5$value.path, node = _step5$value.node; _path = path0; _context2.next = 39; return { path: _path, node: node }; case 39: _context2.next = 34; break; case 41: _context2.next = 46; break; case 43: _context2.prev = 43; _context2.t1 = _context2["catch"](32); _iterator5.e(_context2.t1); case 46: _context2.prev = 46; _iterator5.f(); return _context2.finish(46); case 49: case "end": return _context2.stop(); } } }, iteratePath, this, [[6, 21, 24, 27], [32, 43, 46, 49]]); }) }, { key: "getAllNodes", value: function getAllNodes(path) { var all = []; var _iterator6 = _createForOfIteratorHelper(this.iteratePath(path)), _step6; try { for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) { var node = _step6.value.node; all.push(node); } } catch (err) { _iterator6.e(err); } finally { _iterator6.f(); } return all; } }, { key: "getNode", value: function getNode(path) { return arrayLast(this.getAllNodes(path)); } }, { key: "getNodeIndexAndParent", value: function getNodeIndexAndParent(path) { var parentPath = path.slice(); var index = parentPath.pop(); return { parent: this.getNode(parentPath), index: index, parentPath: parentPath }; } }, { key: "getNodeParent", value: function getNodeParent(path) { return this.getNodeIndexAndParent(path).parent; } }, { key: "setPathNode", value: function setPathNode(path, node) { if (path == null || path.length === 0) { this.data = node; } else { var childrenKey = this.childrenKey, rootChildren = this.rootChildren; var _this$getNodeIndexAnd = this.getNodeIndexAndParent(path), parent = _this$getNodeIndexAnd.parent, index = _this$getNodeIndexAnd.index; var parentChildren = path.length === 1 ? rootChildren : parent[childrenKey]; parentChildren[index] = node; } } }, { key: "removeNode", value: function removeNode(path) { var childrenKey = this.childrenKey, rootChildren = this.rootChildren; var _this$getNodeIndexAnd2 = this.getNodeIndexAndParent(path), parent = _this$getNodeIndexAnd2.parent, index = _this$getNodeIndexAnd2.index; var parentChildren = path.length === 1 ? rootChildren : parent[childrenKey]; var node = parentChildren[index]; parentChildren.splice(index, 1); return node; } }, { key: "walk", value: function walk(handler, opt) { var childrenKey = this.childrenKey, data = this.data; // @ts-ignore return walkTreeData(data, handler, childrenKey, opt); } }, { key: "clone", value: function clone() { var opt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; // opt.afterNodeCreated(newNode, {oldNode: node, index, parent, path}) var childrenKey = this.childrenKey; var td = new TreeData(); this.walk(function (node, index, parent, path) { var newNode = Object.assign({}, node); if (newNode[childrenKey]) { newNode[childrenKey] = []; } if (opt.afterNodeCreated) { opt.afterNodeCreated(newNode, { oldNode: node, index: index, parent: parent, path: path }); } td.setPathNode(path, newNode); }); return td.data; } }, { key: "rootChildren", get: function get() { var childrenKey = this.childrenKey; var data = this.data; return isArray(data) ? data : data[childrenKey]; } }]); return TreeData; }(); // ## function // ## 函数 // if it is function, return result, else return it directly. function resolveValueOrGettter(valueOrGetter) { var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; if (isFunction(valueOrGetter)) { return valueOrGetter.apply(void 0, (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(args)); } else { return valueOrGetter; } } function executeWithCount(func) { var count = 0; function wrapper() { for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) { args[_key2] = arguments[_key2]; } // @ts-ignore return func.call.apply(func, [this, count++].concat(args)); } return wrapper; } function watchChange(getVal, handler) { var oldVal; var update = function update() { for (var _len2 = arguments.length, args = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) { args[_key3] = arguments[_key3]; } // @ts-ignore var newVal = getVal.apply(void 0, args); if (oldVal !== newVal) { // @ts-ignore handler.apply(void 0, [newVal].concat(args)); } oldVal = newVal; }; return update; } function debounceTrailing(action) { var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; var t; var lastArgs; // when trailing, use last args var resolves = []; var rejects = []; var wrappedAction = function wrappedAction() { var _this = this; for (var _len3 = arguments.length, args = new Array(_len3), _key4 = 0; _key4 < _len3; _key4++) { args[_key4] = arguments[_key4]; } return new Promise(function (resolve, reject) { resolves.push(resolve); rejects.push(reject); // lastArgs = args; if (t) { clearTimeout(t); } t = setTimeout(function () { // @ts-ignore var result = action.call.apply(action, [_this].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(lastArgs))); t = null; resolves.forEach(function (resolve) { return resolve(result); }); resolves = []; rejects = []; }, wait); }); }; var stop = function stop() { if (t) { clearTimeout(t); t = null; } resolves = []; rejects.forEach(function (reject) { return reject(); }); rejects = []; }; // @ts-ignore return { action: wrappedAction, stop: stop }; } function debounceImmediate(action) { var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; var t; var delaying; var result; var wrappedAction = function wrappedAction() { var _this2 = this; return new Promise(function (resolve, reject) { if (delaying) { resolve(result); } else { delaying = true; // @ts-ignore result = action.call.apply(action, [_this2].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(lastArgs))); resolve(result); t = setTimeout(function () { t = null; delaying = false; result = null; }, wait); } }); }; var stop = function stop() { if (t) { clearTimeout(t); t = null; } delaying = false; }; // @ts-ignore return { action: wrappedAction, stop: stop }; } // the returned function only accept one argument function joinFunctionsByResult(funcs) { var wrappedFunc = funcs[0]; for (var i = 1; i < funcs.length; i++) { wrappedFunc = join2func(wrappedFunc, funcs[i]); } return wrappedFunc; function join2func(func1, func2) { return function (arg) { var result1 = func1(arg); return func2(result1); }; } } // must pass arguments to `next` manually function joinFunctionsByNext(funcs) { var next = function next() {}; var _iterator7 = _createForOfIteratorHelper(iterateAll(funcs, { reverse: true })), _step7; try { for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) { var func = _step7.value.value; var currentNext = next; next = wrapFuncWithNext(func, currentNext); } } catch (err) { _iterator7.e(err); } finally { _iterator7.f(); } return next; function wrapFuncWithNext(func, next) { return function () { for (var _len4 = arguments.length, args = new Array(_len4), _key5 = 0; _key5 < _len4; _key5++) { args[_key5] = arguments[_key5]; } return func.apply(void 0, [next].concat(args)); }; } } // ## promise // execute promise in sequence function executePromiseGetters(getters) { var concurrent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; var stopped; var promise = new Promise(function (resolve, reject) { return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default().mark(function _callee() { var chunks, promises, _iterator8, _step8, chunk, chunkPromises; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default().wrap(function _callee$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: chunks = splitArray(getters, concurrent); promises = []; _iterator8 = _createForOfIteratorHelper(chunks); _context3.prev = 3; _iterator8.s(); case 5: if ((_step8 = _iterator8.n()).done) { _context3.next = 15; break; } chunk = _step8.value; chunkPromises = chunk.map(function (v) { return v(); }); promises.push.apply(promises, (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(chunkPromises)); _context3.next = 11; return Promise.all(chunkPromises); case 11: if (!stopped) { _context3.next = 13; break; } return _context3.abrupt("break", 15); case 13: _context3.next = 5; break; case 15: _context3.next = 20; break; case 17: _context3.prev = 17; _context3.t0 = _context3["catch"](3); _iterator8.e(_context3.t0); case 20: _context3.prev = 20; _iterator8.f(); return _context3.finish(20); case 23: Promise.all(promises).then(function () { resolve.apply(void 0, arguments); }); case 24: case "end": return _context3.stop(); } } }, _callee, null, [[3, 17, 20, 23]]); })); }); return { promise: promise, stop: function stop() { stopped = true; } }; } function promiseTimeout(promise, timeout) { return new Promise(function (resolve, reject) { var t, rejected; promise.then(function () { clearTimeout(t); resolve.apply(void 0, arguments); }, function () { if (!rejected) { clearTimeout(t); reject.apply(void 0, arguments); } }); t = setTimeout(function () { rejected = true; var e = new Error('Promise timeout!'); e.name = 'timeout'; reject(e); }, timeout); }); } // ## url function getUrlParam(par) { // 获取当前URL var local_url = document.location.href; // 获取要取得的get参数位置 var get = local_url.indexOf(par + '='); if (get == -1) { return false; } // 截取字符串 var get_par = local_url.slice(par.length + get + 1); // 判断截取后的字符串是否还有其他get参数 var nextPar = get_par.indexOf('&'); if (nextPar != -1) { get_par = get_par.slice(0, nextPar); } return get_par; } // ## dom // return NodeList if there are multiple top-level nodes function createElementFromHTML(htmlString) { var div = document.createElement('div'); div.innerHTML = htmlString.trim(); if (div.childNodes.length > 1) { return div.childNodes; } else { return div.childNodes[0]; } } function uniqueId() { var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'id_'; var id = prefix + randString(); if (!store.uniqueId) store.uniqueId = {}; var generatedIds = store.uniqueId; if (document.getElementById(id) || generatedIds[id]) { return uniqueId(prefix); } else { generatedIds[id] = true; return id; } } function isDescendantOf(el, parent) { while (true) { if (el.parentElement == null) { return false; } else if (el.parentElement === parent) { return true; } else { el = el.parentElement; } } } function removeEl(el) { if (el.parentNode !== null) { return el.parentNode.removeChild(el); } } // refer: https://stackoverflow.com/questions/871399/cross-browser-method-for-detecting-the-scrolltop-of-the-browser-window function getScroll() { if (typeof pageYOffset != 'undefined') { //most browsers except IE before #9 return { top: pageYOffset, left: pageXOffset }; } else { var B = document.body; //IE 'quirks' var D = document.documentElement; //IE with doctype D = D.clientHeight ? D : B; return { top: D.scrollTop, left: D.scrollLeft }; } } // refer: https://gist.github.com/aderaaij/89547e34617b95ac29d1 function getOffset(el) { var rect = getBoundingClientRect(el); var scroll = getScroll(); return { x: rect.left + scroll.left, y: rect.top + scroll.top }; } // there is some trap in el.offsetParent, so use this func to fix function getOffsetParent(el) { var offsetParent = el.offsetParent; if (!offsetParent || offsetParent === document.body && getComputedStyle(document.body).position === 'static') { offsetParent = document.body.parentElement; } return offsetParent; } // get el current position. like jQuery.position. The position is relative to offsetParent viewport left top. it is for set absolute position, absolute position is relative to offsetParent viewport left top. // 相对于offsetParent可视区域左上角(el.offsetLeft或top包含父元素的滚动距离, 所以要减去). position一般用于设置绝对定位的情况, 而绝对定位就是以可视区域左上角为原点. function getPosition(el) { var offsetParent = getOffsetParent(el); var ps = { x: el.offsetLeft, y: el.offsetTop }; var parent = el; while (true) { parent = parent.parentElement; if (parent === offsetParent || !parent) { break; } ps.x -= parent.scrollLeft; ps.y -= parent.scrollTop; } return ps; } // like jQuery.offset(x, y), but it just return cmputed position, don't update style // 类似 jQuery.offset的设置功能, 但是它只返回计算的position, 不改变元素样式. function getPositionFromOffset(el, of) { var offsetParent = getOffsetParent(el); var parentOf = getOffset(offsetParent); return { x: of.x - parentOf.x, y: of.y - parentOf.y }; } function getBoundingClientRect(el) { // refer: http://www.51xuediannao.com/javascript/getBoundingClientRect.html var xy = el.getBoundingClientRect(); var top = xy.top - document.documentElement.clientTop, //document.documentElement.clientTop 在IE67中始终为2,其他高级点的浏览器为0 bottom = xy.bottom, left = xy.left - document.documentElement.clientLeft, //document.documentElement.clientLeft 在IE67中始终为2,其他高级点的浏览器为0 right = xy.right, width = xy.width || right - left, //IE67不存在width 使用right - left获得 height = xy.height || bottom - top; var x = left; var y = top; return { top: top, right: right, bottom: bottom, left: left, width: width, height: height, x: x, y: y }; } // refer [getBoundingClientRect](#getBoundingClientRect) var getViewportPosition = getBoundingClientRect; // TODO not tested function viewportPositionToOffset(position) { var body = document.body; var bodyOf = getOffset(body); var bodyVP = getViewportPosition(body); return { x: position.x + bodyOf.x - bodyVP.x, y: position.y + bodyOf.y - bodyVP.y }; } // TODO not tested function offsetToViewportPosition(offset) { var body = document.body; var bodyOf = getOffset(body); var bodyVP = getViewportPosition(body); return { x: offset.x + bodyVP.x - bodyOf.x, y: offset.y + bodyVP.y - bodyOf.y }; } function findParent(el, callback) { var opt = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; var cur = opt && opt.withSelf ? el : el.parentElement; while (cur) { var r = callback(cur); if (r === 'break') { return; } else if (r) { return cur; } else { cur = cur.parentElement; } } } function backupAttr(el, name) { var key = "original_".concat(name); el[key] = el.getAttribute(name); } function restoreAttr(el, name) { var key = "original_".concat(name); var value = el[key]; if (value == null) { el.removeAttribute(name); } else { el.setAttribute(name, value); } } // source: http://youmightnotneedjquery.com/ function hasClass(el, className) { if (el.classList) { return el.classList.contains(className); } else { return new RegExp('(^| )' + className + '( |$)', 'gi').test(el.className); } } // source: http://youmightnotneedjquery.com/ function addClass(el, className) { if (!hasClass(el, className)) { if (el.classList) { el.classList.add(className); } else { el.className += ' ' + className; } } } // source: http://youmightnotneedjquery.com/ function removeClass(el, className) { if (el.classList) { el.classList.remove(className); } else { el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' '); } } function getElSizeEvenInvisible(el) { backupAttr(el, 'style'); el.style.display = 'block'; var t = getBoundingClientRect(el); var size = { width: t.width, height: t.height }; restoreAttr(el, 'style'); return size; } /** * [isOffsetInEl] * @param {Number} x * @param {Number} y * @param {Object} el HTML Element */ function isOffsetInEl(x, y, el) { var offset = getOffset(el); return offset.x <= x && offset.x + el.offsetWidth >= x && offset.y <= y && offset.y + el.offsetHeight >= y; } // get border function getBorder(el) { var body = document.body; var workArea = findParent(el, function (v) { return hasClass(v, 'work-area'); }); var of = getOffset(workArea); return { left: of.x, right: of.x + workArea.offsetWidth, top: of.y + 50, bottom: body.offsetHeight < glb().innerHeight ? glb().innerHeight : body.offsetHeight }; } function setElChildByIndex(el, child, index) { // @ts-ignore child.childComponentIndex = index; var len = el.childNodes.length; if (len === 0) { el.appendChild(child); } else if (index === 0) { el.insertBefore(child, el.childNodes[0]); } else { var _binarySearch = binarySearch(el.childNodes, function (el) { return el.childComponentIndex - index; }, { start: 0, end: notGreaterThan(index, len - 1), returnNearestIfNoHit: true }), nearestIndex = _binarySearch.index, nearest = _binarySearch.value, greater = _binarySearch.greater; if (greater) { el.insertBefore(child, nearest); } else { var next = el.childNodes[nearestIndex + 1]; if (next) { el.insertBefore(child, next); } else { el.appendChild(child); } } } } function onDOM(el, name, handler) { for (var _len5 = arguments.length, args = new Array(_len5 > 3 ? _len5 - 3 : 0), _key6 = 3; _key6 < _len5; _key6++) { args[_key6 - 3] = arguments[_key6]; } if (el.addEventListener) { // 所有主流浏览器,除了 IE 8 及更早 IE版本 el.addEventListener.apply(el, [name, handler].concat(args)); // @ts-ignore } else if (el.attachEvent) { // IE 8 及更早 IE 版本 // @ts-ignore el.attachEvent.apply(el, ["on".concat(name), handler].concat(args)); } } function offDOM(el, name, handler) { for (var _len6 = arguments.length, args = new Array(_len6 > 3 ? _len6 - 3 : 0), _key7 = 3; _key7 < _len6; _key7++) { args[_key7 - 3] = arguments[_key7]; } if (el.removeEventListener) { // 所有主流浏览器,除了 IE 8 及更早 IE版本 el.removeEventListener.apply(el, [name, handler].concat(args)); // @ts-ignore } else if (el.detachEvent) { // IE 8 及更早 IE 版本 // @ts-ignore el.detachEvent.apply(el, ["on".concat(name), handler].concat(args)); } } function onDOMMany(els, names, handler) { for (var _len7 = arguments.length, args = new Array(_len7 > 3 ? _len7 - 3 : 0), _key8 = 3; _key8 < _len7; _key8++) { args[_key8 - 3] = arguments[_key8]; } var _iterator9 = _createForOfIteratorHelper(els), _step9; try { for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) { var el = _step9.value; var _iterator12 = _createForOfIteratorHelper(names), _step12; try { for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) { var name = _step12.value; onDOM.apply(void 0, [el, name, handler].concat(args)); } } catch (err) { _iterator12.e(err); } finally { _iterator12.f(); } } } catch (err) { _iterator9.e(err); } finally { _iterator9.f(); } var destroy = function destroy() { var _iterator10 = _createForOfIteratorHelper(els), _step10; try { for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) { var el = _step10.value; var _iterator11 = _createForOfIteratorHelper(names), _step11; try { for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) { var name = _step11.value; offDOM(el, name, handler); } } catch (err) { _iterator11.e(err); } finally { _iterator11.f(); } } } catch (err) { _iterator10.e(err); } finally { _iterator10.f(); } }; return destroy; } function getImageSizeByUrl(url) { var image = document.createElement('img'); return new Promise(function (resolve, reject) { onDOM(image, 'load', function () { resolve({ width: image.width, height: image.height }); }); onDOM(image, 'error', function (e) { reject(e); }); image.src = url; }); } function findNodeList(list, callback) { var opt = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; var iterator = iterateAll(list, { reverse: opt.reverse }); var _iterator13 = _createForOfIteratorHelper(iterator), _step13; try { for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) { var _step13$value = _step13.value, value = _step13$value.value, index = _step13$value.index; if (callback(value, index)) { return value; } } } catch (err) { _iterator13.e(err); } finally { _iterator13.f(); } } function findNodeListReverse(list, callback) { return findNodeList(list, callback, { reverse: true }); } function elementsFromPoint(x, y) { var args = [x, y]; // @ts-ignore var func = document.elementsFromPoint || document.msElementsFromPoint || elementsFromPoint; return func.apply(document, args); function elementsFromPoint(x, y) { var parents = []; var parent = void 0; do { if (parent !== document.elementFromPoint(x, y)) { parent = document.elementFromPoint(x, y); parents.push(parent); parent.style.pointerEvents = 'none'; } else { parent = false; } } while (parent); parents.forEach(function (parent) { return parent.style.pointerEvents = 'all'; }); return parents; } } function getOuterAttachedHeight(el) { var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; opt = Object.assign({ margin: true, border: true }, opt); var stl = getComputedStyle(el); var r = 0; var arr = []; if (opt.margin) { arr.push('margin-top', 'margin-bottom'); } if (opt.border) { arr.push('border-top-width', 'border-bottom-width'); } arr.forEach(function (key) { r += parseFloat(stl[key]); }); return r; } function getOuterAttachedWidth(el) { var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; opt = Object.assign({ margin: true, border: true }, opt); var stl = getComputedStyle(el); var r = 0; var arr = []; if (opt.margin) { arr.push('margin-left', 'margin-right'); } if (opt.border) { arr.push('border-left-width', 'border-right-width'); } arr.forEach(function (key) { r += parseFloat(stl[key]); }); return r; } /* scroll to a positon with duration from https://gist.github.com/andjosh/6764939 interface options{ x: number // nullable. don't scroll horizontally when null y: number // nullable. don't scroll vertically when null duration: number // default 0 element: Element // default is the top scrollable element. beforeEveryFrame: (count: number) => boolean|void // call before requestAnimationFrame execution. return false to stop } return stop */ function scrollTo(options) { if (!options.element) { options.element = document.scrollingElement || document.documentElement; } if (options.duration == null) { options.duration = 0; } var x = options.x, y = options.y, duration = options.duration, element = options.element; var requestAnimationFrameId; var count = 0; var startY = element.scrollTop, changeY = y - startY, startX = element.scrollLeft, changeX = x - startX, startDate = +new Date(), animateScroll = function animateScroll() { if (options.beforeEveryFrame && options.beforeEveryFrame(count) === false) { return; } var currentDate = new Date().getTime(); var changedTime = currentDate - startDate; if (y != null) { element.scrollTop = parseInt(calc(startY, changeY, changedTime, duration)); } if (x != null) { element.scrollLeft = parseInt(calc(startX, changeX, changedTime, duration)); } if (changedTime < duration) { requestAnimationFrameId = requestAnimationFrame(animateScroll); } else { if (y != null) { element.scrollTop = y; } if (x != null) { element.scrollLeft = x; } } count++; }; var stop = function stop() { cancelAnimationFrame(requestAnimationFrameId); }; animateScroll(); // return stop return stop; function calc(startValue, changeInValue, changedTime, duration) { return startValue + changeInValue * (changedTime / duration); } } // ### DOM structure function insertBefore(el, target) { target.parentElement.insertBefore(el, target); } function insertAfter(el, target) { target.parentElement.insertBefore(el, target.nextSibling); } function prependTo(el, target) { target.insertBefore(el, target.firstChild); } function appendTo(el, target) { target.appendChild(el); } // ## Date function cloneDate(dateObj) { return new Date(dateObj.getTime()); } // day and date is same function addDate(dateObj, n, type) { if (!['year', 'month', 'day', 'date'].includes(type)) { type += 's'; } var type2 = studlyCase(type); if (type2 === 'Day') { type2 = 'Date'; } var setFuncName = 'set' + type2; var getFuncName = 'get' + type2; dateObj[setFuncName](dateObj[getFuncName]() + n); return dateObj; } function getMonthStart(dateObj) { var clonedObj = cloneDate(dateObj); clonedObj.setDate(1); return clonedObj; } function getMonthEnd(dateObj) { var r = cloneDate(dateObj); addDate(r, 1, 'month'); r.setDate(0); return r; } function getCalendar(year, month) { var startWeekDay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; var results = []; var date = new Date(year, month - 1); year = date.getFullYear(); month = date.getMonth() + 1; var monthStart = getMonthStart(date); var monthStartDay = monthStart.getDay(); var calendarStart = addDate(cloneDate(monthStart), -(monthStartDay + startWeekDay), 'day'); if (monthStartDay > startWeekDay) { var startDate = calendarStart.getDate(); var _year = calendarStart.getFullYear(); var _month = calendarStart.getMonth() + 1; for (var i = startWeekDay; i < monthStartDay; i++) { var _date = startDate + i; results.push({ year: _year, month: _month, date: _date, text: _date, prevMonth: true }); } } // var monthEnd = getMonthEnd(date); var monthEndtDate = monthEnd.getDate(); for (var _i5 = 1; _i5 <= monthEndtDate; _i5++) { var _date2 = _i5; results.push({ year: year, month: month, date: _date2, text: _date2, currentMonth: true }); } // var monthEndDay = monthEnd.getDay(); var endWeekDay = 6 - startWeekDay; if (monthEndDay < endWeekDay) { var nextMonth = addDate(cloneDate(date), 1, 'month'); var _year2 = nextMonth.getFullYear(); var _month2 = nextMonth.getMonth() + 1; for (var _i6 = monthEndDay + 1, _date3 = 1; _i6 <= endWeekDay; _i6++, _date3++) { results.push({ year: _year2, month: _month2, date: _date3, text: _date3, nextMonth: true }); } } // return splitArray(results, 7); } // eg: 2018-09-07T03:38:37.888Z // timezone must be UTC function isIsoFormat(str) { return Boolean(str.length > 15 && str.length < 30 && str.match(/^\d{4}-\d{2}-\d{2}T.*Z$/)); } // timestamp eg: 2018-09-07T03:38:37.888Z function parseISO(timestamp) { var _timestamp$split = timestamp.split('T'), _timestamp$split2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5__.default)(_timestamp$split, 2), datePart = _timestamp$split2[0], timePart = _timestamp$split2[1]; var y, m, d, h = 0, min = 0, s = 0; var _datePart$split$map = datePart.split('-').map(function (v) { return parseInt(v); }); var _datePart$split$map2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5__.default)(_datePart$split$map, 3); y = _datePart$split$map2[0]; m = _datePart$split$map2[1]; d = _datePart$split$map2[2]; m = m - 1; if (timePart) { var t = timePart.split(':').map(function (v) { return parseFloat(v); }); h = t[0]; if (t[1] != null) { min = t[1]; } if (t[2] != null) { s = t[2]; } } var dt = new Date(); dt.setUTCFullYear(y); dt.setUTCMonth(m); dt.setUTCDate(d); dt.setUTCHours(h); dt.setUTCMinutes(min); dt.setUTCSeconds(s); return dt; } function binarySearch(arr, callback) { var opt = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; opt = Object.assign({ start: 0, end: arr.length - 1, maxTimes: 1000 }, opt); var _opt = opt, start = _opt.start, end = _opt.end; var _opt2 = opt, returnNearestIfNoHit = _opt2.returnNearestIfNoHit, maxTimes = _opt2.maxTimes; var midNum; var mid; if (start == null) { start = 0; end = arr.length - 1; } var i = 0; var r; while (start >= 0 && start <= end) { if (i >= maxTimes) { throw Error("binarySearch: loop times is over ".concat(maxTimes, ", you can increase the limit.")); } midNum = Math.floor((end - start) / 2 + start); mid = arr[midNum]; r = callback(mid, i); if (r > 0) { end = midNum - 1; } else if (r < 0) { start = midNum + 1; } else { return { index: midNum, value: mid, count: i + 1, hit: true }; } i++; } return returnNearestIfNoHit ? { index: midNum, value: mid, count: i + 1, hit: false, greater: r > 0 } : null; } // function windowLoaded() { return new Promise(function (resolve, reject) { if (document && document.readyState === 'complete') { resolve(); } else { glb().addEventListener('load', function once() { resolve(); glb().removeEventListener('load', once); }); } }); } function waitTime(milliseconds, callback) { return new Promise(function (resolve, reject) { setTimeout(function () { callback && callback(); resolve(); }, milliseconds); }); } function waitFor(condition) { var time = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100; var maxTimes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1000; var interval; var promise = new Promise(function (resolve, reject) { var count = 0; function judge() { if (count <= maxTimes) { if (condition()) { stop(); resolve(); } } else { stop(); reject(new Error('waitFor: Limit is reached')); } count++; } interval = setInterval(function () { judge(); }, time); judge(); }); return { promise: promise, stop: stop }; function stop() { clearInterval(interval); } } function retry(action) { var limitTimes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3; return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default().mark(function _callee2() { var index; return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default().wrap(function _callee2$(_context4) { while (1) { switch (_context4.prev = _context4.next) { case 0: index = 1; case 1: if (!(index <= limitTimes)) { _context4.next = 15; break; } _context4.prev = 2; _context4.next = 5; return action(); case 5: return _context4.abrupt("return", _context4.sent); case 8: _context4.prev = 8; _context4.t0 = _context4["catch"](2); if (!(index === limitTimes)) { _context4.next = 12; break; } throw _context4.t0; case 12: index++; _context4.next = 1; break; case 15: case "end": return _context4.stop(); } } }, _callee2, null, [[2, 8]]); })); } // clipboard-polyfill is more powerful // 复制文字到剪贴板. 仅限于简单使用. 复杂环境推荐clipboard-polyfill function copyTextToClipboard(text) { try { // use latest api navigator.clipboard.writeText(text); return; } catch (e) {} var textArea = document.createElement('textarea'); // // *** This styling is an extra step which is likely not required. *** // // Why is it here? To ensure: // 1. the element is able to have focus and selection. // 2. if element was to flash render it has minimal visual impact. // 3. less flakyness with selection and copying which **might** occur if // the textarea element is not visible. // // The likelihood is the element won't even render, not even a flash, // so some of these are just precautions. However in IE the element // is visible whilst the popup box asking the user for permission for // the web page to copy to the clipboard. // // Place in top-left corner of screen regardless of scroll position. textArea.style.position = 'fixed'; textArea.style.top = '0'; textArea.style.left = '0'; // Ensure it has a small width and height. Setting to 1px / 1em // doesn't work as this gives a negative w/h on some browsers. textArea.style.width = '2em'; textArea.style.height = '2em'; // We don't need padding, reducing the size if it does flash render. textArea.style.padding = '0'; // Clean up any borders. textArea.style.border = 'none'; textArea.style.outline = 'none'; textArea.style.boxShadow = 'none'; // Avoid flash of white box if rendered for any reason. textArea.style.background = 'transparent'; textArea.value = text; document.body.appendChild(textArea); textArea.select(); try { var successful = document.execCommand('copy'); var msg = successful ? 'successful' : 'unsuccessful'; console.log('Copying text command was ' + msg); } catch (err) { console.log('Oops, unable to copy'); } document.body.removeChild(textArea); } function isWindowDefined() { try { return window && true; } catch (error) { return false; } } function isNode() { // @ts-ignore return Boolean(typeof glb().module !== 'undefined' && glb().module.exports); } function isIE() { // @ts-ignore return Boolean(window.ActiveXObject || "ActiveXObject" in window); } /* https://developer.mozilla.org/docs/Web/API/Window/open http://www.w3school.com.cn/htmldom/met_win_open.asp#windowfeatures */ function openWindow(url, name) { var opt = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; glb().open(url, name, Object.keys(opt).map(function (k) { return "".concat(k, "=").concat(opt[k]); }).join(',')); } function openCenterWindow(url, name, width, height) { var opt = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {}; var t = { width: width, height: height, top: (glb().screen.availHeight - 30 - height) / 2, left: (glb().screen.availWidth - 30 - width) / 2 }; Object.assign(t, opt); openWindow(url, name, t); } var URLHelper = /*#__PURE__*/function () { function URLHelper(baseUrl) { var _this3 = this; (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__.default)(this, URLHelper); this.baseUrl = ''; // protocol, hostname, port, pastname this.search = {}; var t = decodeURI(baseUrl).split('?'); this.baseUrl = t[0]; if (t[1]) { t[1].split('&').forEach(function (v) { var t2 = v.split('='); _this3.search[t2[0]] = t2[1] == null ? '' : decodeURIComponent(t2[1]); }); } } (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_6__.default)(URLHelper, [{ key: "getHref", value: function getHref() { var _this4 = this; var t = [this.baseUrl]; var searchStr = Object.keys(this.search).map(function (k) { return "".concat(k, "=").concat(encodeURIComponent(_this4.search[k])); }).join('&'); if (searchStr) { t.push(searchStr); } return t.join('?'); } }]); return URLHelper; }(); /* resolve arguments to help overload. 解析函数参数, 帮助重载 ```js types eg: ['Object', (i) => i > 3, ['Number', default], null ] null represent all types of argument resolveArgsByType([1,'str'], ['Number', 'Boolean' ,'String']) -> [1, null, 'str'] resolveArgsByType([1,'str'], ['Number', ['Boolean', true] ,'String']) -> [1, true, 'str'] ``` */ function resolveArgsByType(args, types) { var argIndex = 0; return types.map(function (v) { // make rule var rule, dft; if (isArray(v)) { rule = v[0]; dft = v[1]; } else { rule = v; dft = undefined; } if (!isFunction(rule)) { if (rule == null) { rule = function rule() { return true; }; } else { var t = rule; rule = function rule(x) { return Object.prototype.toString.call(x) === "[object ".concat(t, "]"); }; } } var arg = args[argIndex]; if (rule(arg)) { argIndex++; return arg; } else { return dft; } }); } function makeStorageHelper(storage) { return { storage: storage, set: function set(name, value, minutes) { // set null can remove a item if (value == null) { this.storage.removeItem(name); } else { this.storage.setItem(name, JSON.stringify({ value: value, expired_at: minutes ? new Date().getTime() + minutes * 60 * 1000 : null })); } }, get: function get(name) { var t = this.storage.getItem(name); if (t) { t = JSON.parse(t); if (!t.expired_at || t.expired_at > new Date().getTime()) { return t.value; } else { this.storage.removeItem(name); } } return null; }, clear: function clear() { this.storage.clear(); } }; } function getLocalStorage2() { if (!store.localStorage2) { store.localStorage2 = makeStorageHelper(localStorage); } return store.localStorage2; } function getSessionStorage2() { if (!store.sessionStorage2) { store.sessionStorage2 = makeStorageHelper(glb().sessionStorage); } return store.sessionStorage2; } // 事件处理 var EventProcessor = /*#__PURE__*/function () { function EventProcessor() { (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__.default)(this, EventProcessor); this.eventStore = []; } (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_6__.default)(EventProcessor, [{ key: "on", value: function on(name, handler) { this.eventStore.push({ name: name, handler: handler }); } }, { key: "once", value: function once(name, handler) { var _this5 = this; var off = function off() { _this5.off(name, wrappedHandler); }; var wrappedHandler = function wrappedHandler() { handler.apply(void 0, arguments); off(); }; this.on(name, wrappedHandler); return off; } }, { key: "onceTimeout", value: function onceTimeout(name, handler, timeout) { var _this6 = this; var off; var promise = new Promise(function (resolve, reject) { var wrappedHandler = function wrappedHandler() { handler.apply(void 0, arguments); resolve(); }; off = _this6.once(name, wrappedHandler); waitTime(timeout).then(function () { off(); reject(); }); }); var off2 = function off2() { off && off(); }; return { off: off2, promise: promise }; } }, { key: "off", value: function off(name, handler) { var indexes = []; // to remove indexes; reverse; 倒序的 var len = this.eventStore.length; for (var i = 0; i < len; i++) { var item = this.eventStore[i]; if (item.name === name && item.handler === handler) { indexes.unshift(i); } } for (var _i7 = 0, _indexes = indexes; _i7 < _indexes.length; _i7++) { var index = _indexes[_i7]; this.eventStore.splice(index, 1); } } }, { key: "emit", value: function emit(name) { // 重要: 先找到要执行的项放在新数组里, 因为执行项会改变事件项存储数组 var items = []; var _iterator14 = _createForOfIteratorHelper(this.eventStore), _step14; try { for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) { var _item = _step14.value; if (_item.name === name) { items.push(_item); } } } catch (err) { _iterator14.e(err); } finally { _iterator14.f(); } for (var _len8 = arguments.length, args = new Array(_len8 > 1 ? _len8 - 1 : 0), _key9 = 1; _key9 < _len8; _key9++) { args[_key9 - 1] = arguments[_key9]; } for (var _i8 = 0, _items = items; _i8 < _items.length; _i8++) { var item = _items[_i8]; item.handler.apply(item, args); } } }]); return EventProcessor; }(); var CrossWindowEventProcessor = /*#__PURE__*/function (_EventProcessor) { (0,_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__.default)(CrossWindowEventProcessor, _EventProcessor); var _super = _createSuper(CrossWindowEventProcessor); // id function CrossWindowEventProcessor(opt) { var _this7; (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__.default)(this, CrossWindowEventProcessor); _this7 = _super.call(this); _this7.storageName = '_crossWindow'; _this7.windows = []; _this7.timeout = 200; _this7.BROADCAST = '__BROADCAST__'; if (opt) { Object.assign((0,_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__.default)(_this7), opt); } onDOM(window, 'storage', function (ev) { if (ev.key === _this7.storageName) { var event = JSON.parse(ev.newValue); if (!event.targets || event.targets.includes(_this7.id)) { var _this8; (_this8 = _this7).emitLocal.apply(_this8, [event.name].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__.default)(event.args))); } } }); // social parts 集体部分 // join _this7.id = randString(); _this7.windows = [_this7.id]; _this7.ready = new Promise(function (resolve, reject) { _this7.onceTimeout('_windows_updated', function (_ref) { var windows = _ref.windows; _this7.windows = windows; }, _this7.timeout).promise.then(function () { resolve(); // responsed 被响应 }, function () { // no response 无响应 resolve(); }); _this7.broadcast('_join', _this7.id); }); _this7.ready.then(function () { // on join _this7.on('_join', function (id) { _this7.windows.push(id); if (_this7.isMain()) { _this7.broadcast('_windows_updated', { windows: _this7.windows, type: 'join', id: id }); } }); // on _windows_updated _this7.on('_windows_updated', function (_ref2) { var windows = _ref2.windows; _this7.windows = windows; }); // on exit _this7.on('_exit', function (id) { var oldMain = _this7.windows[0]; arrayRemove(_this7.windows, id); if (_this7.isMain()) { _this7.emit('_windows_updated', { windows: _this7.windows, type: 'exit', id: id }); if (oldMain != _this7.id) { _this7.emit('_main_updated', { windows: _this7.windows, old: oldMain, 'new': _this7.id }); } } }); onDOM(window, 'beforeunload', function () { _this7.exitGroup(); }); }); return _this7; } (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_6__.default)(CrossWindowEventProcessor, [{ key: "isMain", value: function isMain() { return this.id === this.windows[0]; } }, { key: "emitTo", value: function emitTo(name, targets) { for (var _len9 = arguments.length, args = new Array(_len9 > 2 ? _len9 - 2 : 0), _key10 = 2; _key10 < _len9; _key10++) { args[_key10 - 2] = arguments[_key10]; } if (targets === this.BROADCAST) { targets = null; } else { if (targets && !isArray(targets)) { targets = [targets]; } if (targets.includes(this.id)) { var _get2; (_get2 = (0,_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_1__.default)((0,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__.default)(CrossWindowEventProcessor.prototype), "emit", this)).call.apply(_get2, [this, name].concat(args)); // emit to current window } } glb().localStorage.setItem(this.storageName, JSON.stringify({ name: name, targets: targets, args: args, // use random make storage event triggered every time // 加入随机保证触发storage事件 random: Math.random() })); } }, { key: "emitLocal", value: function emitLocal(name) { for (var _len10 = arguments.length, args = new Array(_len10 > 1 ? _len10 - 1 : 0), _key11 = 1; _key11 < _len10; _key11++) { args[_key11 - 1] = arguments[_key11]; } this.emitTo.apply(this, [name, this.id].concat(args)); } }, { key: "broadcast", value: function broadcast(name) { for (var _len11 = arguments.length, args = new Array(_len11 > 1 ? _len11 - 1 : 0), _key12 = 1; _key12 < _len11; _key12++) { args[_key12 - 1] = arguments[_key12]; } this.emitTo.apply(this, [name, this.BROADCAST].concat(args)); } }, { key: "emit", value: function emit(name) { for (var _len12 = arguments.length, args = new Array(_len12 > 1 ? _len12 - 1 : 0), _key13 = 1; _key13 < _len12; _key13++) { args[_key13 - 1] = arguments[_key13]; } this.emitTo.apply(this, [name, this.windows].concat(args)); } }, { key: "exitGroup", value: function exitGroup() { this.broadcast('_exit', this.id); } }]); return CrossWindowEventProcessor; }(EventProcessor); // Deprecated in next version var CrossWindow = CrossWindowEventProcessor; // on continuous input. return destroy // 监听连续输入事件. 返回取消监听函数. function onContinuousInput(handler) { var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; opt = Object.assign({ timeout: 1000 }, opt); var input = ''; var timeoutId; var keydownHandler = function keydownHandler(e) { if (e.key && e.key.length === 1) { input = "".concat(input).concat(e.key); handler(input); if (timeoutId) { clearTimeout(timeoutId); timeoutId = null; } timeoutId = setTimeout(function () { input = ''; }, opt.timeout); } }; onDOM(document, 'keydown', keydownHandler); return function () { offDOM(document, 'keydown', keydownHandler); }; } // refer [onContinuousInput](#onContinuousInput) var onQuickKeydown = onContinuousInput; function getUserLanguage() { // @ts-ignore return navigator.language || navigator.userLanguage; } var Cache = /*#__PURE__*/function () { function Cache() { (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__.default)(this, Cache); this.store = {}; } (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_6__.default)(Cache, [{ key: "has", value: function has(name) { return this.store.hasOwnProperty(name); } }, { key: "remember", value: function remember(name, getter) { if (!this.has(name)) { this.store[name] = { value: getter() }; } return this.store[name].value; } }, { key: "forget", value: function forget(name) { if (name) { if (this.has(name)) { delete this.store[name]; } } else { this.store = {}; } } }]); return Cache; }(); // attach cached getters to an object; can attach to self function attachCache(obj, toCache) { var cache = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Cache(); var _loop3 = function _loop3(key) { var getter = toCache[key]; Object.defineProperty(obj, key, { get: function get() { var _this9 = this; return cache.remember(key, function () { return getter.call(_this9); }); } }); }; for (var key in toCache) { _loop3(key); } } // for animation function easeInOutQuad(startValue, changeInValue, changedTime, duration) { var t = changedTime, d = duration, b = startValue, c = changeInValue; t /= d / 2; if (t < 1) return c / 2 * t * t + b; t--; return -c / 2 * (t * (t - 2) - 1) + b; } /***/ }), /***/ "./resources/module/template/admin/components/column.vue": /*!***************************************************************!*\ !*** ./resources/module/template/admin/components/column.vue ***! \***************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _column_vue_vue_type_template_id_1465b956___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./column.vue?vue&type=template&id=1465b956& */ "./resources/module/template/admin/components/column.vue?vue&type=template&id=1465b956&"); /* harmony import */ var _column_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./column.vue?vue&type=script&lang=js& */ "./resources/module/template/admin/components/column.vue?vue&type=script&lang=js&"); /* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); /* normalize component */ ; var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__.default)( _column_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__.default, _column_vue_vue_type_template_id_1465b956___WEBPACK_IMPORTED_MODULE_0__.render, _column_vue_vue_type_template_id_1465b956___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns, false, null, null, null ) /* hot reload */ if (false) { var api; } component.options.__file = "resources/module/template/admin/components/column.vue" /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports); /***/ }), /***/ "./resources/module/template/admin/components/regular.vue": /*!****************************************************************!*\ !*** ./resources/module/template/admin/components/regular.vue ***! \****************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _regular_vue_vue_type_template_id_74dd0ea6___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regular.vue?vue&type=template&id=74dd0ea6& */ "./resources/module/template/admin/components/regular.vue?vue&type=template&id=74dd0ea6&"); /* harmony import */ var _regular_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./regular.vue?vue&type=script&lang=js& */ "./resources/module/template/admin/components/regular.vue?vue&type=script&lang=js&"); /* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); /* normalize component */ ; var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__.default)( _regular_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__.default, _regular_vue_vue_type_template_id_74dd0ea6___WEBPACK_IMPORTED_MODULE_0__.render, _regular_vue_vue_type_template_id_74dd0ea6___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns, false, null, null, null ) /* hot reload */ if (false) { var api; } component.options.__file = "resources/module/template/admin/components/regular.vue" /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports); /***/ }), /***/ "./resources/module/template/admin/components/row.vue": /*!************************************************************!*\ !*** ./resources/module/template/admin/components/row.vue ***! \************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _row_vue_vue_type_template_id_03362f2a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./row.vue?vue&type=template&id=03362f2a& */ "./resources/module/template/admin/components/row.vue?vue&type=template&id=03362f2a&"); /* harmony import */ var _row_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./row.vue?vue&type=script&lang=js& */ "./resources/module/template/admin/components/row.vue?vue&type=script&lang=js&"); /* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); /* normalize component */ ; var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__.default)( _row_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__.default, _row_vue_vue_type_template_id_03362f2a___WEBPACK_IMPORTED_MODULE_0__.render, _row_vue_vue_type_template_id_03362f2a___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns, false, null, null, null ) /* hot reload */ if (false) { var api; } component.options.__file = "resources/module/template/admin/components/row.vue" /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports); /***/ }), /***/ "./resources/module/template/admin/fields/field-editor.vue": /*!*****************************************************************!*\ !*** ./resources/module/template/admin/fields/field-editor.vue ***! \*****************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _field_editor_vue_vue_type_template_id_24a3e51c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./field-editor.vue?vue&type=template&id=24a3e51c& */ "./resources/module/template/admin/fields/field-editor.vue?vue&type=template&id=24a3e51c&"); /* harmony import */ var _field_editor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./field-editor.vue?vue&type=script&lang=js& */ "./resources/module/template/admin/fields/field-editor.vue?vue&type=script&lang=js&"); /* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); /* normalize component */ ; var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__.default)( _field_editor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__.default, _field_editor_vue_vue_type_template_id_24a3e51c___WEBPACK_IMPORTED_MODULE_0__.render, _field_editor_vue_vue_type_template_id_24a3e51c___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns, false, null, null, null ) /* hot reload */ if (false) { var api; } component.options.__file = "resources/module/template/admin/fields/field-editor.vue" /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports); /***/ }), /***/ "./resources/module/template/admin/fields/field-listItem.vue": /*!*******************************************************************!*\ !*** ./resources/module/template/admin/fields/field-listItem.vue ***! \*******************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _field_listItem_vue_vue_type_template_id_dfe7ee80___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./field-listItem.vue?vue&type=template&id=dfe7ee80& */ "./resources/module/template/admin/fields/field-listItem.vue?vue&type=template&id=dfe7ee80&"); /* harmony import */ var _field_listItem_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./field-listItem.vue?vue&type=script&lang=js& */ "./resources/module/template/admin/fields/field-listItem.vue?vue&type=script&lang=js&"); /* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); /* normalize component */ ; var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__.default)( _field_listItem_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__.default, _field_listItem_vue_vue_type_template_id_dfe7ee80___WEBPACK_IMPORTED_MODULE_0__.render, _field_listItem_vue_vue_type_template_id_dfe7ee80___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns, false, null, null, null ) /* hot reload */ if (false) { var api; } component.options.__file = "resources/module/template/admin/fields/field-listItem.vue" /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports); /***/ }), /***/ "./resources/module/template/admin/fields/field-select2.vue": /*!******************************************************************!*\ !*** ./resources/module/template/admin/fields/field-select2.vue ***! \******************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _field_select2_vue_vue_type_template_id_901394d2___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./field-select2.vue?vue&type=template&id=901394d2& */ "./resources/module/template/admin/fields/field-select2.vue?vue&type=template&id=901394d2&"); /* harmony import */ var _field_select2_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./field-select2.vue?vue&type=script&lang=js& */ "./resources/module/template/admin/fields/field-select2.vue?vue&type=script&lang=js&"); /* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); /* normalize component */ ; var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__.default)( _field_select2_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__.default, _field_select2_vue_vue_type_template_id_901394d2___WEBPACK_IMPORTED_MODULE_0__.render, _field_select2_vue_vue_type_template_id_901394d2___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns, false, null, null, null ) /* hot reload */ if (false) { var api; } component.options.__file = "resources/module/template/admin/fields/field-select2.vue" /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports); /***/ }), /***/ "./resources/module/template/admin/fields/field-upload.vue": /*!*****************************************************************!*\ !*** ./resources/module/template/admin/fields/field-upload.vue ***! \*****************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _field_upload_vue_vue_type_template_id_72eb67b0___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./field-upload.vue?vue&type=template&id=72eb67b0& */ "./resources/module/template/admin/fields/field-upload.vue?vue&type=template&id=72eb67b0&"); /* harmony import */ var _field_upload_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./field-upload.vue?vue&type=script&lang=js& */ "./resources/module/template/admin/fields/field-upload.vue?vue&type=script&lang=js&"); /* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); /* normalize component */ ; var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__.default)( _field_upload_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__.default, _field_upload_vue_vue_type_template_id_72eb67b0___WEBPACK_IMPORTED_MODULE_0__.render, _field_upload_vue_vue_type_template_id_72eb67b0___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns, false, null, null, null ) /* hot reload */ if (false) { var api; } component.options.__file = "resources/module/template/admin/fields/field-upload.vue" /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports); /***/ }), /***/ "./resources/module/template/admin/components/column.vue?vue&type=script&lang=js&": /*!****************************************************************************************!*\ !*** ./resources/module/template/admin/components/column.vue?vue&type=script&lang=js& ***! \****************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_column_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./column.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/column.vue?vue&type=script&lang=js&"); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_column_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__.default); /***/ }), /***/ "./resources/module/template/admin/components/regular.vue?vue&type=script&lang=js&": /*!*****************************************************************************************!*\ !*** ./resources/module/template/admin/components/regular.vue?vue&type=script&lang=js& ***! \*****************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_regular_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./regular.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/regular.vue?vue&type=script&lang=js&"); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_regular_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__.default); /***/ }), /***/ "./resources/module/template/admin/components/row.vue?vue&type=script&lang=js&": /*!*************************************************************************************!*\ !*** ./resources/module/template/admin/components/row.vue?vue&type=script&lang=js& ***! \*************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_row_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./row.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/row.vue?vue&type=script&lang=js&"); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_row_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__.default); /***/ }), /***/ "./resources/module/template/admin/fields/field-editor.vue?vue&type=script&lang=js&": /*!******************************************************************************************!*\ !*** ./resources/module/template/admin/fields/field-editor.vue?vue&type=script&lang=js& ***! \******************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_field_editor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./field-editor.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-editor.vue?vue&type=script&lang=js&"); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_field_editor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__.default); /***/ }), /***/ "./resources/module/template/admin/fields/field-listItem.vue?vue&type=script&lang=js&": /*!********************************************************************************************!*\ !*** ./resources/module/template/admin/fields/field-listItem.vue?vue&type=script&lang=js& ***! \********************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_field_listItem_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./field-listItem.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-listItem.vue?vue&type=script&lang=js&"); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_field_listItem_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__.default); /***/ }), /***/ "./resources/module/template/admin/fields/field-select2.vue?vue&type=script&lang=js&": /*!*******************************************************************************************!*\ !*** ./resources/module/template/admin/fields/field-select2.vue?vue&type=script&lang=js& ***! \*******************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_field_select2_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./field-select2.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-select2.vue?vue&type=script&lang=js&"); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_field_select2_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__.default); /***/ }), /***/ "./resources/module/template/admin/fields/field-upload.vue?vue&type=script&lang=js&": /*!******************************************************************************************!*\ !*** ./resources/module/template/admin/fields/field-upload.vue?vue&type=script&lang=js& ***! \******************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_field_upload_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./field-upload.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-upload.vue?vue&type=script&lang=js&"); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_field_upload_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__.default); /***/ }), /***/ "./resources/module/template/admin/components/column.vue?vue&type=template&id=1465b956&": /*!**********************************************************************************************!*\ !*** ./resources/module/template/admin/components/column.vue?vue&type=template&id=1465b956& ***! \**********************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_column_vue_vue_type_template_id_1465b956___WEBPACK_IMPORTED_MODULE_0__.render), /* harmony export */ "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_column_vue_vue_type_template_id_1465b956___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns) /* harmony export */ }); /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_column_vue_vue_type_template_id_1465b956___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./column.vue?vue&type=template&id=1465b956& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/column.vue?vue&type=template&id=1465b956&"); /***/ }), /***/ "./resources/module/template/admin/components/regular.vue?vue&type=template&id=74dd0ea6&": /*!***********************************************************************************************!*\ !*** ./resources/module/template/admin/components/regular.vue?vue&type=template&id=74dd0ea6& ***! \***********************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_regular_vue_vue_type_template_id_74dd0ea6___WEBPACK_IMPORTED_MODULE_0__.render), /* harmony export */ "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_regular_vue_vue_type_template_id_74dd0ea6___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns) /* harmony export */ }); /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_regular_vue_vue_type_template_id_74dd0ea6___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./regular.vue?vue&type=template&id=74dd0ea6& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/regular.vue?vue&type=template&id=74dd0ea6&"); /***/ }), /***/ "./resources/module/template/admin/components/row.vue?vue&type=template&id=03362f2a&": /*!*******************************************************************************************!*\ !*** ./resources/module/template/admin/components/row.vue?vue&type=template&id=03362f2a& ***! \*******************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_row_vue_vue_type_template_id_03362f2a___WEBPACK_IMPORTED_MODULE_0__.render), /* harmony export */ "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_row_vue_vue_type_template_id_03362f2a___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns) /* harmony export */ }); /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_row_vue_vue_type_template_id_03362f2a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./row.vue?vue&type=template&id=03362f2a& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/row.vue?vue&type=template&id=03362f2a&"); /***/ }), /***/ "./resources/module/template/admin/fields/field-editor.vue?vue&type=template&id=24a3e51c&": /*!************************************************************************************************!*\ !*** ./resources/module/template/admin/fields/field-editor.vue?vue&type=template&id=24a3e51c& ***! \************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_field_editor_vue_vue_type_template_id_24a3e51c___WEBPACK_IMPORTED_MODULE_0__.render), /* harmony export */ "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_field_editor_vue_vue_type_template_id_24a3e51c___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns) /* harmony export */ }); /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_field_editor_vue_vue_type_template_id_24a3e51c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./field-editor.vue?vue&type=template&id=24a3e51c& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-editor.vue?vue&type=template&id=24a3e51c&"); /***/ }), /***/ "./resources/module/template/admin/fields/field-listItem.vue?vue&type=template&id=dfe7ee80&": /*!**************************************************************************************************!*\ !*** ./resources/module/template/admin/fields/field-listItem.vue?vue&type=template&id=dfe7ee80& ***! \**************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_field_listItem_vue_vue_type_template_id_dfe7ee80___WEBPACK_IMPORTED_MODULE_0__.render), /* harmony export */ "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_field_listItem_vue_vue_type_template_id_dfe7ee80___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns) /* harmony export */ }); /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_field_listItem_vue_vue_type_template_id_dfe7ee80___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./field-listItem.vue?vue&type=template&id=dfe7ee80& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-listItem.vue?vue&type=template&id=dfe7ee80&"); /***/ }), /***/ "./resources/module/template/admin/fields/field-select2.vue?vue&type=template&id=901394d2&": /*!*************************************************************************************************!*\ !*** ./resources/module/template/admin/fields/field-select2.vue?vue&type=template&id=901394d2& ***! \*************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_field_select2_vue_vue_type_template_id_901394d2___WEBPACK_IMPORTED_MODULE_0__.render), /* harmony export */ "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_field_select2_vue_vue_type_template_id_901394d2___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns) /* harmony export */ }); /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_field_select2_vue_vue_type_template_id_901394d2___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./field-select2.vue?vue&type=template&id=901394d2& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-select2.vue?vue&type=template&id=901394d2&"); /***/ }), /***/ "./resources/module/template/admin/fields/field-upload.vue?vue&type=template&id=72eb67b0&": /*!************************************************************************************************!*\ !*** ./resources/module/template/admin/fields/field-upload.vue?vue&type=template&id=72eb67b0& ***! \************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_field_upload_vue_vue_type_template_id_72eb67b0___WEBPACK_IMPORTED_MODULE_0__.render), /* harmony export */ "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_field_upload_vue_vue_type_template_id_72eb67b0___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns) /* harmony export */ }); /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_field_upload_vue_vue_type_template_id_72eb67b0___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./field-upload.vue?vue&type=template&id=72eb67b0& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-upload.vue?vue&type=template&id=72eb67b0&"); /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/column.vue?vue&type=template&id=1465b956&": /*!*************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/column.vue?vue&type=template&id=1465b956& ***! \*************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "render": () => (/* binding */ render), /* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns) /* harmony export */ }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "col", class: "col-sm-" + (_vm.item.settings.size ? _vm.item.settings.size : 12) }, [ _c("div", { staticClass: "block-panel" }, [ _c("div", { staticClass: "block-title" }, [ _c("span", [ _vm._v( "\n " + _vm._s(_vm.item.name) + " -\n " ), _c( "select", { directives: [ { name: "model", rawName: "v-model", value: _vm.item.settings.size, expression: "item.settings.size" } ], on: { change: function($event) { var $$selectedVal = Array.prototype.filter .call($event.target.options, function(o) { return o.selected }) .map(function(o) { var val = "_value" in o ? o._value : o.value return val }) _vm.$set( _vm.item.settings, "size", $event.target.multiple ? $$selectedVal : $$selectedVal[0] ) } } }, _vm._l(12, function(i) { return _c("option", { domProps: { value: i } }, [ _vm._v(_vm._s(i) + "/12") ]) }), 0 ) ]), _vm._v(" "), _c("div", { staticClass: "title-right" }, [ _c("span", { staticClass: "btn btn-light block-edit dropdown" }, [ _vm._m(0), _vm._v(" "), _c("span", { staticClass: "dropdown-menu" }, [ _c( "span", { staticClass: "dropdown-item ", on: { click: _vm.openEdit } }, [_vm._v("Edit")] ), _vm._v(" "), _c("span", { staticClass: "dropdown-item " }, [ _vm._v("Delete") ]) ]) ]), _vm._v(" "), _c("span", { staticClass: "block-toggle btn btn-light" }, [ _c("i", { staticClass: "icon ion-md-arrow-dropdown", on: { click: function($event) { _vm.item.open = _vm.item.open ? false : true } } }) ]) ]) ]), _vm._v(" "), _c( "div", { directives: [ { name: "show", rawName: "v-show", value: _vm.item.open, expression: "item.open" } ], staticClass: "block-content" }, _vm._l(_vm.item.children, function(child, index) { return _c(child.component, { key: index, tag: "component", attrs: { item: child } }) }), 1 ) ]) ] ) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("a", { attrs: { href: "#", "data-toggle": "dropdown" } }, [ _c("i", { staticClass: "icon ion-ios-hammer" }) ]) } ] render._withStripped = true /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/regular.vue?vue&type=template&id=74dd0ea6&": /*!**************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/regular.vue?vue&type=template&id=74dd0ea6& ***! \**************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "render": () => (/* binding */ render), /* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns) /* harmony export */ }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "block-panel" }, [ _c("div", { staticClass: "block-title" }, [ _vm._v("\n " + _vm._s(_vm.item.name) + "\n "), _c("div", { staticClass: "title-right" }, [ _c( "span", { staticClass: "btn btn-light block-delete show-hover", on: { click: _vm.deleteBlock } }, [_c("i", { staticClass: "icon ion-ios-trash" })] ), _vm._v(" "), _c( "span", { staticClass: "btn btn-light block-edit", on: { click: _vm.openEdit } }, [_c("i", { staticClass: "icon ion-ios-build" })] ) ]) ]) ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/row.vue?vue&type=template&id=03362f2a&": /*!**********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/components/row.vue?vue&type=template&id=03362f2a& ***! \**********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "render": () => (/* binding */ render), /* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns) /* harmony export */ }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "block-panel" }, [ _c("div", { staticClass: "block-title" }, [ _vm._v("\n " + _vm._s(_vm.item.name) + "\n "), _c("div", { staticClass: "title-right" }, [ _vm._m(0), _vm._v(" "), _vm._m(1), _vm._v(" "), _c("span", { staticClass: "block-toggle btn btn-light" }, [ _c("i", { staticClass: "icon ion-md-arrow-dropdown", on: { click: function($event) { _vm.item.open = _vm.item.open ? false : true } } }) ]) ]) ]), _vm._v(" "), _c( "div", { directives: [ { name: "show", rawName: "v-show", value: _vm.item.open, expression: "item.open" } ], staticClass: "block-content" }, [ _c( "div", { staticClass: "row" }, _vm._l(_vm.item.children, function(child, index) { return _c(child.component, { key: index, tag: "component", attrs: { item: child } }) }), 1 ) ] ) ]) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "span", { staticClass: "btn btn-light block-delete show-hover" }, [_c("i", { staticClass: "icon ion-ios-trash" })] ) }, function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("span", { staticClass: "block-edit btn btn-light show-hover" }, [ _c("i", { staticClass: "icon ion-ios-build" }) ]) } ] render._withStripped = true /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-editor.vue?vue&type=template&id=24a3e51c&": /*!***************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-editor.vue?vue&type=template&id=24a3e51c& ***! \***************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "render": () => (/* binding */ render), /* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns) /* harmony export */ }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", {}, [ _c("tinymce-editor", { attrs: { init: _vm.init, toolbar: "formatselect | bold italic strikethrough forecolor backcolor | link image media | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent code " }, model: { value: _vm.value, callback: function($$v) { _vm.value = $$v }, expression: "value" } }) ], 1 ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-listItem.vue?vue&type=template&id=dfe7ee80&": /*!*****************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-listItem.vue?vue&type=template&id=dfe7ee80& ***! \*****************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "render": () => (/* binding */ render), /* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns) /* harmony export */ }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "bravo-template-list-item" }, [ _c( "div", { staticClass: "list-item-wraps" }, [ _c( "draggable", { attrs: { options: { handle: ".handle" } }, model: { value: _vm.value, callback: function($$v) { _vm.value = $$v }, expression: "value" } }, _vm._l(_vm.value, function(item, k) { return _c("div", { staticClass: "list-item" }, [ _c("div", { staticClass: "list-item-header handle" }, [ _vm.title_field && typeof item[_vm.title_field] != "undefined" && item[_vm.title_field] ? _c("span", [_vm._v(_vm._s(item[_vm.title_field]))]) : _c("span", [_vm._v("#" + _vm._s(k + 1))]), _vm._v(" "), _c("span", [ _c( "span", { on: { click: function($event) { item._active = item._active == false ? true : false } } }, [ _c("i", { directives: [ { name: "show", rawName: "v-show", value: item._active, expression: "item._active" } ], staticClass: "icon ion-ios-arrow-dropdown" }), _vm._v(" "), _c("i", { directives: [ { name: "show", rawName: "v-show", value: !item._active, expression: "!item._active" } ], staticClass: "icon ion-ios-arrow-dropright" }) ] ), _vm._v(" "), _c( "span", { on: { click: function($event) { return _vm.deleteItem(k) } } }, [_c("i", { staticClass: "icon ion-ios-trash" })] ) ]) ]), _vm._v(" "), _c( "div", { directives: [ { name: "show", rawName: "v-show", value: item._active, expression: "item._active" } ], staticClass: "list-item-settings" }, [ _c("vue-form-generator", { attrs: { schema: { fields: _vm.schema.settings }, model: item } }) ], 1 ) ]) }), 0 ) ], 1 ), _vm._v(" "), _c( "span", { staticClass: "btn btn-primary btn-sm", on: { click: _vm.addNew } }, [_vm._v(_vm._s(_vm.template_i18n.add_new))] ) ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-select2.vue?vue&type=template&id=901394d2&": /*!****************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-select2.vue?vue&type=template&id=901394d2& ***! \****************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "render": () => (/* binding */ render), /* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns) /* harmony export */ }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("select") } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-upload.vue?vue&type=template&id=72eb67b0&": /*!***************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/module/template/admin/fields/field-upload.vue?vue&type=template&id=72eb67b0& ***! \***************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "render": () => (/* binding */ render), /* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns) /* harmony export */ }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "dungdt-upload-box dungdt-upload-box-vue ", class: { active: _vm.value }, staticStyle: { width: "200px" } }, [ _c( "div", { directives: [ { name: "show", rawName: "v-show", value: !_vm.value, expression: "!value" } ], staticClass: "upload-box" }, [ _c("div", { staticClass: "text-center" }, [ _c( "svg", { attrs: { id: "next-dropzone", width: "100%", height: "100%" } }, [ _c( "svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 20" } }, [ _c("path", { attrs: { fill: "#fff", d: "M18.487 17.827c-.063.077-.148.133-.244.16-.267.053-.54.074-.81.065l-15.35 1.323c-.563.052-.596-.198-.637-.702l-.117-1.448-.418-5.07-.458-5.682C.346 5.13.246 3.79.127 2.448c-.027-.32-.07-.585.275-.702.335-.082.678-.125 1.023-.127l1.567-.132L13.05.626c.692-.06 1.383-.115 2.083-.17.58-.045 1.198-.222 1.78-.174.432.035.272.456.3.767l.057.674.17 1.996.46 5.352.418 4.85c.094 1.083.175 2.167.26 3.248.017.252.037.494-.092.658z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M18.683 17.98c-.087.107-.202.186-.33.23-.107.036-.217.06-.328.067-.208.017-.39 0-.546.01-.35.027-.718.05-1.074.07s-.72.043-1.077.09c-.357.06-.716.097-1.076.114-.36.02-.72.013-1.08.05l-1.076.11-2.146.26c-.358.034-.717.082-1.075.107s-.72.04-1.08.056c-.36.017-.718.042-1.076.083s-.714.102-1.072.135c-.358.034-.72.053-1.077.078l-1.078.063c-.36.022-.72.036-1.08.064l-.268.02c-.104.01-.21.01-.313 0-.137-.01-.268-.065-.372-.155-.092-.096-.155-.216-.18-.347-.032-.187-.055-.377-.066-.567-.017-.18-.037-.358-.06-.538-.05-.356-.098-.715-.12-1.073s0-.723-.024-1.083c-.01-.18-.033-.36-.07-.537-.03-.178-.05-.357-.06-.538l-.15-2.154c-.05-.72-.103-1.438-.16-2.154S.433 9.003.435 8.28c0-.36-.01-.72-.05-1.078S.276 6.487.25 6.13C.19 5.415.19 4.686.15 3.957.137 3.608.096 3.25.067 2.89l-.052-.537C0 2.256-.006 2.157 0 2.06c.013-.12.068-.23.157-.31.083-.07.18-.12.285-.145.092-.027.186-.048.28-.06.19-.025.372-.03.55-.04l1.074-.083c.72-.056 1.435-.12 2.154-.163.358-.028.72-.055 1.077-.09l1.073-.13C7.365.946 8.08.863 8.798.786s1.433-.15 2.15-.223c.358-.04.717-.067 1.077-.09l1.08-.048.54-.037.538-.052c.356-.033.725-.077 1.067-.123S15.942.08 16.317.03c.194-.027.39-.038.585-.03.16 0 .312.062.427.172.104.12.16.274.155.433 0 .115-.012.208-.02.29v.24c.01.18.022.36.045.537l.12 1.075c.04.358.074.717.09 1.077s0 .723.028 1.08c.025.72.17 1.434.17 2.157.003.362.035.722.093 1.078.065.355.106.713.124 1.073.033.722.054 1.443.123 2.16s.183 1.428.208 2.15c.017.36.03.722.07 1.08s.09.715.132 1.073c.042.358.075.717.11 1.075l.052.542c.01.105.01.21 0 .317-.015.135-.066.264-.147.373zm-.393-.307c.052-.11.067-.232.044-.35l-.04-.533c-.027-.358-.06-.717-.073-1.077-.012-.72-.073-1.44-.18-2.152-.058-.355-.094-.714-.12-1.074l-.057-1.08c-.06-.718-.17-1.43-.27-2.145-.044-.357-.06-.72-.045-1.08.008-.36-.02-.722-.085-1.077-.14-.71-.065-1.44-.154-2.156-.034-.358-.107-.715-.147-1.07s-.067-.718-.085-1.078c-.02-.36-.027-.722-.054-1.08 0-.18-.025-.358-.044-.537l-.008-.14V.635c-.003-.027-.008-.053-.017-.08l-.08-.01c-.164-.015-.33-.015-.495 0-.342.024-.696.09-1.07.122s-.724.035-1.086.067l-.537.04-.548.063-1.072.16-1.075.096c-.72.06-1.435.13-2.154.17s-1.44.1-2.16.11c-.722.002-1.443.055-2.157.155-.715.098-1.43.175-2.148.252-.36.037-.71.07-1.08.102-.184.012-.36.02-.52.044-.078.01-.155.022-.23.04-.053.01-.102.028-.147.056-.02.017-.03.025-.046.08-.012.07-.015.145-.01.218l.017.54c.018.36.04.72.09 1.077.086.717.24 1.425.293 2.144.025.36-.03.726-.02 1.086.02.36.07.72.143 1.073.072.353.123.71.152 1.07l.063 1.08c.036.718.093 1.437.15 2.155l.157 2.167c.017.18.022.36.017.542-.013.18-.013.36 0 .542.025.358.108.715.135 1.073s.037.72.047 1.08c0 .18 0 .36.02.54.01.172.033.343.064.513.04.156.066.19.21.208.17.006.34 0 .507-.02.36-.025.72-.063 1.077-.094.717-.063 1.433-.135 2.152-.192s1.438-.1 2.152-.208c.358-.048.715-.104 1.073-.135s.72-.057 1.078-.086l2.152-.135c.358-.028.72-.045 1.077-.08s.715-.098 1.073-.142c.357-.047.717-.074 1.077-.08.36-.018.717-.068 1.075-.103s.71-.083 1.08-.12c.207-.014.38 0 .532-.022.114.002.224-.04.308-.115z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", stroke: "#d6dbeb", "stroke-width": ".417", "stroke-linecap": "round", d: "M15.446 15.32l-9.867.847c.37-.208.73-.43 1.093-.644.305-.185.62-.352.944-.502.166-.074.335-.14.508-.195.142-.048.286-.088.43-.12l.1-.022c.443-.1.903-.1 1.347 0 .083.02.166.045.246.075.052.02.104.04.156.065.27.125.517.304.78.438.142.077.296.13.455.16.38.07.772-.04 1.155-.114.875-.176 1.777-.17 2.65.013z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#f8fafc", d: "M5.16 16.042c-.75-.616-1.344-1.4-1.73-2.292-.257-.543-.39-1.135-.395-1.735.027-1.167.72-2.13 1.142-3.183.323-.804-.035-2.404.492-2.587s.486 1.498.96 2.07c.3.363.676.626.976.997.625.752.86 1.842.817 2.867s-.338 2.003-.646 2.957z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#f8fafc", d: "M8.654 14.706c-.098-1.094 1.16-2.048 1.813-3.08.833-1.31.662-2.79.135-4.118S9.098 3.49 8.66 3.62c-.438.13-.12 1.783-1.273 3.67-.546.89-.398 1.995-.125 2.957 0 0 .485 3.356-.417 4.86zM1.875 12.37l1.198 1.04.012.124.285 2.708v.125c-.024-.028-.05-.055-.077-.08-.027-.026-.056-.05-.087-.076-.323-.24-.675-.435-1.048-.584z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M1.988 12.242l.625.494c.102.085.208.17.3.26l.285.275.025.026c.025.024.038.06.035.094-.007.248.005.496.035.742.02.246 0 .498.025.744s.067.492.11.735l.112.734c.01.062-.02.124-.073.157s-.122.03-.173-.006l-.02-.015-.016-.022c-.07-.065-.163-.13-.244-.208-.086-.077-.18-.147-.277-.208-.103-.056-.208-.106-.317-.15-.108-.048-.208-.09-.33-.127-.058-.02-.1-.067-.112-.125s.008-.12.053-.158c.046-.04.108-.052.165-.033h.02c.23.086.456.185.676.295.114.055.22.126.314.208.094.092.194.165.294.273l-.02-.02-.266.138-.167-1.473c-.03-.245-.106-.484-.115-.732-.003-.125 0-.25.012-.375.006-.062.006-.124 0-.185-.02-.06-.027-.123-.023-.185l.05.098c-.095-.093-.178-.207-.276-.286s-.225-.144-.325-.23c-.21-.17-.418-.33-.61-.507-.054-.06-.056-.152-.004-.215s.14-.08.212-.04l.017.032z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#f8fafc", d: "M10.056 14.67c.556-1.197 2.625-.98 3.8-1.905 1.054-.833 1.206-2.47 1.11-3.585-.892 1.387-3.517 1.62-4.738 2.87 0 0-1.875 2.064-1.71 3.157z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#f8fafc", d: "M13.75 15.16c1.484-.318 2.64-1.482 2.946-2.97-.906.37-1.855.62-2.825.75-.8-.062-1.598.17-2.243.65-1.12.81-1.702 1.414-1.667 1.728zM2.177 15.833c.334.157.683.28 1.042.365.053.012.103.02.153.03.106.017.213.026.32.024l-.316.02h-.07z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M2.246 15.683c.065.017.125.035.188.054.063.015.124.037.18.067.03.017.06.03.086.048.03.015.058.038.077.067.056.032.12.04.177.074s.108.088.173.1c.064.012.13.02.194.02.065 0 .128-.006.19-.018.06-.008.122-.01.182-.01h.03c.088.013.15.09.146.178s-.076.158-.164.16c-.064-.016-.13-.023-.196-.02-.065.01-.13.022-.192.04-.057.02-.12.006-.164-.033s-.065-.1-.053-.157c.01-.058.053-.106.11-.125h.023l.063-.01.194-.033c.032-.004.064-.004.096 0 .033.006.066.013.098.023l.012.33c-.142-.02-.29-.022-.427-.043-.072 0-.138-.02-.21-.03-.07 0-.14-.007-.207-.02-.067-.017-.115-.098-.173-.133-.077.015-.117-.073-.18-.098-.136-.01-.27-.045-.39-.108-.073-.04-.107-.125-.08-.203s.11-.123.19-.108l.026-.01z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#e8eef5", d: "M1.483 7.773c.767.856 2.727 1.704 1.992 2.237-.088.07-.16.16-.208.26-.256.456-.325 1.265-.333 1.92 0 .576.033 1.04.033 1.04l-1.11-1.122z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#fff", d: "M7.448 7.43c.15.033.294.085.43.155.05.025.107.037.164.035.063-.003.125-.016.183-.04.267-.1.506-.263.694-.477.01-.01.017-.023.024-.035V7.065c0-.033.02-.062.05-.073h.03c.04-.004.084-.004.126 0 .076.01.15.026.225.047.077.02.152.048.223.085.047.024.087.062.112.108v.008c-.01-.014-.028-.02-.046-.02h.015c.117-.075.225-.165.32-.268.052-.052.104-.104.16-.156.06-.06.13-.11.208-.144.04-.01.084.01.1.05s-.002.084-.04.104h-.017c-.052.03-.1.066-.143.108-.052.048-.102.098-.154.15s-.102.104-.158.154c-.056.057-.12.106-.19.146-.027.016-.058.026-.09.03-.037 0-.072-.014-.096-.043-.01-.014-.017-.028-.022-.043-.01-.018-.027-.033-.046-.042-.06-.032-.12-.057-.185-.075-.068-.02-.138-.036-.208-.046-.03-.003-.06-.003-.09 0 .03-.012.046-.04.045-.07v-.018.062c-.004.01-.01.018-.015.026-.013.02-.028.037-.044.054-.108.117-.227.208-.335.306-.053.053-.115.096-.184.127l-.108.044c-.02.007-.037.017-.052.03-.018.01-.037.017-.056.022-.156.054-.325.06-.483.012-.124-.066-.256-.117-.392-.152-.045-.008-.076-.05-.068-.097s.05-.076.097-.068l.013.002zM3.473 10.133c.142.015.28.045.417.09.112.03.23.03.342 0 .122-.03.24-.072.352-.127.123-.05.237-.12.335-.208l.032-.03v.024s0 .027 0 0 .023-.052.037-.065h.02c.04-.005.082-.005.123 0 .07.003.14.01.208.02.07.008.14.023.21.043.04.01.08.03.116.058.014.012.026.026.035.042v.015c.002-.005.002-.01 0-.015-.007-.01-.017-.015-.028-.02-.03 0-.015 0 0 0 .118-.048.228-.114.327-.195.053-.04.107-.08.166-.12.063-.045.134-.08.208-.105.04-.007.08.017.093.056s-.004.082-.04.1h-.018c-.112.053-.216.12-.31.196-.055.04-.11.08-.168.117-.06.042-.127.077-.198.1-.034.012-.072.012-.106 0-.02-.006-.036-.018-.048-.034-.006-.008-.01-.018-.015-.027-.018-.016-.04-.026-.063-.032-.06-.02-.12-.034-.183-.044s-.127-.018-.19-.023h-.06c.01-.01.03 0 .04-.068v.035l-.014.025c-.01.01-.018.022-.03.03L5 10c-.117.083-.233.148-.344.23s-.265.086-.394.143c-.07.014-.138.022-.208.023-.074.008-.15.005-.223-.01-.124-.042-.25-.072-.378-.092-.046-.005-.08-.046-.075-.092s.046-.08.092-.075v.006zM14.033 11.992c-.04-.083-.074-.17-.098-.26-.02-.067-.057-.127-.106-.177-.038-.075-.124-.102-.186-.17-.066-.055-.145-.094-.23-.114h-.026c.01.004.02.004.03 0h.01s.016-.01 0 0c-.02.015-.05.015-.072 0l-.023-.02c-.02-.02-.038-.045-.052-.07-.023-.042-.044-.083-.064-.126-.02-.044-.037-.09-.05-.135-.007-.032-.007-.064 0-.095.002-.016.007-.032.015-.046v-.013.017c-.003.013-.003.027 0 .04.013.033.016.02 0 .02-.06-.05-.132-.09-.207-.116l-.125-.052c-.05-.02-.096-.046-.137-.08-.03-.03-.033-.078-.006-.11s.075-.042.11-.018l.018.012c.066.04.136.072.208.098.09.03.176.075.252.133.024.02.042.046.05.076 0 .016-.002.033-.008.048-.004.01-.01.017-.015.025v-.016c-.005.012-.005.025 0 .037.01.04.02.077.036.113.015.038.033.076.052.112 0 .015.027.042.02.033h-.013c-.017 0-.027-.02-.083 0l.02-.013c.016-.004.032-.004.047 0h.032l.04.015c.092.035.163.085.254.11s.13.135.208.183c.03.038.06.077.085.12.033.038.06.082.08.13.02.08.047.16.08.237.02.04.002.09-.04.11s-.09.004-.11-.038l.003-.004zM15.313 14.327c-.064-.068-.12-.143-.17-.223-.035-.06-.084-.11-.143-.146-.056-.06-.148-.063-.225-.108-.08-.034-.166-.05-.252-.044h-.017s.033-.025.027-.027c-.016.025-.045.04-.075.034h-.017c-.026-.015-.05-.034-.072-.056-.034-.032-.067-.065-.098-.1-.038-.036-.073-.075-.104-.117-.018-.026-.03-.056-.035-.09-.002-.015-.002-.03 0-.047v-.008.02c-.002.01-.002.024 0 .036.022.03.022.018.016.018-.076-.03-.156-.047-.238-.05l-.135-.015c-.054-.005-.106-.017-.156-.037-.035-.02-.05-.065-.033-.103s.056-.06.096-.05h.02c.075.018.15.03.228.033.096.003.19.022.28.056.03.012.054.032.07.058.01.017.013.035.013.054.002.01.002.018 0 .027.002-.004.002-.01 0-.016 0 0 0 .02.013.033.02.034.044.067.07.098s.052.063.08.092c0 .013.04.033.023.025h-.015c-.034-.006-.07.012-.084.044 0 0 .04-.046.042-.04h.098c.09.016.183.027.275.033.095 0 .166.09.26.114.04.027.08.057.116.09.044.028.082.063.115.104.043.073.09.143.145.208.03.034.027.086-.006.116s-.086.03-.118-.004l.012-.015zM14.63 14.71c-.072-.08-.137-.164-.193-.256-.047-.07-.11-.127-.185-.167-.07-.067-.173-.073-.265-.123-.093-.04-.193-.06-.294-.056h-.04s.013 0 .04-.033c-.01.018-.026.032-.046.037H13.6c-.03-.016-.057-.037-.08-.06-.04-.037-.077-.075-.112-.117-.036-.04-.07-.085-.1-.13-.02-.03-.033-.063-.04-.097-.003-.016-.003-.032 0-.048v-.017.012c-.004.012-.004.025 0 .037.023.03.017.015.012.015-.09-.035-.183-.055-.28-.06l-.153-.02c-.06-.005-.12-.02-.175-.043-.036-.02-.05-.066-.034-.104s.06-.06.1-.048h.018c.088.024.178.04.27.046l.153.02c.057.006.113.022.166.047.03.012.056.034.073.063.005.02.005.04 0 .058v.023-.01c.002.016.008.03.018.045.024.04.052.078.08.115.032.037.064.075.097.108s.044.04.033.033h-.05c-.024.007-.044.024-.054.047.037-.058.06-.046.07-.052h.08c.11.01.208.042.315.044.053.003.104.023.147.055.022.017.047.03.073.042.033 0 .05.023.075.033.047.03.09.065.133.102.05.032.093.072.13.12.05.083.105.162.168.236.03.034.027.085-.005.115s-.082.03-.114 0l.017-.013zM13.696 15.208c-.073-.08-.138-.164-.194-.256-.047-.07-.11-.127-.185-.167-.07-.067-.173-.073-.265-.123-.093-.04-.193-.06-.294-.056h-.04s.013 0 .04-.033c-.01.018-.026.032-.046.037H12.66c-.03-.016-.056-.037-.08-.06-.04-.037-.076-.075-.11-.117-.037-.04-.07-.085-.1-.13-.02-.03-.034-.063-.04-.097-.004-.016-.004-.032 0-.048v-.017.013c-.005.012-.005.025 0 .037.022.03.016.015.01.015-.088-.035-.182-.055-.278-.06l-.154-.02c-.06-.005-.12-.02-.175-.043-.036-.02-.05-.066-.034-.104s.058-.06.098-.048h.02c.087.024.177.04.268.046l.154.02c.058.006.114.022.167.047.03.012.056.034.073.063.013.017.02.04.02.06.002.008.002.015 0 .023v-.024c.004.017.01.032.02.046.024.04.052.078.08.115.032.037.064.075.097.108s.044.04.033.033h-.05c-.024.006-.044.023-.054.046.037-.058.06-.046.07-.052h.08c.11.01.208.042.315.044.055.004.106.024.15.056.02.017.046.03.072.042.033 0 .05.023.075.033.047.03.09.065.133.102.05.03.093.07.13.118.05.084.105.163.168.237.03.034.027.085-.005.115s-.083.03-.115 0v-.003zM13.417 12.656c-.04-.083-.074-.17-.098-.26-.022-.067-.058-.127-.107-.177-.037-.076-.123-.103-.185-.17-.066-.056-.145-.095-.23-.115h-.026c.01.003.02.003.03 0h.01s.016-.012 0 0c-.02.014-.05.014-.072 0l-.03-.023c-.02-.02-.04-.045-.053-.07-.024-.042-.045-.083-.065-.126-.02-.044-.037-.09-.05-.135-.007-.03-.007-.062 0-.093.002-.016.007-.032.015-.046v-.01.016c-.004.013-.004.027 0 .04.012.033.015.02 0 .02-.062-.05-.133-.09-.208-.116l-.126-.052c-.05-.022-.098-.05-.14-.088-.03-.03-.034-.08-.007-.112s.075-.04.11-.017l.018.013c.066.04.136.072.208.098.09.03.176.076.252.134.024.02.042.045.05.075.005.017.005.037 0 .055-.004.01-.01.017-.015.025v-.015.037c.01.038.022.076.037.112.015.038.033.076.052.113 0 .015.026.042.018.033h-.013c-.017 0-.027-.02-.083 0l.02-.012c.016-.004.032-.004.047 0h.032l.04.015c.092.035.162.085.254.11s.13.135.208.183c.03.038.06.077.085.12.033.038.06.082.08.13.02.08.047.16.08.238.02.04.002.09-.04.11s-.09.004-.11-.038l.005-.002zM12.917 13.056c-.04-.083-.074-.17-.098-.26-.022-.067-.058-.127-.107-.177-.037-.076-.123-.103-.185-.17-.066-.056-.145-.095-.23-.115h-.026c.01.003.02.003.03 0h.01s.016-.013 0 0c-.02.014-.05.014-.072 0l-.017-.013c-.02-.02-.038-.045-.052-.07-.023-.042-.044-.083-.064-.126-.02-.044-.037-.09-.05-.135-.007-.03-.007-.062 0-.093.002-.016.007-.032.015-.046v-.01.016c-.003.013-.003.027 0 .04.013.033.016.02 0 .02-.06-.05-.132-.09-.207-.116l-.125-.052c-.05-.02-.096-.046-.137-.08-.03-.03-.033-.078-.006-.11s.075-.042.11-.018l.018.013c.066.04.136.072.208.098.09.03.176.076.252.134.024.02.042.045.05.075.005.017.005.037 0 .055-.004.01-.01.017-.015.025v-.015c-.004.012-.004.025 0 .037.01.038.022.076.037.113.015.038.033.076.052.112 0 .015.027.042.02.033h-.013c-.017 0-.027-.02-.083 0l.02-.012c.016-.004.032-.004.047 0h.033l.04.015c.092.035.163.085.254.11s.13.135.208.183c.03.038.06.077.085.12.034.038.06.082.08.13.02.08.048.16.08.237.02.04.003.09-.04.11s-.09.004-.11-.038l-.01-.02zM11.115 14.22c-.042-.083-.074-.17-.098-.262-.02-.067-.057-.127-.106-.177-.036-.074-.122-.1-.184-.168-.066-.056-.145-.095-.23-.115h-.026c.01.003.02.003.03 0h.01s.016-.012 0 0c-.02.014-.05.014-.072 0l-.02-.02c-.02-.022-.04-.046-.053-.072-.024-.04-.045-.082-.065-.125-.02-.044-.037-.09-.05-.135-.007-.03-.007-.063 0-.094.002-.015.007-.03.015-.045v-.012.017c-.004.013-.004.027 0 .04.012.033.015.02 0 .02-.062-.05-.133-.09-.208-.116l-.125-.052c-.05-.02-.096-.046-.138-.08-.03-.03-.034-.078-.007-.11s.075-.042.11-.018l.018.013c.066.04.136.072.208.098.09.03.176.075.252.133.024.02.042.045.05.075.005.018.005.038 0 .056l-.015.024v-.015c-.004.01-.004.024 0 .036.01.038.022.076.037.113.015.037.033.075.052.11 0 .016.026.043.018.034h-.012c-.017 0-.027-.02-.083 0l.02-.012c.016-.004.032-.004.047 0h.033l.04.015c.092.035.163.085.254.11s.13.135.208.183c.03.038.06.077.085.12.034.038.06.082.08.13.02.08.048.16.08.237.02.04.003.09-.04.11s-.09.004-.11-.038l-.006-.01zM2.13 12.97c0 .01 0 .036-.02.03h-.063c-.003.02-.003.042 0 .063 0 .017-.013.012-.025.015-.004.01-.004.02 0 .03.002.03-.014.06-.042.074s-.06.012-.085-.007c-.025-.02-.036-.05-.03-.08l.01-.087c-.002-.01-.002-.02 0-.03 0 0 .03 0 .028-.01s.02-.032.03-.05c.01-.016 0-.032 0-.03H2v-.025s.012-.023.026-.03c.024-.008.05-.004.07.012s.03.04.026.066l.008.064zM3.1 13.608c.02-.003.04-.013.054-.03-.015.018-.036.03-.058.032l.04-.015c-.056.056-.112.17-.196.244l-.03.03c-.015.005-.028.015-.036.027l-.056.067c-.045.045-.096.084-.15.117-.013.007-.027.01-.042.013-.013 0-.026-.005-.037-.012-.016 0 0 0 0 0h-.022c-.025.003-.05.007-.075.013-.053.013-.105.03-.156.05s-.104.032-.158.035c-.01.002-.02.006-.028.012 0-.015.023 0 .013-.07s0 0 0 .016v.025c-.003.018-.008.034-.017.05l-.05.084c-.025.036-.073.047-.11.025s-.052-.07-.033-.11l.012-.016c.014-.02.027-.04.038-.063v.043c0 .015.033.063 0 .015-.01-.023-.01-.05 0-.073.005-.01.01-.02.02-.03s.017-.017.028-.024c.017-.01.035-.02.054-.026.06-.027.123-.015.18-.037.057-.015.116-.027.176-.035.034-.003.068-.003.102 0 .028 0 .055.008.08.02l.016.013c-.004-.017-.016-.03-.032-.037-.008-.003-.017-.003-.025 0 .022-.04.05-.078.08-.11.022-.02.05-.03.074-.05.012-.008.02-.02.023-.035l.03-.03c.024-.017.046-.037.066-.06.017-.022.02-.057.037-.08.035-.055.08-.104.13-.144l.04-.016c-.02.003-.04.013-.053.03.015-.018.036-.03.058-.032.046-.004.087.03.09.076s-.03.087-.075.09v.01zM3.415 11.302c.175.01.348.036.52.077.152.03.31.03.464 0 .08-.013.16-.03.24-.053.08-.027.16-.06.24-.08.162-.048.316-.118.457-.21l.05-.032.02-.017v.015c-.004.01-.004.023 0 .033-.007-.025 0-.05.018-.07l.02-.014c.03-.01.06-.015.09-.015h.068c.088 0 .175 0 .263.013.088.007.176.02.262.035.048.008.095.023.14.044.016.007.03.017.044.028.01.01.02.02.027.03-.006-.005-.01-.01-.018-.014-.04-.015-.015 0 0 0 .157-.05.308-.12.448-.208.15-.096.314-.175.483-.233.03-.008.06 0 .08.02s.03.05.024.08c-.007.03-.03.052-.058.06H7.28c-.152.055-.298.124-.435.208-.15.097-.312.173-.48.228-.044.013-.09.008-.13-.012-.01-.007-.02-.015-.027-.025l-.01-.016c-.033-.016-.068-.027-.104-.033-.085-.02-.17-.04-.258-.05-.083 0-.167-.016-.248-.018h-.092l.02-.012s.04-.05.02-.08V11c.002.01.002.022 0 .033-.002.01-.007.02-.013.026-.008.012-.018.022-.03.03l-.032.024-.06.035c-.156.085-.31.154-.465.24-.077.042-.16.07-.248.083-.088.01-.17.056-.258.063-.088.016-.177.024-.267.026-.09.013-.182.013-.273 0-.162-.04-.327-.068-.494-.083-.046 0-.083-.037-.083-.083s.037-.083.083-.083l.02-.004zM3.28 13.63c.176.012.35.037.52.078.153.03.31.03.465 0 .082-.012.162-.03.242-.052.08-.027.158-.06.24-.08.16-.048.315-.118.456-.21l.05-.032.02-.017v.015c-.004.01-.004.023 0 .033-.007-.025 0-.05.018-.07l.022-.014c.03-.01.06-.014.09-.014h.067c.087 0 .174 0 .26.012.09.007.177.02.264.035.048.008.095.023.14.044.016.008.03.018.044.03.01.008.02.018.027.03-.005-.006-.01-.01-.017-.015-.04-.015-.015 0 0 0 .157-.05.308-.12.448-.208.15-.096.314-.175.483-.233.028-.007.06 0 .08.02s.03.052.023.08c-.007.03-.03.053-.058.06h-.017c-.152.056-.298.125-.435.21-.154.09-.318.16-.49.21-.043.012-.09.007-.13-.013-.01-.007-.02-.015-.026-.025l-.01-.017c-.033-.016-.068-.027-.104-.033-.08-.017-.162-.03-.244-.037-.084 0-.168-.015-.25-.017h-.093l.02-.013s.04-.05.02-.08c.005.01.01.017.012.026v.034c-.003.01-.008.018-.013.025-.008.01-.018.02-.03.03l-.032.023-.06.035c-.156.085-.31.154-.465.24-.077.042-.16.07-.248.083-.087.01-.17.057-.258.064-.088.015-.177.023-.267.025-.09.012-.182.012-.273 0-.162-.04-.327-.07-.494-.084-.046 0-.083-.037-.083-.083s.037-.083.083-.083l.004-.01zM3.125 12.456c.185.01.37.035.55.075.166.032.336.032.502 0 .087-.012.173-.03.258-.053.085-.027.17-.06.256-.083.174-.05.34-.125.493-.22l.054-.034.023-.017-.01.044s0 .027 0 0c-.006-.016-.006-.034 0-.05.017-.023.015-.017.025-.025.02-.01.04-.015.06-.017h.385c.092 0 .185.017.28.033.05.008.1.022.147.042.016.007.03.015.046.025 0 0 .067.07.02.023-.04-.017-.01 0 0-.01.17-.05.33-.12.482-.208.163-.097.336-.176.517-.235.043-.01.085.018.097.06s-.013.086-.054.1H7.24c-.162.055-.32.125-.47.21-.162.096-.336.173-.517.228-.045.014-.094.008-.135-.015l-.03-.03c-.012-.02 0 0 0 0h-.014c-.037-.017-.075-.028-.115-.034-.086-.017-.174-.027-.264-.035s-.177-.016-.265-.016h-.093s-.027 0 0 0c.006-.005.012-.012.017-.02.01-.017.015-.04.01-.06 0-.028 0 0 0 0 .002.02-.002.042-.013.06l-.01.014c-.007.01-.016.018-.026.025l-.035.023-.066.035-.498.243c-.083.042-.172.07-.265.083-.046.005-.093.017-.137.035-.045.013-.09.022-.138.028-.093.015-.187.024-.28.027-.096.013-.193.013-.288 0-.174-.038-.35-.065-.527-.08-.046 0-.083-.036-.083-.082s.037-.083.083-.083l.042-.002zM7.723 6.22c.13.035.257.09.373.16.04.024.084.036.13.034.052-.003.105-.017.153-.04.23-.1.43-.26.578-.467l.015-.03v-.011c.002-.018.01-.034.025-.046.018-.014.04-.022.063-.023.04-.004.078-.004.116 0 .07.012.14.03.208.054.07.024.136.057.196.1.04.03.07.07.085.12v-.01c-.005-.01-.013-.016-.023-.02-.018-.012-.04-.01-.058 0h.02c.097-.076.186-.165.26-.264.043-.05.084-.1.13-.15.05-.062.11-.112.18-.148.04-.012.083.007.1.045s.004.082-.03.105h-.02c-.042.03-.08.063-.112.102-.042.046-.083.094-.125.144-.082.108-.176.206-.28.292-.023.016-.046.028-.072.035-.05.02-.104 0-.13-.045-.007-.01-.012-.022-.016-.033 0 0 0-.02-.028-.035-.046-.033-.097-.06-.15-.08-.056-.02-.114-.038-.173-.05-.026-.003-.05-.003-.076 0l.027-.016c.015-.01.023-.027.026-.045.002-.01.002-.018 0-.027v.02c.003.014.003.03 0 .045-.01.022-.02.042-.035.06-.157.224-.368.406-.614.53-.14.058-.297.063-.44.012-.104-.066-.216-.118-.333-.156-.045-.01-.073-.056-.063-.1s.055-.074.1-.064l-.008.002zM7.63 8.633c.148.032.293.084.428.154.05.025.108.037.165.035.063-.003.125-.016.183-.04.267-.1.506-.263.694-.477.01-.01.018-.023.025-.035V8.265c.003-.025.02-.047.042-.058h.03c.04-.005.084-.005.126 0 .076.01.15.025.225.046.077.02.152.048.223.085.05.024.088.062.113.108V8.455c-.01-.014-.028-.02-.046-.02h.015c.12-.077.227-.17.32-.274.053-.052.105-.104.16-.156.06-.06.13-.11.21-.144.027-.015.062-.012.088.007s.038.05.032.083c-.006.03-.03.057-.06.065h-.017c-.053.03-.1.066-.144.108l-.153.15s-.102.104-.158.154c-.057.057-.12.106-.19.146-.028.016-.06.026-.09.03-.038 0-.073-.014-.097-.043-.01-.013-.016-.027-.02-.042-.012-.018-.028-.033-.047-.042-.06-.032-.12-.057-.185-.075-.067-.02-.137-.035-.207-.045-.03-.003-.058-.003-.088 0 .028-.012.045-.04.044-.07v-.018V8.328l-.016.026c-.013.02-.028.037-.044.054-.108.117-.227.208-.335.306-.054.053-.116.096-.185.127l-.108.044c-.02.007-.037.017-.052.03-.018.01-.037.017-.056.022-.156.054-.325.06-.483.01-.123-.065-.255-.116-.39-.15-.046-.01-.077-.052-.07-.098s.052-.076.098-.068l.02-.006zM7.525 11.554c.15.032.294.084.43.154.05.025.107.037.164.035.062-.003.124-.016.182-.04.267-.1.506-.263.694-.477.01-.01.018-.023.025-.035V11.188c0-.033.02-.062.05-.073h.03c.042-.005.085-.005.127 0 .076.01.15.025.225.046.077.02.152.048.223.085.048.024.087.062.113.108v.008c-.01-.013-.028-.02-.046-.02h.015c.12-.076.227-.168.32-.273.053-.052.105-.104.16-.156.06-.06.13-.11.21-.143.04-.01.083.01.098.05s0 .084-.04.104h-.016c-.054.03-.102.067-.145.11-.052.047-.102.097-.154.15s-.1.103-.157.153c-.056.057-.12.106-.19.146-.027.015-.058.025-.09.028-.037.002-.072-.013-.096-.042-.01-.013-.016-.027-.02-.042-.012-.018-.028-.033-.047-.042-.06-.032-.12-.057-.185-.075-.068-.02-.138-.036-.208-.046-.03-.002-.058-.002-.088 0 .027-.01.044-.04.043-.07v-.017V11.21c.006.01.01.023.013.035-.004.01-.01.02-.015.027-.012.02-.027.037-.043.054-.108.117-.227.208-.335.306-.054.053-.116.096-.185.127l-.108.043c-.02.007-.038.017-.053.03-.018.01-.037.017-.056.022-.155.055-.324.06-.482.013-.123-.067-.253-.12-.387-.156-.044-.008-.075-.05-.067-.097s.05-.076.097-.068l-.004.002zM7.452 9.57c.16.03.315.08.463.15.124.05.263.05.387 0 .146-.018.265-.136.417-.195.133-.076.255-.173.36-.288l.03-.037v.017s0 .023 0 0c-.003-.013-.003-.027 0-.04.007-.015.02-.027.033-.035.01-.005.022-.01.033-.01.046-.006.092-.006.137 0 .08.01.162.023.242.042.082.018.163.045.24.08.05.02.092.055.123.1 0 0 .027.055.015.028s-.033-.03-.044-.025c-.01.004 0 0 .014 0 .13-.076.25-.17.356-.277.058-.054.117-.106.177-.158.066-.062.143-.11.227-.144.03-.013.062-.01.087.01s.037.052.03.083c-.005.032-.03.056-.06.064h-.014c-.06.03-.115.067-.165.112-.057.048-.114.1-.172.154s-.115.106-.177.158c-.062.058-.132.107-.207.146-.03.017-.065.025-.1.025-.018-.002-.036-.007-.052-.016-.016-.01-.03-.024-.04-.042l-.01-.023c-.016-.02-.036-.037-.06-.047-.066-.03-.136-.056-.207-.073-.073-.02-.146-.034-.22-.044-.032-.003-.064-.003-.095 0h.01c.014-.007.025-.02.03-.033.005-.014.005-.028 0-.042 0-.024 0 0 0 0 .002.03-.01.06-.028.082-.015.02-.03.036-.048.052-.12.117-.252.208-.373.31-.134.096-.282.17-.438.22-.08.026-.165.04-.25.043-.088.007-.176-.003-.26-.03-.136-.064-.28-.114-.427-.147-.045-.007-.076-.05-.07-.096s.05-.076.097-.07l.01-.007z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#e8eef5", stroke: "#d6dbeb", "stroke-width": ".417", "stroke-linecap": "round", "stroke-linejoin": "round", d: "M10.99 7.917c.417.11.833-.088 1.185-.338s.654-.56 1.042-.72l.392 1.287c.164.544.316 1.183-.022 1.64-.18.21-.408.376-.662.485-1.042.54-1.677 1.154-2.708 1.694.667-.294.665-1.098.75-1.823s-.08-1.458-.242-2.163" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M5.056 16.175c-.696-.557-1.264-1.257-1.667-2.052-.208-.395-.363-.815-.464-1.25-.097-.447-.104-.91-.02-1.358.042-.22.104-.438.184-.648.083-.208.18-.404.27-.604.18-.398.384-.777.562-1.165.046-.096.085-.194.127-.292.038-.092.068-.186.09-.283.045-.206.072-.415.084-.625.006-.437.044-.873.115-1.304.02-.126.074-.244.153-.344.048-.052.11-.09.18-.106.075-.02.157-.008.224.033.1.078.177.184.22.304.04.105.076.212.105.32.09.415.212.823.365 1.22.04.088.094.17.158.243.07.077.142.152.208.225l.475.44c.33.308.595.68.777 1.092.183.41.3.845.342 1.292.04.44.028.886-.03 1.325-.116.867-.31 1.72-.584 2.552-.028.087-.12.136-.21.108s-.136-.12-.108-.21c.274-.804.468-1.635.58-2.478.047-.415.056-.833.026-1.25-.033-.415-.134-.822-.3-1.204-.16-.38-.397-.72-.695-1.004l-.47-.446c-.078-.077-.155-.16-.23-.246-.08-.094-.147-.198-.198-.31-.156-.414-.28-.84-.367-1.273-.026-.098-.057-.194-.094-.287-.022-.07-.06-.13-.112-.18h-.02c-.022.004-.04.016-.055.032-.05.06-.08.132-.093.208-.048.415-.067.833-.056 1.25-.003.226-.024.452-.062.675-.018.12-.05.24-.094.354-.046.1-.092.207-.14.3-.192.395-.417.768-.6 1.15-.1.186-.178.383-.235.587-.07.195-.128.395-.172.598-.087.407-.087.828 0 1.235.112.403.27.793.47 1.16.378.754.91 1.42 1.566 1.95.072.058.084.162.026.234s-.162.084-.234.026v.006z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M8.488 14.72c-.023-.442.098-.88.346-1.25.22-.347.467-.678.735-.99.255-.3.494-.616.714-.945.206-.32.357-.672.448-1.042.094-.373.133-.758.115-1.142-.024-.388-.085-.774-.183-1.15-.103-.386-.233-.764-.39-1.13l-.437-1.125c-.152-.373-.292-.748-.452-1.115-.143-.367-.333-.713-.567-1.03-.027-.03-.057-.058-.092-.08-.01-.006-.022-.01-.033-.012h-.025c-.062.048-.105.117-.12.194-.05.19-.087.385-.11.58-.056.404-.135.803-.24 1.197-.106.395-.25.78-.426 1.15-.088.184-.19.366-.292.54-.095.167-.17.344-.22.528-.21.744-.064 1.548.157 2.292v.017c.062.414.098.83.108 1.25 0 .417 0 .833-.013 1.25-.012.42-.052.837-.12 1.25-.07.428-.21.84-.418 1.22-.028.055-.084.09-.145.09s-.12-.03-.15-.083c-.03-.053-.028-.118.004-.17.193-.342.328-.714.398-1.1.065-.398.1-.8.108-1.204.015-.406 0-.813 0-1.22-.007-.41-.037-.816-.092-1.22v.02c-.113-.395-.188-.8-.225-1.212-.042-.42-.006-.843.106-1.25.06-.207.146-.406.255-.592.102-.173.208-.34.285-.517.172-.354.312-.722.417-1.1.104-.384.185-.773.242-1.166.027-.21.068-.42.122-.625.017-.062.04-.12.07-.176.04-.076.1-.14.174-.18.023-.013.047-.022.07-.03.033-.005.066-.005.1 0 .05.004.1.02.145.044.06.035.116.078.163.13.144.163.268.342.37.534.103.18.195.365.282.55.17.37.346.738.483 1.12s.28.757.417 1.14l.208.57.098.294c.037.096.07.193.1.292.24.797.26 1.644.06 2.452-.093.407-.248.798-.46 1.156-.226.345-.475.674-.747.983-.26.298-.498.614-.713.947-.21.305-.318.67-.304 1.042.004.088-.06.164-.15.173s-.168-.053-.18-.14v-.01zM3.28 16.485l-.022-.02c-.095-.05-.18-.115-.25-.195-.01-.01-.02-.023-.027-.035 0-.02 0-.037-.02-.046-.022-.02-.045-.036-.07-.05-.047-.032-.07-.107-.122-.136-.112-.043-.23-.073-.348-.092-.03-.004-.058-.015-.083-.03-.023-.022-.044-.047-.07-.066-.055-.024-.114-.04-.174-.046-.06-.003-.116-.04-.142-.095s-.02-.12.018-.17c.037-.05.098-.075.16-.066h.024l.073.018c.058.017.12.03.177.05.03.012.055.033.073.06.023.02.05.037.08.048.107.056.222.104.336.154.06.023.14.01.18.07s.03.07.05.097c.02.027 0 .017.015.02s.02 0 .027 0c.012.013.023.026.03.04.015.032.034.06.057.084.024.02.076 0 .1.03.06.035.113.08.157.133l-.02-.02c.064.054.076.15.027.22s-.142.09-.216.048l-.02-.005zM2.97 13.542c-.122-.057-.228-.14-.314-.244l-.03-.042v-.03c-.002-.01-.007-.016-.014-.022-.022-.024-.046-.047-.07-.07-.05-.043-.066-.126-.114-.172-.112-.078-.23-.147-.35-.208-.03-.014-.058-.034-.08-.058-.02-.03-.036-.06-.057-.088-.052-.043-.11-.08-.172-.108-.074-.044-.102-.137-.065-.214s.126-.115.207-.086l.02.01.057.037.167.108c.027.022.047.05.058.083.023.025.05.045.08.06.097.088.2.17.31.246.055.035.136.042.168.108.017.03.02.077.037.106s0 .02.015.02c.015.003.02 0 .027 0 .01.015.018.03.026.045.005.036.02.07.04.1.03.017.08 0 .102.033.057.034.11.073.158.12.072.057.084.16.026.233s-.162.083-.234.025v.004z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M9.904 14.6c.17-.346.448-.626.794-.796.32-.16.652-.29.996-.383.662-.207 1.33-.347 1.875-.684.267-.173.502-.394.69-.652.185-.274.323-.577.407-.896.173-.652.243-1.327.208-2l.167.042c-.47.67-1.196 1.042-1.896 1.375-.713.29-1.41.622-2.083.994-.313.186-.595.42-.835.693-.25.287-.502.577-.727.883-.225.31-.42.643-.58.992-.172.312-.253.665-.235 1.02.01.09-.053.17-.14.183s-.172-.044-.19-.13c-.028-.424.065-.846.27-1.218.173-.357.376-.7.608-1.02.227-.322.475-.628.742-.918.27-.3.588-.557.94-.758.688-.366 1.396-.693 2.12-.98.348-.147.683-.322 1.003-.522.154-.1.3-.21.435-.333.13-.123.24-.263.333-.416.043-.067.123-.1.2-.083s.138.082.148.16c.1.71.04 1.43-.17 2.114-.112.342-.27.668-.47.97-.087.16-.2.305-.335.428-.13.13-.273.245-.428.344-.308.172-.634.312-.97.417-.326.127-.657.233-.984.327-.322.087-.635.206-.933.354-.278.133-.506.352-.65.625-.038.083-.137.12-.22.082s-.122-.137-.084-.22l-.003.01z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M13.715 15c.343-.076.673-.204.977-.38.304-.18.583-.395.833-.643.253-.247.47-.527.648-.833.195-.298.327-.63.39-.98l.19.155c-.23.094-.47.175-.71.24-.237.07-.477.124-.717.182-.477.12-.956.237-1.444.31h-.027c-.388-.022-.778.03-1.146.156-.364.128-.704.31-1.01.542-.335.217-.654.458-.955.72-.148.13-.287.268-.417.416-.06.07-.112.145-.158.225-.037.058-.057.123-.058.19.032.066.02.144-.032.195s-.13.064-.193.033c-.065-.032-.103-.1-.094-.172v-.02c-.003-.137.034-.272.108-.386.057-.095.12-.186.193-.27.136-.16.282-.312.438-.453.15-.142.314-.27.472-.398s.335-.234.504-.35c.343-.244.722-.434 1.123-.562.408-.128.838-.176 1.266-.142h-.046c.477-.06.95-.16 1.41-.294.23-.07.456-.148.68-.233s.45-.164.68-.236h.025c.066-.02.138-.004.19.043s.07.12.054.186c-.112.366-.255.722-.43 1.063-.202.325-.442.624-.715.892-.07.065-.13.14-.196.208l-.21.196-.232.17-.246.15c-.335.195-.7.332-1.08.405-.086.01-.165-.048-.182-.132s.032-.167.114-.193h.002zM3.698 16.42c-.143.03-.292.022-.43-.022l-.05-.023-.022-.025c-.007-.006-.015-.01-.023-.012-.03-.012-.067-.017-.098-.03-.067-.016-.12-.086-.18-.107-.13-.034-.274-.034-.418-.062-.034-.003-.067-.013-.098-.03-.028-.02-.055-.045-.082-.066-.063-.025-.13-.043-.196-.054-.09-.014-.152-.098-.14-.19s.1-.15.19-.138h.02l.068.02.188.05c.03.013.06.033.08.06.025.02.055.034.086.043.12.05.242.086.37.11.064 0 .136-.02.19.023s.05.058.078.077c.03.02.012.012.02.01s.02-.01.026 0c.015.007.03.015.044.025.024.023.055.038.087.044.03 0 .066-.042.095-.033.06-.01.12-.01.18 0h.024c.08.015.136.088.132.17s-.068.15-.15.158l.006.002zM1.608 7.662c.363.37.844.648 1.28.988.11.085.22.175.328.27.054.045.108.093.16.143s.092.117.142.17c.12.115.205.26.25.418.02.103.002.21-.052.3-.045.072-.107.134-.18.178-.098.072-.177.165-.232.273-.065.117-.114.24-.146.37-.055.266-.087.535-.096.806-.014.546.007 1.092.063 1.635.005.07-.034.137-.097.166s-.14.015-.188-.035c-.092-.093-.173-.197-.26-.293-.085-.1-.176-.194-.27-.283-.19-.18-.376-.365-.572-.54-.044-.04-.064-.1-.052-.158s.055-.106.11-.124c.058-.018.12-.005.164.035l.012.01.567.544c.095.09.184.186.278.278s.17.208.26.296l-.29.133c-.035-.56-.035-1.123 0-1.683.02-.284.062-.566.127-.844.03-.147.073-.29.125-.43.057-.163.155-.306.285-.418l.027-.023.012-.014.027-.02c.01-.01.03-.022.032-.03s.027-.023.027-.056c-.004-.046-.016-.092-.036-.133-.03-.053-.064-.104-.102-.152-.04-.05-.104-.077-.15-.125s-.094-.094-.144-.14c-.1-.09-.208-.188-.308-.27-.11-.085-.227-.16-.352-.22-.12-.07-.23-.156-.346-.237-.236-.163-.454-.35-.65-.56-.042-.068-.03-.156.028-.21s.147-.06.212-.013l.004.004z" } }), _vm._v(" "), _c("path", { attrs: { fill: "none", stroke: "#d6dbeb", "stroke-width": ".417", "stroke-linecap": "round", "stroke-linejoin": "round", d: "M10.99 7.917c.417.11.833-.088 1.185-.338s.654-.56 1.042-.72l.392 1.287c.164.544.316 1.183-.022 1.64-.18.21-.408.376-.662.485-1.042.54-1.677 1.154-2.708 1.694" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", opacity: ".4", d: "M7.46 7.223c-.23.45-.394.932-.487 1.43-.092.66.065 1.326.14 1.99.208 1.732-.152 3.476-.5 5.187.723-.804.813.465.977-.604.085-.548.67-3.244.59-3.794l-.644-4.396M11.32 7.95c.128.607.4 1.175.79 1.656.046.065.107.116.178.15.073.02.15.025.225.015.256-.01.51.055.73.184-.785.24-1.52.62-2.168 1.123l.03-2.58c0-.14.022-.31.15-.368M3.258 10.27c-.024.4-.077.797-.158 1.188v.03c-.05.236-.106.474-.17.71s-.132.51-.207.76l-.87-.916-.11-1.28.29.14c.04.025.084.034.128.028.074-.02.09-.113.1-.185.066-.58.344-1.112.78-1.498.026-.03.063-.047.102-.048.063 0 .087.084.094.15.034.305.042.613.023.92z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M17.708 15.283c-.06.08-.15.133-.248.15-.07.01-.14.014-.208.01-.113 0-.225.007-.337.02l-.698.053c-.465.035-.93.052-1.396.112-.232.025-.464.06-.697.073l-.7.036c-.467.02-.93.08-1.396.13l-2.1.224c-.23.027-.465.052-.698.063l-1.39.096-1.395.153c-.93.073-1.875.117-2.798.19l-.348.03c-.11 0-.22.028-.336.047-.12.022-.24.038-.363.048-.062.003-.125.003-.19 0-.078.005-.158-.007-.232-.035-.05-.023-.093-.058-.125-.102-.025-.032-.046-.068-.063-.105-.027-.067-.045-.137-.052-.208-.015-.13 0-.252-.017-.358l-.034-.34c-.012-.128-.012-.245-.012-.36 0-.234 0-.47-.025-.703s-.072-.462-.09-.696l-.114-1.397c-.07-.93-.14-1.865-.223-2.796-.044-.465-.08-.93-.094-1.4-.01-.468-.047-.934-.107-1.398-.075-.464-.09-.932-.12-1.4s-.047-.932-.084-1.4l-.072-.686-.035-.352C.88 2.85.903 2.71.97 2.592c.054-.062.128-.1.21-.108.06-.01.122-.015.184-.017.115 0 .225-.015.344-.023l2.096-.175 1.398-.107c.93-.08 1.858-.208 2.788-.302s1.852-.193 2.783-.276l1.4-.09c.467-.025.93-.094 1.396-.137.926-.085 1.845-.275 2.797-.267h.11l.042.096c.11.292.17.6.176.913 0 .147.017.287.03.428l.045.435.043.875.02.438c0 .146.024.292.036.435l.082.872.048.875c.023.292.073.58.108.87s.044.58.065.872c.02.29.03.582.052.874s.035.583.073.873l.094.87c.03.29.04.584.06.874.027.584.106 1.163.175 1.743.04.29.058.58.087.87.015.14.023.303.046.418.016.08.025.16.03.24 0 .05-.004.102-.016.15-.01.064-.034.123-.07.176zm-.266-.208c.033-.025.027-.156 0-.298s-.027-.298-.044-.448c-.023-.293-.054-.582-.07-.874-.034-.583-.062-1.167-.143-1.746-.03-.29-.077-.58-.1-.87l-.058-.874c-.012-.292-.054-.58-.08-.87s-.068-.58-.105-.872c-.037-.292-.073-.58-.085-.87s0-.586-.025-.878c-.025-.292-.083-.58-.106-.87s-.033-.582-.044-.874c-.02-.583-.137-1.16-.185-1.742l-.03-.438c-.01-.148-.014-.3-.018-.444.007-.273-.032-.546-.118-.806l.144.092c-.23.012-.458.033-.69.058s-.46.056-.694.073c-.465.046-.938.077-1.402.11s-.933.058-1.398.113c-.465.054-.927.13-1.392.177-.93.088-1.863.17-2.794.227s-1.875.075-2.8.167c-.465.043-.93.107-1.394.155s-.93.102-1.394.144l-.698.064-.17.023c-.063.003-.125.003-.186 0-.07-.01-.14-.002-.208.02-.013.022-.02.047-.023.072-.004.05-.004.102 0 .153l.015.344c0 .233.025.467.044.7.063.933.323 1.848.288 2.79-.007.47.037.937.13 1.396.08.463.132.93.157 1.4.056.933.135 1.865.208 2.796l.108 1.403c.02.233 0 .47.02.702s.053.465.084.696c.03.232.046.457.054.707v.344c0 .045.008.09.02.132.006.026.02.05.038.07.04.015.08.023.12.022.056.003.11.003.166 0 .112-.008.224-.022.335-.042.114-.02.232-.037.355-.048l.35-.027c.93-.073 1.863-.165 2.794-.244l1.397-.112 1.394-.16c.932-.09 1.866-.14 2.797-.207.467-.033.933-.063 1.396-.123l.696-.083c.23-.03.466-.035.7-.052.466-.023.93-.088 1.397-.133l.7-.07c.12-.014.24-.023.363-.026.046.005.093.005.14 0 .02-.005.037-.02.044-.042v-.008z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#fff", d: "M21.74 19.546c-.076.064-.17.103-.27.113-.27 0-.542-.028-.807-.09L5.336 18.01c-.563-.054-.548-.304-.496-.808s.104-.96.154-1.44l.54-5.06.604-5.67c.142-1.337.294-2.676.427-4.014.03-.32.042-.587.4-.637.344-.02.69.004 1.03.066L9.558.61 19.604 1.63c.692.07 1.38.146 2.07.22.58.064 1.22 0 1.782.16.417.116.183.497.152.807l-.068.676-.208 1.994-.542 5.344-.5 4.844c-.11 1.08-.23 2.16-.348 3.242-.02.248-.046.49-.204.627z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M21.906 19.735c-.104.088-.23.145-.367.165-.112.014-.224.014-.334 0-.208-.023-.383-.07-.54-.092-.35-.038-.712-.083-1.07-.13s-.714-.093-1.074-.112c-.36-.008-.72-.038-1.077-.09-.356-.048-.713-.12-1.07-.154s-.72-.06-1.078-.092l-2.158-.144c-.36-.03-.72-.052-1.078-.094s-.715-.094-1.07-.146c-.357-.052-.716-.092-1.076-.12s-.72-.032-1.08-.066c-.357-.033-.712-.08-1.07-.12l-1.073-.14c-.358-.047-.715-.1-1.07-.14l-.27-.032c-.104-.01-.206-.03-.306-.058-.133-.037-.25-.116-.335-.225-.073-.11-.11-.24-.11-.373.002-.19.015-.38.04-.57.017-.178.03-.358.042-.54.017-.36.037-.72.08-1.076s.14-.71.18-1.07c.024-.178.035-.358.033-.54.003-.18.016-.36.04-.54l.248-2.147c.088-.716.173-1.432.244-2.15s.137-1.432.272-2.143c.06-.356.123-.71.152-1.07s.023-.724.067-1.08c.074-.717.21-1.427.303-2.14.054-.356.08-.717.117-1.075l.04-.53c.01-.096.028-.19.056-.282.033-.114.107-.213.208-.275.095-.053.2-.084.308-.09.096-.008.192-.008.288 0 .188.01.37.04.546.062L8.933.41c.717.078 1.433.15 2.148.243.36.04.718.08 1.076.115l1.08.075c.72.042 1.44.094 2.155.15s1.436.12 2.155.18c.358.03.717.068 1.075.114l1.07.167.537.065.537.047c.356.033.725.058 1.07.08s.707 0 1.086.018c.196.01.39.036.58.08.157.03.296.12.388.25.08.136.107.298.073.453-.02.112-.05.208-.074.28l-.027.107s-.016.085-.02.127c-.023.18-.044.358-.054.538l-.083 1.077c-.027.358-.06.72-.113 1.075s-.127.71-.173 1.07c-.11.712-.096 1.437-.23 2.147-.062.354-.098.713-.107 1.074-.003.36-.03.72-.077 1.077-.102.716-.208 1.428-.28 2.145s-.086 1.44-.21 2.152c-.05.356-.103.713-.13 1.073s-.044.72-.07 1.08c-.028.357-.06.718-.093 1.076l-.054.542c-.01.105-.03.21-.06.31-.036.126-.104.24-.198.333zm-.33-.375c.074-.097.113-.214.113-.335l.06-.53c.04-.36.072-.718.128-1.074.12-.71.196-1.427.223-2.147 0-.36.043-.72.084-1.077l.144-1.07c.075-.718.098-1.44.135-2.16.022-.36.074-.718.156-1.07.074-.354.113-.714.116-1.075 0-.724.208-1.426.25-2.145.033-.358.03-.72.056-1.08s.07-.718.117-1.076c.047-.36.107-.713.147-1.072.025-.18.042-.358.056-.538l.01-.14c0-.058.015-.108.023-.156.02-.096.038-.18.044-.248.003-.027.003-.054 0-.08 0 .01 0 0-.077-.028-.16-.045-.323-.076-.488-.094-.34-.04-.7-.042-1.075-.08s-.717-.1-1.08-.134l-.537-.06-.537-.042-1.08-.042-.54-.037-.54-.055c-.716-.075-1.432-.142-2.147-.235s-1.432-.167-2.143-.294c-.71-.13-1.427-.214-2.148-.248C10.327.9 9.61.844 8.892.786 8.53.756 8.183.72 7.813.684 7.628.664 7.455.64 7.288.626c-.08-.004-.157-.004-.234 0-.052 0-.104.008-.152.027-.02.013-.035.02-.06.07-.025.068-.042.138-.052.21l-.083.532c-.05.356-.097.715-.113 1.075-.048.72-.027 1.446-.11 2.163-.042.358-.167.706-.223 1.062-.046.36-.065.72-.058 1.08.005.362-.012.723-.05 1.082l-.14 1.07c-.098.716-.18 1.43-.256 2.147l-.246 2.146c-.017.18-.046.357-.085.533-.045.182-.075.366-.09.552-.043.358-.026.72-.068 1.08s-.098.714-.154 1.07c-.027.18-.058.356-.08.535-.026.17-.042.34-.05.513 0 .16.03.198.172.248.165.037.333.062.502.074.358.042.717.073 1.075.108.717.073 1.435.133 2.15.208s1.43.17 2.152.208c.36.02.72.03 1.078.065s.717.077 1.075.115l2.146.262c.357.04.714.092 1.072.123s.72.038 1.08.06c.36.02.717.06 1.072.12.356.05.717.068 1.075.1s.714.05 1.08.086c.208.022.375.066.527.076.114.02.23-.005.327-.07l.002.003z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", stroke: "#d6dbeb", "stroke-width": ".417", "stroke-linecap": "round", d: "M18.333 8.635c-.37-.417-1.008-.583-1.59-.583-.156.014-.314 0-.465-.042-.162-.09-.312-.198-.446-.325-.335-.2-.738-.247-1.11-.133-.373.09-.715.26-1.083.358-.123.04-.253.052-.38.038-.158-.027-.296-.12-.452-.158-.344-.083-.723.123-1.042 0-.15-.088-.296-.185-.435-.29-.453-.238-.995.07-1.4.37 0 .007 8.416.786 8.403.766z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#f8fafc", d: "M13.68 7.773c-.252-.3-.427-.66-.51-1.042-.06-.232-.07-.475-.026-.712.098-.458.442-.785.688-1.17.188-.293.165-.95.385-.982s.08.625.223.888c.092.165.22.3.31.465.178.37.217.792.108 1.19s-.27.774-.483 1.126z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#f8fafc", d: "M15.154 7.5c.044-.438.61-.72.944-1.077.417-.454.47-1.042.36-1.612s-.294-1.693-.475-1.666c-.18.027-.177.69-.775 1.348-.28.308-.304.756-.27 1.154 0 0-.057 1.358-.526 1.875zM13.056 6.577L11.78 4.97c-.147.322-.23.67-.24 1.026.007.385.173.75.46 1.008.257.238.793.485.955.758z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#f8fafc", d: "M15.708 7.596c.308-.43 1.106-.19 1.638-.467.477-.25.658-.884.704-1.33-.454.48-1.506.377-2.083.775 0 0-.896.673-.908 1.117z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#f8fafc", d: "M17.125 8.065c.61-.014 1.152-.387 1.383-.95-.384.077-.777.105-1.17.083-.31-.084-.64-.053-.93.088-.5.237-.783.423-.783.558zM11.13 7.5c-.24-.224-.378-.535-.382-.862.365.134.742.23 1.127.283 0 0 .752.745 1.22.834z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#e8eef5", d: "M13.467 5.27c.38-.176-.625-.786-.688-1.2-.257.395-.43.836-.51 1.3l.755 1.126s.1-1.07.442-1.225z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#fff", d: "M15.242 4.504c.06.023.12.053.173.09.01.008.023.013.035.017.02.005.04.005.058 0 .11.006.218-.034.298-.11-.003.008-.003.017 0 .026 0-.022.01-.043.03-.056.02-.012.016 0 .022-.01h.027c.02 0 .042.005.063.01.032.01.063.02.094.033.033.014.065.032.094.054.025.02.043.046.05.077v.02c0-.012-.004-.023-.01-.032-.01-.016-.028-.028-.048-.03h-.017c.052-.015.1-.04.14-.074l.076-.052c.033-.025.072-.043.113-.052.045-.003.085.03.09.077s-.032.087-.078.09c0 0-.023.014-.042.028l-.07.048c-.022.017-.047.035-.072.05-.03.02-.063.037-.098.046h-.023c-.014.003-.028.003-.042 0-.028-.004-.052-.02-.067-.044-.008-.013-.013-.027-.015-.042 0 .02 0 0 0 0-.018-.014-.038-.026-.058-.035l-.07-.028c.008-.003.016-.007.024-.013.02-.016.032-.04.032-.066-.002.017-.007.033-.015.048-.003.006-.008.012-.013.017-.01.01-.02.018-.03.026-.054.033-.107.07-.157.108-.023.024-.055.036-.088.033h-.055s-.017 0-.025.013c-.01.002-.018.002-.027 0-.036 0-.073-.003-.108-.01-.04-.003-.08-.012-.117-.027-.043-.03-.088-.057-.135-.08-.037-.02-.054-.064-.04-.103s.06-.06.1-.05l-.002.006zM13.47 5.27c.058.016.113.036.166.06.032.015.067.022.102.024.046.025.092 0 .148 0s.102-.033.142-.056h.01s-.025.042-.02.048c0-.03.018-.057.045-.07h.017c.022-.002.045-.002.067 0l.085.022c.03.01.06.02.088.033.022.01.04.026.056.045.01.01.016.024.02.038v.01c.002-.007.002-.014 0-.02-.006-.014-.017-.024-.03-.03-.01-.003-.02-.003-.03 0 .046-.003.092-.017.132-.042.055-.032.115-.056.177-.072.04-.006.077.017.088.055s-.007.078-.042.095l-.04.017s-.074.03-.116.054l-.075.034c-.032.015-.066.023-.1.025h-.024c-.018-.002-.036-.007-.052-.016-.023-.014-.04-.038-.046-.065.002.006.006.012.01.018l-.063-.027-.07-.02s-.034 0 0 0h.018c.032-.014.052-.046.05-.08 0 .026-.01.05-.03.07l-.022.017-.024.012c-.055.02-.107.045-.156.076-.046.042-.123-.015-.18.01s-.064-.01-.097-.017c-.033-.007-.075 0-.104-.016-.045-.02-.09-.04-.136-.056-.044-.013-.07-.06-.057-.103s.06-.07.103-.057l-.008-.02zM11.513 6.192c.05-.004.1-.004.148 0 .03.003.057.003.084 0 .017-.01.042 0 .058-.01.018-.013.04-.02.06-.025.052 0 .07-.052.096-.08v-.01c-.004.012-.004.026 0 .04v.01c-.014-.03-.006-.064.02-.084.017-.01.037-.015.057-.02l.073-.01c.026-.003.05-.003.077 0 .02-.002.04.003.058.01.012.006.022.013.03.022 0 0 .02.023 0 .01-.01-.014-.024-.023-.04-.027-.013-.004-.026-.004-.038 0 .036-.013.068-.035.092-.065.035-.04.076-.078.12-.108.034-.02.076-.012.1.018s.023.073-.004.1l-.108.11c-.034.04-.077.072-.125.093h-.02c-.02.005-.04.005-.057 0s-.035-.016-.048-.03c-.01-.016 0 0 0 0l.017.01h-.115c-.044.014.044-.03 0 .012s-.077.058-.1.106c-.016.022-.042.033-.07.03-.032 0-.047.024-.074.024l-.08.013c-.028 0-.057.03-.086.026s-.08 0-.12 0c-.043 0-.08-.032-.084-.074s.023-.08.064-.09h.015zM11.446 5.958c.047-.008.094-.013.142-.015.03-.002.057-.005.085-.01.017-.01.042 0 .058 0 .02-.01.04-.018.06-.02.053 0 .074-.05.1-.076v-.01c-.005 0-.01.003-.016.006-.005.013-.005.028 0 .042-.017-.03-.007-.07.023-.09.018-.01.037-.017.056-.02l.07-.016h.076c.017-.005.035-.005.053 0 .01.002.02.007.03.014l.022.02s-.015-.02-.03-.022c-.053-.012-.047 0-.05 0 .037-.01.07-.03.095-.058.036-.038.077-.07.12-.1.035-.018.078-.008.1.023s.022.074-.005.102l-.033.03s-.05.042-.077.07c-.035.04-.08.068-.127.086-.027.012-.058.012-.085 0-.017 0-.044-.035-.037-.027l.017.014H12.096h-.115c.037-.023.05-.07.028-.108.006.018.006.038 0 .056-.002.01-.005.02-.01.03l-.012.014-.017.015c-.038.036-.078.053-.103.1-.017.02-.043.028-.07.022-.03 0-.045.025-.072.02l-.077.01c-.025 0-.054.032-.08.028s-.082 0-.12 0c-.043 0-.08-.03-.085-.073s.022-.082.064-.092l.02.033zM17.427 6.85c-.013-.04-.023-.078-.03-.12v-.018c.003-.01.003-.02 0-.03 0-.038-.03-.047-.04-.09s-.053-.045-.078-.057c.016.008.036.008.053 0-.024.016-.055.016-.08 0l-.014-.013c-.01-.014-.02-.03-.026-.046 0-.02-.015-.037-.02-.058s-.013-.043-.016-.065c-.005-.018-.005-.038 0-.056.004-.012.01-.023.02-.033l-.016.017c-.008.014-.012.03-.01.045-.003.01-.003.022 0 .033 0 0-.03-.048-.063-.058-.043-.02-.08-.047-.114-.08-.02-.024-.024-.058-.01-.086s.042-.047.074-.048c.032 0 .06.017.075.045 0 0 .038.024.065.036.04.02.073.047.098.083l.01.016c.008.015.013.03.015.048 0 .018-.005.035-.015.05l-.017.02c.007-.008.01-.016.013-.024 0-.017 0 0 0 0v.04l.01.042s.012.023 0 0l-.015-.013c-.03-.022-.07-.022-.098 0 .022-.017.05-.022.077-.016h.023l.02.01c.04.02.06.05.103.058s.025.088.065.108l.02.067c0 .02.036.044.036.07s.012.062.017.09c.01.042-.017.084-.06.096s-.085-.012-.1-.053l.023-.01zM17.763 7.877c-.024-.033-.044-.068-.063-.104v-.017c-.004-.01-.01-.02-.017-.027 0-.04-.042-.036-.063-.074s-.065-.03-.094-.033c0 0 .046-.012.05-.025-.018.024-.05.034-.077.025h-.018c-.014-.01-.027-.023-.038-.037l-.037-.048c-.013-.018-.024-.037-.033-.056-.005-.018-.005-.038 0-.056-.002-.012-.002-.025 0-.038v.02c-.005.014-.005.03 0 .045.003.01.01.02.02.03-.02-.023-.05-.036-.078-.04-.045-.007-.09-.02-.13-.043-.034-.03-.038-.083-.008-.118s.083-.04.118-.01c0 0 .044 0 .073.016.043.006.084.024.118.052l.015.012c.012.012.02.026.027.042.01.024.01.05 0 .075.002-.01.002-.018 0-.026 0-.015 0 0 0 0 .005.012.01.024.017.035l.023.037s.02.02 0 0h-.02c-.033-.01-.07.002-.09.03.016-.02.04-.033.068-.034h.044c.044 0 .07.03.117.025s.047.077.093.085l.04.058c.012.02.048.032.054.055s.03.056.042.08c.02.04.008.09-.03.113s-.088.013-.113-.024l-.012-.027zM17.467 7.98c-.026-.04-.05-.078-.07-.12-.01-.02-.022-.04-.036-.058 0-.04-.05-.042-.076-.08s-.075-.034-.108-.04c0 0 .042 0 .05-.026s-.038.038-.067.025c-.03-.01-.018 0-.026 0-.016-.01-.03-.024-.042-.04l-.042-.055c-.014-.02-.027-.042-.037-.065-.01-.018-.013-.038-.012-.058v-.038c.018-.038-.016.027 0 .05.004.01.01.022.02.03-.025-.026-.057-.042-.092-.047-.05-.01-.1-.028-.144-.052-.035-.03-.04-.083-.01-.118s.084-.04.12-.01c0 0 .053.018.086.024.05.01.095.03.133.06l.017.016c.012.012.02.027.027.044.017.03-.02.098 0 .065.002-.008.002-.015 0-.023 0-.012 0 0 0 0l.02.044.028.044s.02.02 0 0 .012 0-.027-.01c-.04-.01-.09.033-.08.03s.072-.04.07-.034h.048c.042.018.086.03.13.033.026 0 .047.017.055.04 0 .014.01.028.026.032s.02.015.03.02c.007.007.028.043.045.063s.05.035.06.06c.007.025.034.067.05.098.018.038.006.085-.03.108s-.084.016-.11-.017l-.002.006zM17.06 8.102c-.026-.038-.05-.077-.07-.12-.01-.02-.022-.04-.037-.057 0-.04-.052-.042-.077-.08s-.075-.034-.108-.04c0 0 .042 0 .05-.026s-.037.036-.067.024c-.028-.012-.016 0-.024 0-.016-.01-.03-.025-.042-.04l-.042-.056c-.014-.02-.027-.042-.038-.065-.01-.018-.013-.038-.012-.058-.002-.012-.002-.025 0-.037.017-.038-.017.027 0 .05.003.01.01.02.02.03-.026-.026-.058-.042-.093-.047-.05-.01-.1-.027-.145-.05-.035-.03-.04-.084-.01-.12s.084-.038.12-.008c0 0 .053.017.086.023.05.01.096.03.134.06l.017.015c.013.012.022.027.028.044.017.03-.02.098 0 .065.002-.01.002-.016 0-.024 0-.013 0 0 0 0l.02.044.028.044s.02.02 0 0 .012 0-.027-.01c-.04-.01-.09.033-.082.03s.073-.04.07-.034h.05c.04.018.085.03.13.033.025 0 .046.018.054.042 0 .012.01.027.025.03s.02.016.03.022c.007.006.028.042.045.063s.05.035.058.06c.008.025.035.067.05.098.02.038.007.085-.03.108s-.083.015-.11-.018v.006zM17.135 7.065c-.013-.04-.023-.078-.03-.12v-.018c.003-.01.003-.02 0-.03 0-.04-.03-.047-.04-.09s-.053-.045-.078-.057c.017.008.037.008.054 0-.023.016-.054.016-.078 0l-.015-.012c-.01-.014-.02-.03-.025-.046 0-.02-.015-.038-.02-.058s-.013-.043-.016-.065c-.005-.02-.005-.04 0-.057.004-.012.01-.023.02-.033l-.016.017c-.008.013-.012.028-.01.044-.003.012-.003.023 0 .034 0 0-.03-.048-.063-.058-.042-.02-.08-.047-.113-.08-.02-.037-.007-.084.03-.107s.083-.016.11.017c0 0 .036.023.064.035.04.02.073.047.098.083l.01.017c.008.015.013.03.015.048 0 .018-.004.035-.014.05L17 6.6c.005-.008.01-.016.01-.024 0-.017 0 0 0 0v.04l.01.042s.013.023 0 0l-.014-.012c-.03-.02-.07-.02-.098 0 .022-.016.05-.02.077-.015h.023l.02.01c.04.022.06.05.103.06s.026.087.066.107l.02.067c0 .02.036.044.036.07s.012.06.017.09c.008.042-.02.084-.06.096s-.087-.012-.102-.053l.023-.01zM16.908 7.185c-.013-.04-.023-.078-.03-.12v-.018c.003-.01.003-.02 0-.03 0-.038-.03-.047-.04-.09s-.053-.045-.078-.057c.017.008.037.008.054 0-.024.016-.055.016-.08 0l-.014-.013c-.01-.014-.02-.03-.025-.046 0-.018-.015-.037-.02-.057s-.013-.043-.016-.065c-.006-.018-.006-.038 0-.056.003-.012.01-.023.018-.033l-.015.016c-.008.013-.012.028-.01.044-.003.01-.003.022 0 .033 0 0-.03-.048-.063-.058-.042-.02-.08-.047-.113-.08-.02-.024-.024-.058-.01-.086s.042-.048.074-.05c.033 0 .062.018.076.046 0 0 .038.023.065.035.04.02.074.048.1.084l.01.017c.007.016.012.032.014.05 0 .017-.005.034-.015.05l-.018.018c.006-.007.01-.015.012-.023 0-.017 0 0 0 0v.04l.01.042s.012.023 0 0l-.015-.013c-.03-.02-.07-.02-.1 0 .023-.016.05-.02.078-.015h.023l.02.01c.04.02.06.05.104.057s.025.088.065.108l.02.067c0 .02.035.044.035.07s.013.062.017.09c.01.042-.018.084-.06.096s-.086-.012-.1-.053l.022-.01zM16.11 7.5c-.013-.04-.023-.078-.03-.12v-.018c.003-.01.003-.02 0-.03 0-.04-.03-.047-.04-.09s-.053-.045-.078-.057c.017.008.037.008.054 0-.024.016-.055.016-.08 0l-.014-.013c-.01-.014-.02-.03-.025-.046 0-.02-.015-.038-.02-.058s-.013-.043-.016-.065c-.004-.018-.004-.038 0-.056.005-.012.01-.023.02-.033l-.015.017c-.008.014-.012.03-.01.045-.003.01-.003.022 0 .033 0 0-.03-.048-.063-.058-.042-.02-.08-.047-.113-.08-.02-.024-.025-.058-.01-.086s.04-.047.073-.048c.032 0 .06.017.075.045 0 0 .037.024.065.036.04.02.073.047.098.083l.01.016c.01.015.014.03.016.048 0 .018-.005.035-.015.05l-.016.02c.006-.008.01-.016.012-.024 0-.017 0 0 0 0v.04l.01.042s.012.023 0 0l-.015-.012c-.028-.02-.068-.02-.097 0 .022-.016.05-.02.077-.015h.023l.02.01c.04.02.06.05.103.058s.025.088.065.108l.022.068c0 .02.035.044.035.07s.012.062.017.09c.01.042-.018.084-.06.096s-.086-.012-.1-.053l.022-.01zM11.762 6.592c.05-.004.1-.004.148 0 .028.003.056.003.083 0 .017-.01.042 0 .058-.01.02-.013.04-.02.06-.025.053 0 .072-.052.097-.08v-.01c-.004.012-.004.026 0 .04v.01c-.014-.03-.006-.064.02-.084.018-.016.04-.028.064-.035l.074-.013c.026-.002.05-.002.077 0 .02 0 .04.004.06.013.01.005.02.012.03.02 0 0 .02.024 0 .01-.01-.013-.025-.022-.042-.026-.012-.004-.025-.004-.037 0 .037-.013.07-.035.093-.065.035-.04.076-.078.12-.108.034-.02.076-.013.1.017s.023.073-.004.1l-.11.11c-.033.04-.076.072-.124.093h-.02c-.02.005-.04.005-.057 0s-.036-.016-.05-.03c-.01-.016 0 0 0 0 .006.004.01.007.018.01h-.115c-.044.014.044-.03 0 .012s-.077.058-.1.106c-.016.022-.042.033-.07.03-.032 0-.047.024-.074.024l-.082.012c-.027 0-.056.03-.085.025s-.08 0-.12 0c-.043 0-.08-.033-.084-.075s.022-.08.063-.09l.008.018zM12.11 6.913c.05-.004.1-.004.148 0 .028.003.056.003.083 0 .018-.01.043 0 .06-.01.017-.013.038-.02.06-.025.05 0 .07-.052.095-.08v-.01c-.004.012-.004.026 0 .04v.01c-.014-.03-.006-.064.02-.084.017-.01.037-.015.057-.02l.073-.012c.026-.002.05-.002.077 0 .02 0 .04.004.058.013.012.005.022.012.03.02 0 0 .02.024 0 .01-.01-.013-.024-.022-.04-.026-.013-.005-.026-.005-.038 0 .036-.014.068-.036.092-.066.035-.04.076-.078.12-.108.03-.033.08-.037.11-.008s.038.078.01.11l-.11.108c-.033.04-.076.073-.124.094h-.02c-.02.005-.04.005-.057 0s-.035-.016-.048-.03c-.01-.016 0 0 0 0l.017.01h-.115c-.044.014.044-.03 0 .01s-.077.06-.1.107c-.016.022-.042.033-.07.03-.032 0-.047.024-.074.024l-.08.014c-.028 0-.057.03-.086.025s-.08 0-.12 0c-.043 0-.08-.033-.084-.075s.023-.08.064-.09l-.008.018zM13.358 5.725c.07.015.14.036.208.063.05.017.104.028.158.03.03 0 .063.02.094 0 .033-.003.067-.003.1 0 .068.003.134-.015.192-.05h.02l-.016.01c-.01.015-.014.032-.01.05-.004-.014-.004-.028 0-.04.01-.018.024-.03.042-.036.02-.004.038-.004.056 0h.03l.105.02c.037.01.073.02.108.032.023.007.044.02.063.033.018.013.032.03.04.052v-.01c-.003-.01-.008-.016-.015-.022-.046-.033-.042-.015-.04-.02.062 0 .124-.013.18-.04.072-.028.146-.05.222-.064.04 0 .075.03.08.07s-.017.08-.055.093h-.025c-.058.014-.115.032-.17.054-.07.032-.146.05-.222.053-.033.003-.066-.008-.09-.03l-.02-.028V5.93v.017c-.006-.008-.016-.014-.026-.017l-.088-.03-.093-.024h-.02.012c.028 0 .054-.018.068-.044.005-.016.005-.032 0-.048.003.024-.003.047-.017.067-.004.008-.01.014-.018.02l-.02.01-.03.01c-.072.017-.142.042-.208.073-.035.014-.074.014-.108 0-.04-.015-.077.01-.112 0l-.113-.02c-.04.003-.08 0-.12-.01-.07-.03-.123-.045-.183-.064-.045-.012-.072-.057-.06-.102s.055-.072.1-.06v.016z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#fff", d: "M13.125 6.633c.07.015.14.036.208.063.05.017.104.028.158.03.032 0 .064.02.095 0 .033-.003.067-.003.1 0 .068.003.134-.015.192-.05h.02l-.016.012c-.01.014-.013.03-.01.048-.003-.013-.003-.027 0-.04.01-.017.025-.03.043-.035.02-.003.038-.003.056 0h.028l.106.022c.037.008.073.02.108.03.023.008.044.02.063.034.018.013.032.03.04.052v-.01c-.003-.008-.008-.015-.015-.02-.046-.034-.042-.016-.04-.02.062 0 .124-.014.18-.04.072-.03.146-.05.222-.065.03-.01.066 0 .088.024s.028.06.014.09-.044.05-.077.05h-.025c-.058.013-.115.03-.17.053-.07.03-.146.05-.222.052-.033.003-.066-.008-.09-.03l-.02-.028V6.84v.016c-.006-.008-.016-.014-.026-.017l-.088-.032-.092-.023h-.02.012c.022-.007.04-.023.05-.044.005-.015.005-.03 0-.047.003.024-.003.047-.017.067l-.02.02-.02.01-.03.01c-.072.016-.142.04-.208.072-.035.014-.074.014-.108 0-.04-.015-.077.01-.113 0l-.09.002c-.042.002-.082-.002-.122-.013-.07-.028-.123-.043-.183-.06-.045-.012-.072-.057-.06-.102s.055-.072.1-.06l-.002-.005zM13.156 6.158c.075.015.15.036.22.063.055.017.11.027.166.03.017-.002.033-.002.05 0 .017.015.033 0 .05 0 .035-.004.07-.004.106 0 .073.004.145-.014.208-.05.02 0 .025-.01.03-.02.043-.02.024 0 .032-.01h.073l.113.02c.038.008.076.02.113.03.023.008.045.018.065.032l.026.02c.008.01.014.02.02.03v-.017l-.038-.023c.065.008.132.004.196-.013.075-.03.154-.052.233-.066.04 0 .074.032.08.072s-.018.078-.057.09h-.025c-.063.014-.125.032-.185.055-.075.032-.155.05-.235.05h-.03c-.024-.002-.046-.015-.062-.034-.017-.02-.023-.044-.017-.027l.012.016c-.01-.008-.02-.014-.033-.017l-.098-.032-.1-.025h-.023c.01 0 .022-.005.03-.01.023-.014.037-.038.038-.065v-.023c.005.032-.006.064-.03.085l-.022.013h-.02l-.032.01c-.07.017-.14.04-.208.07-.037.015-.078.015-.115 0-.02 0-.04-.014-.06 0-.02.004-.04.004-.058 0l-.12-.02c-.04.002-.083-.002-.124-.013-.075-.03-.13-.046-.198-.065-.03-.007-.052-.028-.06-.057s-.003-.06.018-.08c.02-.023.05-.032.08-.025l-.006.004zM15.444 4.048c.054.023.105.053.152.09.015.01.01 0 .017.01.014.004.03.004.044 0 .02.013.04 0 .063 0 .024-.01.05-.016.075-.02.052 0 .085-.062.112-.09-.002.01-.002.016 0 .024 0 .03 0-.037.03-.052.017-.01.035-.014.053-.012s.038.006.056.012c.03.01.057.02.083.035.03.015.058.035.082.058.02.023.033.052.035.083 0-.02-.01-.037-.027-.048-.01-.017-.056-.02-.052-.017h-.012c.044-.015.084-.04.117-.074l.063-.052c.03-.027.064-.046.102-.056.03-.003.06.01.076.034s.02.056.008.083c-.012.027-.038.046-.068.05.02 0-.012.01-.027.024l-.056.047c-.04.04-.09.075-.143.098h-.05c-.026 0-.052-.007-.073-.023-.02-.018-.03-.042-.033-.07v.014c-.008-.01-.017-.022-.028-.03l-.056-.03h-.015c.017 0 .034-.003.047-.013.018-.012.03-.03.035-.052 0-.028 0-.01 0 0-.002.016-.007.03-.015.043-.007.01-.016.02-.025.03-.104.07-.15.168-.302.168-.07.002-.142-.01-.208-.036-.035-.03-.073-.055-.112-.077-.042-.02-.06-.068-.042-.11s.068-.06.11-.042l-.015.002zM15.223 5c.06.023.12.053.173.09.01.008.023.013.035.017.02.004.04.004.06 0 .11.007.216-.03.297-.106-.003.01-.003.02 0 .028 0-.022.01-.043.03-.056.02-.013.016 0 .022-.01h.026c.02 0 .042.005.063.01.03.01.062.02.093.033.033.014.065.032.094.054.025.018.043.045.05.076v.02c0-.012-.004-.023-.01-.032-.01-.016-.028-.028-.048-.03h-.018c.05-.015.1-.04.14-.074l.075-.052c.033-.025.072-.043.113-.052.046-.003.086.03.09.077s-.03.086-.077.09c0 0-.023.012-.042.027l-.068.048c-.023.017-.048.035-.073.05-.03.02-.064.037-.1.046h-.022c-.014.003-.028.003-.042 0-.028-.004-.052-.02-.067-.044-.01-.013-.014-.027-.016-.042 0 .02 0 0 0 0-.018-.014-.038-.026-.058-.035l-.07-.03c.008-.002.016-.006.024-.01.02-.016.033-.04.033-.066-.002.017-.007.033-.015.048-.003.006-.008.012-.013.017-.01.01-.02.02-.03.027-.054.032-.107.068-.157.107-.023.024-.055.036-.088.033h-.054s-.017 0-.025.013h-.024c-.036 0-.073-.003-.108-.01-.04-.003-.08-.012-.117-.027-.042-.03-.087-.057-.134-.08-.037-.02-.054-.064-.04-.103s.06-.06.1-.05h-.004z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#fff", d: "M14.965 6.133c.06.023.12.053.173.09.01.008.023.013.035.017.02.004.04.004.058 0 .112.005.22-.035.3-.113-.004.01-.004.018 0 .027 0-.022.01-.043.028-.056.02-.012.017 0 .023-.01h.028c.02 0 .042.005.063.01.033.01.064.02.095.033.033.015.065.033.094.055.024.02.042.046.05.077v.02c-.002-.012-.005-.023-.01-.032-.012-.016-.03-.028-.05-.03h-.016c.05-.015.1-.04.14-.074l.075-.052c.032-.025.07-.043.11-.052.047-.003.087.03.09.077s-.03.085-.076.09c0 0-.023.012-.042.026l-.07.048c-.022.017-.047.035-.072.05-.03.02-.063.037-.098.046h-.023c-.015.003-.03.003-.043 0-.028-.004-.052-.02-.067-.044-.008-.013-.013-.027-.015-.042 0 .02 0 0 0 0-.018-.014-.038-.026-.058-.035l-.077-.01c.01-.002.017-.006.025-.01.02-.016.033-.04.033-.066-.002.017-.007.033-.015.048-.003.006-.008.012-.012.017-.008.01-.018.018-.028.026-.055.033-.108.07-.158.108-.023.024-.055.036-.088.033h-.054s-.017 0-.025.012h-.027c-.036 0-.073-.004-.108-.01-.04-.004-.08-.013-.117-.028-.043-.03-.088-.057-.135-.08-.037-.02-.054-.064-.04-.103s.06-.062.1-.05l.004-.016zM15.08 5.346c.066.023.128.053.186.09.014.01.03.015.046.02.022.003.045.003.067 0 .118.006.236-.034.326-.11-.007.008-.012.02-.012.03-.002-.01-.002-.02 0-.03.008-.02.023-.033.042-.04h.025c.024 0 .047.003.07.01.034.008.067.02.1.032.035.014.07.03.1.052.026.017.045.042.056.07V5.476c-.01-.018-.024-.033-.044-.04h-.023c.055-.013.108-.038.153-.073l.083-.052c.036-.024.076-.04.12-.05.045 0 .082.037.082.083s-.037.083-.083.083c0 0-.03.015-.05.03l-.075.047c-.025.017-.052.035-.08.05-.033.02-.07.036-.107.044h-.027c-.016.004-.032.004-.048 0-.028-.008-.05-.03-.06-.056V5.52c0 .015 0 0 0 0-.02-.015-.043-.027-.067-.038-.045-.02-.128-.058-.087-.02-.06.03-.118.068-.173.107-.026.024-.06.035-.096.03h-.056s-.017.014-.027.014h-.003c-.038 0-.075-.004-.112-.012-.04-.003-.082-.012-.12-.027-.05-.03-.1-.058-.15-.08-.04-.018-.06-.063-.045-.104s.058-.063.1-.052l-.008.01z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#e8eef5", stroke: "#d6dbeb", "stroke-width": ".417", "stroke-linecap": "round", "stroke-linejoin": "round", d: "M16.58 5c.166.063.35.05.503-.04.147-.088.303-.158.467-.208l.058.538c.025.227.037.49-.13.644-.088.07-.19.118-.3.142-.447.135-.745.33-1.193.465.285-.066.344-.382.43-.662.073-.284.096-.577.068-.87" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M13.552 7.88c-.247-.28-.432-.61-.542-.966-.056-.18-.088-.37-.094-.558-.002-.296.084-.586.246-.833.06-.066.116-.136.17-.208l.312-.417c.208-.23.233-.573.373-.927.023-.053.06-.1.104-.14.032-.022.07-.036.107-.04.046-.002.09.014.125.045.044.045.073.103.083.165.01.046.017.093.02.14.008.166.028.33.06.494.01.032.023.062.04.09.022.033.044.066.068.098l.16.208c.117.153.202.328.25.515.05.183.066.374.046.563-.024.183-.068.363-.132.535-.114.337-.254.665-.417.98-.022.06-.076.098-.137.105s-.122-.023-.156-.075-.036-.118-.006-.173v-.012c.16-.293.29-.6.393-.92.047-.15.085-.307.112-.464.022-.156.014-.314-.023-.467-.032-.15-.095-.292-.185-.417l-.152-.208c-.027-.038-.052-.08-.077-.12-.03-.052-.05-.107-.065-.163-.033-.18-.05-.362-.054-.545-.004-.036-.01-.073-.016-.108 0-.027-.023-.054 0-.023.018.017.042.026.067.027.01.003.022.003.032 0l-.015.034c-.04.15-.066.3-.08.454-.016.096-.042.19-.078.28-.02.054-.047.104-.078.15l-.083.11c-.113.145-.245.26-.35.39-.03.03-.055.062-.078.097-.023.033-.033.075-.052.11-.042.067-.08.137-.115.208-.07.142-.106.298-.102.456.024.16.064.32.12.472.095.308.25.595.457.844.04.07.024.16-.04.212s-.153.05-.214-.003l-.004.004z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M14.99 7.49c.025-.198.113-.382.25-.527.115-.126.24-.244.37-.352.238-.172.433-.397.57-.657.12-.266.174-.558.156-.85 0-.157-.02-.314-.056-.467l-.085-.47c-.033-.155-.048-.316-.08-.472-.023-.15-.064-.298-.124-.438-.004-.01-.01-.017-.018-.025.005.003.01.003.017 0-.014.013-.025.028-.032.045-.03.068-.058.137-.08.208-.05.158-.11.312-.18.463s-.15.294-.246.43c-.048.068-.104.134-.156.207-.044.054-.08.114-.11.177-.105.276-.133.574-.08.865v.02c-.015.347-.07.69-.168 1.022-.036.166-.084.33-.144.49-.06.173-.148.336-.258.483-.058.072-.163.085-.235.027s-.084-.163-.026-.235l.01-.015c.09-.116.16-.245.208-.383.053-.147.094-.297.125-.45.035-.154.06-.313.098-.47.035-.155.057-.314.065-.474v.02c-.05-.353-.002-.713.142-1.04.043-.086.096-.165.158-.236.052-.06.1-.115.146-.177.09-.12.17-.25.235-.385.065-.14.12-.282.168-.427.028-.085.062-.167.1-.248.014-.03.032-.058.052-.083.06-.083.165-.12.265-.096.034.01.066.026.094.048.03.025.058.056.08.09.052.082.093.17.125.262.03.08.056.163.08.242.048.16.084.32.11.483.05.33.05.637.114.98.03.348-.036.696-.19 1.01-.067.162-.156.314-.264.453-.112.122-.232.235-.36.34-.24.208-.488.417-.51.644-.005.093-.084.164-.177.158s-.165-.084-.16-.177l.003-.01zM12.917 6.68l-.338-.386c-.116-.127-.224-.26-.328-.396l-.298-.417c-.023-.034-.033-.082-.06-.116l-.077-.102-.154-.208.237-.033c-.052.132-.117.255-.173.382-.057.125-.09.26-.096.398-.028.396.133.783.434 1.042.098.075.208.156.308.25.208.194.49.28.72.58.036.046.046.11.024.165s-.072.095-.13.104c-.06.01-.12-.014-.157-.06l-.02-.028c-.077-.092-.168-.17-.27-.233-.114-.076-.236-.143-.35-.232-.057-.048-.114-.096-.17-.148s-.123-.1-.18-.156c-.114-.11-.21-.24-.286-.38-.15-.283-.213-.605-.18-.924.017-.304.087-.602.21-.88l.018-.036c.023-.05.066-.086.118-.102s.108-.01.155.018c.027.015.05.037.07.063.095.142.14.325.28.43.1.14.173.3.283.43.052.067.13.115.188.18l.167.195c.11.13.223.26.325.396.048.072.033.168-.034.222s-.164.048-.224-.013h-.012z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M15.573 7.5c.102-.143.25-.248.417-.3.144-.044.292-.074.442-.09.256-.015.51-.055.758-.117.052-.018.103-.042.15-.07.046-.032.092-.066.146-.095.087-.085.157-.185.208-.296.113-.236.198-.484.252-.74l.156.073c-.254.207-.554.35-.875.417-.295.072-.587.16-.873.263-.127.052-.246.122-.352.208-.12.088-.246.175-.358.273-.11.1-.206.21-.29.33-.08.096-.128.213-.14.336 0 .06-.032.115-.083.144s-.114.03-.166 0c-.052-.03-.083-.085-.083-.144v-.02c.02-.19.09-.37.21-.52.095-.135.202-.26.32-.377.118-.11.245-.21.38-.296.145-.102.304-.18.472-.232.302-.096.608-.174.92-.235.286-.073.584-.154.734-.346.048-.06.13-.084.202-.058s.12.094.12.17v.034c.005.3-.077.595-.234.85-.088.13-.187.253-.296.367-.045.067-.105.122-.175.16-.065.04-.135.072-.208.095-.143.038-.29.07-.435.092-.136.04-.276.065-.417.077-.267.027-.52.088-.625.235-.054.07-.153.085-.226.035s-.095-.148-.05-.224v-.003z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M17.125 7.898c.26-.024.51-.117.72-.27.11-.07.21-.153.303-.245.106-.082.187-.194.23-.32l.16.19c-.1.02-.2.03-.3.032h-.303c-.208 0-.398.023-.598.025h-.027c-.142-.027-.29-.027-.43 0-.146.027-.286.075-.418.142-.15.047-.295.11-.43.19-.063.04-.122.085-.178.133-.025.02-.047.044-.067.07-.017.02-.017.045 0 .018-.003.06-.04.116-.095.142s-.12.02-.17-.017c-.05-.037-.075-.098-.066-.16.01-.076.042-.15.094-.207.033-.037.068-.073.106-.105.066-.058.136-.11.208-.16.07-.048.144-.09.22-.127.078-.033.16-.058.236-.085.164-.074.338-.123.517-.144.184-.02.37-.006.55.04h-.044c.19.008.383 0 .573-.026.094-.015.185-.04.277-.058s.185-.03.28-.03h.068c.048-.002.094.017.128.05s.053.08.053.126c0 .032-.008.062-.024.09-.088.15-.208.263-.29.417-.12.107-.247.206-.38.295-.06.056-.124.106-.19.152-.073.038-.148.07-.224.1-.155.06-.32.088-.485.088-.092 0-.167-.075-.167-.167s.075-.167.167-.167l-.002-.01zM11.017 7.617c-.144-.12-.263-.267-.348-.433-.083-.17-.117-.36-.1-.55.013-.104.105-.18.21-.17h.032c.044.012.07.066.117.078l.128.05c.088.03.175.054.263.092.088.042.18.072.276.09l.29.042c.012.002.024.007.033.015l.016.013c.19.15.398.285.596.417.084.083.177.157.277.22.093.053.196.085.303.095.095-.003.175.07.178.166s-.07.176-.165.18h-.067c-.146-.023-.286-.07-.417-.14-.06-.027-.117-.062-.17-.103-.05-.044-.094-.094-.144-.135-.208-.156-.392-.323-.585-.496l.082.044-.28-.05c-.093-.015-.193-.013-.295-.02-.103-.012-.203-.048-.29-.105-.044-.03-.088-.058-.133-.083s-.102-.015-.142-.052l.208-.142c-.015.068-.02.14-.015.208 0 .077.07.13.102.194.07.126.162.24.27.335.067.063.07.166.01.233s-.166.073-.234.013h-.008zM13.396 5.12s0-.01 0 0-.013.037-.013.03c-.017-.034-.038-.065-.063-.094-.078-.09-.16-.174-.246-.254-.092-.09-.18-.187-.263-.288-.1-.12-.172-.263-.207-.417l.33.067c-.03.047-.064.09-.1.133-.042.04-.076.086-.1.138-.053.1-.102.2-.145.304l-.14.31c-.046.104-.078.215-.096.328l-.012-.063c.26.37.548.723.82 1.085l-.295.073c.003-.114.02-.228.05-.337.03-.112.07-.22.102-.333.03-.116.064-.23.106-.342.048-.14.144-.263.27-.343zm.146.297c-.053.05-.093.11-.117.18-.038.095-.07.194-.092.295-.024.103-.053.206-.088.306-.033.103-.053.21-.06.317-.008.067-.056.122-.12.138s-.135-.01-.174-.063l-.766-1.12c-.025-.038-.035-.082-.027-.126.02-.248.076-.49.167-.723.06-.11.13-.216.208-.314.04-.047.07-.1.092-.158.027-.055.062-.106.102-.152l.02-.03c.033-.05.097-.072.155-.052s.097.076.093.137c.012.105.056.202.125.28.073.094.192.152.275.244.095.09.185.188.27.29.054.066.094.143.118.225.018.07.01.144-.026.207-.038.054-.09.097-.152.12zM16.498 6.117c-.248.11-.373.16-.527.21-.014.004-.03.01-.045.013-.258.078-.154.463.108.402.04-.01.078-.02.113-.035.22-.088.318-.27.426-.623.004-.012.008-.025.01-.038l.005-.014.028-.093c.06-.234.088-.466.088-.698 0-.085-.004-.17-.012-.254-.008-.097-.083-.172-.175-.186-.017-.003-.034-.003-.052 0-.115.01-.198.112-.188.226.026.267.005.537-.06.798-.007.017-.014.04-.028.088l-.004.014c-.078.26-.128.36-.212.397-.01.005-.02.008-.032.01l.108.403c.035-.01.068-.02.1-.032.15-.05.284-.105.52-.21.273-.12.398-.17.574-.223.124-.027.255-.09.367-.178.22-.2.252-.442.21-.83l-.06-.537c-.013-.13-.143-.215-.268-.177-.18.057-.352.133-.513.23-.096.055-.214.065-.32.024-.048-.018-.097-.018-.142-.003-.057.02-.105.064-.128.124-.04.107.013.228.12.27.064.023.13.04.196.047.166.02.336-.015.484-.1.06-.036.122-.07.185-.098l.03.27c.028.26.01.398-.066.466-.05.04-.125.075-.203.092-.193.058-.324.108-.562.213l-.073.032z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", opacity: ".4", d: "M15.242 4.47c-.124.16-.225.34-.298.53-.064.26-.096.526-.094.794-.052.698-.32 1.358-.583 2.006.344-.263.285.244.43-.165.074-.208.505-1.227.514-1.458l.076-1.78M16.708 5.044c.006.248.07.492.19.71.013.03.033.054.058.073.027.013.057.02.088.023.1.016.196.06.273.127-.326.034-.643.126-.935.273l.208-1.015c.01-.054.03-.12.085-.133M12.263 5.09l.57.417c.014.012.03.02.05.02.028 0 .043-.037.05-.066.07-.22.218-.41.418-.53.013-.01.03-.013.045-.01.025 0 .03.04.027.067-.067.488-.226.958-.47 1.385l-.474-.733c-.1-.142-.182-.296-.242-.46" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M21.498 16.848c-.062.08-.152.134-.252.15-.077.01-.156.004-.23-.015-.055-.013-.11-.022-.163-.03l-.175-.018-.696-.077c-.465-.052-.925-.12-1.394-.148-.233-.02-.467-.027-.7-.058l-.696-.094c-.462-.067-.93-.094-1.398-.133-.93-.08-1.875-.133-2.798-.235l-1.394-.17-1.394-.11c-.93-.103-1.856-.236-2.788-.336l-.348-.037c-.11-.012-.22-.015-.338-.017s-.237 0-.362-.017c-.062 0-.127-.017-.188-.03-.072-.008-.142-.026-.208-.053-.05-.024-.094-.062-.125-.108-.024-.038-.043-.08-.055-.123-.02-.075-.03-.152-.023-.228 0-.135.033-.254.05-.362s.02-.227.03-.338c.01-.11.026-.233.047-.348.04-.23.078-.462.105-.694s.015-.47.042-.702l.15-1.396c.104-.93.208-1.86.3-2.792.042-.467.094-.93.17-1.394.076-.462.128-.928.153-1.396.015-.47.088-.93.146-1.396s.127-.927.175-1.394l.066-.698.03-.352c-.006-.135.035-.267.116-.375.056-.053.13-.083.208-.083.064 0 .127.006.19.017.115.02.225.028.344.04l2.094.22 1.394.156c.93.094 1.875.138 2.798.22s1.875.155 2.796.255l1.394.172c.465.058.93.08 1.398.123s.93.07 1.396.094c.472.027.94.082 1.406.166l.108.02.025.105c.058.305.063.616.015.922-.02.148-.035.283-.048.427l-.04.434-.12.873-.064.43-.042.434c-.03.29-.048.58-.08.87l-.116.865c-.027.29-.033.58-.054.87s-.065.58-.1.868c-.035.288-.08.577-.11.867s-.073.577-.09.87l-.07.87c-.028.29-.072.577-.105.867-.082.577-.11 1.158-.15 1.74-.018.292-.05.58-.076.87-.013.14-.03.3-.038.416v.23c-.01.11-.05.213-.12.3zm-.263-.208c.04-.104.056-.216.046-.327.01-.165.03-.296.045-.444.033-.29.056-.58.096-.868.074-.577.157-1.154.184-1.735.023-.29.033-.58.063-.87l.106-.868c.042-.288.056-.58.083-.87s.044-.58.06-.87c.017-.29.038-.582.075-.87s.114-.573.14-.862c.028-.29.028-.58.06-.87s.074-.578.116-.866c.094-.575.087-1.16.144-1.74l.052-.433c.017-.147.042-.3.065-.44.058-.265.07-.54.035-.81l.125.118c-.456-.07-.92-.08-1.385-.13s-.935-.097-1.398-.15c-.462-.055-.93-.118-1.396-.153s-.935-.044-1.402-.085c-.93-.085-1.863-.18-2.792-.294s-1.854-.275-2.785-.36c-.468-.044-.934-.07-1.4-.104s-.934-.075-1.4-.12L7.9 1.54c-.062 0-.127-.015-.183-.025-.047-.01-.095-.016-.144-.02h-.043c-.018.023-.03.05-.035.078-.01.052-.02.104-.025.156l-.052.353c-.035.232-.064.464-.088.696-.115.928-.03 1.874-.235 2.797-.097.46-.142.927-.135 1.396-.01.47-.05.936-.115 1.4-.12.93-.208 1.858-.313 2.79l-.153 1.396c-.025.232-.09.46-.113.693s-.033.467-.046.7c0 .117-.02.233-.027.35s-.024.223-.05.358c-.024.136-.05.232-.066.332-.008.042-.008.085 0 .127.012.047.012.05.027.06.044.02.09.034.136.043.053.012.106.02.16.027.108.012.223.015.34.02s.24 0 .36.02l.348.04c.93.102 1.863.185 2.792.28.465.054.93.104 1.396.15l1.4.103c.467.03.93.102 1.396.148l1.394.16c.465.055.93.116 1.396.14l.7.05c.233.014.465.05.698.078.463.065.93.087 1.4.13l.7.062.175.017c.064 0 .134.02.184.03.04.005.078.005.117 0 .028-.01.022-.01.045-.032v-.004z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#fff", d: "M18.215 16.52l-9.302-.95c-.08-.953.152-2 .246-2.916.084-.833.107-1.7.24-2.52.076-.44.095-.89.13-1.337.015-.208-.07-.883.094-1.042s.938.02 1.188.048l6.715.683c.288.027.577.06.867.088.152.015.515-.065.625.07.064.09.028.328.026.43 0 .23-.027.47-.052.704l-.48 4.662c-.017.44-.066.876-.145 1.308-.06.242-.095.515-.153.77z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#f2f4f9", d: "M18.215 16.52l-3.063-.312c.166-.444.37-.872.61-1.28.1-.178.208-.35.33-.52.328-.494.678-.98.832-1.563.064-.25.11-.505.135-.762.055-.606.07-1.215.04-1.823 0-.144 0-.29-.01-.44-.017-.46.037-.922.16-1.367l.278.03c.287.026.577.06.867.087.152.015.515-.065.625.07.065.09.03.328.027.43 0 .23-.027.47-.052.704l-.483 4.667c-.018.44-.067.877-.146 1.31-.06.24-.094.514-.152.77z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#ebedf5", d: "M9.938 15.706c.017-.08-.088-.133-.03-.22 0-.01-.022-.016-.022-.024s.02-.012.02-.02c0-.005-.024 0-.018-.01s0-.04 0-.055c0-.017.054-.048 0-.056 0 0 .015-.02.02-.03s0-.02-.01-.027c-.006-.018-.006-.038 0-.056.01-.02-.034-.03-.043-.048s-.033-.032 0-.057-.042-.03-.037-.05 0-.02 0-.027c0-.008 0-.02.017-.03s.013-.04-.017-.055c0-.01.02-.02.015-.03s-.025-.015-.013-.027c.013-.012 0-.02-.015-.025-.008-.006-.014-.015-.017-.025l.165-.023c.004.01.004.018 0 .027 0 .01-.017.02 0 .027s0 .02 0 .027c0 .01.02.018.033.024-.033.023 0 .035-.02.058s.018 0 .022 0 0 0 0 .015-.02.02 0 .027c.02.006-.027.042 0 .056s.037.03.033.05c0 .012-.008.024-.018.03-.017.013-.02.024 0 .03s.042.03.035.05c-.006.02-.027.023-.012.03s.048 0 .046.02c0 .02-.026.015-.032.02s0 0 .02 0c.022 0 .024.016.02.026s0 .037 0 .056c0 .02-.023.015-.02.02s.02 0 .02 0-.023.022-.02.032c-.002.038.012.075.036.104 0 .02-.033.046 0 .054 0 .02.017.033.023.05l-.18.065zM11.965 8.292c.01.154.033.308.07.458.01.16.04.32.093.47.02.08.026.162.02.243-.002.082.005.163.02.244 0 .167-.046.323-.063.483-.02.08 0 .163-.025.242 0 .04-.035.075-.046.115s0 .083-.012.12c-.037.157-.094.307-.137.46s-.152.286-.154.453c-.022.075-.064.146-.095.22-.026.074-.047.15-.063.228-.04.152-.08.306-.127.458-.036.155-.06.312-.073.47-.015.16-.047.315-.096.466-.037.154-.025.317-.054.47-.024.077-.036.155-.035.234-.005.086-.023.17-.054.25-.027.156-.043.313-.048.47-.02.076-.033.153-.042.23.01.08.01.16 0 .238-.013.08-.013.16 0 .237.005.08.005.158 0 .236h-.167c-.004-.08-.004-.16 0-.24.015-.08.015-.16 0-.24-.007-.08 0-.16.02-.24.004-.08.004-.16 0-.242.053-.154.032-.32.082-.473v-.12c.002-.04.01-.08.02-.12.027-.076.042-.156.045-.236.02-.158.083-.308.096-.47.01-.24.062-.475.153-.697.037-.072.06-.15.065-.23.017-.16.05-.32.102-.472.038-.07.066-.147.083-.225.005-.08.016-.16.033-.24.012-.037.052-.067.07-.102.016-.038.022-.078.02-.12.002-.08.022-.157.058-.228.058-.146.096-.3.14-.45 0-.04.04-.07.046-.11s0-.08 0-.12c.015-.076.054-.15.063-.226.054-.308.05-.624-.01-.93l-.023-.236c-.005-.08-.022-.157-.052-.23-.017-.16-.063-.314-.088-.474l.167-.023zM13.8 8.642c-.025 0-.044.02-.027 0 .014-.01.03-.02.048-.02.024-.004.047.003.066.018.008.007.015.016.02.025.008.012.013.026.016.04v.025l-.01.025c-.118.29-.193.596-.225.908-.018.078-.043.154-.075.227-.027.075-.02.16-.052.233-.056.15-.125.294-.175.446-.096.304-.215.6-.356.89-.027.073-.065.144-.11.207-.055.063-.05.152-.095.208s-.09.13-.13.208c-.04.077-.068.144-.1.208-.074.14-.145.28-.228.418s-.12.292-.188.435c-.057.145-.127.285-.21.417-.068.142-.09.302-.15.442-.035.07-.06.144-.072.22-.02.073-.05.143-.085.21-.025.074-.02.153-.054.226s0 .156-.024.23c-.02.077-.032.154-.035.232.008.078.008.156 0 .233s0 .157.02.233c.012.077.023.154.03.233l-.168.014c-.01-.08-.014-.16-.012-.24.013-.08.013-.16 0-.24-.016-.08-.016-.162 0-.242v-.244c0-.08.067-.154.054-.238s.042-.156.06-.233c0-.04 0-.08.012-.12.007-.04.018-.08.033-.118.03-.067.052-.135.068-.205.042-.156.144-.288.194-.438.037-.156.1-.305.183-.442.038-.072.08-.142.127-.208.054-.06.097-.132.127-.208.053-.15.118-.293.193-.432.254-.575.537-1.133.794-1.706.06-.145.11-.294.152-.446.022-.075.05-.148.068-.225.007-.078.02-.156.04-.232.102-.298.152-.608.24-.925v.054c.004.007.01.013.017.02.016.012.036.018.056.016.013 0 .025-.005.034-.012-.025.023-.057.034-.09.032l.02-.162zM15.38 8.796c-.09.13-.165.27-.226.417-.088.133-.153.28-.192.433-.026.074-.06.144-.104.208-.04.07-.068.143-.085.22-.063.145-.152.28-.208.418-.037.07-.037.154-.07.227-.016.036-.05.066-.06.103s0 .08-.028.117c-.054.148-.113.294-.156.446s-.14.29-.124.454c-.015.077-.044.15-.065.227-.01.077-.016.155-.016.233 0 .158 0 .317-.023.475-.002.16.003.318.018.477.013.16.004.32-.027.477-.018.157 0 .32-.014.478-.023.08-.035.16-.037.242-.008.08-.028.16-.06.233-.024.16-.082.31-.1.47-.033.074-.062.15-.086.226-.014.078-.037.155-.07.228-.035.072-.06.15-.074.23-.022.076-.048.152-.08.226l-.153-.067c.027-.07.06-.14.094-.208.043-.068.07-.144.082-.222.014-.078.04-.153.077-.223.018-.077.03-.155.036-.233 0-.08.085-.14.073-.223s.05-.15.055-.228v-.12c.004-.038.01-.076.02-.114.026-.075.038-.154.036-.233.03-.155.048-.312.057-.47-.022-.157-.022-.316 0-.474.005-.078.016-.157.033-.234.023-.077.03-.158.02-.237-.016-.16-.016-.32 0-.478.022-.08.035-.163.04-.246-.008-.082-.008-.164 0-.246 0-.04.047-.073.062-.11.01-.04.01-.082 0-.123 0-.08.016-.162.052-.235.06-.15.1-.304.163-.452 0-.04.05-.067.06-.106s.01-.08.027-.117c.027-.075.083-.14.108-.208.127-.293.246-.59.367-.882l.114-.208c.042-.068.075-.142.096-.22.083-.137.137-.284.208-.43l.162.077zM16.042 8.958c-.07.13-.123.27-.154.417-.058.144-.09.297-.094.452-.01.078-.03.153-.06.225-.026.074-.042.15-.05.23-.042.15-.113.29-.152.44-.03.074-.025.155-.05.228-.01.037-.042.07-.054.106s0 .08-.02.115c-.047.15-.107.295-.155.44-.025.074-.033.138-.06.21-.013.035-.02.073-.02.11s.01.08 0 .118c0 .077-.03.154-.043.23-.01.076-.013.153-.012.23 0 .154-.025.308-.048.463-.013.156-.018.312-.015.468.008.16-.01.32-.054.473-.034.153-.028.314-.07.466-.03.073-.05.15-.058.227-.017.077-.046.15-.088.22-.04.15-.11.29-.14.445-.036.068-.068.137-.096.208-.016.076-.04.15-.073.22-.035.07-.06.145-.07.222-.015.075-.036.15-.06.223l-.157-.05c.02-.074.048-.148.08-.22.038-.068.065-.143.076-.22.016-.074.043-.145.08-.21.022-.075.037-.152.045-.23.084-.133.097-.292.17-.43.01-.036 0-.076.015-.114.007-.038.018-.075.033-.11.034-.07.056-.144.065-.22.047-.147.084-.296.11-.447-.004-.155.01-.31.044-.46.012-.076.028-.152.05-.226.026-.073.037-.15.03-.23-.01-.157-.005-.315.014-.472.024-.074.036-.15.036-.23-.013-.076-.02-.154-.023-.232 0-.04.035-.075.044-.113.008-.04.008-.08 0-.12-.015-.086 0-.173.04-.25.063-.145.102-.29.156-.437 0-.037.046-.067.054-.104s0-.08.02-.115c.02-.074.068-.14.087-.207.092-.295.163-.595.213-.9l.065-.225c.026-.074.04-.15.046-.23.052-.147.083-.303.146-.453l.16.075zM16.817 9.006c.01 0-.01 0-.02.03-.015.02-.027.043-.04.066-.027.048-.05.1-.066.154-.005.057-.024.113-.053.162-.024.053-.04.11-.048.167-.02.115-.03.23-.055.344-.012.055-.042.107-.056.166-.013.057-.02.115-.024.173-.023.114-.063.224-.094.337l-.035.17c0 .057 0 .118-.015.176s-.058.108-.048.17c0 .057-.008.115-.023.172-.02.115-.05.227-.064.344-.113.45-.172.915-.175 1.38-.002.116.012.232.04.344.02.115.04.23.057.344s0 .233.027.348c.027.115.054.23.07.346v.025l-.01.023v-.048c-.022.163.064.315.018.48-.01.08.02.157 0 .24-.007.038-.007.078 0 .118.013.038.018.08.015.12 0 .078-.02.16-.02.24.01.08.01.16 0 .24-.01.078-.01.16 0 .24.007.08.007.16 0 .24l-.166-.01c.003-.08.01-.158.02-.236.017-.078.017-.158 0-.235-.01-.08-.01-.158 0-.236.003-.08 0-.16-.008-.238-.004-.04.003-.08.02-.12.01-.037.01-.077 0-.116-.022-.077.018-.158 0-.235-.064-.152 0-.317-.05-.47v-.014l.013-.03v.046c-.01-.115 0-.233-.02-.348s-.074-.225-.074-.344c-.013-.117-.02-.236-.018-.354.02-.118.02-.238 0-.356-.016-.118-.02-.237-.015-.356 0-.12.06-.23.052-.35-.008-.06-.013-.12-.013-.18-.01-.06.046-.112.058-.168 0-.06-.003-.12-.012-.18.006-.057.018-.115.033-.172.03-.115.042-.23.067-.346.007-.06.023-.116.046-.17.032-.055 0-.118.022-.176.072-.223.127-.452.165-.683.015-.056.028-.113.037-.17 0-.06 0-.12.02-.176.028-.115.066-.225.1-.338.023-.056.04-.113.047-.172.005-.06.02-.118.05-.17.024-.055.036-.116.057-.174.01-.028.024-.055.04-.08.02-.043.054-.077.096-.1l.054.147zM18.402 9.273c-.03.15-.054.302-.07.454-.04.148-.063.3-.064.454-.007.077-.024.153-.052.224-.024.073-.038.148-.042.225-.033.15-.104.29-.14.437-.025.073-.023.152-.044.225-.01.037-.04.067-.052.104s0 .08-.02.112c-.043.146-.097.287-.14.433s-.14.276-.134.434c-.02.073-.06.142-.085.208-.025.072-.043.146-.055.22-.037.15-.073.295-.12.44-.034.15-.058.3-.07.45-.016.152-.05.3-.098.445-.04.146-.027.302-.06.45-.025.072-.038.147-.04.223-.008.076-.028.15-.06.22-.03.15-.05.3-.063.45-.024.073-.043.147-.054.222 0 .076-.006.153-.023.227-.02.073-.028.15-.02.226-.002.076-.007.152-.018.227l-.166-.02c.007-.075.02-.15.035-.224.023-.074.032-.15.026-.228 0-.076.01-.152.033-.225.005-.076.005-.153 0-.23.06-.145.045-.3.097-.447 0-.074.012-.148.035-.22.028-.07.044-.146.046-.222.02-.152.087-.294.102-.446-.002-.154.022-.307.073-.452.02-.07.044-.14.075-.208.035-.068.056-.142.063-.22.015-.15.045-.3.09-.447.036-.065.06-.136.076-.208.002-.086.012-.17.03-.254.013-.035.05-.065.068-.1.013-.037.017-.076.013-.115-.002-.077.016-.154.052-.223.055-.142.09-.29.14-.433 0-.037.045-.067.053-.104s0-.077.017-.115c.02-.073.07-.137.083-.208.048-.144.08-.292.115-.44.024-.072.04-.146.048-.22 0-.077.01-.153.03-.226.052-.144.08-.295.082-.447.026-.15.04-.3.046-.45l.156.02zM11.967 15.898c.015-.54.027-1.096.254-1.594.028-.063.022-.133.047-.198.01-.03.042-.056.054-.088s0-.07.024-.1c.05-.125.115-.244.17-.367s.176-.207.21-.35c.04-.054.09-.104.143-.147.05-.053.105-.1.167-.135.04-.02.09-.02.13 0 .035.022.063.055.078.094.028.066.043.137.044.208 0 .135.04.27.035.406.01.135-.004.27-.043.4-.027.13 0 .27-.033.402-.023.063-.035.13-.035.198-.01.067-.03.132-.06.192-.032.128-.055.26-.072.39-.026.062-.047.126-.063.192-.004.067-.016.133-.037.196-.025.063-.037.13-.035.198-.005.07-.016.14-.03.208l-.16-.042c.01-.065.027-.13.047-.192.03-.06.043-.127.042-.194.003-.067.02-.133.046-.194.012-.07.018-.14.017-.208.065-.12.056-.258.11-.383-.004-.068.003-.135.023-.2.027-.06.04-.126.042-.193.032-.128.057-.258.073-.39-.014-.13-.008-.264.017-.394.006-.065.016-.13.03-.194.02-.063.02-.13 0-.193-.013-.057-.034-.112-.062-.165-.012-.02-.025-.035-.03-.035h-.026c-.056.007-.106.04-.135.088-.035.052-.044.123-.08.173s-.06.037-.082.063c-.02.028-.032.06-.033.095-.01.066-.036.127-.077.18-.064.113-.12.232-.17.353 0 .03-.047.052-.055.085s0 .067-.02.098c-.02.064-.068.118-.082.18-.087.25-.142.508-.165.77-.042.126-.06.26-.048.39-.016.13-.016.26 0 .39l-.165.007zM17.373 9.167c-.058.122-.1.25-.13.38-.054.127-.085.262-.09.4-.007.067-.025.133-.053.195-.024.067-.036.137-.035.208-.03.133-.087.258-.113.394-.02.065 0 .137-.023.208 0 .033-.034.063-.04.096s0 .07 0 .102c-.024.133-.06.267-.076.4s-.094.263-.052.402c0 .067-.025.133-.03.208-.004.063.01.126.04.18.016.026.014.016.034.013.025-.014.047-.03.067-.052.044-.047.08-.1.125-.153.072-.113.122-.24.148-.37.028-.133.067-.262.12-.386.043-.128.028-.272.066-.4.027-.067.042-.138.044-.21.01-.068.03-.134.065-.195.036-.132.064-.266.082-.402.027-.063.05-.13.065-.196.004-.07.017-.14.04-.208.026-.067.04-.138.038-.21.007-.07.02-.14.035-.207l.163.037c-.013.07-.03.14-.052.208-.03.065-.045.136-.043.208-.008.064-.027.126-.056.183-.01.068-.017.138-.016.207-.067.125-.058.267-.117.394.003.072-.007.142-.03.21-.03.064-.047.135-.05.207-.022.135-.09.26-.107.398 0 .145-.034.287-.098.417-.027.066-.062.13-.106.185-.048.053-.087.113-.115.18-.03.065-.067.128-.112.187-.03.035-.065.064-.106.085-.036.013-.076.013-.112 0-.02-.01-.038-.02-.054-.036l-.017-.054c-.018-.08-.03-.16-.032-.24-.02-.068-.032-.138-.035-.208 0-.035.035-.07.044-.102.01-.035.01-.07 0-.106-.016-.07-.012-.142.012-.208.03-.135.047-.27.078-.406 0-.035.035-.063.04-.098s0-.07 0-.104c.013-.067.052-.13.063-.198.064-.267.122-.533.168-.806.054-.127.09-.26.108-.398.052-.13.07-.267.117-.4l.144.06z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M18.166 16.23c.005-.026.01-.05.018-.103.035-.197.054-.294.08-.396.078-.427.126-.86.145-1.3l.478-4.662.005-.05.013-.127c.022-.218.033-.368.033-.518 0-.023 0-.017.005-.103.003-.045.005-.075.005-.106.002-.084-.006-.142-.015-.154-.024-.03-.107-.046-.247-.042-.03 0-.06.002-.107.005-.12.007-.153.008-.2.004-.12-.01-.222-.022-.434-.044l-.433-.044-.28-.03-6.435-.654c-.037-.004-.084-.01-.156-.023-.01 0-.154-.025-.2-.033-.08-.013-.15-.023-.216-.032-.29-.037-.49-.032-.532.01-.045.044-.07.21-.07.46 0 .068 0 .132.004.235.006.185.007.225.003.28l-.02.307c-.038.52-.06.752-.11 1.04-.065.406-.103.787-.154 1.473l-.01.124c-.033.457-.05.663-.076.916-.024.232-.043.38-.113.88-.053.375-.08.585-.104.817-.043.424-.057.784-.035 1.114l2.508.254.536.06 6.078.618c.01-.052.02-.11.034-.177zm.038.394l-9.388-.96-.007-.085c-.032-.37-.02-.767.028-1.24.024-.235.05-.447.105-.825.07-.498.09-.643.112-.872.026-.25.042-.455.076-.91l.01-.124c.052-.693.09-1.078.157-1.493.047-.28.07-.507.105-1.02.01-.155.016-.222.023-.307.003-.043.002-.085-.004-.258-.003-.105-.004-.17-.004-.24 0-.315.03-.51.134-.61.11-.11.335-.116.704-.068l.222.032c.047.008.192.03.2.033.07.01.113.017.145.02l6.715.683c.12.01.21.02.434.044l.432.044c.03.004.063.003.168-.003l.114-.005c.203-.006.333.02.417.122.05.066.063.156.06.286 0 .034-.003.067-.006.114l-.005.09c0 .157-.012.314-.035.54l-.013.126-.005.05-.48 4.656c-.018.444-.067.886-.148 1.33-.027.102-.045.195-.08.388l-.018.104c-.02.112-.037.195-.055.276l-.02.09-.092-.01z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M10.402 10.98c-.068 0-.13-.04-.158-.1-.02-.036-.035-.073-.046-.11-.02-.07-.037-.14-.048-.21-.023-.133-.036-.27-.04-.405-.006-.134 0-.27.012-.402v-.4c0-.133.027-.267.03-.4V7.757c-.003-.01-.003-.018 0-.027.067-.13.174-.237.305-.304.07-.036.145-.053.223-.05.04.003.08.01.117.023l.108.057c.03.024.04.066.022.1s-.057.053-.095.042l-.033-.016-.06-.03c-.024-.008-.048-.012-.072-.013-.048 0-.095.01-.137.034-.045.025-.087.057-.122.096-.04.038-.073.08-.1.13v-.03c-.02.265-.025.53-.033.796v.398l.012.398c0 .133-.025.265-.033.398.008.07.008.14 0 .208v.208c0 .066.01.132.025.196.014.065.018.13.028.194.01.062.022.123.04.183.007.025.017.05.03.074 0 .025.022.015 0 .017.03-.006.063.005.083.03s.025.06.01.088c-.013.03-.042.047-.074.047l.006-.025z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#fff", d: "M11.34 10.44l.267 1.096s.015.48 0 .72c-.023.222-.058.444-.104.664-.208 1.065-.042.752-.248 1.817-.894-.257-1.78-.544-2.654-.862.092-.954.32-1.89.678-2.78 0 0 .346-.597.583-.984l1.48.332z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M9.91 10.226l-.143.238c-.01.014-.01.014-.017.03-.085.142-.175.295-.264.448-.03.054-.06.103-.086.148l-.026.043c-.344.855-.567 1.753-.662 2.67.812.293 1.633.56 2.462.8.067-.357.086-.527.1-.78.015-.287.04-.475.127-.926.047-.216.08-.434.103-.65.004-.07.006-.168.006-.286 0-.09-.002-.19-.004-.29 0-.052-.002-.094-.003-.12l-.25-1.023-1.342-.3zm1.53.19l.268 1.095.003.022c.002.027.003.074.004.134l.003.295c0 .123-.002.224-.007.304-.023.227-.06.452-.106.674-.086.44-.108.62-.123.894-.015.288-.037.476-.124.923-.012.06-.072.097-.13.08-.898-.258-1.785-.546-2.662-.865-.045-.016-.073-.06-.068-.108.092-.964.322-1.91.69-2.82l.034-.057.086-.148.265-.45.018-.03.183-.303c.024-.038.07-.057.113-.047l1.48.33c.038.01.068.04.077.078z" } }), _vm._v(" "), _c("path", { attrs: { fill: "#d6dbeb", d: "M11.13 12.33c-.28.078-.574.087-.857.026-.15-.045-.282-.136-.38-.258-.05-.062-.086-.133-.11-.208-.01-.04-.017-.08-.016-.12-.004-.06.017-.115.056-.157.04-.033.093-.05.146-.046.042 0 .084.008.124.023.075.03.142.076.194.137.096.117.144.266.135.417-.01.306-.223.568-.52.638l.016-.104c.084.043.164.093.24.15.08.06.15.13.21.208.038.055.05.124.036.19-.015.062-.05.116-.1.156-.09.066-.2.097-.313.085l.07-.127.124.208c.042.073.083.14.13.208.053.086.074.19.057.29-.014.055-.042.105-.083.144-.046.046-.11.07-.176.065-.046-.005-.08-.046-.075-.092s.045-.08.09-.075c.026 0 .07-.033.08-.085.006-.06-.01-.12-.044-.17l-.127-.21c-.047-.068-.082-.143-.124-.207-.014-.026-.013-.058.003-.084s.043-.04.073-.04c.072.012.146-.004.208-.043.023-.018.04-.043.047-.07.005-.023 0-.048-.015-.067-.052-.064-.11-.12-.177-.17-.065-.054-.135-.1-.208-.143-.03-.017-.048-.053-.043-.088s.033-.063.068-.07c.238-.044.407-.256.398-.498-.006-.112-.046-.22-.115-.308-.032-.042-.073-.077-.12-.1-.023-.01-.047-.018-.072-.02-.016-.002-.032-.002-.048 0v.034s0 .056.015.083c.015.058.04.113.077.16.037.05.082.093.133.13.055.03.114.054.175.068.258.047.522.036.775-.03.03-.01.063 0 .085.022s.03.056.018.086c-.01.03-.038.05-.07.054l.005.006z" } }) ] ) ] ) ]), _vm._v(" "), _c("div", { staticClass: "text-center" }, [ _c( "span", { staticClass: "btn btn-primary", on: { click: _vm.openUploader } }, [_vm._v("Upload image")] ) ]) ] ), _vm._v(" "), _c( "div", { staticClass: "attach-demo", attrs: { title: "Change file" }, on: { click: _vm.openUploader } }, [ _c("img", { directives: [ { name: "show", rawName: "v-show", value: _vm.value, expression: "value" } ], staticClass: "image-responsive", attrs: { src: _vm.bookingCore.url + "/media/preview/" + _vm.value } }) ] ), _vm._v(" "), _c( "div", { directives: [ { name: "show", rawName: "v-show", value: _vm.value, expression: "value" } ], staticClass: "upload-actions justify-content-between" }, [ _c( "a", { attrs: { href: "#" }, on: { click: function($event) { _vm.value = "" } } }, [_vm._v("Remove")] ) ] ) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js": /*!********************************************************************!*\ !*** ./node_modules/vue-loader/lib/runtime/componentNormalizer.js ***! \********************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ normalizeComponent) /* harmony export */ }); /* globals __VUE_SSR_CONTEXT__ */ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules). // This module is a runtime utility for cleaner component module output and will // be included in the final webpack user bundle. function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (render) { options.render = render options.staticRenderFns = staticRenderFns options._compiled = true } // functional template if (functionalTemplate) { options.functional = true } // scopedId if (scopeId) { options._scopeId = 'data-v-' + scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = shadowMode ? function () { injectStyles.call( this, (options.functional ? this.parent : this).$root.$options.shadowRoot ) } : injectStyles } if (hook) { if (options.functional) { // for template-only hot-reload because in that case the render fn doesn't // go through the normalizer options._injectStyles = hook // register for functional component in vue file var originalRender = options.render options.render = function renderWithStyleInjection (h, context) { hook.call(context) return originalRender(h, context) } } else { // inject component registration as beforeCreate hook var existing = options.beforeCreate options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } } return { exports: scriptExports, options: options } } /***/ }), /***/ "./node_modules/vue-runtime-helpers/dist/normalize-component.mjs": /*!***********************************************************************!*\ !*** ./node_modules/vue-runtime-helpers/dist/normalize-component.mjs ***! \***********************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) { if (typeof shadowMode !== 'boolean') { createInjectorSSR = createInjector; createInjector = shadowMode; shadowMode = false; } // Vue.extend constructor export interop. const options = typeof script === 'function' ? script.options : script; // render functions if (template && template.render) { options.render = template.render; options.staticRenderFns = template.staticRenderFns; options._compiled = true; // functional template if (isFunctionalTemplate) { options.functional = true; } } // scopedId if (scopeId) { options._scopeId = scopeId; } let hook; if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__; } // inject component styles if (style) { style.call(this, createInjectorSSR(context)); } // register component module identifier for async chunk inference if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier); } }; // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook; } else if (style) { hook = shadowMode ? function (context) { style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot)); } : function (context) { style.call(this, createInjector(context)); }; } if (hook) { if (options.functional) { // register for functional component in vue file const originalRender = options.render; options.render = function renderWithStyleInjection(h, context) { hook.call(context); return originalRender(h, context); }; } else { // inject component registration as beforeCreate hook const existing = options.beforeCreate; options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; } } return script; } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (normalizeComponent); //# sourceMappingURL=normalize-component.mjs.map /***/ }), /***/ "./node_modules/vuedraggable/dist/vuedraggable.umd.js": /*!************************************************************!*\ !*** ./node_modules/vuedraggable/dist/vuedraggable.umd.js ***! \************************************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { (function webpackUniversalModuleDefinition(root, factory) { if(true) module.exports = factory(__webpack_require__(/*! sortablejs */ "./node_modules/sortablejs/modular/sortable.esm.js")); else {} })((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE_a352__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __nested_webpack_require_688__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_688__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __nested_webpack_require_688__.m = modules; /******/ /******/ // expose the module cache /******/ __nested_webpack_require_688__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __nested_webpack_require_688__.d = function(exports, name, getter) { /******/ if(!__nested_webpack_require_688__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __nested_webpack_require_688__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __nested_webpack_require_688__.t = function(value, mode) { /******/ if(mode & 1) value = __nested_webpack_require_688__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __nested_webpack_require_688__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __nested_webpack_require_688__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __nested_webpack_require_688__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __nested_webpack_require_688__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __nested_webpack_require_688__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __nested_webpack_require_688__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __nested_webpack_require_688__(__nested_webpack_require_688__.s = "fb15"); /******/ }) /************************************************************************/ /******/ ({ /***/ "01f9": /***/ (function(module, exports, __nested_webpack_require_4164__) { "use strict"; var LIBRARY = __nested_webpack_require_4164__("2d00"); var $export = __nested_webpack_require_4164__("5ca1"); var redefine = __nested_webpack_require_4164__("2aba"); var hide = __nested_webpack_require_4164__("32e9"); var Iterators = __nested_webpack_require_4164__("84f2"); var $iterCreate = __nested_webpack_require_4164__("41a0"); var setToStringTag = __nested_webpack_require_4164__("7f20"); var getPrototypeOf = __nested_webpack_require_4164__("38fd"); var ITERATOR = __nested_webpack_require_4164__("2b4c")('iterator'); var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` var FF_ITERATOR = '@@iterator'; var KEYS = 'keys'; var VALUES = 'values'; var returnThis = function () { return this; }; module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { $iterCreate(Constructor, NAME, next); var getMethod = function (kind) { if (!BUGGY && kind in proto) return proto[kind]; switch (kind) { case KEYS: return function keys() { return new Constructor(this, kind); }; case VALUES: return function values() { return new Constructor(this, kind); }; } return function entries() { return new Constructor(this, kind); }; }; var TAG = NAME + ' Iterator'; var DEF_VALUES = DEFAULT == VALUES; var VALUES_BUG = false; var proto = Base.prototype; var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; var $default = $native || getMethod(DEFAULT); var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; var methods, key, IteratorPrototype; // Fix native if ($anyNative) { IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { // Set @@toStringTag to native iterators setToStringTag(IteratorPrototype, TAG, true); // fix for some old engines if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); } } // fix Array#{values, @@iterator}.name in V8 / FF if (DEF_VALUES && $native && $native.name !== VALUES) { VALUES_BUG = true; $default = function values() { return $native.call(this); }; } // Define iterator if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { hide(proto, ITERATOR, $default); } // Plug for library Iterators[NAME] = $default; Iterators[TAG] = returnThis; if (DEFAULT) { methods = { values: DEF_VALUES ? $default : getMethod(VALUES), keys: IS_SET ? $default : getMethod(KEYS), entries: $entries }; if (FORCED) for (key in methods) { if (!(key in proto)) redefine(proto, key, methods[key]); } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); } return methods; }; /***/ }), /***/ "02f4": /***/ (function(module, exports, __nested_webpack_require_7070__) { var toInteger = __nested_webpack_require_7070__("4588"); var defined = __nested_webpack_require_7070__("be13"); // true -> String#at // false -> String#codePointAt module.exports = function (TO_STRING) { return function (that, pos) { var s = String(defined(that)); var i = toInteger(pos); var l = s.length; var a, b; if (i < 0 || i >= l) return TO_STRING ? '' : undefined; a = s.charCodeAt(i); return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff ? TO_STRING ? s.charAt(i) : a : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; }; }; /***/ }), /***/ "0390": /***/ (function(module, exports, __nested_webpack_require_7783__) { "use strict"; var at = __nested_webpack_require_7783__("02f4")(true); // `AdvanceStringIndex` abstract operation // https://tc39.github.io/ecma262/#sec-advancestringindex module.exports = function (S, index, unicode) { return index + (unicode ? at(S, index).length : 1); }; /***/ }), /***/ "0bfb": /***/ (function(module, exports, __nested_webpack_require_8134__) { "use strict"; // 21.2.5.3 get RegExp.prototype.flags var anObject = __nested_webpack_require_8134__("cb7c"); module.exports = function () { var that = anObject(this); var result = ''; if (that.global) result += 'g'; if (that.ignoreCase) result += 'i'; if (that.multiline) result += 'm'; if (that.unicode) result += 'u'; if (that.sticky) result += 'y'; return result; }; /***/ }), /***/ "0d58": /***/ (function(module, exports, __nested_webpack_require_8593__) { // 19.1.2.14 / 15.2.3.14 Object.keys(O) var $keys = __nested_webpack_require_8593__("ce10"); var enumBugKeys = __nested_webpack_require_8593__("e11e"); module.exports = Object.keys || function keys(O) { return $keys(O, enumBugKeys); }; /***/ }), /***/ "1495": /***/ (function(module, exports, __nested_webpack_require_8892__) { var dP = __nested_webpack_require_8892__("86cc"); var anObject = __nested_webpack_require_8892__("cb7c"); var getKeys = __nested_webpack_require_8892__("0d58"); module.exports = __nested_webpack_require_8892__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) { anObject(O); var keys = getKeys(Properties); var length = keys.length; var i = 0; var P; while (length > i) dP.f(O, P = keys[i++], Properties[P]); return O; }; /***/ }), /***/ "214f": /***/ (function(module, exports, __nested_webpack_require_9392__) { "use strict"; __nested_webpack_require_9392__("b0c5"); var redefine = __nested_webpack_require_9392__("2aba"); var hide = __nested_webpack_require_9392__("32e9"); var fails = __nested_webpack_require_9392__("79e5"); var defined = __nested_webpack_require_9392__("be13"); var wks = __nested_webpack_require_9392__("2b4c"); var regexpExec = __nested_webpack_require_9392__("520a"); var SPECIES = wks('species'); var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { // #replace needs built-in support for named groups. // #match works fine because it just return the exec results, even if it has // a "grops" property. var re = /./; re.exec = function () { var result = []; result.groups = { a: '7' }; return result; }; return ''.replace(re, '$<a>') !== '7'; }); var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () { // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec var re = /(?:)/; var originalExec = re.exec; re.exec = function () { return originalExec.apply(this, arguments); }; var result = 'ab'.split(re); return result.length === 2 && result[0] === 'a' && result[1] === 'b'; })(); module.exports = function (KEY, length, exec) { var SYMBOL = wks(KEY); var DELEGATES_TO_SYMBOL = !fails(function () { // String methods call symbol-named RegEp methods var O = {}; O[SYMBOL] = function () { return 7; }; return ''[KEY](O) != 7; }); var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () { // Symbol-named RegExp methods call .exec var execCalled = false; var re = /a/; re.exec = function () { execCalled = true; return null; }; if (KEY === 'split') { // RegExp[@@split] doesn't call the regex's exec method, but first creates // a new one. We need to return the patched regex when creating the new one. re.constructor = {}; re.constructor[SPECIES] = function () { return re; }; } re[SYMBOL](''); return !execCalled; }) : undefined; if ( !DELEGATES_TO_SYMBOL || !DELEGATES_TO_EXEC || (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) || (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC) ) { var nativeRegExpMethod = /./[SYMBOL]; var fns = exec( defined, SYMBOL, ''[KEY], function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) { if (regexp.exec === regexpExec) { if (DELEGATES_TO_SYMBOL && !forceStringMethod) { // The native String method already delegates to @@method (this // polyfilled function), leasing to infinite recursion. // We avoid it by directly calling the native @@method method. return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) }; } return { done: true, value: nativeMethod.call(str, regexp, arg2) }; } return { done: false }; } ); var strfn = fns[0]; var rxfn = fns[1]; redefine(String.prototype, KEY, strfn); hide(RegExp.prototype, SYMBOL, length == 2 // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) // 21.2.5.11 RegExp.prototype[@@split](string, limit) ? function (string, arg) { return rxfn.call(string, this, arg); } // 21.2.5.6 RegExp.prototype[@@match](string) // 21.2.5.9 RegExp.prototype[@@search](string) : function (string) { return rxfn.call(string, this); } ); } }; /***/ }), /***/ "230e": /***/ (function(module, exports, __nested_webpack_require_12849__) { var isObject = __nested_webpack_require_12849__("d3f4"); var document = __nested_webpack_require_12849__("7726").document; // typeof document.createElement is 'object' in old IE var is = isObject(document) && isObject(document.createElement); module.exports = function (it) { return is ? document.createElement(it) : {}; }; /***/ }), /***/ "23c6": /***/ (function(module, exports, __nested_webpack_require_13233__) { // getting tag from 19.1.3.6 Object.prototype.toString() var cof = __nested_webpack_require_13233__("2d95"); var TAG = __nested_webpack_require_13233__("2b4c")('toStringTag'); // ES3 wrong here var ARG = cof(function () { return arguments; }()) == 'Arguments'; // fallback for IE11 Script Access Denied error var tryGet = function (it, key) { try { return it[key]; } catch (e) { /* empty */ } }; module.exports = function (it) { var O, T, B; return it === undefined ? 'Undefined' : it === null ? 'Null' // @@toStringTag case : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T // builtinTag case : ARG ? cof(O) // ES3 arguments fallback : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; }; /***/ }), /***/ "2621": /***/ (function(module, exports) { exports.f = Object.getOwnPropertySymbols; /***/ }), /***/ "2aba": /***/ (function(module, exports, __nested_webpack_require_14160__) { var global = __nested_webpack_require_14160__("7726"); var hide = __nested_webpack_require_14160__("32e9"); var has = __nested_webpack_require_14160__("69a8"); var SRC = __nested_webpack_require_14160__("ca5a")('src'); var $toString = __nested_webpack_require_14160__("fa5b"); var TO_STRING = 'toString'; var TPL = ('' + $toString).split(TO_STRING); __nested_webpack_require_14160__("8378").inspectSource = function (it) { return $toString.call(it); }; (module.exports = function (O, key, val, safe) { var isFunction = typeof val == 'function'; if (isFunction) has(val, 'name') || hide(val, 'name', key); if (O[key] === val) return; if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); if (O === global) { O[key] = val; } else if (!safe) { delete O[key]; hide(O, key, val); } else if (O[key]) { O[key] = val; } else { hide(O, key, val); } // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative })(Function.prototype, TO_STRING, function toString() { return typeof this == 'function' && this[SRC] || $toString.call(this); }); /***/ }), /***/ "2aeb": /***/ (function(module, exports, __nested_webpack_require_15334__) { // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) var anObject = __nested_webpack_require_15334__("cb7c"); var dPs = __nested_webpack_require_15334__("1495"); var enumBugKeys = __nested_webpack_require_15334__("e11e"); var IE_PROTO = __nested_webpack_require_15334__("613b")('IE_PROTO'); var Empty = function () { /* empty */ }; var PROTOTYPE = 'prototype'; // Create object with fake `null` prototype: use iframe Object with cleared prototype var createDict = function () { // Thrash, waste and sodomy: IE GC bug var iframe = __nested_webpack_require_15334__("230e")('iframe'); var i = enumBugKeys.length; var lt = '<'; var gt = '>'; var iframeDocument; iframe.style.display = 'none'; __nested_webpack_require_15334__("fab2").appendChild(iframe); iframe.src = 'javascript:'; // eslint-disable-line no-script-url // createDict = iframe.contentWindow.Object; // html.removeChild(iframe); iframeDocument = iframe.contentWindow.document; iframeDocument.open(); iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); iframeDocument.close(); createDict = iframeDocument.F; while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; return createDict(); }; module.exports = Object.create || function create(O, Properties) { var result; if (O !== null) { Empty[PROTOTYPE] = anObject(O); result = new Empty(); Empty[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill result[IE_PROTO] = O; } else result = createDict(); return Properties === undefined ? result : dPs(result, Properties); }; /***/ }), /***/ "2b4c": /***/ (function(module, exports, __nested_webpack_require_16945__) { var store = __nested_webpack_require_16945__("5537")('wks'); var uid = __nested_webpack_require_16945__("ca5a"); var Symbol = __nested_webpack_require_16945__("7726").Symbol; var USE_SYMBOL = typeof Symbol == 'function'; var $exports = module.exports = function (name) { return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); }; $exports.store = store; /***/ }), /***/ "2d00": /***/ (function(module, exports) { module.exports = false; /***/ }), /***/ "2d95": /***/ (function(module, exports) { var toString = {}.toString; module.exports = function (it) { return toString.call(it).slice(8, -1); }; /***/ }), /***/ "2fdb": /***/ (function(module, exports, __nested_webpack_require_17667__) { "use strict"; // 21.1.3.7 String.prototype.includes(searchString, position = 0) var $export = __nested_webpack_require_17667__("5ca1"); var context = __nested_webpack_require_17667__("d2c8"); var INCLUDES = 'includes'; $export($export.P + $export.F * __nested_webpack_require_17667__("5147")(INCLUDES), 'String', { includes: function includes(searchString /* , position = 0 */) { return !!~context(this, searchString, INCLUDES) .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined); } }); /***/ }), /***/ "32e9": /***/ (function(module, exports, __nested_webpack_require_18235__) { var dP = __nested_webpack_require_18235__("86cc"); var createDesc = __nested_webpack_require_18235__("4630"); module.exports = __nested_webpack_require_18235__("9e1e") ? function (object, key, value) { return dP.f(object, key, createDesc(1, value)); } : function (object, key, value) { object[key] = value; return object; }; /***/ }), /***/ "38fd": /***/ (function(module, exports, __nested_webpack_require_18611__) { // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) var has = __nested_webpack_require_18611__("69a8"); var toObject = __nested_webpack_require_18611__("4bf8"); var IE_PROTO = __nested_webpack_require_18611__("613b")('IE_PROTO'); var ObjectProto = Object.prototype; module.exports = Object.getPrototypeOf || function (O) { O = toObject(O); if (has(O, IE_PROTO)) return O[IE_PROTO]; if (typeof O.constructor == 'function' && O instanceof O.constructor) { return O.constructor.prototype; } return O instanceof Object ? ObjectProto : null; }; /***/ }), /***/ "41a0": /***/ (function(module, exports, __nested_webpack_require_19205__) { "use strict"; var create = __nested_webpack_require_19205__("2aeb"); var descriptor = __nested_webpack_require_19205__("4630"); var setToStringTag = __nested_webpack_require_19205__("7f20"); var IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() __nested_webpack_require_19205__("32e9")(IteratorPrototype, __nested_webpack_require_19205__("2b4c")('iterator'), function () { return this; }); module.exports = function (Constructor, NAME, next) { Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); setToStringTag(Constructor, NAME + ' Iterator'); }; /***/ }), /***/ "456d": /***/ (function(module, exports, __nested_webpack_require_19831__) { // 19.1.2.14 Object.keys(O) var toObject = __nested_webpack_require_19831__("4bf8"); var $keys = __nested_webpack_require_19831__("0d58"); __nested_webpack_require_19831__("5eda")('keys', function () { return function keys(it) { return $keys(toObject(it)); }; }); /***/ }), /***/ "4588": /***/ (function(module, exports) { // 7.1.4 ToInteger var ceil = Math.ceil; var floor = Math.floor; module.exports = function (it) { return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); }; /***/ }), /***/ "4630": /***/ (function(module, exports) { module.exports = function (bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value: value }; }; /***/ }), /***/ "4bf8": /***/ (function(module, exports, __nested_webpack_require_20609__) { // 7.1.13 ToObject(argument) var defined = __nested_webpack_require_20609__("be13"); module.exports = function (it) { return Object(defined(it)); }; /***/ }), /***/ "5147": /***/ (function(module, exports, __nested_webpack_require_20831__) { var MATCH = __nested_webpack_require_20831__("2b4c")('match'); module.exports = function (KEY) { var re = /./; try { '/./'[KEY](re); } catch (e) { try { re[MATCH] = false; return !'/./'[KEY](re); } catch (f) { /* empty */ } } return true; }; /***/ }), /***/ "520a": /***/ (function(module, exports, __nested_webpack_require_21176__) { "use strict"; var regexpFlags = __nested_webpack_require_21176__("0bfb"); var nativeExec = RegExp.prototype.exec; // This always refers to the native implementation, because the // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js, // which loads this file before patching the method. var nativeReplace = String.prototype.replace; var patchedExec = nativeExec; var LAST_INDEX = 'lastIndex'; var UPDATES_LAST_INDEX_WRONG = (function () { var re1 = /a/, re2 = /b*/g; nativeExec.call(re1, 'a'); nativeExec.call(re2, 'a'); return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0; })(); // nonparticipating capturing group, copied from es5-shim's String#split patch. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED; if (PATCH) { patchedExec = function exec(str) { var re = this; var lastIndex, reCopy, match, i; if (NPCG_INCLUDED) { reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re)); } if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX]; match = nativeExec.call(re, str); if (UPDATES_LAST_INDEX_WRONG && match) { re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex; } if (NPCG_INCLUDED && match && match.length > 1) { // Fix browsers whose `exec` methods don't consistently return `undefined` // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/ // eslint-disable-next-line no-loop-func nativeReplace.call(match[0], reCopy, function () { for (i = 1; i < arguments.length - 2; i++) { if (arguments[i] === undefined) match[i] = undefined; } }); } return match; }; } module.exports = patchedExec; /***/ }), /***/ "52a7": /***/ (function(module, exports) { exports.f = {}.propertyIsEnumerable; /***/ }), /***/ "5537": /***/ (function(module, exports, __nested_webpack_require_23109__) { var core = __nested_webpack_require_23109__("8378"); var global = __nested_webpack_require_23109__("7726"); var SHARED = '__core-js_shared__'; var store = global[SHARED] || (global[SHARED] = {}); (module.exports = function (key, value) { return store[key] || (store[key] = value !== undefined ? value : {}); })('versions', []).push({ version: core.version, mode: __nested_webpack_require_23109__("2d00") ? 'pure' : 'global', copyright: '© 2019 Denis Pushkarev (zloirock.ru)' }); /***/ }), /***/ "5ca1": /***/ (function(module, exports, __nested_webpack_require_23642__) { var global = __nested_webpack_require_23642__("7726"); var core = __nested_webpack_require_23642__("8378"); var hide = __nested_webpack_require_23642__("32e9"); var redefine = __nested_webpack_require_23642__("2aba"); var ctx = __nested_webpack_require_23642__("9b43"); var PROTOTYPE = 'prototype'; var $export = function (type, name, source) { var IS_FORCED = type & $export.F; var IS_GLOBAL = type & $export.G; var IS_STATIC = type & $export.S; var IS_PROTO = type & $export.P; var IS_BIND = type & $export.B; var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); var key, own, out, exp; if (IS_GLOBAL) source = name; for (key in source) { // contains in native own = !IS_FORCED && target && target[key] !== undefined; // export native or passed out = (own ? target : source)[key]; // bind timers to global for call from export context exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; // extend global if (target) redefine(target, key, out, type & $export.U); // export if (exports[key] != out) hide(exports, key, exp); if (IS_PROTO && expProto[key] != out) expProto[key] = out; } }; global.core = core; // type bitmap $export.F = 1; // forced $export.G = 2; // global $export.S = 4; // static $export.P = 8; // proto $export.B = 16; // bind $export.W = 32; // wrap $export.U = 64; // safe $export.R = 128; // real proto method for `library` module.exports = $export; /***/ }), /***/ "5eda": /***/ (function(module, exports, __nested_webpack_require_25367__) { // most Object methods by ES6 should accept primitives var $export = __nested_webpack_require_25367__("5ca1"); var core = __nested_webpack_require_25367__("8378"); var fails = __nested_webpack_require_25367__("79e5"); module.exports = function (KEY, exec) { var fn = (core.Object || {})[KEY] || Object[KEY]; var exp = {}; exp[KEY] = exec(fn); $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp); }; /***/ }), /***/ "5f1b": /***/ (function(module, exports, __nested_webpack_require_25845__) { "use strict"; var classof = __nested_webpack_require_25845__("23c6"); var builtinExec = RegExp.prototype.exec; // `RegExpExec` abstract operation // https://tc39.github.io/ecma262/#sec-regexpexec module.exports = function (R, S) { var exec = R.exec; if (typeof exec === 'function') { var result = exec.call(R, S); if (typeof result !== 'object') { throw new TypeError('RegExp exec method returned something other than an Object or null'); } return result; } if (classof(R) !== 'RegExp') { throw new TypeError('RegExp#exec called on incompatible receiver'); } return builtinExec.call(R, S); }; /***/ }), /***/ "613b": /***/ (function(module, exports, __nested_webpack_require_26551__) { var shared = __nested_webpack_require_26551__("5537")('keys'); var uid = __nested_webpack_require_26551__("ca5a"); module.exports = function (key) { return shared[key] || (shared[key] = uid(key)); }; /***/ }), /***/ "626a": /***/ (function(module, exports, __nested_webpack_require_26811__) { // fallback for non-array-like ES3 and non-enumerable old V8 strings var cof = __nested_webpack_require_26811__("2d95"); // eslint-disable-next-line no-prototype-builtins module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { return cof(it) == 'String' ? it.split('') : Object(it); }; /***/ }), /***/ "6762": /***/ (function(module, exports, __nested_webpack_require_27194__) { "use strict"; // https://github.com/tc39/Array.prototype.includes var $export = __nested_webpack_require_27194__("5ca1"); var $includes = __nested_webpack_require_27194__("c366")(true); $export($export.P, 'Array', { includes: function includes(el /* , fromIndex = 0 */) { return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); } }); __nested_webpack_require_27194__("9c6c")('includes'); /***/ }), /***/ "6821": /***/ (function(module, exports, __nested_webpack_require_27659__) { // to indexed object, toObject with fallback for non-array-like ES3 strings var IObject = __nested_webpack_require_27659__("626a"); var defined = __nested_webpack_require_27659__("be13"); module.exports = function (it) { return IObject(defined(it)); }; /***/ }), /***/ "69a8": /***/ (function(module, exports) { var hasOwnProperty = {}.hasOwnProperty; module.exports = function (it, key) { return hasOwnProperty.call(it, key); }; /***/ }), /***/ "6a99": /***/ (function(module, exports, __nested_webpack_require_28155__) { // 7.1.1 ToPrimitive(input [, PreferredType]) var isObject = __nested_webpack_require_28155__("d3f4"); // instead of the ES6 spec version, we didn't implement @@toPrimitive case // and the second argument - flag - preferred type is a string module.exports = function (it, S) { if (!isObject(it)) return it; var fn, val; if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; throw TypeError("Can't convert object to primitive value"); }; /***/ }), /***/ "7333": /***/ (function(module, exports, __nested_webpack_require_28898__) { "use strict"; // 19.1.2.1 Object.assign(target, source, ...) var getKeys = __nested_webpack_require_28898__("0d58"); var gOPS = __nested_webpack_require_28898__("2621"); var pIE = __nested_webpack_require_28898__("52a7"); var toObject = __nested_webpack_require_28898__("4bf8"); var IObject = __nested_webpack_require_28898__("626a"); var $assign = Object.assign; // should work with symbols and should have deterministic property order (V8 bug) module.exports = !$assign || __nested_webpack_require_28898__("79e5")(function () { var A = {}; var B = {}; // eslint-disable-next-line no-undef var S = Symbol(); var K = 'abcdefghijklmnopqrst'; A[S] = 7; K.split('').forEach(function (k) { B[k] = k; }); return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; }) ? function assign(target, source) { // eslint-disable-line no-unused-vars var T = toObject(target); var aLen = arguments.length; var index = 1; var getSymbols = gOPS.f; var isEnum = pIE.f; while (aLen > index) { var S = IObject(arguments[index++]); var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); var length = keys.length; var j = 0; var key; while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key]; } return T; } : $assign; /***/ }), /***/ "7726": /***/ (function(module, exports) { // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self // eslint-disable-next-line no-new-func : Function('return this')(); if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef /***/ }), /***/ "77f1": /***/ (function(module, exports, __nested_webpack_require_30635__) { var toInteger = __nested_webpack_require_30635__("4588"); var max = Math.max; var min = Math.min; module.exports = function (index, length) { index = toInteger(index); return index < 0 ? max(index + length, 0) : min(index, length); }; /***/ }), /***/ "79e5": /***/ (function(module, exports) { module.exports = function (exec) { try { return !!exec(); } catch (e) { return true; } }; /***/ }), /***/ "7f20": /***/ (function(module, exports, __nested_webpack_require_31112__) { var def = __nested_webpack_require_31112__("86cc").f; var has = __nested_webpack_require_31112__("69a8"); var TAG = __nested_webpack_require_31112__("2b4c")('toStringTag'); module.exports = function (it, tag, stat) { if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); }; /***/ }), /***/ "8378": /***/ (function(module, exports) { var core = module.exports = { version: '2.6.5' }; if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef /***/ }), /***/ "84f2": /***/ (function(module, exports) { module.exports = {}; /***/ }), /***/ "86cc": /***/ (function(module, exports, __nested_webpack_require_31751__) { var anObject = __nested_webpack_require_31751__("cb7c"); var IE8_DOM_DEFINE = __nested_webpack_require_31751__("c69a"); var toPrimitive = __nested_webpack_require_31751__("6a99"); var dP = Object.defineProperty; exports.f = __nested_webpack_require_31751__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) { anObject(O); P = toPrimitive(P, true); anObject(Attributes); if (IE8_DOM_DEFINE) try { return dP(O, P, Attributes); } catch (e) { /* empty */ } if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); if ('value' in Attributes) O[P] = Attributes.value; return O; }; /***/ }), /***/ "9b43": /***/ (function(module, exports, __nested_webpack_require_32441__) { // optional / simple context binding var aFunction = __nested_webpack_require_32441__("d8e8"); module.exports = function (fn, that, length) { aFunction(fn); if (that === undefined) return fn; switch (length) { case 1: return function (a) { return fn.call(that, a); }; case 2: return function (a, b) { return fn.call(that, a, b); }; case 3: return function (a, b, c) { return fn.call(that, a, b, c); }; } return function (/* ...args */) { return fn.apply(that, arguments); }; }; /***/ }), /***/ "9c6c": /***/ (function(module, exports, __nested_webpack_require_33048__) { // 22.1.3.31 Array.prototype[@@unscopables] var UNSCOPABLES = __nested_webpack_require_33048__("2b4c")('unscopables'); var ArrayProto = Array.prototype; if (ArrayProto[UNSCOPABLES] == undefined) __nested_webpack_require_33048__("32e9")(ArrayProto, UNSCOPABLES, {}); module.exports = function (key) { ArrayProto[UNSCOPABLES][key] = true; }; /***/ }), /***/ "9def": /***/ (function(module, exports, __nested_webpack_require_33448__) { // 7.1.15 ToLength var toInteger = __nested_webpack_require_33448__("4588"); var min = Math.min; module.exports = function (it) { return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 }; /***/ }), /***/ "9e1e": /***/ (function(module, exports, __nested_webpack_require_33750__) { // Thank's IE8 for his funny defineProperty module.exports = !__nested_webpack_require_33750__("79e5")(function () { return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; }); /***/ }), /***/ "a352": /***/ (function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE_a352__; /***/ }), /***/ "a481": /***/ (function(module, exports, __nested_webpack_require_34139__) { "use strict"; var anObject = __nested_webpack_require_34139__("cb7c"); var toObject = __nested_webpack_require_34139__("4bf8"); var toLength = __nested_webpack_require_34139__("9def"); var toInteger = __nested_webpack_require_34139__("4588"); var advanceStringIndex = __nested_webpack_require_34139__("0390"); var regExpExec = __nested_webpack_require_34139__("5f1b"); var max = Math.max; var min = Math.min; var floor = Math.floor; var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g; var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g; var maybeToString = function (it) { return it === undefined ? it : String(it); }; // @@replace logic __nested_webpack_require_34139__("214f")('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) { return [ // `String.prototype.replace` method // https://tc39.github.io/ecma262/#sec-string.prototype.replace function replace(searchValue, replaceValue) { var O = defined(this); var fn = searchValue == undefined ? undefined : searchValue[REPLACE]; return fn !== undefined ? fn.call(searchValue, O, replaceValue) : $replace.call(String(O), searchValue, replaceValue); }, // `RegExp.prototype[@@replace]` method // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace function (regexp, replaceValue) { var res = maybeCallNative($replace, regexp, this, replaceValue); if (res.done) return res.value; var rx = anObject(regexp); var S = String(this); var functionalReplace = typeof replaceValue === 'function'; if (!functionalReplace) replaceValue = String(replaceValue); var global = rx.global; if (global) { var fullUnicode = rx.unicode; rx.lastIndex = 0; } var results = []; while (true) { var result = regExpExec(rx, S); if (result === null) break; results.push(result); if (!global) break; var matchStr = String(result[0]); if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); } var accumulatedResult = ''; var nextSourcePosition = 0; for (var i = 0; i < results.length; i++) { result = results[i]; var matched = String(result[0]); var position = max(min(toInteger(result.index), S.length), 0); var captures = []; // NOTE: This is equivalent to // captures = result.slice(1).map(maybeToString) // but for some reason `nativeSlice.call(result, 1, result.length)` (called in // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it. for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j])); var namedCaptures = result.groups; if (functionalReplace) { var replacerArgs = [matched].concat(captures, position, S); if (namedCaptures !== undefined) replacerArgs.push(namedCaptures); var replacement = String(replaceValue.apply(undefined, replacerArgs)); } else { replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); } if (position >= nextSourcePosition) { accumulatedResult += S.slice(nextSourcePosition, position) + replacement; nextSourcePosition = position + matched.length; } } return accumulatedResult + S.slice(nextSourcePosition); } ]; // https://tc39.github.io/ecma262/#sec-getsubstitution function getSubstitution(matched, str, position, captures, namedCaptures, replacement) { var tailPos = position + matched.length; var m = captures.length; var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; if (namedCaptures !== undefined) { namedCaptures = toObject(namedCaptures); symbols = SUBSTITUTION_SYMBOLS; } return $replace.call(replacement, symbols, function (match, ch) { var capture; switch (ch.charAt(0)) { case '$': return '$'; case '&': return matched; case '`': return str.slice(0, position); case "'": return str.slice(tailPos); case '<': capture = namedCaptures[ch.slice(1, -1)]; break; default: // \d\d? var n = +ch; if (n === 0) return match; if (n > m) { var f = floor(n / 10); if (f === 0) return match; if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1); return match; } capture = captures[n - 1]; } return capture === undefined ? '' : capture; }); } }); /***/ }), /***/ "aae3": /***/ (function(module, exports, __nested_webpack_require_38885__) { // 7.2.8 IsRegExp(argument) var isObject = __nested_webpack_require_38885__("d3f4"); var cof = __nested_webpack_require_38885__("2d95"); var MATCH = __nested_webpack_require_38885__("2b4c")('match'); module.exports = function (it) { var isRegExp; return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); }; /***/ }), /***/ "ac6a": /***/ (function(module, exports, __nested_webpack_require_39282__) { var $iterators = __nested_webpack_require_39282__("cadf"); var getKeys = __nested_webpack_require_39282__("0d58"); var redefine = __nested_webpack_require_39282__("2aba"); var global = __nested_webpack_require_39282__("7726"); var hide = __nested_webpack_require_39282__("32e9"); var Iterators = __nested_webpack_require_39282__("84f2"); var wks = __nested_webpack_require_39282__("2b4c"); var ITERATOR = wks('iterator'); var TO_STRING_TAG = wks('toStringTag'); var ArrayValues = Iterators.Array; var DOMIterables = { CSSRuleList: true, // TODO: Not spec compliant, should be false. CSSStyleDeclaration: false, CSSValueList: false, ClientRectList: false, DOMRectList: false, DOMStringList: false, DOMTokenList: true, DataTransferItemList: false, FileList: false, HTMLAllCollection: false, HTMLCollection: false, HTMLFormElement: false, HTMLSelectElement: false, MediaList: true, // TODO: Not spec compliant, should be false. MimeTypeArray: false, NamedNodeMap: false, NodeList: true, PaintRequestList: false, Plugin: false, PluginArray: false, SVGLengthList: false, SVGNumberList: false, SVGPathSegList: false, SVGPointList: false, SVGStringList: false, SVGTransformList: false, SourceBufferList: false, StyleSheetList: true, // TODO: Not spec compliant, should be false. TextTrackCueList: false, TextTrackList: false, TouchList: false }; for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) { var NAME = collections[i]; var explicit = DOMIterables[NAME]; var Collection = global[NAME]; var proto = Collection && Collection.prototype; var key; if (proto) { if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); Iterators[NAME] = ArrayValues; if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true); } } /***/ }), /***/ "b0c5": /***/ (function(module, exports, __nested_webpack_require_41209__) { "use strict"; var regexpExec = __nested_webpack_require_41209__("520a"); __nested_webpack_require_41209__("5ca1")({ target: 'RegExp', proto: true, forced: regexpExec !== /./.exec }, { exec: regexpExec }); /***/ }), /***/ "be13": /***/ (function(module, exports) { // 7.2.1 RequireObjectCoercible(argument) module.exports = function (it) { if (it == undefined) throw TypeError("Can't call method on " + it); return it; }; /***/ }), /***/ "c366": /***/ (function(module, exports, __nested_webpack_require_41706__) { // false -> Array#indexOf // true -> Array#includes var toIObject = __nested_webpack_require_41706__("6821"); var toLength = __nested_webpack_require_41706__("9def"); var toAbsoluteIndex = __nested_webpack_require_41706__("77f1"); module.exports = function (IS_INCLUDES) { return function ($this, el, fromIndex) { var O = toIObject($this); var length = toLength(O.length); var index = toAbsoluteIndex(fromIndex, length); var value; // Array#includes uses SameValueZero equality algorithm // eslint-disable-next-line no-self-compare if (IS_INCLUDES && el != el) while (length > index) { value = O[index++]; // eslint-disable-next-line no-self-compare if (value != value) return true; // Array#indexOf ignores holes, Array#includes - not } else for (;length > index; index++) if (IS_INCLUDES || index in O) { if (O[index] === el) return IS_INCLUDES || index || 0; } return !IS_INCLUDES && -1; }; }; /***/ }), /***/ "c649": /***/ (function(module, __webpack_exports__, __nested_webpack_require_42729__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __nested_webpack_require_42729__.d(__webpack_exports__, "c", function() { return insertNodeAt; }); /* harmony export (binding) */ __nested_webpack_require_42729__.d(__webpack_exports__, "a", function() { return camelize; }); /* harmony export (binding) */ __nested_webpack_require_42729__.d(__webpack_exports__, "b", function() { return console; }); /* harmony export (binding) */ __nested_webpack_require_42729__.d(__webpack_exports__, "d", function() { return removeNode; }); /* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_42729__("a481"); /* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_42729__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__); function getConsole() { if (typeof window !== "undefined") { return window.console; } return global.console; } var console = getConsole(); function cached(fn) { var cache = Object.create(null); return function cachedFn(str) { var hit = cache[str]; return hit || (cache[str] = fn(str)); }; } var regex = /-(\w)/g; var camelize = cached(function (str) { return str.replace(regex, function (_, c) { return c ? c.toUpperCase() : ""; }); }); function removeNode(node) { if (node.parentElement !== null) { node.parentElement.removeChild(node); } } function insertNodeAt(fatherNode, node, position) { var refNode = position === 0 ? fatherNode.children[0] : fatherNode.children[position - 1].nextSibling; fatherNode.insertBefore(node, refNode); } /* WEBPACK VAR INJECTION */}.call(this, __nested_webpack_require_42729__("c8ba"))) /***/ }), /***/ "c69a": /***/ (function(module, exports, __nested_webpack_require_44512__) { module.exports = !__nested_webpack_require_44512__("9e1e") && !__nested_webpack_require_44512__("79e5")(function () { return Object.defineProperty(__nested_webpack_require_44512__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7; }); /***/ }), /***/ "c8ba": /***/ (function(module, exports) { var g; // This works in non-strict mode g = (function() { return this; })(); try { // This works if eval is allowed (see CSP) g = g || new Function("return this")(); } catch (e) { // This works if the window reference is available if (typeof window === "object") g = window; } // g can still be undefined, but nothing to do about it... // We return undefined, instead of nothing here, so it's // easier to handle this case. if(!global) { ...} module.exports = g; /***/ }), /***/ "ca5a": /***/ (function(module, exports) { var id = 0; var px = Math.random(); module.exports = function (key) { return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); }; /***/ }), /***/ "cadf": /***/ (function(module, exports, __nested_webpack_require_45568__) { "use strict"; var addToUnscopables = __nested_webpack_require_45568__("9c6c"); var step = __nested_webpack_require_45568__("d53b"); var Iterators = __nested_webpack_require_45568__("84f2"); var toIObject = __nested_webpack_require_45568__("6821"); // 22.1.3.4 Array.prototype.entries() // 22.1.3.13 Array.prototype.keys() // 22.1.3.29 Array.prototype.values() // 22.1.3.30 Array.prototype[@@iterator]() module.exports = __nested_webpack_require_45568__("01f9")(Array, 'Array', function (iterated, kind) { this._t = toIObject(iterated); // target this._i = 0; // next index this._k = kind; // kind // 22.1.5.2.1 %ArrayIteratorPrototype%.next() }, function () { var O = this._t; var kind = this._k; var index = this._i++; if (!O || index >= O.length) { this._t = undefined; return step(1); } if (kind == 'keys') return step(0, index); if (kind == 'values') return step(0, O[index]); return step(0, [index, O[index]]); }, 'values'); // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) Iterators.Arguments = Iterators.Array; addToUnscopables('keys'); addToUnscopables('values'); addToUnscopables('entries'); /***/ }), /***/ "cb7c": /***/ (function(module, exports, __nested_webpack_require_46777__) { var isObject = __nested_webpack_require_46777__("d3f4"); module.exports = function (it) { if (!isObject(it)) throw TypeError(it + ' is not an object!'); return it; }; /***/ }), /***/ "ce10": /***/ (function(module, exports, __nested_webpack_require_47019__) { var has = __nested_webpack_require_47019__("69a8"); var toIObject = __nested_webpack_require_47019__("6821"); var arrayIndexOf = __nested_webpack_require_47019__("c366")(false); var IE_PROTO = __nested_webpack_require_47019__("613b")('IE_PROTO'); module.exports = function (object, names) { var O = toIObject(object); var i = 0; var result = []; var key; for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); // Don't enum bug & hidden keys while (names.length > i) if (has(O, key = names[i++])) { ~arrayIndexOf(result, key) || result.push(key); } return result; }; /***/ }), /***/ "d2c8": /***/ (function(module, exports, __nested_webpack_require_47655__) { // helper for String#{startsWith, endsWith, includes} var isRegExp = __nested_webpack_require_47655__("aae3"); var defined = __nested_webpack_require_47655__("be13"); module.exports = function (that, searchString, NAME) { if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!"); return String(defined(that)); }; /***/ }), /***/ "d3f4": /***/ (function(module, exports) { module.exports = function (it) { return typeof it === 'object' ? it !== null : typeof it === 'function'; }; /***/ }), /***/ "d53b": /***/ (function(module, exports) { module.exports = function (done, value) { return { value: value, done: !!done }; }; /***/ }), /***/ "d8e8": /***/ (function(module, exports) { module.exports = function (it) { if (typeof it != 'function') throw TypeError(it + ' is not a function!'); return it; }; /***/ }), /***/ "e11e": /***/ (function(module, exports) { // IE 8- don't enum bug keys module.exports = ( 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' ).split(','); /***/ }), /***/ "f559": /***/ (function(module, exports, __nested_webpack_require_48796__) { "use strict"; // 21.1.3.18 String.prototype.startsWith(searchString [, position ]) var $export = __nested_webpack_require_48796__("5ca1"); var toLength = __nested_webpack_require_48796__("9def"); var context = __nested_webpack_require_48796__("d2c8"); var STARTS_WITH = 'startsWith'; var $startsWith = ''[STARTS_WITH]; $export($export.P + $export.F * __nested_webpack_require_48796__("5147")(STARTS_WITH), 'String', { startsWith: function startsWith(searchString /* , position = 0 */) { var that = context(this, searchString, STARTS_WITH); var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length)); var search = String(searchString); return $startsWith ? $startsWith.call(that, search, index) : that.slice(index, index + search.length) === search; } }); /***/ }), /***/ "f6fd": /***/ (function(module, exports) { // document.currentScript polyfill by Adam Miller // MIT license (function(document){ var currentScript = "currentScript", scripts = document.getElementsByTagName('script'); // Live NodeList collection // If browser needs currentScript polyfill, add get currentScript() to the document object if (!(currentScript in document)) { Object.defineProperty(document, currentScript, { get: function(){ // IE 6-10 supports script readyState // IE 10+ support stack trace try { throw new Error(); } catch (err) { // Find the second match for the "at" string to get file src url from stack. // Specifically works with the format of stack traces in IE. var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1]; // For all scripts on the page, if src matches or if ready state is interactive, return the script tag for(i in scripts){ if(scripts[i].src == res || scripts[i].readyState == "interactive"){ return scripts[i]; } } // If no match, return null return null; } } }); } })(document); /***/ }), /***/ "f751": /***/ (function(module, exports, __nested_webpack_require_50913__) { // 19.1.3.1 Object.assign(target, source) var $export = __nested_webpack_require_50913__("5ca1"); $export($export.S + $export.F, 'Object', { assign: __nested_webpack_require_50913__("7333") }); /***/ }), /***/ "fa5b": /***/ (function(module, exports, __nested_webpack_require_51166__) { module.exports = __nested_webpack_require_51166__("5537")('native-function-to-string', Function.toString); /***/ }), /***/ "fab2": /***/ (function(module, exports, __nested_webpack_require_51344__) { var document = __nested_webpack_require_51344__("7726").document; module.exports = document && document.documentElement; /***/ }), /***/ "fb15": /***/ (function(module, __webpack_exports__, __nested_webpack_require_51548__) { "use strict"; // ESM COMPAT FLAG __nested_webpack_require_51548__.r(__webpack_exports__); // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js // This file is imported into lib/wc client bundles. if (typeof window !== 'undefined') { if (true) { __nested_webpack_require_51548__("f6fd") } var setPublicPath_i if ((setPublicPath_i = window.document.currentScript) && (setPublicPath_i = setPublicPath_i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) { __nested_webpack_require_51548__.p = setPublicPath_i[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/es6.object.assign.js var es6_object_assign = __nested_webpack_require_51548__("f751"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.string.starts-with.js var es6_string_starts_with = __nested_webpack_require_51548__("f559"); // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js var web_dom_iterable = __nested_webpack_require_51548__("ac6a"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js var es6_array_iterator = __nested_webpack_require_51548__("cadf"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js var es6_object_keys = __nested_webpack_require_51548__("456d"); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } // EXTERNAL MODULE: ./node_modules/core-js/modules/es7.array.includes.js var es7_array_includes = __nested_webpack_require_51548__("6762"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.string.includes.js var es6_string_includes = __nested_webpack_require_51548__("2fdb"); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } // EXTERNAL MODULE: external {"commonjs":"sortablejs","commonjs2":"sortablejs","amd":"sortablejs","root":"Sortable"} var external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_ = __nested_webpack_require_51548__("a352"); var external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_default = /*#__PURE__*/__nested_webpack_require_51548__.n(external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_); // EXTERNAL MODULE: ./src/util/helper.js var helper = __nested_webpack_require_51548__("c649"); // CONCATENATED MODULE: ./src/vuedraggable.js function buildAttribute(object, propName, value) { if (value === undefined) { return object; } object = object || {}; object[propName] = value; return object; } function computeVmIndex(vnodes, element) { return vnodes.map(function (elt) { return elt.elm; }).indexOf(element); } function _computeIndexes(slots, children, isTransition, footerOffset) { if (!slots) { return []; } var elmFromNodes = slots.map(function (elt) { return elt.elm; }); var footerIndex = children.length - footerOffset; var rawIndexes = _toConsumableArray(children).map(function (elt, idx) { return idx >= footerIndex ? elmFromNodes.length : elmFromNodes.indexOf(elt); }); return isTransition ? rawIndexes.filter(function (ind) { return ind !== -1; }) : rawIndexes; } function emit(evtName, evtData) { var _this = this; this.$nextTick(function () { return _this.$emit(evtName.toLowerCase(), evtData); }); } function delegateAndEmit(evtName) { var _this2 = this; return function (evtData) { if (_this2.realList !== null) { _this2["onDrag" + evtName](evtData); } emit.call(_this2, evtName, evtData); }; } function isTransitionName(name) { return ["transition-group", "TransitionGroup"].includes(name); } function vuedraggable_isTransition(slots) { if (!slots || slots.length !== 1) { return false; } var _slots = _slicedToArray(slots, 1), componentOptions = _slots[0].componentOptions; if (!componentOptions) { return false; } return isTransitionName(componentOptions.tag); } function getSlot(slot, scopedSlot, key) { return slot[key] || (scopedSlot[key] ? scopedSlot[key]() : undefined); } function computeChildrenAndOffsets(children, slot, scopedSlot) { var headerOffset = 0; var footerOffset = 0; var header = getSlot(slot, scopedSlot, "header"); if (header) { headerOffset = header.length; children = children ? [].concat(_toConsumableArray(header), _toConsumableArray(children)) : _toConsumableArray(header); } var footer = getSlot(slot, scopedSlot, "footer"); if (footer) { footerOffset = footer.length; children = children ? [].concat(_toConsumableArray(children), _toConsumableArray(footer)) : _toConsumableArray(footer); } return { children: children, headerOffset: headerOffset, footerOffset: footerOffset }; } function getComponentAttributes($attrs, componentData) { var attributes = null; var update = function update(name, value) { attributes = buildAttribute(attributes, name, value); }; var attrs = Object.keys($attrs).filter(function (key) { return key === "id" || key.startsWith("data-"); }).reduce(function (res, key) { res[key] = $attrs[key]; return res; }, {}); update("attrs", attrs); if (!componentData) { return attributes; } var on = componentData.on, props = componentData.props, componentDataAttrs = componentData.attrs; update("on", on); update("props", props); Object.assign(attributes.attrs, componentDataAttrs); return attributes; } var eventsListened = ["Start", "Add", "Remove", "Update", "End"]; var eventsToEmit = ["Choose", "Unchoose", "Sort", "Filter", "Clone"]; var readonlyProperties = ["Move"].concat(eventsListened, eventsToEmit).map(function (evt) { return "on" + evt; }); var draggingElement = null; var props = { options: Object, list: { type: Array, required: false, default: null }, value: { type: Array, required: false, default: null }, noTransitionOnDrag: { type: Boolean, default: false }, clone: { type: Function, default: function _default(original) { return original; } }, element: { type: String, default: "div" }, tag: { type: String, default: null }, move: { type: Function, default: null }, componentData: { type: Object, required: false, default: null } }; var draggableComponent = { name: "draggable", inheritAttrs: false, props: props, data: function data() { return { transitionMode: false, noneFunctionalComponentMode: false }; }, render: function render(h) { var slots = this.$slots.default; this.transitionMode = vuedraggable_isTransition(slots); var _computeChildrenAndOf = computeChildrenAndOffsets(slots, this.$slots, this.$scopedSlots), children = _computeChildrenAndOf.children, headerOffset = _computeChildrenAndOf.headerOffset, footerOffset = _computeChildrenAndOf.footerOffset; this.headerOffset = headerOffset; this.footerOffset = footerOffset; var attributes = getComponentAttributes(this.$attrs, this.componentData); return h(this.getTag(), attributes, children); }, created: function created() { if (this.list !== null && this.value !== null) { helper["b" /* console */].error("Value and list props are mutually exclusive! Please set one or another."); } if (this.element !== "div") { helper["b" /* console */].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"); } if (this.options !== undefined) { helper["b" /* console */].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props"); } }, mounted: function mounted() { var _this3 = this; this.noneFunctionalComponentMode = this.getTag().toLowerCase() !== this.$el.nodeName.toLowerCase() && !this.getIsFunctional(); if (this.noneFunctionalComponentMode && this.transitionMode) { throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag())); } var optionsAdded = {}; eventsListened.forEach(function (elt) { optionsAdded["on" + elt] = delegateAndEmit.call(_this3, elt); }); eventsToEmit.forEach(function (elt) { optionsAdded["on" + elt] = emit.bind(_this3, elt); }); var attributes = Object.keys(this.$attrs).reduce(function (res, key) { res[Object(helper["a" /* camelize */])(key)] = _this3.$attrs[key]; return res; }, {}); var options = Object.assign({}, this.options, attributes, optionsAdded, { onMove: function onMove(evt, originalEvent) { return _this3.onDragMove(evt, originalEvent); } }); !("draggable" in options) && (options.draggable = ">*"); this._sortable = new external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_default.a(this.rootContainer, options); this.computeIndexes(); }, beforeDestroy: function beforeDestroy() { if (this._sortable !== undefined) this._sortable.destroy(); }, computed: { rootContainer: function rootContainer() { return this.transitionMode ? this.$el.children[0] : this.$el; }, realList: function realList() { return this.list ? this.list : this.value; } }, watch: { options: { handler: function handler(newOptionValue) { this.updateOptions(newOptionValue); }, deep: true }, $attrs: { handler: function handler(newOptionValue) { this.updateOptions(newOptionValue); }, deep: true }, realList: function realList() { this.computeIndexes(); } }, methods: { getIsFunctional: function getIsFunctional() { var fnOptions = this._vnode.fnOptions; return fnOptions && fnOptions.functional; }, getTag: function getTag() { return this.tag || this.element; }, updateOptions: function updateOptions(newOptionValue) { for (var property in newOptionValue) { var value = Object(helper["a" /* camelize */])(property); if (readonlyProperties.indexOf(value) === -1) { this._sortable.option(value, newOptionValue[property]); } } }, getChildrenNodes: function getChildrenNodes() { if (this.noneFunctionalComponentMode) { return this.$children[0].$slots.default; } var rawNodes = this.$slots.default; return this.transitionMode ? rawNodes[0].child.$slots.default : rawNodes; }, computeIndexes: function computeIndexes() { var _this4 = this; this.$nextTick(function () { _this4.visibleIndexes = _computeIndexes(_this4.getChildrenNodes(), _this4.rootContainer.children, _this4.transitionMode, _this4.footerOffset); }); }, getUnderlyingVm: function getUnderlyingVm(htmlElt) { var index = computeVmIndex(this.getChildrenNodes() || [], htmlElt); if (index === -1) { //Edge case during move callback: related element might be //an element different from collection return null; } var element = this.realList[index]; return { index: index, element: element }; }, getUnderlyingPotencialDraggableComponent: function getUnderlyingPotencialDraggableComponent(_ref) { var vue = _ref.__vue__; if (!vue || !vue.$options || !isTransitionName(vue.$options._componentTag)) { if (!("realList" in vue) && vue.$children.length === 1 && "realList" in vue.$children[0]) return vue.$children[0]; return vue; } return vue.$parent; }, emitChanges: function emitChanges(evt) { var _this5 = this; this.$nextTick(function () { _this5.$emit("change", evt); }); }, alterList: function alterList(onList) { if (this.list) { onList(this.list); return; } var newList = _toConsumableArray(this.value); onList(newList); this.$emit("input", newList); }, spliceList: function spliceList() { var _arguments = arguments; var spliceList = function spliceList(list) { return list.splice.apply(list, _toConsumableArray(_arguments)); }; this.alterList(spliceList); }, updatePosition: function updatePosition(oldIndex, newIndex) { var updatePosition = function updatePosition(list) { return list.splice(newIndex, 0, list.splice(oldIndex, 1)[0]); }; this.alterList(updatePosition); }, getRelatedContextFromMoveEvent: function getRelatedContextFromMoveEvent(_ref2) { var to = _ref2.to, related = _ref2.related; var component = this.getUnderlyingPotencialDraggableComponent(to); if (!component) { return { component: component }; } var list = component.realList; var context = { list: list, component: component }; if (to !== related && list && component.getUnderlyingVm) { var destination = component.getUnderlyingVm(related); if (destination) { return Object.assign(destination, context); } } return context; }, getVmIndex: function getVmIndex(domIndex) { var indexes = this.visibleIndexes; var numberIndexes = indexes.length; return domIndex > numberIndexes - 1 ? numberIndexes : indexes[domIndex]; }, getComponent: function getComponent() { return this.$slots.default[0].componentInstance; }, resetTransitionData: function resetTransitionData(index) { if (!this.noTransitionOnDrag || !this.transitionMode) { return; } var nodes = this.getChildrenNodes(); nodes[index].data = null; var transitionContainer = this.getComponent(); transitionContainer.children = []; transitionContainer.kept = undefined; }, onDragStart: function onDragStart(evt) { this.context = this.getUnderlyingVm(evt.item); evt.item._underlying_vm_ = this.clone(this.context.element); draggingElement = evt.item; }, onDragAdd: function onDragAdd(evt) { var element = evt.item._underlying_vm_; if (element === undefined) { return; } Object(helper["d" /* removeNode */])(evt.item); var newIndex = this.getVmIndex(evt.newIndex); this.spliceList(newIndex, 0, element); this.computeIndexes(); var added = { element: element, newIndex: newIndex }; this.emitChanges({ added: added }); }, onDragRemove: function onDragRemove(evt) { Object(helper["c" /* insertNodeAt */])(this.rootContainer, evt.item, evt.oldIndex); if (evt.pullMode === "clone") { Object(helper["d" /* removeNode */])(evt.clone); return; } var oldIndex = this.context.index; this.spliceList(oldIndex, 1); var removed = { element: this.context.element, oldIndex: oldIndex }; this.resetTransitionData(oldIndex); this.emitChanges({ removed: removed }); }, onDragUpdate: function onDragUpdate(evt) { Object(helper["d" /* removeNode */])(evt.item); Object(helper["c" /* insertNodeAt */])(evt.from, evt.item, evt.oldIndex); var oldIndex = this.context.index; var newIndex = this.getVmIndex(evt.newIndex); this.updatePosition(oldIndex, newIndex); var moved = { element: this.context.element, oldIndex: oldIndex, newIndex: newIndex }; this.emitChanges({ moved: moved }); }, updateProperty: function updateProperty(evt, propertyName) { evt.hasOwnProperty(propertyName) && (evt[propertyName] += this.headerOffset); }, computeFutureIndex: function computeFutureIndex(relatedContext, evt) { if (!relatedContext.element) { return 0; } var domChildren = _toConsumableArray(evt.to.children).filter(function (el) { return el.style["display"] !== "none"; }); var currentDOMIndex = domChildren.indexOf(evt.related); var currentIndex = relatedContext.component.getVmIndex(currentDOMIndex); var draggedInList = domChildren.indexOf(draggingElement) !== -1; return draggedInList || !evt.willInsertAfter ? currentIndex : currentIndex + 1; }, onDragMove: function onDragMove(evt, originalEvent) { var onMove = this.move; if (!onMove || !this.realList) { return true; } var relatedContext = this.getRelatedContextFromMoveEvent(evt); var draggedContext = this.context; var futureIndex = this.computeFutureIndex(relatedContext, evt); Object.assign(draggedContext, { futureIndex: futureIndex }); var sendEvt = Object.assign({}, evt, { relatedContext: relatedContext, draggedContext: draggedContext }); return onMove(sendEvt, originalEvent); }, onDragEnd: function onDragEnd() { this.computeIndexes(); draggingElement = null; } } }; if (typeof window !== "undefined" && "Vue" in window) { window.Vue.component("draggable", draggableComponent); } /* harmony default export */ var vuedraggable = (draggableComponent); // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (vuedraggable); /***/ }) /******/ })["default"]; }); //# sourceMappingURL=vuedraggable.umd.js.map /***/ }) }, 0,[["./resources/admin/js/app.js","/js/manifest","/js/vendor"],["./resources/admin/scss/vendors.scss","/js/manifest","/js/vendor"],["./resources/admin/scss/app.scss","/js/manifest","/js/vendor"],["./public/module/page/admin/scss/builder.scss","/js/manifest","/js/vendor"]]]);