(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("ELEMENT")); else if(typeof define === 'function' && define.amd) define(["ELEMENT"], factory); else if(typeof exports === 'object') exports["eap"] = factory(require("ELEMENT")); else root["eap"] = factory(root["ELEMENT"]); })((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__5f72__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(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, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // 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 /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "fb15"); /******/ }) /************************************************************************/ /******/ ({ /***/ "00fd": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. * * @private * @param {*} value The value to query. * @returns {string} Returns the raw `toStringTag`. */ function getRawTag(value) { var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; try { value[symToStringTag] = undefined; var unmasked = true; } catch (e) {} var result = nativeObjectToString.call(value); if (unmasked) { if (isOwn) { value[symToStringTag] = tag; } else { delete value[symToStringTag]; } } return result; } module.exports = getRawTag; /***/ }), /***/ "03dd": /***/ (function(module, exports, __webpack_require__) { var isPrototype = __webpack_require__("eac5"), nativeKeys = __webpack_require__("57a5"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeys(object) { if (!isPrototype(object)) { return nativeKeys(object); } var result = []; for (var key in Object(object)) { if (hasOwnProperty.call(object, key) && key != 'constructor') { result.push(key); } } return result; } module.exports = baseKeys; /***/ }), /***/ "0644": /***/ (function(module, exports, __webpack_require__) { var baseClone = __webpack_require__("3818"); /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4; /** * This method is like `_.clone` except that it recursively clones `value`. * * @static * @memberOf _ * @since 1.0.0 * @category Lang * @param {*} value The value to recursively clone. * @returns {*} Returns the deep cloned value. * @see _.clone * @example * * var objects = [{ 'a': 1 }, { 'b': 2 }]; * * var deep = _.cloneDeep(objects); * console.log(deep[0] === objects[0]); * // => false */ function cloneDeep(value) { return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); } module.exports = cloneDeep; /***/ }), /***/ "07c7": /***/ (function(module, exports) { /** * This method returns `false`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * * _.times(2, _.stubFalse); * // => [false, false] */ function stubFalse() { return false; } module.exports = stubFalse; /***/ }), /***/ "07df": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 _ITF2 = __webpack_require__("3c7c"); var _ITF3 = _interopRequireDefault(_ITF2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Calculate the checksum digit var checksum = function checksum(data) { var res = data.substr(0, 13).split('').map(function (num) { return parseInt(num, 10); }).reduce(function (sum, n, idx) { return sum + n * (3 - idx % 2 * 2); }, 0); return Math.ceil(res / 10) * 10 - res; }; var ITF14 = function (_ITF) { _inherits(ITF14, _ITF); function ITF14(data, options) { _classCallCheck(this, ITF14); // Add checksum if it does not exist if (data.search(/^[0-9]{13}$/) !== -1) { data += checksum(data); } return _possibleConstructorReturn(this, (ITF14.__proto__ || Object.getPrototypeOf(ITF14)).call(this, data, options)); } _createClass(ITF14, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{14}$/) !== -1 && +this.data[13] === checksum(this.data); } }]); return ITF14; }(_ITF3.default); exports.default = ITF14; /***/ }), /***/ "087d": /***/ (function(module, exports) { /** * Appends the elements of `values` to `array`. * * @private * @param {Array} array The array to modify. * @param {Array} values The values to append. * @returns {Array} Returns `array`. */ function arrayPush(array, values) { var index = -1, length = values.length, offset = array.length; while (++index < length) { array[offset + index] = values[index]; } return array; } module.exports = arrayPush; /***/ }), /***/ "0a06": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var buildURL = __webpack_require__("30b5"); var InterceptorManager = __webpack_require__("f6b4"); var dispatchRequest = __webpack_require__("5270"); var mergeConfig = __webpack_require__("4a7b"); /** * Create a new instance of Axios * * @param {Object} instanceConfig The default config for the instance */ function Axios(instanceConfig) { this.defaults = instanceConfig; this.interceptors = { request: new InterceptorManager(), response: new InterceptorManager() }; } /** * Dispatch a request * * @param {Object} config The config specific for this request (merged with this.defaults) */ Axios.prototype.request = function request(config) { /*eslint no-param-reassign:0*/ // Allow for axios('example/url'[, config]) a la fetch API if (typeof config === 'string') { config = arguments[1] || {}; config.url = arguments[0]; } else { config = config || {}; } config = mergeConfig(this.defaults, config); // Set config.method if (config.method) { config.method = config.method.toLowerCase(); } else if (this.defaults.method) { config.method = this.defaults.method.toLowerCase(); } else { config.method = 'get'; } // Hook up interceptors middleware var chain = [dispatchRequest, undefined]; var promise = Promise.resolve(config); this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { chain.unshift(interceptor.fulfilled, interceptor.rejected); }); this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { chain.push(interceptor.fulfilled, interceptor.rejected); }); while (chain.length) { promise = promise.then(chain.shift(), chain.shift()); } return promise; }; Axios.prototype.getUri = function getUri(config) { config = mergeConfig(this.defaults, config); return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ''); }; // Provide aliases for supported request methods utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { /*eslint func-names:0*/ Axios.prototype[method] = function(url, config) { return this.request(mergeConfig(config || {}, { method: method, url: url })); }; }); utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { /*eslint func-names:0*/ Axios.prototype[method] = function(url, data, config) { return this.request(mergeConfig(config || {}, { method: method, url: url, data: data })); }; }); module.exports = Axios; /***/ }), /***/ "0b07": /***/ (function(module, exports, __webpack_require__) { var baseIsNative = __webpack_require__("34ac"), getValue = __webpack_require__("3698"); /** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = getValue(object, key); return baseIsNative(value) ? value : undefined; } module.exports = getNative; /***/ }), /***/ "0d24": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__("2b3e"), stubFalse = __webpack_require__("07c7"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Built-in value references. */ var Buffer = moduleExports ? root.Buffer : undefined; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; /** * Checks if `value` is a buffer. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. * @example * * _.isBuffer(new Buffer(2)); * // => true * * _.isBuffer(new Uint8Array(2)); * // => false */ var isBuffer = nativeIsBuffer || stubFalse; module.exports = isBuffer; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "0df6": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Syntactic sugar for invoking a function and expanding an array for arguments. * * Common use case would be to use `Function.prototype.apply`. * * ```js * function f(x, y, z) {} * var args = [1, 2, 3]; * f.apply(null, args); * ``` * * With `spread` this example can be re-written. * * ```js * spread(function(x, y, z) {})([1, 2, 3]); * ``` * * @param {Function} callback * @returns {Function} */ module.exports = function spread(callback) { return function wrap(arr) { return callback.apply(null, arr); }; }; /***/ }), /***/ "0f0f": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keysIn = __webpack_require__("9934"); /** * The base implementation of `_.assignIn` without support for multiple sources * or `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssignIn(object, source) { return object && copyObject(source, keysIn(source), object); } module.exports = baseAssignIn; /***/ }), /***/ "100e": /***/ (function(module, exports, __webpack_require__) { var identity = __webpack_require__("cd9d"), overRest = __webpack_require__("2286"), setToString = __webpack_require__("c1c9"); /** * The base implementation of `_.rest` which doesn't validate or coerce arguments. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @returns {Function} Returns the new function. */ function baseRest(func, start) { return setToString(overRest(func, start, identity), func + ''); } module.exports = baseRest; /***/ }), /***/ "1041": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), getSymbolsIn = __webpack_require__("a029"); /** * Copies own and inherited symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. * @param {Object} [object={}] The object to copy symbols to. * @returns {Object} Returns `object`. */ function copySymbolsIn(source, object) { return copyObject(source, getSymbolsIn(source), object); } module.exports = copySymbolsIn; /***/ }), /***/ "124f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation // https://en.wikipedia.org/wiki/MSI_Barcode#Character_set_and_binary_lookup var MSI = function (_Barcode) { _inherits(MSI, _Barcode); function MSI(data, options) { _classCallCheck(this, MSI); return _possibleConstructorReturn(this, (MSI.__proto__ || Object.getPrototypeOf(MSI)).call(this, data, options)); } _createClass(MSI, [{ key: "encode", value: function encode() { // Start bits var ret = "110"; for (var i = 0; i < this.data.length; i++) { // Convert the character to binary (always 4 binary digits) var digit = parseInt(this.data[i]); var bin = digit.toString(2); bin = addZeroes(bin, 4 - bin.length); // Add 100 for every zero and 110 for every 1 for (var b = 0; b < bin.length; b++) { ret += bin[b] == "0" ? "100" : "110"; } } // End bits ret += "1001"; return { data: ret, text: this.text }; } }, { key: "valid", value: function valid() { return this.data.search(/^[0-9]+$/) !== -1; } }]); return MSI; }(_Barcode3.default); function addZeroes(number, n) { for (var i = 0; i < n; i++) { number = "0" + number; } return number; } exports.default = MSI; /***/ }), /***/ "1290": /***/ (function(module, exports) { /** * Checks if `value` is suitable for use as unique object key. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ function isKeyable(value) { var type = typeof value; return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') ? (value !== '__proto__') : (value === null); } module.exports = isKeyable; /***/ }), /***/ "1310": /***/ (function(module, exports) { /** * Checks if `value` is object-like. A value is object-like if it's not `null` * and has a `typeof` result of "object". * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * * _.isObjectLike({}); * // => true * * _.isObjectLike([1, 2, 3]); * // => true * * _.isObjectLike(_.noop); * // => false * * _.isObjectLike(null); * // => false */ function isObjectLike(value) { return value != null && typeof value == 'object'; } module.exports = isObjectLike; /***/ }), /***/ "1368": /***/ (function(module, exports, __webpack_require__) { var coreJsData = __webpack_require__("da03"); /** Used to detect methods masquerading as native. */ var maskSrcKey = (function() { var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); return uid ? ('Symbol(src)_1.' + uid) : ''; }()); /** * Checks if `func` has its source masked. * * @private * @param {Function} func The function to check. * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ function isMasked(func) { return !!maskSrcKey && (maskSrcKey in func); } module.exports = isMasked; /***/ }), /***/ "18d8": /***/ (function(module, exports, __webpack_require__) { var memoizeCapped = __webpack_require__("234d"); /** Used to match property names within property paths. */ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; /** Used to match backslashes in property paths. */ var reEscapeChar = /\\(\\)?/g; /** * Converts `string` to a property path array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the property path array. */ var stringToPath = memoizeCapped(function(string) { var result = []; if (string.charCodeAt(0) === 46 /* . */) { result.push(''); } string.replace(rePropName, function(match, number, quote, subString) { result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match)); }); return result; }); module.exports = stringToPath; /***/ }), /***/ "1a2d": /***/ (function(module, exports, __webpack_require__) { var getTag = __webpack_require__("42a2"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var mapTag = '[object Map]'; /** * The base implementation of `_.isMap` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a map, else `false`. */ function baseIsMap(value) { return isObjectLike(value) && getTag(value) == mapTag; } module.exports = baseIsMap; /***/ }), /***/ "1a8c": /***/ (function(module, exports) { /** * Checks if `value` is the * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(_.noop); * // => true * * _.isObject(null); * // => false */ function isObject(value) { var type = typeof value; return value != null && (type == 'object' || type == 'function'); } module.exports = isObject; /***/ }), /***/ "1ba5": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; var _EAN2 = __webpack_require__("bdfe"); var _EAN3 = _interopRequireDefault(_EAN2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // http://www.barcodeisland.com/ean8.phtml // Calculate the checksum digit var checksum = function checksum(number) { var res = number.substr(0, 7).split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a : sum + a * 3; }, 0); return (10 - res % 10) % 10; }; var EAN8 = function (_EAN) { _inherits(EAN8, _EAN); function EAN8(data, options) { _classCallCheck(this, EAN8); // Add checksum if it does not exist if (data.search(/^[0-9]{7}$/) !== -1) { data += checksum(data); } return _possibleConstructorReturn(this, (EAN8.__proto__ || Object.getPrototypeOf(EAN8)).call(this, data, options)); } _createClass(EAN8, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{8}$/) !== -1 && +this.data[7] === checksum(this.data); } }, { key: 'leftText', value: function leftText() { return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'leftText', this).call(this, 0, 4); } }, { key: 'leftEncode', value: function leftEncode() { var data = this.data.substr(0, 4); return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'leftEncode', this).call(this, data, 'LLLL'); } }, { key: 'rightText', value: function rightText() { return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'rightText', this).call(this, 4, 4); } }, { key: 'rightEncode', value: function rightEncode() { var data = this.data.substr(4, 4); return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'rightEncode', this).call(this, data, 'RRRR'); } }]); return EAN8; }(_EAN3.default); exports.default = EAN8; /***/ }), /***/ "1bac": /***/ (function(module, exports, __webpack_require__) { var baseGetAllKeys = __webpack_require__("7d1f"), getSymbolsIn = __webpack_require__("a029"), keysIn = __webpack_require__("9934"); /** * Creates an array of own and inherited enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names and symbols. */ function getAllKeysIn(object) { return baseGetAllKeys(object, keysIn, getSymbolsIn); } module.exports = getAllKeysIn; /***/ }), /***/ "1cec": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Promise = getNative(root, 'Promise'); module.exports = Promise; /***/ }), /***/ "1d2b": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function bind(fn, thisArg) { return function wrap() { var args = new Array(arguments.length); for (var i = 0; i < args.length; i++) { args[i] = arguments[i]; } return fn.apply(thisArg, args); }; }; /***/ }), /***/ "1efc": /***/ (function(module, exports) { /** * Removes `key` and its value from the hash. * * @private * @name delete * @memberOf Hash * @param {Object} hash The hash to modify. * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete(key) { var result = this.has(key) && delete this.__data__[key]; this.size -= result ? 1 : 0; return result; } module.exports = hashDelete; /***/ }), /***/ "1fc8": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Sets the map `key` to `value`. * * @private * @name set * @memberOf MapCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the map cache instance. */ function mapCacheSet(key, value) { var data = getMapData(this, key), size = data.size; data.set(key, value); this.size += data.size == size ? 0 : 1; return this; } module.exports = mapCacheSet; /***/ }), /***/ "2286": /***/ (function(module, exports, __webpack_require__) { var apply = __webpack_require__("85e3"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max; /** * A specialized version of `baseRest` which transforms the rest array. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @param {Function} transform The rest array transform. * @returns {Function} Returns the new function. */ function overRest(func, start, transform) { start = nativeMax(start === undefined ? (func.length - 1) : start, 0); return function() { var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); while (++index < length) { array[index] = args[start + index]; } index = -1; var otherArgs = Array(start + 1); while (++index < start) { otherArgs[index] = args[index]; } otherArgs[start] = transform(array); return apply(func, this, otherArgs); }; } module.exports = overRest; /***/ }), /***/ "234d": /***/ (function(module, exports, __webpack_require__) { var memoize = __webpack_require__("e380"); /** Used as the maximum memoize cache size. */ var MAX_MEMOIZE_SIZE = 500; /** * A specialized version of `_.memoize` which clears the memoized function's * cache when it exceeds `MAX_MEMOIZE_SIZE`. * * @private * @param {Function} func The function to have its output memoized. * @returns {Function} Returns the new memoized function. */ function memoizeCapped(func) { var result = memoize(func, function(key) { if (cache.size === MAX_MEMOIZE_SIZE) { cache.clear(); } return key; }); var cache = result.cache; return result; } module.exports = memoizeCapped; /***/ }), /***/ "2411": /***/ (function(module, exports, __webpack_require__) { var baseMerge = __webpack_require__("f909"), createAssigner = __webpack_require__("2ec1"); /** * This method is like `_.merge` except that it accepts `customizer` which * is invoked to produce the merged values of the destination and source * properties. If `customizer` returns `undefined`, merging is handled by the * method instead. The `customizer` is invoked with six arguments: * (objValue, srcValue, key, object, source, stack). * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The destination object. * @param {...Object} sources The source objects. * @param {Function} customizer The function to customize assigned values. * @returns {Object} Returns `object`. * @example * * function customizer(objValue, srcValue) { * if (_.isArray(objValue)) { * return objValue.concat(srcValue); * } * } * * var object = { 'a': [1], 'b': [2] }; * var other = { 'a': [3], 'b': [4] }; * * _.mergeWith(object, other, customizer); * // => { 'a': [1, 3], 'b': [2, 4] } */ var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { baseMerge(object, source, srcIndex, customizer); }); module.exports = mergeWith; /***/ }), /***/ "241e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UPCE = exports.UPC = exports.EAN2 = exports.EAN5 = exports.EAN8 = exports.EAN13 = undefined; var _EAN = __webpack_require__("89a2"); var _EAN2 = _interopRequireDefault(_EAN); var _EAN3 = __webpack_require__("1ba5"); var _EAN4 = _interopRequireDefault(_EAN3); var _EAN5 = __webpack_require__("583f"); var _EAN6 = _interopRequireDefault(_EAN5); var _EAN7 = __webpack_require__("a5d2"); var _EAN8 = _interopRequireDefault(_EAN7); var _UPC = __webpack_require__("e8b2"); var _UPC2 = _interopRequireDefault(_UPC); var _UPCE = __webpack_require__("be98"); var _UPCE2 = _interopRequireDefault(_UPCE); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.EAN13 = _EAN2.default; exports.EAN8 = _EAN4.default; exports.EAN5 = _EAN6.default; exports.EAN2 = _EAN8.default; exports.UPC = _UPC2.default; exports.UPCE = _UPCE2.default; /***/ }), /***/ "2444": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) { var utils = __webpack_require__("c532"); var normalizeHeaderName = __webpack_require__("c8af"); var DEFAULT_CONTENT_TYPE = { 'Content-Type': 'application/x-www-form-urlencoded' }; function setContentTypeIfUnset(headers, value) { if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { headers['Content-Type'] = value; } } function getDefaultAdapter() { var adapter; if (typeof XMLHttpRequest !== 'undefined') { // For browsers use XHR adapter adapter = __webpack_require__("b50d"); } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { // For node use HTTP adapter adapter = __webpack_require__("b50d"); } return adapter; } var defaults = { adapter: getDefaultAdapter(), transformRequest: [function transformRequest(data, headers) { normalizeHeaderName(headers, 'Accept'); normalizeHeaderName(headers, 'Content-Type'); if (utils.isFormData(data) || utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data) ) { return data; } if (utils.isArrayBufferView(data)) { return data.buffer; } if (utils.isURLSearchParams(data)) { setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); return data.toString(); } if (utils.isObject(data)) { setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); return JSON.stringify(data); } return data; }], transformResponse: [function transformResponse(data) { /*eslint no-param-reassign:0*/ if (typeof data === 'string') { try { data = JSON.parse(data); } catch (e) { /* Ignore */ } } return data; }], /** * A timeout in milliseconds to abort a request. If set to 0 (default) a * timeout is not created. */ timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: function validateStatus(status) { return status >= 200 && status < 300; } }; defaults.headers = { common: { 'Accept': 'application/json, text/plain, */*' } }; utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { defaults.headers[method] = {}; }); utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); }); module.exports = defaults; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362"))) /***/ }), /***/ "2474": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Built-in value references. */ var Uint8Array = root.Uint8Array; module.exports = Uint8Array; /***/ }), /***/ "2478": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Gets the map value for `key`. * * @private * @name get * @memberOf MapCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function mapCacheGet(key) { return getMapData(this, key).get(key); } module.exports = mapCacheGet; /***/ }), /***/ "2524": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** * Sets the hash `key` to `value`. * * @private * @name set * @memberOf Hash * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the hash instance. */ function hashSet(key, value) { var data = this.__data__; this.size += this.has(key) ? 0 : 1; data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; return this; } module.exports = hashSet; /***/ }), /***/ "253c": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var argsTag = '[object Arguments]'; /** * The base implementation of `_.isArguments`. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, */ function baseIsArguments(value) { return isObjectLike(value) && baseGetTag(value) == argsTag; } module.exports = baseIsArguments; /***/ }), /***/ "28c9": /***/ (function(module, exports) { /** * Removes all key-value entries from the list cache. * * @private * @name clear * @memberOf ListCache */ function listCacheClear() { this.__data__ = []; this.size = 0; } module.exports = listCacheClear; /***/ }), /***/ "29f3": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** * Converts `value` to a string using `Object.prototype.toString`. * * @private * @param {*} value The value to convert. * @returns {string} Returns the converted string. */ function objectToString(value) { return nativeObjectToString.call(value); } module.exports = objectToString; /***/ }), /***/ "2a4a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var START_BIN = exports.START_BIN = '1010'; var END_BIN = exports.END_BIN = '11101'; var BINARIES = exports.BINARIES = ['00110', '10001', '01001', '11000', '00101', '10100', '01100', '00011', '10010', '01010']; /***/ }), /***/ "2b3e": /***/ (function(module, exports, __webpack_require__) { var freeGlobal = __webpack_require__("585a"); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ var root = freeGlobal || freeSelf || Function('return this')(); module.exports = root; /***/ }), /***/ "2d7c": /***/ (function(module, exports) { /** * A specialized version of `_.filter` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {Array} Returns the new filtered array. */ function arrayFilter(array, predicate) { var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; while (++index < length) { var value = array[index]; if (predicate(value, index, array)) { result[resIndex++] = value; } } return result; } module.exports = arrayFilter; /***/ }), /***/ "2d83": /***/ (function(module, exports, __webpack_require__) { "use strict"; var enhanceError = __webpack_require__("387f"); /** * Create an Error with the specified message, config, error code, request and response. * * @param {string} message The error message. * @param {Object} config The config. * @param {string} [code] The error code (for example, 'ECONNABORTED'). * @param {Object} [request] The request. * @param {Object} [response] The response. * @returns {Error} The created error. */ module.exports = function createError(message, config, code, request, response) { var error = new Error(message); return enhanceError(error, config, code, request, response); }; /***/ }), /***/ "2dcb": /***/ (function(module, exports, __webpack_require__) { var overArg = __webpack_require__("91e9"); /** Built-in value references. */ var getPrototype = overArg(Object.getPrototypeOf, Object); module.exports = getPrototype; /***/ }), /***/ "2e67": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function isCancel(value) { return !!(value && value.__CANCEL__); }; /***/ }), /***/ "2ec1": /***/ (function(module, exports, __webpack_require__) { var baseRest = __webpack_require__("100e"), isIterateeCall = __webpack_require__("9aff"); /** * Creates a function like `_.assign`. * * @private * @param {Function} assigner The function to assign values. * @returns {Function} Returns the new assigner function. */ function createAssigner(assigner) { return baseRest(function(object, sources) { var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined, guard = length > 2 ? sources[2] : undefined; customizer = (assigner.length > 3 && typeof customizer == 'function') ? (length--, customizer) : undefined; if (guard && isIterateeCall(sources[0], sources[1], guard)) { customizer = length < 3 ? undefined : customizer; length = 1; } object = Object(object); while (++index < length) { var source = sources[index]; if (source) { assigner(object, source, index, customizer); } } return object; }); } module.exports = createAssigner; /***/ }), /***/ "2fcc": /***/ (function(module, exports) { /** * Removes `key` and its value from the stack. * * @private * @name delete * @memberOf Stack * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function stackDelete(key) { var data = this.__data__, result = data['delete'](key); this.size = data.size; return result; } module.exports = stackDelete; /***/ }), /***/ "30b5": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); function encode(val) { return encodeURIComponent(val). replace(/%3A/gi, ':'). replace(/%24/g, '$'). replace(/%2C/gi, ','). replace(/%20/g, '+'). replace(/%5B/gi, '['). replace(/%5D/gi, ']'); } /** * Build a URL by appending params to the end * * @param {string} url The base of the url (e.g., http://www.google.com) * @param {object} [params] The params to be appended * @returns {string} The formatted url */ module.exports = function buildURL(url, params, paramsSerializer) { /*eslint no-param-reassign:0*/ if (!params) { return url; } var serializedParams; if (paramsSerializer) { serializedParams = paramsSerializer(params); } else if (utils.isURLSearchParams(params)) { serializedParams = params.toString(); } else { var parts = []; utils.forEach(params, function serialize(val, key) { if (val === null || typeof val === 'undefined') { return; } if (utils.isArray(val)) { key = key + '[]'; } else { val = [val]; } utils.forEach(val, function parseValue(v) { if (utils.isDate(v)) { v = v.toISOString(); } else if (utils.isObject(v)) { v = JSON.stringify(v); } parts.push(encode(key) + '=' + encode(v)); }); }); serializedParams = parts.join('&'); } if (serializedParams) { var hashmarkIndex = url.indexOf('#'); if (hashmarkIndex !== -1) { url = url.slice(0, hashmarkIndex); } url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; } return url; }; /***/ }), /***/ "30c9": /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__("9520"), isLength = __webpack_require__("b218"); /** * Checks if `value` is array-like. A value is considered array-like if it's * not a function and has a `value.length` that's an integer greater than or * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @example * * _.isArrayLike([1, 2, 3]); * // => true * * _.isArrayLike(document.body.children); * // => true * * _.isArrayLike('abc'); * // => true * * _.isArrayLike(_.noop); * // => false */ function isArrayLike(value) { return value != null && isLength(value.length) && !isFunction(value); } module.exports = isArrayLike; /***/ }), /***/ "32b3": /***/ (function(module, exports, __webpack_require__) { var baseAssignValue = __webpack_require__("872a"), eq = __webpack_require__("9638"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignValue(object, key, value) { var objValue = object[key]; if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue(object, key, value); } } module.exports = assignValue; /***/ }), /***/ "32f4": /***/ (function(module, exports, __webpack_require__) { var arrayFilter = __webpack_require__("2d7c"), stubArray = __webpack_require__("d327"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetSymbols = Object.getOwnPropertySymbols; /** * Creates an array of the own enumerable symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ var getSymbols = !nativeGetSymbols ? stubArray : function(object) { if (object == null) { return []; } object = Object(object); return arrayFilter(nativeGetSymbols(object), function(symbol) { return propertyIsEnumerable.call(object, symbol); }); }; module.exports = getSymbols; /***/ }), /***/ "349c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CODE39 = undefined; 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 _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Code_39#Encoding var CODE39 = function (_Barcode) { _inherits(CODE39, _Barcode); function CODE39(data, options) { _classCallCheck(this, CODE39); data = data.toUpperCase(); // Calculate mod43 checksum if enabled if (options.mod43) { data += getCharacter(mod43checksum(data)); } return _possibleConstructorReturn(this, (CODE39.__proto__ || Object.getPrototypeOf(CODE39)).call(this, data, options)); } _createClass(CODE39, [{ key: "encode", value: function encode() { // First character is always a * var result = getEncoding("*"); // Take every character and add the binary representation to the result for (var i = 0; i < this.data.length; i++) { result += getEncoding(this.data[i]) + "0"; } // Last character is always a * result += getEncoding("*"); return { data: result, text: this.text }; } }, { key: "valid", value: function valid() { return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/) !== -1; } }]); return CODE39; }(_Barcode3.default); // All characters. The position in the array is the (checksum) value var characters = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", "*"]; // The decimal representation of the characters, is converted to the // corresponding binary with the getEncoding function var encodings = [20957, 29783, 23639, 30485, 20951, 29813, 23669, 20855, 29789, 23645, 29975, 23831, 30533, 22295, 30149, 24005, 21623, 29981, 23837, 22301, 30023, 23879, 30545, 22343, 30161, 24017, 21959, 30065, 23921, 22385, 29015, 18263, 29141, 17879, 29045, 18293, 17783, 29021, 18269, 17477, 17489, 17681, 20753, 35770]; // Get the binary representation of a character by converting the encodings // from decimal to binary function getEncoding(character) { return getBinary(characterValue(character)); } function getBinary(characterValue) { return encodings[characterValue].toString(2); } function getCharacter(characterValue) { return characters[characterValue]; } function characterValue(character) { return characters.indexOf(character); } function mod43checksum(data) { var checksum = 0; for (var i = 0; i < data.length; i++) { checksum += characterValue(data[i]); } checksum = checksum % 43; return checksum; } exports.CODE39 = CODE39; /***/ }), /***/ "34ac": /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__("9520"), isMasked = __webpack_require__("1368"), isObject = __webpack_require__("1a8c"), toSource = __webpack_require__("dc57"); /** * Used to match `RegExp` * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; /** Used to detect host constructors (Safari). */ var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to detect if a method is native. */ var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' ); /** * The base implementation of `_.isNative` without bad shim checks. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a native function, * else `false`. */ function baseIsNative(value) { if (!isObject(value) || isMasked(value)) { return false; } var pattern = isFunction(value) ? reIsNative : reIsHostCtor; return pattern.test(toSource(value)); } module.exports = baseIsNative; /***/ }), /***/ "3698": /***/ (function(module, exports) { /** * Gets the value at `key` of `object`. * * @private * @param {Object} [object] The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function getValue(object, key) { return object == null ? undefined : object[key]; } module.exports = getValue; /***/ }), /***/ "3729": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"), getRawTag = __webpack_require__("00fd"), objectToString = __webpack_require__("29f3"); /** `Object#toString` result references. */ var nullTag = '[object Null]', undefinedTag = '[object Undefined]'; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * The base implementation of `getTag` without fallbacks for buggy environments. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ function baseGetTag(value) { if (value == null) { return value === undefined ? undefinedTag : nullTag; } return (symToStringTag && symToStringTag in Object(value)) ? getRawTag(value) : objectToString(value); } module.exports = baseGetTag; /***/ }), /***/ "3818": /***/ (function(module, exports, __webpack_require__) { var Stack = __webpack_require__("7e64"), arrayEach = __webpack_require__("8057"), assignValue = __webpack_require__("32b3"), baseAssign = __webpack_require__("5b01"), baseAssignIn = __webpack_require__("0f0f"), cloneBuffer = __webpack_require__("e538"), copyArray = __webpack_require__("4359"), copySymbols = __webpack_require__("54eb"), copySymbolsIn = __webpack_require__("1041"), getAllKeys = __webpack_require__("a994"), getAllKeysIn = __webpack_require__("1bac"), getTag = __webpack_require__("42a2"), initCloneArray = __webpack_require__("c87c"), initCloneByTag = __webpack_require__("c2b6"), initCloneObject = __webpack_require__("fa21"), isArray = __webpack_require__("6747"), isBuffer = __webpack_require__("0d24"), isMap = __webpack_require__("cc45"), isObject = __webpack_require__("1a8c"), isSet = __webpack_require__("d7ee"), keys = __webpack_require__("ec69"); /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4; /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]', weakMapTag = '[object WeakMap]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to identify `toStringTag` values supported by `_.clone`. */ var cloneableTags = {}; cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; /** * The base implementation of `_.clone` and `_.cloneDeep` which tracks * traversed objects. * * @private * @param {*} value The value to clone. * @param {boolean} bitmask The bitmask flags. * 1 - Deep clone * 2 - Flatten inherited properties * 4 - Clone symbols * @param {Function} [customizer] The function to customize cloning. * @param {string} [key] The key of `value`. * @param {Object} [object] The parent object of `value`. * @param {Object} [stack] Tracks traversed objects and their clone counterparts. * @returns {*} Returns the cloned value. */ function baseClone(value, bitmask, customizer, key, object, stack) { var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG; if (customizer) { result = object ? customizer(value, key, object, stack) : customizer(value); } if (result !== undefined) { return result; } if (!isObject(value)) { return value; } var isArr = isArray(value); if (isArr) { result = initCloneArray(value); if (!isDeep) { return copyArray(value, result); } } else { var tag = getTag(value), isFunc = tag == funcTag || tag == genTag; if (isBuffer(value)) { return cloneBuffer(value, isDeep); } if (tag == objectTag || tag == argsTag || (isFunc && !object)) { result = (isFlat || isFunc) ? {} : initCloneObject(value); if (!isDeep) { return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value)); } } else { if (!cloneableTags[tag]) { return object ? value : {}; } result = initCloneByTag(value, tag, isDeep); } } // Check for circular references and return its corresponding clone. stack || (stack = new Stack); var stacked = stack.get(value); if (stacked) { return stacked; } stack.set(value, result); if (isSet(value)) { value.forEach(function(subValue) { result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); }); return result; } if (isMap(value)) { value.forEach(function(subValue, key) { result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack)); }); return result; } var keysFunc = isFull ? (isFlat ? getAllKeysIn : getAllKeys) : (isFlat ? keysIn : keys); var props = isArr ? undefined : keysFunc(value); arrayEach(props || value, function(subValue, key) { if (props) { key = subValue; subValue = value[key]; } // Recursively populate clone (susceptible to call stack limits). assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); }); return result; } module.exports = baseClone; /***/ }), /***/ "3852": /***/ (function(module, exports, __webpack_require__) { var baseHas = __webpack_require__("96f3"), hasPath = __webpack_require__("e2c0"); /** * Checks if `path` is a direct property of `object`. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @returns {boolean} Returns `true` if `path` exists, else `false`. * @example * * var object = { 'a': { 'b': 2 } }; * var other = _.create({ 'a': _.create({ 'b': 2 }) }); * * _.has(object, 'a'); * // => true * * _.has(object, 'a.b'); * // => true * * _.has(object, ['a', 'b']); * // => true * * _.has(other, 'a'); * // => false */ function has(object, path) { return object != null && hasPath(object, path, baseHas); } module.exports = has; /***/ }), /***/ "387f": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Update an Error with the specified config, error code, and response. * * @param {Error} error The error to update. * @param {Object} config The config. * @param {string} [code] The error code (for example, 'ECONNABORTED'). * @param {Object} [request] The request. * @param {Object} [response] The response. * @returns {Error} The error. */ module.exports = function enhanceError(error, config, code, request, response) { error.config = config; if (code) { error.code = code; } error.request = request; error.response = response; error.isAxiosError = true; error.toJSON = function toJSON() { return { // Standard message: this.message, name: this.name, // Microsoft description: this.description, number: this.number, // Mozilla fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, // Axios config: this.config, code: this.code }; }; return error; }; /***/ }), /***/ "3934": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = ( utils.isStandardBrowserEnv() ? // Standard browser envs have full support of the APIs needed to test // whether the request URL is of the same origin as current location. (function standardBrowserEnv() { var msie = /(msie|trident)/i.test(navigator.userAgent); var urlParsingNode = document.createElement('a'); var originURL; /** * Parse a URL to discover it's components * * @param {String} url The URL to be parsed * @returns {Object} */ function resolveURL(url) { var href = url; if (msie) { // IE needs attribute set twice to normalize properties urlParsingNode.setAttribute('href', href); href = urlParsingNode.href; } urlParsingNode.setAttribute('href', href); // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils return { href: urlParsingNode.href, protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', host: urlParsingNode.host, search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', hostname: urlParsingNode.hostname, port: urlParsingNode.port, pathname: (urlParsingNode.pathname.charAt(0) === '/') ? urlParsingNode.pathname : '/' + urlParsingNode.pathname }; } originURL = resolveURL(window.location.href); /** * Determine if a URL shares the same origin as the current location * * @param {String} requestURL The URL to test * @returns {boolean} True if URL shares the same origin, otherwise false */ return function isURLSameOrigin(requestURL) { var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; return (parsed.protocol === originURL.protocol && parsed.host === originURL.host); }; })() : // Non standard browser envs (web workers, react-native) lack needed support. (function nonStandardBrowserEnv() { return function isURLSameOrigin() { return true; }; })() ); /***/ }), /***/ "39ff": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var WeakMap = getNative(root, 'WeakMap'); module.exports = WeakMap; /***/ }), /***/ "3b4a": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"); var defineProperty = (function() { try { var func = getNative(Object, 'defineProperty'); func({}, '', {}); return func; } catch (e) {} }()); module.exports = defineProperty; /***/ }), /***/ "3c35": /***/ (function(module, exports) { /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */ module.exports = __webpack_amd_options__; /* WEBPACK VAR INJECTION */}.call(this, {})) /***/ }), /***/ "3c7c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 _constants = __webpack_require__("2a4a"); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var ITF = function (_Barcode) { _inherits(ITF, _Barcode); function ITF() { _classCallCheck(this, ITF); return _possibleConstructorReturn(this, (ITF.__proto__ || Object.getPrototypeOf(ITF)).apply(this, arguments)); } _createClass(ITF, [{ key: 'valid', value: function valid() { return this.data.search(/^([0-9]{2})+$/) !== -1; } }, { key: 'encode', value: function encode() { var _this2 = this; // Calculate all the digit pairs var encoded = this.data.match(/.{2}/g).map(function (pair) { return _this2.encodePair(pair); }).join(''); return { data: _constants.START_BIN + encoded + _constants.END_BIN, text: this.text }; } // Calculate the data of a number pair }, { key: 'encodePair', value: function encodePair(pair) { var second = _constants.BINARIES[pair[1]]; return _constants.BINARIES[pair[0]].split('').map(function (first, idx) { return (first === '1' ? '111' : '1') + (second[idx] === '1' ? '000' : '0'); }).join(''); } }]); return ITF; }(_Barcode3.default); exports.default = ITF; /***/ }), /***/ "3f84": /***/ (function(module, exports, __webpack_require__) { var apply = __webpack_require__("85e3"), baseRest = __webpack_require__("100e"), customDefaultsMerge = __webpack_require__("e031"), mergeWith = __webpack_require__("2411"); /** * This method is like `_.defaults` except that it recursively assigns * default properties. * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 3.10.0 * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. * @see _.defaults * @example * * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } }); * // => { 'a': { 'b': 2, 'c': 3 } } */ var defaultsDeep = baseRest(function(args) { args.push(undefined, customDefaultsMerge); return apply(mergeWith, undefined, args); }); module.exports = defaultsDeep; /***/ }), /***/ "41c3": /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__("1a8c"), isPrototype = __webpack_require__("eac5"), nativeKeysIn = __webpack_require__("ec8c"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeysIn(object) { if (!isObject(object)) { return nativeKeysIn(object); } var isProto = isPrototype(object), result = []; for (var key in object) { if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { result.push(key); } } return result; } module.exports = baseKeysIn; /***/ }), /***/ "4245": /***/ (function(module, exports, __webpack_require__) { var isKeyable = __webpack_require__("1290"); /** * Gets the data for `map`. * * @private * @param {Object} map The map to query. * @param {string} key The reference key. * @returns {*} Returns the map data. */ function getMapData(map, key) { var data = map.__data__; return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map; } module.exports = getMapData; /***/ }), /***/ "42a2": /***/ (function(module, exports, __webpack_require__) { var DataView = __webpack_require__("b5a7"), Map = __webpack_require__("79bc"), Promise = __webpack_require__("1cec"), Set = __webpack_require__("c869"), WeakMap = __webpack_require__("39ff"), baseGetTag = __webpack_require__("3729"), toSource = __webpack_require__("dc57"); /** `Object#toString` result references. */ var mapTag = '[object Map]', objectTag = '[object Object]', promiseTag = '[object Promise]', setTag = '[object Set]', weakMapTag = '[object WeakMap]'; var dataViewTag = '[object DataView]'; /** Used to detect maps, sets, and weakmaps. */ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap); /** * Gets the `toStringTag` of `value`. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ var getTag = baseGetTag; // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || (Map && getTag(new Map) != mapTag) || (Promise && getTag(Promise.resolve()) != promiseTag) || (Set && getTag(new Set) != setTag) || (WeakMap && getTag(new WeakMap) != weakMapTag)) { getTag = function(value) { var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : undefined, ctorString = Ctor ? toSource(Ctor) : ''; if (ctorString) { switch (ctorString) { case dataViewCtorString: return dataViewTag; case mapCtorString: return mapTag; case promiseCtorString: return promiseTag; case setCtorString: return setTag; case weakMapCtorString: return weakMapTag; } } return result; }; } module.exports = getTag; /***/ }), /***/ "4359": /***/ (function(module, exports) { /** * Copies the values of `source` to `array`. * * @private * @param {Array} source The array to copy values from. * @param {Array} [array=[]] The array to copy values to. * @returns {Array} Returns `array`. */ function copyArray(source, array) { var index = -1, length = source.length; array || (array = Array(length)); while (++index < length) { array[index] = source[index]; } return array; } module.exports = copyArray; /***/ }), /***/ "4362": /***/ (function(module, exports, __webpack_require__) { exports.nextTick = function nextTick(fn) { var args = Array.prototype.slice.call(arguments); args.shift(); setTimeout(function () { fn.apply(null, args); }, 0); }; exports.platform = exports.arch = exports.execPath = exports.title = 'browser'; exports.pid = 1; exports.browser = true; exports.env = {}; exports.argv = []; exports.binding = function (name) { throw new Error('No such module. (Possibly not yet loaded)') }; (function () { var cwd = '/'; var path; exports.cwd = function () { return cwd }; exports.chdir = function (dir) { if (!path) path = __webpack_require__("df7c"); cwd = path.resolve(dir, cwd); }; })(); exports.exit = exports.kill = exports.umask = exports.dlopen = exports.uptime = exports.memoryUsage = exports.uvCounters = function() {}; exports.features = {}; /***/ }), /***/ "4461": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI11 = function (_MSI) { _inherits(MSI11, _MSI); function MSI11(data, options) { _classCallCheck(this, MSI11); return _possibleConstructorReturn(this, (MSI11.__proto__ || Object.getPrototypeOf(MSI11)).call(this, data + (0, _checksums.mod11)(data), options)); } return MSI11; }(_MSI3.default); exports.default = MSI11; /***/ }), /***/ "467f": /***/ (function(module, exports, __webpack_require__) { "use strict"; var createError = __webpack_require__("2d83"); /** * Resolve or reject a Promise based on response status. * * @param {Function} resolve A function that resolves the promise. * @param {Function} reject A function that rejects the promise. * @param {object} response The response. */ module.exports = function settle(resolve, reject, response) { var validateStatus = response.config.validateStatus; if (!response.status || !validateStatus || validateStatus(response.status)) { resolve(response); } else { reject(createError( 'Request failed with status code ' + response.status, response.config, null, response.request, response )); } }; /***/ }), /***/ "4727": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI10 = function (_MSI) { _inherits(MSI10, _MSI); function MSI10(data, options) { _classCallCheck(this, MSI10); return _possibleConstructorReturn(this, (MSI10.__proto__ || Object.getPrototypeOf(MSI10)).call(this, data + (0, _checksums.mod10)(data), options)); } return MSI10; }(_MSI3.default); exports.default = MSI10; /***/ }), /***/ "49f4": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** * Removes all key-value entries from the hash. * * @private * @name clear * @memberOf Hash */ function hashClear() { this.__data__ = nativeCreate ? nativeCreate(null) : {}; this.size = 0; } module.exports = hashClear; /***/ }), /***/ "4a37": /***/ (function(module, exports, __webpack_require__) { !function(t,e){ true?module.exports=e():undefined}(this,function(){return function(t){function e(o){if(r[o])return r[o].exports;var n=r[o]={exports:{},id:o,loaded:!1};return t[o].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";t.exports=r(3)},function(t,e){"use strict";!function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),r=1;r<arguments.length;r++){var o=arguments[r];if(void 0!==o&&null!==o){o=Object(o);for(var n=Object.keys(Object(o)),i=0,a=n.length;i<a;i++){var s=n[i],u=Object.getOwnPropertyDescriptor(o,s);void 0!==u&&u.enumerable&&(e[s]=o[s])}}}return e}})}()},function(t,e){"use strict";t.exports=function(){var t={};return t.utf16to8=function(t){var e,r,o,n;for(e="",o=t.length,r=0;r<o;r++)n=t.charCodeAt(r),n>=1&&n<=127?e+=t.charAt(r):n>2047?(e+=String.fromCharCode(224|n>>12&15),e+=String.fromCharCode(128|n>>6&63),e+=String.fromCharCode(128|n>>0&63)):(e+=String.fromCharCode(192|n>>6&31),e+=String.fromCharCode(128|n>>0&63));return e},t.utf8to16=function(t){var e,r,o,n,i,a;for(e="",o=t.length,r=0;r<o;)switch(n=t.charCodeAt(r++),n>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e+=t.charAt(r-1);break;case 12:case 13:i=t.charCodeAt(r++),e+=String.fromCharCode((31&n)<<6|63&i);break;case 14:i=t.charCodeAt(r++),a=t.charCodeAt(r++),e+=String.fromCharCode((15&n)<<12|(63&i)<<6|(63&a)<<0)}return e},t}()},function(t,e,r){"use strict";r(1),r(4);var o=r(2),n=function(){function t(t){var e=new QRCode(t.typeNumber,t.correctLevel);e.addData(t.text),e.make();var r=document.createElement("canvas");r.width=t.width,r.height=t.height;var o=r.getContext("2d"),n=(t.width-2*t.padding)/e.getModuleCount(),i=(t.height-2*t.padding)/e.getModuleCount();if(t.reverse){var a="rgba(0, 0, 0, 0)";o.fillStyle=a,t.foreground=a}else o.fillStyle=t.background;o.fillRect(0,0,r.width,r.height);for(var s=0;s<e.getModuleCount();s++)for(var u=0;u<e.getModuleCount();u++){o.fillStyle=e.isDark(s,u)?t.foreground:t.background;var h=Math.ceil((u+1)*n)-Math.floor(u*n),f=Math.ceil((s+1)*n)-Math.floor(s*n);o.fillRect(Math.round(u*n)+t.padding,Math.round(s*i)+t.padding,h,f)}return r}var e={};return e.getQrBase64=function(e,r){"string"!=typeof e&&(e=""),"string"==typeof r?r={text:r}:"object"!=typeof r&&(r={}),r=Object.assign({padding:10,width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,reverse:!1,background:"#ffffff",foreground:"#000000"},r);try{r.text=o.utf16to8(e)}catch(t){r.text=""+t}var n=t(r);return n.toDataURL()},e.QRErrorCorrectLevel=QRErrorCorrectLevel,e}();!window.jrQrcode&&(window.jrQrcode=n),t.exports=n},function(t,e){function r(t){this.mode=s.MODE_8BIT_BYTE,this.data=t}function o(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}function n(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);for(var r=0;r<t.length&&0==t[r];)r++;this.num=new Array(t.length-r+e);for(var o=0;o<t.length-r;o++)this.num[o]=t[o+r]}function i(t,e){this.totalCount=t,this.dataCount=e}function a(){this.buffer=new Array,this.length=0}r.prototype={getLength:function(t){return this.data.length},write:function(t){for(var e=0;e<this.data.length;e++)t.put(this.data.charCodeAt(e),8)}},o.prototype={addData:function(t){var e=new r(t);this.dataList.push(e),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){var t=1;for(t=1;t<40;t++){for(var e=i.getRSBlocks(t,this.errorCorrectLevel),r=new a,o=0,n=0;n<e.length;n++)o+=e[n].dataCount;for(var n=0;n<this.dataList.length;n++){var s=this.dataList[n];r.put(s.mode,4),r.put(s.getLength(),f.getLengthInBits(s.mode,t)),s.write(r)}if(r.getLengthInBits()<=8*o)break}this.typeNumber=t}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=o.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var o=-1;o<=7;o++)e+o<=-1||this.moduleCount<=e+o||(0<=r&&r<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=o&&o<=4?this.modules[t+r][e+o]=!0:this.modules[t+r][e+o]=!1)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var o=f.getLostPoint(this);(0==r||t>o)&&(t=o,e=r)}return e},createMovieClip:function(t,e,r){var o=t.createEmptyMovieClip(e,r),n=1;this.make();for(var i=0;i<this.modules.length;i++)for(var a=i*n,s=0;s<this.modules[i].length;s++){var u=s*n,h=this.modules[i][s];h&&(o.beginFill(0,100),o.moveTo(u,a),o.lineTo(u+n,a),o.lineTo(u+n,a+n),o.lineTo(u,a+n),o.endFill())}return o},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)},setupPositionAdjustPattern:function(){for(var t=f.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var o=t[e],n=t[r];if(null==this.modules[o][n])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)i==-2||2==i||a==-2||2==a||0==i&&0==a?this.modules[o+i][n+a]=!0:this.modules[o+i][n+a]=!1}},setupTypeNumber:function(t){for(var e=f.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var o=!t&&1==(e>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=o}for(var r=0;r<18;r++){var o=!t&&1==(e>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=o}},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,o=f.getBCHTypeInfo(r),n=0;n<15;n++){var i=!t&&1==(o>>n&1);n<6?this.modules[n][8]=i:n<8?this.modules[n+1][8]=i:this.modules[this.moduleCount-15+n][8]=i}for(var n=0;n<15;n++){var i=!t&&1==(o>>n&1);n<8?this.modules[8][this.moduleCount-n-1]=i:n<9?this.modules[8][15-n-1+1]=i:this.modules[8][15-n-1]=i}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,o=this.moduleCount-1,n=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[o][a-s]){var u=!1;i<t.length&&(u=1==(t[i]>>>n&1));var h=f.getMask(e,o,a-s);h&&(u=!u),this.modules[o][a-s]=u,n--,n==-1&&(i++,n=7)}if(o+=r,o<0||this.moduleCount<=o){o-=r,r=-r;break}}}},o.PAD0=236,o.PAD1=17,o.createData=function(t,e,r){for(var n=i.getRSBlocks(t,e),s=new a,u=0;u<r.length;u++){var h=r[u];s.put(h.mode,4),s.put(h.getLength(),f.getLengthInBits(h.mode,t)),h.write(s)}for(var l=0,u=0;u<n.length;u++)l+=n[u].dataCount;if(s.getLengthInBits()>8*l)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*l+")");for(s.getLengthInBits()+4<=8*l&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;;){if(s.getLengthInBits()>=8*l)break;if(s.put(o.PAD0,8),s.getLengthInBits()>=8*l)break;s.put(o.PAD1,8)}return o.createBytes(s,n)},o.createBytes=function(t,e){for(var r=0,o=0,i=0,a=new Array(e.length),s=new Array(e.length),u=0;u<e.length;u++){var h=e[u].dataCount,l=e[u].totalCount-h;o=Math.max(o,h),i=Math.max(i,l),a[u]=new Array(h);for(var g=0;g<a[u].length;g++)a[u][g]=255&t.buffer[g+r];r+=h;var c=f.getErrorCorrectPolynomial(l),d=new n(a[u],c.getLength()-1),v=d.mod(c);s[u]=new Array(c.getLength()-1);for(var g=0;g<s[u].length;g++){var m=g+v.getLength()-s[u].length;s[u][g]=m>=0?v.get(m):0}}for(var p=0,g=0;g<e.length;g++)p+=e[g].totalCount;for(var C=new Array(p),E=0,g=0;g<o;g++)for(var u=0;u<e.length;u++)g<a[u].length&&(C[E++]=a[u][g]);for(var g=0;g<i;g++)for(var u=0;u<e.length;u++)g<s[u].length&&(C[E++]=s[u][g]);return C};for(var s={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},u={L:1,M:0,Q:3,H:2},h={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},f={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;f.getBCHDigit(e)-f.getBCHDigit(f.G15)>=0;)e^=f.G15<<f.getBCHDigit(e)-f.getBCHDigit(f.G15);return(t<<10|e)^f.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;f.getBCHDigit(e)-f.getBCHDigit(f.G18)>=0;)e^=f.G18<<f.getBCHDigit(e)-f.getBCHDigit(f.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return f.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case h.PATTERN000:return(e+r)%2==0;case h.PATTERN001:return e%2==0;case h.PATTERN010:return r%3==0;case h.PATTERN011:return(e+r)%3==0;case h.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case h.PATTERN101:return e*r%2+e*r%3==0;case h.PATTERN110:return(e*r%2+e*r%3)%2==0;case h.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new n([1],0),r=0;r<t;r++)e=e.multiply(new n([1,l.gexp(r)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case s.MODE_NUMBER:return 10;case s.MODE_ALPHA_NUM:return 9;case s.MODE_8BIT_BYTE:return 8;case s.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case s.MODE_NUMBER:return 12;case s.MODE_ALPHA_NUM:return 11;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case s.MODE_NUMBER:return 14;case s.MODE_ALPHA_NUM:return 13;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),r=0,o=0;o<e;o++)for(var n=0;n<e;n++){for(var i=0,a=t.isDark(o,n),s=-1;s<=1;s++)if(!(o+s<0||e<=o+s))for(var u=-1;u<=1;u++)n+u<0||e<=n+u||0==s&&0==u||a==t.isDark(o+s,n+u)&&i++;i>5&&(r+=3+i-5)}for(var o=0;o<e-1;o++)for(var n=0;n<e-1;n++){var h=0;t.isDark(o,n)&&h++,t.isDark(o+1,n)&&h++,t.isDark(o,n+1)&&h++,t.isDark(o+1,n+1)&&h++,0!=h&&4!=h||(r+=3)}for(var o=0;o<e;o++)for(var n=0;n<e-6;n++)t.isDark(o,n)&&!t.isDark(o,n+1)&&t.isDark(o,n+2)&&t.isDark(o,n+3)&&t.isDark(o,n+4)&&!t.isDark(o,n+5)&&t.isDark(o,n+6)&&(r+=40);for(var n=0;n<e;n++)for(var o=0;o<e-6;o++)t.isDark(o,n)&&!t.isDark(o+1,n)&&t.isDark(o+2,n)&&t.isDark(o+3,n)&&t.isDark(o+4,n)&&!t.isDark(o+5,n)&&t.isDark(o+6,n)&&(r+=40);for(var f=0,n=0;n<e;n++)for(var o=0;o<e;o++)t.isDark(o,n)&&f++;var l=Math.abs(100*f/e/e-50)/5;return r+=10*l}},l={glog:function(t){if(t<1)throw new Error("glog("+t+")");return l.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return l.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},g=0;g<8;g++)l.EXP_TABLE[g]=1<<g;for(var g=8;g<256;g++)l.EXP_TABLE[g]=l.EXP_TABLE[g-4]^l.EXP_TABLE[g-5]^l.EXP_TABLE[g-6]^l.EXP_TABLE[g-8];for(var g=0;g<255;g++)l.LOG_TABLE[l.EXP_TABLE[g]]=g;n.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),r=0;r<this.getLength();r++)for(var o=0;o<t.getLength();o++)e[r+o]^=l.gexp(l.glog(this.get(r))+l.glog(t.get(o)));return new n(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=l.glog(this.get(0))-l.glog(t.get(0)),r=new Array(this.getLength()),o=0;o<this.getLength();o++)r[o]=this.get(o);for(var o=0;o<t.getLength();o++)r[o]^=l.gexp(l.glog(t.get(o))+e);return new n(r,0).mod(t)}},i.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],i.getRSBlocks=function(t,e){var r=i.getRsBlockTable(t,e);if(void 0==r)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var o=r.length/3,n=new Array,a=0;a<o;a++)for(var s=r[3*a+0],u=r[3*a+1],h=r[3*a+2],f=0;f<s;f++)n.push(new i(u,h));return n},i.getRsBlockTable=function(t,e){switch(e){case u.L:return i.RS_BLOCK_TABLE[4*(t-1)+0];case u.M:return i.RS_BLOCK_TABLE[4*(t-1)+1];case u.Q:return i.RS_BLOCK_TABLE[4*(t-1)+2];case u.H:return i.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},a.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var r=0;r<e;r++)this.putBit(1==(t>>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},window.QRCode=o,window.QRErrorCorrectLevel=u;try{t.exports={QRCode:o,QRErrorCorrectLevel:u}}catch(t){}}])}); /***/ }), /***/ "4a7b": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); /** * Config-specific merge-function which creates a new config-object * by merging two configuration objects together. * * @param {Object} config1 * @param {Object} config2 * @returns {Object} New object resulting from merging config2 to config1 */ module.exports = function mergeConfig(config1, config2) { // eslint-disable-next-line no-param-reassign config2 = config2 || {}; var config = {}; var valueFromConfig2Keys = ['url', 'method', 'data']; var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params']; var defaultToConfig2Keys = [ 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer', 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress', 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent', 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding' ]; var directMergeKeys = ['validateStatus']; function getMergedValue(target, source) { if (utils.isPlainObject(target) && utils.isPlainObject(source)) { return utils.merge(target, source); } else if (utils.isPlainObject(source)) { return utils.merge({}, source); } else if (utils.isArray(source)) { return source.slice(); } return source; } function mergeDeepProperties(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(config1[prop], config2[prop]); } else if (!utils.isUndefined(config1[prop])) { config[prop] = getMergedValue(undefined, config1[prop]); } } utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(undefined, config2[prop]); } }); utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties); utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(undefined, config2[prop]); } else if (!utils.isUndefined(config1[prop])) { config[prop] = getMergedValue(undefined, config1[prop]); } }); utils.forEach(directMergeKeys, function merge(prop) { if (prop in config2) { config[prop] = getMergedValue(config1[prop], config2[prop]); } else if (prop in config1) { config[prop] = getMergedValue(undefined, config1[prop]); } }); var axiosKeys = valueFromConfig2Keys .concat(mergeDeepPropertiesKeys) .concat(defaultToConfig2Keys) .concat(directMergeKeys); var otherKeys = Object .keys(config1) .concat(Object.keys(config2)) .filter(function filterAxiosKeys(key) { return axiosKeys.indexOf(key) === -1; }); utils.forEach(otherKeys, mergeDeepProperties); return config; }; /***/ }), /***/ "4b23": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // This is the master class, // it does require the start code to be included in the string var CODE128 = function (_Barcode) { _inherits(CODE128, _Barcode); function CODE128(data, options) { _classCallCheck(this, CODE128); // Get array of ascii codes from data var _this = _possibleConstructorReturn(this, (CODE128.__proto__ || Object.getPrototypeOf(CODE128)).call(this, data.substring(1), options)); _this.bytes = data.split('').map(function (char) { return char.charCodeAt(0); }); return _this; } _createClass(CODE128, [{ key: 'valid', value: function valid() { // ASCII value ranges 0-127, 200-211 return (/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data) ); } // The public encoding function }, { key: 'encode', value: function encode() { var bytes = this.bytes; // Remove the start code from the bytes and set its index var startIndex = bytes.shift() - 105; // Get start set by index var startSet = _constants.SET_BY_CODE[startIndex]; if (startSet === undefined) { throw new RangeError('The encoding does not start with a start character.'); } if (this.shouldEncodeAsEan128() === true) { bytes.unshift(_constants.FNC1); } // Start encode with the right type var encodingResult = CODE128.next(bytes, 1, startSet); return { text: this.text === this.data ? this.text.replace(/[^\x20-\x7E]/g, '') : this.text, data: // Add the start bits CODE128.getBar(startIndex) + // Add the encoded bits encodingResult.result + // Add the checksum CODE128.getBar((encodingResult.checksum + startIndex) % _constants.MODULO) + // Add the end bits CODE128.getBar(_constants.STOP) }; } // GS1-128/EAN-128 }, { key: 'shouldEncodeAsEan128', value: function shouldEncodeAsEan128() { var isEAN128 = this.options.ean128 || false; if (typeof isEAN128 === 'string') { isEAN128 = isEAN128.toLowerCase() === 'true'; } return isEAN128; } // Get a bar symbol by index }], [{ key: 'getBar', value: function getBar(index) { return _constants.BARS[index] ? _constants.BARS[index].toString() : ''; } // Correct an index by a set and shift it from the bytes array }, { key: 'correctIndex', value: function correctIndex(bytes, set) { if (set === _constants.SET_A) { var charCode = bytes.shift(); return charCode < 32 ? charCode + 64 : charCode - 32; } else if (set === _constants.SET_B) { return bytes.shift() - 32; } else { return (bytes.shift() - 48) * 10 + bytes.shift() - 48; } } }, { key: 'next', value: function next(bytes, pos, set) { if (!bytes.length) { return { result: '', checksum: 0 }; } var nextCode = void 0, index = void 0; // Special characters if (bytes[0] >= 200) { index = bytes.shift() - 105; var nextSet = _constants.SWAP[index]; // Swap to other set if (nextSet !== undefined) { nextCode = CODE128.next(bytes, pos + 1, nextSet); } // Continue on current set but encode a special character else { // Shift if ((set === _constants.SET_A || set === _constants.SET_B) && index === _constants.SHIFT) { // Convert the next character so that is encoded correctly bytes[0] = set === _constants.SET_A ? bytes[0] > 95 ? bytes[0] - 96 : bytes[0] : bytes[0] < 32 ? bytes[0] + 96 : bytes[0]; } nextCode = CODE128.next(bytes, pos + 1, set); } } // Continue encoding else { index = CODE128.correctIndex(bytes, set); nextCode = CODE128.next(bytes, pos + 1, set); } // Get the correct binary encoding and calculate the weight var enc = CODE128.getBar(index); var weight = index * pos; return { result: enc + nextCode.result, checksum: weight + nextCode.checksum }; } }]); return CODE128; }(_Barcode3.default); exports.default = CODE128; /***/ }), /***/ "4ced": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var ObjectRenderer = function () { function ObjectRenderer(object, encodings, options) { _classCallCheck(this, ObjectRenderer); this.object = object; this.encodings = encodings; this.options = options; } _createClass(ObjectRenderer, [{ key: "render", value: function render() { this.object.encodings = this.encodings; } }]); return ObjectRenderer; }(); exports.default = ObjectRenderer; /***/ }), /***/ "4f50": /***/ (function(module, exports, __webpack_require__) { var assignMergeValue = __webpack_require__("b760"), cloneBuffer = __webpack_require__("e538"), cloneTypedArray = __webpack_require__("c8fe"), copyArray = __webpack_require__("4359"), initCloneObject = __webpack_require__("fa21"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isArrayLikeObject = __webpack_require__("dcbe"), isBuffer = __webpack_require__("0d24"), isFunction = __webpack_require__("9520"), isObject = __webpack_require__("1a8c"), isPlainObject = __webpack_require__("60ed"), isTypedArray = __webpack_require__("73ac"), safeGet = __webpack_require__("8adb"), toPlainObject = __webpack_require__("8de2"); /** * A specialized version of `baseMerge` for arrays and objects which performs * deep merges and tracks traversed objects enabling objects with circular * references to be merged. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @param {string} key The key of the value to merge. * @param {number} srcIndex The index of `source`. * @param {Function} mergeFunc The function to merge values. * @param {Function} [customizer] The function to customize assigned values. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. */ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue); if (stacked) { assignMergeValue(object, key, stacked); return; } var newValue = customizer ? customizer(objValue, srcValue, (key + ''), object, source, stack) : undefined; var isCommon = newValue === undefined; if (isCommon) { var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue); newValue = srcValue; if (isArr || isBuff || isTyped) { if (isArray(objValue)) { newValue = objValue; } else if (isArrayLikeObject(objValue)) { newValue = copyArray(objValue); } else if (isBuff) { isCommon = false; newValue = cloneBuffer(srcValue, true); } else if (isTyped) { isCommon = false; newValue = cloneTypedArray(srcValue, true); } else { newValue = []; } } else if (isPlainObject(srcValue) || isArguments(srcValue)) { newValue = objValue; if (isArguments(objValue)) { newValue = toPlainObject(objValue); } else if (!isObject(objValue) || isFunction(objValue)) { newValue = initCloneObject(srcValue); } } else { isCommon = false; } } if (isCommon) { // Recursively merge objects and arrays (susceptible to call stack limits). stack.set(srcValue, newValue); mergeFunc(newValue, srcValue, srcIndex, customizer, stack); stack['delete'](srcValue); } assignMergeValue(object, key, newValue); } module.exports = baseMergeDeep; /***/ }), /***/ "50d8": /***/ (function(module, exports) { /** * The base implementation of `_.times` without support for iteratee shorthands * or max array length checks. * * @private * @param {number} n The number of times to invoke `iteratee`. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the array of results. */ function baseTimes(n, iteratee) { var index = -1, result = Array(n); while (++index < n) { result[index] = iteratee(index); } return result; } module.exports = baseTimes; /***/ }), /***/ "5261": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = optionsFromStrings; // Convert string to integers/booleans where it should be function optionsFromStrings(options) { var intOptions = ["width", "height", "textMargin", "fontSize", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight"]; for (var intOption in intOptions) { if (intOptions.hasOwnProperty(intOption)) { intOption = intOptions[intOption]; if (typeof options[intOption] === "string") { options[intOption] = parseInt(options[intOption], 10); } } } if (typeof options["displayValue"] === "string") { options["displayValue"] = options["displayValue"] != "false"; } return options; } /***/ }), /***/ "5270": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var transformData = __webpack_require__("c401"); var isCancel = __webpack_require__("2e67"); var defaults = __webpack_require__("2444"); /** * Throws a `Cancel` if cancellation has been requested. */ function throwIfCancellationRequested(config) { if (config.cancelToken) { config.cancelToken.throwIfRequested(); } } /** * Dispatch a request to the server using the configured adapter. * * @param {object} config The config that is to be used for the request * @returns {Promise} The Promise to be fulfilled */ module.exports = function dispatchRequest(config) { throwIfCancellationRequested(config); // Ensure headers exist config.headers = config.headers || {}; // Transform request data config.data = transformData( config.data, config.headers, config.transformRequest ); // Flatten headers config.headers = utils.merge( config.headers.common || {}, config.headers[config.method] || {}, config.headers ); utils.forEach( ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function cleanHeaderConfig(method) { delete config.headers[method]; } ); var adapter = config.adapter || defaults.adapter; return adapter(config).then(function onAdapterResolution(response) { throwIfCancellationRequested(config); // Transform response data response.data = transformData( response.data, response.headers, config.transformResponse ); return response; }, function onAdapterRejection(reason) { if (!isCancel(reason)) { throwIfCancellationRequested(config); // Transform response data if (reason && reason.response) { reason.response.data = transformData( reason.response.data, reason.response.headers, config.transformResponse ); } } return Promise.reject(reason); }); }; /***/ }), /***/ "54eb": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), getSymbols = __webpack_require__("32f4"); /** * Copies own symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. * @param {Object} [object={}] The object to copy symbols to. * @returns {Object} Returns `object`. */ function copySymbols(source, object) { return copyObject(source, getSymbols(source), object); } module.exports = copySymbols; /***/ }), /***/ "55a3": /***/ (function(module, exports) { /** * Checks if a stack value for `key` exists. * * @private * @name has * @memberOf Stack * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function stackHas(key) { return this.__data__.has(key); } module.exports = stackHas; /***/ }), /***/ "5726": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _constants = __webpack_require__("c243"); // Encode data string var encode = function encode(data, structure, separator) { var encoded = data.split('').map(function (val, idx) { return _constants.BINARIES[structure[idx]]; }).map(function (val, idx) { return val ? val[data[idx]] : ''; }); if (separator) { var last = data.length - 1; encoded = encoded.map(function (val, idx) { return idx < last ? val + separator : val; }); } return encoded.join(''); }; exports.default = encode; /***/ }), /***/ "57a5": /***/ (function(module, exports, __webpack_require__) { var overArg = __webpack_require__("91e9"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys = overArg(Object.keys, Object); module.exports = nativeKeys; /***/ }), /***/ "583f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/EAN_5#Encoding var checksum = function checksum(data) { var result = data.split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a * 9 : sum + a * 3; }, 0); return result % 10; }; var EAN5 = function (_Barcode) { _inherits(EAN5, _Barcode); function EAN5(data, options) { _classCallCheck(this, EAN5); return _possibleConstructorReturn(this, (EAN5.__proto__ || Object.getPrototypeOf(EAN5)).call(this, data, options)); } _createClass(EAN5, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{5}$/) !== -1; } }, { key: 'encode', value: function encode() { var structure = _constants.EAN5_STRUCTURE[checksum(this.data)]; return { data: '1011' + (0, _encoder2.default)(this.data, structure, '01'), text: this.text }; } }]); return EAN5; }(_Barcode3.default); exports.default = EAN5; /***/ }), /***/ "585a": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; module.exports = freeGlobal; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba"))) /***/ }), /***/ "5b01": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keys = __webpack_require__("ec69"); /** * The base implementation of `_.assign` without support for multiple sources * or `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssign(object, source) { return object && copyObject(source, keys(source), object); } module.exports = baseAssign; /***/ }), /***/ "5d89": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"); /** * Creates a clone of `dataView`. * * @private * @param {Object} dataView The data view to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned data view. */ function cloneDataView(dataView, isDeep) { var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); } module.exports = cloneDataView; /***/ }), /***/ "5e2e": /***/ (function(module, exports, __webpack_require__) { var listCacheClear = __webpack_require__("28c9"), listCacheDelete = __webpack_require__("69d5"), listCacheGet = __webpack_require__("b4c0"), listCacheHas = __webpack_require__("fba5"), listCacheSet = __webpack_require__("67ca"); /** * Creates an list cache object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function ListCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `ListCache`. ListCache.prototype.clear = listCacheClear; ListCache.prototype['delete'] = listCacheDelete; ListCache.prototype.get = listCacheGet; ListCache.prototype.has = listCacheHas; ListCache.prototype.set = listCacheSet; module.exports = ListCache; /***/ }), /***/ "5f72": /***/ (function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE__5f72__; /***/ }), /***/ "6044": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"); /* Built-in method references that are verified to be native. */ var nativeCreate = getNative(Object, 'create'); module.exports = nativeCreate; /***/ }), /***/ "60ed": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), getPrototype = __webpack_require__("2dcb"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var objectTag = '[object Object]'; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to infer the `Object` constructor. */ var objectCtorString = funcToString.call(Object); /** * Checks if `value` is a plain object, that is, an object created by the * `Object` constructor or one with a `[[Prototype]]` of `null`. * * @static * @memberOf _ * @since 0.8.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. * @example * * function Foo() { * this.a = 1; * } * * _.isPlainObject(new Foo); * // => false * * _.isPlainObject([1, 2, 3]); * // => false * * _.isPlainObject({ 'x': 0, 'y': 0 }); * // => true * * _.isPlainObject(Object.create(null)); * // => true */ function isPlainObject(value) { if (!isObjectLike(value) || baseGetTag(value) != objectTag) { return false; } var proto = getPrototype(value); if (proto === null) { return true; } var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; } module.exports = isPlainObject; /***/ }), /***/ "6220": /***/ (function(module, exports, __webpack_require__) { var baseIsDate = __webpack_require__("b1d2"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsDate = nodeUtil && nodeUtil.isDate; /** * Checks if `value` is classified as a `Date` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a date object, else `false`. * @example * * _.isDate(new Date); * // => true * * _.isDate('Mon April 23 2012'); * // => false */ var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; module.exports = isDate; /***/ }), /***/ "62c5": /***/ (function(module, exports, __webpack_require__) { "use strict"; var _barcodes = __webpack_require__("ff84"); var _barcodes2 = _interopRequireDefault(_barcodes); var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _linearizeEncodings = __webpack_require__("a2b0"); var _linearizeEncodings2 = _interopRequireDefault(_linearizeEncodings); var _fixOptions = __webpack_require__("79f1"); var _fixOptions2 = _interopRequireDefault(_fixOptions); var _getRenderProperties = __webpack_require__("b1d8"); var _getRenderProperties2 = _interopRequireDefault(_getRenderProperties); var _optionsFromStrings = __webpack_require__("5261"); var _optionsFromStrings2 = _interopRequireDefault(_optionsFromStrings); var _ErrorHandler = __webpack_require__("bd8a"); var _ErrorHandler2 = _interopRequireDefault(_ErrorHandler); var _exceptions = __webpack_require__("dca2"); var _defaults = __webpack_require__("ca32"); var _defaults2 = _interopRequireDefault(_defaults); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // The protype of the object returned from the JsBarcode() call // Help functions var API = function API() {}; // The first call of the library API // Will return an object with all barcodes calls and the data that is used // by the renderers // Default values // Exceptions // Import all the barcodes var JsBarcode = function JsBarcode(element, text, options) { var api = new API(); if (typeof element === "undefined") { throw Error("No element to render on was provided."); } // Variables that will be pased through the API calls api._renderProperties = (0, _getRenderProperties2.default)(element); api._encodings = []; api._options = _defaults2.default; api._errorHandler = new _ErrorHandler2.default(api); // If text is set, use the simple syntax (render the barcode directly) if (typeof text !== "undefined") { options = options || {}; if (!options.format) { options.format = autoSelectBarcode(); } api.options(options)[options.format](text, options).render(); } return api; }; // To make tests work TODO: remove JsBarcode.getModule = function (name) { return _barcodes2.default[name]; }; // Register all barcodes for (var name in _barcodes2.default) { if (_barcodes2.default.hasOwnProperty(name)) { // Security check if the propery is a prototype property registerBarcode(_barcodes2.default, name); } } function registerBarcode(barcodes, name) { API.prototype[name] = API.prototype[name.toUpperCase()] = API.prototype[name.toLowerCase()] = function (text, options) { var api = this; return api._errorHandler.wrapBarcodeCall(function () { // Ensure text is options.text options.text = typeof options.text === 'undefined' ? undefined : '' + options.text; var newOptions = (0, _merge2.default)(api._options, options); newOptions = (0, _optionsFromStrings2.default)(newOptions); var Encoder = barcodes[name]; var encoded = encode(text, Encoder, newOptions); api._encodings.push(encoded); return api; }); }; } // encode() handles the Encoder call and builds the binary string to be rendered function encode(text, Encoder, options) { // Ensure that text is a string text = "" + text; var encoder = new Encoder(text, options); // If the input is not valid for the encoder, throw error. // If the valid callback option is set, call it instead of throwing error if (!encoder.valid()) { throw new _exceptions.InvalidInputException(encoder.constructor.name, text); } // Make a request for the binary data (and other infromation) that should be rendered var encoded = encoder.encode(); // Encodings can be nestled like [[1-1, 1-2], 2, [3-1, 3-2] // Convert to [1-1, 1-2, 2, 3-1, 3-2] encoded = (0, _linearizeEncodings2.default)(encoded); // Merge for (var i = 0; i < encoded.length; i++) { encoded[i].options = (0, _merge2.default)(options, encoded[i].options); } return encoded; } function autoSelectBarcode() { // If CODE128 exists. Use it if (_barcodes2.default["CODE128"]) { return "CODE128"; } // Else, take the first (probably only) barcode return Object.keys(_barcodes2.default)[0]; } // Sets global encoder options // Added to the api by the JsBarcode function API.prototype.options = function (options) { this._options = (0, _merge2.default)(this._options, options); return this; }; // Will create a blank space (usually in between barcodes) API.prototype.blank = function (size) { var zeroes = new Array(size + 1).join("0"); this._encodings.push({ data: zeroes }); return this; }; // Initialize JsBarcode on all HTML elements defined. API.prototype.init = function () { // Should do nothing if no elements where found if (!this._renderProperties) { return; } // Make sure renderProperies is an array if (!Array.isArray(this._renderProperties)) { this._renderProperties = [this._renderProperties]; } var renderProperty; for (var i in this._renderProperties) { renderProperty = this._renderProperties[i]; var options = (0, _merge2.default)(this._options, renderProperty.options); if (options.format == "auto") { options.format = autoSelectBarcode(); } this._errorHandler.wrapBarcodeCall(function () { var text = options.value; var Encoder = _barcodes2.default[options.format.toUpperCase()]; var encoded = encode(text, Encoder, options); render(renderProperty, encoded, options); }); } }; // The render API call. Calls the real render function. API.prototype.render = function () { if (!this._renderProperties) { throw new _exceptions.NoElementException(); } if (Array.isArray(this._renderProperties)) { for (var i = 0; i < this._renderProperties.length; i++) { render(this._renderProperties[i], this._encodings, this._options); } } else { render(this._renderProperties, this._encodings, this._options); } return this; }; API.prototype._defaults = _defaults2.default; // Prepares the encodings and calls the renderer function render(renderProperties, encodings, options) { encodings = (0, _linearizeEncodings2.default)(encodings); for (var i = 0; i < encodings.length; i++) { encodings[i].options = (0, _merge2.default)(options, encodings[i].options); (0, _fixOptions2.default)(encodings[i].options); } (0, _fixOptions2.default)(options); var Renderer = renderProperties.renderer; var renderer = new Renderer(renderProperties.element, encodings, options); renderer.render(); if (renderProperties.afterRender) { renderProperties.afterRender(); } } // Export to browser if (typeof window !== "undefined") { window.JsBarcode = JsBarcode; } // Export to jQuery /*global jQuery */ if (typeof jQuery !== 'undefined') { jQuery.fn.JsBarcode = function (content, options) { var elementArray = []; jQuery(this).each(function () { elementArray.push(this); }); return JsBarcode(elementArray, content, options); }; } // Export to commonJS module.exports = JsBarcode; /***/ }), /***/ "62e4": /***/ (function(module, exports) { module.exports = function(module) { if (!module.webpackPolyfill) { module.deprecate = function() {}; module.paths = []; // module.parent = undefined by default if (!module.children) module.children = []; Object.defineProperty(module, "loaded", { enumerable: true, get: function() { return module.l; } }); Object.defineProperty(module, "id", { enumerable: true, get: function() { return module.i; } }); module.webpackPolyfill = 1; } return module; }; /***/ }), /***/ "6747": /***/ (function(module, exports) { /** * Checks if `value` is classified as an `Array` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array, else `false`. * @example * * _.isArray([1, 2, 3]); * // => true * * _.isArray(document.body.children); * // => false * * _.isArray('abc'); * // => false * * _.isArray(_.noop); * // => false */ var isArray = Array.isArray; module.exports = isArray; /***/ }), /***/ "67ca": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Sets the list cache `key` to `value`. * * @private * @name set * @memberOf ListCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the list cache instance. */ function listCacheSet(key, value) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { ++this.size; data.push([key, value]); } else { data[index][1] = value; } return this; } module.exports = listCacheSet; /***/ }), /***/ "69d5": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** Used for built-in method references. */ var arrayProto = Array.prototype; /** Built-in value references. */ var splice = arrayProto.splice; /** * Removes `key` and its value from the list cache. * * @private * @name delete * @memberOf ListCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function listCacheDelete(key) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { return false; } var lastIndex = data.length - 1; if (index == lastIndex) { data.pop(); } else { splice.call(data, index, 1); } --this.size; return true; } module.exports = listCacheDelete; /***/ }), /***/ "6e53": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mod10 = mod10; exports.mod11 = mod11; function mod10(number) { var sum = 0; for (var i = 0; i < number.length; i++) { var n = parseInt(number[i]); if ((i + number.length) % 2 === 0) { sum += n; } else { sum += n * 2 % 10 + Math.floor(n * 2 / 10); } } return (10 - sum % 10) % 10; } function mod11(number) { var sum = 0; var weights = [2, 3, 4, 5, 6, 7]; for (var i = 0; i < number.length; i++) { var n = parseInt(number[number.length - 1 - i]); sum += weights[i % weights.length] * n; } return (11 - sum % 11) % 11; } /***/ }), /***/ "6f24": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _auto = __webpack_require__("bb5d"); var _auto2 = _interopRequireDefault(_auto); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128AUTO = function (_CODE) { _inherits(CODE128AUTO, _CODE); function CODE128AUTO(data, options) { _classCallCheck(this, CODE128AUTO); // ASCII value ranges 0-127, 200-211 if (/^[\x00-\x7F\xC8-\xD3]+$/.test(data)) { var _this = _possibleConstructorReturn(this, (CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, (0, _auto2.default)(data), options)); } else { var _this = _possibleConstructorReturn(this, (CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, data, options)); } return _possibleConstructorReturn(_this); } return CODE128AUTO; }(_CODE3.default); exports.default = CODE128AUTO; /***/ }), /***/ "6f6c": /***/ (function(module, exports) { /** Used to match `RegExp` flags from their coerced string values. */ var reFlags = /\w*$/; /** * Creates a clone of `regexp`. * * @private * @param {Object} regexp The regexp to clone. * @returns {Object} Returns the cloned regexp. */ function cloneRegExp(regexp) { var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); result.lastIndex = regexp.lastIndex; return result; } module.exports = cloneRegExp; /***/ }), /***/ "6fcd": /***/ (function(module, exports, __webpack_require__) { var baseTimes = __webpack_require__("50d8"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isBuffer = __webpack_require__("0d24"), isIndex = __webpack_require__("c098"), isTypedArray = __webpack_require__("73ac"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Creates an array of the enumerable property names of the array-like `value`. * * @private * @param {*} value The value to query. * @param {boolean} inherited Specify returning inherited property names. * @returns {Array} Returns the array of property names. */ function arrayLikeKeys(value, inherited) { var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length; for (var key in value) { if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && ( // Safari 9 has enumerable `arguments.length` in strict mode. key == 'length' || // Node.js 0.10 has enumerable non-index properties on buffers. (isBuff && (key == 'offset' || key == 'parent')) || // PhantomJS 2 has enumerable non-index properties on typed arrays. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || // Skip index properties. isIndex(key, length) ))) { result.push(key); } } return result; } module.exports = arrayLikeKeys; /***/ }), /***/ "70b0": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128B = function (_CODE) { _inherits(CODE128B, _CODE); function CODE128B(string, options) { _classCallCheck(this, CODE128B); return _possibleConstructorReturn(this, (CODE128B.__proto__ || Object.getPrototypeOf(CODE128B)).call(this, _constants.B_START_CHAR + string, options)); } _createClass(CODE128B, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.B_CHARS + '+$').test(this.data); } }]); return CODE128B; }(_CODE3.default); exports.default = CODE128B; /***/ }), /***/ "721a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _shared = __webpack_require__("ab5b"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var CanvasRenderer = function () { function CanvasRenderer(canvas, encodings, options) { _classCallCheck(this, CanvasRenderer); this.canvas = canvas; this.encodings = encodings; this.options = options; } _createClass(CanvasRenderer, [{ key: "render", value: function render() { // Abort if the browser does not support HTML5 canvas if (!this.canvas.getContext) { throw new Error('The browser does not support canvas.'); } this.prepareCanvas(); for (var i = 0; i < this.encodings.length; i++) { var encodingOptions = (0, _merge2.default)(this.options, this.encodings[i].options); this.drawCanvasBarcode(encodingOptions, this.encodings[i]); this.drawCanvasText(encodingOptions, this.encodings[i]); this.moveCanvasDrawing(this.encodings[i]); } this.restoreCanvas(); } }, { key: "prepareCanvas", value: function prepareCanvas() { // Get the canvas context var ctx = this.canvas.getContext("2d"); ctx.save(); (0, _shared.calculateEncodingAttributes)(this.encodings, this.options, ctx); var totalWidth = (0, _shared.getTotalWidthOfEncodings)(this.encodings); var maxHeight = (0, _shared.getMaximumHeightOfEncodings)(this.encodings); this.canvas.width = totalWidth + this.options.marginLeft + this.options.marginRight; this.canvas.height = maxHeight; // Paint the canvas ctx.clearRect(0, 0, this.canvas.width, this.canvas.height); if (this.options.background) { ctx.fillStyle = this.options.background; ctx.fillRect(0, 0, this.canvas.width, this.canvas.height); } ctx.translate(this.options.marginLeft, 0); } }, { key: "drawCanvasBarcode", value: function drawCanvasBarcode(options, encoding) { // Get the canvas context var ctx = this.canvas.getContext("2d"); var binary = encoding.data; // Creates the barcode out of the encoded binary var yFrom; if (options.textPosition == "top") { yFrom = options.marginTop + options.fontSize + options.textMargin; } else { yFrom = options.marginTop; } ctx.fillStyle = options.lineColor; for (var b = 0; b < binary.length; b++) { var x = b * options.width + encoding.barcodePadding; if (binary[b] === "1") { ctx.fillRect(x, yFrom, options.width, options.height); } else if (binary[b]) { ctx.fillRect(x, yFrom, options.width, options.height * binary[b]); } } } }, { key: "drawCanvasText", value: function drawCanvasText(options, encoding) { // Get the canvas context var ctx = this.canvas.getContext("2d"); var font = options.fontOptions + " " + options.fontSize + "px " + options.font; // Draw the text if displayValue is set if (options.displayValue) { var x, y; if (options.textPosition == "top") { y = options.marginTop + options.fontSize - options.textMargin; } else { y = options.height + options.textMargin + options.marginTop + options.fontSize; } ctx.font = font; // Draw the text in the correct X depending on the textAlign option if (options.textAlign == "left" || encoding.barcodePadding > 0) { x = 0; ctx.textAlign = 'left'; } else if (options.textAlign == "right") { x = encoding.width - 1; ctx.textAlign = 'right'; } // In all other cases, center the text else { x = encoding.width / 2; ctx.textAlign = 'center'; } ctx.fillText(encoding.text, x, y); } } }, { key: "moveCanvasDrawing", value: function moveCanvasDrawing(encoding) { var ctx = this.canvas.getContext("2d"); ctx.translate(encoding.width, 0); } }, { key: "restoreCanvas", value: function restoreCanvas() { // Get the canvas context var ctx = this.canvas.getContext("2d"); ctx.restore(); } }]); return CanvasRenderer; }(); exports.default = CanvasRenderer; /***/ }), /***/ "72af": /***/ (function(module, exports, __webpack_require__) { var createBaseFor = __webpack_require__("99cd"); /** * The base implementation of `baseForOwn` which iterates over `object` * properties returned by `keysFunc` and invokes `iteratee` for each property. * Iteratee functions may exit iteration early by explicitly returning `false`. * * @private * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {Function} keysFunc The function to get the keys of `object`. * @returns {Object} Returns `object`. */ var baseFor = createBaseFor(); module.exports = baseFor; /***/ }), /***/ "72f0": /***/ (function(module, exports) { /** * Creates a function that returns `value`. * * @static * @memberOf _ * @since 2.4.0 * @category Util * @param {*} value The value to return from the new function. * @returns {Function} Returns the new constant function. * @example * * var objects = _.times(2, _.constant({ 'a': 1 })); * * console.log(objects); * // => [{ 'a': 1 }, { 'a': 1 }] * * console.log(objects[0] === objects[1]); * // => true */ function constant(value) { return function() { return value; }; } module.exports = constant; /***/ }), /***/ "73ac": /***/ (function(module, exports, __webpack_require__) { var baseIsTypedArray = __webpack_require__("743f"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; /** * Checks if `value` is classified as a typed array. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. * @example * * _.isTypedArray(new Uint8Array); * // => true * * _.isTypedArray([]); * // => false */ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; module.exports = isTypedArray; /***/ }), /***/ "743f": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isLength = __webpack_require__("b218"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', weakMapTag = '[object WeakMap]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to identify `toStringTag` values of typed arrays. */ var typedArrayTags = {}; typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; /** * The base implementation of `_.isTypedArray` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. */ function baseIsTypedArray(value) { return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; } module.exports = baseIsTypedArray; /***/ }), /***/ "752b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _canvas = __webpack_require__("721a"); var _canvas2 = _interopRequireDefault(_canvas); var _svg = __webpack_require__("be5e"); var _svg2 = _interopRequireDefault(_svg); var _object = __webpack_require__("4ced"); var _object2 = _interopRequireDefault(_object); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { CanvasRenderer: _canvas2.default, SVGRenderer: _svg2.default, ObjectRenderer: _object2.default }; /***/ }), /***/ "7530": /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__("1a8c"); /** Built-in value references. */ var objectCreate = Object.create; /** * The base implementation of `_.create` without support for assigning * properties to the created object. * * @private * @param {Object} proto The object to inherit from. * @returns {Object} Returns the new object. */ var baseCreate = (function() { function object() {} return function(proto) { if (!isObject(proto)) { return {}; } if (objectCreate) { return objectCreate(proto); } object.prototype = proto; var result = new object; object.prototype = undefined; return result; }; }()); module.exports = baseCreate; /***/ }), /***/ "76dd": /***/ (function(module, exports, __webpack_require__) { var baseToString = __webpack_require__("ce86"); /** * Converts `value` to a string. An empty string is returned for `null` * and `undefined` values. The sign of `-0` is preserved. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {string} Returns the converted string. * @example * * _.toString(null); * // => '' * * _.toString(-0); * // => '-0' * * _.toString([1, 2, 3]); * // => '1,2,3' */ function toString(value) { return value == null ? '' : baseToString(value); } module.exports = toString; /***/ }), /***/ "7948": /***/ (function(module, exports) { /** * A specialized version of `_.map` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the new mapped array. */ function arrayMap(array, iteratee) { var index = -1, length = array == null ? 0 : array.length, result = Array(length); while (++index < length) { result[index] = iteratee(array[index], index, array); } return result; } module.exports = arrayMap; /***/ }), /***/ "79bc": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Map = getNative(root, 'Map'); module.exports = Map; /***/ }), /***/ "79f1": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = fixOptions; function fixOptions(options) { // Fix the margins options.marginTop = options.marginTop || options.margin; options.marginBottom = options.marginBottom || options.margin; options.marginRight = options.marginRight || options.margin; options.marginLeft = options.marginLeft || options.margin; return options; } /***/ }), /***/ "7a48": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Checks if a hash value for `key` exists. * * @private * @name has * @memberOf Hash * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function hashHas(key) { var data = this.__data__; return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); } module.exports = hashHas; /***/ }), /***/ "7a77": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * A `Cancel` is an object that is thrown when an operation is canceled. * * @class * @param {string=} message The message. */ function Cancel(message) { this.message = message; } Cancel.prototype.toString = function toString() { return 'Cancel' + (this.message ? ': ' + this.message : ''); }; Cancel.prototype.__CANCEL__ = true; module.exports = Cancel; /***/ }), /***/ "7aac": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = ( utils.isStandardBrowserEnv() ? // Standard browser envs support document.cookie (function standardBrowserEnv() { return { write: function write(name, value, expires, path, domain, secure) { var cookie = []; cookie.push(name + '=' + encodeURIComponent(value)); if (utils.isNumber(expires)) { cookie.push('expires=' + new Date(expires).toGMTString()); } if (utils.isString(path)) { cookie.push('path=' + path); } if (utils.isString(domain)) { cookie.push('domain=' + domain); } if (secure === true) { cookie.push('secure'); } document.cookie = cookie.join('; '); }, read: function read(name) { var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); return (match ? decodeURIComponent(match[3]) : null); }, remove: function remove(name) { this.write(name, '', Date.now() - 86400000); } }; })() : // Non standard browser env (web workers, react-native) lack needed support. (function nonStandardBrowserEnv() { return { write: function write() {}, read: function read() { return null; }, remove: function remove() {} }; })() ); /***/ }), /***/ "7b83": /***/ (function(module, exports, __webpack_require__) { var mapCacheClear = __webpack_require__("7c64"), mapCacheDelete = __webpack_require__("93ed"), mapCacheGet = __webpack_require__("2478"), mapCacheHas = __webpack_require__("a524"), mapCacheSet = __webpack_require__("1fc8"); /** * Creates a map cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function MapCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `MapCache`. MapCache.prototype.clear = mapCacheClear; MapCache.prototype['delete'] = mapCacheDelete; MapCache.prototype.get = mapCacheGet; MapCache.prototype.has = mapCacheHas; MapCache.prototype.set = mapCacheSet; module.exports = MapCache; /***/ }), /***/ "7c64": /***/ (function(module, exports, __webpack_require__) { var Hash = __webpack_require__("e24b"), ListCache = __webpack_require__("5e2e"), Map = __webpack_require__("79bc"); /** * Removes all key-value entries from the map. * * @private * @name clear * @memberOf MapCache */ function mapCacheClear() { this.size = 0; this.__data__ = { 'hash': new Hash, 'map': new (Map || ListCache), 'string': new Hash }; } module.exports = mapCacheClear; /***/ }), /***/ "7cb9": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pharmacode = undefined; 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 _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation // http://www.gomaro.ch/ftproot/Laetus_PHARMA-CODE.pdf var pharmacode = function (_Barcode) { _inherits(pharmacode, _Barcode); function pharmacode(data, options) { _classCallCheck(this, pharmacode); var _this = _possibleConstructorReturn(this, (pharmacode.__proto__ || Object.getPrototypeOf(pharmacode)).call(this, data, options)); _this.number = parseInt(data, 10); return _this; } _createClass(pharmacode, [{ key: "encode", value: function encode() { var z = this.number; var result = ""; // http://i.imgur.com/RMm4UDJ.png // (source: http://www.gomaro.ch/ftproot/Laetus_PHARMA-CODE.pdf, page: 34) while (!isNaN(z) && z != 0) { if (z % 2 === 0) { // Even result = "11100" + result; z = (z - 2) / 2; } else { // Odd result = "100" + result; z = (z - 1) / 2; } } // Remove the two last zeroes result = result.slice(0, -2); return { data: result, text: this.text }; } }, { key: "valid", value: function valid() { return this.number >= 3 && this.number <= 131070; } }]); return pharmacode; }(_Barcode3.default); exports.pharmacode = pharmacode; /***/ }), /***/ "7d1f": /***/ (function(module, exports, __webpack_require__) { var arrayPush = __webpack_require__("087d"), isArray = __webpack_require__("6747"); /** * The base implementation of `getAllKeys` and `getAllKeysIn` which uses * `keysFunc` and `symbolsFunc` to get the enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @param {Function} keysFunc The function to get the keys of `object`. * @param {Function} symbolsFunc The function to get the symbols of `object`. * @returns {Array} Returns the array of property names and symbols. */ function baseGetAllKeys(object, keysFunc, symbolsFunc) { var result = keysFunc(object); return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); } module.exports = baseGetAllKeys; /***/ }), /***/ "7e64": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"), stackClear = __webpack_require__("efb6"), stackDelete = __webpack_require__("2fcc"), stackGet = __webpack_require__("802a"), stackHas = __webpack_require__("55a3"), stackSet = __webpack_require__("d02c"); /** * Creates a stack cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Stack(entries) { var data = this.__data__ = new ListCache(entries); this.size = data.size; } // Add methods to `Stack`. Stack.prototype.clear = stackClear; Stack.prototype['delete'] = stackDelete; Stack.prototype.get = stackGet; Stack.prototype.has = stackHas; Stack.prototype.set = stackSet; module.exports = Stack; /***/ }), /***/ "802a": /***/ (function(module, exports) { /** * Gets the stack value for `key`. * * @private * @name get * @memberOf Stack * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function stackGet(key) { return this.__data__.get(key); } module.exports = stackGet; /***/ }), /***/ "8057": /***/ (function(module, exports) { /** * A specialized version of `_.forEach` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns `array`. */ function arrayEach(array, iteratee) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (iteratee(array[index], index, array) === false) { break; } } return array; } module.exports = arrayEach; /***/ }), /***/ "805f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI1110 = function (_MSI) { _inherits(MSI1110, _MSI); function MSI1110(data, options) { _classCallCheck(this, MSI1110); data += (0, _checksums.mod11)(data); data += (0, _checksums.mod10)(data); return _possibleConstructorReturn(this, (MSI1110.__proto__ || Object.getPrototypeOf(MSI1110)).call(this, data, options)); } return MSI1110; }(_MSI3.default); exports.default = MSI1110; /***/ }), /***/ "8237": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/** * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 * @version 0.7.3 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2017 * @license MIT */ (function () { 'use strict'; var ERROR = 'input is invalid type'; var WINDOW = typeof window === 'object'; var root = WINDOW ? window : {}; if (root.JS_MD5_NO_WINDOW) { WINDOW = false; } var WEB_WORKER = !WINDOW && typeof self === 'object'; var NODE_JS = !root.JS_MD5_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node; if (NODE_JS) { root = global; } else if (WEB_WORKER) { root = self; } var COMMON_JS = !root.JS_MD5_NO_COMMON_JS && typeof module === 'object' && module.exports; var AMD = true && __webpack_require__("3c35"); var ARRAY_BUFFER = !root.JS_MD5_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined'; var HEX_CHARS = '0123456789abcdef'.split(''); var EXTRA = [128, 32768, 8388608, -2147483648]; var SHIFT = [0, 8, 16, 24]; var OUTPUT_TYPES = ['hex', 'array', 'digest', 'buffer', 'arrayBuffer', 'base64']; var BASE64_ENCODE_CHAR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); var blocks = [], buffer8; if (ARRAY_BUFFER) { var buffer = new ArrayBuffer(68); buffer8 = new Uint8Array(buffer); blocks = new Uint32Array(buffer); } if (root.JS_MD5_NO_NODE_JS || !Array.isArray) { Array.isArray = function (obj) { return Object.prototype.toString.call(obj) === '[object Array]'; }; } if (ARRAY_BUFFER && (root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) { ArrayBuffer.isView = function (obj) { return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer; }; } /** * @method hex * @memberof md5 * @description Output hash as hex string * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} Hex string * @example * md5.hex('The quick brown fox jumps over the lazy dog'); * // equal to * md5('The quick brown fox jumps over the lazy dog'); */ /** * @method digest * @memberof md5 * @description Output hash as bytes array * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Array} Bytes array * @example * md5.digest('The quick brown fox jumps over the lazy dog'); */ /** * @method array * @memberof md5 * @description Output hash as bytes array * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Array} Bytes array * @example * md5.array('The quick brown fox jumps over the lazy dog'); */ /** * @method arrayBuffer * @memberof md5 * @description Output hash as ArrayBuffer * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {ArrayBuffer} ArrayBuffer * @example * md5.arrayBuffer('The quick brown fox jumps over the lazy dog'); */ /** * @method buffer * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead. * @memberof md5 * @description Output hash as ArrayBuffer * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {ArrayBuffer} ArrayBuffer * @example * md5.buffer('The quick brown fox jumps over the lazy dog'); */ /** * @method base64 * @memberof md5 * @description Output hash as base64 string * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} base64 string * @example * md5.base64('The quick brown fox jumps over the lazy dog'); */ var createOutputMethod = function (outputType) { return function (message) { return new Md5(true).update(message)[outputType](); }; }; /** * @method create * @memberof md5 * @description Create Md5 object * @returns {Md5} Md5 object. * @example * var hash = md5.create(); */ /** * @method update * @memberof md5 * @description Create and update Md5 object * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Md5} Md5 object. * @example * var hash = md5.update('The quick brown fox jumps over the lazy dog'); * // equal to * var hash = md5.create(); * hash.update('The quick brown fox jumps over the lazy dog'); */ var createMethod = function () { var method = createOutputMethod('hex'); if (NODE_JS) { method = nodeWrap(method); } method.create = function () { return new Md5(); }; method.update = function (message) { return method.create().update(message); }; for (var i = 0; i < OUTPUT_TYPES.length; ++i) { var type = OUTPUT_TYPES[i]; method[type] = createOutputMethod(type); } return method; }; var nodeWrap = function (method) { var crypto = eval("require('crypto')"); var Buffer = eval("require('buffer').Buffer"); var nodeMethod = function (message) { if (typeof message === 'string') { return crypto.createHash('md5').update(message, 'utf8').digest('hex'); } else { if (message === null || message === undefined) { throw ERROR; } else if (message.constructor === ArrayBuffer) { message = new Uint8Array(message); } } if (Array.isArray(message) || ArrayBuffer.isView(message) || message.constructor === Buffer) { return crypto.createHash('md5').update(new Buffer(message)).digest('hex'); } else { return method(message); } }; return nodeMethod; }; /** * Md5 class * @class Md5 * @description This is internal class. * @see {@link md5.create} */ function Md5(sharedMemory) { if (sharedMemory) { blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; this.blocks = blocks; this.buffer8 = buffer8; } else { if (ARRAY_BUFFER) { var buffer = new ArrayBuffer(68); this.buffer8 = new Uint8Array(buffer); this.blocks = new Uint32Array(buffer); } else { this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } } this.h0 = this.h1 = this.h2 = this.h3 = this.start = this.bytes = this.hBytes = 0; this.finalized = this.hashed = false; this.first = true; } /** * @method update * @memberof Md5 * @instance * @description Update hash * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Md5} Md5 object. * @see {@link md5.update} */ Md5.prototype.update = function (message) { if (this.finalized) { return; } var notString, type = typeof message; if (type !== 'string') { if (type === 'object') { if (message === null) { throw ERROR; } else if (ARRAY_BUFFER && message.constructor === ArrayBuffer) { message = new Uint8Array(message); } else if (!Array.isArray(message)) { if (!ARRAY_BUFFER || !ArrayBuffer.isView(message)) { throw ERROR; } } } else { throw ERROR; } notString = true; } var code, index = 0, i, length = message.length, blocks = this.blocks; var buffer8 = this.buffer8; while (index < length) { if (this.hashed) { this.hashed = false; blocks[0] = blocks[16]; blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; } if (notString) { if (ARRAY_BUFFER) { for (i = this.start; index < length && i < 64; ++index) { buffer8[i++] = message[index]; } } else { for (i = this.start; index < length && i < 64; ++index) { blocks[i >> 2] |= message[index] << SHIFT[i++ & 3]; } } } else { if (ARRAY_BUFFER) { for (i = this.start; index < length && i < 64; ++index) { code = message.charCodeAt(index); if (code < 0x80) { buffer8[i++] = code; } else if (code < 0x800) { buffer8[i++] = 0xc0 | (code >> 6); buffer8[i++] = 0x80 | (code & 0x3f); } else if (code < 0xd800 || code >= 0xe000) { buffer8[i++] = 0xe0 | (code >> 12); buffer8[i++] = 0x80 | ((code >> 6) & 0x3f); buffer8[i++] = 0x80 | (code & 0x3f); } else { code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff)); buffer8[i++] = 0xf0 | (code >> 18); buffer8[i++] = 0x80 | ((code >> 12) & 0x3f); buffer8[i++] = 0x80 | ((code >> 6) & 0x3f); buffer8[i++] = 0x80 | (code & 0x3f); } } } else { for (i = this.start; index < length && i < 64; ++index) { code = message.charCodeAt(index); if (code < 0x80) { blocks[i >> 2] |= code << SHIFT[i++ & 3]; } else if (code < 0x800) { blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } else if (code < 0xd800 || code >= 0xe000) { blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } else { code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff)); blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } } } } this.lastByteIndex = i; this.bytes += i - this.start; if (i >= 64) { this.start = i - 64; this.hash(); this.hashed = true; } else { this.start = i; } } if (this.bytes > 4294967295) { this.hBytes += this.bytes / 4294967296 << 0; this.bytes = this.bytes % 4294967296; } return this; }; Md5.prototype.finalize = function () { if (this.finalized) { return; } this.finalized = true; var blocks = this.blocks, i = this.lastByteIndex; blocks[i >> 2] |= EXTRA[i & 3]; if (i >= 56) { if (!this.hashed) { this.hash(); } blocks[0] = blocks[16]; blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; } blocks[14] = this.bytes << 3; blocks[15] = this.hBytes << 3 | this.bytes >>> 29; this.hash(); }; Md5.prototype.hash = function () { var a, b, c, d, bc, da, blocks = this.blocks; if (this.first) { a = blocks[0] - 680876937; a = (a << 7 | a >>> 25) - 271733879 << 0; d = (-1732584194 ^ a & 2004318071) + blocks[1] - 117830708; d = (d << 12 | d >>> 20) + a << 0; c = (-271733879 ^ (d & (a ^ -271733879))) + blocks[2] - 1126478375; c = (c << 17 | c >>> 15) + d << 0; b = (a ^ (c & (d ^ a))) + blocks[3] - 1316259209; b = (b << 22 | b >>> 10) + c << 0; } else { a = this.h0; b = this.h1; c = this.h2; d = this.h3; a += (d ^ (b & (c ^ d))) + blocks[0] - 680876936; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[1] - 389564586; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[2] + 606105819; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[3] - 1044525330; b = (b << 22 | b >>> 10) + c << 0; } a += (d ^ (b & (c ^ d))) + blocks[4] - 176418897; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[5] + 1200080426; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[6] - 1473231341; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[7] - 45705983; b = (b << 22 | b >>> 10) + c << 0; a += (d ^ (b & (c ^ d))) + blocks[8] + 1770035416; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[9] - 1958414417; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[10] - 42063; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[11] - 1990404162; b = (b << 22 | b >>> 10) + c << 0; a += (d ^ (b & (c ^ d))) + blocks[12] + 1804603682; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[13] - 40341101; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[14] - 1502002290; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[15] + 1236535329; b = (b << 22 | b >>> 10) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[1] - 165796510; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[6] - 1069501632; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[11] + 643717713; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[0] - 373897302; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[5] - 701558691; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[10] + 38016083; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[15] - 660478335; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[4] - 405537848; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[9] + 568446438; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[14] - 1019803690; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[3] - 187363961; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[8] + 1163531501; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[13] - 1444681467; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[2] - 51403784; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[7] + 1735328473; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[12] - 1926607734; b = (b << 20 | b >>> 12) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[5] - 378558; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[8] - 2022574463; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[11] + 1839030562; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[14] - 35309556; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[1] - 1530992060; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[4] + 1272893353; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[7] - 155497632; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[10] - 1094730640; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[13] + 681279174; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[0] - 358537222; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[3] - 722521979; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[6] + 76029189; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[9] - 640364487; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[12] - 421815835; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[15] + 530742520; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[2] - 995338651; b = (b << 23 | b >>> 9) + c << 0; a += (c ^ (b | ~d)) + blocks[0] - 198630844; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[7] + 1126891415; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[14] - 1416354905; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[5] - 57434055; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[12] + 1700485571; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[3] - 1894986606; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[10] - 1051523; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[1] - 2054922799; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[8] + 1873313359; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[15] - 30611744; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[6] - 1560198380; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[13] + 1309151649; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[4] - 145523070; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[11] - 1120210379; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[2] + 718787259; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[9] - 343485551; b = (b << 21 | b >>> 11) + c << 0; if (this.first) { this.h0 = a + 1732584193 << 0; this.h1 = b - 271733879 << 0; this.h2 = c - 1732584194 << 0; this.h3 = d + 271733878 << 0; this.first = false; } else { this.h0 = this.h0 + a << 0; this.h1 = this.h1 + b << 0; this.h2 = this.h2 + c << 0; this.h3 = this.h3 + d << 0; } }; /** * @method hex * @memberof Md5 * @instance * @description Output hash as hex string * @returns {String} Hex string * @see {@link md5.hex} * @example * hash.hex(); */ Md5.prototype.hex = function () { this.finalize(); var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3; return HEX_CHARS[(h0 >> 4) & 0x0F] + HEX_CHARS[h0 & 0x0F] + HEX_CHARS[(h0 >> 12) & 0x0F] + HEX_CHARS[(h0 >> 8) & 0x0F] + HEX_CHARS[(h0 >> 20) & 0x0F] + HEX_CHARS[(h0 >> 16) & 0x0F] + HEX_CHARS[(h0 >> 28) & 0x0F] + HEX_CHARS[(h0 >> 24) & 0x0F] + HEX_CHARS[(h1 >> 4) & 0x0F] + HEX_CHARS[h1 & 0x0F] + HEX_CHARS[(h1 >> 12) & 0x0F] + HEX_CHARS[(h1 >> 8) & 0x0F] + HEX_CHARS[(h1 >> 20) & 0x0F] + HEX_CHARS[(h1 >> 16) & 0x0F] + HEX_CHARS[(h1 >> 28) & 0x0F] + HEX_CHARS[(h1 >> 24) & 0x0F] + HEX_CHARS[(h2 >> 4) & 0x0F] + HEX_CHARS[h2 & 0x0F] + HEX_CHARS[(h2 >> 12) & 0x0F] + HEX_CHARS[(h2 >> 8) & 0x0F] + HEX_CHARS[(h2 >> 20) & 0x0F] + HEX_CHARS[(h2 >> 16) & 0x0F] + HEX_CHARS[(h2 >> 28) & 0x0F] + HEX_CHARS[(h2 >> 24) & 0x0F] + HEX_CHARS[(h3 >> 4) & 0x0F] + HEX_CHARS[h3 & 0x0F] + HEX_CHARS[(h3 >> 12) & 0x0F] + HEX_CHARS[(h3 >> 8) & 0x0F] + HEX_CHARS[(h3 >> 20) & 0x0F] + HEX_CHARS[(h3 >> 16) & 0x0F] + HEX_CHARS[(h3 >> 28) & 0x0F] + HEX_CHARS[(h3 >> 24) & 0x0F]; }; /** * @method toString * @memberof Md5 * @instance * @description Output hash as hex string * @returns {String} Hex string * @see {@link md5.hex} * @example * hash.toString(); */ Md5.prototype.toString = Md5.prototype.hex; /** * @method digest * @memberof Md5 * @instance * @description Output hash as bytes array * @returns {Array} Bytes array * @see {@link md5.digest} * @example * hash.digest(); */ Md5.prototype.digest = function () { this.finalize(); var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3; return [ h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >> 24) & 0xFF, h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >> 24) & 0xFF, h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >> 24) & 0xFF, h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >> 24) & 0xFF ]; }; /** * @method array * @memberof Md5 * @instance * @description Output hash as bytes array * @returns {Array} Bytes array * @see {@link md5.array} * @example * hash.array(); */ Md5.prototype.array = Md5.prototype.digest; /** * @method arrayBuffer * @memberof Md5 * @instance * @description Output hash as ArrayBuffer * @returns {ArrayBuffer} ArrayBuffer * @see {@link md5.arrayBuffer} * @example * hash.arrayBuffer(); */ Md5.prototype.arrayBuffer = function () { this.finalize(); var buffer = new ArrayBuffer(16); var blocks = new Uint32Array(buffer); blocks[0] = this.h0; blocks[1] = this.h1; blocks[2] = this.h2; blocks[3] = this.h3; return buffer; }; /** * @method buffer * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead. * @memberof Md5 * @instance * @description Output hash as ArrayBuffer * @returns {ArrayBuffer} ArrayBuffer * @see {@link md5.buffer} * @example * hash.buffer(); */ Md5.prototype.buffer = Md5.prototype.arrayBuffer; /** * @method base64 * @memberof Md5 * @instance * @description Output hash as base64 string * @returns {String} base64 string * @see {@link md5.base64} * @example * hash.base64(); */ Md5.prototype.base64 = function () { var v1, v2, v3, base64Str = '', bytes = this.array(); for (var i = 0; i < 15;) { v1 = bytes[i++]; v2 = bytes[i++]; v3 = bytes[i++]; base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] + BASE64_ENCODE_CHAR[(v1 << 4 | v2 >>> 4) & 63] + BASE64_ENCODE_CHAR[(v2 << 2 | v3 >>> 6) & 63] + BASE64_ENCODE_CHAR[v3 & 63]; } v1 = bytes[i]; base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] + BASE64_ENCODE_CHAR[(v1 << 4) & 63] + '=='; return base64Str; }; var exports = createMethod(); if (COMMON_JS) { module.exports = exports; } else { /** * @method md5 * @description Md5 hash function, export to global in browsers. * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} md5 hashes * @example * md5(''); // d41d8cd98f00b204e9800998ecf8427e * md5('The quick brown fox jumps over the lazy dog'); // 9e107d9d372bb6826bd81d3542a419d6 * md5('The quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffaddf22cbd0 * * // It also supports UTF-8 encoding * md5('中文'); // a7bac2239fcdcb3a067903d8077c4a07 * * // It also supports byte `Array`, `Uint8Array`, `ArrayBuffer` * md5([]); // d41d8cd98f00b204e9800998ecf8427e * md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e */ root.md5 = exports; if (AMD) { !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { return exports; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } } })(); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362"), __webpack_require__("c8ba"))) /***/ }), /***/ "83b9": /***/ (function(module, exports, __webpack_require__) { "use strict"; var isAbsoluteURL = __webpack_require__("d925"); var combineURLs = __webpack_require__("e683"); /** * Creates a new URL by combining the baseURL with the requestedURL, * only when the requestedURL is not already an absolute URL. * If the requestURL is absolute, this function returns the requestedURL untouched. * * @param {string} baseURL The base URL * @param {string} requestedURL Absolute or relative URL to combine * @returns {string} The combined full path */ module.exports = function buildFullPath(baseURL, requestedURL) { if (baseURL && !isAbsoluteURL(requestedURL)) { return combineURLs(baseURL, requestedURL); } return requestedURL; }; /***/ }), /***/ "852e": /***/ (function(module, exports, __webpack_require__) { /*! js-cookie v3.0.1 | MIT */ ; (function (global, factory) { true ? module.exports = factory() : undefined; }(this, (function () { 'use strict'; /* eslint-disable no-var */ function assign (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { target[key] = source[key]; } } return target } /* eslint-enable no-var */ /* eslint-disable no-var */ var defaultConverter = { read: function (value) { if (value[0] === '"') { value = value.slice(1, -1); } return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent) }, write: function (value) { return encodeURIComponent(value).replace( /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent ) } }; /* eslint-enable no-var */ /* eslint-disable no-var */ function init (converter, defaultAttributes) { function set (key, value, attributes) { if (typeof document === 'undefined') { return } attributes = assign({}, defaultAttributes, attributes); if (typeof attributes.expires === 'number') { attributes.expires = new Date(Date.now() + attributes.expires * 864e5); } if (attributes.expires) { attributes.expires = attributes.expires.toUTCString(); } key = encodeURIComponent(key) .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent) .replace(/[()]/g, escape); var stringifiedAttributes = ''; for (var attributeName in attributes) { if (!attributes[attributeName]) { continue } stringifiedAttributes += '; ' + attributeName; if (attributes[attributeName] === true) { continue } // Considers RFC 6265 section 5.2: // ... // 3. If the remaining unparsed-attributes contains a %x3B (";") // character: // Consume the characters of the unparsed-attributes up to, // not including, the first %x3B (";") character. // ... stringifiedAttributes += '=' + attributes[attributeName].split(';')[0]; } return (document.cookie = key + '=' + converter.write(value, key) + stringifiedAttributes) } function get (key) { if (typeof document === 'undefined' || (arguments.length && !key)) { return } // To prevent the for loop in the first place assign an empty array // in case there are no cookies at all. var cookies = document.cookie ? document.cookie.split('; ') : []; var jar = {}; for (var i = 0; i < cookies.length; i++) { var parts = cookies[i].split('='); var value = parts.slice(1).join('='); try { var foundKey = decodeURIComponent(parts[0]); jar[foundKey] = converter.read(value, foundKey); if (key === foundKey) { break } } catch (e) {} } return key ? jar[key] : jar } return Object.create( { set: set, get: get, remove: function (key, attributes) { set( key, '', assign({}, attributes, { expires: -1 }) ); }, withAttributes: function (attributes) { return init(this.converter, assign({}, this.attributes, attributes)) }, withConverter: function (converter) { return init(assign({}, this.converter, converter), this.attributes) } }, { attributes: { value: Object.freeze(defaultAttributes) }, converter: { value: Object.freeze(converter) } } ) } var api = init(defaultConverter, { path: '/' }); /* eslint-enable no-var */ return api; }))); /***/ }), /***/ "85e3": /***/ (function(module, exports) { /** * A faster alternative to `Function#apply`, this function invokes `func` * with the `this` binding of `thisArg` and the arguments of `args`. * * @private * @param {Function} func The function to invoke. * @param {*} thisArg The `this` binding of `func`. * @param {Array} args The arguments to invoke `func` with. * @returns {*} Returns the result of `func`. */ function apply(func, thisArg, args) { switch (args.length) { case 0: return func.call(thisArg); case 1: return func.call(thisArg, args[0]); case 2: return func.call(thisArg, args[0], args[1]); case 3: return func.call(thisArg, args[0], args[1], args[2]); } return func.apply(thisArg, args); } module.exports = apply; /***/ }), /***/ "872a": /***/ (function(module, exports, __webpack_require__) { var defineProperty = __webpack_require__("3b4a"); /** * The base implementation of `assignValue` and `assignMergeValue` without * value checks. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function baseAssignValue(object, key, value) { if (key == '__proto__' && defineProperty) { defineProperty(object, key, { 'configurable': true, 'enumerable': true, 'value': value, 'writable': true }); } else { object[key] = value; } } module.exports = baseAssignValue; /***/ }), /***/ "8861": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI1010 = function (_MSI) { _inherits(MSI1010, _MSI); function MSI1010(data, options) { _classCallCheck(this, MSI1010); data += (0, _checksums.mod10)(data); data += (0, _checksums.mod10)(data); return _possibleConstructorReturn(this, (MSI1010.__proto__ || Object.getPrototypeOf(MSI1010)).call(this, data, options)); } return MSI1010; }(_MSI3.default); exports.default = MSI1010; /***/ }), /***/ "8875": /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller // MIT license // source: https://github.com/amiller-gh/currentScript-polyfill // added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505 (function (root, factory) { if (true) { !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __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 {} }(typeof self !== 'undefined' ? self : this, function () { function getCurrentScript () { var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript') // for chrome if (!descriptor && 'currentScript' in document && document.currentScript) { return document.currentScript } // for other browsers with native support for currentScript if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) { return document.currentScript } // IE 8-10 support script readyState // IE 11+ & Firefox support stack trace try { throw new Error(); } catch (err) { // Find the second match for the "at" string to get file src url from stack. var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig, ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig, stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack), scriptLocation = (stackDetails && stackDetails[1]) || false, line = (stackDetails && stackDetails[2]) || false, currentLocation = document.location.href.replace(document.location.hash, ''), pageSource, inlineScriptSourceRegExp, inlineScriptSource, scripts = document.getElementsByTagName('script'); // Live NodeList collection if (scriptLocation === currentLocation) { pageSource = document.documentElement.outerHTML; inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i'); inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim(); } for (var i = 0; i < scripts.length; i++) { // If ready state is interactive, return the script tag if (scripts[i].readyState === 'interactive') { return scripts[i]; } // If src matches, return the script tag if (scripts[i].src === scriptLocation) { return scripts[i]; } // If inline source matches, return the script tag if ( scriptLocation === currentLocation && scripts[i].innerHTML && scripts[i].innerHTML.trim() === inlineScriptSource ) { return scripts[i]; } } // If no match, return null return null; } }; return getCurrentScript })); /***/ }), /***/ "89a2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; var _constants = __webpack_require__("c243"); var _EAN2 = __webpack_require__("bdfe"); var _EAN3 = _interopRequireDefault(_EAN2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Binary_encoding_of_data_digits_into_EAN-13_barcode // Calculate the checksum digit // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Calculation_of_checksum_digit var checksum = function checksum(number) { var res = number.substr(0, 12).split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a * 3 : sum + a; }, 0); return (10 - res % 10) % 10; }; var EAN13 = function (_EAN) { _inherits(EAN13, _EAN); function EAN13(data, options) { _classCallCheck(this, EAN13); // Add checksum if it does not exist if (data.search(/^[0-9]{12}$/) !== -1) { data += checksum(data); } // Adds a last character to the end of the barcode var _this = _possibleConstructorReturn(this, (EAN13.__proto__ || Object.getPrototypeOf(EAN13)).call(this, data, options)); _this.lastChar = options.lastChar; return _this; } _createClass(EAN13, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{13}$/) !== -1 && +this.data[12] === checksum(this.data); } }, { key: 'leftText', value: function leftText() { return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'leftText', this).call(this, 1, 6); } }, { key: 'leftEncode', value: function leftEncode() { var data = this.data.substr(1, 6); var structure = _constants.EAN13_STRUCTURE[this.data[0]]; return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'leftEncode', this).call(this, data, structure); } }, { key: 'rightText', value: function rightText() { return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'rightText', this).call(this, 7, 6); } }, { key: 'rightEncode', value: function rightEncode() { var data = this.data.substr(7, 6); return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'rightEncode', this).call(this, data, 'RRRRRR'); } // The "standard" way of printing EAN13 barcodes with guard bars }, { key: 'encodeGuarded', value: function encodeGuarded() { var data = _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'encodeGuarded', this).call(this); // Extend data with left digit & last character if (this.options.displayValue) { data.unshift({ data: '000000000000', text: this.text.substr(0, 1), options: { textAlign: 'left', fontSize: this.fontSize } }); if (this.options.lastChar) { data.push({ data: '00' }); data.push({ data: '00000', text: this.options.lastChar, options: { fontSize: this.fontSize } }); } } return data; } }]); return EAN13; }(_EAN3.default); exports.default = EAN13; /***/ }), /***/ "8adb": /***/ (function(module, exports) { /** * Gets the value at `key`, unless `key` is "__proto__". * * @private * @param {Object} object The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function safeGet(object, key) { if (key == '__proto__') { return; } return object[key]; } module.exports = safeGet; /***/ }), /***/ "8de2": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keysIn = __webpack_require__("9934"); /** * Converts `value` to a plain object flattening inherited enumerable string * keyed properties of `value` to own properties of the plain object. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to convert. * @returns {Object} Returns the converted plain object. * @example * * function Foo() { * this.b = 2; * } * * Foo.prototype.c = 3; * * _.assign({ 'a': 1 }, new Foo); * // => { 'a': 1, 'b': 2 } * * _.assign({ 'a': 1 }, _.toPlainObject(new Foo)); * // => { 'a': 1, 'b': 2, 'c': 3 } */ function toPlainObject(value) { return copyObject(value, keysIn(value)); } module.exports = toPlainObject; /***/ }), /***/ "8df4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var Cancel = __webpack_require__("7a77"); /** * A `CancelToken` is an object that can be used to request cancellation of an operation. * * @class * @param {Function} executor The executor function. */ function CancelToken(executor) { if (typeof executor !== 'function') { throw new TypeError('executor must be a function.'); } var resolvePromise; this.promise = new Promise(function promiseExecutor(resolve) { resolvePromise = resolve; }); var token = this; executor(function cancel(message) { if (token.reason) { // Cancellation has already been requested return; } token.reason = new Cancel(message); resolvePromise(token.reason); }); } /** * Throws a `Cancel` if cancellation has been requested. */ CancelToken.prototype.throwIfRequested = function throwIfRequested() { if (this.reason) { throw this.reason; } }; /** * Returns an object that contains a new `CancelToken` and a function that, when called, * cancels the `CancelToken`. */ CancelToken.source = function source() { var cancel; var token = new CancelToken(function executor(c) { cancel = c; }); return { token: token, cancel: cancel }; }; module.exports = CancelToken; /***/ }), /***/ "8e51": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MSI1110 = exports.MSI1010 = exports.MSI11 = exports.MSI10 = exports.MSI = undefined; var _MSI = __webpack_require__("124f"); var _MSI2 = _interopRequireDefault(_MSI); var _MSI3 = __webpack_require__("4727"); var _MSI4 = _interopRequireDefault(_MSI3); var _MSI5 = __webpack_require__("4461"); var _MSI6 = _interopRequireDefault(_MSI5); var _MSI7 = __webpack_require__("8861"); var _MSI8 = _interopRequireDefault(_MSI7); var _MSI9 = __webpack_require__("805f"); var _MSI10 = _interopRequireDefault(_MSI9); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.MSI = _MSI2.default; exports.MSI10 = _MSI4.default; exports.MSI11 = _MSI6.default; exports.MSI1010 = _MSI8.default; exports.MSI1110 = _MSI10.default; /***/ }), /***/ "8eeb": /***/ (function(module, exports, __webpack_require__) { var assignValue = __webpack_require__("32b3"), baseAssignValue = __webpack_require__("872a"); /** * Copies properties of `source` to `object`. * * @private * @param {Object} source The object to copy properties from. * @param {Array} props The property identifiers to copy. * @param {Object} [object={}] The object to copy properties to. * @param {Function} [customizer] The function to customize copied values. * @returns {Object} Returns `object`. */ function copyObject(source, props, object, customizer) { var isNew = !object; object || (object = {}); var index = -1, length = props.length; while (++index < length) { var key = props[index]; var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined; if (newValue === undefined) { newValue = source[key]; } if (isNew) { baseAssignValue(object, key, newValue); } else { assignValue(object, key, newValue); } } return object; } module.exports = copyObject; /***/ }), /***/ "91e9": /***/ (function(module, exports) { /** * Creates a unary function that invokes `func` with its argument transformed. * * @private * @param {Function} func The function to wrap. * @param {Function} transform The argument transform. * @returns {Function} Returns the new function. */ function overArg(func, transform) { return function(arg) { return func(transform(arg)); }; } module.exports = overArg; /***/ }), /***/ "93ed": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Removes `key` and its value from the map. * * @private * @name delete * @memberOf MapCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function mapCacheDelete(key) { var result = getMapData(this, key)['delete'](key); this.size -= result ? 1 : 0; return result; } module.exports = mapCacheDelete; /***/ }), /***/ "9520": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObject = __webpack_require__("1a8c"); /** `Object#toString` result references. */ var asyncTag = '[object AsyncFunction]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', proxyTag = '[object Proxy]'; /** * Checks if `value` is classified as a `Function` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.isFunction(_); * // => true * * _.isFunction(/abc/); * // => false */ function isFunction(value) { if (!isObject(value)) { return false; } // The use of `Object#toString` avoids issues with the `typeof` operator // in Safari 9 which returns 'object' for typed arrays and other constructors. var tag = baseGetTag(value); return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; } module.exports = isFunction; /***/ }), /***/ "9638": /***/ (function(module, exports) { /** * Performs a * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.eq(object, object); * // => true * * _.eq(object, other); * // => false * * _.eq('a', 'a'); * // => true * * _.eq('a', Object('a')); * // => false * * _.eq(NaN, NaN); * // => true */ function eq(value, other) { return value === other || (value !== value && other !== other); } module.exports = eq; /***/ }), /***/ "96f3": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.has` without support for deep paths. * * @private * @param {Object} [object] The object to query. * @param {Array|string} key The key to check. * @returns {boolean} Returns `true` if `key` exists, else `false`. */ function baseHas(object, key) { return object != null && hasOwnProperty.call(object, key); } module.exports = baseHas; /***/ }), /***/ "9934": /***/ (function(module, exports, __webpack_require__) { var arrayLikeKeys = __webpack_require__("6fcd"), baseKeysIn = __webpack_require__("41c3"), isArrayLike = __webpack_require__("30c9"); /** * Creates an array of the own and inherited enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. * * @static * @memberOf _ * @since 3.0.0 * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keysIn(new Foo); * // => ['a', 'b', 'c'] (iteration order is not guaranteed) */ function keysIn(object) { return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); } module.exports = keysIn; /***/ }), /***/ "99cd": /***/ (function(module, exports) { /** * Creates a base function for methods like `_.forIn` and `_.forOwn`. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the new base function. */ function createBaseFor(fromRight) { return function(object, iteratee, keysFunc) { var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; while (length--) { var key = props[fromRight ? length : ++index]; if (iteratee(iterable[key], key, iterable) === false) { break; } } return object; }; } module.exports = createBaseFor; /***/ }), /***/ "99d3": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__("585a"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Detect free variable `process` from Node.js. */ var freeProcess = moduleExports && freeGlobal.process; /** Used to access faster Node.js helpers. */ var nodeUtil = (function() { try { // Use `util.types` for Node.js 10+. var types = freeModule && freeModule.require && freeModule.require('util').types; if (types) { return types; } // Legacy `process.binding('util')` for Node.js < 10. return freeProcess && freeProcess.binding && freeProcess.binding('util'); } catch (e) {} }()); module.exports = nodeUtil; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "9aff": /***/ (function(module, exports, __webpack_require__) { var eq = __webpack_require__("9638"), isArrayLike = __webpack_require__("30c9"), isIndex = __webpack_require__("c098"), isObject = __webpack_require__("1a8c"); /** * Checks if the given arguments are from an iteratee call. * * @private * @param {*} value The potential iteratee value argument. * @param {*} index The potential iteratee index or key argument. * @param {*} object The potential iteratee object argument. * @returns {boolean} Returns `true` if the arguments are from an iteratee call, * else `false`. */ function isIterateeCall(value, index, object) { if (!isObject(object)) { return false; } var type = typeof index; if (type == 'number' ? (isArrayLike(object) && isIndex(index, object.length)) : (type == 'string' && index in object) ) { return eq(object[index], value); } return false; } module.exports = isIterateeCall; /***/ }), /***/ "9e69": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Built-in value references. */ var Symbol = root.Symbol; module.exports = Symbol; /***/ }), /***/ "9ffa": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ITF14 = exports.ITF = undefined; var _ITF = __webpack_require__("3c7c"); var _ITF2 = _interopRequireDefault(_ITF); var _ITF3 = __webpack_require__("07df"); var _ITF4 = _interopRequireDefault(_ITF3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.ITF = _ITF2.default; exports.ITF14 = _ITF4.default; /***/ }), /***/ "a029": /***/ (function(module, exports, __webpack_require__) { var arrayPush = __webpack_require__("087d"), getPrototype = __webpack_require__("2dcb"), getSymbols = __webpack_require__("32f4"), stubArray = __webpack_require__("d327"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetSymbols = Object.getOwnPropertySymbols; /** * Creates an array of the own and inherited enumerable symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { var result = []; while (object) { arrayPush(result, getSymbols(object)); object = getPrototype(object); } return result; }; module.exports = getSymbolsIn; /***/ }), /***/ "a2b0": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = linearizeEncodings; // Encodings can be nestled like [[1-1, 1-2], 2, [3-1, 3-2] // Convert to [1-1, 1-2, 2, 3-1, 3-2] function linearizeEncodings(encodings) { var linearEncodings = []; function nextLevel(encoded) { if (Array.isArray(encoded)) { for (var i = 0; i < encoded.length; i++) { nextLevel(encoded[i]); } } else { encoded.text = encoded.text || ""; encoded.data = encoded.data || ""; linearEncodings.push(encoded); } } nextLevel(encodings); return linearEncodings; } /***/ }), /***/ "a2db": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"); /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; /** * Creates a clone of the `symbol` object. * * @private * @param {Object} symbol The symbol object to clone. * @returns {Object} Returns the cloned symbol object. */ function cloneSymbol(symbol) { return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; } module.exports = cloneSymbol; /***/ }), /***/ "a454": /***/ (function(module, exports, __webpack_require__) { var constant = __webpack_require__("72f0"), defineProperty = __webpack_require__("3b4a"), identity = __webpack_require__("cd9d"); /** * The base implementation of `setToString` without support for hot loop shorting. * * @private * @param {Function} func The function to modify. * @param {Function} string The `toString` result. * @returns {Function} Returns `func`. */ var baseSetToString = !defineProperty ? identity : function(func, string) { return defineProperty(func, 'toString', { 'configurable': true, 'enumerable': false, 'value': constant(string), 'writable': true }); }; module.exports = baseSetToString; /***/ }), /***/ "a524": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Checks if a map value for `key` exists. * * @private * @name has * @memberOf MapCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function mapCacheHas(key) { return getMapData(this, key).has(key); } module.exports = mapCacheHas; /***/ }), /***/ "a5d2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/EAN_2#Encoding var EAN2 = function (_Barcode) { _inherits(EAN2, _Barcode); function EAN2(data, options) { _classCallCheck(this, EAN2); return _possibleConstructorReturn(this, (EAN2.__proto__ || Object.getPrototypeOf(EAN2)).call(this, data, options)); } _createClass(EAN2, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{2}$/) !== -1; } }, { key: 'encode', value: function encode() { // Choose the structure based on the number mod 4 var structure = _constants.EAN2_STRUCTURE[parseInt(this.data) % 4]; return { // Start bits + Encode the two digits with 01 in between data: '1011' + (0, _encoder2.default)(this.data, structure, '01'), text: this.text }; } }]); return EAN2; }(_Barcode3.default); exports.default = EAN2; /***/ }), /***/ "a994": /***/ (function(module, exports, __webpack_require__) { var baseGetAllKeys = __webpack_require__("7d1f"), getSymbols = __webpack_require__("32f4"), keys = __webpack_require__("ec69"); /** * Creates an array of own enumerable property names and symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names and symbols. */ function getAllKeys(object) { return baseGetAllKeys(object, keys, getSymbols); } module.exports = getAllKeys; /***/ }), /***/ "aab3": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _optionsFromStrings = __webpack_require__("5261"); var _optionsFromStrings2 = _interopRequireDefault(_optionsFromStrings); var _defaults = __webpack_require__("ca32"); var _defaults2 = _interopRequireDefault(_defaults); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function getOptionsFromElement(element) { var options = {}; for (var property in _defaults2.default) { if (_defaults2.default.hasOwnProperty(property)) { // jsbarcode-* if (element.hasAttribute("jsbarcode-" + property.toLowerCase())) { options[property] = element.getAttribute("jsbarcode-" + property.toLowerCase()); } // data-* if (element.hasAttribute("data-" + property.toLowerCase())) { options[property] = element.getAttribute("data-" + property.toLowerCase()); } } } options["value"] = element.getAttribute("jsbarcode-value") || element.getAttribute("data-value"); // Since all atributes are string they need to be converted to integers options = (0, _optionsFromStrings2.default)(options); return options; } exports.default = getOptionsFromElement; /***/ }), /***/ "ab5b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTotalWidthOfEncodings = exports.calculateEncodingAttributes = exports.getBarcodePadding = exports.getEncodingHeight = exports.getMaximumHeightOfEncodings = undefined; var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function getEncodingHeight(encoding, options) { return options.height + (options.displayValue && encoding.text.length > 0 ? options.fontSize + options.textMargin : 0) + options.marginTop + options.marginBottom; } function getBarcodePadding(textWidth, barcodeWidth, options) { if (options.displayValue && barcodeWidth < textWidth) { if (options.textAlign == "center") { return Math.floor((textWidth - barcodeWidth) / 2); } else if (options.textAlign == "left") { return 0; } else if (options.textAlign == "right") { return Math.floor(textWidth - barcodeWidth); } } return 0; } function calculateEncodingAttributes(encodings, barcodeOptions, context) { for (var i = 0; i < encodings.length; i++) { var encoding = encodings[i]; var options = (0, _merge2.default)(barcodeOptions, encoding.options); // Calculate the width of the encoding var textWidth; if (options.displayValue) { textWidth = messureText(encoding.text, options, context); } else { textWidth = 0; } var barcodeWidth = encoding.data.length * options.width; encoding.width = Math.ceil(Math.max(textWidth, barcodeWidth)); encoding.height = getEncodingHeight(encoding, options); encoding.barcodePadding = getBarcodePadding(textWidth, barcodeWidth, options); } } function getTotalWidthOfEncodings(encodings) { var totalWidth = 0; for (var i = 0; i < encodings.length; i++) { totalWidth += encodings[i].width; } return totalWidth; } function getMaximumHeightOfEncodings(encodings) { var maxHeight = 0; for (var i = 0; i < encodings.length; i++) { if (encodings[i].height > maxHeight) { maxHeight = encodings[i].height; } } return maxHeight; } function messureText(string, options, context) { var ctx; if (context) { ctx = context; } else if (typeof document !== "undefined") { ctx = document.createElement("canvas").getContext("2d"); } else { // If the text cannot be messured we will return 0. // This will make some barcode with big text render incorrectly return 0; } ctx.font = options.fontOptions + " " + options.fontSize + "px " + options.font; // Calculate the width of the encoding var measureTextResult = ctx.measureText(string); if (!measureTextResult) { // Some implementations don't implement measureText and return undefined. // If the text cannot be measured we will return 0. // This will make some barcode with big text render incorrectly return 0; } var size = measureTextResult.width; return size; } exports.getMaximumHeightOfEncodings = getMaximumHeightOfEncodings; exports.getEncodingHeight = getEncodingHeight; exports.getBarcodePadding = getBarcodePadding; exports.calculateEncodingAttributes = calculateEncodingAttributes; exports.getTotalWidthOfEncodings = getTotalWidthOfEncodings; /***/ }), /***/ "b047": /***/ (function(module, exports) { /** * The base implementation of `_.unary` without support for storing metadata. * * @private * @param {Function} func The function to cap arguments for. * @returns {Function} Returns the new capped function. */ function baseUnary(func) { return function(value) { return func(value); }; } module.exports = baseUnary; /***/ }), /***/ "b1d2": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var dateTag = '[object Date]'; /** * The base implementation of `_.isDate` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a date object, else `false`. */ function baseIsDate(value) { return isObjectLike(value) && baseGetTag(value) == dateTag; } module.exports = baseIsDate; /***/ }), /***/ "b1d8": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /* global HTMLImageElement */ /* global HTMLCanvasElement */ /* global SVGElement */ var _getOptionsFromElement = __webpack_require__("aab3"); var _getOptionsFromElement2 = _interopRequireDefault(_getOptionsFromElement); var _renderers = __webpack_require__("752b"); var _renderers2 = _interopRequireDefault(_renderers); var _exceptions = __webpack_require__("dca2"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // Takes an element and returns an object with information about how // it should be rendered // This could also return an array with these objects // { // element: The element that the renderer should draw on // renderer: The name of the renderer // afterRender (optional): If something has to done after the renderer // completed, calls afterRender (function) // options (optional): Options that can be defined in the element // } function getRenderProperties(element) { // If the element is a string, query select call again if (typeof element === "string") { return querySelectedRenderProperties(element); } // If element is array. Recursivly call with every object in the array else if (Array.isArray(element)) { var returnArray = []; for (var i = 0; i < element.length; i++) { returnArray.push(getRenderProperties(element[i])); } return returnArray; } // If element, render on canvas and set the uri as src else if (typeof HTMLCanvasElement !== 'undefined' && element instanceof HTMLImageElement) { return newCanvasRenderProperties(element); } // If SVG else if (element && element.nodeName && element.nodeName.toLowerCase() === 'svg' || typeof SVGElement !== 'undefined' && element instanceof SVGElement) { return { element: element, options: (0, _getOptionsFromElement2.default)(element), renderer: _renderers2.default.SVGRenderer }; } // If canvas (in browser) else if (typeof HTMLCanvasElement !== 'undefined' && element instanceof HTMLCanvasElement) { return { element: element, options: (0, _getOptionsFromElement2.default)(element), renderer: _renderers2.default.CanvasRenderer }; } // If canvas (in node) else if (element && element.getContext) { return { element: element, renderer: _renderers2.default.CanvasRenderer }; } else if (element && (typeof element === "undefined" ? "undefined" : _typeof(element)) === 'object' && !element.nodeName) { return { element: element, renderer: _renderers2.default.ObjectRenderer }; } else { throw new _exceptions.InvalidElementException(); } } function querySelectedRenderProperties(string) { var selector = document.querySelectorAll(string); if (selector.length === 0) { return undefined; } else { var returnArray = []; for (var i = 0; i < selector.length; i++) { returnArray.push(getRenderProperties(selector[i])); } return returnArray; } } function newCanvasRenderProperties(imgElement) { var canvas = document.createElement('canvas'); return { element: canvas, options: (0, _getOptionsFromElement2.default)(imgElement), renderer: _renderers2.default.CanvasRenderer, afterRender: function afterRender() { imgElement.setAttribute("src", canvas.toDataURL()); } }; } exports.default = getRenderProperties; /***/ }), /***/ "b218": /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** * Checks if `value` is a valid array-like length. * * **Note:** This method is loosely based on * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. * @example * * _.isLength(3); * // => true * * _.isLength(Number.MIN_VALUE); * // => false * * _.isLength(Infinity); * // => false * * _.isLength('3'); * // => false */ function isLength(value) { return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; } module.exports = isLength; /***/ }), /***/ "b4c0": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Gets the list cache value for `key`. * * @private * @name get * @memberOf ListCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function listCacheGet(key) { var data = this.__data__, index = assocIndexOf(data, key); return index < 0 ? undefined : data[index][1]; } module.exports = listCacheGet; /***/ }), /***/ "b50d": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var settle = __webpack_require__("467f"); var cookies = __webpack_require__("7aac"); var buildURL = __webpack_require__("30b5"); var buildFullPath = __webpack_require__("83b9"); var parseHeaders = __webpack_require__("c345"); var isURLSameOrigin = __webpack_require__("3934"); var createError = __webpack_require__("2d83"); module.exports = function xhrAdapter(config) { return new Promise(function dispatchXhrRequest(resolve, reject) { var requestData = config.data; var requestHeaders = config.headers; if (utils.isFormData(requestData)) { delete requestHeaders['Content-Type']; // Let the browser set it } if ( (utils.isBlob(requestData) || utils.isFile(requestData)) && requestData.type ) { delete requestHeaders['Content-Type']; // Let the browser set it } var request = new XMLHttpRequest(); // HTTP basic authentication if (config.auth) { var username = config.auth.username || ''; var password = unescape(encodeURIComponent(config.auth.password)) || ''; requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); } var fullPath = buildFullPath(config.baseURL, config.url); request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); // Set the request timeout in MS request.timeout = config.timeout; // Listen for ready state request.onreadystatechange = function handleLoad() { if (!request || request.readyState !== 4) { return; } // The request errored out and we didn't get a response, this will be // handled by onerror instead // With one exception: request that using file: protocol, most browsers // will return status as 0 even though it's a successful request if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { return; } // Prepare the response var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response; var response = { data: responseData, status: request.status, statusText: request.statusText, headers: responseHeaders, config: config, request: request }; settle(resolve, reject, response); // Clean up request request = null; }; // Handle browser request cancellation (as opposed to a manual cancellation) request.onabort = function handleAbort() { if (!request) { return; } reject(createError('Request aborted', config, 'ECONNABORTED', request)); // Clean up request request = null; }; // Handle low level network errors request.onerror = function handleError() { // Real errors are hidden from us by the browser // onerror should only fire if it's a network error reject(createError('Network Error', config, null, request)); // Clean up request request = null; }; // Handle timeout request.ontimeout = function handleTimeout() { var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded'; if (config.timeoutErrorMessage) { timeoutErrorMessage = config.timeoutErrorMessage; } reject(createError(timeoutErrorMessage, config, 'ECONNABORTED', request)); // Clean up request request = null; }; // Add xsrf header // This is only done if running in a standard browser environment. // Specifically not if we're in a web worker, or react-native. if (utils.isStandardBrowserEnv()) { // Add xsrf header var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : undefined; if (xsrfValue) { requestHeaders[config.xsrfHeaderName] = xsrfValue; } } // Add headers to the request if ('setRequestHeader' in request) { utils.forEach(requestHeaders, function setRequestHeader(val, key) { if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { // Remove Content-Type if data is undefined delete requestHeaders[key]; } else { // Otherwise add header to the request request.setRequestHeader(key, val); } }); } // Add withCredentials to request if needed if (!utils.isUndefined(config.withCredentials)) { request.withCredentials = !!config.withCredentials; } // Add responseType to request if needed if (config.responseType) { try { request.responseType = config.responseType; } catch (e) { // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2. // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function. if (config.responseType !== 'json') { throw e; } } } // Handle progress if needed if (typeof config.onDownloadProgress === 'function') { request.addEventListener('progress', config.onDownloadProgress); } // Not all browsers support upload events if (typeof config.onUploadProgress === 'function' && request.upload) { request.upload.addEventListener('progress', config.onUploadProgress); } if (config.cancelToken) { // Handle cancellation config.cancelToken.promise.then(function onCanceled(cancel) { if (!request) { return; } request.abort(); reject(cancel); // Clean up request request = null; }); } if (!requestData) { requestData = null; } // Send the request request.send(requestData); }); }; /***/ }), /***/ "b5a7": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var DataView = getNative(root, 'DataView'); module.exports = DataView; /***/ }), /***/ "b760": /***/ (function(module, exports, __webpack_require__) { var baseAssignValue = __webpack_require__("872a"), eq = __webpack_require__("9638"); /** * This function is like `assignValue` except that it doesn't assign * `undefined` values. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignMergeValue(object, key, value) { if ((value !== undefined && !eq(object[key], value)) || (value === undefined && !(key in object))) { baseAssignValue(object, key, value); } } module.exports = assignMergeValue; /***/ }), /***/ "bb5d": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _constants = __webpack_require__("f08e"); // Match Set functions var matchSetALength = function matchSetALength(string) { return string.match(new RegExp('^' + _constants.A_CHARS + '*'))[0].length; }; var matchSetBLength = function matchSetBLength(string) { return string.match(new RegExp('^' + _constants.B_CHARS + '*'))[0].length; }; var matchSetC = function matchSetC(string) { return string.match(new RegExp('^' + _constants.C_CHARS + '*'))[0]; }; // CODE128A or CODE128B function autoSelectFromAB(string, isA) { var ranges = isA ? _constants.A_CHARS : _constants.B_CHARS; var untilC = string.match(new RegExp('^(' + ranges + '+?)(([0-9]{2}){2,})([^0-9]|$)')); if (untilC) { return untilC[1] + String.fromCharCode(204) + autoSelectFromC(string.substring(untilC[1].length)); } var chars = string.match(new RegExp('^' + ranges + '+'))[0]; if (chars.length === string.length) { return string; } return chars + String.fromCharCode(isA ? 205 : 206) + autoSelectFromAB(string.substring(chars.length), !isA); } // CODE128C function autoSelectFromC(string) { var cMatch = matchSetC(string); var length = cMatch.length; if (length === string.length) { return string; } string = string.substring(length); // Select A/B depending on the longest match var isA = matchSetALength(string) >= matchSetBLength(string); return cMatch + String.fromCharCode(isA ? 206 : 205) + autoSelectFromAB(string, isA); } // Detect Code Set (A, B or C) and format the string exports.default = function (string) { var newString = void 0; var cLength = matchSetC(string).length; // Select 128C if the string start with enough digits if (cLength >= 2) { newString = _constants.C_START_CHAR + autoSelectFromC(string); } else { // Select A/B depending on the longest match var isA = matchSetALength(string) > matchSetBLength(string); newString = (isA ? _constants.A_START_CHAR : _constants.B_START_CHAR) + autoSelectFromAB(string, isA); } return newString.replace(/[\xCD\xCE]([^])[\xCD\xCE]/, // Any sequence between 205 and 206 characters function (match, char) { return String.fromCharCode(203) + char; }); }; /***/ }), /***/ "bbc0": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Gets the hash value for `key`. * * @private * @name get * @memberOf Hash * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function hashGet(key) { var data = this.__data__; if (nativeCreate) { var result = data[key]; return result === HASH_UNDEFINED ? undefined : result; } return hasOwnProperty.call(data, key) ? data[key] : undefined; } module.exports = hashGet; /***/ }), /***/ "bc3a": /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__("cee4"); /***/ }), /***/ "bd8a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /*eslint no-console: 0 */ var ErrorHandler = function () { function ErrorHandler(api) { _classCallCheck(this, ErrorHandler); this.api = api; } _createClass(ErrorHandler, [{ key: "handleCatch", value: function handleCatch(e) { // If babel supported extending of Error in a correct way instanceof would be used here if (e.name === "InvalidInputException") { if (this.api._options.valid !== this.api._defaults.valid) { this.api._options.valid(false); } else { throw e.message; } } else { throw e; } this.api.render = function () {}; } }, { key: "wrapBarcodeCall", value: function wrapBarcodeCall(func) { try { var result = func.apply(undefined, arguments); this.api._options.valid(true); return result; } catch (e) { this.handleCatch(e); return this.api; } } }]); return ErrorHandler; }(); exports.default = ErrorHandler; /***/ }), /***/ "bdfe": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Base class for EAN8 & EAN13 var EAN = function (_Barcode) { _inherits(EAN, _Barcode); function EAN(data, options) { _classCallCheck(this, EAN); // Make sure the font is not bigger than the space between the guard bars var _this = _possibleConstructorReturn(this, (EAN.__proto__ || Object.getPrototypeOf(EAN)).call(this, data, options)); _this.fontSize = !options.flat && options.fontSize > options.width * 10 ? options.width * 10 : options.fontSize; // Make the guard bars go down half the way of the text _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(EAN, [{ key: 'encode', value: function encode() { return this.options.flat ? this.encodeFlat() : this.encodeGuarded(); } }, { key: 'leftText', value: function leftText(from, to) { return this.text.substr(from, to); } }, { key: 'leftEncode', value: function leftEncode(data, structure) { return (0, _encoder2.default)(data, structure); } }, { key: 'rightText', value: function rightText(from, to) { return this.text.substr(from, to); } }, { key: 'rightEncode', value: function rightEncode(data, structure) { return (0, _encoder2.default)(data, structure); } }, { key: 'encodeGuarded', value: function encodeGuarded() { var textOptions = { fontSize: this.fontSize }; var guardOptions = { height: this.guardHeight }; return [{ data: _constants.SIDE_BIN, options: guardOptions }, { data: this.leftEncode(), text: this.leftText(), options: textOptions }, { data: _constants.MIDDLE_BIN, options: guardOptions }, { data: this.rightEncode(), text: this.rightText(), options: textOptions }, { data: _constants.SIDE_BIN, options: guardOptions }]; } }, { key: 'encodeFlat', value: function encodeFlat() { var data = [_constants.SIDE_BIN, this.leftEncode(), _constants.MIDDLE_BIN, this.rightEncode(), _constants.SIDE_BIN]; return { data: data.join(''), text: this.text }; } }]); return EAN; }(_Barcode3.default); exports.default = EAN; /***/ }), /***/ "be5e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _shared = __webpack_require__("ab5b"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var svgns = "http://www.w3.org/2000/svg"; var SVGRenderer = function () { function SVGRenderer(svg, encodings, options) { _classCallCheck(this, SVGRenderer); this.svg = svg; this.encodings = encodings; this.options = options; this.document = options.xmlDocument || document; } _createClass(SVGRenderer, [{ key: "render", value: function render() { var currentX = this.options.marginLeft; this.prepareSVG(); for (var i = 0; i < this.encodings.length; i++) { var encoding = this.encodings[i]; var encodingOptions = (0, _merge2.default)(this.options, encoding.options); var group = this.createGroup(currentX, encodingOptions.marginTop, this.svg); this.setGroupOptions(group, encodingOptions); this.drawSvgBarcode(group, encodingOptions, encoding); this.drawSVGText(group, encodingOptions, encoding); currentX += encoding.width; } } }, { key: "prepareSVG", value: function prepareSVG() { // Clear the SVG while (this.svg.firstChild) { this.svg.removeChild(this.svg.firstChild); } (0, _shared.calculateEncodingAttributes)(this.encodings, this.options); var totalWidth = (0, _shared.getTotalWidthOfEncodings)(this.encodings); var maxHeight = (0, _shared.getMaximumHeightOfEncodings)(this.encodings); var width = totalWidth + this.options.marginLeft + this.options.marginRight; this.setSvgAttributes(width, maxHeight); if (this.options.background) { this.drawRect(0, 0, width, maxHeight, this.svg).setAttribute("style", "fill:" + this.options.background + ";"); } } }, { key: "drawSvgBarcode", value: function drawSvgBarcode(parent, options, encoding) { var binary = encoding.data; // Creates the barcode out of the encoded binary var yFrom; if (options.textPosition == "top") { yFrom = options.fontSize + options.textMargin; } else { yFrom = 0; } var barWidth = 0; var x = 0; for (var b = 0; b < binary.length; b++) { x = b * options.width + encoding.barcodePadding; if (binary[b] === "1") { barWidth++; } else if (barWidth > 0) { this.drawRect(x - options.width * barWidth, yFrom, options.width * barWidth, options.height, parent); barWidth = 0; } } // Last draw is needed since the barcode ends with 1 if (barWidth > 0) { this.drawRect(x - options.width * (barWidth - 1), yFrom, options.width * barWidth, options.height, parent); } } }, { key: "drawSVGText", value: function drawSVGText(parent, options, encoding) { var textElem = this.document.createElementNS(svgns, 'text'); // Draw the text if displayValue is set if (options.displayValue) { var x, y; textElem.setAttribute("style", "font:" + options.fontOptions + " " + options.fontSize + "px " + options.font); if (options.textPosition == "top") { y = options.fontSize - options.textMargin; } else { y = options.height + options.textMargin + options.fontSize; } // Draw the text in the correct X depending on the textAlign option if (options.textAlign == "left" || encoding.barcodePadding > 0) { x = 0; textElem.setAttribute("text-anchor", "start"); } else if (options.textAlign == "right") { x = encoding.width - 1; textElem.setAttribute("text-anchor", "end"); } // In all other cases, center the text else { x = encoding.width / 2; textElem.setAttribute("text-anchor", "middle"); } textElem.setAttribute("x", x); textElem.setAttribute("y", y); textElem.appendChild(this.document.createTextNode(encoding.text)); parent.appendChild(textElem); } } }, { key: "setSvgAttributes", value: function setSvgAttributes(width, height) { var svg = this.svg; svg.setAttribute("width", width + "px"); svg.setAttribute("height", height + "px"); svg.setAttribute("x", "0px"); svg.setAttribute("y", "0px"); svg.setAttribute("viewBox", "0 0 " + width + " " + height); svg.setAttribute("xmlns", svgns); svg.setAttribute("version", "1.1"); svg.setAttribute("style", "transform: translate(0,0)"); } }, { key: "createGroup", value: function createGroup(x, y, parent) { var group = this.document.createElementNS(svgns, 'g'); group.setAttribute("transform", "translate(" + x + ", " + y + ")"); parent.appendChild(group); return group; } }, { key: "setGroupOptions", value: function setGroupOptions(group, options) { group.setAttribute("style", "fill:" + options.lineColor + ";"); } }, { key: "drawRect", value: function drawRect(x, y, width, height, parent) { var rect = this.document.createElementNS(svgns, 'rect'); rect.setAttribute("x", x); rect.setAttribute("y", y); rect.setAttribute("width", width); rect.setAttribute("height", height); parent.appendChild(rect); return rect; } }]); return SVGRenderer; }(); exports.default = SVGRenderer; /***/ }), /***/ "be98": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); var _UPC = __webpack_require__("e8b2"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#Encoding // // UPC-E documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#UPC-E var EXPANSIONS = ["XX00000XXX", "XX10000XXX", "XX20000XXX", "XXX00000XX", "XXXX00000X", "XXXXX00005", "XXXXX00006", "XXXXX00007", "XXXXX00008", "XXXXX00009"]; var PARITIES = [["EEEOOO", "OOOEEE"], ["EEOEOO", "OOEOEE"], ["EEOOEO", "OOEEOE"], ["EEOOOE", "OOEEEO"], ["EOEEOO", "OEOOEE"], ["EOOEEO", "OEEOOE"], ["EOOOEE", "OEEEOO"], ["EOEOEO", "OEOEOE"], ["EOEOOE", "OEOEEO"], ["EOOEOE", "OEEOEO"]]; var UPCE = function (_Barcode) { _inherits(UPCE, _Barcode); function UPCE(data, options) { _classCallCheck(this, UPCE); var _this = _possibleConstructorReturn(this, (UPCE.__proto__ || Object.getPrototypeOf(UPCE)).call(this, data, options)); // Code may be 6 or 8 digits; // A 7 digit code is ambiguous as to whether the extra digit // is a UPC-A check or number system digit. _this.isValid = false; if (data.search(/^[0-9]{6}$/) !== -1) { _this.middleDigits = data; _this.upcA = expandToUPCA(data, "0"); _this.text = options.text || '' + _this.upcA[0] + data + _this.upcA[_this.upcA.length - 1]; _this.isValid = true; } else if (data.search(/^[01][0-9]{7}$/) !== -1) { _this.middleDigits = data.substring(1, data.length - 1); _this.upcA = expandToUPCA(_this.middleDigits, data[0]); if (_this.upcA[_this.upcA.length - 1] === data[data.length - 1]) { _this.isValid = true; } else { // checksum mismatch return _possibleConstructorReturn(_this); } } else { return _possibleConstructorReturn(_this); } _this.displayValue = options.displayValue; // Make sure the font is not bigger than the space between the guard bars if (options.fontSize > options.width * 10) { _this.fontSize = options.width * 10; } else { _this.fontSize = options.fontSize; } // Make the guard bars go down half the way of the text _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(UPCE, [{ key: 'valid', value: function valid() { return this.isValid; } }, { key: 'encode', value: function encode() { if (this.options.flat) { return this.flatEncoding(); } else { return this.guardedEncoding(); } } }, { key: 'flatEncoding', value: function flatEncoding() { var result = ""; result += "101"; result += this.encodeMiddleDigits(); result += "010101"; return { data: result, text: this.text }; } }, { key: 'guardedEncoding', value: function guardedEncoding() { var result = []; // Add the UPC-A number system digit beneath the quiet zone if (this.displayValue) { result.push({ data: "00000000", text: this.text[0], options: { textAlign: "left", fontSize: this.fontSize } }); } // Add the guard bars result.push({ data: "101", options: { height: this.guardHeight } }); // Add the 6 UPC-E digits result.push({ data: this.encodeMiddleDigits(), text: this.text.substring(1, 7), options: { fontSize: this.fontSize } }); // Add the end bits result.push({ data: "010101", options: { height: this.guardHeight } }); // Add the UPC-A check digit beneath the quiet zone if (this.displayValue) { result.push({ data: "00000000", text: this.text[7], options: { textAlign: "right", fontSize: this.fontSize } }); } return result; } }, { key: 'encodeMiddleDigits', value: function encodeMiddleDigits() { var numberSystem = this.upcA[0]; var checkDigit = this.upcA[this.upcA.length - 1]; var parity = PARITIES[parseInt(checkDigit)][parseInt(numberSystem)]; return (0, _encoder2.default)(this.middleDigits, parity); } }]); return UPCE; }(_Barcode3.default); function expandToUPCA(middleDigits, numberSystem) { var lastUpcE = parseInt(middleDigits[middleDigits.length - 1]); var expansion = EXPANSIONS[lastUpcE]; var result = ""; var digitIndex = 0; for (var i = 0; i < expansion.length; i++) { var c = expansion[i]; if (c === 'X') { result += middleDigits[digitIndex++]; } else { result += c; } } result = '' + numberSystem + result; return '' + result + (0, _UPC.checksum)(result); } exports.default = UPCE; /***/ }), /***/ "c098": /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** Used to detect unsigned integer values. */ var reIsUint = /^(?:0|[1-9]\d*)$/; /** * Checks if `value` is a valid array-like index. * * @private * @param {*} value The value to check. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. */ function isIndex(value, length) { var type = typeof value; length = length == null ? MAX_SAFE_INTEGER : length; return !!length && (type == 'number' || (type != 'symbol' && reIsUint.test(value))) && (value > -1 && value % 1 == 0 && value < length); } module.exports = isIndex; /***/ }), /***/ "c17b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.codabar = undefined; 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 _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding specification: // http://www.barcodeisland.com/codabar.phtml var codabar = function (_Barcode) { _inherits(codabar, _Barcode); function codabar(data, options) { _classCallCheck(this, codabar); if (data.search(/^[0-9\-\$\:\.\+\/]+$/) === 0) { data = "A" + data + "A"; } var _this = _possibleConstructorReturn(this, (codabar.__proto__ || Object.getPrototypeOf(codabar)).call(this, data.toUpperCase(), options)); _this.text = _this.options.text || _this.text.replace(/[A-D]/g, ''); return _this; } _createClass(codabar, [{ key: "valid", value: function valid() { return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/) !== -1; } }, { key: "encode", value: function encode() { var result = []; var encodings = this.getEncodings(); for (var i = 0; i < this.data.length; i++) { result.push(encodings[this.data.charAt(i)]); // for all characters except the last, append a narrow-space ("0") if (i !== this.data.length - 1) { result.push("0"); } } return { text: this.text, data: result.join('') }; } }, { key: "getEncodings", value: function getEncodings() { return { "0": "101010011", "1": "101011001", "2": "101001011", "3": "110010101", "4": "101101001", "5": "110101001", "6": "100101011", "7": "100101101", "8": "100110101", "9": "110100101", "-": "101001101", "$": "101100101", ":": "1101011011", "/": "1101101011", ".": "1101101101", "+": "1011011011", "A": "1011001001", "B": "1001001011", "C": "1010010011", "D": "1010011001" }; } }]); return codabar; }(_Barcode3.default); exports.codabar = codabar; /***/ }), /***/ "c1c9": /***/ (function(module, exports, __webpack_require__) { var baseSetToString = __webpack_require__("a454"), shortOut = __webpack_require__("f3c1"); /** * Sets the `toString` method of `func` to return `string`. * * @private * @param {Function} func The function to modify. * @param {Function} string The `toString` result. * @returns {Function} Returns `func`. */ var setToString = shortOut(baseSetToString); module.exports = setToString; /***/ }), /***/ "c243": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // Standard start end and middle bits var SIDE_BIN = exports.SIDE_BIN = '101'; var MIDDLE_BIN = exports.MIDDLE_BIN = '01010'; var BINARIES = exports.BINARIES = { 'L': [// The L (left) type of encoding '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'], 'G': [// The G type of encoding '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111'], 'R': [// The R (right) type of encoding '1110010', '1100110', '1101100', '1000010', '1011100', '1001110', '1010000', '1000100', '1001000', '1110100'], 'O': [// The O (odd) encoding for UPC-E '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'], 'E': [// The E (even) encoding for UPC-E '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111'] }; // Define the EAN-2 structure var EAN2_STRUCTURE = exports.EAN2_STRUCTURE = ['LL', 'LG', 'GL', 'GG']; // Define the EAN-5 structure var EAN5_STRUCTURE = exports.EAN5_STRUCTURE = ['GGLLL', 'GLGLL', 'GLLGL', 'GLLLG', 'LGGLL', 'LLGGL', 'LLLGG', 'LGLGL', 'LGLLG', 'LLGLG']; // Define the EAN-13 structure var EAN13_STRUCTURE = exports.EAN13_STRUCTURE = ['LLLLLL', 'LLGLGG', 'LLGGLG', 'LLGGGL', 'LGLLGG', 'LGGLLG', 'LGGGLL', 'LGLGLG', 'LGLGGL', 'LGGLGL']; /***/ }), /***/ "c2b6": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"), cloneDataView = __webpack_require__("5d89"), cloneRegExp = __webpack_require__("6f6c"), cloneSymbol = __webpack_require__("a2db"), cloneTypedArray = __webpack_require__("c8fe"); /** `Object#toString` result references. */ var boolTag = '[object Boolean]', dateTag = '[object Date]', mapTag = '[object Map]', numberTag = '[object Number]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** * Initializes an object clone based on its `toStringTag`. * * **Note:** This function only supports cloning values with tags of * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`. * * @private * @param {Object} object The object to clone. * @param {string} tag The `toStringTag` of the object to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the initialized clone. */ function initCloneByTag(object, tag, isDeep) { var Ctor = object.constructor; switch (tag) { case arrayBufferTag: return cloneArrayBuffer(object); case boolTag: case dateTag: return new Ctor(+object); case dataViewTag: return cloneDataView(object, isDeep); case float32Tag: case float64Tag: case int8Tag: case int16Tag: case int32Tag: case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: return cloneTypedArray(object, isDeep); case mapTag: return new Ctor; case numberTag: case stringTag: return new Ctor(object); case regexpTag: return cloneRegExp(object); case setTag: return new Ctor; case symbolTag: return cloneSymbol(object); } } module.exports = initCloneByTag; /***/ }), /***/ "c345": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); // Headers whose duplicates are ignored by node // c.f. https://nodejs.org/api/http.html#http_message_headers var ignoreDuplicateOf = [ 'age', 'authorization', 'content-length', 'content-type', 'etag', 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 'referer', 'retry-after', 'user-agent' ]; /** * Parse headers into an object * * ``` * Date: Wed, 27 Aug 2014 08:58:49 GMT * Content-Type: application/json * Connection: keep-alive * Transfer-Encoding: chunked * ``` * * @param {String} headers Headers needing to be parsed * @returns {Object} Headers parsed into an object */ module.exports = function parseHeaders(headers) { var parsed = {}; var key; var val; var i; if (!headers) { return parsed; } utils.forEach(headers.split('\n'), function parser(line) { i = line.indexOf(':'); key = utils.trim(line.substr(0, i)).toLowerCase(); val = utils.trim(line.substr(i + 1)); if (key) { if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { return; } if (key === 'set-cookie') { parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); } else { parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; } } }); return parsed; }; /***/ }), /***/ "c3fc": /***/ (function(module, exports, __webpack_require__) { var getTag = __webpack_require__("42a2"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var setTag = '[object Set]'; /** * The base implementation of `_.isSet` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a set, else `false`. */ function baseIsSet(value) { return isObjectLike(value) && getTag(value) == setTag; } module.exports = baseIsSet; /***/ }), /***/ "c401": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); /** * Transform the data for a request or a response * * @param {Object|String} data The data to be transformed * @param {Array} headers The headers for the request or response * @param {Array|Function} fns A single function or Array of functions * @returns {*} The resulting transformed data */ module.exports = function transformData(data, headers, fns) { /*eslint no-param-reassign:0*/ utils.forEach(fns, function transform(fn) { data = fn(data, headers); }); return data; }; /***/ }), /***/ "c532": /***/ (function(module, exports, __webpack_require__) { "use strict"; var bind = __webpack_require__("1d2b"); /*global toString:true*/ // utils is a library of generic helper functions non-specific to axios var toString = Object.prototype.toString; /** * Determine if a value is an Array * * @param {Object} val The value to test * @returns {boolean} True if value is an Array, otherwise false */ function isArray(val) { return toString.call(val) === '[object Array]'; } /** * Determine if a value is undefined * * @param {Object} val The value to test * @returns {boolean} True if the value is undefined, otherwise false */ function isUndefined(val) { return typeof val === 'undefined'; } /** * Determine if a value is a Buffer * * @param {Object} val The value to test * @returns {boolean} True if value is a Buffer, otherwise false */ function isBuffer(val) { return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val); } /** * Determine if a value is an ArrayBuffer * * @param {Object} val The value to test * @returns {boolean} True if value is an ArrayBuffer, otherwise false */ function isArrayBuffer(val) { return toString.call(val) === '[object ArrayBuffer]'; } /** * Determine if a value is a FormData * * @param {Object} val The value to test * @returns {boolean} True if value is an FormData, otherwise false */ function isFormData(val) { return (typeof FormData !== 'undefined') && (val instanceof FormData); } /** * Determine if a value is a view on an ArrayBuffer * * @param {Object} val The value to test * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false */ function isArrayBufferView(val) { var result; if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { result = ArrayBuffer.isView(val); } else { result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); } return result; } /** * Determine if a value is a String * * @param {Object} val The value to test * @returns {boolean} True if value is a String, otherwise false */ function isString(val) { return typeof val === 'string'; } /** * Determine if a value is a Number * * @param {Object} val The value to test * @returns {boolean} True if value is a Number, otherwise false */ function isNumber(val) { return typeof val === 'number'; } /** * Determine if a value is an Object * * @param {Object} val The value to test * @returns {boolean} True if value is an Object, otherwise false */ function isObject(val) { return val !== null && typeof val === 'object'; } /** * Determine if a value is a plain Object * * @param {Object} val The value to test * @return {boolean} True if value is a plain Object, otherwise false */ function isPlainObject(val) { if (toString.call(val) !== '[object Object]') { return false; } var prototype = Object.getPrototypeOf(val); return prototype === null || prototype === Object.prototype; } /** * Determine if a value is a Date * * @param {Object} val The value to test * @returns {boolean} True if value is a Date, otherwise false */ function isDate(val) { return toString.call(val) === '[object Date]'; } /** * Determine if a value is a File * * @param {Object} val The value to test * @returns {boolean} True if value is a File, otherwise false */ function isFile(val) { return toString.call(val) === '[object File]'; } /** * Determine if a value is a Blob * * @param {Object} val The value to test * @returns {boolean} True if value is a Blob, otherwise false */ function isBlob(val) { return toString.call(val) === '[object Blob]'; } /** * Determine if a value is a Function * * @param {Object} val The value to test * @returns {boolean} True if value is a Function, otherwise false */ function isFunction(val) { return toString.call(val) === '[object Function]'; } /** * Determine if a value is a Stream * * @param {Object} val The value to test * @returns {boolean} True if value is a Stream, otherwise false */ function isStream(val) { return isObject(val) && isFunction(val.pipe); } /** * Determine if a value is a URLSearchParams object * * @param {Object} val The value to test * @returns {boolean} True if value is a URLSearchParams object, otherwise false */ function isURLSearchParams(val) { return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams; } /** * Trim excess whitespace off the beginning and end of a string * * @param {String} str The String to trim * @returns {String} The String freed of excess whitespace */ function trim(str) { return str.replace(/^\s*/, '').replace(/\s*$/, ''); } /** * Determine if we're running in a standard browser environment * * This allows axios to run in a web worker, and react-native. * Both environments support XMLHttpRequest, but not fully standard globals. * * web workers: * typeof window -> undefined * typeof document -> undefined * * react-native: * navigator.product -> 'ReactNative' * nativescript * navigator.product -> 'NativeScript' or 'NS' */ function isStandardBrowserEnv() { if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) { return false; } return ( typeof window !== 'undefined' && typeof document !== 'undefined' ); } /** * Iterate over an Array or an Object invoking a function for each item. * * If `obj` is an Array callback will be called passing * the value, index, and complete array for each item. * * If 'obj' is an Object callback will be called passing * the value, key, and complete object for each property. * * @param {Object|Array} obj The object to iterate * @param {Function} fn The callback to invoke for each item */ function forEach(obj, fn) { // Don't bother if no value provided if (obj === null || typeof obj === 'undefined') { return; } // Force an array if not already something iterable if (typeof obj !== 'object') { /*eslint no-param-reassign:0*/ obj = [obj]; } if (isArray(obj)) { // Iterate over array values for (var i = 0, l = obj.length; i < l; i++) { fn.call(null, obj[i], i, obj); } } else { // Iterate over object keys for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { fn.call(null, obj[key], key, obj); } } } } /** * Accepts varargs expecting each argument to be an object, then * immutably merges the properties of each object and returns result. * * When multiple objects contain the same key the later object in * the arguments list will take precedence. * * Example: * * ```js * var result = merge({foo: 123}, {foo: 456}); * console.log(result.foo); // outputs 456 * ``` * * @param {Object} obj1 Object to merge * @returns {Object} Result of all merge properties */ function merge(/* obj1, obj2, obj3, ... */) { var result = {}; function assignValue(val, key) { if (isPlainObject(result[key]) && isPlainObject(val)) { result[key] = merge(result[key], val); } else if (isPlainObject(val)) { result[key] = merge({}, val); } else if (isArray(val)) { result[key] = val.slice(); } else { result[key] = val; } } for (var i = 0, l = arguments.length; i < l; i++) { forEach(arguments[i], assignValue); } return result; } /** * Extends object a by mutably adding to it the properties of object b. * * @param {Object} a The object to be extended * @param {Object} b The object to copy properties from * @param {Object} thisArg The object to bind function to * @return {Object} The resulting value of object a */ function extend(a, b, thisArg) { forEach(b, function assignValue(val, key) { if (thisArg && typeof val === 'function') { a[key] = bind(val, thisArg); } else { a[key] = val; } }); return a; } /** * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) * * @param {string} content with BOM * @return {string} content value without BOM */ function stripBOM(content) { if (content.charCodeAt(0) === 0xFEFF) { content = content.slice(1); } return content; } module.exports = { isArray: isArray, isArrayBuffer: isArrayBuffer, isBuffer: isBuffer, isFormData: isFormData, isArrayBufferView: isArrayBufferView, isString: isString, isNumber: isNumber, isObject: isObject, isPlainObject: isPlainObject, isUndefined: isUndefined, isDate: isDate, isFile: isFile, isBlob: isBlob, isFunction: isFunction, isStream: isStream, isURLSearchParams: isURLSearchParams, isStandardBrowserEnv: isStandardBrowserEnv, forEach: forEach, merge: merge, extend: extend, trim: trim, stripBOM: stripBOM }; /***/ }), /***/ "c869": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Set = getNative(root, 'Set'); module.exports = Set; /***/ }), /***/ "c87c": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Initializes an array clone. * * @private * @param {Array} array The array to clone. * @returns {Array} Returns the initialized clone. */ function initCloneArray(array) { var length = array.length, result = new array.constructor(length); // Add properties assigned by `RegExp#exec`. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { result.index = array.index; result.input = array.input; } return result; } module.exports = initCloneArray; /***/ }), /***/ "c8af": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = function normalizeHeaderName(headers, normalizedName) { utils.forEach(headers, function processHeader(value, name) { if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { headers[normalizedName] = value; delete headers[name]; } }); }; /***/ }), /***/ "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; /***/ }), /***/ "c8fe": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"); /** * Creates a clone of `typedArray`. * * @private * @param {Object} typedArray The typed array to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned typed array. */ function cloneTypedArray(typedArray, isDeep) { var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); } module.exports = cloneTypedArray; /***/ }), /***/ "ca32": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var defaults = { width: 2, height: 100, format: "auto", displayValue: true, fontOptions: "", font: "monospace", text: undefined, textAlign: "center", textPosition: "bottom", textMargin: 2, fontSize: 20, background: "#ffffff", lineColor: "#000000", margin: 10, marginTop: undefined, marginBottom: undefined, marginLeft: undefined, marginRight: undefined, valid: function valid() {} }; exports.default = defaults; /***/ }), /***/ "cb5a": /***/ (function(module, exports, __webpack_require__) { var eq = __webpack_require__("9638"); /** * Gets the index at which the `key` is found in `array` of key-value pairs. * * @private * @param {Array} array The array to inspect. * @param {*} key The key to search for. * @returns {number} Returns the index of the matched value, else `-1`. */ function assocIndexOf(array, key) { var length = array.length; while (length--) { if (eq(array[length][0], key)) { return length; } } return -1; } module.exports = assocIndexOf; /***/ }), /***/ "cc45": /***/ (function(module, exports, __webpack_require__) { var baseIsMap = __webpack_require__("1a2d"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsMap = nodeUtil && nodeUtil.isMap; /** * Checks if `value` is classified as a `Map` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a map, else `false`. * @example * * _.isMap(new Map); * // => true * * _.isMap(new WeakMap); * // => false */ var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; module.exports = isMap; /***/ }), /***/ "cd9d": /***/ (function(module, exports) { /** * This method returns the first argument it receives. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {*} value Any value. * @returns {*} Returns `value`. * @example * * var object = { 'a': 1 }; * * console.log(_.identity(object) === object); * // => true */ function identity(value) { return value; } module.exports = identity; /***/ }), /***/ "ce86": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"), arrayMap = __webpack_require__("7948"), isArray = __webpack_require__("6747"), isSymbol = __webpack_require__("ffd6"); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolToString = symbolProto ? symbolProto.toString : undefined; /** * The base implementation of `_.toString` which doesn't convert nullish * values to empty strings. * * @private * @param {*} value The value to process. * @returns {string} Returns the string. */ function baseToString(value) { // Exit early for strings to avoid a performance hit in some environments. if (typeof value == 'string') { return value; } if (isArray(value)) { // Recursively convert values (susceptible to call stack limits). return arrayMap(value, baseToString) + ''; } if (isSymbol(value)) { return symbolToString ? symbolToString.call(value) : ''; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = baseToString; /***/ }), /***/ "cee4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var bind = __webpack_require__("1d2b"); var Axios = __webpack_require__("0a06"); var mergeConfig = __webpack_require__("4a7b"); var defaults = __webpack_require__("2444"); /** * Create an instance of Axios * * @param {Object} defaultConfig The default config for the instance * @return {Axios} A new instance of Axios */ function createInstance(defaultConfig) { var context = new Axios(defaultConfig); var instance = bind(Axios.prototype.request, context); // Copy axios.prototype to instance utils.extend(instance, Axios.prototype, context); // Copy context to instance utils.extend(instance, context); return instance; } // Create the default instance to be exported var axios = createInstance(defaults); // Expose Axios class to allow class inheritance axios.Axios = Axios; // Factory for creating new instances axios.create = function create(instanceConfig) { return createInstance(mergeConfig(axios.defaults, instanceConfig)); }; // Expose Cancel & CancelToken axios.Cancel = __webpack_require__("7a77"); axios.CancelToken = __webpack_require__("8df4"); axios.isCancel = __webpack_require__("2e67"); // Expose all/spread axios.all = function all(promises) { return Promise.all(promises); }; axios.spread = __webpack_require__("0df6"); module.exports = axios; // Allow use of default import syntax in TypeScript module.exports.default = axios; /***/ }), /***/ "d02c": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"), Map = __webpack_require__("79bc"), MapCache = __webpack_require__("7b83"); /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /** * Sets the stack `key` to `value`. * * @private * @name set * @memberOf Stack * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the stack cache instance. */ function stackSet(key, value) { var data = this.__data__; if (data instanceof ListCache) { var pairs = data.__data__; if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { pairs.push([key, value]); this.size = ++data.size; return this; } data = this.__data__ = new MapCache(pairs); } data.set(key, value); this.size = data.size; return this; } module.exports = stackSet; /***/ }), /***/ "d327": /***/ (function(module, exports) { /** * This method returns a new empty array. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {Array} Returns the new empty array. * @example * * var arrays = _.times(2, _.stubArray); * * console.log(arrays); * // => [[], []] * * console.log(arrays[0] === arrays[1]); * // => false */ function stubArray() { return []; } module.exports = stubArray; /***/ }), /***/ "d370": /***/ (function(module, exports, __webpack_require__) { var baseIsArguments = __webpack_require__("253c"), isObjectLike = __webpack_require__("1310"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /** * Checks if `value` is likely an `arguments` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, * else `false`. * @example * * _.isArguments(function() { return arguments; }()); * // => true * * _.isArguments([1, 2, 3]); * // => false */ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee'); }; module.exports = isArguments; /***/ }), /***/ "d7ee": /***/ (function(module, exports, __webpack_require__) { var baseIsSet = __webpack_require__("c3fc"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsSet = nodeUtil && nodeUtil.isSet; /** * Checks if `value` is classified as a `Set` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a set, else `false`. * @example * * _.isSet(new Set); * // => true * * _.isSet(new WeakSet); * // => false */ var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; module.exports = isSet; /***/ }), /***/ "d925": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Determines whether the specified URL is absolute * * @param {string} url The URL to test * @returns {boolean} True if the specified URL is absolute, otherwise false */ module.exports = function isAbsoluteURL(url) { // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL). // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed // by any combination of letters, digits, plus, period, or hyphen. return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); }; /***/ }), /***/ "da03": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Used to detect overreaching core-js shims. */ var coreJsData = root['__core-js_shared__']; module.exports = coreJsData; /***/ }), /***/ "da3d": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CODE128C = exports.CODE128B = exports.CODE128A = exports.CODE128 = undefined; var _CODE128_AUTO = __webpack_require__("6f24"); var _CODE128_AUTO2 = _interopRequireDefault(_CODE128_AUTO); var _CODE128A = __webpack_require__("e8c9"); var _CODE128A2 = _interopRequireDefault(_CODE128A); var _CODE128B = __webpack_require__("70b0"); var _CODE128B2 = _interopRequireDefault(_CODE128B); var _CODE128C = __webpack_require__("ed3f"); var _CODE128C2 = _interopRequireDefault(_CODE128C); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.CODE128 = _CODE128_AUTO2.default; exports.CODE128A = _CODE128A2.default; exports.CODE128B = _CODE128B2.default; exports.CODE128C = _CODE128C2.default; /***/ }), /***/ "dc57": /***/ (function(module, exports) { /** Used for built-in method references. */ var funcProto = Function.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** * Converts `func` to its source code. * * @private * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ function toSource(func) { if (func != null) { try { return funcToString.call(func); } catch (e) {} try { return (func + ''); } catch (e) {} } return ''; } module.exports = toSource; /***/ }), /***/ "dca2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var InvalidInputException = function (_Error) { _inherits(InvalidInputException, _Error); function InvalidInputException(symbology, input) { _classCallCheck(this, InvalidInputException); var _this = _possibleConstructorReturn(this, (InvalidInputException.__proto__ || Object.getPrototypeOf(InvalidInputException)).call(this)); _this.name = "InvalidInputException"; _this.symbology = symbology; _this.input = input; _this.message = '"' + _this.input + '" is not a valid input for ' + _this.symbology; return _this; } return InvalidInputException; }(Error); var InvalidElementException = function (_Error2) { _inherits(InvalidElementException, _Error2); function InvalidElementException() { _classCallCheck(this, InvalidElementException); var _this2 = _possibleConstructorReturn(this, (InvalidElementException.__proto__ || Object.getPrototypeOf(InvalidElementException)).call(this)); _this2.name = "InvalidElementException"; _this2.message = "Not supported type to render on"; return _this2; } return InvalidElementException; }(Error); var NoElementException = function (_Error3) { _inherits(NoElementException, _Error3); function NoElementException() { _classCallCheck(this, NoElementException); var _this3 = _possibleConstructorReturn(this, (NoElementException.__proto__ || Object.getPrototypeOf(NoElementException)).call(this)); _this3.name = "NoElementException"; _this3.message = "No element to render on."; return _this3; } return NoElementException; }(Error); exports.InvalidInputException = InvalidInputException; exports.InvalidElementException = InvalidElementException; exports.NoElementException = NoElementException; /***/ }), /***/ "dcbe": /***/ (function(module, exports, __webpack_require__) { var isArrayLike = __webpack_require__("30c9"), isObjectLike = __webpack_require__("1310"); /** * This method is like `_.isArrayLike` except that it also checks if `value` * is an object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array-like object, * else `false`. * @example * * _.isArrayLikeObject([1, 2, 3]); * // => true * * _.isArrayLikeObject(document.body.children); * // => true * * _.isArrayLikeObject('abc'); * // => false * * _.isArrayLikeObject(_.noop); * // => false */ function isArrayLikeObject(value) { return isObjectLike(value) && isArrayLike(value); } module.exports = isArrayLikeObject; /***/ }), /***/ "df7c": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1, // backported and transplited with Babel, with backwards-compat fixes // Copyright Joyent, Inc. and other Node 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. // resolves . and .. elements in a path array with directory names there // must be no slashes, empty elements, or device names (c:\) in the array // (so also no leading and trailing slashes - it does not distinguish // relative and absolute paths) function normalizeArray(parts, allowAboveRoot) { // if the path tries to go above the root, `up` ends up > 0 var up = 0; for (var i = parts.length - 1; i >= 0; i--) { var last = parts[i]; if (last === '.') { parts.splice(i, 1); } else if (last === '..') { parts.splice(i, 1); up++; } else if (up) { parts.splice(i, 1); up--; } } // if the path is allowed to go above the root, restore leading ..s if (allowAboveRoot) { for (; up--; up) { parts.unshift('..'); } } return parts; } // path.resolve([from ...], to) // posix version exports.resolve = function() { var resolvedPath = '', resolvedAbsolute = false; for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) { var path = (i >= 0) ? arguments[i] : process.cwd(); // Skip empty and invalid entries if (typeof path !== 'string') { throw new TypeError('Arguments to path.resolve must be strings'); } else if (!path) { continue; } resolvedPath = path + '/' + resolvedPath; resolvedAbsolute = path.charAt(0) === '/'; } // At this point the path should be resolved to a full absolute path, but // handle relative paths to be safe (might happen when process.cwd() fails) // Normalize the path resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) { return !!p; }), !resolvedAbsolute).join('/'); return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.'; }; // path.normalize(path) // posix version exports.normalize = function(path) { var isAbsolute = exports.isAbsolute(path), trailingSlash = substr(path, -1) === '/'; // Normalize the path path = normalizeArray(filter(path.split('/'), function(p) { return !!p; }), !isAbsolute).join('/'); if (!path && !isAbsolute) { path = '.'; } if (path && trailingSlash) { path += '/'; } return (isAbsolute ? '/' : '') + path; }; // posix version exports.isAbsolute = function(path) { return path.charAt(0) === '/'; }; // posix version exports.join = function() { var paths = Array.prototype.slice.call(arguments, 0); return exports.normalize(filter(paths, function(p, index) { if (typeof p !== 'string') { throw new TypeError('Arguments to path.join must be strings'); } return p; }).join('/')); }; // path.relative(from, to) // posix version exports.relative = function(from, to) { from = exports.resolve(from).substr(1); to = exports.resolve(to).substr(1); function trim(arr) { var start = 0; for (; start < arr.length; start++) { if (arr[start] !== '') break; } var end = arr.length - 1; for (; end >= 0; end--) { if (arr[end] !== '') break; } if (start > end) return []; return arr.slice(start, end - start + 1); } var fromParts = trim(from.split('/')); var toParts = trim(to.split('/')); var length = Math.min(fromParts.length, toParts.length); var samePartsLength = length; for (var i = 0; i < length; i++) { if (fromParts[i] !== toParts[i]) { samePartsLength = i; break; } } var outputParts = []; for (var i = samePartsLength; i < fromParts.length; i++) { outputParts.push('..'); } outputParts = outputParts.concat(toParts.slice(samePartsLength)); return outputParts.join('/'); }; exports.sep = '/'; exports.delimiter = ':'; exports.dirname = function (path) { if (typeof path !== 'string') path = path + ''; if (path.length === 0) return '.'; var code = path.charCodeAt(0); var hasRoot = code === 47 /*/*/; var end = -1; var matchedSlash = true; for (var i = path.length - 1; i >= 1; --i) { code = path.charCodeAt(i); if (code === 47 /*/*/) { if (!matchedSlash) { end = i; break; } } else { // We saw the first non-path separator matchedSlash = false; } } if (end === -1) return hasRoot ? '/' : '.'; if (hasRoot && end === 1) { // return '//'; // Backwards-compat fix: return '/'; } return path.slice(0, end); }; function basename(path) { if (typeof path !== 'string') path = path + ''; var start = 0; var end = -1; var matchedSlash = true; var i; for (i = path.length - 1; i >= 0; --i) { if (path.charCodeAt(i) === 47 /*/*/) { // If we reached a path separator that was not part of a set of path // separators at the end of the string, stop now if (!matchedSlash) { start = i + 1; break; } } else if (end === -1) { // We saw the first non-path separator, mark this as the end of our // path component matchedSlash = false; end = i + 1; } } if (end === -1) return ''; return path.slice(start, end); } // Uses a mixed approach for backwards-compatibility, as ext behavior changed // in new Node.js versions, so only basename() above is backported here exports.basename = function (path, ext) { var f = basename(path); if (ext && f.substr(-1 * ext.length) === ext) { f = f.substr(0, f.length - ext.length); } return f; }; exports.extname = function (path) { if (typeof path !== 'string') path = path + ''; var startDot = -1; var startPart = 0; var end = -1; var matchedSlash = true; // Track the state of characters (if any) we see before our first dot and // after any path separator we find var preDotState = 0; for (var i = path.length - 1; i >= 0; --i) { var code = path.charCodeAt(i); if (code === 47 /*/*/) { // If we reached a path separator that was not part of a set of path // separators at the end of the string, stop now if (!matchedSlash) { startPart = i + 1; break; } continue; } if (end === -1) { // We saw the first non-path separator, mark this as the end of our // extension matchedSlash = false; end = i + 1; } if (code === 46 /*.*/) { // If this is our first dot, mark it as the start of our extension if (startDot === -1) startDot = i; else if (preDotState !== 1) preDotState = 1; } else if (startDot !== -1) { // We saw a non-dot and non-path separator before our dot, so we should // have a good chance at having a non-empty extension preDotState = -1; } } if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot preDotState === 0 || // The (right-most) trimmed path component is exactly '..' preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { return ''; } return path.slice(startDot, end); }; function filter (xs, f) { if (xs.filter) return xs.filter(f); var res = []; for (var i = 0; i < xs.length; i++) { if (f(xs[i], i, xs)) res.push(xs[i]); } return res; } // String.prototype.substr - negative index don't work in IE8 var substr = 'ab'.substr(-1) === 'b' ? function (str, start, len) { return str.substr(start, len) } : function (str, start, len) { if (start < 0) start = str.length + start; return str.substr(start, len); } ; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362"))) /***/ }), /***/ "e031": /***/ (function(module, exports, __webpack_require__) { var baseMerge = __webpack_require__("f909"), isObject = __webpack_require__("1a8c"); /** * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source * objects into destination objects that are passed thru. * * @private * @param {*} objValue The destination value. * @param {*} srcValue The source value. * @param {string} key The key of the property to merge. * @param {Object} object The parent object of `objValue`. * @param {Object} source The parent object of `srcValue`. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. * @returns {*} Returns the value to assign. */ function customDefaultsMerge(objValue, srcValue, key, object, source, stack) { if (isObject(objValue) && isObject(srcValue)) { // Recursively merge objects and arrays (susceptible to call stack limits). stack.set(srcValue, objValue); baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack); stack['delete'](srcValue); } return objValue; } module.exports = customDefaultsMerge; /***/ }), /***/ "e24b": /***/ (function(module, exports, __webpack_require__) { var hashClear = __webpack_require__("49f4"), hashDelete = __webpack_require__("1efc"), hashGet = __webpack_require__("bbc0"), hashHas = __webpack_require__("7a48"), hashSet = __webpack_require__("2524"); /** * Creates a hash object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Hash(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `Hash`. Hash.prototype.clear = hashClear; Hash.prototype['delete'] = hashDelete; Hash.prototype.get = hashGet; Hash.prototype.has = hashHas; Hash.prototype.set = hashSet; module.exports = Hash; /***/ }), /***/ "e2c0": /***/ (function(module, exports, __webpack_require__) { var castPath = __webpack_require__("e2e4"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isIndex = __webpack_require__("c098"), isLength = __webpack_require__("b218"), toKey = __webpack_require__("f4d6"); /** * Checks if `path` exists on `object`. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @param {Function} hasFunc The function to check properties. * @returns {boolean} Returns `true` if `path` exists, else `false`. */ function hasPath(object, path, hasFunc) { path = castPath(path, object); var index = -1, length = path.length, result = false; while (++index < length) { var key = toKey(path[index]); if (!(result = object != null && hasFunc(object, key))) { break; } object = object[key]; } if (result || ++index != length) { return result; } length = object == null ? 0 : object.length; return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); } module.exports = hasPath; /***/ }), /***/ "e2e4": /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__("6747"), isKey = __webpack_require__("f608"), stringToPath = __webpack_require__("18d8"), toString = __webpack_require__("76dd"); /** * Casts `value` to a path array if it's not one. * * @private * @param {*} value The value to inspect. * @param {Object} [object] The object to query keys on. * @returns {Array} Returns the cast property path array. */ function castPath(value, object) { if (isArray(value)) { return value; } return isKey(value, object) ? [value] : stringToPath(toString(value)); } module.exports = castPath; /***/ }), /***/ "e380": /***/ (function(module, exports, __webpack_require__) { var MapCache = __webpack_require__("7b83"); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** * Creates a function that memoizes the result of `func`. If `resolver` is * provided, it determines the cache key for storing the result based on the * arguments provided to the memoized function. By default, the first argument * provided to the memoized function is used as the map cache key. The `func` * is invoked with the `this` binding of the memoized function. * * **Note:** The cache is exposed as the `cache` property on the memoized * function. Its creation may be customized by replacing the `_.memoize.Cache` * constructor with one whose instances implement the * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) * method interface of `clear`, `delete`, `get`, `has`, and `set`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to have its output memoized. * @param {Function} [resolver] The function to resolve the cache key. * @returns {Function} Returns the new memoized function. * @example * * var object = { 'a': 1, 'b': 2 }; * var other = { 'c': 3, 'd': 4 }; * * var values = _.memoize(_.values); * values(object); * // => [1, 2] * * values(other); * // => [3, 4] * * object.a = 2; * values(object); * // => [1, 2] * * // Modify the result cache. * values.cache.set(object, ['a', 'b']); * values(object); * // => ['a', 'b'] * * // Replace `_.memoize.Cache`. * _.memoize.Cache = WeakMap; */ function memoize(func, resolver) { if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { throw new TypeError(FUNC_ERROR_TEXT); } var memoized = function() { var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; if (cache.has(key)) { return cache.get(key); } var result = func.apply(this, args); memoized.cache = cache.set(key, result) || cache; return result; }; memoized.cache = new (memoize.Cache || MapCache); return memoized; } // Expose `MapCache`. memoize.Cache = MapCache; module.exports = memoize; /***/ }), /***/ "e538": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__("2b3e"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Built-in value references. */ var Buffer = moduleExports ? root.Buffer : undefined, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined; /** * Creates a clone of `buffer`. * * @private * @param {Buffer} buffer The buffer to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Buffer} Returns the cloned buffer. */ function cloneBuffer(buffer, isDeep) { if (isDeep) { return buffer.slice(); } var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); buffer.copy(result); return result; } module.exports = cloneBuffer; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "e683": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Creates a new URL by combining the specified URLs * * @param {string} baseURL The base URL * @param {string} relativeURL The relative URL * @returns {string} The combined URL */ module.exports = function combineURLs(baseURL, relativeURL) { return relativeURL ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL; }; /***/ }), /***/ "e762": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var Barcode = function Barcode(data, options) { _classCallCheck(this, Barcode); this.data = data; this.text = options.text || data; this.options = options; }; exports.default = Barcode; /***/ }), /***/ "e8b2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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; }; }(); exports.checksum = checksum; var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#Encoding var UPC = function (_Barcode) { _inherits(UPC, _Barcode); function UPC(data, options) { _classCallCheck(this, UPC); // Add checksum if it does not exist if (data.search(/^[0-9]{11}$/) !== -1) { data += checksum(data); } var _this = _possibleConstructorReturn(this, (UPC.__proto__ || Object.getPrototypeOf(UPC)).call(this, data, options)); _this.displayValue = options.displayValue; // Make sure the font is not bigger than the space between the guard bars if (options.fontSize > options.width * 10) { _this.fontSize = options.width * 10; } else { _this.fontSize = options.fontSize; } // Make the guard bars go down half the way of the text _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(UPC, [{ key: "valid", value: function valid() { return this.data.search(/^[0-9]{12}$/) !== -1 && this.data[11] == checksum(this.data); } }, { key: "encode", value: function encode() { if (this.options.flat) { return this.flatEncoding(); } else { return this.guardedEncoding(); } } }, { key: "flatEncoding", value: function flatEncoding() { var result = ""; result += "101"; result += (0, _encoder2.default)(this.data.substr(0, 6), "LLLLLL"); result += "01010"; result += (0, _encoder2.default)(this.data.substr(6, 6), "RRRRRR"); result += "101"; return { data: result, text: this.text }; } }, { key: "guardedEncoding", value: function guardedEncoding() { var result = []; // Add the first digit if (this.displayValue) { result.push({ data: "00000000", text: this.text.substr(0, 1), options: { textAlign: "left", fontSize: this.fontSize } }); } // Add the guard bars result.push({ data: "101" + (0, _encoder2.default)(this.data[0], "L"), options: { height: this.guardHeight } }); // Add the left side result.push({ data: (0, _encoder2.default)(this.data.substr(1, 5), "LLLLL"), text: this.text.substr(1, 5), options: { fontSize: this.fontSize } }); // Add the middle bits result.push({ data: "01010", options: { height: this.guardHeight } }); // Add the right side result.push({ data: (0, _encoder2.default)(this.data.substr(6, 5), "RRRRR"), text: this.text.substr(6, 5), options: { fontSize: this.fontSize } }); // Add the end bits result.push({ data: (0, _encoder2.default)(this.data[11], "R") + "101", options: { height: this.guardHeight } }); // Add the last digit if (this.displayValue) { result.push({ data: "00000000", text: this.text.substr(11, 1), options: { textAlign: "right", fontSize: this.fontSize } }); } return result; } }]); return UPC; }(_Barcode3.default); // Calulate the checksum digit // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Calculation_of_checksum_digit function checksum(number) { var result = 0; var i; for (i = 1; i < 11; i += 2) { result += parseInt(number[i]); } for (i = 0; i < 11; i += 2) { result += parseInt(number[i]) * 3; } return (10 - result % 10) % 10; } exports.default = UPC; /***/ }), /***/ "e8c9": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128A = function (_CODE) { _inherits(CODE128A, _CODE); function CODE128A(string, options) { _classCallCheck(this, CODE128A); return _possibleConstructorReturn(this, (CODE128A.__proto__ || Object.getPrototypeOf(CODE128A)).call(this, _constants.A_START_CHAR + string, options)); } _createClass(CODE128A, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.A_CHARS + '+$').test(this.data); } }]); return CODE128A; }(_CODE3.default); exports.default = CODE128A; /***/ }), /***/ "eac5": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Checks if `value` is likely a prototype object. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. */ function isPrototype(value) { var Ctor = value && value.constructor, proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; return value === proto; } module.exports = isPrototype; /***/ }), /***/ "ec69": /***/ (function(module, exports, __webpack_require__) { var arrayLikeKeys = __webpack_require__("6fcd"), baseKeys = __webpack_require__("03dd"), isArrayLike = __webpack_require__("30c9"); /** * Creates an array of the own enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. See the * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * for more details. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keys(new Foo); * // => ['a', 'b'] (iteration order is not guaranteed) * * _.keys('hi'); * // => ['0', '1'] */ function keys(object) { return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); } module.exports = keys; /***/ }), /***/ "ec8c": /***/ (function(module, exports) { /** * This function is like * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * except that it includes inherited enumerable properties. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function nativeKeysIn(object) { var result = []; if (object != null) { for (var key in Object(object)) { result.push(key); } } return result; } module.exports = nativeKeysIn; /***/ }), /***/ "ed27": /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"hi-eap\",\"version\":\"1.2.100\",\"description\":\"A utils Library for hi-eap. Smart Client Platform\",\"main\":\"eap.umd.min.js\",\"homepage\":\"http://hieap.cn\",\"scripts\":{\"build:eap\":\"cross-env NODE_LIB=eap vue-cli-service build --target lib --name eap --dest hi-eap ./src/eap/index.js\"},\"dependencies\":{},\"devDependencies\":{},\"eslintIgnore\":[\"**/*.md\"]}"); /***/ }), /***/ "ed3f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128C = function (_CODE) { _inherits(CODE128C, _CODE); function CODE128C(string, options) { _classCallCheck(this, CODE128C); return _possibleConstructorReturn(this, (CODE128C.__proto__ || Object.getPrototypeOf(CODE128C)).call(this, _constants.C_START_CHAR + string, options)); } _createClass(CODE128C, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.C_CHARS + '+$').test(this.data); } }]); return CODE128C; }(_CODE3.default); exports.default = CODE128C; /***/ }), /***/ "efb6": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"); /** * Removes all key-value entries from the stack. * * @private * @name clear * @memberOf Stack */ function stackClear() { this.__data__ = new ListCache; this.size = 0; } module.exports = stackClear; /***/ }), /***/ "f08e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _SET_BY_CODE; 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; } // constants for internal usage var SET_A = exports.SET_A = 0; var SET_B = exports.SET_B = 1; var SET_C = exports.SET_C = 2; // Special characters var SHIFT = exports.SHIFT = 98; var START_A = exports.START_A = 103; var START_B = exports.START_B = 104; var START_C = exports.START_C = 105; var MODULO = exports.MODULO = 103; var STOP = exports.STOP = 106; var FNC1 = exports.FNC1 = 207; // Get set by start code var SET_BY_CODE = exports.SET_BY_CODE = (_SET_BY_CODE = {}, _defineProperty(_SET_BY_CODE, START_A, SET_A), _defineProperty(_SET_BY_CODE, START_B, SET_B), _defineProperty(_SET_BY_CODE, START_C, SET_C), _SET_BY_CODE); // Get next set by code var SWAP = exports.SWAP = { 101: SET_A, 100: SET_B, 99: SET_C }; var A_START_CHAR = exports.A_START_CHAR = String.fromCharCode(208); // START_A + 105 var B_START_CHAR = exports.B_START_CHAR = String.fromCharCode(209); // START_B + 105 var C_START_CHAR = exports.C_START_CHAR = String.fromCharCode(210); // START_C + 105 // 128A (Code Set A) // ASCII characters 00 to 95 (0–9, A–Z and control codes), special characters, and FNC 1–4 var A_CHARS = exports.A_CHARS = "[\x00-\x5F\xC8-\xCF]"; // 128B (Code Set B) // ASCII characters 32 to 127 (0–9, A–Z, a–z), special characters, and FNC 1–4 var B_CHARS = exports.B_CHARS = "[\x20-\x7F\xC8-\xCF]"; // 128C (Code Set C) // 00–99 (encodes two digits with a single code point) and FNC1 var C_CHARS = exports.C_CHARS = "(\xCF*[0-9]{2}\xCF*)"; // CODE128 includes 107 symbols: // 103 data symbols, 3 start symbols (A, B and C), and 1 stop symbol (the last one) // Each symbol consist of three black bars (1) and three white spaces (0). var BARS = exports.BARS = [11011001100, 11001101100, 11001100110, 10010011000, 10010001100, 10001001100, 10011001000, 10011000100, 10001100100, 11001001000, 11001000100, 11000100100, 10110011100, 10011011100, 10011001110, 10111001100, 10011101100, 10011100110, 11001110010, 11001011100, 11001001110, 11011100100, 11001110100, 11101101110, 11101001100, 11100101100, 11100100110, 11101100100, 11100110100, 11100110010, 11011011000, 11011000110, 11000110110, 10100011000, 10001011000, 10001000110, 10110001000, 10001101000, 10001100010, 11010001000, 11000101000, 11000100010, 10110111000, 10110001110, 10001101110, 10111011000, 10111000110, 10001110110, 11101110110, 11010001110, 11000101110, 11011101000, 11011100010, 11011101110, 11101011000, 11101000110, 11100010110, 11101101000, 11101100010, 11100011010, 11101111010, 11001000010, 11110001010, 10100110000, 10100001100, 10010110000, 10010000110, 10000101100, 10000100110, 10110010000, 10110000100, 10011010000, 10011000010, 10000110100, 10000110010, 11000010010, 11001010000, 11110111010, 11000010100, 10001111010, 10100111100, 10010111100, 10010011110, 10111100100, 10011110100, 10011110010, 11110100100, 11110010100, 11110010010, 11011011110, 11011110110, 11110110110, 10101111000, 10100011110, 10001011110, 10111101000, 10111100010, 11110101000, 11110100010, 10111011110, 10111101110, 11101011110, 11110101110, 11010000100, 11010010000, 11010011100, 1100011101011]; /***/ }), /***/ "f3c1": /***/ (function(module, exports) { /** Used to detect hot functions by number of calls within a span of milliseconds. */ var HOT_COUNT = 800, HOT_SPAN = 16; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeNow = Date.now; /** * Creates a function that'll short out and invoke `identity` instead * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` * milliseconds. * * @private * @param {Function} func The function to restrict. * @returns {Function} Returns the new shortable function. */ function shortOut(func) { var count = 0, lastCalled = 0; return function() { var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); lastCalled = stamp; if (remaining > 0) { if (++count >= HOT_COUNT) { return arguments[0]; } } else { count = 0; } return func.apply(undefined, arguments); }; } module.exports = shortOut; /***/ }), /***/ "f4d6": /***/ (function(module, exports, __webpack_require__) { var isSymbol = __webpack_require__("ffd6"); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** * Converts `value` to a string key if it's not a string or symbol. * * @private * @param {*} value The value to inspect. * @returns {string|symbol} Returns the key. */ function toKey(value) { if (typeof value == 'string' || isSymbol(value)) { return value; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = toKey; /***/ }), /***/ "f608": /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__("6747"), isSymbol = __webpack_require__("ffd6"); /** Used to match property names within property paths. */ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; /** * Checks if `value` is a property name and not a property path. * * @private * @param {*} value The value to check. * @param {Object} [object] The object to query keys on. * @returns {boolean} Returns `true` if `value` is a property name, else `false`. */ function isKey(value, object) { if (isArray(value)) { return false; } var type = typeof value; if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) { return true; } return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || (object != null && value in Object(object)); } module.exports = isKey; /***/ }), /***/ "f6b4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); function InterceptorManager() { this.handlers = []; } /** * Add a new interceptor to the stack * * @param {Function} fulfilled The function to handle `then` for a `Promise` * @param {Function} rejected The function to handle `reject` for a `Promise` * * @return {Number} An ID used to remove interceptor later */ InterceptorManager.prototype.use = function use(fulfilled, rejected) { this.handlers.push({ fulfilled: fulfilled, rejected: rejected }); return this.handlers.length - 1; }; /** * Remove an interceptor from the stack * * @param {Number} id The ID that was returned by `use` */ InterceptorManager.prototype.eject = function eject(id) { if (this.handlers[id]) { this.handlers[id] = null; } }; /** * Iterate over all the registered interceptors * * This method is particularly useful for skipping over any * interceptors that may have become `null` calling `eject`. * * @param {Function} fn The function to call for each interceptor */ InterceptorManager.prototype.forEach = function forEach(fn) { utils.forEach(this.handlers, function forEachHandler(h) { if (h !== null) { fn(h); } }); }; module.exports = InterceptorManager; /***/ }), /***/ "f8af": /***/ (function(module, exports, __webpack_require__) { var Uint8Array = __webpack_require__("2474"); /** * Creates a clone of `arrayBuffer`. * * @private * @param {ArrayBuffer} arrayBuffer The array buffer to clone. * @returns {ArrayBuffer} Returns the cloned array buffer. */ function cloneArrayBuffer(arrayBuffer) { var result = new arrayBuffer.constructor(arrayBuffer.byteLength); new Uint8Array(result).set(new Uint8Array(arrayBuffer)); return result; } module.exports = cloneArrayBuffer; /***/ }), /***/ "f909": /***/ (function(module, exports, __webpack_require__) { var Stack = __webpack_require__("7e64"), assignMergeValue = __webpack_require__("b760"), baseFor = __webpack_require__("72af"), baseMergeDeep = __webpack_require__("4f50"), isObject = __webpack_require__("1a8c"), keysIn = __webpack_require__("9934"), safeGet = __webpack_require__("8adb"); /** * The base implementation of `_.merge` without support for multiple sources. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @param {number} srcIndex The index of `source`. * @param {Function} [customizer] The function to customize merged values. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. */ function baseMerge(object, source, srcIndex, customizer, stack) { if (object === source) { return; } baseFor(source, function(srcValue, key) { if (isObject(srcValue)) { stack || (stack = new Stack); baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); } else { var newValue = customizer ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack) : undefined; if (newValue === undefined) { newValue = srcValue; } assignMergeValue(object, key, newValue); } }, keysIn); } module.exports = baseMerge; /***/ }), /***/ "fa21": /***/ (function(module, exports, __webpack_require__) { var baseCreate = __webpack_require__("7530"), getPrototype = __webpack_require__("2dcb"), isPrototype = __webpack_require__("eac5"); /** * Initializes an object clone. * * @private * @param {Object} object The object to clone. * @returns {Object} Returns the initialized clone. */ function initCloneObject(object) { return (typeof object.constructor == 'function' && !isPrototype(object)) ? baseCreate(getPrototype(object)) : {}; } module.exports = initCloneObject; /***/ }), /***/ "fb15": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, "user", function() { return /* reexport */ user; }); __webpack_require__.d(__webpack_exports__, "ajax", function() { return /* reexport */ ajax; }); __webpack_require__.d(__webpack_exports__, "request", function() { return /* reexport */ eap_request; }); __webpack_require__.d(__webpack_exports__, "mergeConfig", function() { return /* reexport */ mergeConfig; }); __webpack_require__.d(__webpack_exports__, "lang", function() { return /* reexport */ eap_lang; }); __webpack_require__.d(__webpack_exports__, "utils", function() { return /* reexport */ eap_utils; }); __webpack_require__.d(__webpack_exports__, "page", function() { return /* reexport */ page; }); __webpack_require__.d(__webpack_exports__, "dataHelper", function() { return /* reexport */ eap_dataHelper; }); // 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') { var currentScript = window.document.currentScript if (true) { var getCurrentScript = __webpack_require__("8875") currentScript = getCurrentScript() // for backward compatibility, because previously we directly included the polyfill if (!('currentScript' in document)) { Object.defineProperty(document, 'currentScript', { get: getCurrentScript }) } } var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/) if (src) { __webpack_require__.p = src[1] // eslint-disable-line } } // Indicate to webpack that this file can be concatenated /* harmony default export */ var setPublicPath = (null); // EXTERNAL MODULE: ./node_modules/axios/index.js var axios = __webpack_require__("bc3a"); var axios_default = /*#__PURE__*/__webpack_require__.n(axios); // EXTERNAL MODULE: ./node_modules/js-cookie/dist/js.cookie.js var js_cookie = __webpack_require__("852e"); var js_cookie_default = /*#__PURE__*/__webpack_require__.n(js_cookie); // CONCATENATED MODULE: ./src/utils/token.js /* harmony default export */ var utils_token = ("d23290d0-f840-46d4-8401-ae815cc05c9a"); // CONCATENATED MODULE: ./src/eap/user/auth.js const TokenKey = 'EAP-Token' function getToken() { let token = js_cookie_default.a.get(TokenKey) let env = Object({"NODE_ENV":"production","VUE_APP_BASE_API":"http://192.168.4.106:7777","BASE_URL":"/"}); if (!token && env.NODE_ENV == "development") { return utils_token; } return token; } function setToken(token) { return js_cookie_default.a.set(TokenKey, token) } function removeToken() { return js_cookie_default.a.remove(TokenKey) } /* harmony default export */ var auth = ({ getToken, setToken, removeToken, }); // EXTERNAL MODULE: external "ELEMENT" var external_ELEMENT_ = __webpack_require__("5f72"); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/types.js /* harmony default export */ var types = ({ "string" :"dbString", "int" :"dbInt", "float" :"dbFloat", "double" :"dbDouble", "text" :"dbText ", "boolean" :"dbBoolean ", "datetime" :"dbDatetime ", "timestamp" :"dbTimestamp " }); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/keys.js /* harmony default export */ var keys = ({ "pageIndex": "pageNum", "pageSize": "pageSize", "body": "__body", "funcpath":"__funcpath", "returnTotal":"__returnCount", "zcQuery":"__zcQuery", "slaveEntities":"__slaveEntities", "modelFilePath":"modelFilePath", "slaveExport":"__slaveExport", "sheetStyle":"__sheetStyle", "sheetDatas":"__sheetDatas", "viewItemId":"viewItemId" }); // EXTERNAL MODULE: ./node_modules/lodash/has.js var has = __webpack_require__("3852"); var has_default = /*#__PURE__*/__webpack_require__.n(has); // EXTERNAL MODULE: ./node_modules/lodash/isDate.js var isDate = __webpack_require__("6220"); var isDate_default = /*#__PURE__*/__webpack_require__.n(isDate); // CONCATENATED MODULE: ./src/hiSetting.js const hiSetting = { //项目名 projectName: 'eap5csxm/admin', pName: "eap5csxm", pUser: "admin", //接口返回消息弹窗模式,默认为消息提示(自动消失),msgBox为消息弹窗(需手动确定关闭) messageType: "msgBox", //请求对象 // request: eap.request,//eap对象还没有加载 // ajax: eap.ajax,//eap对象还没有加载 //部署目录 deployDir: "", //服务器域名 url: "http://192.168.4.105:7777", //编辑器脚本路径 editorResDir: "", //服务名称 serverName: "", //默认服务url serverUrl: "", //用户信息 userInfo: "/sys/user/detail", //登录页url loginUrl: "/login.html", //小登录窗口登录页url miniLoginUrl: "/login.html", //首页url mainPageUrl: "/main.html", //大数据保存webscoketUrl saveWsUrl:"/ws/progress/{id}", //数据保存url saveUrl: "/data/save", //'/data/save', //数据查询url queryUrl: "/data/query", //'/data/query', //excel导出心跳 exportExcelHeartbeatUrl: "/export/dataexcel/status", //excel导入模板地址 excelImportTplUrl: "/import/exceltplurl", //导入URL excelImportUrl: "/import/exceldata", //ws excel导入数据 wsExcelImportUrl: "/ws/import/exceldata", //导出URL exportUrl: "/export/dataexcel", exportPathUrl: "/export/dataexcel/path", exportNewUrl: "/export/dataexcelnew", //页面初始化接口 pageInitUrl: "/data/page/permit", //数据策略url policyUrl: "/data/policy", //下推目标取url flowUrlByPush:"/sys/auth/query-flowux", //附件上传url upload: "/file/upload", //附件下载url download: "/file/download", //附件查看url review: "/file/static/preview", //附件上传url publicupload: "/file/public/upload", //附件下载url publicdownload: "/file/public/download", //附件查看url publicreview: "/file/public/preview", //流程信息url getFlowInfo: "/flow/open", getApprovalInfo: "/flow/getApprovalInfo", processFlow: "/flow/processFlow", umpireOrder: "/flow/umpireOrder", queryTask: "/flow/queryTask", withdrawtask: "/flow/withdrawtask", taskDiagram: "/flow/taskDiagram", ganttChart: "/flow/ganttChart", openOrdernumber: "/flow/openOrdernumber", //默认查询操作符 queryOperate: 'like', //数据返回超时时间 requestTimeout: 140 * 1000, //是否单点登录 isSingleLogin: false, //单点登录页 singleLoginUrl: "", //单点登出页 singleLogoutUrl: "", } /* harmony default export */ var src_hiSetting = (hiSetting); // CONCATENATED MODULE: ./src/base/utils/src/date.js /** * showdoc * @catalog API/工具/Date * @title 日期基础类 * @className ClientDate * @modifier static * @method DateFunc * @demo */ const DATE = { timeSchemeKey: { "today": "today", "yesterday": "yesterday", "week": "week", "month": "month", "premonth": "premonth", "quarter": "quarter", "year": "year", "days7": "days7", "days28": "days28", "days84": "days84", "halfyear": "halfyear", "oneyear": "oneyear" }, /** * showdoc * @catalog API/工具/Date * @title 日期格式化 * @description 将条件转成字符结果 * @method format * @param date 必选 Date|String 需要格式化日期 * @param format 必选 String 格式化类型 * @return Date * @number 60 */ format: function (date, format) { if (!date) return ""; if (typeof date == "string") date = DATE.strToDate(date); format = format.replace(/HH/, "hh"); var o = { "M+": date.getMonth() + 1, // month "d+": date.getDate(), // day "D+": date.getDate(), // day "h+": date.getHours(), // hour "H+": date.getHours(), // hour "m+": date.getMinutes(), // minute "s+": date.getSeconds(), // second "q+": Math.floor((date.getMonth() + 3) / 3), // quarter "S": date.getMilliseconds() // millisecond } if (/(y+)/.test(format)) format = format.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length)); if (/(Y+)/.test(format)) format = format.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(format)) format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length)); return format; }, /** * showdoc * @catalog API/工具/Date * @title 获取服务端时间 * @description 服务端当前时间 * @method getServerTimeNow * @return Date * @number 60 */ getServerTimeNow() { let serverTimeNow = ""; window.eap.ajax({ url: window.HIVUI_SETTING.getNowTimeUrl, method: "GET",//可不传,默认post async: false,//可不传,默认true success: function (response) { serverTimeNow = response.dataPack; }, fail: function () { } }); return serverTimeNow; }, /** * showdoc * @catalog API/工具/Date * @title 毫秒差间隔 * @description dt1与dt2日期之间毫秒差间隔 * @method milliSecondsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ milliSecondsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); return Math.abs(dt1.getTime() - dt2.getTime()); }, /** * showdoc * @catalog API/工具/Date * @title 秒差间隔 * @description dt1与dt2日期之间秒差间隔 * @method secondsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ secondsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs((dt1.getTime() - dt2.getTime()) / 1000); }, /** * showdoc * @catalog API/工具/Date * @title 分钟差间隔 * @description dt1与dt2日期之间分钟差间隔 * @method minutesBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ // 分差 minutesBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 60))); }, /** * showdoc * @catalog API/工具/Date * @title 时差间隔 * @description dt1与dt2日期之间时差间隔 * @method hoursBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ // 小时差 hoursBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 3600))); }, /** * showdoc * @catalog API/工具/Date * @title 天差间隔 * @description dt1与dt2日期之间天差间隔 * @method daysBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @param isAbs 选填 是否 返回绝对值 * @return Int * @number 60 */ daysBetween: function (dt1, dt2, isAbs) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; dt1 = this.strFormatDate(this.format(dt1, "yyyy-MM-dd")); dt2 = this.strFormatDate(this.format(dt2, "yyyy-MM-dd")); if (isAbs) return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 3600 * 24))); else return Math.floor((dt1.getTime() - dt2.getTime()) / (1000 * 3600 * 24)); }, /** * showdoc * @catalog API/工具/Date * @title 月差间隔 * @description dt1与dt2日期之间月差间隔 * @method daysBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ monthsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs((dt1.getFullYear() - dt2.getFullYear()) * 12) + Math.abs(dt1.getMonth() - dt2.getMonth()); }, /** * showdoc * @catalog API/工具/Date * @title 年差间隔 * @description dt1与dt2日期之间年差间隔 * @method yearsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ yearsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs(dt1.getFullYear() - dt2.getFullYear()); }, /** * showdoc * @catalog API/工具/Date * @title 获取中文星期 * @description 获取中文星期 * @method getWeekCn * @param dt 必选 Date|String 日期时间 * @return String * @number 60 */ getWeekCn: function (dt) { var dayNames = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"); if (typeof dt == "string") dt = DATE.strToDate(dt); return dayNames[dt.getDay()]; }, /** * showdoc * @catalog API/工具/Date * @title 获取数字星期 * @description 获取数字星期 * @url getWeek(dt) * @method getWeek(dt) * @param dt 必选 Date|String 日期时间 * @return String * @number 60 */ getWeek: function (dt) { if (typeof dt == "string") dt = DATE.strToDate(dt); return dt.getDay(); }, /** * showdoc * @catalog API/工具/Date * @title 是否时间日期 * @description 是否时间日期 * @method isDateTime * @param dateString 必选 Date|String 日期时间 * @return boolean * @number 60 */ isDateTime: function (dateString) { if (dateString.trim() == "") return false; // 年月日时分秒正则表达式 var r = dateString .match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/); var r1 = dateString .match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2}).(\d{1,6})$/); var r2 = dateString .match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2})$/); if (r == null && r1 == null && r2 == null) { return false; } r = r || r1 || r2; if (r.length == 6) {// 时间格式为:2018-04-11 17:31 var d1 = new Date(r[1], r[2] - 1, r[3], r[4], r[5]); let num = (d1.getFullYear() == r[1] && (d1.getMonth() + 1) == r[2] && d1.getDate() == r[3] && d1.getHours() == r[4] && d1 .getMinutes() == r[5]); if (num == 0) { return false; } else return true; } var d = new Date(r[1], r[2] - 1, r[3], r[4], r[5], r[6]); let num = (d.getFullYear() == r[1] && (d.getMonth() + 1) == r[2] && d.getDate() == r[3] && d.getHours() == r[4] && d.getMinutes() == r[5] && d.getSeconds() == r[6]); if (num == 0) { return false; } return (num != 0); }, /** * showdoc * @catalog API/工具/Date * @title 是否日期类型 * @description 是否日期类型 * @method isDate * @param dateString 必选 Date|String 日期时间 * @return boolean * @number 60 */ isDate: function (dateString) { if (dateString == "") return true; // 年月日正则表达式 var r = dateString.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/); if (r == null) { return false; } var d = new Date(r[1], r[3] - 1, r[4]); let num = (d.getFullYear() == r[1] && (d.getMonth() + 1) == r[3] && d .getDate() == r[4]); if (num == 0) { return false; } return (num != 0); }, dateof: function (dt, type) { let result; if (!dt) return ""; if (typeof dt == "string") dt = DATE.strToDate(dt); switch (type) { case "y": result = dt.getFullYear(); break; case "m": result = dt.getMonth() + 1; break; case "min": result = dt.getMinutes(); break; case "time": result = DATE.format("yyyy-MM-dd hh:mm:ss"); break; case "date": result = DATE.format('yyyy-MM-dd'); break; case "weekCn": result = dt.week(); break; case "week": result = dt.getDay(); break; case "weekInYear": var first = new Date(dt.getFullYear(), 0, 1); var n = parseInt("1065432".charAt(first.getDay())); n = dt.getTime() - first.getTime() - n * 24 * 60 * 60 * 1000; n = Math.ceil(n / (7 * 24 * 60 * 60 * 1000)); result = first.getDay() != 1 ? (n + 1) : n; break; default: result = ""; } return result; }, /** * showdoc * @catalog API/工具/Date * @title 字符转换指定日期类型 * @description 字符转换指定日期类型 * @method strFormatDate * @param strDate 必选 String 日期时间 * @param strFormat 必选 String 格式化类型 * @return Date * @number 60 */ strFormatDate: function (strDate, strFormat) { if (strDate == "" || strDate == null) return ""; let d = DATE.strToDate(strDate); if (!strFormat) return d; return d.format(strFormat); }, /** * showdoc * @catalog API/工具/Date * @title 字符转换日期类型 * @description 字符转换日期类型 * @method strToDate * @param dataStr 必选 String 日期时间 * @return Date * @number 60 */ strToDate: function (dataStr) { if (!dataStr) return ""; if (dataStr && dataStr.constructor === Date) { // 2010.08.02 // 已经是时间类型,就不过滤。 return dataStr; } if (typeof dataStr == "string") { if (dataStr.indexOf('.') > -1) // 2010.07.13 08335 cai dataStr = dataStr.split('.')[0]; dataStr = dataStr.replace(/-/g, "/"); } // 只有时间字符串 01521 if ((dataStr.indexOf("-") == -1 && dataStr.indexOf("/") == -1) && dataStr.indexOf(".") == -1 && dataStr.indexOf(":") != -1) dataStr = DATE.dateOf(new Date()) + " " + dataStr; var arr = dataStr.split(/[- :]/); var arr1 = dataStr.split(/[/ :]/) if (dataStr != "" && (arr.length == 1 && arr1.length == 1)) { // 当:dataStr:1,返回:2010-01-01 // 00:00:00 console.log(dataStr + " Invalid Date") return ""; } return new Date(Date.parse(dataStr)); } , /** * showdoc * @catalog API/工具/Date * @title 获得季度的第一天 * @description 获得季度的第一天 * @method getQuarterStartDay * @param dataStr 必选 Date 日期时间 * @return Date * @number 60 */ getQuarterStartDate: function () { var now = new Date(); var QuarterStartDate = ''; if (now.getMonth() < 3) { QuarterStartDate = new Date(now.getFullYear(), 0, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 2 && now.getMonth() < 6) { QuarterStartDate = new Date(now.getFullYear(), 3, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 5 && now.getMonth() < 9) { QuarterStartDate = new Date(now.getFullYear(), 6, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 8) { QuarterStartDate = new Date(now.getFullYear(), 9, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } }, /** * showdoc * @catalog API/工具/Date * @title 获得本季度的结束日期 * @description 获得本季度的结束日期 * @method getQuarterEndDate * @return Date * @number 60 */ getQuarterEndDate: function () { var now = new Date(); var QuarterStartDate = ''; if (now.getMonth() < 3) { QuarterStartDate = new Date(now.getFullYear(), 2, 31); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 2 && now.getMonth() < 6) { QuarterStartDate = new Date(now.getFullYear(), 6, 30); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 5 && now.getMonth() < 9) { QuarterStartDate = new Date(now.getFullYear(), 8, 30); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 8) { QuarterStartDate = new Date(now.getFullYear(), 11, 31); return this.format(QuarterStartDate, "yyyy-MM-dd"); } }, /** * showdoc * @catalog API/工具/Date * @title 获得本年度的开始日期 * @description 获得本年度的开始日期 * @method getYearStartDate * @return Date * @number 60 */ getYearStartDate: function () { var now = new Date(); var yearFirstDay = new Date(now.getFullYear(), 0, 1); return this.format(yearFirstDay, "yyyy-MM-dd"); //return yearFirstDay.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本年度的结束日期 * @description 获得本年度的结束日期 * @method getYearEndDate * @return Date * @number 60 */ getYearEndDate: function () { var now = new Date(); var yearLastDay = new Date(now.getFullYear(), 11, 31); return this.format(yearLastDay, "yyyy-MM-dd"); //return yearLastDay.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得某月的天数 * @description 获得某月的天数 * @method getMonthDays * @param myMonth,myYear 必选 int 月份 * @param myMonth,myYear 必选 int 年份 * @return Int * @number 60 */ getMonthDays: function (myMonth, myYear) { if (myYear == undefined) { var now = new Date(); myYear = now.getFullYear(); } myMonth--; var d = new Date(myYear, myMonth, 1); d.setDate(d.getDate() + 32 - d.getDate()); return (32 - d.getDate()) }, /** * showdoc * @catalog API/工具/Date * @title 获得本周的开始日期 * @description 获得本周的开始日期 * @method getWeekStartDate * @return Date * @number 60 */ getWeekStartDate: function () { var now = new Date(); var weekStartDate = new Date(now.getFullYear(), now.getMonth(), now .getDate() - now.getDay()); return this.format(weekStartDate, "yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本周的结束日期 * @description 获得本周的结束日期 * @method getWeekEndDate * @return Date * @number 60 */ getWeekEndDate: function () { var now = new Date(); var weekEndDate = new Date(now.getFullYear(), now.getMonth(), now .getDate() + (6 - now.getDay())); return this.format(weekEndDate, "yyyy-MM-dd"); //return weekEndDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本月的开始日期 * @description 获得本月的开始日期 * @method getMonthStartDate * @param dateVal 必选 Date|String 日期 * @return Date * @number 60 */ getMonthStartDate: function (dateVal) { var now = new Date(); if (dateVal && typeof dateVal == "string") now = DATE.strToDate(dateVal); var monthStartDate = new Date(now.getFullYear(), now.getMonth(), 1); return this.format(monthStartDate, "yyyy-MM-dd"); //monthStartDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本月的结束日期 * @description 获得本月的结束日期 * @method getMonthEndDate * @return Date * @number 60 */ getMonthEndDate: function (dateVal) { var now = new Date(); if (dateVal && typeof dateVal == "string") now = DATE.strToDate(dateVal); let year = now.getFullYear(); let month = now.getMonth(); var tempDate = new Date(new Date(year, month + 1, 1).getTime() - 1000 * 60 * 60 * 24) return this.format(tempDate, "yyyy-MM-dd"); //return tempDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获当前时间 * @description 获当前时间 * @method now * @param format 可选 String 格式化 * @return Date * @number 60 */ now: function () { let format = "yyyy-MM-dd hh:mm:ss"; return this.format(new Date(), format); }, currentNow: function () { return new Date(); }, /** * showdoc * @catalog API/工具/Date * @title 获时间方案 * @description 获时间方案 * @method TimeScheme * @param name 必选 String 方案名称 * @return Date * @number 60 */ TimeScheme: function (name,split) { split = split ||"到"; var startTime = ` 00:00:00${split}`, endTime = " 23:59:59"; switch (name) { case "today": return this.format(this.strToDate(this.now()), "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "yesterday": return this .format(this.dateAdd("d", -1, this.now()), "yyyy-MM-dd") + startTime + this.format(this.dateAdd("d", -1, this .now()), "yyyy-MM-dd") + endTime; case "week": return this.getWeekStartDate() + startTime + this.getWeekEndDate() + endTime; case "month": return this.getMonthStartDate() + startTime + this.getMonthEndDate() + endTime; case "quarter": return this.getQuarterStartDate() + startTime + this.getQuarterEndDate() + endTime; case "year": return this.getYearStartDate() + startTime + this.getYearEndDate() + endTime; case "days7": return this.format(this.dateAdd("d", -7, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "days28": return this.format(this.dateAdd("d", -28, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "days84": return this.format(this.dateAdd("d", -84, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "halfyear": return this.format(this.dateAdd("d", -180, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "oneyear": return this.format(this.dateAdd("d", -365, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; } }, daysInMonth: function (year, month) { if (month == 1) { if (year % 4 == 0 && year % 100 != 0) return 29; else return 28; } else if ((month <= 6 && month % 2 == 0) || (month = true && month % 2 == 1)) return 31; else return 30; }, /** * showdoc * @catalog API/工具/Date * @title 加减日期 * @description 在日期中添加或者减去指定的时间间隔天数 * @method dateAdd * @param datepart 必选 String 间隔类型:y:年,q:季度,m:月,d:天,h:小时,mi:分,s:秒 * @param number 必选 Int 间隔数,正数表示加,负数表示减 * @param dtDate 必选 Date * @return Date * @number 60 */ dateAdd: function (datepart, number, dtDate) { if (typeof dtDate == "string") dtDate = DATE.strToDate(dtDate); var date = new Date(dtDate); datepart = (datepart || 'd').toLowerCase(); let diff = parseInt(number); let tempdate; switch (datepart) { case "y": // 年 tempdate = date.setYear(date.getFullYear() + diff) break; case "q": // 季度 tempdate = date.setMonth(date.getMonth() + (diff * 3)) break; case "m": // 月 var sYear = date.getFullYear(); var sMonth = date.getMonth(); var nextY = sYear; var nextM = sMonth; //如果当前月+要加上的月>11 这里之所以用11是因为 js的月份从0开始 if ((sMonth + diff) > 11) { nextY = sYear + 1; nextM = parseInt(sMonth + diff) - 12; } else { nextM = date.getMonth() + diff } var daysInNextMonth = this.daysInMonth(nextY, nextM); var day = date.getDate(); if (day > daysInNextMonth) { day = daysInNextMonth; } //eDate = new Date(nextY, nextM, day); tempdate = new Date(nextY, nextM, day); break; case "d": // 天 tempdate = date.setDate(date.getDate() + diff); break; case "h": // 时 tempdate = date.setHours(date.getHours() + diff); break; case "mi": // 分 tempdate = date.setMinutes(date.getMinutes() + diff); break; case "s": // 秒 tempdate = date.setSeconds(date.getSeconds() + diff) break; default: tempdate = date.setDate(date.getDate() + diff); break; } return new Date(tempdate); } } /* harmony default export */ var date = (DATE); // CONCATENATED MODULE: ./src/base/utils/src/number.js /** * showdoc * @catalog API/工具/Number * @title 数值基础类 * @className NumberFunc * @modifier static * @method NumberFunc * @demo */ const NUM = { /** * showdoc * @catalog API/工具/Number * @title 除法函数,用来得到精确的除法结果 * @description 除法函数,用来得到精确的除法结果 * @url accDiv(arg1,arg2) * @method accDiv * @param arg1 必选 Number 被除数 * @param arg2 必选 Number 除数 * @return float * @number 60 */ accDiv: function (arg1, arg2) { var t1 = 0, t2 = 0, r1, r2; try { t1 = arg1.toString().split(".")[1].length } catch (e) { t1 = 0; } try { t2 = arg2.toString().split(".")[1].length } catch (e) { t2 = 0; } r1 = Number(arg1.toString().replace(".", "")) r2 = Number(arg2.toString().replace(".", "")) return (r1 / r2) * Math.pow(10, t2 - t1); }, /** * showdoc * @catalog API/工具/Number * @title 乘法函数,用来得到精确的乘法结果 * @description 乘法函数,用来得到精确的乘法结果 * @url accDiv(arg1,arg2) * @method accDiv * @param arg1 必选 Number 乘数 * @param arg2 必选 Number 乘数 * @return float * @number 60 */ accMul: function (arg1, arg2) { var m = 0, s1 = arg1.toString(), s2 = arg2.toString(); try { m += s1.split(".")[1].length } catch (e) { m = 0; } try { m += s2.split(".")[1].length } catch (e) { m += 0; } return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m) }, /** * showdoc * @catalog API/工具/Number * @title 加法函数,用来得到精确的加法结果 * @description 加法函数,用来得到精确的加法结果 * @url accAdd(arg1,arg2) * @method accAdd * @param arg1 必选 Number 加数 * @param arg2 必选 Number 加数 * @return float * @number 60 */ accAdd: function (arg1, arg2) { var r1, r2, m; try { r1 = arg1.toString().split(".")[1].length } catch (e) { r1 = 0 } try { r2 = arg2.toString().split(".")[1].length } catch (e) { r2 = 0 } m = Math.pow(10, Math.max(r1, r2)) return (NUM.accMul(arg1, m) + NUM.accMul(arg2, m)) / m }, toFixed(number, length) { var carry = 0; //存放进位标志 var num, multiple; //num为原浮点数放大multiple倍后的数,multiple为10的length次方 var str = number + ''; //将调用该方法的数字转为字符串 var dot = str.indexOf("."); //找到小数点的位置 if (str.substr(dot + length + 1, 1) >= 5) carry = 1; //找到要进行舍入的数的位置,手动判断是否大于等于5,满足条件进位标志置为1 multiple = Math.pow(10, length); //设置浮点数要扩大的倍数 num = Math.floor(number * multiple) + carry; //去掉舍入位后的所有数,然后加上我们的手动进位数 var result = num / multiple + ''; //将进位后的整数再缩小为原浮点数 /* * 处理进位后无小数 */ dot = result.indexOf("."); if (dot < 0) { result += '.'; dot = result.indexOf("."); } /* * 处理多次进位 */ var len = result.length - (dot + 1); if (len < length) { for (var i = 0; i < length - len; i++) { result += 0; } } return result; }, /** * showdoc * @catalog API/工具/Number * @title 中文数字格式化 * @description 中文数字格式化 * @url formatCn(n) * @method formatCn * @param n 必选 Number 数字 * @return string * @number 60 */ formatCn(n) { let fraction = ['角', '分']; let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']; let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']]; let head = n < 0 ? '欠' : ''; n = Math.abs(n); let s = ''; for (let i = 0; i < fraction.length; i++) { s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, ''); } s = s || '整'; n = Math.floor(n); for (let i = 0; i < unit[0].length && n > 0; i++) { let p = ''; for (let j = 0; j < unit[1].length && n > 0; j++) { p = digit[n % 10] + unit[1][j] + p; n = Math.floor(n / 10); } s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s; } return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整'); }, /** * showdoc * @catalog API/工具/Number * @title 数值格式化 * @description 数值格式化 * @url formatString(v,formatstring) * @method formatString * @param v 必选 Number 数字 * @param strign 必选 string 格式化 * @return string * @number 60 */ format: function (v, formatString) { if (!formatString) { formatString = "000,0.00"; //return v; } if (formatString == "¥") { formatString = "¥000,0.00"; } if (isFinite(v)) { v = parseFloat(v); } if (formatString.indexOf('%') > -1) { v = v * 100; } v = !isNaN(v) ? v : NaN; if (isNaN(v)) { return ''; } let formatCleanRe = /[^\d\.]/g; let comma = ",", dec = '.', neg = v < 0, hasComma, psplit, fnum, cnum, parr, j, m, n, i; v = Math.abs(v); // if (formatString.substr(formatString.length - 2) == '/i') { // I18NFormatCleanRe = new RegExp('[^\\d\\' // + UtilFormat.decimalSeparator + ']', 'g'); // formatString = formatString.substr(0, formatString.length - 2); // hasComma = formatString.indexOf(comma) != -1; // psplit = formatString.replace(I18NFormatCleanRe, '').split(dec); // } else hasComma = formatString.indexOf(',') != -1; psplit = formatString.replace(formatCleanRe, '').split('.'); if (psplit.length > 2) { alert("对比格式无效") // alert("瀵规瘮璧锋棤鏁堟牸寮忥紒"); // </debug> } else if (psplit.length > 1) { let precision = psplit[1].length || 0; let pow = Math.pow(10, precision); v = Number((Math.round(v * pow) / pow)).toFixed(precision); } else { let precision = psplit[0].length || 0; let pow = Math.pow(10, precision); v = Number((Math.round(v * pow) / pow)).toFixed(0); } fnum = v.toString(); psplit = fnum.split('.'); if (hasComma) { cnum = psplit[0]; parr = []; j = cnum.length; m = Math.floor(j / 3); n = cnum.length % 3 || 3; for (i = 0; i < j; i += n) { if (i !== 0) { n = 3; } parr[parr.length] = cnum.substr(i, n); m -= 1; } fnum = parr.join(comma); if (psplit[1]) { fnum += dec + psplit[1]; } } else { if (psplit[1]) { fnum = psplit[0] + dec + psplit[1]; } } if (neg) { neg = fnum.replace(/[^1-9]/g, '') !== ''; } return (neg ? '-' : '') + formatString.replace(/[\d,?\.?]+/, fnum); } } /* harmony default export */ var number = (NUM); // EXTERNAL MODULE: ./node_modules/js-md5/src/md5.js var md5 = __webpack_require__("8237"); var md5_default = /*#__PURE__*/__webpack_require__.n(md5); // CONCATENATED MODULE: ./src/base/utils/src/pyconst.js const pyconst_pinyin = { 'a': '\u554a\u963f\u9515', 'ai': '\u57c3\u6328\u54ce\u5509\u54c0\u7691\u764c\u853c\u77ee\u827e\u788d\u7231\u9698\u8bf6\u6371\u55f3\u55cc\u5ad2\u7477\u66a7\u7839\u953f\u972d', 'an': '\u978d\u6c28\u5b89\u4ffa\u6309\u6697\u5cb8\u80fa\u6848\u8c19\u57ef\u63de\u72b4\u5eb5\u6849\u94f5\u9e4c\u9878\u9eef', 'ang': '\u80ae\u6602\u76ce', 'ao': '\u51f9\u6556\u71ac\u7ff1\u8884\u50b2\u5965\u61ca\u6fb3\u5773\u62d7\u55f7\u5662\u5c99\u5ed2\u9068\u5aaa\u9a9c\u8071\u87af\u93ca\u9ccc\u93d6', 'ba': '\u82ad\u634c\u6252\u53ed\u5427\u7b06\u516b\u75a4\u5df4\u62d4\u8dcb\u9776\u628a\u8019\u575d\u9738\u7f62\u7238\u8307\u83dd\u8406\u636d\u5c9c\u705e\u6777\u94af\u7c91\u9c85\u9b43', 'bai': '\u767d\u67cf\u767e\u6446\u4f70\u8d25\u62dc\u7a17\u859c\u63b0\u97b4', 'ban': '\u6591\u73ed\u642c\u6273\u822c\u9881\u677f\u7248\u626e\u62cc\u4f34\u74e3\u534a\u529e\u7eca\u962a\u5742\u8c73\u94a3\u7622\u764d\u8228', 'bang': '\u90a6\u5e2e\u6886\u699c\u8180\u7ed1\u68d2\u78c5\u868c\u9551\u508d\u8c24\u84a1\u8783', 'bao': '\u82de\u80de\u5305\u8912\u96f9\u4fdd\u5821\u9971\u5b9d\u62b1\u62a5\u66b4\u8c79\u9c8d\u7206\u52f9\u8446\u5b80\u5b62\u7172\u9e28\u8913\u8db5\u9f85', 'bo': '\u5265\u8584\u73bb\u83e0\u64ad\u62e8\u94b5\u6ce2\u535a\u52c3\u640f\u94c2\u7b94\u4f2f\u5e1b\u8236\u8116\u818a\u6e24\u6cca\u9a73\u4eb3\u8543\u5575\u997d\u6a97\u64d8\u7934\u94b9\u9e41\u7c38\u8ddb', 'bei': '\u676f\u7891\u60b2\u5351\u5317\u8f88\u80cc\u8d1d\u94a1\u500d\u72c8\u5907\u60eb\u7119\u88ab\u5b5b\u9642\u90b6\u57e4\u84d3\u5457\u602b\u6096\u789a\u9e4e\u8919\u943e', 'ben': '\u5954\u82ef\u672c\u7b28\u755a\u574c\u951b', 'beng': '\u5d29\u7ef7\u752d\u6cf5\u8e66\u8ff8\u552a\u5623\u750f', 'bi': '\u903c\u9f3b\u6bd4\u9119\u7b14\u5f7c\u78a7\u84d6\u853d\u6bd5\u6bd9\u6bd6\u5e01\u5e87\u75f9\u95ed\u655d\u5f0a\u5fc5\u8f9f\u58c1\u81c2\u907f\u965b\u5315\u4ef3\u4ffe\u8298\u835c\u8378\u5421\u54d4\u72f4\u5eb3\u610e\u6ed7\u6fde\u5f3c\u59a3\u5a62\u5b16\u74a7\u8d32\u7540\u94cb\u79d5\u88e8\u7b5a\u7b85\u7be6\u822d\u895e\u8df8\u9ac0', 'bian': '\u97ad\u8fb9\u7f16\u8d2c\u6241\u4fbf\u53d8\u535e\u8fa8\u8fa9\u8fab\u904d\u533e\u5f01\u82c4\u5fed\u6c74\u7f0f\u7178\u782d\u78a5\u7a39\u7a86\u8759\u7b3e\u9cca', 'biao': '\u6807\u5f6a\u8198\u8868\u5a4a\u9aa0\u98d1\u98d9\u98da\u706c\u9556\u9573\u762d\u88f1\u9cd4', 'bie': '\u9cd6\u618b\u522b\u762a\u8e69\u9cd8', 'bin': '\u5f6c\u658c\u6fd2\u6ee8\u5bbe\u6448\u50a7\u6d5c\u7f24\u73a2\u6ba1\u8191\u9554\u9acc\u9b13', 'bing': '\u5175\u51b0\u67c4\u4e19\u79c9\u997c\u70b3\u75c5\u5e76\u7980\u90b4\u6452\u7ee0\u678b\u69df\u71f9', 'bu': '\u6355\u535c\u54fa\u8865\u57e0\u4e0d\u5e03\u6b65\u7c3f\u90e8\u6016\u62ca\u535f\u900b\u74ff\u6661\u949a\u91ad', 'ca': '\u64e6\u5693\u7924', 'cai': '\u731c\u88c1\u6750\u624d\u8d22\u776c\u8e29\u91c7\u5f69\u83dc\u8521', 'can': '\u9910\u53c2\u8695\u6b8b\u60ed\u60e8\u707f\u9a96\u74a8\u7cb2\u9eea', 'cang': '\u82cd\u8231\u4ed3\u6ca7\u85cf\u4f27', 'cao': '\u64cd\u7cd9\u69fd\u66f9\u8349\u8279\u5608\u6f15\u87ac\u825a', 'ce': '\u5395\u7b56\u4fa7\u518c\u6d4b\u5202\u5e3b\u607b', 'ceng': '\u5c42\u8e6d\u564c', 'cha': '\u63d2\u53c9\u832c\u8336\u67e5\u78b4\u643d\u5bdf\u5c94\u5dee\u8be7\u7339\u9987\u6c4a\u59f9\u6748\u6942\u69ce\u6aab\u9497\u9538\u9572\u8869', 'chai': '\u62c6\u67f4\u8c7a\u4faa\u8308\u7625\u867f\u9f87', 'chan': '\u6400\u63ba\u8749\u998b\u8c17\u7f20\u94f2\u4ea7\u9610\u98a4\u5181\u8c04\u8c36\u8487\u5edb\u5fcf\u6f7a\u6fb6\u5b71\u7fbc\u5a75\u5b17\u9aa3\u89c7\u7985\u9561\u88e3\u87fe\u8e94', 'chang': '\u660c\u7316\u573a\u5c1d\u5e38\u957f\u507f\u80a0\u5382\u655e\u7545\u5531\u5021\u4f25\u9b2f\u82cc\u83d6\u5f9c\u6005\u60dd\u960a\u5a3c\u5ae6\u6636\u6c05\u9cb3', 'chao': '\u8d85\u6284\u949e\u671d\u5632\u6f6e\u5de2\u5435\u7092\u600a\u7ec9\u6641\u8016', 'che': '\u8f66\u626f\u64a4\u63a3\u5f7b\u6f88\u577c\u5c6e\u7817', 'chen': '\u90f4\u81e3\u8fb0\u5c18\u6668\u5ff1\u6c89\u9648\u8d81\u886c\u79f0\u8c0c\u62bb\u55d4\u5bb8\u741b\u6987\u809c\u80c2\u789c\u9f80', 'cheng': '\u6491\u57ce\u6a59\u6210\u5448\u4e58\u7a0b\u60e9\u6f84\u8bda\u627f\u901e\u9a8b\u79e4\u57d5\u5d4a\u5fb5\u6d48\u67a8\u67fd\u6a18\u665f\u584d\u77a0\u94d6\u88ce\u86cf\u9172', 'chi': '\u5403\u75f4\u6301\u5319\u6c60\u8fdf\u5f1b\u9a70\u803b\u9f7f\u4f88\u5c3a\u8d64\u7fc5\u65a5\u70bd\u50ba\u5880\u82aa\u830c\u640b\u53f1\u54e7\u557b\u55e4\u5f73\u996c\u6cb2\u5ab8\u6555\u80dd\u7719\u7735\u9e31\u761b\u892b\u86a9\u87ad\u7b1e\u7bea\u8c49\u8e05\u8e1f\u9b51', 'chong': '\u5145\u51b2\u866b\u5d07\u5ba0\u833a\u5fe1\u61a7\u94f3\u825f', 'chou': '\u62bd\u916c\u7574\u8e0c\u7a20\u6101\u7b79\u4ec7\u7ef8\u7785\u4e11\u4fe6\u5733\u5e31\u60c6\u6eb4\u59af\u7633\u96e0\u9c8b', 'chu': '\u81ed\u521d\u51fa\u6a71\u53a8\u8e87\u9504\u96cf\u6ec1\u9664\u695a\u7840\u50a8\u77d7\u6410\u89e6\u5904\u4e8d\u520d\u61b7\u7ecc\u6775\u696e\u6a17\u870d\u8e70\u9edc', 'chuan': '\u63e3\u5ddd\u7a7f\u693d\u4f20\u8239\u5598\u4e32\u63be\u821b\u60f4\u9044\u5ddb\u6c1a\u948f\u9569\u8221', 'chuang': '\u75ae\u7a97\u5e62\u5e8a\u95ef\u521b\u6006', 'chui': '\u5439\u708a\u6376\u9524\u5782\u9672\u68f0\u69cc', 'chun': '\u6625\u693f\u9187\u5507\u6df3\u7eaf\u8822\u4fc3\u83bc\u6c8c\u80ab\u6710\u9e51\u877d', 'chuo': '\u6233\u7ef0\u851f\u8fb6\u8f8d\u955e\u8e14\u9f8a', 'ci': '\u75b5\u8328\u78c1\u96cc\u8f9e\u6148\u74f7\u8bcd\u6b64\u523a\u8d50\u6b21\u8360\u5472\u5d6f\u9e5a\u8785\u7ccd\u8d91', 'cong': '\u806a\u8471\u56f1\u5306\u4ece\u4e1b\u506c\u82c1\u6dd9\u9aa2\u742e\u7481\u679e', 'cu': '\u51d1\u7c97\u918b\u7c07\u731d\u6b82\u8e59', 'cuan': '\u8e7f\u7be1\u7a9c\u6c46\u64ba\u6615\u7228', 'cui': '\u6467\u5d14\u50ac\u8106\u7601\u7cb9\u6dec\u7fe0\u8403\u60b4\u7480\u69b1\u96b9', 'cun': '\u6751\u5b58\u5bf8\u78cb\u5fd6\u76b4', 'cuo': '\u64ae\u6413\u63aa\u632b\u9519\u539d\u811e\u9509\u77ec\u75e4\u9e7e\u8e49\u8e9c', 'da': '\u642d\u8fbe\u7b54\u7629\u6253\u5927\u8037\u54d2\u55d2\u601b\u59b2\u75b8\u8921\u7b2a\u977c\u9791', 'dai': '\u5446\u6b79\u50a3\u6234\u5e26\u6b86\u4ee3\u8d37\u888b\u5f85\u902e\u6020\u57ed\u7519\u5454\u5cb1\u8fe8\u902f\u9a80\u7ed0\u73b3\u9edb', 'dan': '\u803d\u62c5\u4e39\u5355\u90f8\u63b8\u80c6\u65e6\u6c2e\u4f46\u60ee\u6de1\u8bde\u5f39\u86cb\u4ebb\u510b\u5369\u840f\u5556\u6fb9\u6a90\u6b9a\u8d55\u7708\u7605\u8043\u7baa', 'dang': '\u5f53\u6321\u515a\u8361\u6863\u8c20\u51fc\u83ea\u5b95\u7800\u94db\u88c6', 'dao': '\u5200\u6363\u8e48\u5012\u5c9b\u7977\u5bfc\u5230\u7a3b\u60bc\u9053\u76d7\u53e8\u5541\u5fc9\u6d2e\u6c18\u7118\u5fd1\u7e9b', 'de': '\u5fb7\u5f97\u7684\u951d', 'deng': '\u8e6c\u706f\u767b\u7b49\u77aa\u51f3\u9093\u5654\u5d9d\u6225\u78f4\u956b\u7c26', 'di': '\u5824\u4f4e\u6ef4\u8fea\u654c\u7b1b\u72c4\u6da4\u7fdf\u5ae1\u62b5\u5e95\u5730\u8482\u7b2c\u5e1d\u5f1f\u9012\u7f14\u6c10\u7c74\u8bcb\u8c1b\u90b8\u577b\u839c\u837b\u5600\u5a23\u67e2\u68e3\u89cc\u7825\u78b2\u7747\u955d\u7f9d\u9ab6', 'dian': '\u98a0\u6382\u6ec7\u7898\u70b9\u5178\u975b\u57ab\u7535\u4f43\u7538\u5e97\u60e6\u5960\u6dc0\u6bbf\u4e36\u963d\u576b\u57dd\u5dc5\u73b7\u765c\u766b\u7c1f\u8e2e', 'diao': '\u7889\u53fc\u96d5\u51cb\u5201\u6389\u540a\u9493\u8c03\u8f7a\u94de\u8729\u7c9c\u8c82', 'die': '\u8dcc\u7239\u789f\u8776\u8fed\u8c0d\u53e0\u4f5a\u57a4\u581e\u63f2\u558b\u6e2b\u8f76\u7252\u74de\u8936\u800b\u8e40\u9cbd\u9cce', 'ding': '\u4e01\u76ef\u53ee\u9489\u9876\u9f0e\u952d\u5b9a\u8ba2\u4e22\u4ec3\u5576\u738e\u815a\u7887\u753a\u94e4\u7594\u8035\u914a', 'dong': '\u4e1c\u51ac\u8463\u61c2\u52a8\u680b\u4f97\u606b\u51bb\u6d1e\u578c\u549a\u5cbd\u5cd2\u5902\u6c21\u80e8\u80f4\u7850\u9e2b', 'dou': '\u515c\u6296\u6597\u9661\u8c46\u9017\u75d8\u8538\u94ad\u7aa6\u7aac\u86aa\u7bfc\u9161', 'du': '\u90fd\u7763\u6bd2\u728a\u72ec\u8bfb\u5835\u7779\u8d4c\u675c\u9540\u809a\u5ea6\u6e21\u5992\u828f\u561f\u6e0e\u691f\u6a50\u724d\u8839\u7b03\u9ad1\u9ee9', 'duan': '\u7aef\u77ed\u953b\u6bb5\u65ad\u7f0e\u5f56\u6934\u7145\u7c16', 'dui': '\u5806\u5151\u961f\u5bf9\u603c\u619d\u7893', 'dun': '\u58a9\u5428\u8e72\u6566\u987f\u56e4\u949d\u76fe\u9041\u7096\u7818\u7905\u76f9\u9566\u8db8', 'duo': '\u6387\u54c6\u591a\u593a\u579b\u8eb2\u6735\u8dfa\u8235\u5241\u60f0\u5815\u5484\u54da\u7f0d\u67c1\u94ce\u88f0\u8e31', 'e': '\u86fe\u5ce8\u9e45\u4fc4\u989d\u8bb9\u5a25\u6076\u5384\u627c\u904f\u9102\u997f\u5669\u8c14\u57a9\u57ad\u82ca\u83aa\u843c\u5443\u6115\u5c59\u5a40\u8f6d\u66f7\u816d\u786a\u9507\u9537\u9e57\u989a\u9cc4', 'en': '\u6069\u84bd\u6441\u5514\u55ef', 'er': '\u800c\u513f\u8033\u5c14\u9975\u6d31\u4e8c\u8d30\u8fe9\u73e5\u94d2\u9e38\u9c95', 'fa': '\u53d1\u7f5a\u7b4f\u4f10\u4e4f\u9600\u6cd5\u73d0\u57a1\u781d', 'fan': '\u85e9\u5e06\u756a\u7ffb\u6a0a\u77fe\u9492\u7e41\u51e1\u70e6\u53cd\u8fd4\u8303\u8d29\u72af\u996d\u6cdb\u8629\u5e61\u72ad\u68b5\u6535\u71d4\u7548\u8e6f', 'fang': '\u574a\u82b3\u65b9\u80aa\u623f\u9632\u59a8\u4eff\u8bbf\u7eba\u653e\u531a\u90a1\u5f77\u94ab\u822b\u9c82', 'fei': '\u83f2\u975e\u5561\u98de\u80a5\u532a\u8bfd\u5420\u80ba\u5e9f\u6cb8\u8d39\u82be\u72d2\u60b1\u6ddd\u5983\u7ecb\u7eef\u69a7\u8153\u6590\u6249\u7953\u7829\u9544\u75f1\u871a\u7bda\u7fe1\u970f\u9cb1', 'fen': '\u82ac\u915a\u5429\u6c1b\u5206\u7eb7\u575f\u711a\u6c7e\u7c89\u594b\u4efd\u5fff\u6124\u7caa\u507e\u7035\u68fc\u610d\u9cbc\u9f22', 'feng': '\u4e30\u5c01\u67ab\u8702\u5cf0\u950b\u98ce\u75af\u70fd\u9022\u51af\u7f1d\u8bbd\u5949\u51e4\u4ff8\u9146\u8451\u6ca3\u781c', 'fu': '\u4f5b\u5426\u592b\u6577\u80a4\u5b75\u6276\u62c2\u8f90\u5e45\u6c1f\u7b26\u4f0f\u4fd8\u670d\u6d6e\u6daa\u798f\u88b1\u5f17\u752b\u629a\u8f85\u4fef\u91dc\u65a7\u812f\u8151\u5e9c\u8150\u8d74\u526f\u8986\u8d4b\u590d\u5085\u4ed8\u961c\u7236\u8179\u8d1f\u5bcc\u8ba3\u9644\u5987\u7f1a\u5490\u5310\u51eb\u90db\u8299\u82fb\u832f\u83a9\u83d4\u544b\u5e5e\u6ecf\u8274\u5b5a\u9a78\u7ec2\u6874\u8d59\u9efb\u9efc\u7f58\u7a03\u99a5\u864d\u86a8\u8709\u8760\u876e\u9eb8\u8dba\u8dd7\u9cc6', 'ga': '\u5676\u560e\u86e4\u5c2c\u5477\u5c15\u5c1c\u65ee\u9486', 'gai': '\u8be5\u6539\u6982\u9499\u76d6\u6e89\u4e10\u9654\u5793\u6224\u8d45\u80f2', 'gan': '\u5e72\u7518\u6746\u67d1\u7aff\u809d\u8d76\u611f\u79c6\u6562\u8d63\u5769\u82f7\u5c34\u64c0\u6cd4\u6de6\u6f89\u7ec0\u6a44\u65f0\u77f8\u75b3\u9150', 'gang': '\u5188\u521a\u94a2\u7f38\u809b\u7eb2\u5c97\u6e2f\u6206\u7f61\u9883\u7b7b', 'gong': '\u6760\u5de5\u653b\u529f\u606d\u9f9a\u4f9b\u8eac\u516c\u5bab\u5f13\u5de9\u6c5e\u62f1\u8d21\u5171\u857b\u5efe\u54a3\u73d9\u80b1\u86a3\u86e9\u89e5', 'gao': '\u7bd9\u768b\u9ad8\u818f\u7f94\u7cd5\u641e\u9550\u7a3f\u544a\u777e\u8bf0\u90dc\u84bf\u85c1\u7f1f\u69d4\u69c1\u6772\u9506', 'ge': '\u54e5\u6b4c\u6401\u6208\u9e3d\u80f3\u7599\u5272\u9769\u845b\u683c\u9601\u9694\u94ec\u4e2a\u5404\u9b32\u4ee1\u54ff\u5865\u55dd\u7ea5\u643f\u8188\u784c\u94ea\u9549\u88bc\u988c\u867c\u8238\u9abc\u9ac2', 'gei': '\u7ed9', 'gen': '\u6839\u8ddf\u4e98\u831b\u54cf\u826e', 'geng': '\u8015\u66f4\u5e9a\u7fb9\u57c2\u803f\u6897\u54fd\u8d53\u9ca0', 'gou': '\u94a9\u52fe\u6c9f\u82df\u72d7\u57a2\u6784\u8d2d\u591f\u4f5d\u8bdf\u5ca3\u9058\u5abe\u7f11\u89cf\u5f40\u9e32\u7b31\u7bdd\u97b2', 'gu': '\u8f9c\u83c7\u5495\u7b8d\u4f30\u6cbd\u5b64\u59d1\u9f13\u53e4\u86ca\u9aa8\u8c37\u80a1\u6545\u987e\u56fa\u96c7\u560f\u8bc2\u83f0\u54cc\u5d2e\u6c69\u688f\u8f71\u726f\u727f\u80cd\u81cc\u6bc2\u77bd\u7f5f\u94b4\u9522\u74e0\u9e2a\u9e44\u75fc\u86c4\u9164\u89da\u9cb4\u9ab0\u9e58', 'gua': '\u522e\u74dc\u5250\u5be1\u6302\u8902\u5366\u8bd6\u5471\u681d\u9e39', 'guai': '\u4e56\u62d0\u602a\u54d9', 'guan': '\u68fa\u5173\u5b98\u51a0\u89c2\u7ba1\u9986\u7f50\u60ef\u704c\u8d2f\u500c\u839e\u63bc\u6dab\u76e5\u9e73\u9ccf', 'guang': '\u5149\u5e7f\u901b\u72b7\u6844\u80f1\u7592', 'gui': '\u7470\u89c4\u572d\u7845\u5f52\u9f9f\u95fa\u8f68\u9b3c\u8be1\u7678\u6842\u67dc\u8dea\u8d35\u523d\u5326\u523f\u5e8b\u5b84\u59ab\u6867\u7085\u6677\u7688\u7c0b\u9c91\u9cdc', 'gun': '\u8f8a\u6eda\u68cd\u4e28\u886e\u7ef2\u78d9\u9ca7', 'guo': '\u9505\u90ed\u56fd\u679c\u88f9\u8fc7\u9998\u8803\u57da\u63b4\u5459\u56d7\u5e3c\u5d1e\u7313\u6901\u8662\u951e\u8052\u872e\u873e\u8748', 'ha': '\u54c8', 'hai': '\u9ab8\u5b69\u6d77\u6c26\u4ea5\u5bb3\u9a87\u54b4\u55e8\u988f\u91a2', 'han': '\u9163\u61a8\u90af\u97e9\u542b\u6db5\u5bd2\u51fd\u558a\u7f55\u7ff0\u64bc\u634d\u65f1\u61be\u608d\u710a\u6c57\u6c49\u9097\u83e1\u6496\u961a\u701a\u6657\u7113\u9894\u86b6\u9f3e', 'hen': '\u592f\u75d5\u5f88\u72e0\u6068', 'hang': '\u676d\u822a\u6c86\u7ed7\u73e9\u6841', 'hao': '\u58d5\u568e\u8c6a\u6beb\u90dd\u597d\u8017\u53f7\u6d69\u8585\u55e5\u5686\u6fe0\u704f\u660a\u7693\u98a2\u869d', 'he': '\u5475\u559d\u8377\u83cf\u6838\u79be\u548c\u4f55\u5408\u76d2\u8c89\u9602\u6cb3\u6db8\u8d6b\u8910\u9e64\u8d3a\u8bc3\u52be\u58d1\u85ff\u55d1\u55ec\u9616\u76cd\u86b5\u7fee', 'hei': '\u563f\u9ed1', 'heng': '\u54fc\u4ea8\u6a2a\u8861\u6052\u8a07\u8605', 'hong': '\u8f70\u54c4\u70d8\u8679\u9e3f\u6d2a\u5b8f\u5f18\u7ea2\u9ec9\u8ba7\u836d\u85a8\u95f3\u6cd3', 'hou': '\u5589\u4faf\u7334\u543c\u539a\u5019\u540e\u5820\u5f8c\u9005\u760a\u7bcc\u7cc7\u9c8e\u9aba', 'hu': '\u547c\u4e4e\u5ffd\u745a\u58f6\u846b\u80e1\u8774\u72d0\u7cca\u6e56\u5f27\u864e\u552c\u62a4\u4e92\u6caa\u6237\u51b1\u553f\u56eb\u5cb5\u7322\u6019\u60da\u6d52\u6ef9\u7425\u69f2\u8f77\u89f3\u70c0\u7173\u623d\u6248\u795c\u9e55\u9e71\u7b0f\u9190\u659b', 'hua': '\u82b1\u54d7\u534e\u733e\u6ed1\u753b\u5212\u5316\u8bdd\u5290\u6d4d\u9a85\u6866\u94e7\u7a1e', 'huai': '\u69d0\u5f8a\u6000\u6dee\u574f\u8fd8\u8e1d', 'huan': '\u6b22\u73af\u6853\u7f13\u6362\u60a3\u5524\u75ea\u8c62\u7115\u6da3\u5ba6\u5e7b\u90c7\u5942\u57b8\u64d0\u571c\u6d39\u6d63\u6f36\u5bf0\u902d\u7f33\u953e\u9ca9\u9b1f', 'huang': '\u8352\u614c\u9ec4\u78fa\u8757\u7c27\u7687\u51f0\u60f6\u714c\u6643\u5e4c\u604d\u8c0e\u968d\u5fa8\u6e5f\u6f62\u9051\u749c\u8093\u7640\u87e5\u7bc1\u9cc7', 'hui': '\u7070\u6325\u8f89\u5fbd\u6062\u86d4\u56de\u6bc1\u6094\u6167\u5349\u60e0\u6666\u8d3f\u79fd\u4f1a\u70e9\u6c47\u8bb3\u8bf2\u7ed8\u8bd9\u8334\u835f\u8559\u54d5\u5599\u96b3\u6d04\u5f57\u7f0b\u73f2\u6656\u605a\u867a\u87ea\u9ebe', 'hun': '\u8364\u660f\u5a5a\u9b42\u6d51\u6df7\u8be8\u9984\u960d\u6eb7\u7f17', 'huo': '\u8c41\u6d3b\u4f19\u706b\u83b7\u6216\u60d1\u970d\u8d27\u7978\u6509\u56af\u5925\u94ac\u952a\u956c\u8020\u8816', 'ji': '\u51fb\u573e\u57fa\u673a\u7578\u7a3d\u79ef\u7b95\u808c\u9965\u8ff9\u6fc0\u8ba5\u9e21\u59ec\u7ee9\u7f09\u5409\u6781\u68d8\u8f91\u7c4d\u96c6\u53ca\u6025\u75be\u6c72\u5373\u5ac9\u7ea7\u6324\u51e0\u810a\u5df1\u84df\u6280\u5180\u5b63\u4f0e\u796d\u5242\u60b8\u6d4e\u5bc4\u5bc2\u8ba1\u8bb0\u65e2\u5fcc\u9645\u5993\u7ee7\u7eaa\u5c45\u4e0c\u4e69\u525e\u4f76\u4f74\u8114\u58bc\u82a8\u82b0\u8401\u84ba\u857a\u638e\u53fd\u54ad\u54dc\u5527\u5c8c\u5d74\u6d0e\u5f50\u5c50\u9aa5\u757f\u7391\u696b\u6b9b\u621f\u6222\u8d4d\u89ca\u7284\u9f51\u77f6\u7f81\u5d47\u7a37\u7620\u7635\u866e\u7b08\u7b04\u66a8\u8dfb\u8dfd\u9701\u9c9a\u9cab\u9afb\u9e82', 'jia': '\u5609\u67b7\u5939\u4f73\u5bb6\u52a0\u835a\u988a\u8d3e\u7532\u94be\u5047\u7a3c\u4ef7\u67b6\u9a7e\u5ac1\u4f3d\u90cf\u62ee\u5cac\u6d43\u8fe6\u73c8\u621b\u80db\u605d\u94d7\u9553\u75c2\u86f1\u7b33\u8888\u8dcf', 'jian': '\u6b7c\u76d1\u575a\u5c16\u7b3a\u95f4\u714e\u517c\u80a9\u8270\u5978\u7f04\u8327\u68c0\u67ec\u78b1\u7877\u62e3\u6361\u7b80\u4fed\u526a\u51cf\u8350\u69db\u9274\u8df5\u8d31\u89c1\u952e\u7bad\u4ef6\u5065\u8230\u5251\u996f\u6e10\u6e85\u6da7\u5efa\u50ed\u8c0f\u8c2b\u83c5\u84b9\u641b\u56dd\u6e54\u8e47\u8b07\u7f23\u67a7\u67d9\u6957\u620b\u622c\u726e\u728d\u6bfd\u8171\u7751\u950f\u9e63\u88e5\u7b15\u7bb4\u7fe6\u8dbc\u8e3a\u9ca3\u97af', 'jiang': '\u50f5\u59dc\u5c06\u6d46\u6c5f\u7586\u848b\u6868\u5956\u8bb2\u5320\u9171\u964d\u8333\u6d1a\u7edb\u7f30\u729f\u7913\u8029\u7ce8\u8c47', 'jiao': '\u8549\u6912\u7901\u7126\u80f6\u4ea4\u90ca\u6d47\u9a84\u5a07\u56bc\u6405\u94f0\u77eb\u4fa5\u811a\u72e1\u89d2\u997a\u7f34\u7ede\u527f\u6559\u9175\u8f7f\u8f83\u53eb\u4f7c\u50ec\u832d\u6322\u564d\u5ce4\u5fbc\u59e3\u7e9f\u656b\u768e\u9e6a\u86df\u91ae\u8de4\u9c9b', 'jie': '\u7a96\u63ed\u63a5\u7686\u79f8\u8857\u9636\u622a\u52ab\u8282\u6854\u6770\u6377\u776b\u7aed\u6d01\u7ed3\u89e3\u59d0\u6212\u85c9\u82a5\u754c\u501f\u4ecb\u75a5\u8beb\u5c4a\u5048\u8ba6\u8bd8\u5588\u55df\u736c\u5a55\u5b51\u6840\u7352\u78a3\u9534\u7596\u88b7\u9889\u86a7\u7faf\u9c92\u9ab1\u9aeb', 'jin': '\u5dfe\u7b4b\u65a4\u91d1\u4eca\u6d25\u895f\u7d27\u9526\u4ec5\u8c28\u8fdb\u9773\u664b\u7981\u8fd1\u70ec\u6d78\u5c3d\u537a\u8369\u5807\u5664\u9991\u5ed1\u5997\u7f19\u747e\u69ff\u8d46\u89d0\u9485\u9513\u887f\u77dc', 'jing': '\u52b2\u8346\u5162\u830e\u775b\u6676\u9cb8\u4eac\u60ca\u7cbe\u7cb3\u7ecf\u4e95\u8b66\u666f\u9888\u9759\u5883\u656c\u955c\u5f84\u75c9\u9756\u7adf\u7ade\u51c0\u522d\u5106\u9631\u83c1\u734d\u61ac\u6cfe\u8ff3\u5f2a\u5a67\u80bc\u80eb\u8148\u65cc', 'jiong': '\u70af\u7a98\u5182\u8fe5\u6243', 'jiu': '\u63ea\u7a76\u7ea0\u7396\u97ed\u4e45\u7078\u4e5d\u9152\u53a9\u6551\u65e7\u81fc\u8205\u548e\u5c31\u759a\u50e6\u557e\u9604\u67e9\u6855\u9e6b\u8d73\u9b0f', 'ju': '\u97a0\u62d8\u72d9\u75bd\u9a79\u83ca\u5c40\u5480\u77e9\u4e3e\u6cae\u805a\u62d2\u636e\u5de8\u5177\u8ddd\u8e1e\u952f\u4ff1\u53e5\u60e7\u70ac\u5267\u5028\u8bb5\u82e3\u82f4\u8392\u63ac\u907d\u5c66\u741a\u67b8\u6910\u6998\u6989\u6a58\u728b\u98d3\u949c\u9514\u7aad\u88fe\u8d84\u91b5\u8e3d\u9f83\u96ce\u97ab', 'juan': '\u6350\u9e43\u5a1f\u5026\u7737\u5377\u7ee2\u9104\u72f7\u6d93\u684a\u8832\u9529\u954c\u96bd', 'jue': '\u6485\u652b\u6289\u6398\u5014\u7235\u89c9\u51b3\u8bc0\u7edd\u53a5\u5282\u8c32\u77cd\u8568\u5658\u5d1b\u7357\u5b53\u73cf\u6877\u6a5b\u721d\u9562\u8e76\u89d6', 'jun': '\u5747\u83cc\u94a7\u519b\u541b\u5cfb\u4fca\u7ae3\u6d5a\u90e1\u9a8f\u6343\u72fb\u76b2\u7b60\u9e87', 'ka': '\u5580\u5496\u5361\u4f67\u5494\u80e9', 'ke': '\u54af\u5777\u82db\u67ef\u68f5\u78d5\u9897\u79d1\u58f3\u54b3\u53ef\u6e34\u514b\u523b\u5ba2\u8bfe\u5ca2\u606a\u6e98\u9a92\u7f02\u73c2\u8f72\u6c2a\u778c\u94b6\u75b4\u7aa0\u874c\u9ac1', 'kai': '\u5f00\u63e9\u6977\u51ef\u6168\u5240\u57b2\u8488\u5ffe\u607a\u94e0\u950e', 'kan': '\u520a\u582a\u52d8\u574e\u780d\u770b\u4f83\u51f5\u83b0\u83b6\u6221\u9f9b\u77b0', 'kang': '\u5eb7\u6177\u7ce0\u625b\u6297\u4ea2\u7095\u5751\u4f09\u95f6\u94aa', 'kao': '\u8003\u62f7\u70e4\u9760\u5c3b\u6832\u7292\u94d0', 'ken': '\u80af\u5543\u57a6\u6073\u57a0\u88c9\u9880', 'keng': '\u542d\u5fd0\u94ff', 'kong': '\u7a7a\u6050\u5b54\u63a7\u5025\u5d06\u7b9c', 'kou': '\u62a0\u53e3\u6263\u5bc7\u82a4\u853b\u53e9\u770d\u7b58', 'ku': '\u67af\u54ed\u7a9f\u82e6\u9177\u5e93\u88e4\u5233\u5800\u55be\u7ed4\u9ab7', 'kua': '\u5938\u57ae\u630e\u8de8\u80ef\u4f89', 'kuai': '\u5757\u7b77\u4fa9\u5feb\u84af\u90d0\u8489\u72ef\u810d', 'kuan': '\u5bbd\u6b3e\u9acb', 'kuang': '\u5321\u7b50\u72c2\u6846\u77ff\u7736\u65f7\u51b5\u8bd3\u8bf3\u909d\u5739\u593c\u54d0\u7ea9\u8d36', 'kui': '\u4e8f\u76d4\u5cbf\u7aa5\u8475\u594e\u9b41\u5080\u9988\u6127\u6e83\u9997\u532e\u5914\u9697\u63c6\u55b9\u559f\u609d\u6126\u9615\u9035\u668c\u777d\u8069\u8770\u7bd1\u81fe\u8dec', 'kun': '\u5764\u6606\u6346\u56f0\u6083\u9603\u7428\u951f\u918c\u9cb2\u9ae1', 'kuo': '\u62ec\u6269\u5ed3\u9614\u86de', 'la': '\u5783\u62c9\u5587\u8721\u814a\u8fa3\u5566\u524c\u647a\u908b\u65ef\u782c\u760c', 'lai': '\u83b1\u6765\u8d56\u5d03\u5f95\u6d9e\u6fd1\u8d49\u7750\u94fc\u765e\u7c41', 'lan': '\u84dd\u5a6a\u680f\u62e6\u7bee\u9611\u5170\u6f9c\u8c30\u63fd\u89c8\u61d2\u7f06\u70c2\u6ee5\u5549\u5c9a\u61d4\u6f24\u6984\u6593\u7f71\u9567\u8934', 'lang': '\u7405\u6994\u72fc\u5eca\u90ce\u6717\u6d6a\u83a8\u8497\u5577\u9606\u9512\u7a02\u8782', 'lao': '\u635e\u52b3\u7262\u8001\u4f6c\u59e5\u916a\u70d9\u6d9d\u5520\u5d02\u6833\u94d1\u94f9\u75e8\u91aa', 'le': '\u52d2\u4e50\u808b\u4ec2\u53fb\u561e\u6cd0\u9cd3', 'lei': '\u96f7\u956d\u857e\u78ca\u7d2f\u5121\u5792\u64c2\u7c7b\u6cea\u7fb8\u8bd4\u837d\u54a7\u6f2f\u5ad8\u7f27\u6a91\u8012\u9179', 'ling': '\u68f1\u51b7\u62ce\u73b2\u83f1\u96f6\u9f84\u94c3\u4f36\u7f9a\u51cc\u7075\u9675\u5cad\u9886\u53e6\u4ee4\u9143\u5844\u82d3\u5464\u56f9\u6ce0\u7eeb\u67c3\u68c2\u74f4\u8046\u86c9\u7fce\u9cae', 'leng': '\u695e\u6123', 'li': '\u5398\u68a8\u7281\u9ece\u7bf1\u72f8\u79bb\u6f13\u7406\u674e\u91cc\u9ca4\u793c\u8389\u8354\u540f\u6817\u4e3d\u5389\u52b1\u783e\u5386\u5229\u5088\u4f8b\u4fd0\u75e2\u7acb\u7c92\u6ca5\u96b6\u529b\u7483\u54e9\u4fea\u4fda\u90e6\u575c\u82c8\u8385\u84e0\u85dc\u6369\u5456\u5533\u55b1\u7301\u6ea7\u6fa7\u9026\u5a0c\u5ae0\u9a8a\u7f21\u73de\u67a5\u680e\u8f79\u623e\u783a\u8a48\u7f79\u9502\u9e42\u75a0\u75ac\u86ce\u870a\u8821\u7b20\u7be5\u7c9d\u91b4\u8dde\u96f3\u9ca1\u9ce2\u9ee7', 'lian': '\u4fe9\u8054\u83b2\u8fde\u9570\u5ec9\u601c\u6d9f\u5e18\u655b\u8138\u94fe\u604b\u70bc\u7ec3\u631b\u8539\u5941\u6f4b\u6fc2\u5a08\u740f\u695d\u6b93\u81c1\u81a6\u88e2\u880a\u9ca2', 'liang': '\u7cae\u51c9\u6881\u7cb1\u826f\u4e24\u8f86\u91cf\u667e\u4eae\u8c05\u589a\u690b\u8e09\u9753\u9b49', 'liao': '\u64a9\u804a\u50da\u7597\u71ce\u5be5\u8fbd\u6f66\u4e86\u6482\u9563\u5ed6\u6599\u84fc\u5c25\u5639\u7360\u5bee\u7f2d\u948c\u9e69\u8022', 'lie': '\u5217\u88c2\u70c8\u52a3\u730e\u51bd\u57d2\u6d0c\u8d94\u8e90\u9b23', 'lin': '\u7433\u6797\u78f7\u9716\u4e34\u90bb\u9cde\u6dcb\u51db\u8d41\u541d\u853a\u5d99\u5eea\u9074\u6aa9\u8f9a\u77b5\u7cbc\u8e8f\u9e9f', 'liu': '\u6e9c\u7409\u69b4\u786b\u998f\u7559\u5218\u7624\u6d41\u67f3\u516d\u62a1\u507b\u848c\u6cd6\u6d4f\u905b\u9a9d\u7efa\u65d2\u7198\u950d\u954f\u9e68\u938f', 'long': '\u9f99\u804b\u5499\u7b3c\u7abf\u9686\u5784\u62e2\u9647\u5f04\u5785\u830f\u6cf7\u73d1\u680a\u80e7\u783b\u7643', 'lou': '\u697c\u5a04\u6402\u7bd3\u6f0f\u964b\u55bd\u5d5d\u9542\u7618\u8027\u877c\u9ac5', 'lu': '\u82a6\u5362\u9885\u5e90\u7089\u63b3\u5364\u864f\u9c81\u9e93\u788c\u9732\u8def\u8d42\u9e7f\u6f5e\u7984\u5f55\u9646\u622e\u5786\u6445\u64b8\u565c\u6cf8\u6e0c\u6f09\u7490\u680c\u6a79\u8f73\u8f82\u8f98\u6c07\u80ea\u9565\u9e2c\u9e6d\u7c0f\u823b\u9c88', 'lv': '\u9a74\u5415\u94dd\u4fa3\u65c5\u5c65\u5c61\u7f15\u8651\u6c2f\u5f8b\u7387\u6ee4\u7eff\u634b\u95fe\u6988\u8182\u7a06\u891b', 'luan': '\u5ce6\u5b6a\u6ee6\u5375\u4e71\u683e\u9e3e\u92ae', 'lue': '\u63a0\u7565\u950a', 'lun': '\u8f6e\u4f26\u4ed1\u6ca6\u7eb6\u8bba\u56f5', 'luo': '\u841d\u87ba\u7f57\u903b\u9523\u7ba9\u9aa1\u88f8\u843d\u6d1b\u9a86\u7edc\u502e\u8366\u645e\u7321\u6cfa\u6924\u8136\u9559\u7630\u96d2', 'ma': '\u5988\u9ebb\u739b\u7801\u8682\u9a6c\u9a82\u561b\u5417\u551b\u72b8\u5b37\u6769\u9ebd', 'mai': '\u57cb\u4e70\u9ea6\u5356\u8fc8\u8109\u52a2\u836c\u54aa\u973e', 'man': '\u7792\u9992\u86ee\u6ee1\u8513\u66fc\u6162\u6f2b\u8c29\u5881\u5e54\u7f26\u71b3\u9558\u989f\u87a8\u9cd7\u9794', 'mang': '\u8292\u832b\u76f2\u5fd9\u83bd\u9099\u6f2d\u6726\u786d\u87d2', 'meng': '\u6c13\u840c\u8499\u6aac\u76df\u9530\u731b\u68a6\u5b5f\u52d0\u750d\u77a2\u61f5\u791e\u867b\u8722\u8813\u824b\u8268\u9efe', 'miao': '\u732b\u82d7\u63cf\u7784\u85d0\u79d2\u6e3a\u5e99\u5999\u55b5\u9088\u7f08\u7f2a\u676a\u6dfc\u7707\u9e4b\u8731', 'mao': '\u8305\u951a\u6bdb\u77db\u94c6\u536f\u8302\u5192\u5e3d\u8c8c\u8d38\u4f94\u88a4\u52d6\u8306\u5cc1\u7441\u6634\u7266\u8004\u65c4\u61cb\u7780\u86d1\u8765\u87ca\u9ae6', 'me': '\u4e48', 'mei': '\u73ab\u679a\u6885\u9176\u9709\u7164\u6ca1\u7709\u5a92\u9541\u6bcf\u7f8e\u6627\u5bd0\u59b9\u5a9a\u5776\u8393\u5d4b\u7338\u6d7c\u6e44\u6963\u9545\u9e5b\u8882\u9b45', 'men': '\u95e8\u95f7\u4eec\u626a\u739f\u7116\u61d1\u9494', 'mi': '\u772f\u919a\u9761\u7cdc\u8ff7\u8c1c\u5f25\u7c73\u79d8\u89c5\u6ccc\u871c\u5bc6\u5e42\u8288\u5196\u8c27\u863c\u5627\u7315\u736f\u6c68\u5b93\u5f2d\u8112\u6549\u7cf8\u7e3b\u9e8b', 'mian': '\u68c9\u7720\u7ef5\u5195\u514d\u52c9\u5a29\u7f05\u9762\u6c94\u6e4e\u817c\u7704', 'mie': '\u8511\u706d\u54a9\u881b\u7bfe', 'min': '\u6c11\u62bf\u76bf\u654f\u60af\u95fd\u82e0\u5cb7\u95f5\u6cef\u73c9', 'ming': '\u660e\u879f\u9e23\u94ed\u540d\u547d\u51a5\u8317\u6e9f\u669d\u7791\u9169', 'miu': '\u8c2c', 'mo': '\u6478\u6479\u8611\u6a21\u819c\u78e8\u6469\u9b54\u62b9\u672b\u83ab\u58a8\u9ed8\u6cab\u6f20\u5bde\u964c\u8c1f\u8309\u84e6\u998d\u5aeb\u9546\u79e3\u763c\u8031\u87c6\u8c8a\u8c98', 'mou': '\u8c0b\u725f\u67d0\u53b6\u54de\u5a7a\u7738\u936a', 'mu': '\u62c7\u7261\u4ea9\u59c6\u6bcd\u5893\u66ae\u5e55\u52df\u6155\u6728\u76ee\u7766\u7267\u7a46\u4eeb\u82dc\u5452\u6c90\u6bea\u94bc', 'na': '\u62ff\u54ea\u5450\u94a0\u90a3\u5a1c\u7eb3\u5185\u637a\u80ad\u954e\u8872\u7bac', 'nai': '\u6c16\u4e43\u5976\u8010\u5948\u9f10\u827f\u8418\u67f0', 'nan': '\u5357\u7537\u96be\u56ca\u5583\u56e1\u6960\u8169\u877b\u8d67', 'nao': '\u6320\u8111\u607c\u95f9\u5b6c\u57b4\u7331\u7459\u7847\u94d9\u86f2', 'ne': '\u6dd6\u5462\u8bb7', 'nei': '\u9981', 'nen': '\u5ae9\u80fd\u6798\u6041', 'ni': '\u59ae\u9713\u502a\u6ce5\u5c3c\u62df\u4f60\u533f\u817b\u9006\u6eba\u4f32\u576d\u730a\u6029\u6ee0\u6635\u65ce\u7962\u615d\u7768\u94cc\u9cb5', 'nian': '\u852b\u62c8\u5e74\u78be\u64b5\u637b\u5ff5\u5eff\u8f87\u9ecf\u9c87\u9cb6', 'niang': '\u5a18\u917f', 'niao': '\u9e1f\u5c3f\u8311\u5b32\u8132\u8885', 'nie': '\u634f\u8042\u5b7d\u556e\u954a\u954d\u6d85\u4e5c\u9667\u8616\u55eb\u8080\u989e\u81ec\u8e51', 'nin': '\u60a8\u67e0', 'ning': '\u72de\u51dd\u5b81\u62e7\u6cde\u4f5e\u84e5\u549b\u752f\u804d', 'niu': '\u725b\u626d\u94ae\u7ebd\u72c3\u5ff8\u599e\u86b4', 'nong': '\u8113\u6d53\u519c\u4fac', 'nu': '\u5974\u52aa\u6012\u5476\u5e11\u5f29\u80ec\u5b65\u9a7d', 'nv': '\u5973\u6067\u9495\u8844', 'nuan': '\u6696', 'nuenue': '\u8650', 'nue': '\u759f\u8c11', 'nuo': '\u632a\u61e6\u7cef\u8bfa\u50a9\u6426\u558f\u9518', 'ou': '\u54e6\u6b27\u9e25\u6bb4\u85d5\u5455\u5076\u6ca4\u6004\u74ef\u8026', 'pa': '\u556a\u8db4\u722c\u5e15\u6015\u7436\u8469\u7b62', 'pai': '\u62cd\u6392\u724c\u5f98\u6e43\u6d3e\u4ff3\u848e', 'pan': '\u6500\u6f58\u76d8\u78d0\u76fc\u7554\u5224\u53db\u723f\u6cee\u88a2\u897b\u87e0\u8e52', 'pang': '\u4e53\u5e9e\u65c1\u802a\u80d6\u6ec2\u9004', 'pao': '\u629b\u5486\u5228\u70ae\u888d\u8dd1\u6ce1\u530f\u72cd\u5e96\u812c\u75b1', 'pei': '\u5478\u80da\u57f9\u88f4\u8d54\u966a\u914d\u4f69\u6c9b\u638a\u8f94\u5e14\u6de0\u65c6\u952b\u9185\u9708', 'pen': '\u55b7\u76c6\u6e53', 'peng': '\u7830\u62a8\u70f9\u6f8e\u5f6d\u84ec\u68da\u787c\u7bf7\u81a8\u670b\u9e4f\u6367\u78b0\u576f\u580b\u562d\u6026\u87db', 'pi': '\u7812\u9739\u6279\u62ab\u5288\u7435\u6bd7\u5564\u813e\u75b2\u76ae\u5339\u75de\u50fb\u5c41\u8b6c\u4e15\u9674\u90b3\u90eb\u572e\u9f19\u64d7\u567c\u5e80\u5ab2\u7eb0\u6787\u7513\u7765\u7f74\u94cd\u75e6\u7656\u758b\u868d\u8c94', 'pian': '\u7bc7\u504f\u7247\u9a97\u8c1d\u9a88\u728f\u80fc\u890a\u7fe9\u8e41', 'piao': '\u98d8\u6f02\u74e2\u7968\u527d\u560c\u5ad6\u7f25\u6b8d\u779f\u87b5', 'pie': '\u6487\u77a5\u4e3f\u82e4\u6c15', 'pin': '\u62fc\u9891\u8d2b\u54c1\u8058\u62da\u59d8\u5ad4\u6980\u725d\u98a6', 'ping': '\u4e52\u576a\u82f9\u840d\u5e73\u51ed\u74f6\u8bc4\u5c4f\u4fdc\u5a09\u67b0\u9c86', 'po': '\u5761\u6cfc\u9887\u5a46\u7834\u9b44\u8feb\u7c95\u53f5\u9131\u6ea5\u73c0\u948b\u94b7\u76a4\u7b38', 'pou': '\u5256\u88d2\u8e23', 'pu': '\u6251\u94fa\u4ec6\u8386\u8461\u83e9\u84b2\u57d4\u6734\u5703\u666e\u6d66\u8c31\u66dd\u7011\u530d\u5657\u6fee\u749e\u6c06\u9564\u9568\u8e7c', 'qi': '\u671f\u6b3a\u6816\u621a\u59bb\u4e03\u51c4\u6f06\u67d2\u6c8f\u5176\u68cb\u5947\u6b67\u7566\u5d0e\u8110\u9f50\u65d7\u7948\u7941\u9a91\u8d77\u5c82\u4e5e\u4f01\u542f\u5951\u780c\u5668\u6c14\u8fc4\u5f03\u6c7d\u6ce3\u8bab\u4e9f\u4e93\u573b\u8291\u840b\u847a\u5601\u5c7a\u5c90\u6c54\u6dc7\u9a90\u7eee\u742a\u7426\u675e\u6864\u69ed\u6b39\u797a\u61a9\u789b\u86f4\u871e\u7da6\u7dae\u8dbf\u8e4a\u9ccd\u9e92', 'qia': '\u6390\u6070\u6d3d\u845c', 'qian': '\u7275\u6266\u948e\u94c5\u5343\u8fc1\u7b7e\u4edf\u8c26\u4e7e\u9ed4\u94b1\u94b3\u524d\u6f5c\u9063\u6d45\u8c34\u5811\u5d4c\u6b20\u6b49\u4f65\u9621\u828a\u82a1\u8368\u63ae\u5c8d\u60ad\u614a\u9a9e\u6434\u8930\u7f31\u6920\u80b7\u6106\u94a4\u8654\u7b9d', 'qiang': '\u67aa\u545b\u8154\u7f8c\u5899\u8537\u5f3a\u62a2\u5af1\u6a2f\u6217\u709d\u9516\u9535\u956a\u8941\u8723\u7f9f\u8deb\u8dc4', 'qiao': '\u6a47\u9539\u6572\u6084\u6865\u77a7\u4e54\u4fa8\u5de7\u9798\u64ac\u7fd8\u5ced\u4fcf\u7a8d\u5281\u8bee\u8c2f\u835e\u6100\u6194\u7f32\u6a35\u6bf3\u7857\u8df7\u9792', 'qie': '\u5207\u8304\u4e14\u602f\u7a83\u90c4\u553c\u60ec\u59be\u6308\u9532\u7ba7', 'qin': '\u94a6\u4fb5\u4eb2\u79e6\u7434\u52e4\u82b9\u64d2\u79bd\u5bdd\u6c81\u82a9\u84c1\u8572\u63ff\u5423\u55ea\u5659\u6eb1\u6a8e\u8793\u887e', 'qing': '\u9752\u8f7b\u6c22\u503e\u537f\u6e05\u64ce\u6674\u6c30\u60c5\u9877\u8bf7\u5e86\u5029\u82d8\u570a\u6aa0\u78ec\u873b\u7f44\u7b90\u8b26\u9cad\u9ee5', 'qiong': '\u743c\u7a77\u909b\u8315\u7a79\u7b47\u928e', 'qiu': '\u79cb\u4e18\u90b1\u7403\u6c42\u56da\u914b\u6cc5\u4fc5\u6c3d\u5def\u827d\u72b0\u6e6b\u9011\u9052\u6978\u8d47\u9e20\u866c\u86af\u8764\u88d8\u7cd7\u9cc5\u9f3d', 'qu': '\u8d8b\u533a\u86c6\u66f2\u8eaf\u5c48\u9a71\u6e20\u53d6\u5a36\u9f8b\u8da3\u53bb\u8bce\u52ac\u8556\u8627\u5c96\u8862\u9612\u74a9\u89d1\u6c0d\u795b\u78f2\u766f\u86d0\u883c\u9eb4\u77bf\u9ee2', 'quan': '\u5708\u98a7\u6743\u919b\u6cc9\u5168\u75ca\u62f3\u72ac\u5238\u529d\u8be0\u8343\u737e\u609b\u7efb\u8f81\u754e\u94e8\u8737\u7b4c\u9b08', 'que': '\u7f3a\u7094\u7638\u5374\u9e4a\u69b7\u786e\u96c0\u9619\u60ab', 'qun': '\u88d9\u7fa4\u9021', 'ran': '\u7136\u71c3\u5189\u67d3\u82d2\u9aef', 'rang': '\u74e4\u58e4\u6518\u56b7\u8ba9\u79b3\u7a70', 'rao': '\u9976\u6270\u7ed5\u835b\u5a06\u6861', 'ruo': '\u60f9\u82e5\u5f31', 're': '\u70ed\u504c', 'ren': '\u58ec\u4ec1\u4eba\u5fcd\u97e7\u4efb\u8ba4\u5203\u598a\u7eab\u4ede\u834f\u845a\u996a\u8f6b\u7a14\u887d', 'reng': '\u6254\u4ecd', 'ri': '\u65e5', 'rong': '\u620e\u8338\u84c9\u8363\u878d\u7194\u6eb6\u5bb9\u7ed2\u5197\u5d58\u72e8\u7f1b\u6995\u877e', 'rou': '\u63c9\u67d4\u8089\u7cc5\u8e42\u97a3', 'ru': '\u8339\u8815\u5112\u5b7a\u5982\u8fb1\u4e73\u6c5d\u5165\u8925\u84d0\u85b7\u5685\u6d33\u6ebd\u6fe1\u94f7\u8966\u98a5', 'ruan': '\u8f6f\u962e\u670a', 'rui': '\u854a\u745e\u9510\u82ae\u8564\u777f\u868b', 'run': '\u95f0\u6da6', 'sa': '\u6492\u6d12\u8428\u5345\u4ee8\u6332\u98d2', 'sai': '\u816e\u9cc3\u585e\u8d5b\u567b', 'san': '\u4e09\u53c1\u4f1e\u6563\u5f61\u9993\u6c35\u6bf5\u7cc1\u9730', 'sang': '\u6851\u55d3\u4e27\u6421\u78c9\u98a1', 'sao': '\u6414\u9a9a\u626b\u5ac2\u57fd\u81ca\u7619\u9ccb', 'se': '\u745f\u8272\u6da9\u556c\u94e9\u94ef\u7a51', 'sen': '\u68ee', 'seng': '\u50e7', 'sha': '\u838e\u7802\u6740\u5239\u6c99\u7eb1\u50bb\u5565\u715e\u810e\u6b43\u75e7\u88df\u970e\u9ca8', 'shai': '\u7b5b\u6652\u917e', 'shan': '\u73ca\u82eb\u6749\u5c71\u5220\u717d\u886b\u95ea\u9655\u64c5\u8d61\u81b3\u5584\u6c55\u6247\u7f2e\u5261\u8baa\u912f\u57cf\u829f\u6f78\u59d7\u9a9f\u81bb\u9490\u759d\u87ee\u8222\u8dda\u9cdd', 'shang': '\u5892\u4f24\u5546\u8d4f\u664c\u4e0a\u5c1a\u88f3\u57a7\u7ef1\u6b87\u71b5\u89de', 'shao': '\u68a2\u634e\u7a0d\u70e7\u828d\u52fa\u97f6\u5c11\u54e8\u90b5\u7ecd\u52ad\u82d5\u6f72\u86f8\u7b24\u7b72\u8244', 'she': '\u5962\u8d4a\u86c7\u820c\u820d\u8d66\u6444\u5c04\u6151\u6d89\u793e\u8bbe\u538d\u4f58\u731e\u7572\u9e9d', 'shen': '\u7837\u7533\u547b\u4f38\u8eab\u6df1\u5a20\u7ec5\u795e\u6c88\u5ba1\u5a76\u751a\u80be\u614e\u6e17\u8bdc\u8c02\u5432\u54c2\u6e16\u6939\u77e7\u8703', 'sheng': '\u58f0\u751f\u7525\u7272\u5347\u7ef3\u7701\u76db\u5269\u80dc\u5723\u4e1e\u6e11\u5ab5\u771a\u7b19', 'shi': '\u5e08\u5931\u72ee\u65bd\u6e7f\u8bd7\u5c38\u8671\u5341\u77f3\u62fe\u65f6\u4ec0\u98df\u8680\u5b9e\u8bc6\u53f2\u77e2\u4f7f\u5c4e\u9a76\u59cb\u5f0f\u793a\u58eb\u4e16\u67ff\u4e8b\u62ed\u8a93\u901d\u52bf\u662f\u55dc\u566c\u9002\u4ed5\u4f8d\u91ca\u9970\u6c0f\u5e02\u6043\u5ba4\u89c6\u8bd5\u8c25\u57d8\u83b3\u84cd\u5f11\u5511\u9963\u8f7c\u8006\u8d33\u70bb\u793b\u94c8\u94ca\u87ab\u8210\u7b6e\u8c55\u9ca5\u9cba', 'shou': '\u6536\u624b\u9996\u5b88\u5bff\u6388\u552e\u53d7\u7626\u517d\u624c\u72e9\u7ef6\u824f', 'shu': '\u852c\u67a2\u68b3\u6b8a\u6292\u8f93\u53d4\u8212\u6dd1\u758f\u4e66\u8d4e\u5b70\u719f\u85af\u6691\u66d9\u7f72\u8700\u9ecd\u9f20\u5c5e\u672f\u8ff0\u6811\u675f\u620d\u7ad6\u5885\u5eb6\u6570\u6f31\u6055\u500f\u587e\u83fd\u5fc4\u6cad\u6d91\u6f8d\u59dd\u7ebe\u6bf9\u8167\u6bb3\u956f\u79eb\u9e6c', 'shua': '\u5237\u800d\u5530\u6dae', 'shuai': '\u6454\u8870\u7529\u5e05\u87c0', 'shuan': '\u6813\u62f4\u95e9', 'shuang': '\u971c\u53cc\u723d\u5b40', 'shui': '\u8c01\u6c34\u7761\u7a0e', 'shun': '\u542e\u77ac\u987a\u821c\u6042', 'shuo': '\u8bf4\u7855\u6714\u70c1\u84b4\u6420\u55cd\u6fef\u5981\u69ca\u94c4', 'si': '\u65af\u6495\u5636\u601d\u79c1\u53f8\u4e1d\u6b7b\u8086\u5bfa\u55e3\u56db\u4f3a\u4f3c\u9972\u5df3\u53ae\u4fdf\u5155\u83e5\u549d\u6c5c\u6cd7\u6f8c\u59d2\u9a77\u7f0c\u7940\u7960\u9536\u9e36\u801c\u86f3\u7b25', 'song': '\u677e\u8038\u6002\u9882\u9001\u5b8b\u8bbc\u8bf5\u51c7\u83d8\u5d27\u5d69\u5fea\u609a\u6dde\u7ae6', 'sou': '\u641c\u8258\u64de\u55fd\u53df\u55d6\u55fe\u998a\u6eb2\u98d5\u778d\u953c\u878b', 'su': '\u82cf\u9165\u4fd7\u7d20\u901f\u7c9f\u50f3\u5851\u6eaf\u5bbf\u8bc9\u8083\u5919\u8c21\u850c\u55c9\u612b\u7c0c\u89eb\u7a23', 'suan': '\u9178\u849c\u7b97', 'sui': '\u867d\u968b\u968f\u7ee5\u9ad3\u788e\u5c81\u7a57\u9042\u96a7\u795f\u84d1\u51ab\u8c07\u6fc9\u9083\u71e7\u772d\u7762', 'sun': '\u5b59\u635f\u7b0b\u836a\u72f2\u98e7\u69ab\u8de3\u96bc', 'suo': '\u68ad\u5506\u7f29\u7410\u7d22\u9501\u6240\u5522\u55e6\u5a11\u686b\u7743\u7fa7', 'ta': '\u584c\u4ed6\u5b83\u5979\u5854\u736d\u631e\u8e4b\u8e0f\u95fc\u6ebb\u9062\u69bb\u6c93', 'tai': '\u80ce\u82d4\u62ac\u53f0\u6cf0\u915e\u592a\u6001\u6c70\u90b0\u85b9\u80bd\u70b1\u949b\u8dc6\u9c90', 'tan': '\u574d\u644a\u8d2a\u762b\u6ee9\u575b\u6a80\u75f0\u6f6d\u8c2d\u8c08\u5766\u6bef\u8892\u78b3\u63a2\u53f9\u70ad\u90ef\u8548\u6619\u94bd\u952c\u8983', 'tang': '\u6c64\u5858\u642a\u5802\u68e0\u819b\u5510\u7cd6\u50a5\u9967\u6e8f\u746d\u94f4\u9557\u8025\u8797\u87b3\u7fb0\u91a3', 'thang': '\u5018\u8eba\u6dcc', 'theng': '\u8d9f\u70eb', 'tao': '\u638f\u6d9b\u6ed4\u7ee6\u8404\u6843\u9003\u6dd8\u9676\u8ba8\u5957\u6311\u9f17\u5555\u97ec\u9955', 'te': '\u7279', 'teng': '\u85e4\u817e\u75bc\u8a8a\u6ed5', 'ti': '\u68af\u5254\u8e22\u9511\u63d0\u9898\u8e44\u557c\u4f53\u66ff\u568f\u60d5\u6d95\u5243\u5c49\u8351\u608c\u9016\u7ee8\u7f07\u9e48\u88fc\u918d', 'tian': '\u5929\u6dfb\u586b\u7530\u751c\u606c\u8214\u8146\u63ad\u5fdd\u9617\u6b84\u754b\u94bf\u86ba', 'tiao': '\u6761\u8fe2\u773a\u8df3\u4f7b\u7967\u94eb\u7a95\u9f86\u9ca6', 'tie': '\u8d34\u94c1\u5e16\u841c\u992e', 'ting': '\u5385\u542c\u70c3\u6c40\u5ef7\u505c\u4ead\u5ead\u633a\u8247\u839b\u8476\u5a77\u6883\u8713\u9706', 'tong': '\u901a\u6850\u916e\u77b3\u540c\u94dc\u5f64\u7ae5\u6876\u6345\u7b52\u7edf\u75db\u4f5f\u50ee\u4edd\u833c\u55f5\u6078\u6f7c\u783c', 'tou': '\u5077\u6295\u5934\u900f\u4ea0', 'tu': '\u51f8\u79c3\u7a81\u56fe\u5f92\u9014\u6d82\u5c60\u571f\u5410\u5154\u580d\u837c\u83df\u948d\u9174', 'tuan': '\u6e4d\u56e2\u7583', 'tui': '\u63a8\u9893\u817f\u8715\u892a\u9000\u5fd2\u717a', 'tun': '\u541e\u5c6f\u81c0\u9968\u66be\u8c5a\u7a80', 'tuo': '\u62d6\u6258\u8131\u9e35\u9640\u9a6e\u9a7c\u692d\u59a5\u62d3\u553e\u4e47\u4f57\u5768\u5eb9\u6cb1\u67dd\u7823\u7ba8\u8204\u8dce\u9f0d', 'wa': '\u6316\u54c7\u86d9\u6d3c\u5a03\u74e6\u889c\u4f64\u5a32\u817d', 'wai': '\u6b6a\u5916', 'wan': '\u8c4c\u5f2f\u6e7e\u73a9\u987d\u4e38\u70f7\u5b8c\u7897\u633d\u665a\u7696\u60cb\u5b9b\u5a49\u4e07\u8155\u525c\u8284\u82cb\u83c0\u7ea8\u7efe\u742c\u8118\u7579\u873f\u7ba2', 'wang': '\u6c6a\u738b\u4ea1\u6789\u7f51\u5f80\u65fa\u671b\u5fd8\u5984\u7f54\u5c22\u60d8\u8f8b\u9b4d', 'wei': '\u5a01\u5dcd\u5fae\u5371\u97e6\u8fdd\u6845\u56f4\u552f\u60df\u4e3a\u6f4d\u7ef4\u82c7\u840e\u59d4\u4f1f\u4f2a\u5c3e\u7eac\u672a\u851a\u5473\u754f\u80c3\u5582\u9b4f\u4f4d\u6e2d\u8c13\u5c09\u6170\u536b\u502d\u504e\u8bff\u9688\u8473\u8587\u5e0f\u5e37\u5d34\u5d6c\u7325\u732c\u95f1\u6ca9\u6d27\u6da0\u9036\u5a13\u73ae\u97ea\u8ece\u709c\u7168\u71a8\u75ff\u8249\u9c94', 'wen': '\u761f\u6e29\u868a\u6587\u95fb\u7eb9\u543b\u7a33\u7d0a\u95ee\u520e\u6120\u960c\u6c76\u74ba\u97eb\u6b81\u96ef', 'weng': '\u55e1\u7fc1\u74ee\u84ca\u8579', 'wo': '\u631d\u8717\u6da1\u7a9d\u6211\u65a1\u5367\u63e1\u6c83\u83b4\u5e44\u6e25\u674c\u809f\u9f8c', 'wu': '\u5deb\u545c\u94a8\u4e4c\u6c61\u8bec\u5c4b\u65e0\u829c\u68a7\u543e\u5434\u6bcb\u6b66\u4e94\u6342\u5348\u821e\u4f0d\u4fae\u575e\u620a\u96fe\u6664\u7269\u52ff\u52a1\u609f\u8bef\u5140\u4ef5\u9622\u90ac\u572c\u82b4\u5e91\u6003\u5fe4\u6d6f\u5be4\u8fd5\u59a9\u9a9b\u727e\u7110\u9e49\u9e5c\u8708\u92c8\u9f2f', 'xi': '\u6614\u7199\u6790\u897f\u7852\u77fd\u6670\u563b\u5438\u9521\u727a\u7a00\u606f\u5e0c\u6089\u819d\u5915\u60dc\u7184\u70ef\u6eaa\u6c50\u7280\u6a84\u88ad\u5e2d\u4e60\u5ab3\u559c\u94e3\u6d17\u7cfb\u9699\u620f\u7ec6\u50d6\u516e\u96b0\u90d7\u831c\u8478\u84f0\u595a\u550f\u5f99\u9969\u960b\u6d60\u6dc5\u5c63\u5b09\u73ba\u6a28\u66e6\u89cb\u6b37\u71b9\u798a\u79a7\u94b8\u7699\u7a78\u8725\u87cb\u823e\u7fb2\u7c9e\u7fd5\u91af\u9f37', 'xia': '\u778e\u867e\u5323\u971e\u8f96\u6687\u5ce1\u4fa0\u72ed\u4e0b\u53a6\u590f\u5413\u6380\u846d\u55c4\u72ce\u9050\u7455\u7856\u7615\u7f45\u9ee0', 'xian': '\u9528\u5148\u4ed9\u9c9c\u7ea4\u54b8\u8d24\u8854\u8237\u95f2\u6d8e\u5f26\u5acc\u663e\u9669\u73b0\u732e\u53bf\u817a\u9985\u7fa1\u5baa\u9677\u9650\u7ebf\u51bc\u85d3\u5c98\u7303\u66b9\u5a34\u6c19\u7946\u9e47\u75eb\u86ac\u7b45\u7c7c\u9170\u8df9', 'xiang': '\u76f8\u53a2\u9576\u9999\u7bb1\u8944\u6e58\u4e61\u7fd4\u7965\u8be6\u60f3\u54cd\u4eab\u9879\u5df7\u6a61\u50cf\u5411\u8c61\u8297\u8459\u9977\u5ea0\u9aa7\u7f03\u87d3\u9c9e\u98e8', 'xiao': '\u8427\u785d\u9704\u524a\u54ee\u56a3\u9500\u6d88\u5bb5\u6dc6\u6653\u5c0f\u5b5d\u6821\u8096\u5578\u7b11\u6548\u54d3\u54bb\u5d24\u6f47\u900d\u9a81\u7ee1\u67ad\u67b5\u7b71\u7bab\u9b48', 'xie': '\u6954\u4e9b\u6b47\u874e\u978b\u534f\u631f\u643a\u90aa\u659c\u80c1\u8c10\u5199\u68b0\u5378\u87f9\u61c8\u6cc4\u6cfb\u8c22\u5c51\u5055\u4eb5\u52f0\u71ee\u85a4\u64b7\u5ee8\u7023\u9082\u7ec1\u7f2c\u69ad\u698d\u6b59\u8e9e', 'xin': '\u85aa\u82af\u950c\u6b23\u8f9b\u65b0\u5ffb\u5fc3\u4fe1\u8845\u56df\u99a8\u8398\u6b46\u94fd\u946b', 'xing': '\u661f\u8165\u7329\u60fa\u5174\u5211\u578b\u5f62\u90a2\u884c\u9192\u5e78\u674f\u6027\u59d3\u9649\u8347\u8365\u64e4\u60bb\u784e', 'xiong': '\u5144\u51f6\u80f8\u5308\u6c79\u96c4\u718a\u828e', 'xiu': '\u4f11\u4fee\u7f9e\u673d\u55c5\u9508\u79c0\u8896\u7ee3\u83a0\u5cab\u9990\u5ea5\u9e3a\u8c85\u9af9', 'xu': '\u589f\u620c\u9700\u865a\u5618\u987b\u5f90\u8bb8\u84c4\u9157\u53d9\u65ed\u5e8f\u755c\u6064\u7d6e\u5a7f\u7eea\u7eed\u8bb4\u8be9\u5729\u84ff\u6035\u6d2b\u6e86\u987c\u6829\u7166\u7809\u76f1\u80e5\u7cc8\u9191', 'xuan': '\u8f69\u55a7\u5ba3\u60ac\u65cb\u7384\u9009\u7663\u7729\u7eda\u5107\u8c16\u8431\u63ce\u9994\u6ceb\u6d35\u6e32\u6f29\u7487\u6966\u6684\u70ab\u714a\u78b9\u94c9\u955f\u75c3', 'xue': '\u9774\u859b\u5b66\u7a74\u96ea\u8840\u5671\u6cf6\u9cd5', 'xun': '\u52cb\u718f\u5faa\u65ec\u8be2\u5bfb\u9a6f\u5de1\u6b89\u6c5b\u8bad\u8baf\u900a\u8fc5\u5dfd\u57d9\u8340\u85b0\u5ccb\u5f87\u6d54\u66db\u7aa8\u91ba\u9c9f', 'ya': '\u538b\u62bc\u9e26\u9e2d\u5440\u4e2b\u82bd\u7259\u869c\u5d16\u8859\u6daf\u96c5\u54d1\u4e9a\u8bb6\u4f22\u63e0\u5416\u5c88\u8fd3\u5a05\u740a\u6860\u6c29\u7811\u775a\u75d6', 'yan': '\u7109\u54bd\u9609\u70df\u6df9\u76d0\u4e25\u7814\u8712\u5ca9\u5ef6\u8a00\u989c\u960e\u708e\u6cbf\u5944\u63a9\u773c\u884d\u6f14\u8273\u5830\u71d5\u538c\u781a\u96c1\u5501\u5f66\u7130\u5bb4\u8c1a\u9a8c\u53a3\u9765\u8d5d\u4fe8\u5043\u5156\u8ba0\u8c33\u90fe\u9122\u82ab\u83f8\u5d26\u6079\u95eb\u960f\u6d07\u6e6e\u6edf\u598d\u5ae3\u7430\u664f\u80ed\u814c\u7131\u7f68\u7b75\u917d\u9b47\u990d\u9f39', 'yang': '\u6b83\u592e\u9e2f\u79e7\u6768\u626c\u4f6f\u75a1\u7f8a\u6d0b\u9633\u6c27\u4ef0\u75d2\u517b\u6837\u6f3e\u5f89\u600f\u6cf1\u7080\u70ca\u6059\u86d8\u9785', 'yao': '\u9080\u8170\u5996\u7476\u6447\u5c27\u9065\u7a91\u8c23\u59da\u54ac\u8200\u836f\u8981\u8000\u592d\u723b\u5406\u5d3e\u5fad\u7039\u5e7a\u73e7\u6773\u66dc\u80b4\u9e5e\u7a88\u7e47\u9cd0', 'ye': '\u6930\u564e\u8036\u7237\u91ce\u51b6\u4e5f\u9875\u6396\u4e1a\u53f6\u66f3\u814b\u591c\u6db2\u8c12\u90ba\u63f6\u9980\u6654\u70e8\u94d8', 'yi': '\u4e00\u58f9\u533b\u63d6\u94f1\u4f9d\u4f0a\u8863\u9890\u5937\u9057\u79fb\u4eea\u80f0\u7591\u6c82\u5b9c\u59e8\u5f5d\u6905\u8681\u501a\u5df2\u4e59\u77e3\u4ee5\u827a\u6291\u6613\u9091\u5c79\u4ebf\u5f79\u81c6\u9038\u8084\u75ab\u4ea6\u88d4\u610f\u6bc5\u5fc6\u4e49\u76ca\u6ea2\u8be3\u8bae\u8c0a\u8bd1\u5f02\u7ffc\u7fcc\u7ece\u5208\u5293\u4f7e\u8bd2\u572a\u572f\u57f8\u61ff\u82e1\u858f\u5f08\u5955\u6339\u5f0b\u5453\u54a6\u54bf\u566b\u5cc4\u5db7\u7317\u9974\u603f\u6021\u6092\u6f2a\u8fe4\u9a7f\u7f22\u6baa\u8d3b\u65d6\u71a0\u9487\u9552\u9571\u75cd\u7617\u7654\u7fca\u8864\u8734\u8223\u7fbf\u7ff3\u914f\u9edf', 'yin': '\u8335\u836b\u56e0\u6bb7\u97f3\u9634\u59fb\u541f\u94f6\u6deb\u5bc5\u996e\u5c39\u5f15\u9690\u5370\u80e4\u911e\u5819\u831a\u5591\u72fa\u5924\u6c24\u94df\u763e\u8693\u972a\u9f88', 'ying': '\u82f1\u6a31\u5a74\u9e70\u5e94\u7f28\u83b9\u8424\u8425\u8367\u8747\u8fce\u8d62\u76c8\u5f71\u9896\u786c\u6620\u5b34\u90e2\u8314\u83ba\u8426\u6484\u5624\u81ba\u6ee2\u6f46\u701b\u745b\u748e\u6979\u9e66\u763f\u988d\u7f42', 'yo': '\u54df\u5537', 'yong': '\u62e5\u4f63\u81c3\u75c8\u5eb8\u96cd\u8e0a\u86f9\u548f\u6cf3\u6d8c\u6c38\u607f\u52c7\u7528\u4fd1\u58c5\u5889\u6175\u9095\u955b\u752c\u9cd9\u9954', 'you': '\u5e7d\u4f18\u60a0\u5fe7\u5c24\u7531\u90ae\u94c0\u72b9\u6cb9\u6e38\u9149\u6709\u53cb\u53f3\u4f51\u91c9\u8bf1\u53c8\u5e7c\u5363\u6538\u4f91\u83b8\u5466\u56ff\u5ba5\u67da\u7337\u7256\u94d5\u75a3\u8763\u9c7f\u9edd\u9f2c', 'yu': '\u8fc2\u6de4\u4e8e\u76c2\u6986\u865e\u611a\u8206\u4f59\u4fde\u903e\u9c7c\u6109\u6e1d\u6e14\u9685\u4e88\u5a31\u96e8\u4e0e\u5c7f\u79b9\u5b87\u8bed\u7fbd\u7389\u57df\u828b\u90c1\u5401\u9047\u55bb\u5cea\u5fa1\u6108\u6b32\u72f1\u80b2\u8a89\u6d74\u5bd3\u88d5\u9884\u8c6b\u9a6d\u79ba\u6bd3\u4f1b\u4fe3\u8c00\u8c15\u8438\u84e3\u63c4\u5581\u5704\u5709\u5d5b\u72f3\u996b\u5ebe\u9608\u59aa\u59a4\u7ea1\u745c\u6631\u89ce\u8174\u6b24\u65bc\u715c\u71e0\u807f\u94b0\u9e46\u7610\u7600\u7ab3\u8753\u7afd\u8201\u96e9\u9f89', 'yuan': '\u9e33\u6e0a\u51a4\u5143\u57a3\u8881\u539f\u63f4\u8f95\u56ed\u5458\u5706\u733f\u6e90\u7f18\u8fdc\u82d1\u613f\u6028\u9662\u586c\u6c85\u5a9b\u7457\u6a7c\u7230\u7722\u9e22\u8788\u9f0b', 'yue': '\u66f0\u7ea6\u8d8a\u8dc3\u94a5\u5cb3\u7ca4\u6708\u60a6\u9605\u9fa0\u6a3e\u5216\u94ba', 'yun': '\u8018\u4e91\u90e7\u5300\u9668\u5141\u8fd0\u8574\u915d\u6655\u97f5\u5b55\u90d3\u82b8\u72c1\u607d\u7ead\u6b92\u6600\u6c32', 'za': '\u531d\u7838\u6742\u62f6\u5482', 'zai': '\u683d\u54c9\u707e\u5bb0\u8f7d\u518d\u5728\u54b1\u5d3d\u753e', 'zan': '\u6512\u6682\u8d5e\u74d2\u661d\u7c2a\u7ccc\u8db1\u933e', 'zang': '\u8d43\u810f\u846c\u5958\u6215\u81e7', 'zao': '\u906d\u7cdf\u51ff\u85fb\u67a3\u65e9\u6fa1\u86a4\u8e81\u566a\u9020\u7682\u7076\u71e5\u5523\u7f2b', 'ze': '\u8d23\u62e9\u5219\u6cfd\u4ec4\u8d5c\u5567\u8fee\u6603\u7b2e\u7ba6\u8234', 'zei': '\u8d3c', 'zen': '\u600e\u8c2e', 'zeng': '\u589e\u618e\u66fe\u8d60\u7f2f\u7511\u7f7e\u9503', 'zha': '\u624e\u55b3\u6e23\u672d\u8f67\u94e1\u95f8\u7728\u6805\u69a8\u548b\u4e4d\u70b8\u8bc8\u63f8\u5412\u54a4\u54f3\u600d\u781f\u75c4\u86b1\u9f44', 'zhai': '\u6458\u658b\u5b85\u7a84\u503a\u5be8\u7826', 'zhan': '\u77bb\u6be1\u8a79\u7c98\u6cbe\u76cf\u65a9\u8f97\u5d2d\u5c55\u8638\u6808\u5360\u6218\u7ad9\u6e5b\u7efd\u8c35\u640c\u65c3', 'zhang': '\u6a1f\u7ae0\u5f70\u6f33\u5f20\u638c\u6da8\u6756\u4e08\u5e10\u8d26\u4ed7\u80c0\u7634\u969c\u4ec9\u9123\u5e5b\u5d82\u7350\u5adc\u748b\u87d1', 'zhao': '\u62db\u662d\u627e\u6cbc\u8d75\u7167\u7f69\u5146\u8087\u53ec\u722a\u8bcf\u68f9\u948a\u7b0a', 'zhe': '\u906e\u6298\u54f2\u86f0\u8f99\u8005\u9517\u8517\u8fd9\u6d59\u8c2a\u966c\u67d8\u8f84\u78d4\u9e67\u891a\u8707\u8d6d', 'zhen': '\u73cd\u659f\u771f\u7504\u7827\u81fb\u8d1e\u9488\u4fa6\u6795\u75b9\u8bca\u9707\u632f\u9547\u9635\u7f1c\u6862\u699b\u8f78\u8d48\u80d7\u6715\u796f\u755b\u9e29', 'zheng': '\u84b8\u6323\u7741\u5f81\u72f0\u4e89\u6014\u6574\u62ef\u6b63\u653f\u5e27\u75c7\u90d1\u8bc1\u8be4\u5ce5\u94b2\u94ee\u7b5d', 'zhi': '\u829d\u679d\u652f\u5431\u8718\u77e5\u80a2\u8102\u6c41\u4e4b\u7ec7\u804c\u76f4\u690d\u6b96\u6267\u503c\u4f84\u5740\u6307\u6b62\u8dbe\u53ea\u65e8\u7eb8\u5fd7\u631a\u63b7\u81f3\u81f4\u7f6e\u5e1c\u5cd9\u5236\u667a\u79e9\u7a1a\u8d28\u7099\u75d4\u6ede\u6cbb\u7a92\u536e\u965f\u90c5\u57f4\u82b7\u646d\u5e19\u5fee\u5f58\u54ab\u9a98\u6809\u67b3\u6800\u684e\u8f75\u8f7e\u6534\u8d3d\u81a3\u7949\u7957\u9ef9\u96c9\u9e37\u75e3\u86ed\u7d77\u916f\u8dd6\u8e2c\u8e2f\u8c78\u89ef', 'zhong': '\u4e2d\u76c5\u5fe0\u949f\u8877\u7ec8\u79cd\u80bf\u91cd\u4ef2\u4f17\u51a2\u953a\u87bd\u8202\u822f\u8e35', 'zhou': '\u821f\u5468\u5dde\u6d32\u8bcc\u7ca5\u8f74\u8098\u5e1a\u5492\u76b1\u5b99\u663c\u9aa4\u5544\u7740\u501c\u8bf9\u836e\u9b3b\u7ea3\u80c4\u78a1\u7c40\u8233\u914e\u9cb7', 'zhu': '\u73e0\u682a\u86db\u6731\u732a\u8bf8\u8bdb\u9010\u7af9\u70db\u716e\u62c4\u77a9\u5631\u4e3b\u8457\u67f1\u52a9\u86c0\u8d2e\u94f8\u7b51\u4f4f\u6ce8\u795d\u9a7b\u4f2b\u4f8f\u90be\u82ce\u8331\u6d19\u6e1a\u6f74\u9a7a\u677c\u69e0\u6a65\u70b7\u94e2\u75b0\u7603\u86b0\u7afa\u7bb8\u7fe5\u8e85\u9e88', 'zhua': '\u6293', 'zhuai': '\u62fd', 'zhuan': '\u4e13\u7816\u8f6c\u64b0\u8d5a\u7bc6\u629f\u556d\u989b', 'zhuang': '\u6869\u5e84\u88c5\u5986\u649e\u58ee\u72b6\u4e2c', 'zhui': '\u690e\u9525\u8ffd\u8d58\u5760\u7f00\u8411\u9a93\u7f12', 'zhun': '\u8c06\u51c6', 'zhuo': '\u6349\u62d9\u5353\u684c\u7422\u8301\u914c\u707c\u6d4a\u502c\u8bfc\u5ef4\u855e\u64e2\u555c\u6d5e\u6dbf\u6753\u712f\u799a\u65ab', 'zi': '\u5179\u54a8\u8d44\u59ff\u6ecb\u6dc4\u5b5c\u7d2b\u4ed4\u7c7d\u6ed3\u5b50\u81ea\u6e0d\u5b57\u8c18\u5d6b\u59ca\u5b73\u7f01\u6893\u8f8e\u8d40\u6063\u7726\u9531\u79ed\u8014\u7b2b\u7ca2\u89dc\u8a3e\u9cbb\u9aed', 'zong': '\u9b03\u68d5\u8e2a\u5b97\u7efc\u603b\u7eb5\u8159\u7cbd', 'zou': '\u90b9\u8d70\u594f\u63cd\u9139\u9cb0', 'zu': '\u79df\u8db3\u5352\u65cf\u7956\u8bc5\u963b\u7ec4\u4fce\u83f9\u5550\u5f82\u9a75\u8e74', 'zuan': '\u94bb\u7e82\u6525\u7f35', 'zui': '\u5634\u9189\u6700\u7f6a', 'zun': '\u5c0a\u9075\u6499\u6a3d\u9cdf', 'zuo': '\u6628\u5de6\u4f50\u67de\u505a\u4f5c\u5750\u5ea7\u961d\u963c\u80d9\u795a\u9162', 'cou': '\u85ae\u6971\u8f8f\u8160', 'nang': '\u652e\u54dd\u56d4\u9995\u66e9', 'o': '\u5594', 'dia': '\u55f2', 'chuai': '\u562c\u81aa\u8e39', 'cen': '\u5c91\u6d94', 'diu': '\u94e5', 'nou': '\u8028', 'fou': '\u7f36', 'bia': '\u9adf' }; // CONCATENATED MODULE: ./src/base/utils/src/vue-py.js // import { pinyin } from './pyconst.js'; /* harmony default export */ var vue_py = ({ chineseToPinYin: function (l1) { var l2 = l1.length; var I1 = ''; var reg = new RegExp('[a-zA-Z0-9]'); var zmReg = new RegExp('[a-zA-Z]'); for (var i = 0; i < l2; i++) { var val = l1.substr(i, 1); if(reg.test(val)) { I1 += val; continue; } var name = this.arraySearch(val, pyconst_pinyin); if (reg.test(val)) { I1 += val; } else if (name !== false) { I1 += name; } } I1 = I1.replace(/ /g, '-'); while (I1.indexOf('--') > 0) { I1 = I1.replace('--', '-'); } return I1; }, arraySearch: function (l1, l2) { for (var name in pyconst_pinyin) { if (pyconst_pinyin[name].indexOf(l1) !== -1) { return this.ucfirst(name); } } return false; }, ucfirst: function (l1) { if (l1.length > 0) { var first = l1.substr(0, 1).toUpperCase(); var spare = l1.substr(1, l1.length); return first + spare; } } }); // EXTERNAL MODULE: ./node_modules/jr-qrcode/dist/jr-qrcode.js var jr_qrcode = __webpack_require__("4a37"); var jr_qrcode_default = /*#__PURE__*/__webpack_require__.n(jr_qrcode); // EXTERNAL MODULE: ./node_modules/jsbarcode/bin/JsBarcode.js var JsBarcode = __webpack_require__("62c5"); var JsBarcode_default = /*#__PURE__*/__webpack_require__.n(JsBarcode); // CONCATENATED MODULE: ./src/base/utils/src/string.js /** * showdoc * @catalog API/工具/Date * @title 字符串基础类 * @className ClientString * @modifier static * @method StringFunc * @demo */ const STR = { /** * showdoc * @catalog API/工具/String * @title 生成MD5 * @description 生成MD5 * @method md5 * @param str 必选 String 需生成的字符 * @return String * @number 60 */ md5: function (str) { return md5_default()(str); }, /** * showdoc * @catalog API/工具/String * @title 获取中文首字母拼音 * @description 获取中文首字母拼音 * @method getFirstPY * @param str 必选 String 需生成的字符 * @return String * @number 60 */ getFirstPY: function (str) { if (!str) return ""; let SX = '', pinyin; str = str.toUpperCase(); if (str.constructor == Array) { pinyin = []; for (let i = 0; i < str.length; i++) { pinyin.push(vue_py.chineseToPinYin(str[i])); } } else pinyin = vue_py.chineseToPinYin(str); if (pinyin.constructor == Array) { let result = []; for (let j = 0; j < pinyin.length; j++) { let tempPY = pinyin[j], tempSX = ""; for (let i = 0; i < tempPY.length; i++) { let c = tempPY.charAt(i); if (/^[A-Z0-9]+$/.test(c)) { tempSX += c; } } result.push(tempSX.toLowerCase()); } return result; } else { for (let i = 0; i < pinyin.length; i++) { let c = pinyin.charAt(i); if (/^[A-Z0-9]+$/.test(c)) { SX += c; } } return SX.toLowerCase(); } }, /** * showdoc * @catalog API/工具/String * @title 下载地址 * @description 获取下载地址 * @url getDownloadUrl(url,fileName) * @method getDownloadUrl * @param url 必选 url * @param fileName 必选 文件名 * @return String * @number 60 */ getDownloadUrl(url, fileName) { return window.eap.utils.biz.getDownloadUrl(url, fileName);; }, /** * showdoc * @catalog API/工具/String * @title 获取中文全拼音 * @description 获取中文全拼音 * @url getPinyin(str) * @method getPinyin * @param str 必选 String 需生成的字符 * @return String * @number 60 */ getPinyin: function (str) { let result = []; if (!str) return ""; if (str.constructor == Array) { for (let i = 0; i < str.length; i++) { result.push(vue_py.chineseToPinYin(str[i]).toLowerCase()); } return result; } else return vue_py.chineseToPinYin(str).toLowerCase(); }, /** * showdoc * @catalog API/工具/String * @title 获取指定范围随机数 * @description 获取中文全拼音 * @url randomInt(min, max) * @method randomInt * @param min 必选 Int 起止数字 * @param max 必选 Int 结束数字 * @return String * @number 60 */ randomInt: function (min, max) { var Range = max - min; var Rand = Math.random(); return (min + Math.round(Rand * Range)); }, /** * showdoc * @catalog API/工具/String * @title 获取功能/流程路径 * @description 获取功能/流程路径 * @url getBizUrl(url) * @method getBizUrl * @param url 必选 url * @return String * @number 60 */ getBizUrl(url) { if (window.eap) return window.eap.utils.biz.getUrl(url); return url }, /** * showdoc * @catalog API/工具/String * @title 获取url地址栏参数 * @description 获取功能/流程路径 * @method getUrlValue * @param name 必选 name * @param url 选填 url * @return String * @number 60 */ getUrlValue: function (name, url) { var str = url || window.location.href; if (str.indexOf("&" + name) != -1 || str.indexOf("?" + name) != -1) { var pos_start = "" if (str.indexOf("?" + name) > -1) pos_start = str.indexOf("?" + name) + name.length + 2; else pos_start = str.indexOf("&" + name) + name.length + 2; var pos_end = str.indexOf("&", pos_start); if (pos_end == -1) { return str.substring(pos_start); } else { return str.substring(pos_start, pos_end) } } else { return ""; } }, /** * showdoc * @catalog API/工具/String * @title 设置url地址栏参数 * @description 获取功能/流程路径 * @url getUrlValue(name, url) * @method setUrlValue * @param url 选填 url * @param name 选填 name * @param pValue 选填 pValue * @return String * @number 60 */ setUrlValue: function (url, pName, pValue) { if (url == null || url == '') { return ''; } var arrUrl = url.split('?'); if (arrUrl.length <= 1) { return url + '?' + pName + '=' + pValue; } var paramArr = arrUrl[1].split('&'); var isAdd = true; for (var i = 0; i < paramArr.length; i++) { var valueArr = paramArr[i].split('='); if (valueArr[0] == pName) { paramArr[i] = pName + '=' + pValue; isAdd = false; } } if (isAdd) { paramArr[paramArr.length] = pName + '=' + pValue; } return arrUrl[0] + '?' + paramArr.join('&'); }, /** * showdoc * @catalog API/工具/String * @title 获取指定长度的ID * @description 获取指定长度的ID * @url id(len) * @method id * @param len 必选 Int 长度 * @return String * @number 60 */ id: function (len) { return (function (len, radix) { var chars = '012abcdefghuwxyz34MNOPQRSTUV567ijklmnopqrst89ABCDEFGHIJKLWXYZ' .split(''); // var chars = Scp.String.newGUID().replace(/-/g,"").split(""); var uuid = [], i; radix = radix || chars.length; if (len) { // Compact form for (i = 0; i < len; i++) uuid[i] = chars[0 | Math.random() * radix]; } else { // rfc4122, version 4 form var r; // rfc4122 requires these characters uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-'; uuid[14] = '4'; // Fill in random data. At i==19 set the high bits of clock // sequence as // per rfc4122, sec. 4.1.5 for (i = 0; i < 36; i++) { if (!uuid[i]) { r = 0 | Math.random() * 16; uuid[i] = chars[(i == 19) ? (r & 0x3) | 0x8 : r]; } } } return uuid.join(''); })(len || 6, 61); }, /** * showdoc * @catalog API/工具/String * @title 获取GUID * @description 获取GUID * @url guid() * @method guid * @return String * @number 60 */ guid: function () { var nowDateTime = new Date(); var myRandom1 = this.randomInt(1, 1000); var myRandom2 = this.randomInt(1, 1000); var myRandom3 = this.randomInt(1, 1000); var decodeStr = nowDateTime.valueOf() + "-" + nowDateTime.getMilliseconds() + "-" + myRandom1 + "-" + myRandom2 + "-" + myRandom3; var encodeStr = this.md5(decodeStr); var guid = encodeStr.substring(0, 8) + "-" + encodeStr.substring(8, 12) + "-" + encodeStr.substring(12, 16) + "-" + encodeStr.substring(16, 20) + "-" + encodeStr.substring(20, 32); return guid.toUpperCase(); }, /** * showdoc * @catalog API/工具/String * @title 字符格式化 * @description 字符格式化 * @url format() * @method format(str,$1,$2,$3......) * @param str 必选 String 需格式化的字符 * @param $1 必选 String 需替换的$1 * @param $2 必选 String 需替换的$2 * @param $3 必选 String 需替换的$3 * @return String * @number 60 */ format: function () { if (arguments.length == 0) return ''; var argArray = Array.prototype.slice.call(arguments); var result = argArray.shift(); if (argArray.length == 1 && typeof (argArray[0]) == "object") { var args = argArray[0]; for (var key in args) { if (args[key] != undefined) { let reg = new RegExp("({" + key + "})", "g"); result = result.replace(reg, args[key]); } } } else { for (var i = 0; i < argArray.length; i++) { if (argArray[i] != undefined) { let reg = new RegExp("({)" + i + "(})", "g"); result = result.replace(reg, argArray[i]); } } } return result; }, controlGuid(key) { return (key || '').replace(/[.|#|@|*|\?|\(|\)|<|>|\{|\|\^|\$}]/gi, '_') + '_' + STR.id(8); }, /** * showdoc * @catalog API/工具/String * @title 转换人民币大写 * @description 转换人民币大写 * @method upperMoney * @param numberValue 必选 numberValue * @return String * @number 60 */ upperMoney(numberValue) { var numberValue = new String(Math.round(Math.abs(numberValue) * 100)); // 数字金额 var chineseValue = ""; // 转换后的汉字金额 var String1 = "零壹贰叁肆伍陆柒捌玖"; // 汉字数字 var String2 = "万仟佰拾亿仟佰拾万仟佰拾元角分"; // 对应单位 var len = numberValue.length; // numberValue 的字符串长度 var Ch1; // 数字的汉语读法 var Ch2; // 数字位的汉字读法 var nZero = 0; // 用来计算连续的零值的个数 var String3; // 指定位置的数值 if (len > 15) { alert("超出计算范围"); return ""; } if (numberValue == 0) { chineseValue = "零元整"; return chineseValue; } String2 = String2.substr(String2.length - len, len); // 取出对应位数的STRING2的值 for (var i = 0; i < len; i++) { String3 = parseInt(numberValue.substr(i, 1), 10); // 取出需转换的某一位的值 if (i != (len - 3) && i != (len - 7) && i != (len - 11) && i != (len - 15)) { if (String3 == 0) { Ch1 = ""; Ch2 = ""; nZero = nZero + 1; } else if (String3 != 0 && nZero != 0) { Ch1 = "零" + String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else { Ch1 = String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } } else { // 该位是万亿,亿,万,元位等关键位 if (String3 != 0 && nZero != 0) { Ch1 = "零" + String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else if (String3 != 0 && nZero == 0) { Ch1 = String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else if (String3 == 0 && nZero >= 3) { Ch1 = ""; Ch2 = ""; nZero = nZero + 1; } else { Ch1 = ""; Ch2 = String2.substr(i, 1); nZero = nZero + 1; } if (i == (len - 11) || i == (len - 3)) { // 如果该位是亿位或元位,则必须写上 Ch2 = String2.substr(i, 1); } } chineseValue = chineseValue + Ch1 + Ch2; } if (String3 == 0) { // 最后一位(分)为0时,加上“整” chineseValue = chineseValue + "整"; } return chineseValue; }, /** * showdoc * @catalog API/工具/String * @title 分解附件 * @description 分解附件 * @url format() * @method splitAttach * @param val 必选 附件值 * @return String * @number 60 */ splitAttach(val) { var list = []; var arr = val.split("|"); var path = window.HIVUI_SETTING ? window.HIVUI_SETTING.review : ""; for (var i = 0; i < arr.length; i++) { var item = arr[i]; if (!item) { continue; } list.push({ name: arr[i].split(";")[0], size: arr[i].split(";")[1], path: arr[i].split(";")[2], url: `${path}?relativePath=${arr[i].split(";")[2]}`, iwidth: arr[i].split(";")[5], iheight: arr[i].split(";")[6], }); } return list; }, /** * showdoc * @catalog API/工具/String * @title 附件图片地址 * @description 附件图片地址 * @url format() * @method splitAttachImgUrl * @param val 必选 附件值 * @param ispublic 可选 是否静态 * @return String * @number 60 */ splitAttachImgUrl(val, ispublic) { if (!val) return; var list = []; var arr = val.split("|"); var path = window.HIVUI_SETTING ? window.HIVUI_SETTING.url + window.HIVUI_SETTING.review : ""; if (ispublic) { path = window.HIVUI_SETTING ? window.HIVUI_SETTING.url + window.HIVUI_SETTING.publicreview : ""; } for (var i = 0; i < arr.length; i++) { var item = arr[i]; if (!item) { continue; } if (arr[i].split(";").length > 2) { list.push({ name: arr[i].split(";")[0], size: arr[i].split(";")[1], path: arr[i].split(";")[2], url: `${path}?relativePath=${arr[i].split(";")[2]}`, iwidth: arr[i].split(";")[5], iheight: arr[i].split(";")[6] }); } else { if (arr[0].indexOf("http") != -1) { list.push({ url: arr[0], }); } else { list.push({ url: `${path}?relativePath=${arr[0]}`, }); } } } return list[0].url; }, /** * showdoc * @catalog API/工具/String * @title 获取二维码 * @description 生成二维码Base64 URL * @url getQrcode(text, options) * @method getQrcode * @param text 必选,要生成二维码的字符,支持中文 string * @param options 配置对象 object * @json_param options.format String 条形码的类型,默认“auto” (CODE128) * @json_param options.width Number 每个条条的宽度,注意这里不是指整个条形码的宽度,默认:2 * @json_param options.height Number 整个条形码的宽度 ;默认:100 * @json_param options.displayValue boolean 是否显示条形码下面的文字 * @json_param options.fontOptions String 设置条形码文本的粗体和斜体样式 bold / italic / bold italic * @json_param options.font String 设置条形码显示文本的字体 ; 默认:monospace * @json_param options.textAlign String 条形码文本的水平对齐方式,和css中的类似: left / center / right 默认:center * @json_param options.textPosition String 条形码文本的位置 bottom / top * @json_param options.textMargin Number 条形码文本 和 条形码之间的间隙大小; 默认:2 * @json_param options.fontSize Number 设置条形码文本的字体大小; 默认:20 * @json_param options.background String (CSS color) 整个条形码容器的背景颜色; 默认:#ffffff * @json_param options.lineColor String 条形码和文本的颜色 ; 默认:#000000 * @json_param options.margin Number 整个条形码的外面距; 默认:10 * @json_param options.marginTop Number 整个条形码的上边距 * @json_param options.marginBottom Number 整个条形码的下边距 * @json_param options.marginLeft Number 整个条形码的左边距 * @json_param options.marginRight Number 整个条形码的右边距 * @json_param options.valid Function 执行完条形码的一个回调函数,正确true 错误false * @return String * @number 60 */ getQrcode(text, options = {}) { if (!text) return; let imgBase64 = jr_qrcode_default.a.getQrBase64(text, options); return imgBase64 }, /** * showdoc * @catalog API/工具/String * @title 获取条形码 * @description 生成条形码Base64 URL * @url getBarcode(text, options) * @method getBarcode * @param text 必选,要生成条形码的字符 string * @param options 配置对象 object * @json_param options.format String 条形码的类型,默认“auto” (CODE128) * @json_param options.width Number 每个条条的宽度,注意这里不是指整个条形码的宽度,默认:2 * @json_param options.height Number 整个条形码的宽度 ;默认:100 * @json_param options.displayValue boolean 是否显示条形码下面的文字 * @json_param options.fontOptions String 设置条形码文本的粗体和斜体样式 bold / italic / bold italic * @json_param options.font String 设置条形码显示文本的字体 ; 默认:monospace * @json_param options.textAlign String 条形码文本的水平对齐方式,和css中的类似: left / center / right 默认:center * @json_param options.textPosition String 条形码文本的位置 bottom / top * @json_param options.textMargin Number 条形码文本 和 条形码之间的间隙大小; 默认:2 * @json_param options.fontSize Number 设置条形码文本的字体大小; 默认:20 * @json_param options.background String (CSS color) 整个条形码容器的背景颜色; 默认:#ffffff * @json_param options.lineColor String 条形码和文本的颜色 ; 默认:#000000 * @json_param options.margin Number 整个条形码的外面距; 默认:10 * @json_param options.marginTop Number 整个条形码的上边距 * @json_param options.marginBottom Number 整个条形码的下边距 * @json_param options.marginLeft Number 整个条形码的左边距 * @json_param options.marginRight Number 整个条形码的右边距 * @json_param options.valid Function 执行完条形码的一个回调函数,正确true 错误false * @return String * @number 60 */ getBarcode(text, options = {}) { if (!text) return; var canvas = document.createElement("canvas") JsBarcode_default()(canvas, text, options) return canvas.toDataURL("image/png") } } /* harmony default export */ var string = (STR); // CONCATENATED MODULE: ./src/locale/lang/zh-CN.js const GLOBAL_LANG_HIUI = { "hi_common_cancel": "取消", "hi_common_confirm": "确定", //03472 //03472 "hi_query_all": '全部', "hi_query_noempty": "不能为空!", "hi_query_sysscheme": "系统方案", "hi_query_reset": "重置", "hi_query_btnname": "查询", "hi_query_more": "更多", "hi_order_defaultall": "综合", "hi_timescheme_month": '本月', "hi_timescheme_yeartonow": "今年至今", "hi_timescheme_last6month": "最近六个月", "hi_timescheme_today": "本日", "hi_timescheme_yesterday": "昨日", "hi_timescheme_last7days": "近7天", "hi_timescheme_last28days": "近28天", "hi_timescheme_last84days": "近84天", "hi_timescheme_startdate": "开始日期", "hi_timescheme_enddate": "结束日期", "hi_timescheme_year": "本年度", "hi_timescheme_week": "本周", "hi_timescheme_quarter": "本季度", "hi_timescheme_split": "到", "hi_timescheme_halfyear": "近半年", "hi_timescheme_oneyear": "近一年", "hi_pushdata_linkSelect": "请选择需要打开的链接!", "hi_pushdata_hasAuth": "当前请求功能您没有权限访问!", "hi_pushdata_requestError": "请求异常", "hi_treequery_placeholder": "输入关键字进行过滤", "hi_numberrange_splitstr": "到", "hi_datalist_nodata": "暂无数据!", "hi_importexcel_uploadname": "Excel上传", "hi_importexcel_templatename": "模板下载", "hi_importexcel_noallowfile": "不支持上传{0}格式!", "hi_importexcel_limitfilesize": "限制上传文件大小为{0}M!", "hi_exportexcel_exportname": "Excel导出", "hi_exportexcel_buildfile": "文件生成中", "hi_exportexcel_isdownload": "是否取消文件下载?", "hi_dataRequest_request": "数据请求中", "hi_dataRequest_isCacel": "是否取消请求?", "hi_dataRequest_tip": "提示", "hi_dataRequest_tip": "提示", "hi_dataRequest_confirm": "确定", "hi_exportexcel_cancel": "取消", "hi_exportexcel_confirm": "确定", "hi_exportexcel_cancel": "取消", "hi_exportexcel_builddatacomplate": "数据生成完成!", "hi_expression_close": "关闭", "hi_expression_confirm": "关闭", "hi_expression_dialogname": "表达式", //03472 //01521 begin "hi_page_confirm": "确定", "hi_page_cancel": "取消", "hi_page_prompt": "提示", "hi_page_cannotBeNull": "不能为空", "hi_page_outOfRange": "输入的字符超出", "hi_page_dataPromptNotSubmitted": "检测到有未提交的数据,是否还原", "hi_page_dataNotModified": "数据未修改", "hi_page_initializing": "正在初始化..", //01521 end "hi_table_file": "个文件", "hi_table_index": "序号", "hi_table_operate": "操作", "hi_table_add": "新增", "hi_table_del": "删除", "hi_table_addsub": "新增子节点", "hi_table_emptyText": "暂无数据", "hi_table_confirmFilter": "筛选", "hi_table_resetFilter": "重置", "hi_table_clearFilter": "全部", "hi_table_sumText": "合计", "hi_table_lockCol": "锁定列", "hi_table_unlockCol": "解锁列", "hi_table_fillUp": "向上填充", "hi_table_fillDown": "向下填充", "hi_table_copy": "复制", "hi_table_copyRow": "复制整行", "hi_table_copyCol": "复制整列", "hi_table_copyCell": "复制单元格", "hi_table_download": "下载", "hi_table_downloadAll": "下载所有", "hi_table_downloadSelect": "选中下载", "hi_table_maxAddNode": "最多只能添加{0}级节点", "hi_table_yesterday": "昨天", "hi_table_today": "今天", "hi_table_aweek": "一周", "hi_table_paste": "excel粘贴", "hi_table_pasteRow": "指定位整行粘贴", "hi_table_pasteCol": "指定位整列粘贴", "hi_table_pasteMsg": "navigator.clipboard 仅支持通过 HTTPS 提供的页面", "hi_table_colSetting": "字段配置", "hi_table_colsConfig": "列表字段配置", // 12112 "hi_messagebox_title": "提示", "hi_messagebox_confirm": "确定", "hi_messagebox_cancel": "取消", "hi_toolbar_add": "添加", "hi_toolbar_del": "删除", "hi_toolbar_reset": "取消", "hi_toolbar_save": "保存", "hi_toolbar_submit": "提交", "hi_toolbar_callout": "调单", "hi_toolbar_nexttache": "流转", "hi_toolbar_backtache": "回退", "hi_toolbar_signout": "加签", "hi_toolbar_processSign": "处理加签", "hi_toolbar_turnOut": "转办", "hi_toolbar_terminate": "终止", "hi_toolbar_umpire": "反审", "hi_toolbar_monitor": "流程监控", "hi_toolbar_savesuccess": "数据保存成功", "hi_toolbar_processflowsuccess": "流程处理成功", "hi_toolbar_limitequals": "请选择相同的:", "hi_toolbar_limitnoequals": "请选择不同的:", "hi_toolbar_limitnoequals1": "相同记录已跳过!", "hi_toolbar_finished": "流程结束", "hi_toolbar_actors": "下个执行者", "hi_toolbar_loader": "数据处理中...", "hi_toolbar_agree": "同意", "hi_toolbar_disagree": "不同意", "hi_toolbar_selectOneError": "至少选择一个执行者!", "hi_toolbar_removeallhint": "确定要删除所有记录吗?", "hi_toolbar_cancelhint": "确定要取消吗?", "hi_toolbar_umpirehint": "确定要启用反审吗?", "hi_toolbar_savehint": "数据未保存,是否保存数据?", "hi_toolbar_circulationway": "返回方式", "hi_toolbar_circulationway_default": "重新流转", "hi_toolbar_circulationway_again": "原路返回", "hi_toolbar_performType": "原路返回", "hi_toolbar_performType1": "独占", "hi_toolbar_performType2": "会签", "hi_toolbar_performType3": "顺序", "hi_toolbar_signType_BeforSign": "前加签", "hi_toolbar_signType_AfterSign": "后加签", "hi_toolbar_approvecomments": "审批意见", "hi_toolbar_assigneeLabel": "额外办理人", "hi_toolbar_previousName": "上一节点", "hi_toolbar_processor": "处理人", "hi_toolbar_previousCount": "节点处理人:共", "hi_toolbar_previousCount2": "人审批", "hi_toolbar_processortime": "处理时间", "hi_toolbar_username": "用户名", "hi_toolbar_userid": "用户ID", "hi_toolbar_userorgname": "编制名", "hi_toolbar_bzid": "编制ID", "hi_toolbar_collapse": "收起", "hi_toolbar_expand": "展开", "hi_form_required": " 必填!", "hi_tree_search": "输入关键字进行过滤", "hi_tree_addPeerBtn": "添加同级", "hi_tree_add": "添加", "hi_tree_edit": "编辑", "hi_tree_del": "删除", "hi_tree_noNode": "节点不存在", "hi_tree_removehint": "请先删除子节点!", "hi_calendar_add": "新增日程", "hi_calendar_refresh": "刷新", "hi_calendar_month": "月", "hi_calendar_week": "周", "hi_calendar_day": "日", "hi_calendar_between": "到", "hi_calendar_prevMonth": '上个月', "hi_calendar_nextMonth": '下个月', "hi_calendar_today": '今天', "hi_calendar_time": '时间', "hi_select_placeholder": "请选择", "hi_selectGrid_queryname": "请输入关键词", "hi_dataSelect_hasselect": "当前记录已选!", "hi_dataSelect_selectOneError": "至少选择一条记录!", "hi_dataSelect_Loading": "数据加载中...", "hi_dataSelect_selectall": "全选", "hi_dataSelect_clear": "清空", "hi_dataSelect_selectAdd": "添加选中", "hi_dataSelect_selectclear": "删除选中", "hi_dataSelect_queryCdionsNull": "明细条件未传!", "hi_dataSelect_numberFieldNull": "未配置单号!", "hi_dataSelect_nosoucredataset": "来源数据集不存在", "hi_dataSelect_noin": "数据不在查找范围内!", "hi_upload_deleteTip": '按 delete 键可删除', "hi_upload_uploadName": "点击上传", "hi_upload_delete": '删除', "hi_upload_removeall": '清空', "hi_upload_preview": '查看图片', "hi_upload_continue": '继续上传', "hi_upload_limit": "当前限制选择{0}个文件,本次选择了{1}个文件,共选择了{2}个文件", "hi_upload_fileExtension": "后缀为", "hi_upload_limitcount": "数量不超过{0}个", "hi_upload_fileSize": "大小不超过{0}M", "hi_upload_hint": "只能上传[ {0} ]文件", "hi_upload_fileExtensionLimit": "不支持上传{0}格式!", "hi_upload_files": "个文件", "hi_imagecropper_dialogtitle": "切图", "hi_imagecropper_select": "选择封面", "hi_imagecropper_scalebig": "放大", "hi_imagecropper_scalesmall": "缩小", "hi_imagecropper_rotateLeft": "左旋转", "hi_imagecropper_rotateRight": "右旋转", "hi_imagecropper_upload": "上传封面", "hi_imagecropper_error":"图片类型要求", "hi_mapSelect_translate": "坐标转换失败!", "hi_page_pageInit": "没有找到初始化接口配置,请在环境配置中新增pageInitUrl节点配置", "hi_page_pagecontrolstate": "页面控件状态", "hi_monitor_approvalRecord": "审批记录", "hi_monitor_flow": "流程", "hi_monitor_displayname": "流程名称", "hi_monitor_ordernumber": "流程编号", "hi_monitor_createtime": "创建时间", "hi_monitor_finishtime": "完成时间", "hi_monitor_flowstate": "流程状态", "hi_monitor_finish": "已完成", "hi_monitor_taskname": "任务名称", "hi_monitor_noReceived": "未接收", "hi_monitor_timeConsuming": "耗时", "hi_monitor_approver": "审批人", "hi_monitor_processingStatus": "处理状态", "hi_monitor_processe": "需处理", "hi_monitor_postscript": "附言", "hi_monitor_flowchart": "流程图", "hi_monitor_gantt": "甘特图", "hi_monitor_processed": "已处理", "hi_monitor_back": "回退", "hi_monitor_sysAuto": "系统自动流转", "hi_monitor_terminate": "终止", "hi_monitor_cancel": "取消", "hi_monitor_transfer": "转办", "hi_monitor_taskWithdraw": "任务撤回", "hi_monitor_tsBeforSigning": "前加签中", "hi_monitor_tsAfterSigning": "后加签中", "hi_monitor_tsBeforSignDW": "前加签处理", "hi_monitor_tsAfterSignDW": "后加签处理", "hi_monitor_tsBeforSigned": "已前加签", "hi_monitor_tsAfterSigned": "已后加签", "hi_monitor_day": "天", "hi_monitor_hour": "小时", "hi_monitor_Min": "分", "hi_monitor_second": "秒", "hi_monitor_gantt_dept": "所属部门", "hi_monitor_gantt_role": "岗位职称", "hi_dbType_AuditPoint_0": "已审核", "hi_dbType_AuditPoint_1": "运行中", "hi_dbType_AuditPoint_2": "审批中", "hi_dbType_AuditPoint_99": "终止", "hi_dbType_boolean_yes": "是", "hi_dbType_boolean_no": "否" } /* harmony default export */ var zh_CN = (GLOBAL_LANG_HIUI); // CONCATENATED MODULE: ./src/locale/global.js const t = function (key) { let globalLang = (window.GLOBAL_LANG_HIUI || {}); let lang = Object.assign({}, zh_CN, globalLang); return lang[key] || key; }; // CONCATENATED MODULE: ./src/base/utils/src/dbType.js let _this = { dbString: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (!format) return v; return v; }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (!format) return v; return v; }, type: "dbString", formType: { element: "el-input" } }, dbInt: { isNumber:true, format: function (v, format) { v = parseInt(v); if (format == "eleAuditPoint") { let val = "" switch (v) { case 0: val = t("hi_dbType_AuditPoint_0") break; case 1: val = t("hi_dbType_AuditPoint_1") break; case 99: val = t("hi_dbType_AuditPoint_99") break; case 2: val = t("hi_dbType_AuditPoint_2") break; default: val = isNaN(v) ? "" : v } return val; } if (typeof (format) == "function") { return format.call(window, v); } if (isNaN(v)) { return ""; } v = v * 1; if (!format) return v; return number.format(v, format); }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } let val = _this.dbInt.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, // 数值型默认值不设置 defautlVal: 0, type: "dbInt", queryType: { element: "HiNumberRange" }, formType: { element: "hi-number", props: { precision: 0, "controls-position": "right" } } }, dbFloat: { isNumber:true, format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } v = parseFloat(v); if (isNaN(v)) { return ""; } v = v * 1.0; if (!format) return v; return number.format(v, format); }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } var val = _this.dbFloat.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, type: "dbFloat", formType: { element: "hi-number", props: { "controls-position": "right" } }, queryType: { element: "HiNumberRange" }, defautlVal: 0 }, dbDouble: { isNumber:true, format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } v = parseFloat(v); if (isNaN(v)) { return ""; } v = v * 1.0; if (!format) return v; return number.format(v, format); }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } var val = _this.dbDouble.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, type: "dbDouble", formType: { element: "hi-number", props: { "controls-position": "right" } }, queryType: { element: "HiNumberRange" }, defautlVal: 0 }, dbText: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (!format) return v; return v; }, formatView: function (v, format) { if (!format) return v; return v; }, type: "dbText", formType: { element: "el-input", props: { type: "textarea", rows: 5 } }, queryType: { element: "el-input", props: { } }, gridType: { element: "hi-textarea", props: { popup: true, rows: 5 } } }, dbBoolean: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (v === "") { return ""; } if (typeof v != "boolean") { if (v * 1 == v) { v = parseInt(v); } } return (typeof v == "boolean" || typeof v == "number") ? (v ? t("hi_dbType_boolean_yes") : t("hi_dbType_boolean_no")) : v; }, formatView: function (v, format) { return _this.dbBoolean.format(v, format); }, parse: function (v) { if (v == "yes" || v == "是" || v == "1" || v == "true" || v == "y") return true; else return false; }, type: "dbBoolean", queryType: { element: "el-checkbox", props: { } }, formType: { element: "el-checkbox", props: { } } }, dbDatetime: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (v == null || v == "") return v; format = format || "yyyy-MM-dd hh:mm:ss"; if (typeof v == "string") v = date.strToDate(v); return date.format(v, format) }, formatView: function (v, format) { return _this.dbDatetime.format(v, format); }, /** * @property datetime.type * @description datetime类型 * @type {String} * @final * @static */ type: "dbDatetime", queryType: { element: "HiTimeScheme" }, formType: { element: "el-date-picker", props: { type: "datetime" } } }, dbTimestamp: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (v == null || v == "") return v; format = format || "yyyy-MM-dd hh:mm:ss"; if (typeof v == "string") v = date.strToDate(v); return date.format(v, format) }, formatView: function (v, format) { return _this.dbDatetime.format(v, format); }, type: "dbTimestamp", formType: { element: "el-date-picker", props: { type: "datetime" } } }, dbBasic: { type: "dbBasic" }, dbArray: { type: "dbArray" }, dbObject: { type: "dbObject" }, dbList: { type: "dbList" } } _this.dbDate = _this.dbDatetime; /* harmony default export */ var dbType = (_this); // CONCATENATED MODULE: ./src/base/utils/src/bom.js const bom = { getUrlParam(name) { let search = window.location.search; search = search.substring(1, search.length) let values = search.split("&"); let result = {}; for (let i = 0; i < values.length; i++) { const element = values[i]; let _val = element.split("="); result[_val[0]] = _val[1]; } if (name) return result[name]; return result; }, //打开链接 openUrl(url, paramters={}, method='get', target) { //创建form表单 let id = "formid" + (new Date()).valueOf(); if (!url.toLowerCase().startsWith("http") && window.eap) { url = window.eap.utils.biz.getUrl(url); } var formredwin = document.createElement("form"); formredwin.method = method || "get"; document.body.appendChild(formredwin); formredwin.target = target; formredwin.action = url for (var item in paramters) { if(url.indexOf(item+"=")>-1) continue; var inputObj = document.getElementById(`${id}_${item}`); if (inputObj) { inputObj.value = paramters[item]; } else { var opt = document.createElement("input"); opt.type = "hidden"; opt.name = item; opt.value = paramters[item]; formredwin.appendChild(opt); } } formredwin.submit(); formredwin.parentNode.removeChild(formredwin); }, mergeDefaultCfg(defaultCmp, controlCfg) { var result = null; var tempdefaultCmp = defaultCmp; for (var key in controlCfg) { if ((typeof controlCfg[key]) == "object") { controlCfg[key] = bom.recursionCfg(tempdefaultCmp, controlCfg[key]); } if (key == "crlName" && tempdefaultCmp[controlCfg["crlName"]] != undefined) { controlCfg = Object.assign({}, tempdefaultCmp[controlCfg["crlName"]], controlCfg); } } return controlCfg; }, recursionCfg(defaultCmp, recuCfg) { var tempdefaultCmp = defaultCmp; var result = null; for (var key in recuCfg) { if ((typeof recuCfg[key]) == "object") { recuCfg[key] = bom.recursionCfg(tempdefaultCmp, recuCfg[key]); } if (key == "crlName" && tempdefaultCmp[recuCfg["crlName"]] != undefined) { recuCfg = Object.assign({}, tempdefaultCmp[recuCfg["crlName"]], recuCfg); } } return recuCfg; } } /* harmony default export */ var src_bom = (bom); // CONCATENATED MODULE: ./src/base/utils/index.js let utils_date=date; let utils_number=number; let utils_string=string; let utils_dbType = dbType; let utils_bom = src_bom; /* harmony default export */ var utils = ({ date: utils_date,number: utils_number,string: utils_string,dbType: utils_dbType,bom: utils_bom }); let DateUtil=date; let NumberUtil=number; let StringUtil=string; let DbTypeUtil = dbType; let BomUtil = src_bom; // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/where.js const defOperate = "=" let where_WhereCondition = class WhereCondition { constructor(config) { config = config || {}; this.className = 'WhereCondition' this.enabled = null,// 新添加的 this.sign = null,// 操作符 this.name = null,// 属性 this.dataType = null,// 数据类型 this.tablefilter = null,// tablefilter this.value = null,// 值 this.enabled = true, this.setValue(config.name, config.value, config.dataType, config.sign, config.tablefilter); } setValue(property, value, dataType, operator, tablefilter) { this.sign = operator || "eq"; this.name = property || ""; this.dataType = dataType || types.string; this.value = value; this.enabled = true; this.tablefilter = tablefilter == undefined ? false : tablefilter; } getValue() { return { sign: this.sign, name: this.name, tablefilter: this.tablefilter, dataType: this.dataType, value: this.value, enabled: true }; } }; let where_Where = class Where { /** * showdoc * @title 查询条件 * @className Where * @method Where */ constructor(config, params = []) { config = config || {}; this.params = params this.className = 'Where' this.join = null this.items = null // _.extend(this, config); if (config.junction) config.join = config.junction; if (!config.join) config.join = "and"; if (config.criterionData == null) { if (!config.join) config.join = "and"; this.setWhereData(config.join, []); } else { var paramsDataType = typeof (config.criterionData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(config.criterionData);//$.parseJSON(config.criterionData); break; case "object": objParamsData = config.criterionData; break; } this.setCriterionData(objParamsData); } } setValue(join, items) { this.setWhereData(join, items); } setWhereData(join, items) { this.join = join || "and"; this.items = items || []; } // setCriterionData(criterionData) { var paramsDataType = typeof (criterionData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(criterionData); break; case "object": objParamsData = criterionData; break; } this.join = objParamsData.join || "and"; this.items = []; this.recursiveSetCriteria(this, objParamsData.items); } recursiveSetCriteria(where, items) { var me = this; if (items == null || items.length == 0) { where.items = []; return; } var subLen = items.length; for (var i = 0; i < subLen; i++) { var subItem = items[i]; if (subItem.join) { var whereItem = new Where({ join: subItem.join }); this.recursiveSetCriteria(whereItem, subItem.items); where.addWhere(whereItem); } else { if (subItem.sign) { var fieldName = subItem.name.replace("&[", "").replace("]", ""); fieldName = fieldName.replace("this.get('", "").replace( "')", ""); if (typeof subItem.value == "function") { var tempVal = me.filterValue(subItem.value) where.addCondition(fieldName, tempVal, subItem.dataType, subItem.sign, false, subItem.tablefilter); } else where.addCondition(fieldName, subItem.value, subItem.dataType, subItem.sign, false, subItem.tablefilter); } } } } // 过滤表达式 filterValue(valueExpress) { var me = this, val; val = valueExpress.call(this, ...this.params); return val; } /** * showdoc * @catalog API/工具/Where条件 * @title 添加where条件 * @description 添加where条件 * @method addWhere * @param where 必选 Where where条件 * @return void * @number 60 */ addWhere(where) { // if (where) { let isFind = false; for (let i = 0; i < this.items.length; i++) { let itemstr = JSON.stringify(this.items[i]) if (itemstr == JSON.stringify(where.toJSON())) { isFind = true; break; } } if (!isFind) this.items.push(where); } } /** * showdoc * @title 添加字段条件 * @description 添加字段条件 * @method addCondition * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param operator 必选 String 操作符(eq,noteq,in,notin,gt,lt,isnull,isnotnull,gteq,lteq,like,likeLeft,likeRight) * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ addCondition(property, value, dataType, operator, isCover, tablefilter) { if (value === null || value == undefined || value === "null") { operator = "isnull"; value = "null"; } if (operator === "isnull") value = "null"; //采用后端默认值 if (!operator && window.HIVUI_SETTING) operator = window.HIVUI_SETTING.queryOperate || 'eq'; if (!operator) operator = 'eq'; let value1, operateArray = ["in", "notIn"]; if (typeof value === "function") { value = value.call(); } if (isDate_default()(value)) { value = utils_date.format(value, 'yyyy-MM-dd hh:mm:ss') } if (operateArray.indexOf(operator) > -1 && value && (!(value instanceof Array))) { value1 = (value + "").split(","); } else { value1 = value; } if (isCover) for (var i = 0; i < this.items.length; i++) { if (property == this.items[i].name) { this.items[i].value = value1; this.items[i].tablefilter = tablefilter; this.items[i].dataType = dataType || types.string; this.items[i].sign = operator; return; } } var condition = new where_WhereCondition({ name: property, tablefilter: tablefilter, value: value1, sign: operator, dataType: dataType || types.string }); this.items.push(condition); } add(property, value, dataType, isCover, tablefilter) { this.addEqual(property, value, dataType, isCover, tablefilter) } _addEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "eq", isCover, tablefilter); } _addArray(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "in", isCover, tablefilter); } _addNotIn(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "notIn", isCover, tablefilter); } _addIsNull(property, value, dataType, isCover, tablefilter) { this.addCondition(property, "", dataType, "isnull", isCover, tablefilter); } _addIsNotNull(property, value, dataType, isCover, tablefilter) { this.addCondition(property, "", dataType, "isnotnull", isCover, tablefilter); } _addNotEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "noteq", isCover, tablefilter); } _addGreaterThan(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "gt", isCover, tablefilter); } _addLessThan(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "lt", isCover, tablefilter); } _addGreaterThanAndEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "gteq", isCover, tablefilter); } _addLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "like", isCover, tablefilter); } _addLessThanAndEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "lteq", isCover, tablefilter); } _addLeftLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "likeLeft", isCover, tablefilter); } _addRightLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "likeRight", isCover, tablefilter); } /** * showdoc * @title 添加等于(=)操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method eq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ eq(property, value, dataType, isCover, tablefilter) { this._addEqual(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加默认操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method def * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ def(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, null, isCover, tablefilter) } /** * showdoc * @title 添加in操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method in * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ in(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "in", isCover , tablefilter); } /** * showdoc * @title 添加notin操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method notIn * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ notIn(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "notIn", isCover, tablefilter); } /** * showdoc * @title 添加inRange 内操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method inRange * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ inRange(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "inRange", isCover , tablefilter); } /** * showdoc * @title 添加outRange 外操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method outRange * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ outRange(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "outRange", isCover, tablefilter); } /** * showdoc * @title 添加between操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method between * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ between(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "between", isCover, tablefilter); } /** * showdoc * @title 添加noteq不等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method noteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ noteq(property, value, dataType, isCover, tablefilter) { this._addNotEqual(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加大于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method gt * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ gt(property, value, dataType, isCover, tablefilter) { this._addGreaterThan(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加大于等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method gteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ gteq(property, value, dataType, isCover, tablefilter) { this._addGreaterThanAndEqual(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加小于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method lt * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ lt(property, value, dataType, isCover, tablefilter) { this._addLessThan(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加小于等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method lteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ lteq(property, value, dataType, isCover, tablefilter) { this._addLessThanAndEqual(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method like * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ like(property, value, dataType, vtype, isCover, tablefilter) { this._addLike(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加左like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method leftLike * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ leftLike(property, value, dataType, isCover, tablefilter) { this._addLeftLike(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加右like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method rightLike * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ rightLike(property, value, dataType, isCover, tablefilter) { this._addRightLike(property, value, dataType, isCover, tablefilter); } getItemByIndex(i) { return this.items[i]; } deleteItemByIndex(i) { this.items.splice(i, 1); } getData() { var len = this.items.length; if (len == 0) { return null; } var whereData = { join: this.join, items: [] }; for (var i = 0; i < len; i++) { var item = this.items[i]; this.recursiveWhereData(whereData, item); } return whereData; } recursiveWhereData(whereData, item) { if (item.items) { var subLen = item.items.length; if (subLen > 0) { var subWhereData = { join: item.join, items: [] }; for (var i = 0; i < subLen; i++) { var subItem = item.items[i]; this.recursiveWhereData(subWhereData, subItem); } whereData.items.push(subWhereData); } } else { var itemCondition = item.getValue(); whereData.items.push(itemCondition); } } /** * showdoc * @catalog API/工具/Where条件 * @title 获取where条件JSON数据 * @description 获取where条件JSON数据 * @method toJSON() * @return json * @number 60 */ toJSON() { return this.getData(); } /** * showdoc * @catalog API/工具/Where条件 * @title 获取where条件字符串数据 * @description 获取where条件字符串数据 * @url toStr() * @method toStr() * @return String * @number 60 */ toStr() { return JSON.stringify(this.getData()); } /** * showdoc * @catalog API/工具/Where条件 * @title 根据字段ID返回该字段条件对象 * @description 根据字段ID返回该字段条件对象 * @param key 必选 String 字段名 * @method getConditionByKey(key) * @return json * @number 60 */ getConditionByKey(key) { var len = this.items.length; for (var i = 0; i < len; i++) { var item = this.items[i]; if (item.name && item.name == key) { return item; } else { if (!item.items || item.items.length == 0) return null; let _item = this._recursionWhere1(item.items, key); if (_item != null) return _item; } } return null; } _recursionWhere1(items, key) { var i = 0, len = items.length; for (; i < len; i++) { let item = items[i] if (item.name && item.name == key) return item if (item.name) continue; if (!item.items || item.items.length == 0) return null; item.items.length > 0 && this._recursionWhere1(item.items, key); } } // 应用存储过程 setCustomWhere(join) { var where = new Where({ join: join || "and" }); var i = 0, len = this.items.length; for (; i < len; i++) { if (this.items[i].name) { where.addCondition(this.items[i].name, this.items[i].value, this.items[i].dataType, this.items[i].sign, this.items[i].isCover, this.items[i].tablefilter); } else this._recursionWhere(where, this.items[i].items); } this.join = where.join; this.items = where.items; } // 递归where 所有 _recursionWhere(where, items) { var i = 0, len = items.length; for (; i < len; i++) { if (items[i].name) where.addCondition(items[i].name, items[i].value, items[i].dataType, items[i].sign, items[i].isCover, items[i].tablefilter); else this._recursionWhere(where, items[i].items); } } isPaging() { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (has_default()(this, pageIndexKey) && has_default()(this, pageSizeKey)) return true; else return false; } setPage(pageIndex, pageSize) { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (pageIndex == -1 || pageSize == -1) { pageIndex = -1; pageSize = -1; } this[pageIndexKey] = pageIndex; this[pageSizeKey] = pageSize; return; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where起止页 getPageIndex * @description 获取当前where起止页。 * @url getPageIndex() * @method getPageIndex() * @return Int * @number 60 */ getPageIndex() { var pageIndex = this[keys.pageIndex]; if (pageIndex == -1) return 1; return pageIndex; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where页每页显示多少条 getPageSize * @description 获取当前where每页显示多少条。 * @url getPageSize() * @method getPageSize() * @return Int * @number 60 */ getPageSize() { var pageSize = this[keys.pageSize]; if (pageSize == -1) return 1000; return pageSize; } } where_Where.prototype.equal = where_Where.prototype.eq /* harmony default export */ var queryHelper_where = (where_Where); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/orders.js class Orders { /** * showdoc * @title 查询排序 * @className Orders * @method Orders */ constructor(config) { config = config || {}; this.orderData = []; if (config.orderData) { this.orderData = config.orderData; } } getOrderItemModel() { return { name: "", desc: "", type: "desc" }; } /** * showdoc * @title 添加降序条件 * @description 添加降序条件 * @method addDesc * @param property 必选 String 字段名 * @param desc 可选 String 字段描述 * @return void * @number 1 */ addDesc(property, desc) { this.addOrder(property, "desc", desc); } /** * showdoc * @catalog API/工具/Orders排序 * @title 添加升序 * @description 添加升序条件 * @method addAsc * @param property 必选 String 字段名 * @param desc 可选 String 字段描述 * @return void */ addAsc(property, desc) { this.addOrder(property, "asc", desc); } /** * showdoc * @title 添加排序 * @description 添加排序 * @method addOrder * @param property 必选 String 字段名 * @param type 必选 String 排序类型 * @param desc 可选 String 字段描述 * @return void * @number 1 */ addOrder(property, type, desc) { var orderItem = this.getOrderItemModel(); orderItem.name = property; orderItem.desc = desc; orderItem.type = type this.orderData.push(orderItem); } /** * showdoc * @title 获取order排序JSON数据 * @description 获取order排序JSON数据 * @method toJSON * @return json * @number 60 */ toJSON() { return this.orderData; } /** * showdoc * @title 获取order排序字符串数据 * @description 获取order排序字符串数据 * @method toStr * @return json * @number 60 */ toStr() { return JSON.stringify(this.orderData); } } // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/param.js class param_Param { /** * showdoc * @title 查询参数 * @className Param * @description 查询参数 * @method Param */ constructor(config) { config = config || {}; this.orders = null this.className = 'Params' this.paramKey = "queryParam" // _.extend(this, config); this.where = config.where || new queryHelper_where(); this.returnTotal = config.returnTotal; this.zcQuery = config.zcQuery; this.modelFilePath = config.modelFilePath || ""; this.orders = config.orders; this.slaveEntities = config.slaveEntities || []; if (config.initData) { this.setJsonParamsData(config.initData); } if (config.paramsData) { this.setJsonParamsData(config.paramsData); } if (config.whereData) { this.setJsonWhereData(config.whereData); } } createWhereByModel(values, model) { model = model || {} let where = new queryHelper_where(); for (let field in values) { let bizFiled = model.fields ? model.fields[field] : null; let val = values[field] if (val != null && val != "" && val != undefined) { if (bizFiled) { where[bizFiled.operate](field, val) } else { if (utils.isArray(val)) where.in(field, val) else where.def(field, val) } } } if (this.where) this.where.addConditions(where) else this.where = where; return where; } setJsonWhereData(whereData) { // 判断传入的值是否字符 if (!whereData) return; this.where = new queryHelper_where({ criterionData: whereData }); } setJsonParamsData(paramsData) { // 判断传入的值是否字符 if (!paramsData) return; var paramsDataType = typeof (paramsData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(paramsData); break; case "object": objParamsData = paramsData; break; } if (objParamsData.queryCdions) { this.where = new queryHelper_where({ criterionData: objParamsData.queryCdions }); } if (objParamsData.orders) { this.orders = new Orders({ orderData: objParamsData.orders }); } if (objParamsData.having) { this.having = new queryHelper_where({ criterionData: objParamsData.having.criterion }); } if (objParamsData.groupBy) { this.groupBy = objParamsData.groupBy } } /** * showdoc * @catalog API/工具/Param参数 * @title 设置分组 * @description 设置分组 * @method setGroup * @param groupFields 必选 Array 分组字段 * @return void * @number 60 */ setGroup(groupFields) { this.groupBy = groupFields; } /** * showdoc * @title 获取分组 * @description 获取分组 * @method getGroup * @return Array */ getGroup() { return this.groupBy; } /** * showdoc * @title 获取where条件 * @description 获取where条件 * @method getWhere * @return Where * @number 60 */ getWhere() { return this.where; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置where条件 * @description 设置where条件 * @method setWhere * @param where 必选 where where条件 * @return void * @number 60 */ setWhere(where) { this.where = where; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置Having条件 * @description 设置Having条件 * @method setHaving * @param where 必选 where where条件 * @return void * @number 60 */ setHaving(where) { this.having = where; } /** * showdoc * @title 获取Having条件 * @description 获取Having条件 * @method getHaving * @return void * @number 60 */ getHaving() { return this.having; } /** * showdoc * @catalog API/工具/Param参数 * @title 获取排序条件 * @description 获取排序条件 * @method getOrders * @return void * @number 60 */ getOrders() { return this.orders; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置排序条件 * @description 设置排序条件 * @method setOrders * @param orders 必选 order对象 * @return void * @number 60 */ setOrders(orders) { this.orders = orders; } /** * showdoc * @catalog API/工具/Param参数 * @title 获取查询JSON数据 * @description 获取查询JSON数据 * @method toJSON * @return json * @number 60 */ toJSON() { var params = {}; // params.having = {}; if (this.where) { var mycriterion = this.where.toJSON(); if (mycriterion) { params.queryCdions = this.where.toJSON(); } } /* * // if (this.having) { // var mycriterion = this.having.toJSON(); // * if (mycriterion) { // // params.having.criterion = * this.having.toJSON(); // } // } */ if (this.groupBy) { params.groupBy = this.groupBy; } if (this.orders) { params.orderBy = this.orders.toJSON(); } return params; } decodeStr(s) { return unescape(s.replace(/\\(u[0-9a-fA-F]{4})/gm, '%$1')); } setSlaveEntities(params){ this.slaveEntities = params; } toStringWithKey() { var json = {}, param = {}; // param[this.paramKey] = this.toJSON() let body = JSON.stringify(this.toJSON()); json[keys.body] = body; json[keys.pageIndex] = this[keys.pageIndex] || this.where[keys.pageIndex]; json[keys.pageSize] = this[keys.pageSize] || this.where[keys.pageSize]; json[keys.returnTotal] = this.returnTotal; json[keys.modelFilePath] = this.modelFilePath; json[keys.zcQuery] = this.zcQuery; if(this.slaveEntities.length>0) { var _slaveEntities = []; for(var i = 0;i<this.slaveEntities.length;i++) { _slaveEntities.push(this.slaveEntities[i].toStringWithKey()); } json[keys.slaveEntities] = JSON.stringify(_slaveEntities); } return json;// this.toJSON(); } /** * showdoc * @catalog API/工具/Param参数 * @title 获取查询字符串数据 * @description 获取查询字符串数据 * @method toStr * @return String * @number 60 */ toStr() { return JSON.stringify(this.toJSON()); } /** * showdoc * @title 是否有翻页条件 * @description 是否有翻页条件 * @method isPaging * @return boolean * @number 60 */ isPaging() { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (_has(this, pageIndexKey) && _has(this, pageSizeKey)) return true; else return false; } /** * showdoc * @title 设置翻页 * @description 设置翻页 * @method setPage * @param pageIndex 必选 Int 起止页 * @param pageSize 必选 Int 每页显示多少条 * @return void * @number 60 */ setPage(pageIndex, pageSize) { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (pageIndex == -1 || pageSize == -1) { pageIndex = -1; pageSize = -1; } this[pageIndexKey] = pageIndex; this[pageSizeKey] = pageSize; return; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where起始页 * @description 获取当前where起始页 * @method getPageIndex * @return Int * @number 60 */ getPageIndex() { var pageIndex = this[keys.pageIndex]; if (pageIndex == -1) return 1; return pageIndex; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where页每页显示多少条 * @description 获取当前where每页显示多少条 * @method getPageSize * @return Int * @number 60 */ getPageSize() { var pageSize = this[keys.pageSize]; if (pageSize == -1) return 1000; return pageSize; } } // EXTERNAL MODULE: ./node_modules/lodash/isArray.js var isArray = __webpack_require__("6747"); var isArray_default = /*#__PURE__*/__webpack_require__.n(isArray); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/index.js //行转列 let queryHelper_rowToCol = (data, rowField, colField, valField) => { let result = [], row = {}; if (data.length > 0) { let rowSign = row[rowField] = data[0][rowField]; data.forEach(element => { //标识不一样就创建行 if (rowSign != element[rowField]) { result.push(row); row = {}; rowSign = element[rowField] row[rowField] = rowSign; } row[element[colField]] = element[valField] }); result.push(row); } return result; } let query = (param, modelFile, funcPath, { request, url, method, pn, extParam, viewItemId, rowToCol,async,success,fail}) => { let data = { "queryCdion": "{}" } if (param) { let paramInstance if (param.className == "Where") { paramInstance = new param_Param(); //new queryParam.Param() paramInstance.where = param } else if (param.className == "Params") { paramInstance = param } else { paramInstance = new param_Param(); let pageSize = null, pageIndex = null; let where = new queryHelper_where(); for (let field in param) { let val = param[field] if (field == '$pageSize') { pageSize = val; continue; } if (field == '$pageIndex') { pageIndex = val; continue; } if (isArray_default()(val)) { if (isDate_default()(val[0])) { where.between(field, utils_date.format(val[0], "yyyy-MM-dd hh:mm:ss") + '到' + utils_date.format(val[1], "yyyy-MM-dd hh:mm:ss")) } else where.in(field, val) } else where.def(field, val) } if (pageSize !== null && pageIndex !== null) where.setPage(pageIndex, pageSize) paramInstance.where = where } data = paramInstance.toStringWithKey() } data.modelFilePath = modelFile; data[keys.funcpath] = funcPath; data[keys.viewItemId] = viewItemId; //将来要移到url中 //data.funcPath = funcPath; if (extParam) { Object.assign(data, extParam); } let promise //let dataUrl = url + "/" + modelFile; let dataUrl = url; funcPath = funcPath || "" if (pn) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?pn=" + pn; else dataUrl = dataUrl + "&pn=" + pn; } promise = request({ url: dataUrl, method: method || 'post', async:async, data: data, success:success, fail:fail }) // promise.then(res => { // //行转列 // if (rowToCol && rowToCol.rowField) { // res.dataPack.row = rowToCol(res.dataPack.row) // } // }) return promise } let getExportParam = ({ request, url, csv }) => { let params = { csv } return request({ url, method: 'get', params }) } let exportData = (param, modelFile, funcPath, { request, url, method, pn, viewItemId, extParam }) => { let data = { // "queryCdion": "{}" } if (param) { let paramInstance if (param.className == "Where") { paramInstance = new param_Param(); //new queryParam.Param() paramInstance.where = param } else if (param.className == "Params") { paramInstance = param } else { paramInstance = new param_Param(); let pageSize = null, pageIndex = null; let where = new queryHelper_where(); for (let field in param) { let val = param[field] if (field == '$pageSize') { pageSize = val; continue; } if (field == '$pageIndex') { pageIndex = val; continue; } if (isArray_default()(val)) { if (isDate_default()(val[0])) { where.between(field, utils_date.format(val[0], "yyyy-MM-dd hh:mm:ss") + '到' + utils_date.format(val[1], "yyyy-MM-dd hh:mm:ss")) } else where.in(field, val) } else where.def(field, val) } if (pageSize !== null && pageIndex !== null) where.setPage(pageIndex, pageSize) paramInstance.where = where } data[keys.body] = paramInstance.toJSON()//paramInstance.toStringWithKey() data[keys.pageIndex] = paramInstance.where[keys.pageIndex]; data[keys.pageSize] = paramInstance.where[keys.pageSize]; data[keys.viewItemId] = viewItemId; //delete data[keys.zcQuery] //delete data[keys.returnTotal] } data[keys.funcpath] = funcPath; data.modelFilePath = modelFile; // if (param.zcQuery) // data[keys.slaveExport] = param.zcQuery //将来要移到url中 //data.funcPath = funcPath; if (extParam) { if (extParam.sheetStyle) { data[keys.sheetStyle] = extParam.sheetStyle; delete extParam.sheetStyle } if (extParam[keys.slaveExport] !== undefined) { data[keys.slaveExport] = extParam[keys.slaveExport]; delete extParam[keys.slaveExport] } } if (data[keys.slaveExport] == undefined && param.zcQuery) data[keys.slaveExport] = param.zcQuery let promise //let dataUrl = url + "/" + modelFile; let dataUrl; funcPath = funcPath || "" dataUrl = url; if (pn) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?pn=" + pn; else dataUrl = dataUrl + "&pn=" + pn; } let psotData = {} if (data.title) { psotData.title = data.title; delete data.title; } psotData[keys.sheetDatas] = JSON.stringify([data]) psotData.__isIntercept = false; if (extParam) psotData = Object.assign(psotData, extParam); promise = request({ url: dataUrl, method: method || 'post', data: psotData }) return promise } /* harmony default export */ var queryHelper = ({ Param: param_Param, Where: queryHelper_where, types: types, Orders: Orders, query, exportData, rowToCol: queryHelper_rowToCol, getExportParam }); // EXTERNAL MODULE: ./node_modules/lodash/cloneDeep.js var cloneDeep = __webpack_require__("0644"); var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep); // CONCATENATED MODULE: ./src/base/dataHelper/src/saveHelper/index.js const paramKey = { //subSetkeyVal:"$subSetkeyVal", root: '__body', version: "__version", data: 'data', funcPath: "__funcpath", modelFile: 'modelFilePath', funcFile: 'fpath', state: '$state', old: '$old', insertStateVal: 'rsInsert', updateStateVal: 'rsUpdate', removeStateVal: 'rsDelete', overrideStateVal: 'rsOverride', normalStateVal: "rsNormal", viewItemId: "viewItemId" } /** * showdoc * @title 数据保存包 * @className HiDataHelper * @description 数据保存包 * @method SavePackHelper * @demo * let modelFile = "数据集实体路径"; * let funcPath = "功能路径"; * let old={FNUMBER:"DH-2210-2201",FIELD1:'data1',FIELD2:'data2'}; //原始数据中必须包含主键字段值 * let data = {FIELD1:'d1',FIELD2:'d2'}; * let saveHelper = this.createSaveHelper(modelFile,funcPath); //在页面上下文,创建saveHelper * saveHelper.update(old,data); //组装更新包 * saveHelper.add({FNUMBER:"NEW-YYMMDD-9999",FIELD1:'a2',FIELD2:'a2'}); //组装新增包 * saveHelper.remove({FNUMBER:"DH-2210-2200"}); //组装删除包,删除数据中必须包含主键字段值 * saveHelper.save().then(res=>{ * //保存成功 * if(res.status==200){ * * } * }) */ class saveHelper_SavePackHelper { /** * @title 构造函数 * @description 保存助手构造函数 * @method HiDataHelper * @param modelFile 必选 string 数据集路径 * @param options 必选 json 请求选项 * @param options.request 必选 axios 请求对象 * @param options.url 必选 url 请求rul * @param options.pn 选填 pn 项目ID * @return HiDataHelper */ constructor(modelFile, funcPath, { request, url, wsUrl, pn, viewItemId, extParam, colToRow }) { this.className = "SavePackHelper" this.modelFile = modelFile; this.request = request; this.colToRow = colToRow; this.viewItemId = viewItemId; this._appendSavePack = []; funcPath = (funcPath || "") this.url = url; this.wsUrl = wsUrl; // if (url.endsWith("/") == false && funcPath.startsWith("/") == false) // this.url = url + "/" + (funcPath || ""); // else // this.url = url + (funcPath || ""); this.funcPath = funcPath; this.extParam = extParam; this.pn = pn; this.dataPacks = {}; this.dataPacks[paramKey.data] = []; this.dataPacks[paramKey.modelFile] = this.modelFile; //this.dataPacks[paramKey.funcPath] = this.funcPath; } //新增或删除包行转列 insertOrDeletePackageColToRow(data) { let dynamic = this.colToRow, result = [], colField = dynamic.colField, valField = dynamic.valField, rowField = dynamic.rowField; //组装系统关键字字段 let _row = {} _row[dynamic.rowField] = data[rowField] || (new Date()).valueOf(); for (let colName in data) { if (colName.startsWith("$")) { _row[colName] = data[colName]; } } for (let colName in data) { if (colName.startsWith("$")) continue; let row = cloneDeep_default()(_row); row[colField] = colName; row[valField] = data[colName]; result.push(row); } return result; } //更新包行转列 updatePackageColToRow(data) { let dynamic = this.colToRow, result = [], colField = dynamic.colField, valField = dynamic.valField, rowField = dynamic.rowField; //组装系统关键字字段 let _row = {}, _$old = {} _$old[dynamic.rowField] = data[paramKey.old][rowField] for (let colName in data) { if (colName.startsWith("$")) { _row[colName] = data[colName]; } } for (let colName in data) { if (colName.startsWith("$")) { continue; } let row = cloneDeep_default()(_row); let $old = cloneDeep_default()(_$old); row[valField] = data[colName]; $old[valField] = data[paramKey.old][colName]; $old[colField] = colName; row[paramKey.old] = $old; result.push(row); } return result; } //转数据 conversion(data,emptyValue) { if (data) { const result = {} for (const key in data) { const val = data[key] if (val === undefined && emptyValue === undefined){ continue; } if (isDate_default()(val)) { result[key] = utils_date.format(val, 'yyyy-MM-dd hh:mm:ss') } else if (val === undefined && emptyValue !== undefined){ result[key] = emptyValue; } else if (val != null && typeof (val) == 'object' && !val[paramKey.modelFile]) { result[key] = JSON.stringify(val); } else { // if (paramKey.subSetkeyVal == val[paramKey.modelFile]){ // delete val[paramKey.modelFile] // } result[key] = val } } return result } } normal(data) { var me = this data = this.conversion(data) data[paramKey.state] = paramKey.normalStateVal if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)) } else me.dataPacks[paramKey.data].push(data) } /** * showdoc * @title 新增数据 * @description 新增数据 * @method add * @param data 必选 json 数据 * @return void */ add(data) { var me = this data = this.conversion(data) data[paramKey.state] = paramKey.insertStateVal if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)) } else me.dataPacks[paramKey.data].push(data) } /** * showdoc * @title 更新数据 * @description 更新数据 * @method update * @param old 必选 json 旧数据(原数据)必须包含主键字段 * @param data 必选 json 新数据(要更新的数据) * @return void * @demo * update({primaryField:1,Field1:0},{Field1:1,Field2:2}) */ update(old, data) { var me = this var row = {} data = this.conversion(data,null) old = this.conversion(old) for (var a in data) { if (data[a] === void 0) { continue } row[a] = data[a] } row[paramKey.state] = paramKey.updateStateVal row[paramKey.old] = old if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.updatePackageColToRow(row)) } else me.dataPacks[paramKey.data].push(row) } setRedundant(old, data) { } /** * showdoc * @title 重写数据 * @description 重写数据包,数据库中有该数据就更新,没有则新增 * @method override * @param old 必选 json 旧数据(原数据) * @param data 必选 json 新数据(要更新或新增的数据)必须包含主键字段 * @return void * @number 400 */ override(old, data) { if (!data) { data = old; old = null; } if (old) old = this.conversion(old) data = this.conversion(data) var me = this var row = {} for (var a in data) { if (data[a] === void 0) { continue } row[a] = data[a] } row[paramKey.state] = paramKey.overrideStateVal if (old) row[paramKey.old] = old if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.updatePackageColToRow(row)) } else me.dataPacks[paramKey.data].push(row) } /** * showdoc * @title 删除数据 * @description 删除数据 * @method remove * @param data 必选 json 要删除据数据,必须包含主键字段 * @return void */ remove(data) { var me = this data[paramKey.state] = paramKey.removeStateVal data = this.conversion(data) if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)) } else me.dataPacks[paramKey.data].push(data) } /** * @title 获取数据包字符串 * @method toString * @description 获取数据包字符串 */ toString() { return JSON.stringify(this.dataPacks) } /** * showdoc * @title 清空数据包 * @description 清空数据包 * @method clear * @return void */ clear() { this.dataPacks = {} } /** * showdoc * @title 获取数据包 * @description 获取数据包 * @method getDataPack * @return json */ getDataPack() { return this.dataPacks } /** * showdoc * @title 是否含有数据包 * @description 是否含有数据包 * @method isEmpty * @return boolean */ isEmpty() { if (this.dataPacks[paramKey.data] && this.dataPacks[paramKey.data].length > 0) return false; return true; } /** * showdoc * @title 追加保存包 * @description 追加保存包 * @method appendSavePack * @param savePack 必选 json 保存包 * @return void */ appendSavePack(savePack) { this._appendSavePack.push(savePack) } /** * showdoc * @title 提交数据 * @description 提交数据 * @method save * @param options 非必选 json 提交时的附加参数 * @param beforeSubmitCallBack 非必选 json 提交前回调,参数:options, param * @return Promise */ save(options, beforeSubmitCallBack,store) { options = options || {}; let param = {} this._appendSavePack.unshift(this.getDataPack()) param[paramKey.root] = JSON.stringify(this._appendSavePack) // param[paramKey.version] = "1.0.0" param[paramKey.funcPath] = this.funcPath; param[paramKey.viewItemId] = this.viewItemId; if (this.extParam) Object.assign(param, this.extParam); Object.assign(param, options) if (beforeSubmitCallBack) { beforeSubmitCallBack.call(store, options, param, param[paramKey.root]); } let url = this.url if (this.pn) { if (url.indexOf('?') == -1) url = url + "?pn=" + this.pn; else url = url + "&pn=" + this.pn; } if (options.wsid) { if (url.indexOf('?') == -1) url = url + "?wsid=" + options.wsid; else url = url + "&wsid=" + options.wsid; } let showError = options.showError; delete options.showError; return this.request({ url: url, method: 'post', showError, data: param }) } wsSave(options={}, beforeSubmitCallBack,store) { let id = (new Date()).valueOf(); if (!this.wsUrl) { throw new Error("未配置webscoket保存地址[saveWsUrl]") } let wsUrl = this.wsUrl.replace("{id}",id); let ws = new WebSocket(wsUrl); let me = this; ws.addEventListener("open",function(){ options.wsid = id; options.showError = false, me.save(options, beforeSubmitCallBack,store) }) return ws; } } // CONCATENATED MODULE: ./src/base/dataHelper/src/flowHelper/index.js // 审批意见 let getApprovalInfo = ({ request, url, ftaskguid, flowtype }) => { let promise let dataUrl = url || src_hiSetting.getApprovalInfo if (ftaskguid) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?ftaskguid=" + ftaskguid; else dataUrl = dataUrl + "&ftaskguid=" + ftaskguid; } if (flowtype) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?flowtype=" + flowtype; else dataUrl = dataUrl + "&flowtype=" + flowtype; } promise = request({ url: dataUrl, method: 'post' }) return promise } // 处理流程 let processFlow = ({ request, url, data, param, timeout, showError }) => { let promise; let dataUrl = url || src_hiSetting.processFlow; let __data = { __body: JSON.stringify(data), } if (param) { Object.assign(__data, param) } let requestParam = { url: dataUrl, data: __data, method: 'post' } if (timeout) { Object.assign(requestParam, { timeout: timeout }) } if (showError != undefined) { Object.assign(requestParam, { showError: showError }) } promise = request(requestParam) return promise } // 任务中心查询 let queryTask = ({ request, url, param }) => { let promise; let dataUrl = url || src_hiSetting.queryTask; promise = request({ url: dataUrl, data: param, method: 'post' }) return promise } // 打开流程接口 let getFlowInfo = ({ request, url, data }) => { let promise; promise = request({ url: url || src_hiSetting.getFlowInfo, data: data, method: 'post' }) return promise } // 单号打开流程接口 let openOrdernumber = ({ request, fordernumber, url }) => { let promise; let dataUrl = url || src_hiSetting.openOrdernumber; let openurl = `${dataUrl}?fordernumber=${fordernumber}` promise = request({ url: openurl, method: 'get' }) return promise } // 撤回 let withdrawtask = ({ request, url, ftaskguid }) => { let promise; let dataUrl = url || src_hiSetting.withdrawtask; let path = `${dataUrl}?ftaskguid=${ftaskguid}` promise = request({ url: path, method: 'get' }) return promise } // 反审 let umpireOrder = ({ request, url, fordernumber }) => { let promise; let dataUrl = url || src_hiSetting.umpireOrder; let path = `${dataUrl}?fordernumber=${fordernumber}` promise = request({ url: path, method: 'get' }) return promise } // 流程监控 let taskDiagram = ({ request, url, forderguid, fmodelpath, fversion }) => { let promise; let dataUrl = url || src_hiSetting.taskDiagram; let path = `${dataUrl}?fmodelpath=${fmodelpath}${fversion ? ("&fversion=" + fversion) : ""}` if (forderguid) { path = path + "&forderguid=" + forderguid } promise = request({ url: path, method: 'get' }) return promise } // 流程监控 let ganttChart = ({ request, url, fordernumber }) => { let promise; let path; let dataUrl = url || src_hiSetting.ganttChart; if (fordernumber) { path = dataUrl + "?fordernumber=" + fordernumber } promise = request({ url: path, method: 'get' }) return promise } /* harmony default export */ var flowHelper = ({ getApprovalInfo, processFlow, queryTask, getFlowInfo, withdrawtask, taskDiagram, ganttChart, openOrdernumber, umpireOrder }); // CONCATENATED MODULE: ./src/base/dataHelper/src/funcHelper/index.js // 打开功能接口 let getFuncInfo = ({ request, url, data }) => { let promise; promise = request({ url: url, data: data, method: 'post' }) return promise } /* harmony default export */ var funcHelper = ({ getFuncInfo }); // CONCATENATED MODULE: ./src/base/dataHelper/src/index.js /* harmony default export */ var dataHelper_src = ({ queryHelper: queryHelper, saveHelper: saveHelper_SavePackHelper, flowHelper: flowHelper, funcHelper: funcHelper }); // CONCATENATED MODULE: ./src/base/dataHelper/index.js /* harmony default export */ var dataHelper = (dataHelper_src); // CONCATENATED MODULE: ./src/eap/user/org.js //调用org方法时一定要在service.js/initUser()之后 function getCurrentUser() { return window.eap.userInfo || {}; } function getMainUser() { if (window.eap.userInfo && window.eap.userInfo.main) return window.eap.userInfo.main; else if (window.eap.userInfo) return window.eap.userInfo; return {} } /* harmony default export */ var org = ({ /** * 当前用户ID * * @return */ userId: function () { return getMainUser().fuserid || ""; }, /** * 当前用户姓名 * * @return */ userName: function () { return getMainUser().fusername || ""; }, /** * 当前用户部门ID * * @return */ deptId: function () { return getMainUser().fdeptid || ""; }, /** * 当前用户部门名称 * * @return */ deptName: function () { return getMainUser().fdeptname || ""; }, /** * 当前用户岗位ID * * @return */ roleId: function () { return getMainUser().froleid || ""; }, /** * 当前用户岗位名称 * * @return */ roleName: function () { return getMainUser().frolename || ""; }, /** * 当前用户组织机构路径 * * @return */ orgPath: function () { return getMainUser().fuserorgpath || ""; }, orgName: function () { return getMainUser().forgname || ""; }, orgId: function () { return getMainUser().forgid || ""; }, //直属上级用户ID superId: function () { return getCurrentUser().fsuperuserid || ""; }, //直属上级用户姓名 superName: function () { return getCurrentUser().fsuperusername || ""; }, /***********编制******************************************************************************************* */ //用户编制ID bzId: function () { return getCurrentUser().fbzid || ""; }, //用户编制名称 bzName: function () { return getCurrentUser().fbzname || ""; }, //用户编制部门ID bzDeptId: function () { return getCurrentUser().fdeptid || ""; }, //用户编制部门名称 bzDeptName: function () { return getCurrentUser().fdeptname || ""; }, //用户编制岗位ID bzRoleId: function () { return getCurrentUser().froleid || ""; }, //用户编制岗位名称 bzRoleName: function () { return getCurrentUser().frolename || ""; }, //用户编制机构路径 bzOrgPath: function () { return getCurrentUser().fuserorgpath || ""; }, //用户编制机构名称 bzOrgName: function () { return getCurrentUser().forgname || ""; }, //用户编制机构ID bzOrgId: function () { return getCurrentUser().forgid || "" }, //当前用户所属公司的机构与部门ID orgDeptId:function(){ return (getCurrentUser().forgid || "") + "." + (getCurrentUser().fdeptid || ""); }, //当前用户所属公司的机构与部门名称 orgDeptName:function(){ return (getCurrentUser().forgname || "") + "." + (getCurrentUser().fdeptname || ""); }, //直属上级编制ID bzSuperId: function () { return getCurrentUser().fsuperbzid || ""; }, //直属上级编制名称 bzSuperName: function () { return getCurrentUser().fsuperbzname || ""; }, /** * 当前用户saas部门ID * * @return */ saasDeptId: function () { return getCurrentUser().fdeptid.replace(window.eap.userInfo.forgid + "_", "").replace(window.eap.userInfo.forgid + "-", ""); }, /** * 当前用户saas岗位ID * * @return */ saasRoleId: function () { return getCurrentUser().froleid.replace(window.eap.userInfo.forgid + "_", "").replace(window.eap.userInfo.forgid + "-", ""); }, /**********代理********************************************************************************************** */ /** * 当前代理用户ID * * @return */ proxyId: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fuserid; }, /** * 当前代理用户姓名 * * @return */ proxyName: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fusername; }, /** * 当前代理编制ID * * @return */ bzProxyId: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fbzid; }, /** * 当前代理编制名称 * * @return */ bzProxyName: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fbzname }, /******************************************************************************************************** */ /** * 根据岗位ID获取用户编制号列表,逗号隔开 * * @param roleId * @return */ getBzByRole: function (roleId) { return [] }, /** * 根据部门ID获取用户编制号列表,逗号隔开 * * @param deptId * @return */ getBzByDept: function (deptId) { return ""; }, /** * 根据当前用户岗位ID获取编制号列表,逗号隔开 * * @return */ getBzByRole: function () { return getBzByRole(roleId()); }, /** * 根据当前用户部门ID获取编制号列表,逗号隔开 * * @return */ getBzByDept: function () { return getBzByDept(deptId()); }, }); // CONCATENATED MODULE: ./src/eap/utils/biz.js const modelPath = "/platf/useroperate/entity/SysUseroperate.xml"; function getWsUrl(url){ //补全URL if (!(url.toLowerCase().startsWith("ws://") || url.toLowerCase().startsWith("wss://"))) { let site = window.HIVUI_SETTING.url site = site.replace("https", "wss") site = site.replace("http", "ws") if (url.startsWith("/")) url = site + url; else url = site + "/" + url; } if (window.HIVUI_SETTING.projectName && url.indexOf('pn=') == -1 ) { let pn = window.HIVUI_SETTING.projectName; if (url.indexOf('?') == -1) url = url + "?pn=" + pn else url = url + "&pn=" + pn } return url; } function getUrl(url) { let project = window.HIVUI_SETTING.project || window.HIVUI_SETTING.projectName || ""; if (project.indexOf("/") != -1) project = project.split("/")[0] if (url.indexOf(".pro") != -1) { let _url = url; let param = ""; if (_url.indexOf("?") != -1) { _url = _url.substring(0, _url.lastIndexOf("?")) param = url.substring(url.lastIndexOf("?")) } let extName = _url.substring(_url.lastIndexOf(".")) url = _url.replace(/\.\w+/g, "") + extName + param; } if (project) { let arrUrl = url.split("/"); if (arrUrl[0] != "") arrUrl[0] = project; else arrUrl[1] = project; url = arrUrl.join("/"); } let newUrl = ""; if (url.startsWith("/")) newUrl = newUrl + url; else newUrl = newUrl + "/" + url; if (window.HIVUI_SETTING.projectName) { if (url.indexOf("?") != -1) newUrl = newUrl + "&pn=" + window.HIVUI_SETTING.projectName; else newUrl = newUrl + "?pn=" + window.HIVUI_SETTING.projectName; } return newUrl; } /* harmony default export */ var biz = ({ getWsUrl, createNumber() { return "NEW-YYMMDD-9999" }, //下载地址 getDownloadUrl(url, fileName) { var fileExtension = url.substr( url.lastIndexOf(".") + 1 ); var file_path = ""; if (!fileName) { file_path = `${window.HIVUI_SETTING.download}?pn=${window.HIVUI_SETTING.projectName}&path=${url }&access_token=${window.eap.user.auth.getToken()}`; } else { file_path = `${window.HIVUI_SETTING.download}?pn=${window.HIVUI_SETTING.projectName}&path=${url }&access_token=${window.eap.user.auth.getToken()}&name=${fileName}.${fileExtension}`; } return file_path; }, //删除用户数据 delUserData(key, type) { let saveHelper = new dataHelper.saveHelper(modelPath, null, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.saveUrl, pn: window.HIVUI_SETTING.projectName, }); saveHelper.remove({ FKEY: key, FUSERID: org.bzId(), FTYPE: type }); return saveHelper.save(); }, //查询用户数据 async getUserData(key, type) { var where = new dataHelper.queryHelper.Where({ junction: 'and' }); where.addCondition("FKEY", key, "dbString"); where.addCondition("FTYPE", type, "dbString"); where.addCondition("FUSERID", org.bzId(), "dbString"); var param = new dataHelper.queryHelper.Param({ where: where }); let result = await dataHelper.queryHelper.query(param, modelPath, null, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.queryUrl, pn: window.HIVUI_SETTING.projectName }); if (result.dataPack.rows.length > 0) return result.dataPack.rows[0].FVALUE; return null; }, //保存数据 saveUserData(key, data, type, desc) { let saveHelper = new dataHelper.saveHelper(modelPath, null, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.saveUrl, pn: window.HIVUI_SETTING.projectName, }); saveHelper.override({ FKEY: key, FUSERID: org.bzId(), FTYPE: type }, { FKEY: key, FUSERID: org.bzId(), FTYPE: type, FVALUE: typeof data == "string" ? data : JSON.stringify(data), FNAME: desc || "" }); return saveHelper.save(); } , getUrl, getResUrl(url) { return HIVUI_SETTING.deployDir + getUrl(url); } }); // CONCATENATED MODULE: ./src/eap/utils/index.js /* harmony default export */ var eap_utils = ({ biz: biz, FormFunc: biz, DateFunc: utils.date, NumberFunc: utils.number, StringFunc: utils.string, BomFunc: utils.bom, OrgFunc: org }); // CONCATENATED MODULE: ./src/eap/axios.js // create an axios instance const def_timeout=30 * 1000; const service = axios_default.a.create({ baseURL: "http://192.168.4.106:7777", timeout: def_timeout // request timeout }) let hasMessageFunc = true; try { hasMessageFunc = !!(hasMessageFunc && external_ELEMENT_["Message"]); } catch (e) { hasMessageFunc = false; } //判断是否跨域请求变量 let isCrossDomain=false; try{ let __isCrossDomain=top.window.SysPage; } catch(e){ isCrossDomain=true; } service.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8' // request拦截器 service.interceptors.request.use( config => { if (config.headers['Content-Type'] === undefined) { config.headers['Content-Type'] = 'application/json;charset=UTF-8' } const token = getToken(); //默认显示请求成功的返回信息 if(typeof(config.showSuccessTips)=="undefined"){ config.showSuccessTips=true; } //默认显示请求失败的返回信息 if(typeof(config.showError)=="undefined"){ config.showError=true; } if (token && !config.noToken && !(config.url.startsWith("http") && !config.url.startsWith(window.HIVUI_SETTING.url))) { config.headers['Authorization'] = 'Bearer ' + token; } let __localeLang = js_cookie_default.a.get("locale"); if (__localeLang) {//设置语言包 if (config.method == "post") { if (!config.params) { config.params = {}; } config.params.locale = __localeLang; } else { config.url = eap_utils.StringFunc.setUrlValue(config.url, "locale", __localeLang); } } if (window.HIVUI_SETTING) { let site = window.HIVUI_SETTING.url //补全URL if (!config.url.toLowerCase().startsWith("http")) { if (config.url.startsWith("/")) config.url = site + config.url; else config.url = site + "/" + config.url; } if(!config.isCustomTimeout){ if (window.HIVUI_SETTING.requestTimeout || window.HIVUI_SETTING.requestTimeout == 0) { config.timeout = window.HIVUI_SETTING.requestTimeout; } } if (window.HIVUI_SETTING.projectName && config.url.indexOf('pn=') == -1 && !(config.params && config.params.pn)) { let pn = window.HIVUI_SETTING.projectName; if (config.url.indexOf('?') == -1) config.url = config.url + "?pn=" + pn else config.url = config.url + "&pn=" + pn } //岗位ID if (window.scpRequestData && window.scpRequestData.fbzid) { let fbzid = window.scpRequestData.fbzid; if (config.method == "post") { if (!config.params) { config.params = {}; } config.params.fbzid = fbzid; } else { config.url = eap_utils.StringFunc.setUrlValue(config.url, "fbzid", fbzid); } } } // 如果接口需要签名, 则通过请求时,headers中传递sign参数true const iSSign = config.headers['sign']; if (iSSign || iSSign === undefined) { const timeStamp = new Date().getTime().toString().substr(0, 10); config.headers['timeStamp'] = timeStamp; //config.headers['signature'] = sign(config, nonce, timeStamp, store.getters.appSecret) } //开启下载流模式 if (config.isDownload) { config.responseType = 'blob'; delete config.isDownload; } return config }, error => { // do something with request error return Promise.reject(error) } ) function MessageFunc(opt, res = {}) {//detailMsg\msg\message let messageCustomClass = eap_utils.StringFunc.id(8); let __position = { top: 15, margin: 20, right: 15 }; let isMsgBox = window.HIVUI_SETTING.messageType == "msgBox"; if (opt.showClose) {//关闭按钮多偏移 __position.margin += 15; __position.right += 25; } if (isMsgBox) { __position.top = 0; __position.right = 0; __position.margin = 20; } let msgTpl = `<div class="zhcDetailMsg" style="max-height:200px;min-height: 20px;padding:3px 0;word-break:break-all;margin-right: ${__position.margin}px;overflow:auto;transition:all 0.3s;"><span>${res.msg || res.resmessage}</span><i class="el-icon-caret-right" title="${(window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_showErrorDetail) || '弹出报错详情'}" style="position: absolute;top:${__position.top}px;right:${__position.right}px;font-size:18px;color:#F56C6C;cursor:pointer;transition:all 0.3s;"></i></div>`; let msgVue = null; let isShowDetail = res.detailMsg && (res.detailMsg != opt.message); opt.customClass = messageCustomClass; if (isMsgBox) { if (isShowDetail) { opt.message = msgTpl; } else { opt.message = `<div style="max-height:200px;word-break:break-all;overflow:auto;">${opt.message}</div>`; } msgVue = Object(external_ELEMENT_["MessageBox"])({ ...{ title: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_msgTips) || "消息提示", confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_define) || '确定', dangerouslyUseHTMLString: true }, ...opt }); } else { if (isShowDetail) { opt.message = msgTpl; opt.dangerouslyUseHTMLString = true; } msgVue = Object(external_ELEMENT_["Message"])(opt); } if (isShowDetail) { let arrowBtn = document.querySelector("." + messageCustomClass + " .zhcDetailMsg>i"); arrowBtn.onclick = () => { if (arrowBtn.previousSibling.className == "zhcDetailMsg") { arrowBtn.previousSibling.innerText = res.msg || res.resmessage; arrowBtn.previousSibling.className = ""; arrowBtn.title = (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_showErrorDetail) || "弹出报错详情"; arrowBtn.style.color = "#F56C6C"; arrowBtn.style.transform = "rotate(0)"; } else { arrowBtn.previousSibling.innerText = res.detailMsg; arrowBtn.previousSibling.className = "zhcDetailMsg"; arrowBtn.title = (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_hideErrorDetail) || "收起报错详情"; arrowBtn.style.color = ""; arrowBtn.style.transform = "rotate(90deg)"; } }; } } function for401(isSkip) { // Alert('你已被登出,,点击确认按钮进入登录页', '登录超时', { // confirmButtonText: '确定', // callback: action => { // window.location.href = window.appsettings.login; // } // }); if (!isCrossDomain && window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { let loginUrl = window.HIVUI_SETTING.customLoginUrl||window.HIVUI_SETTING.loginUrl if (window.HIVUI_SETTING.isSingleLogin) { loginUrl = window.HIVUI_SETTING.singleLoginUrl; if (loginUrl.endsWith("=")) { let params = window.location.search.slice(1).split("&").filter(item => { if (item.indexOf("ticket") == -1) { return item } }); let currPageUrl = window.location.origin + window.location.pathname; if (window.HIVUI_SETTING.mainPageUrl.indexOf(currPageUrl) == -1) { params.push("eapReturnUrl=" + currPageUrl); currPageUrl = window.HIVUI_SETTING.mainPageUrl; } currPageUrl = currPageUrl.replace(/#\//g, ""); loginUrl = loginUrl + currPageUrl + (params.length > 0 ? '?' : '') + params.join("&"); } } else { if (!loginUrl.endsWith("#/")) { loginUrl += "#/"; } loginUrl += "?eapReturnUrl=" + encodeURIComponent(window.location.href); } if ((!isCrossDomain && top.window.mainPageInitErrorJump) || isSkip) { window.location.href = loginUrl; } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert((window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips) || '你已被登出,请重新登录', (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut) || '登录超时', { confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist) || '重新登录', type: 'warning', showClose:false, }).then(() => { window.location.href = loginUrl; }); } } } service.interceptors.response.use(response => { if (response.config.responseType == "arraybuffer") { return response; } if (response.config.normalResult) return response; const res = response.data; if (res.type == "application/octet-stream" || response.headers["content-type"] == "application/octet-stream") { return response; } else if (response.config.responseType == "blob") { //流数据抛错,将blob类型重新转换成json let fileReader = new FileReader(); fileReader.readAsText(res, 'utf-8'); fileReader.onload = function () { let __data = JSON.parse(fileReader.result); return hasMessageFunc && MessageFunc({ message: __data.msg || __data.message || 'Error', type: 'error', showClose: true, }, res) } return Promise.reject(res) } if (response.status != "200" || (response.data.status && response.data.status != "200")) { let data = {} try { data = JSON.parse(response.config.data) } catch (ex) { } if (data.__isIntercept === false) { if (response.config.data) { try { res.options = JSON.parse(response.config.data) } catch (e) { } } return Promise.reject(res) } setTimeout(()=>{ hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res); },0); if (res.status == 401 || (res.data && res.data.status == 401)) { for401(response.config.isSkip); return Promise.reject(error) } //return Promise.reject(new Error(res.message || 'Error')) return Promise.reject(res, JSON.parse(response.config.data || "{}")) } else { res.dataPack = res.dataPack || res.data if ((res.detailMsg || res.msg) && response.config.showSuccessTips) { hasMessageFunc && MessageFunc({ message: res.detailMsg || res.msg || 'Error', type: (res.popupbox && res.popupbox.type) || 'success', showClose: true, duration: 5 * 1000 }, res); } if (response.config.data) { try { res.options = JSON.parse(response.config.data) } catch (e) { } } return res } }, error => { let res = error.response; if(error.config&&!error.config.showError){ return; } if(!res){ if (error.code === 'ECONNABORTED' && error.message.includes('timeout')) { hasMessageFunc && MessageFunc({ message: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeoutError) || '接口请求超时!', type: 'error', showClose: true, duration: 5 * 1000 }); }else{ hasMessageFunc && MessageFunc({ message: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_responseNull) || '后端请求返回出错,请联系开发人员', type: 'error', showClose: true, duration: 5 * 1000 }); } return; } let data = {} try { data = JSON.parse(res.config.data) } catch (ex) { } if (data.__isIntercept === false) { return Promise.reject(error) } if (res.status == 401 || (res.data && res.data.status == 401)) { for401(res.config.isSkip); return Promise.reject(error) } console.log('err' + error)// for debug // Message({ // message: error.message, // type: 'error', // duration: 5 * 1000 // }) return Promise.reject(error) }); /* harmony default export */ var eap_axios = (service); function ajax(config) { const token = getToken(); if (window.HIVUI_SETTING) { if ((window.HIVUI_SETTING.requestTimeout || window.HIVUI_SETTING.requestTimeout == 0) && !config.isCustomTimeout) { config.timeout = window.HIVUI_SETTING.requestTimeout; } if (window.HIVUI_SETTING.projectName) { let pn = window.HIVUI_SETTING.projectName; if (config.url.indexOf('?') == -1) config.url = config.url + "?pn=" + pn else config.url = config.url + "&pn=" + pn } } if (window.HIVUI_SETTING) { let site = window.HIVUI_SETTING.url //补全URL if (!config.url.toLowerCase().startsWith("http")) { if (config.url.startsWith("/")) config.url = site + config.url; else config.url = site + "/" + config.url; } } //创建XMLHttpRequest对象 let url = config.url || ""; let method = config.method || "GET"; let data = config.data || {}; let success = config.success; let async = config.async == undefined ? true : config.async; let fail = config.fail; var xhr = new XMLHttpRequest(); //true表示异步 xhr.open(method, url, async); if (config.timeout && async === true) xhr.timeout = config.timeout; xhr.setRequestHeader('Content-Type', 'application/json;charset=UTF-8'); if (token && !config.noToken && !(url.startsWith("http") && !url.startsWith(window.HIVUI_SETTING.url))) { xhr.setRequestHeader('Authorization', 'Bearer ' + token); } if (JSON.stringify(data) != "{}") { xhr.send(JSON.stringify(data)); } else { xhr.send(); } if (async == false) { if (xhr.status == 200) { var res = JSON.parse(xhr.responseText); success && success.call(this, res); } else { var res = JSON.parse(xhr.responseText); hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res) if (res.status == 401 || (res.data && res.data.status == 401)) { if (!isCrossDomain && window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert((window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips) || '你已被登出,请重新登录', (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut) || '登录超时', { confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist) || '重新登录', type: 'warning', showClose:false, }).then(() => { let loginUrl = window.HIVUI_SETTING.loginUrl if (loginUrl.endsWith("=")) loginUrl = loginUrl + window.location.href; window.location.href = window.HIVUI_SETTING.customLoginUrl||loginUrl }) } } else fail && fail.call(this, xhr.responseText); } } else { xhr.onreadystatechange = function () { // readyState == 4说明请求已完成 if (xhr.readyState == 4) { if (xhr.status == 200 || xhr.status == "200") { var res = JSON.parse(xhr.responseText); //responseText:从服务器获得数据 success && success.call(this, res); } else { var res = JSON.parse(xhr.responseText); hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res) if (res.status == 401 || (res.data && res.data.status == 401)) { if (!isCrossDomain && window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert((window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips) || '你已被登出,请重新登录', (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut) || '登录超时', { confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist) || '重新登录', type: 'warning', showClose:false, }).then(() => { let loginUrl = window.HIVUI_SETTING.loginUrl if (loginUrl.endsWith("=")) loginUrl = loginUrl + window.location.href; window.location.href = window.HIVUI_SETTING.customLoginUrl||loginUrl }) } } else fail && fail.call(this, xhr.responseText); } } }; } } // CONCATENATED MODULE: ./src/eap/request.js let request_service = eap_axios; //export default service /* harmony default export */ var eap_request = (function (cfg) { try { if (((window && window.isElectron) || (top && top.window && top.window.isElectron))) { var urlsCallback if (window.isElectron) urlsCallback = window.electronCfg.urlCallback if (top.window.isElectron) urlsCallback = top.window.electronCfg.urlCallback for (var key in urlsCallback) { if (cfg.url.indexOf(key) > -1) return urlsCallback[key](cfg); } } } catch (e) { } if (typeof (cfg.timeout) != "undefined") { cfg.isCustomTimeout = true; } return eap_axios(cfg); }); // CONCATENATED MODULE: ./src/eap/user/service.js var service_request = eap_request; // if (window.HIVUI_SETTING) // request = window.HIVUI_SETTING.request; // else { // window.HIVUI_SETTING = hiSetting // } /** * 登陆 * @param {Id} 系统Id */ function login(userName, pwd) { var data = { username: userName.trim(), password: md5_default()(pwd) }; let _promise=service_request({ url: window.HIVUI_SETTING.login||(window.HIVUI_SETTING.serverUrl+"/login/sso-login"), method: 'post', data: data }); _promise.then(res=>{ const data = res if(data.token){ setToken(data.token); } if(location.hash=="#miniLogin"){//外部调用登录接口时小登录判断 if(eap_utils.StringFunc.getUrlValue("questType")=="ajax"){ top.window.SysPage&&top.window.SysPage.closeMiniLogin(eap_utils.StringFunc.getUrlValue("isRefresh")); }else{ location.reload(); } } }); return _promise; } /** * 登出 */ function logout() { if(!getToken()){ return new Promise((resolve, reject)=>{ resolve(); }); } let _promise=service_request({ url: window.HIVUI_SETTING.logout||(window.HIVUI_SETTING.serverUrl+"/login/sso-logout"), method: 'post' }); _promise.then(res=>{ removeToken(); }); return _promise; } /** * 获取用户信息 * @param {data} */ function getInfo(data) { return service_request({ url: window.HIVUI_SETTING.userInfo, method: 'post', data: data }) } function initUser(data) { let promise = getInfo(data) promise.then(res => { if (!window.eap) window.eap = {} window.eap.userInfo = res.dataPack; }) return promise; } //修改密码 function modifyPw(oldPwd, newPwd) { return service_request({ url: window.HIVUI_SETTING.serverUrl + "/sys/user/update-pwd", method: 'post', data: { oldPwd, newPwd } }) } //获取岗位列表 function getBzList(data) { return service_request({ url: window.HIVUI_SETTING.serverUrl + "/sys/auth/func-multi-bz", method: 'post', data: data }) } /** * 解锁账户 * @param {data} */ function unlock(userId,pwd) { var data = { userId: userId.trim(), password: md5_default()(pwd) }; return service_request({ url: window.HIVUI_SETTING.serverUrl + "/login/unlock", method: 'post', data: data }) } /* harmony default export */ var user_service = ({ login, logout, getInfo, modifyPw, getBzList, unlock }); // CONCATENATED MODULE: ./src/eap/user/index.js /* harmony default export */ var user = ({ service: user_service,auth: auth }); // CONCATENATED MODULE: ./src/eap/page/index.js /* harmony default export */ var page = ({ closepage() { if (top.window.SysPage && top.window.SysPage.closePage) { top.window.SysPage.closePage(); } else { window.close(); } }, /* title:标签页名称,不传则默认显示功能名称 url:标签页访问地址 params:携带参数 method:传"get"/"post"参数,不传默认为get target:传"me"/"_blank",me为当前标签页覆盖打开,_blank为必定新标签打开,不传参数则默认同url标签覆盖,不同的url打开新标签 */ newPage(title,url,params,method,target){ if(url&&url.indexOf("http")!=0){ url=location.origin+(top.window.deployDir?("/"+top.window.deployDir):'') + (top.window.pName?("/"+top.window.pName):'') + url; } if (top.window.SysPage && top.window.SysPage.newPage) { top.window.SysPage.newPage(title,url,params,method,target); } else { window.open(url,"_blank"); } } }); // CONCATENATED MODULE: ./src/eap/dataHelper/index.js //(param, modelFile, funcPath, { request, url, method, pn, extParam }) let dataHelper_query = (param, modelFile, funcPath, options = {}) => { let setting = window.HIVUI_SETTING if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName; if (!options.url && setting) options.url = setting.queryUrl; // //request, url, method, pn, extParam return dataHelper.queryHelper.query(param, modelFile, funcPath, options) } let dataHelper_exportData = (param, modelFile, funcPath, options = {}) => { let setting = window.HIVUI_SETTING if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName if (!options.url && setting) options.url = setting.exportUrl; //{ request, url, method, pn, extParam } return dataHelper.queryHelper.exportData(param, modelFile, funcPath, options) } class dataHelper_SaveHelper extends dataHelper.saveHelper { constructor(modelFile, funcPath, options = {}) { let setting = window.HIVUI_SETTING if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName; if (!options.url && setting) options.url = setting.saveUrl; //{ request, url, pn, extParam } super(modelFile, funcPath, options); } } /* harmony default export */ var eap_dataHelper = ({ query: dataHelper_query, exportData: dataHelper_exportData, Param: dataHelper.queryHelper.Param, Where: dataHelper.queryHelper.Where, types: dataHelper.queryHelper.types, Orders: dataHelper.queryHelper.Orders, SaveHelper: dataHelper_SaveHelper }); // EXTERNAL MODULE: ./node_modules/lodash/defaultsDeep.js var defaultsDeep = __webpack_require__("3f84"); var defaultsDeep_default = /*#__PURE__*/__webpack_require__.n(defaultsDeep); // EXTERNAL MODULE: ./package_eap.json var package_eap = __webpack_require__("ed27"); // CONCATENATED MODULE: ./src/eap/index.js function mergeConfig() { let args = [...arguments] return defaultsDeep_default()(...args) } let eap_lang = { get(key) { //return Vue.prototype.$t(key) let keys = {} if (window.lang && window.lang.keys) keys = window.lang.keys; return keys[key] || key; } } /* harmony default export */ var eap = ({ user: user,ajax: ajax, request: eap_request, mergeConfig, lang: eap_lang, utils: eap_utils, page: page, dataHelper: eap_dataHelper, }); //加载默认设至到全局 if (!window.HIVUI_SETTING) { window.HIVUI_SETTING = src_hiSetting; //console.log("已加载默认配置:", hiSetting) } window.lang = eap_lang //输出版本信息 console.log( '%c hi-eap-basic %c v'.concat(package_eap.version, ' '), 'padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #ff8e15; font-weight: bold;', 'padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;', ); //console.log(process.env.NODE_VER) // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (eap); /***/ }), /***/ "fba5": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Checks if a list cache value for `key` exists. * * @private * @name has * @memberOf ListCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function listCacheHas(key) { return assocIndexOf(this.__data__, key) > -1; } module.exports = listCacheHas; /***/ }), /***/ "fbb2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GenericBarcode = undefined; 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 _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var GenericBarcode = function (_Barcode) { _inherits(GenericBarcode, _Barcode); function GenericBarcode(data, options) { _classCallCheck(this, GenericBarcode); return _possibleConstructorReturn(this, (GenericBarcode.__proto__ || Object.getPrototypeOf(GenericBarcode)).call(this, data, options)); // Sets this.data and this.text } // Return the corresponding binary numbers for the data provided _createClass(GenericBarcode, [{ key: "encode", value: function encode() { return { data: "10101010101010101010101010101010101010101", text: this.text }; } // Resturn true/false if the string provided is valid for this encoder }, { key: "valid", value: function valid() { return true; } }]); return GenericBarcode; }(_Barcode3.default); exports.GenericBarcode = GenericBarcode; /***/ }), /***/ "fd7c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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; }; exports.default = function (old, replaceObj) { return _extends({}, old, replaceObj); }; /***/ }), /***/ "ff84": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _CODE = __webpack_require__("349c"); var _CODE2 = __webpack_require__("da3d"); var _EAN_UPC = __webpack_require__("241e"); var _ITF = __webpack_require__("9ffa"); var _MSI = __webpack_require__("8e51"); var _pharmacode = __webpack_require__("7cb9"); var _codabar = __webpack_require__("c17b"); var _GenericBarcode = __webpack_require__("fbb2"); exports.default = { CODE39: _CODE.CODE39, CODE128: _CODE2.CODE128, CODE128A: _CODE2.CODE128A, CODE128B: _CODE2.CODE128B, CODE128C: _CODE2.CODE128C, EAN13: _EAN_UPC.EAN13, EAN8: _EAN_UPC.EAN8, EAN5: _EAN_UPC.EAN5, EAN2: _EAN_UPC.EAN2, UPC: _EAN_UPC.UPC, UPCE: _EAN_UPC.UPCE, ITF14: _ITF.ITF14, ITF: _ITF.ITF, MSI: _MSI.MSI, MSI10: _MSI.MSI10, MSI11: _MSI.MSI11, MSI1010: _MSI.MSI1010, MSI1110: _MSI.MSI1110, pharmacode: _pharmacode.pharmacode, codabar: _codabar.codabar, GenericBarcode: _GenericBarcode.GenericBarcode }; /***/ }), /***/ "ffd6": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var symbolTag = '[object Symbol]'; /** * Checks if `value` is classified as a `Symbol` primitive or object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * * _.isSymbol(Symbol.iterator); * // => true * * _.isSymbol('abc'); * // => false */ function isSymbol(value) { return typeof value == 'symbol' || (isObjectLike(value) && baseGetTag(value) == symbolTag); } module.exports = isSymbol; /***/ }) /******/ }); }); //# sourceMappingURL=eap.umd.js.map