g(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}\nfunction g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D=\"function\"===typeof setTimeout?setTimeout:null,E=\"function\"===typeof clearTimeout?clearTimeout:null,F=\"undefined\"!==typeof setImmediate?setImmediate:null;\n\"undefined\"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t)}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}}\nfunction J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if(\"function\"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?v.callback=e:v===h(r)&&k(r);G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b);w=!1}return w}finally{v=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1;\nfunction M(){return exports.unstable_now()-Qa||125d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"NIL\", {\n enumerable: true,\n get: function get() {\n return _nil.default;\n }\n});\nObject.defineProperty(exports, \"parse\", {\n enumerable: true,\n get: function get() {\n return _parse.default;\n }\n});\nObject.defineProperty(exports, \"stringify\", {\n enumerable: true,\n get: function get() {\n return _stringify.default;\n }\n});\nObject.defineProperty(exports, \"v1\", {\n enumerable: true,\n get: function get() {\n return _v.default;\n }\n});\nObject.defineProperty(exports, \"v3\", {\n enumerable: true,\n get: function get() {\n return _v2.default;\n }\n});\nObject.defineProperty(exports, \"v4\", {\n enumerable: true,\n get: function get() {\n return _v3.default;\n }\n});\nObject.defineProperty(exports, \"v5\", {\n enumerable: true,\n get: function get() {\n return _v4.default;\n }\n});\nObject.defineProperty(exports, \"validate\", {\n enumerable: true,\n get: function get() {\n return _validate.default;\n }\n});\nObject.defineProperty(exports, \"version\", {\n enumerable: true,\n get: function get() {\n return _version.default;\n }\n});\n\nvar _v = _interopRequireDefault(require(\"./v1.js\"));\n\nvar _v2 = _interopRequireDefault(require(\"./v3.js\"));\n\nvar _v3 = _interopRequireDefault(require(\"./v4.js\"));\n\nvar _v4 = _interopRequireDefault(require(\"./v5.js\"));\n\nvar _nil = _interopRequireDefault(require(\"./nil.js\"));\n\nvar _version = _interopRequireDefault(require(\"./version.js\"));\n\nvar _validate = _interopRequireDefault(require(\"./validate.js\"));\n\nvar _stringify = _interopRequireDefault(require(\"./stringify.js\"));\n\nvar _parse = _interopRequireDefault(require(\"./parse.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n/*\n * Browser-compatible JavaScript MD5\n *\n * Modification of JavaScript MD5\n * https://github.com/blueimp/JavaScript-MD5\n *\n * Copyright 2011, Sebastian Tschan\n * https://blueimp.net\n *\n * Licensed under the MIT license:\n * https://opensource.org/licenses/MIT\n *\n * Based on\n * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message\n * Digest Algorithm, as defined in RFC 1321.\n * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n * Distributed under the BSD License\n * See http://pajhome.org.uk/crypt/md5 for more info.\n */\nfunction md5(bytes) {\n if (typeof bytes === 'string') {\n const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape\n\n bytes = new Uint8Array(msg.length);\n\n for (let i = 0; i < msg.length; ++i) {\n bytes[i] = msg.charCodeAt(i);\n }\n }\n\n return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));\n}\n/*\n * Convert an array of little-endian words to an array of bytes\n */\n\n\nfunction md5ToHexEncodedArray(input) {\n const output = [];\n const length32 = input.length * 32;\n const hexTab = '0123456789abcdef';\n\n for (let i = 0; i < length32; i += 8) {\n const x = input[i >> 5] >>> i % 32 & 0xff;\n const hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);\n output.push(hex);\n }\n\n return output;\n}\n/**\n * Calculate output length with padding and bit length\n */\n\n\nfunction getOutputLength(inputLength8) {\n return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;\n}\n/*\n * Calculate the MD5 of an array of little-endian words, and a bit length.\n */\n\n\nfunction wordsToMd5(x, len) {\n /* append padding */\n x[len >> 5] |= 0x80 << len % 32;\n x[getOutputLength(len) - 1] = len;\n let a = 1732584193;\n let b = -271733879;\n let c = -1732584194;\n let d = 271733878;\n\n for (let i = 0; i < x.length; i += 16) {\n const olda = a;\n const oldb = b;\n const oldc = c;\n const oldd = d;\n a = md5ff(a, b, c, d, x[i], 7, -680876936);\n d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);\n c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);\n b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);\n a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);\n d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);\n c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);\n b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);\n a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);\n d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);\n c = md5ff(c, d, a, b, x[i + 10], 17, -42063);\n b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);\n a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);\n d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);\n c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);\n b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);\n a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);\n d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);\n c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);\n b = md5gg(b, c, d, a, x[i], 20, -373897302);\n a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);\n d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);\n c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);\n b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);\n a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);\n d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);\n c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);\n b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);\n a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);\n d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);\n c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);\n b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);\n a = md5hh(a, b, c, d, x[i + 5], 4, -378558);\n d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);\n c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);\n b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);\n a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);\n d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);\n c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);\n b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);\n a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);\n d = md5hh(d, a, b, c, x[i], 11, -358537222);\n c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);\n b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);\n a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);\n d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);\n c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);\n b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);\n a = md5ii(a, b, c, d, x[i], 6, -198630844);\n d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);\n c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);\n b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);\n a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);\n d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);\n c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);\n b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);\n a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);\n d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);\n c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);\n b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);\n a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);\n d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);\n c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);\n b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);\n a = safeAdd(a, olda);\n b = safeAdd(b, oldb);\n c = safeAdd(c, oldc);\n d = safeAdd(d, oldd);\n }\n\n return [a, b, c, d];\n}\n/*\n * Convert an array bytes to an array of little-endian words\n * Characters >255 have their high-byte silently ignored.\n */\n\n\nfunction bytesToWords(input) {\n if (input.length === 0) {\n return [];\n }\n\n const length8 = input.length * 8;\n const output = new Uint32Array(getOutputLength(length8));\n\n for (let i = 0; i < length8; i += 8) {\n output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;\n }\n\n return output;\n}\n/*\n * Add integers, wrapping at 2^32. This uses 16-bit operations internally\n * to work around bugs in some JS interpreters.\n */\n\n\nfunction safeAdd(x, y) {\n const lsw = (x & 0xffff) + (y & 0xffff);\n const msw = (x >> 16) + (y >> 16) + (lsw >> 16);\n return msw << 16 | lsw & 0xffff;\n}\n/*\n * Bitwise rotate a 32-bit number to the left.\n */\n\n\nfunction bitRotateLeft(num, cnt) {\n return num << cnt | num >>> 32 - cnt;\n}\n/*\n * These functions implement the four basic operations the algorithm uses.\n */\n\n\nfunction md5cmn(q, a, b, x, s, t) {\n return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);\n}\n\nfunction md5ff(a, b, c, d, x, s, t) {\n return md5cmn(b & c | ~b & d, a, b, x, s, t);\n}\n\nfunction md5gg(a, b, c, d, x, s, t) {\n return md5cmn(b & d | c & ~d, a, b, x, s, t);\n}\n\nfunction md5hh(a, b, c, d, x, s, t) {\n return md5cmn(b ^ c ^ d, a, b, x, s, t);\n}\n\nfunction md5ii(a, b, c, d, x, s, t) {\n return md5cmn(c ^ (b | ~d), a, b, x, s, t);\n}\n\nvar _default = md5;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nconst randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nvar _default = {\n randomUUID\n};\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _default = '00000000-0000-0000-0000-000000000000';\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _validate = _interopRequireDefault(require(\"./validate.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction parse(uuid) {\n if (!(0, _validate.default)(uuid)) {\n throw TypeError('Invalid UUID');\n }\n\n let v;\n const arr = new Uint8Array(16); // Parse ########-....-....-....-............\n\n arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;\n arr[1] = v >>> 16 & 0xff;\n arr[2] = v >>> 8 & 0xff;\n arr[3] = v & 0xff; // Parse ........-####-....-....-............\n\n arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;\n arr[5] = v & 0xff; // Parse ........-....-####-....-............\n\n arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;\n arr[7] = v & 0xff; // Parse ........-....-....-####-............\n\n arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;\n arr[9] = v & 0xff; // Parse ........-....-....-....-############\n // (Use \"/\" to avoid 32-bit truncation when bit-shifting high-order bytes)\n\n arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;\n arr[11] = v / 0x100000000 & 0xff;\n arr[12] = v >>> 24 & 0xff;\n arr[13] = v >>> 16 & 0xff;\n arr[14] = v >>> 8 & 0xff;\n arr[15] = v & 0xff;\n return arr;\n}\n\nvar _default = parse;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = rng;\n// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\n\nfunction rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n// Adapted from Chris Veness' SHA1 code at\n// http://www.movable-type.co.uk/scripts/sha1.html\nfunction f(s, x, y, z) {\n switch (s) {\n case 0:\n return x & y ^ ~x & z;\n\n case 1:\n return x ^ y ^ z;\n\n case 2:\n return x & y ^ x & z ^ y & z;\n\n case 3:\n return x ^ y ^ z;\n }\n}\n\nfunction ROTL(x, n) {\n return x << n | x >>> 32 - n;\n}\n\nfunction sha1(bytes) {\n const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];\n const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];\n\n if (typeof bytes === 'string') {\n const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape\n\n bytes = [];\n\n for (let i = 0; i < msg.length; ++i) {\n bytes.push(msg.charCodeAt(i));\n }\n } else if (!Array.isArray(bytes)) {\n // Convert Array-like to Array\n bytes = Array.prototype.slice.call(bytes);\n }\n\n bytes.push(0x80);\n const l = bytes.length / 4 + 2;\n const N = Math.ceil(l / 16);\n const M = new Array(N);\n\n for (let i = 0; i < N; ++i) {\n const arr = new Uint32Array(16);\n\n for (let j = 0; j < 16; ++j) {\n arr[j] = bytes[i * 64 + j * 4] << 24 | bytes[i * 64 + j * 4 + 1] << 16 | bytes[i * 64 + j * 4 + 2] << 8 | bytes[i * 64 + j * 4 + 3];\n }\n\n M[i] = arr;\n }\n\n M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);\n M[N - 1][14] = Math.floor(M[N - 1][14]);\n M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;\n\n for (let i = 0; i < N; ++i) {\n const W = new Uint32Array(80);\n\n for (let t = 0; t < 16; ++t) {\n W[t] = M[i][t];\n }\n\n for (let t = 16; t < 80; ++t) {\n W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);\n }\n\n let a = H[0];\n let b = H[1];\n let c = H[2];\n let d = H[3];\n let e = H[4];\n\n for (let t = 0; t < 80; ++t) {\n const s = Math.floor(t / 20);\n const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0;\n e = d;\n d = c;\n c = ROTL(b, 30) >>> 0;\n b = a;\n a = T;\n }\n\n H[0] = H[0] + a >>> 0;\n H[1] = H[1] + b >>> 0;\n H[2] = H[2] + c >>> 0;\n H[3] = H[3] + d >>> 0;\n H[4] = H[4] + e >>> 0;\n }\n\n return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff];\n}\n\nvar _default = sha1;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nexports.unsafeStringify = unsafeStringify;\n\nvar _validate = _interopRequireDefault(require(\"./validate.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nfunction unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!(0, _validate.default)(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nvar _default = stringify;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _rng = _interopRequireDefault(require(\"./rng.js\"));\n\nvar _stringify = require(\"./stringify.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// **`v1()` - Generate time-based UUID**\n//\n// Inspired by https://github.com/LiosK/UUID.js\n// and http://docs.python.org/library/uuid.html\nlet _nodeId;\n\nlet _clockseq; // Previous uuid creation time\n\n\nlet _lastMSecs = 0;\nlet _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details\n\nfunction v1(options, buf, offset) {\n let i = buf && offset || 0;\n const b = buf || new Array(16);\n options = options || {};\n let node = options.node || _nodeId;\n let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not\n // specified. We do this lazily to minimize issues related to insufficient\n // system entropy. See #189\n\n if (node == null || clockseq == null) {\n const seedBytes = options.random || (options.rng || _rng.default)();\n\n if (node == null) {\n // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)\n node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];\n }\n\n if (clockseq == null) {\n // Per 4.2.2, randomize (14 bit) clockseq\n clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;\n }\n } // UUID timestamps are 100 nano-second units since the Gregorian epoch,\n // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so\n // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'\n // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.\n\n\n let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock\n // cycle to simulate higher resolution clock\n\n let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)\n\n const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression\n\n if (dt < 0 && options.clockseq === undefined) {\n clockseq = clockseq + 1 & 0x3fff;\n } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new\n // time interval\n\n\n if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {\n nsecs = 0;\n } // Per 4.2.1.2 Throw error if too many uuids are requested\n\n\n if (nsecs >= 10000) {\n throw new Error(\"uuid.v1(): Can't create more than 10M uuids/sec\");\n }\n\n _lastMSecs = msecs;\n _lastNSecs = nsecs;\n _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch\n\n msecs += 12219292800000; // `time_low`\n\n const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;\n b[i++] = tl >>> 24 & 0xff;\n b[i++] = tl >>> 16 & 0xff;\n b[i++] = tl >>> 8 & 0xff;\n b[i++] = tl & 0xff; // `time_mid`\n\n const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;\n b[i++] = tmh >>> 8 & 0xff;\n b[i++] = tmh & 0xff; // `time_high_and_version`\n\n b[i++] = tmh >>> 24 & 0xf | 0x10; // include version\n\n b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)\n\n b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`\n\n b[i++] = clockseq & 0xff; // `node`\n\n for (let n = 0; n < 6; ++n) {\n b[i + n] = node[n];\n }\n\n return buf || (0, _stringify.unsafeStringify)(b);\n}\n\nvar _default = v1;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _v = _interopRequireDefault(require(\"./v35.js\"));\n\nvar _md = _interopRequireDefault(require(\"./md5.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst v3 = (0, _v.default)('v3', 0x30, _md.default);\nvar _default = v3;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.URL = exports.DNS = void 0;\nexports.default = v35;\n\nvar _stringify = require(\"./stringify.js\");\n\nvar _parse = _interopRequireDefault(require(\"./parse.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction stringToBytes(str) {\n str = unescape(encodeURIComponent(str)); // UTF8 escape\n\n const bytes = [];\n\n for (let i = 0; i < str.length; ++i) {\n bytes.push(str.charCodeAt(i));\n }\n\n return bytes;\n}\n\nconst DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';\nexports.DNS = DNS;\nconst URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';\nexports.URL = URL;\n\nfunction v35(name, version, hashfunc) {\n function generateUUID(value, namespace, buf, offset) {\n var _namespace;\n\n if (typeof value === 'string') {\n value = stringToBytes(value);\n }\n\n if (typeof namespace === 'string') {\n namespace = (0, _parse.default)(namespace);\n }\n\n if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {\n throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');\n } // Compute hash of namespace and value, Per 4.3\n // Future: Use spread syntax when supported on all platforms, e.g. `bytes =\n // hashfunc([...namespace, ... value])`\n\n\n let bytes = new Uint8Array(16 + value.length);\n bytes.set(namespace);\n bytes.set(value, namespace.length);\n bytes = hashfunc(bytes);\n bytes[6] = bytes[6] & 0x0f | version;\n bytes[8] = bytes[8] & 0x3f | 0x80;\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = bytes[i];\n }\n\n return buf;\n }\n\n return (0, _stringify.unsafeStringify)(bytes);\n } // Function#name is not settable on some platforms (#270)\n\n\n try {\n generateUUID.name = name; // eslint-disable-next-line no-empty\n } catch (err) {} // For CommonJS default export support\n\n\n generateUUID.DNS = DNS;\n generateUUID.URL = URL;\n return generateUUID;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _native = _interopRequireDefault(require(\"./native.js\"));\n\nvar _rng = _interopRequireDefault(require(\"./rng.js\"));\n\nvar _stringify = require(\"./stringify.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction v4(options, buf, offset) {\n if (_native.default.randomUUID && !buf && !options) {\n return _native.default.randomUUID();\n }\n\n options = options || {};\n\n const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return (0, _stringify.unsafeStringify)(rnds);\n}\n\nvar _default = v4;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _v = _interopRequireDefault(require(\"./v35.js\"));\n\nvar _sha = _interopRequireDefault(require(\"./sha1.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst v5 = (0, _v.default)('v5', 0x50, _sha.default);\nvar _default = v5;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regex = _interopRequireDefault(require(\"./regex.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && _regex.default.test(uuid);\n}\n\nvar _default = validate;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _validate = _interopRequireDefault(require(\"./validate.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction version(uuid) {\n if (!(0, _validate.default)(uuid)) {\n throw TypeError('Invalid UUID');\n }\n\n return parseInt(uuid.slice(14, 15), 16);\n}\n\nvar _default = version;\nexports.default = _default;","// Axios v1.4.0 Copyright (c) 2023 Matt Zabriskie and contributors\n'use strict';\n\nfunction bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n};\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n};\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n};\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n };\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n};\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n};\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n};\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n};\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n};\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n};\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n};\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n};\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n if (reducer(descriptor, name, obj) !== false) {\n reducedDescriptors[name] = descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n};\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n};\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n };\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n};\n\nconst noop = () => {};\n\nconst toFiniteNumber = (value, defaultValue) => {\n value = +value;\n return Number.isFinite(value) ? value : defaultValue;\n};\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz';\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n};\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0];\n }\n\n return str;\n};\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n };\n\n return visit(obj, 0);\n};\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\nvar utils = {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable\n};\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype$1 = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype$1, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype$1);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\n// eslint-disable-next-line strict\nvar httpAdapter = null;\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode$1(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode$1);\n } : encode$1;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nfunction buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nvar InterceptorManager$1 = InterceptorManager;\n\nvar transitionalDefaults = {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n\nvar URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n\nvar FormData$1 = typeof FormData !== 'undefined' ? FormData : null;\n\nvar Blob$1 = typeof Blob !== 'undefined' ? Blob : null;\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst isStandardBrowserEnv = (() => {\n let product;\n if (typeof navigator !== 'undefined' && (\n (product = navigator.product) === 'ReactNative' ||\n product === 'NativeScript' ||\n product === 'NS')\n ) {\n return false;\n }\n\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n})();\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\n const isStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\n\nvar platform = {\n isBrowser: true,\n classes: {\n URLSearchParams: URLSearchParams$1,\n FormData: FormData$1,\n Blob: Blob$1\n },\n isStandardBrowserEnv,\n isStandardBrowserWebWorkerEnv,\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n\nfunction toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nconst DEFAULT_CONTENT_TYPE = {\n 'Content-Type': undefined\n};\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n if (!hasJSONContentType) {\n return data;\n }\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nvar defaults$1 = defaults;\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nvar parseHeaders = rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite);\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\nutils.freezeMethods(AxiosHeaders.prototype);\nutils.freezeMethods(AxiosHeaders);\n\nvar AxiosHeaders$1 = AxiosHeaders;\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nfunction transformData(fns, response) {\n const config = this || defaults$1;\n const context = response || config;\n const headers = AxiosHeaders$1.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n\nfunction isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nfunction settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n\nvar cookies = platform.isStandardBrowserEnv ?\n\n// Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n const cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n// Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })();\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nfunction isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nfunction combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nfunction buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n\nvar isURLSameOrigin = platform.isStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })();\n\nfunction parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nfunction progressEventReducer(listener, isDownloadStream) {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n };\n}\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nvar xhrAdapter = isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n let requestData = config.data;\n const requestHeaders = AxiosHeaders$1.from(config.headers).normalize();\n const responseType = config.responseType;\n let onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n if (utils.isFormData(requestData)) {\n if (platform.isStandardBrowserEnv || platform.isStandardBrowserWebWorkerEnv) {\n requestHeaders.setContentType(false); // Let the browser set it\n } else {\n requestHeaders.setContentType('multipart/form-data;', false); // mobile/desktop app frameworks\n }\n }\n\n let request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n }\n\n const fullPath = buildFullPath(config.baseURL, config.url);\n\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders$1.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (platform.isStandardBrowserEnv) {\n // Add xsrf header\n const xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath))\n && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n }\n }\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(fullPath);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n};\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter\n};\n\nutils.forEach(knownAdapters, (fn, value) => {\n if(fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nvar adapters = {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n if((adapter = utils.isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter)) {\n break;\n }\n }\n\n if (!adapter) {\n if (adapter === false) {\n throw new AxiosError(\n `Adapter ${nameOrAdapter} is not supported by the environment`,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n throw new Error(\n utils.hasOwnProp(knownAdapters, nameOrAdapter) ?\n `Adapter '${nameOrAdapter}' is not available in the build` :\n `Unknown adapter '${nameOrAdapter}'`\n );\n }\n\n if (!utils.isFunction(adapter)) {\n throw new TypeError('adapter is not a function');\n }\n\n return adapter;\n },\n adapters: knownAdapters\n};\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nfunction dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders$1.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders$1.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders$1.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? thing.toJSON() : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nfunction mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n\nconst VERSION = \"1.4.0\";\n\nconst validators$1 = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators$1[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators$1.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nvar validator = {\n assertOptions,\n validators: validators$1\n};\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager$1(),\n response: new InterceptorManager$1()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n };\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n let contextHeaders;\n\n // Flatten headers\n contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n contextHeaders && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders$1.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nvar Axios$1 = Axios;\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nvar CancelToken$1 = CancelToken;\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nfunction spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nfunction isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n\nconst HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nvar HttpStatusCode$1 = HttpStatusCode;\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios$1(defaultConfig);\n const instance = bind(Axios$1.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios$1.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults$1);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios$1;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken$1;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders$1;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.HttpStatusCode = HttpStatusCode$1;\n\naxios.default = axios;\n\nmodule.exports = axios;\n//# sourceMappingURL=axios.cjs.map\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","'use strict';\n\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _axios = _interopRequireDefault(require(\"axios\"));\nvar _reactDom = _interopRequireDefault(require(\"react-dom\"));\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\nvar _reactBeautifulDnd = require(\"react-beautiful-dnd\");\nvar _uuid = require(\"uuid\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _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, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : \"undefined\" != typeof Symbol && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i[\"return\"] && (_r = _i[\"return\"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nvar data = window.shop_data;\nvar productStyle = function productStyle(style, snapshot, removeAnim, hovered, selected) {\n var custom = {\n opacity: snapshot.isDragging ? .7 : 1,\n backgroundColor: hovered || selected ? '#eae7f7' : 'initial'\n };\n if (!snapshot.isDropAnimating) {\n return _objectSpread(_objectSpread({}, style), custom);\n }\n if (removeAnim) {\n // cannot be 0, but make it super tiny\n custom.transitionDuration = '0.001s';\n }\n return _objectSpread(_objectSpread({}, style), custom);\n};\nvar cartStyle = function cartStyle(style, snapshot) {\n var isDraggingOver = snapshot.isDraggingOver;\n return _objectSpread(_objectSpread({}, style), {\n backgroundColor: isDraggingOver ? '#f2f2f2' : '#f9f9f9',\n border: isDraggingOver ? '1px dashed #ccc' : '0'\n });\n};\nvar nbrConnectorsStyle = function nbrConnectorsStyle(data) {\n if (!data || !data.nbrCurrentSlot) {\n return {};\n }\n var p = data.nbrCurrentSlot * 100 / data.nbrSlotMax;\n if (p > 100) {\n p = 100;\n }\n return {\n width: \"\".concat(p, \"%\")\n };\n};\nvar nbrClocksStyle = function nbrClocksStyle(data) {\n if (!data || !data.nbrCurrentClock) {\n return {};\n }\n var p = data.nbrCurrentClock * 100 / data.nbrClockMax;\n if (p > 100) {\n p = 100;\n }\n return {\n width: \"\".concat(p, \"%\")\n };\n};\nvar copy = function copy(model, source, destination, draggableSource, droppableDestination) {\n var destClone = Array.from(destination.items);\n destClone.splice(droppableDestination.index, 0, _objectSpread(_objectSpread({}, model[draggableSource]), {}, {\n id: (0, _uuid.v4)()\n }));\n return destClone;\n};\nvar reorder = function reorder(list, startIndex, endIndex) {\n var result = Array.from(list);\n var _result$splice = result.splice(startIndex, 1),\n _result$splice2 = _slicedToArray(_result$splice, 1),\n removed = _result$splice2[0];\n result.splice(endIndex, 0, removed);\n return result;\n};\nvar remove = function remove(list, startIndex) {\n var result = Array.from(list);\n result.splice(startIndex, 1);\n return result;\n};\nvar nbrOccupiedSlotsInCrate = function nbrOccupiedSlotsInCrate(items) {\n return items.reduce(function (prev, next) {\n return prev + (next.hp === 8 ? 2 : 1);\n }, 0);\n};\nfunction formatMoney(amount) {\n var decimalCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;\n var decimal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \".\";\n var thousands = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : \",\";\n // https://stackoverflow.com/questions/149055/how-can-i-format-numbers-as-currency-string-in-javascript\n // changes: return amount if error in order to avoid empty value\n try {\n decimalCount = Math.abs(decimalCount);\n decimalCount = isNaN(decimalCount) ? 2 : decimalCount;\n var negativeSign = amount < 0 ? \"-\" : \"\";\n var i = parseInt(amount = Math.abs(Number(amount) || 0).toFixed(decimalCount)).toString();\n var j = i.length > 3 ? i.length % 3 : 0;\n return negativeSign + (j ? i.substr(0, j) + thousands : '') + i.substr(j).replace(/(\\d{3})(?=\\d)/g, \"$1\" + thousands) + (decimalCount ? decimal + Math.abs(amount - i).toFixed(decimalCount).slice(2) : \"\");\n } catch (e) {\n return amount;\n }\n}\n;\n\n/**\n * Component that provides a base layout (aside/main) for the page.\n */\nvar Layout = /*#__PURE__*/function (_React$PureComponent) {\n _inherits(Layout, _React$PureComponent);\n var _super = _createSuper(Layout);\n function Layout(props) {\n var _this;\n _classCallCheck(this, Layout);\n _this = _super.call(this, props);\n _this.state = {\n customconf: '',\n error: null\n };\n _this.handleCustomConfig = _this.handleCustomConfig.bind(_assertThisInitialized(_this));\n _this.handleClickLoad = _this.handleClickLoad.bind(_assertThisInitialized(_this));\n _this.checkValidation = _this.checkValidation.bind(_assertThisInitialized(_this));\n\n // retrieve list of available pn\n var items_keys = Object.keys(props.items);\n _this.list_pn = items_keys.map(function (key) {\n return props.items[key].name_number;\n });\n return _this;\n }\n _createClass(Layout, [{\n key: \"handleCustomConfig\",\n value: function handleCustomConfig(e) {\n var value = e.target.value;\n this.checkValidation(value);\n }\n }, {\n key: \"checkValidation\",\n value: function checkValidation(conf) {\n var conf_obj;\n try {\n conf_obj = JSON.parse(conf);\n } catch (e) {\n return this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n customconf: conf,\n customconf_ready: null,\n error: 'invalid format'\n }));\n }\n if (!conf_obj) {\n return this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n customconf: conf,\n customconf_ready: null,\n error: 'invalid format'\n }));\n }\n if ((!conf_obj.items || !conf_obj.type) && (Object.prototype.toString.call(conf_obj.items) !== '[object Array]' || Object.prototype.toString.call(conf_obj.type) !== '[object String]')) {\n return this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n customconf: conf,\n customconf_ready: null,\n error: 'invalid format'\n }));\n }\n if (conf_obj.type !== \"desktop\" && conf_obj.type !== \"rack\") {\n return this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n customconf: conf,\n customconf_ready: null,\n error: 'invalid format'\n }));\n }\n conf_obj.items.map(function (item) {\n try {\n return JSON.parse(item);\n } catch (e) {\n return null;\n }\n });\n conf_obj.items = conf_obj.items.filter(function (item) {\n return item;\n });\n if (conf_obj.items.filter(function (item) {\n return Object.prototype.toString.call(item) !== '[object Object]' || !item.pn || Object.prototype.toString.call(item.pn) !== '[object String]';\n }).length > 0) {\n return this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n customconf: conf,\n customconf_ready: null,\n error: 'invalid format'\n }));\n }\n conf_obj.items = conf_obj.items.map(function (item) {\n return {\n pn: item.pn\n };\n });\n var self = this;\n var unknow_pn = conf_obj.items.filter(function (item_pn) {\n return self.list_pn.includes(item_pn.pn) === false;\n }).map(function (item_pn) {\n return item_pn.pn;\n });\n if (unknow_pn.length > 0) {\n return this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n customconf: conf,\n customconf_ready: null,\n error: \"\".concat(unknow_pn.join(', '), \" unknown\").concat(unknow_pn.length > 1 ? 's' : '', \" pn number\")\n }));\n }\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n customconf: conf,\n error: null,\n customconf_ready: conf_obj\n }));\n }\n }, {\n key: \"handleClickLoad\",\n value: function handleClickLoad() {\n this.checkValidation(this.state.customconf);\n if (this.props.onClickLoadCustomConf) {\n this.props.onClickLoadCustomConf(this.state.customconf_ready);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n aside = _this$props.aside,\n main = _this$props.main,\n mobileSideMenuShouldOpen = _this$props.mobileSideMenuShouldOpen,\n isMobile = _this$props.isMobile,\n newCardJustAdded = _this$props.newCardJustAdded,\n onClickToggleMobileSideMenu = _this$props.onClickToggleMobileSideMenu,\n onClickCloseRFQFeedback = _this$props.onClickCloseRFQFeedback,\n showRFQFeedback = _this$props.showRFQFeedback,\n RFQBodyType = _this$props.RFQBodyType,\n RFQBodyOrder = _this$props.RFQBodyOrder;\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"layout\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"aside\", {\n className: 'aside ' + (mobileSideMenuShouldOpen ? 'menu-opened' : '')\n }, aside), mobileSideMenuShouldOpen ? /*#__PURE__*/_react[\"default\"].createElement(\"section\", {\n className: \"main\",\n onClick: onClickToggleMobileSideMenu\n }, main) : /*#__PURE__*/_react[\"default\"].createElement(\"section\", {\n className: \"main\"\n }, main), isMobile && newCardJustAdded ? /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"feedback-add-success\"\n }, \"\\u2713 added\") : null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n \"class\": \"modal fade \".concat(showRFQFeedback ? 'show' : ''),\n style: {\n 'display': showRFQFeedback ? 'block' : 'none'\n },\n id: \"exampleModal\",\n tabindex: \"-1\",\n role: \"dialog\",\n \"aria-labelledby\": \"exampleModalLabel\",\n \"aria-hidden\": \"true\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n \"class\": \"modal-dialog\",\n role: \"document\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n \"class\": \"modal-content\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n \"class\": \"modal-body rfqFeedback\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"d-flex w-100\"\n }, RFQBodyType === 'email' ? /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"d-flex\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, /*#__PURE__*/_react[\"default\"].createElement(\"img\", {\n width: \"30px\",\n src: \"/images/shop/icon-done.svg\",\n alt: \"close\"\n })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n 'padding': '0 .5em'\n }\n }, \"We've received your request and will be in contact soon.\")) : null, RFQBodyType === 'show' ? /*#__PURE__*/_react[\"default\"].createElement(\"p\", null, RFQBodyOrder) : null, RFQBodyType === 'import' ? /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"w-100\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"form\", {\n className: \"form w-100\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"form-group\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"p\", {\n className: \"small\"\n }, \"Input the JSON description below. Should be something like:\", /*#__PURE__*/_react[\"default\"].createElement(\"br\", null), JSON.stringify({\n \"items\": [{\n \"pn\": \"1124\"\n }, {\n \"pn\": \"2118\"\n }, {\n \"pn\": \"2118\"\n }, {\n \"pn\": \"2128\"\n }],\n \"type\": \"desktop\"\n }))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"form-group w-100\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"textarea\", {\n onChange: this.handleCustomConfig,\n value: this.state.customconf,\n className: \"form-control w-100\",\n rows: \"5\",\n placeholder: \"Input JSON description here.\"\n })), this.state.error ? /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"form-group\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"p\", {\n className: \"text-danger\"\n }, this.state.error)) : null), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"d-flex flex-column flex-sm-row justify-content-end\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"a\", {\n type: \"button\",\n onClick: onClickCloseRFQFeedback,\n \"class\": \"btn btn-sm btn-outline-primary m-0 mb-2 mb-sm-0 mr-sm-2\"\n }, \"Close\"), /*#__PURE__*/_react[\"default\"].createElement(\"a\", {\n type: \"button\",\n onClick: this.handleClickLoad,\n \"class\": \"btn btn-sm btn-primary m-0 ml-sm-2 \".concat(this.state.error ? 'disabled' : '')\n }, \"Load configuration\"))) : null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, /*#__PURE__*/_react[\"default\"].createElement(\"button\", {\n onClick: onClickCloseRFQFeedback\n }, /*#__PURE__*/_react[\"default\"].createElement(\"img\", {\n src: \"/images/shop/icon-close.svg\",\n alt: \"close\"\n })))))))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n onClick: onClickCloseRFQFeedback,\n className: \"modal-backdrop fade \".concat(showRFQFeedback ? 'show' : ''),\n style: {\n 'display': showRFQFeedback ? 'initial' : 'none'\n }\n }));\n }\n }], [{\n key: \"propTypes\",\n get: function get() {\n return {\n aside: _propTypes[\"default\"].any,\n main: _propTypes[\"default\"].any,\n mobileSideMenuShouldOpen: _propTypes[\"default\"].bool,\n isMobile: _propTypes[\"default\"].bool,\n newCardJustAdded: _propTypes[\"default\"].bool,\n onClickToggleMobileSideMenu: _propTypes[\"default\"].func,\n onClickCloseRFQFeedback: _propTypes[\"default\"].func,\n RFQBodyType: _propTypes[\"default\"].string,\n RFQBodyOrder: _propTypes[\"default\"].string,\n onClickLoadCustomConf: _propTypes[\"default\"].func,\n items: _propTypes[\"default\"].object\n };\n }\n }, {\n key: \"defaultProps\",\n get: function get() {\n return {\n mobileSideMenuShouldOpen: false\n };\n }\n }]);\n return Layout;\n}(_react[\"default\"].PureComponent);\n/**\n * Component that renders a product.\n * Used in the aside (e.g backlog of product)\n */\nvar ProductItem = /*#__PURE__*/function (_React$PureComponent2) {\n _inherits(ProductItem, _React$PureComponent2);\n var _super2 = _createSuper(ProductItem);\n function ProductItem(props) {\n var _this2;\n _classCallCheck(this, ProductItem);\n _this2 = _super2.call(this, props);\n _this2.handleOnClickAddItem = _this2.handleOnClickAddItem.bind(_assertThisInitialized(_this2));\n return _this2;\n }\n _createClass(ProductItem, [{\n key: \"handleOnClickAddItem\",\n value: function handleOnClickAddItem(id, tap, e) {\n if (this.props.onClickAddItem) {\n this.props.onClickAddItem(id, tap);\n }\n e.preventDefault();\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props2 = this.props,\n id = _this$props2.id,\n name = _this$props2.name,\n name_codename = _this$props2.name_codename,\n price = _this$props2.price,\n currency = _this$props2.currency,\n image = _this$props2.image,\n specs = _this$props2.specs,\n datasheet_file = _this$props2.datasheet_file,\n datasheet_name = _this$props2.datasheet_name;\n var render_specs = specs && specs.length > 0 && /*#__PURE__*/_react[\"default\"].createElement(\"ul\", null, specs.map(function (spec, index) {\n return /*#__PURE__*/_react[\"default\"].createElement(\"li\", {\n key: index\n }, spec);\n }));\n var render_datasheet_link = datasheet_file && datasheet_name && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"ds\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n \"class\": \"doc-icon\"\n }), /*#__PURE__*/_react[\"default\"].createElement(\"a\", {\n href: datasheet_file,\n target: \"_blank\",\n rel: \"noopener noreferrer\"\n }, datasheet_name));\n return /*#__PURE__*/_react[\"default\"].createElement(\"section\", {\n className: \"productItem\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"content\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"h3\", {\n style: {\n 'margin-bottom': name_codename ? '5px' : '20px'\n }\n }, name), name_codename ? /*#__PURE__*/_react[\"default\"].createElement(\"p\", null, name_codename) : null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"price\"\n }, \"\".concat(currency, \" \").concat(formatMoney(price))), render_specs, render_datasheet_link), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"content\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"button\", {\n onClick: this.handleOnClickAddItem.bind(this, id, true)\n }, /*#__PURE__*/_react[\"default\"].createElement(\"img\", {\n src: \"/images/shop/icon-add.svg\",\n alt: \"add\"\n })), /*#__PURE__*/_react[\"default\"].createElement(_reactBeautifulDnd.Draggable, {\n draggableId: id\n }, function (provided, snapshot) {\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"img\", _extends({\n ref: provided.innerRef\n }, provided.draggableProps, provided.dragHandleProps, {\n style: productStyle(provided.draggableProps.style, snapshot, true // hack: remove weird animation after a drop\n ),\n\n src: image\n })), snapshot.isDragging && /*#__PURE__*/_react[\"default\"].createElement(\"img\", {\n className: \"simclone\",\n src: image\n }));\n })));\n }\n }], [{\n key: \"propTypes\",\n get: function get() {\n return {\n id: _propTypes[\"default\"].string.isRequired,\n name: _propTypes[\"default\"].string.isRequired,\n name_codename: _propTypes[\"default\"].string,\n price: _propTypes[\"default\"].number.isRequired,\n currency: _propTypes[\"default\"].string.isRequired,\n image: _propTypes[\"default\"].string.isRequired,\n specs: _propTypes[\"default\"].array,\n datasheet_file: _propTypes[\"default\"].string,\n datasheet_name: _propTypes[\"default\"].string,\n onClickAddItem: _propTypes[\"default\"].func\n };\n }\n }]);\n return ProductItem;\n}(_react[\"default\"].PureComponent);\n/**\n * Component that renders a product.\n * Used in the crate\n */\nvar ProductCartItem = /*#__PURE__*/function (_React$PureComponent3) {\n _inherits(ProductCartItem, _React$PureComponent3);\n var _super3 = _createSuper(ProductCartItem);\n function ProductCartItem(props) {\n var _this3;\n _classCallCheck(this, ProductCartItem);\n _this3 = _super3.call(this, props);\n _this3.handleOnMouseEnterItem = _this3.handleOnMouseEnterItem.bind(_assertThisInitialized(_this3));\n _this3.handleOnMouseLeaveItem = _this3.handleOnMouseLeaveItem.bind(_assertThisInitialized(_this3));\n _this3.handleOnMouseEnterWarningItem = _this3.handleOnMouseEnterWarningItem.bind(_assertThisInitialized(_this3));\n _this3.handleOnMouseLeaveWarningItem = _this3.handleOnMouseLeaveWarningItem.bind(_assertThisInitialized(_this3));\n _this3.handleOnMouseEnterRemoveItem = _this3.handleOnMouseEnterRemoveItem.bind(_assertThisInitialized(_this3));\n _this3.handleOnMouseLeaveRemoveItem = _this3.handleOnMouseLeaveRemoveItem.bind(_assertThisInitialized(_this3));\n _this3.handleOnClickRemoveItem = _this3.handleOnClickRemoveItem.bind(_assertThisInitialized(_this3));\n return _this3;\n }\n _createClass(ProductCartItem, [{\n key: \"handleOnMouseEnterItem\",\n value: function handleOnMouseEnterItem(index, e) {\n if (this.props.onToggleProgress) {\n this.props.onToggleProgress(index, true);\n }\n e.preventDefault();\n }\n }, {\n key: \"handleOnMouseLeaveItem\",\n value: function handleOnMouseLeaveItem(index, e) {\n if (this.props.onToggleProgress) {\n this.props.onToggleProgress(index, false);\n }\n e.preventDefault();\n }\n }, {\n key: \"handleOnMouseEnterWarningItem\",\n value: function handleOnMouseEnterWarningItem(index, isWarning, e) {\n if (!isWarning) {\n return;\n }\n if (this.props.onToggleWarning) {\n this.props.onToggleWarning(index, true);\n }\n e.preventDefault();\n }\n }, {\n key: \"handleOnMouseLeaveWarningItem\",\n value: function handleOnMouseLeaveWarningItem(index, isWarning, e) {\n if (!isWarning) {\n return;\n }\n if (this.props.onToggleWarning) {\n this.props.onToggleWarning(index, false);\n }\n e.preventDefault();\n }\n }, {\n key: \"handleOnMouseEnterRemoveItem\",\n value: function handleOnMouseEnterRemoveItem(index, e) {\n if (this.props.onToggleOverlayRemove && !this.props.isMobile) {\n this.props.onToggleOverlayRemove(index, true);\n }\n e.preventDefault();\n }\n }, {\n key: \"handleOnMouseLeaveRemoveItem\",\n value: function handleOnMouseLeaveRemoveItem(index, e) {\n if (this.props.onToggleOverlayRemove && !this.props.isMobile) {\n this.props.onToggleOverlayRemove(index, false);\n }\n e.preventDefault();\n }\n }, {\n key: \"handleOnClickRemoveItem\",\n value: function handleOnClickRemoveItem(index, e) {\n if (this.props.onClickRemoveItem) {\n this.props.onClickRemoveItem(index);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this4 = this;\n var _this$props3 = this.props,\n hovered = _this$props3.hovered,\n model = _this$props3.model,\n data = _this$props3.data,\n index = _this$props3.index,\n shouldTooltipWarningClassInverted = _this$props3.shouldTooltipWarningClassInverted;\n var warning;\n if (data && data.warnings) {\n var warningsKeys = Object.keys(data.warnings);\n if (warningsKeys && warningsKeys.length > 0) {\n // we display only the first warning\n warning = data.warnings[warningsKeys[0]];\n }\n }\n var render_progress;\n if (model.showProgress && data) {\n switch (model.type) {\n case 'kasli':\n render_progress = /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"k-popup-connectors\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"p\", null, \"\".concat(data.nbrCurrentSlot, \"/\").concat(model.nbrSlotMax, \" EEM connectors used\")), /*#__PURE__*/_react[\"default\"].createElement(\"p\", null, \"\".concat(data.nbrCurrentClock, \"/\").concat(model.nbrClockMax, \" Clock connectors used\")));\n break;\n case 'vhdcicarrier':\n render_progress = /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"k-popup-connectors\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"p\", null, \"\".concat(data.nbrCurrentSlot, \"/\").concat(model.nbrSlotMax, \" EEM connectors used\")));\n break;\n case 'zotino':\n case 'hd68':\n render_progress = /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"k-popup-connectors\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"p\", null, \"\".concat(data.nbrCurrentSlot, \"/\").concat(model.nbrSlotMax, \" connectors used\")));\n break;\n case 'clocker':\n render_progress = /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"k-popup-connectors\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"p\", null, \"\".concat(data.nbrCurrentClock, \"/\").concat(model.nbrClockMax, \" Clock connectors used\")));\n break;\n default:\n break;\n }\n }\n return /*#__PURE__*/_react[\"default\"].createElement(_reactBeautifulDnd.Draggable, {\n draggableId: model.id,\n index: index\n }, function (provided, snapshot) {\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", _extends({\n ref: provided.innerRef\n }, provided.draggableProps, provided.dragHandleProps, {\n style: _objectSpread({}, productStyle(provided.draggableProps.style, snapshot, true, hovered ? true : false, model.selected ? true : false)),\n onMouseEnter: _this4.handleOnMouseEnterRemoveItem.bind(_this4, index),\n onMouseLeave: _this4.handleOnMouseLeaveRemoveItem.bind(_this4, index)\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"progress-container warning\",\n onMouseEnter: _this4.handleOnMouseEnterWarningItem.bind(_this4, index, warning),\n onMouseLeave: _this4.handleOnMouseLeaveWarningItem.bind(_this4, index, warning)\n }, warning && /*#__PURE__*/_react[\"default\"].createElement(\"img\", {\n className: \"alert-warning\",\n src: warning ? \"/images\".concat(warning.icon) : null\n }), warning && model.showWarning && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"k-popup-warning \".concat(shouldTooltipWarningClassInverted ? 'inverted' : '')\n }, /*#__PURE__*/_react[\"default\"].createElement(\"p\", {\n className: \"rule warning\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", null, warning.message)))), /*#__PURE__*/_react[\"default\"].createElement(\"h6\", null, model.name_number), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n onMouseEnter: _this4.handleOnMouseEnterRemoveItem.bind(_this4, index)\n }, /*#__PURE__*/_react[\"default\"].createElement(\"img\", {\n className: \"item-cart\",\n src: \"/images\".concat(model.image)\n })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n 'display': model.showOverlayRemove ? 'flex' : 'none'\n },\n className: \"overlayRemove\",\n onClick: _this4.handleOnClickRemoveItem.bind(_this4, index)\n }, /*#__PURE__*/_react[\"default\"].createElement(\"img\", {\n src: \"/images/shop/icon-remove.svg\",\n alt: \"rm\"\n }), /*#__PURE__*/_react[\"default\"].createElement(\"p\", null, \"Remove\")), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"progress-container\",\n onMouseEnter: _this4.handleOnMouseEnterItem.bind(_this4, index),\n onMouseLeave: _this4.handleOnMouseLeaveItem.bind(_this4, index)\n }, model.nbrSlotMax > 0 && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"nbr-connectors\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: _objectSpread({}, nbrConnectorsStyle(data))\n })), model.nbrClockMax > 0 && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"nbr-clocks\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: _objectSpread({}, nbrClocksStyle(data))\n })), render_progress));\n });\n }\n }], [{\n key: \"propTypes\",\n get: function get() {\n return {\n isMobile: _propTypes[\"default\"].bool,\n hovered: _propTypes[\"default\"].bool,\n index: _propTypes[\"default\"].number.isRequired,\n model: _propTypes[\"default\"].object.isRequired,\n data: _propTypes[\"default\"].object,\n onToggleProgress: _propTypes[\"default\"].func,\n onToggleWarning: _propTypes[\"default\"].func,\n onToggleOverlayRemove: _propTypes[\"default\"].func,\n onClickRemoveItem: _propTypes[\"default\"].func,\n shouldTooltipWarningClassInverted: _propTypes[\"default\"].bool\n };\n }\n }, {\n key: \"defaultProps\",\n get: function get() {\n return {\n hovered: false\n };\n }\n }]);\n return ProductCartItem;\n}(_react[\"default\"].PureComponent);\n/**\n * Component that displays a placeholder inside crate.\n * Allows to display how it remains space for the current crate.\n */\nvar FakePlaceholder = /*#__PURE__*/function (_React$PureComponent4) {\n _inherits(FakePlaceholder, _React$PureComponent4);\n var _super4 = _createSuper(FakePlaceholder);\n function FakePlaceholder() {\n _classCallCheck(this, FakePlaceholder);\n return _super4.apply(this, arguments);\n }\n _createClass(FakePlaceholder, [{\n key: \"render\",\n value: function render() {\n var _this$props4 = this.props,\n isDraggingOver = _this$props4.isDraggingOver,\n nbrSlots = _this$props4.nbrSlots,\n items = _this$props4.items;\n var fakePlaceholder = [];\n var nbrOccupied = nbrOccupiedSlotsInCrate(items);\n for (var i = nbrSlots - nbrOccupied; i > 0; i--) {\n fakePlaceholder.push( /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n key: i,\n style: {\n display: isDraggingOver ? 'none' : 'block',\n border: '1px dashed #ccc',\n width: '45px',\n marginBottom: '5px'\n }\n }));\n }\n return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, fakePlaceholder);\n }\n }], [{\n key: \"propTypes\",\n get: function get() {\n return {\n isDraggingOver: _propTypes[\"default\"].bool,\n nbrSlots: _propTypes[\"default\"].number.isRequired,\n items: _propTypes[\"default\"].array.isRequired\n };\n }\n }]);\n return FakePlaceholder;\n}(_react[\"default\"].PureComponent);\n/**\n * Component that displays a list of \n */\nvar Cart = /*#__PURE__*/function (_React$PureComponent5) {\n _inherits(Cart, _React$PureComponent5);\n var _super5 = _createSuper(Cart);\n function Cart() {\n _classCallCheck(this, Cart);\n return _super5.apply(this, arguments);\n }\n _createClass(Cart, [{\n key: \"render\",\n value: function render() {\n var _this$props5 = this.props,\n isMobile = _this$props5.isMobile,\n nbrSlots = _this$props5.nbrSlots,\n itemHovered = _this$props5.itemHovered,\n data = _this$props5.data,\n onToggleProgress = _this$props5.onToggleProgress,\n onToggleWarning = _this$props5.onToggleWarning,\n onToggleOverlayRemove = _this$props5.onToggleOverlayRemove,\n onClickRemoveItem = _this$props5.onClickRemoveItem;\n var nbrOccupied = nbrOccupiedSlotsInCrate(data.items);\n var shouldTooltipWarningClassInverted = nbrSlots - nbrOccupied < 5;\n var products = data.items.map(function (item, index) {\n var itemData;\n if (data.itemsData && index in data.itemsData) {\n itemData = data.itemsData[index];\n }\n return /*#__PURE__*/_react[\"default\"].createElement(ProductCartItem, {\n isMobile: isMobile,\n hovered: item.id === itemHovered,\n key: item.id,\n index: index,\n data: itemData,\n shouldTooltipWarningClassInverted: shouldTooltipWarningClassInverted && index > 10,\n onToggleProgress: onToggleProgress,\n onToggleWarning: onToggleWarning,\n onToggleOverlayRemove: onToggleOverlayRemove,\n onClickRemoveItem: onClickRemoveItem,\n model: item\n });\n });\n return /*#__PURE__*/_react[\"default\"].createElement(_reactBeautifulDnd.Droppable, {\n droppableId: data.id,\n direction: \"horizontal\"\n }, function (provided, snapshot) {\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", _extends({\n ref: provided.innerRef\n }, provided.droppableProps, {\n style: cartStyle(provided.droppableProps.style, snapshot),\n className: \"items-cart-list\"\n }), products, provided.placeholder && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n display: 'none'\n }\n }, provided.placeholder), /*#__PURE__*/_react[\"default\"].createElement(FakePlaceholder, {\n nbrSlots: nbrSlots,\n items: data.items,\n isDraggingOver: snapshot.isDraggingOver\n }));\n });\n }\n }], [{\n key: \"propTypes\",\n get: function get() {\n return {\n isMobile: _propTypes[\"default\"].bool,\n nbrSlots: _propTypes[\"default\"].number,\n itemHovered: _propTypes[\"default\"].string,\n data: _propTypes[\"default\"].object.isRequired,\n onToggleProgress: _propTypes[\"default\"].func,\n onToggleWarning: _propTypes[\"default\"].func,\n onToggleOverlayRemove: _propTypes[\"default\"].func,\n onClickRemoveItem: _propTypes[\"default\"].func\n };\n }\n }]);\n return Cart;\n}(_react[\"default\"].PureComponent);\n/**\n * Component that displays crate modes\n */\nvar CrateMode = /*#__PURE__*/function (_React$PureComponent6) {\n _inherits(CrateMode, _React$PureComponent6);\n var _super6 = _createSuper(CrateMode);\n function CrateMode(props) {\n var _this5;\n _classCallCheck(this, CrateMode);\n _this5 = _super6.call(this, props);\n _this5.handleOnClickMode = _this5.handleOnClickMode.bind(_assertThisInitialized(_this5));\n return _this5;\n }\n _createClass(CrateMode, [{\n key: \"handleOnClickMode\",\n value: function handleOnClickMode(mode, e) {\n if (this.props.onClickMode) {\n this.props.onClickMode(mode);\n }\n e.preventDefault();\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n var _this$props6 = this.props,\n mode = _this$props6.mode,\n items = _this$props6.items;\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"crate-mode\"\n }, items.map(function (item) {\n return /*#__PURE__*/_react[\"default\"].createElement(\"a\", {\n key: item.id,\n className: mode == item.id ? 'active' : '',\n onClick: _this6.handleOnClickMode.bind(_this6, item.id),\n href: \"#\",\n role: \"button\"\n }, item.name);\n }));\n }\n }], [{\n key: \"propTypes\",\n get: function get() {\n return {\n items: _propTypes[\"default\"].array.isRequired,\n mode: _propTypes[\"default\"].string.isRequired,\n onClickMode: _propTypes[\"default\"].func\n };\n }\n }]);\n return CrateMode;\n}(_react[\"default\"].PureComponent);\n/**\n * Component that displays the main crate with reminder rules.\n * It includes and rules\n */\nvar Crate = /*#__PURE__*/function (_React$PureComponent7) {\n _inherits(Crate, _React$PureComponent7);\n var _super7 = _createSuper(Crate);\n function Crate() {\n _classCallCheck(this, Crate);\n return _super7.apply(this, arguments);\n }\n _createClass(Crate, [{\n key: \"render\",\n value: function render() {\n var _this$props7 = this.props,\n rules = _this$props7.rules,\n cart = _this$props7.cart;\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"crate\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"crate-products\"\n }, cart, rules && rules.length > 0 && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"crate-info\"\n }, rules.map(function (rule, index) {\n return /*#__PURE__*/_react[\"default\"].createElement(\"p\", {\n key: index,\n className: \"rule\",\n style: {\n 'color': rule.color ? rule.color : 'inherit'\n }\n }, /*#__PURE__*/_react[\"default\"].createElement(\"img\", {\n src: \"/images\".concat(rule.icon)\n }), \" \", /*#__PURE__*/_react[\"default\"].createElement(\"i\", null, /*#__PURE__*/_react[\"default\"].createElement(\"strong\", null, rule.name, \":\"), \" \", rule.message));\n }))));\n }\n }], [{\n key: \"propTypes\",\n get: function get() {\n return {\n rules: _propTypes[\"default\"].array,\n cart: _propTypes[\"default\"].element\n };\n }\n }]);\n return Crate;\n}(_react[\"default\"].PureComponent);\n/**\n * Component that renders all things for order.\n * It acts like-a layout, this component do nothing more.\n */\nvar OrderPanel = /*#__PURE__*/function (_React$PureComponent8) {\n _inherits(OrderPanel, _React$PureComponent8);\n var _super8 = _createSuper(OrderPanel);\n function OrderPanel() {\n _classCallCheck(this, OrderPanel);\n return _super8.apply(this, arguments);\n }\n _createClass(OrderPanel, [{\n key: \"render\",\n value: function render() {\n var _this$props8 = this.props,\n title = _this$props8.title,\n description = _this$props8.description,\n crateMode = _this$props8.crateMode,\n crate = _this$props8.crate,\n summaryPrice = _this$props8.summaryPrice,\n form = _this$props8.form,\n isMobile = _this$props8.isMobile,\n onClickToggleMobileSideMenu = _this$props8.onClickToggleMobileSideMenu,\n onClickOpenImport = _this$props8.onClickOpenImport;\n return /*#__PURE__*/_react[\"default\"].createElement(\"section\", {\n className: \"panel\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"h2\", null, title), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"control\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"p\", {\n className: \"description\"\n }, description), crateMode), /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n className: \"btn btn-sm btn-outline-primary m-0 mb-2\",\n style: {\n 'cursor': 'pointer'\n },\n value: \"Import JSON\",\n onClick: onClickOpenImport\n })), isMobile ? /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"mobileBtnDisplaySideMenu\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"button\", {\n onClick: onClickToggleMobileSideMenu\n }, /*#__PURE__*/_react[\"default\"].createElement(\"img\", {\n src: \"/images/shop/icon-add.svg\",\n alt: \"add\"\n }))) : null, crate, /*#__PURE__*/_react[\"default\"].createElement(\"section\", {\n className: \"summary\"\n }, summaryPrice, form));\n }\n }], [{\n key: \"propTypes\",\n get: function get() {\n return {\n title: _propTypes[\"default\"].string,\n description: _propTypes[\"default\"].string,\n crateMode: _propTypes[\"default\"].element,\n crate: _propTypes[\"default\"].element,\n summaryPrice: _propTypes[\"default\"].element,\n form: _propTypes[\"default\"].element,\n isMobile: _propTypes[\"default\"].bool,\n onClickToggleMobileSideMenu: _propTypes[\"default\"].func,\n onClickOpenImport: _propTypes[\"default\"].func\n };\n }\n }]);\n return OrderPanel;\n}(_react[\"default\"].PureComponent);\n/**\n * Components that renders the form to request quote.\n */\nvar OrderForm = /*#__PURE__*/function (_React$PureComponent9) {\n _inherits(OrderForm, _React$PureComponent9);\n var _super9 = _createSuper(OrderForm);\n function OrderForm(props) {\n var _this7;\n _classCallCheck(this, OrderForm);\n _this7 = _super9.call(this, props);\n _this7.state = {\n note: '',\n email: '',\n error: {\n note: null,\n email: null\n },\n empty: {\n note: null,\n email: null\n }\n };\n _this7.handleEmail = _this7.handleEmail.bind(_assertThisInitialized(_this7));\n _this7.handleNote = _this7.handleNote.bind(_assertThisInitialized(_this7));\n _this7.handleSubmit = _this7.handleSubmit.bind(_assertThisInitialized(_this7));\n _this7.resetEmptyError = _this7.resetEmptyError.bind(_assertThisInitialized(_this7));\n _this7.checkValidation = _this7.checkValidation.bind(_assertThisInitialized(_this7));\n return _this7;\n }\n _createClass(OrderForm, [{\n key: \"checkValidation\",\n value: function checkValidation() {\n var isValid = true;\n var validationFields = _objectSpread({}, this.state);\n var _this$validateEmail = this.validateEmail(this.state.email),\n isEmailEmpty = _this$validateEmail.isEmpty,\n isEmailError = _this$validateEmail.isError;\n validationFields = _objectSpread(_objectSpread({}, validationFields), {}, {\n error: _objectSpread(_objectSpread({}, this.state.error), {}, {\n email: isEmailError\n }),\n empty: _objectSpread(_objectSpread({}, this.state.empty), {}, {\n email: isEmailEmpty\n })\n });\n this.setState(validationFields);\n isValid = !isEmailEmpty && !isEmailError;\n return isValid;\n }\n }, {\n key: \"validateEmail\",\n value: function validateEmail(value) {\n var isEmpty = null;\n var isError = null;\n var t = this.props.t;\n if (!value || value.trim() === '') {\n isEmpty = true;\n } else if (value && !value.match(/^\\w+([\\+\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$/)) {\n isError = {\n message: 'Your email is incomplete'\n };\n }\n return {\n isEmpty: isEmpty,\n isError: isError\n };\n }\n }, {\n key: \"validateNote\",\n value: function validateNote(value) {\n var isEmpty = null;\n if (!value || value.trim() === '') {\n isEmpty = true;\n }\n return {\n isEmpty: isEmpty\n };\n }\n }, {\n key: \"resetEmptyError\",\n value: function resetEmptyError(key) {\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n error: _objectSpread(_objectSpread({}, this.state.error), {}, _defineProperty({}, key, null)),\n empty: _objectSpread(_objectSpread({}, this.state.empty), {}, _defineProperty({}, key, null))\n }));\n }\n }, {\n key: \"handleEmail\",\n value: function handleEmail(e) {\n var value = e.target.value;\n var _this$validateEmail2 = this.validateEmail(value),\n isEmpty = _this$validateEmail2.isEmpty,\n isError = _this$validateEmail2.isError;\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n email: value,\n error: _objectSpread(_objectSpread({}, this.state.error), {}, {\n email: isError\n }),\n empty: _objectSpread(_objectSpread({}, this.state.empty), {}, {\n email: isEmpty\n })\n }));\n }\n }, {\n key: \"handleNote\",\n value: function handleNote(e) {\n var value = e.target.value;\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n note: value\n }));\n }\n }, {\n key: \"handleSubmit\",\n value: function handleSubmit(event) {\n event.preventDefault();\n if (this.props.onClickSubmit) {\n // check validation input fields\n var isValidated = this.checkValidation();\n if (!isValidated) {\n return false;\n }\n this.props.onClickSubmit(this.state.note, this.state.email);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var handleEmail = this.handleEmail,\n handleNote = this.handleNote,\n resetEmptyError = this.resetEmptyError,\n handleSubmit = this.handleSubmit;\n var onClickShow = this.props.onClickShow;\n var _this$state = this.state,\n email = _this$state.email,\n note = _this$state.note,\n error = _this$state.error,\n empty = _this$state.empty;\n var _this$props9 = this.props,\n isProcessing = _this$props9.isProcessing,\n isProcessingComplete = _this$props9.isProcessingComplete;\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"summary-form\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"form\", {\n onSubmit: handleSubmit,\n noValidate: true\n }, /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n className: \"\".concat(error && error.email ? 'errorField' : ''),\n type: \"email\",\n placeholder: \"Email\",\n onFocus: function onFocus() {\n return resetEmptyError('email');\n },\n onChange: handleEmail,\n onBlur: handleEmail,\n value: email\n }), empty && empty.email ? /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"error\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"small\", null, \"Required\")) : null, error && error.email ? /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"error\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"small\", null, \"Your email is incomplete\")) : null, /*#__PURE__*/_react[\"default\"].createElement(\"textarea\", {\n onChange: handleNote,\n value: note,\n rows: \"5\",\n placeholder: \"Additional notes\"\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"d-flex flex-column flex-sm-row justify-content-between\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n className: \"btn btn-outline-primary w-100 m-0 mb-2 mb-sm-0 mr-sm-2\",\n style: {\n 'cursor': 'pointer',\n 'fontWeight': '700'\n },\n value: \"Show JSON\",\n onClick: onClickShow\n }), /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n className: \"btn btn-primary w-100 m-0 ml-sm-2\",\n type: \"submit\",\n value: \"\".concat(isProcessing ? 'Processing ...' : 'Request quote')\n }))));\n }\n }], [{\n key: \"propTypes\",\n get: function get() {\n return {\n isProcessing: _propTypes[\"default\"].bool,\n isProcessingComplete: _propTypes[\"default\"].bool,\n onClickSubmit: _propTypes[\"default\"].func\n };\n }\n }]);\n return OrderForm;\n}(_react[\"default\"].PureComponent);\n/**\n * Components that displays the list of card that are used in the crate.\n * It is a summary of purchase\n */\nvar OrderSumary = /*#__PURE__*/function (_React$PureComponent10) {\n _inherits(OrderSumary, _React$PureComponent10);\n var _super10 = _createSuper(OrderSumary);\n function OrderSumary(props) {\n var _this8;\n _classCallCheck(this, OrderSumary);\n _this8 = _super10.call(this, props);\n _this8.handleOnDeleteItem = _this8.handleOnDeleteItem.bind(_assertThisInitialized(_this8));\n _this8.handleOnDeleteAllItems = _this8.handleOnDeleteAllItems.bind(_assertThisInitialized(_this8));\n _this8.handleOnMouseEnterItem = _this8.handleOnMouseEnterItem.bind(_assertThisInitialized(_this8));\n _this8.handleOnMouseLeaveItem = _this8.handleOnMouseLeaveItem.bind(_assertThisInitialized(_this8));\n _this8.handleOnClickSelectItem = _this8.handleOnClickSelectItem.bind(_assertThisInitialized(_this8));\n return _this8;\n }\n _createClass(OrderSumary, [{\n key: \"handleOnDeleteItem\",\n value: function handleOnDeleteItem(index, e) {\n if (this.props.onDeleteItem) {\n this.props.onDeleteItem(index);\n }\n e.preventDefault();\n }\n }, {\n key: \"handleOnDeleteAllItems\",\n value: function handleOnDeleteAllItems(e) {\n if (this.props.onDeleteAllItems) {\n this.props.onDeleteAllItems();\n }\n e.preventDefault();\n }\n }, {\n key: \"handleOnMouseEnterItem\",\n value: function handleOnMouseEnterItem(id, e) {\n if (this.props.onMouseEnterItem) {\n this.props.onMouseEnterItem(id);\n }\n e.preventDefault();\n }\n }, {\n key: \"handleOnMouseLeaveItem\",\n value: function handleOnMouseLeaveItem(e) {\n if (this.props.onMouseLeaveItem) {\n this.props.onMouseLeaveItem();\n }\n e.preventDefault();\n }\n }, {\n key: \"handleOnClickSelectItem\",\n value: function handleOnClickSelectItem(index, e) {\n if (e.target.tagName !== 'IMG') {\n if (this.props.onClickSelectItem) {\n this.props.onClickSelectItem(index);\n }\n }\n return e.preventDefault();\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this9 = this;\n var _this$props10 = this.props,\n currency = _this$props10.currency,\n modes = _this$props10.modes,\n currentMode = _this$props10.currentMode,\n summary = _this$props10.summary,\n itemsData = _this$props10.itemsData;\n var mode = modes.find(function (elem) {\n return elem.id === currentMode;\n });\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"summary-price\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"table\", null, /*#__PURE__*/_react[\"default\"].createElement(\"thead\", null, /*#__PURE__*/_react[\"default\"].createElement(\"tr\", null, /*#__PURE__*/_react[\"default\"].createElement(\"td\", {\n colSpan: \"2\",\n className: \"summary-remove-all\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n className: \"item-card-name\"\n }, \"Remove all cards\"), /*#__PURE__*/_react[\"default\"].createElement(\"button\", {\n onClick: this.handleOnDeleteAllItems\n }, /*#__PURE__*/_react[\"default\"].createElement(\"img\", {\n src: \"/images/shop/icon-remove.svg\"\n })))), mode && /*#__PURE__*/_react[\"default\"].createElement(\"tr\", null, /*#__PURE__*/_react[\"default\"].createElement(\"td\", {\n className: \"item-card-name\"\n }, mode.name), /*#__PURE__*/_react[\"default\"].createElement(\"td\", {\n className: \"price\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, \"\".concat(currency, \" \").concat(formatMoney(mode.price)), /*#__PURE__*/_react[\"default\"].createElement(\"button\", {\n style: {\n 'opacity': '0',\n 'cursor': 'initial'\n }\n }, /*#__PURE__*/_react[\"default\"].createElement(\"img\", {\n src: \"/images/shop/icon-remove.svg\"\n }))), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n style: {\n 'display': 'inline-block',\n 'width': '30px'\n }\n }, \"\\xA0\")))), /*#__PURE__*/_react[\"default\"].createElement(\"tbody\", null, summary.map(function (item, index) {\n var alert;\n var warning;\n if (itemsData[index]) {\n alert = itemsData[index];\n var warningsKeys = Object.keys(alert.warnings);\n if (warningsKeys && warningsKeys.length > 0) {\n warning = alert.warnings[warningsKeys[0]];\n }\n }\n return /*#__PURE__*/_react[\"default\"].createElement(\"tr\", {\n key: item.id,\n className: \"hoverable \".concat(item.selected ? 'selected' : ''),\n onClick: _this9.handleOnClickSelectItem.bind(_this9, index),\n onMouseEnter: _this9.handleOnMouseEnterItem.bind(_this9, item.id),\n onMouseLeave: _this9.handleOnMouseLeaveItem\n }, /*#__PURE__*/_react[\"default\"].createElement(\"td\", {\n className: \"item-card-name\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, \"\".concat(item.name_number, \" \").concat(item.name, \" \").concat(item.name_codename))), /*#__PURE__*/_react[\"default\"].createElement(\"td\", {\n className: \"price\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, \"\".concat(currency, \" \").concat(formatMoney(item.price)), /*#__PURE__*/_react[\"default\"].createElement(\"button\", {\n onClick: _this9.handleOnDeleteItem.bind(_this9, index)\n }, /*#__PURE__*/_react[\"default\"].createElement(\"img\", {\n src: \"/images/shop/icon-remove.svg\"\n }))), warning && /*#__PURE__*/_react[\"default\"].createElement(\"img\", {\n style: {\n 'marginLeft': '10px'\n },\n className: \"alert-warning\",\n src: \"/images/\".concat(warning.icon)\n }), !warning && /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n style: {\n 'display': 'inline-block',\n 'width': '30px'\n }\n }, \"\\xA0\")));\n })), /*#__PURE__*/_react[\"default\"].createElement(\"tfoot\", null, /*#__PURE__*/_react[\"default\"].createElement(\"tr\", null, /*#__PURE__*/_react[\"default\"].createElement(\"td\", {\n className: \"item-card-name\"\n }, \"Price estimate\"), /*#__PURE__*/_react[\"default\"].createElement(\"td\", {\n className: \"price\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, summary.length ? \"\".concat(currency, \" \").concat(formatMoney(summary.reduce(function (prev, next) {\n return prev + next.price;\n }, 0) + mode.price)) : \"\".concat(currency, \" \").concat(formatMoney(mode.price)), /*#__PURE__*/_react[\"default\"].createElement(\"button\", {\n style: {\n 'opacity': '0',\n 'cursor': 'initial'\n }\n }, /*#__PURE__*/_react[\"default\"].createElement(\"img\", {\n src: \"/images/shop/icon-remove.svg\",\n alt: \"icon remove\"\n }))), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n style: {\n 'display': 'inline-block',\n 'width': '30px'\n }\n }, \"\\xA0\"))))));\n }\n }], [{\n key: \"propTypes\",\n get: function get() {\n return {\n currency: _propTypes[\"default\"].string,\n modes: _propTypes[\"default\"].array,\n currentMode: _propTypes[\"default\"].string,\n summary: _propTypes[\"default\"].array,\n itemsData: _propTypes[\"default\"].array,\n onDeleteItem: _propTypes[\"default\"].func,\n onDeleteAllItems: _propTypes[\"default\"].func,\n onMouseEnterItem: _propTypes[\"default\"].func,\n onMouseLeaveItem: _propTypes[\"default\"].func,\n onClickSelectItem: _propTypes[\"default\"].func\n };\n }\n }]);\n return OrderSumary;\n}(_react[\"default\"].PureComponent);\n/**\n * Component that renders the backlog in the aside\n */\nvar Backlog = /*#__PURE__*/function (_React$PureComponent11) {\n _inherits(Backlog, _React$PureComponent11);\n var _super11 = _createSuper(Backlog);\n function Backlog() {\n _classCallCheck(this, Backlog);\n return _super11.apply(this, arguments);\n }\n _createClass(Backlog, [{\n key: \"render\",\n value: function render() {\n var _this$props11 = this.props,\n currency = _this$props11.currency,\n data = _this$props11.data,\n items = _this$props11.items,\n onClickAddItem = _this$props11.onClickAddItem,\n onClickToggleMobileSideMenu = _this$props11.onClickToggleMobileSideMenu,\n isMobile = _this$props11.isMobile;\n var ordered_groups = data.categories.map(function (groupItem) {\n return {\n name: groupItem.name,\n items: groupItem.itemIds.map(function (itemId) {\n return items[itemId];\n })\n };\n });\n var groups = ordered_groups.map(function (group, g_index) {\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"card\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"h2\", {\n className: \"card-header\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"button\", {\n className: \"btn btn-link btn-block text-left \",\n type: \"button\",\n \"data-toggle\": \"collapse\",\n \"data-target\": \"#collapse\".concat(g_index),\n \"aria-expanded\": \"true\",\n \"aria-controls\": \"collapse\".concat(g_index)\n }, group.name)), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n id: \"collapse\".concat(g_index),\n className: \"collapse\",\n \"aria-labelledby\": \"headingOne\",\n \"data-parent\": \"#accordion_categories\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"card-body\"\n }, group.items.map(function (item) {\n return /*#__PURE__*/_react[\"default\"].createElement(ProductItem, {\n key: item.id,\n id: item.id,\n name: \"\".concat(item.name_number, \" \").concat(item.name),\n name_codename: item.name_codename,\n price: item.price,\n currency: currency,\n image: \"/images/\".concat(item.image),\n specs: item.specs,\n datasheet_file: item.datasheet_file,\n datasheet_name: item.datasheet_name,\n onClickAddItem: onClickAddItem\n });\n }))));\n });\n return /*#__PURE__*/_react[\"default\"].createElement(_reactBeautifulDnd.Droppable, {\n droppableId: data.id,\n isDropDisabled: true\n }, function (provided) {\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", _extends({\n className: \"backlog-container\",\n ref: provided.innerRef\n }, provided.droppableProps), isMobile ? /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"mobileCloseMenu\"\n }, /*#__PURE__*/_react[\"default\"].createElement(\"button\", {\n onClick: onClickToggleMobileSideMenu\n }, /*#__PURE__*/_react[\"default\"].createElement(\"img\", {\n src: \"/images/shop/icon-close-white.svg\",\n alt: \"add\"\n }))) : null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n className: \"accordion\",\n id: \"accordion_categories\"\n }, groups), provided.placeholder && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n display: 'none'\n }\n }, provided.placeholder));\n });\n }\n }], [{\n key: \"propTypes\",\n get: function get() {\n return {\n currency: _propTypes[\"default\"].string,\n data: _propTypes[\"default\"].object.isRequired,\n items: _propTypes[\"default\"].object,\n isMobile: _propTypes[\"default\"].bool,\n onClickAddItem: _propTypes[\"default\"].func,\n onClickToggleMobileSideMenu: _propTypes[\"default\"].func\n };\n }\n }, {\n key: \"defaultProps\",\n get: function get() {\n return {\n items: {}\n };\n }\n }]);\n return Backlog;\n}(_react[\"default\"].PureComponent);\n/**\n * Component that render the entire shop\n */\nvar Shop = /*#__PURE__*/function (_React$PureComponent12) {\n _inherits(Shop, _React$PureComponent12);\n var _super12 = _createSuper(Shop);\n function Shop(props) {\n var _this10;\n _classCallCheck(this, Shop);\n _this10 = _super12.call(this, props);\n _this10.state = _this10.props.data;\n _this10.handleCrateModeChange = _this10.handleCrateModeChange.bind(_assertThisInitialized(_this10));\n _this10.handleOnDragEnd = _this10.handleOnDragEnd.bind(_assertThisInitialized(_this10));\n _this10.handleDeleteItem = _this10.handleDeleteItem.bind(_assertThisInitialized(_this10));\n _this10.handleDeleteAllItems = _this10.handleDeleteAllItems.bind(_assertThisInitialized(_this10));\n _this10.handleMouseEnterItem = _this10.handleMouseEnterItem.bind(_assertThisInitialized(_this10));\n _this10.handleMouseLeaveItem = _this10.handleMouseLeaveItem.bind(_assertThisInitialized(_this10));\n _this10.handleClickAddItem = _this10.handleClickAddItem.bind(_assertThisInitialized(_this10));\n _this10.checkAlerts = _this10.checkAlerts.bind(_assertThisInitialized(_this10));\n _this10.handleToggleItemProgress = _this10.handleToggleItemProgress.bind(_assertThisInitialized(_this10));\n _this10.handleToggleItemWarning = _this10.handleToggleItemWarning.bind(_assertThisInitialized(_this10));\n _this10.handleClickSelectItem = _this10.handleClickSelectItem.bind(_assertThisInitialized(_this10));\n _this10.handleClickSubmit = _this10.handleClickSubmit.bind(_assertThisInitialized(_this10));\n _this10.handleToggleOverlayRemove = _this10.handleToggleOverlayRemove.bind(_assertThisInitialized(_this10));\n _this10.handleClickToggleMobileSideMenu = _this10.handleClickToggleMobileSideMenu.bind(_assertThisInitialized(_this10));\n _this10.handleClickCloseRFQFeedback = _this10.handleClickCloseRFQFeedback.bind(_assertThisInitialized(_this10));\n _this10.handleClickShowOrder = _this10.handleClickShowOrder.bind(_assertThisInitialized(_this10));\n _this10.handleClickOpenImport = _this10.handleClickOpenImport.bind(_assertThisInitialized(_this10));\n _this10.handleLoadCustomConf = _this10.handleLoadCustomConf.bind(_assertThisInitialized(_this10));\n _this10.timer = null;\n return _this10;\n }\n _createClass(Shop, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n // index 0 is a Kasli, we place it as a default conf on the crate.\n var sourceIds = Array.from(this.state.columns.backlog.categories.map(function (groupId) {\n return groupId.itemIds;\n }).flat());\n var source = {\n droppableId: 'backlog',\n index: null\n };\n var destination = {\n droppableId: 'cart',\n index: 0\n };\n this.handleOnDragEnd({\n source: source,\n destination: destination,\n draggableId: sourceIds[0]\n });\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n var _this11 = this;\n /**\n * We check alerts (reminder + warning) only when items inside crate or\n * crate mode change.\n *\n * In the function checkAlerts, we DO NOT want to change items as we will\n * trigger again this function (componentDidUpdate) and thus,\n * making an infinite loop.\n */\n if (prevState.columns.cart.items !== this.state.columns.cart.items || prevState.currentMode !== this.state.currentMode) {\n this.checkAlerts(prevState.columns.cart.items, this.state.columns.cart.items);\n }\n if (this.state.newCardJustAdded) {\n this.timer = setTimeout(function () {\n _this11.setState({\n newCardJustAdded: false\n });\n }, 2000);\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n clearTimeout(this.timer);\n }\n }, {\n key: \"handleCrateModeChange\",\n value: function handleCrateModeChange(mode) {\n this.setState({\n currentMode: mode\n });\n }\n }, {\n key: \"handleDeleteItem\",\n value: function handleDeleteItem(index) {\n var cloned = Array.from(this.state.columns.cart.items);\n cloned.splice(index, 1);\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n columns: _objectSpread(_objectSpread({}, this.state.columns), {}, {\n cart: _objectSpread(_objectSpread({}, this.state.columns.cart), {}, {\n items: cloned\n })\n })\n }));\n }\n }, {\n key: \"handleDeleteAllItems\",\n value: function handleDeleteAllItems() {\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n columns: _objectSpread(_objectSpread({}, this.state.columns), {}, {\n cart: _objectSpread(_objectSpread({}, this.state.columns.cart), {}, {\n items: []\n })\n })\n }));\n }\n }, {\n key: \"handleMouseEnterItem\",\n value: function handleMouseEnterItem(id) {\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n currentItemHovered: id\n }));\n }\n }, {\n key: \"handleMouseLeaveItem\",\n value: function handleMouseLeaveItem() {\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n currentItemHovered: null\n }));\n }\n }, {\n key: \"handleClickAddItem\",\n value: function handleClickAddItem(id, tap) {\n var source = {\n droppableId: 'backlog',\n index: null\n };\n var destination = {\n droppableId: 'cart',\n index: this.state.columns.cart.items.length\n };\n this.handleOnDragEnd({\n source: source,\n destination: destination,\n draggableId: id\n }, tap);\n }\n }, {\n key: \"handleToggleItemProgress\",\n value: function handleToggleItemProgress(index, show) {\n var itemsCloned = Array.from(this.state.columns.cart.items);\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n columns: _objectSpread(_objectSpread({}, this.state.columns), {}, {\n cart: _objectSpread(_objectSpread({}, this.state.columns.cart), {}, {\n items: itemsCloned.map(function (item, i) {\n return _objectSpread(_objectSpread({}, item), {}, {\n showProgress: i === index ? show : false,\n showOverlayRemove: false,\n showWarning: false\n });\n })\n })\n })\n }));\n }\n }, {\n key: \"handleToggleItemWarning\",\n value: function handleToggleItemWarning(index, show) {\n var itemsCloned = Array.from(this.state.columns.cart.items);\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n columns: _objectSpread(_objectSpread({}, this.state.columns), {}, {\n cart: _objectSpread(_objectSpread({}, this.state.columns.cart), {}, {\n items: itemsCloned.map(function (item, i) {\n return _objectSpread(_objectSpread({}, item), {}, {\n showWarning: i === index ? show : false,\n showProgress: false,\n showOverlayRemove: false\n });\n })\n })\n })\n }));\n }\n }, {\n key: \"handleClickSelectItem\",\n value: function handleClickSelectItem(index) {\n var itemsCloned = Array.from(this.state.columns.cart.items);\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n columns: _objectSpread(_objectSpread({}, this.state.columns), {}, {\n cart: _objectSpread(_objectSpread({}, this.state.columns.cart), {}, {\n items: itemsCloned.map(function (item, id) {\n return _objectSpread(_objectSpread({}, item), {}, {\n selected: id === index ? true : false\n });\n })\n })\n })\n }));\n }\n }, {\n key: \"handleToggleOverlayRemove\",\n value: function handleToggleOverlayRemove(index, show) {\n var itemsCloned = Array.from(this.state.columns.cart.items);\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n columns: _objectSpread(_objectSpread({}, this.state.columns), {}, {\n cart: _objectSpread(_objectSpread({}, this.state.columns.cart), {}, {\n items: itemsCloned.map(function (item, id) {\n return _objectSpread(_objectSpread({}, item), {}, {\n showOverlayRemove: id === index ? show : false,\n showProgress: false,\n showWarning: false\n });\n })\n })\n })\n }));\n }\n }, {\n key: \"handleClickShowOrder\",\n value: function handleClickShowOrder() {\n var crate = {\n items: [],\n type: this.state.currentMode\n };\n var clonedCart = Array.from(this.state.columns.cart.items);\n for (var i in clonedCart) {\n var item = clonedCart[i];\n crate.items.push({\n 'pn': item.name_number\n });\n }\n this.setState({\n isProcessing: false,\n shouldShowRFQFeedback: true,\n RFQBodyType: 'show',\n RFQBodyOrder: JSON.stringify(crate)\n });\n }\n }, {\n key: \"handleClickOpenImport\",\n value: function handleClickOpenImport() {\n this.setState({\n isProcessing: false,\n shouldShowRFQFeedback: true,\n RFQBodyType: 'import'\n });\n }\n }, {\n key: \"handleLoadCustomConf\",\n value: function handleLoadCustomConf(customconf) {\n if (!customconf) {\n return;\n }\n var items = this.props.data.items;\n var self = this;\n var new_items = [];\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n columns: _objectSpread(_objectSpread({}, this.state.columns), {}, {\n cart: _objectSpread(_objectSpread({}, this.state.columns.cart), {}, {\n items: []\n })\n })\n }), function () {\n customconf.items.map(function (item) {\n Object.keys(items).map(function (key) {\n if (item.pn && item.pn === items[key].name_number) {\n new_items.push(Object.assign(_objectSpread({}, items[key]), {\n id: (0, _uuid.v4)()\n }));\n }\n });\n return item;\n });\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n columns: _objectSpread(_objectSpread({}, this.state.columns), {}, {\n cart: _objectSpread(_objectSpread({}, this.state.columns.cart), {}, {\n items: new_items\n })\n }),\n currentMode: customconf.type\n }));\n });\n }\n }, {\n key: \"handleClickSubmit\",\n value: function handleClickSubmit(note, email) {\n var _this12 = this;\n var crate = {\n items: [],\n type: this.state.currentMode\n };\n var clonedCart = Array.from(this.state.columns.cart.items);\n for (var i in clonedCart) {\n var item = clonedCart[i];\n crate.items.push({\n 'pn': item.name_number\n });\n }\n var data = this.props.data;\n this.setState({\n isProcessing: true\n });\n _axios[\"default\"].post(data.API_RFQ, {\n email: email,\n note: note,\n configuration: JSON.stringify(crate)\n }).then(function (response) {\n _this12.setState({\n isProcessing: false,\n shouldShowRFQFeedback: true,\n RFQBodyType: 'email',\n isProcessingComplete: true\n });\n })[\"catch\"](function (err) {\n _this12.setState({\n isProcessing: false\n }, function () {\n alert(\"We cannot receive your request. Try using the export by coping the configuration and send it to us at sales[at]m-labs.hk\");\n });\n });\n }\n }, {\n key: \"handleOnDragEnd\",\n value: function handleOnDragEnd(result, newAdded) {\n var source = result.source,\n destination = result.destination,\n draggableId = result.draggableId;\n if (!destination) {\n if (source.droppableId === 'cart') {\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n newCardJustAdded: false,\n columns: _objectSpread(_objectSpread({}, this.state.columns), {}, _defineProperty({}, source.droppableId, _objectSpread(_objectSpread({}, this.state.columns[source.droppableId]), {}, {\n items: remove(this.state.columns[source.droppableId].items, source.index)\n })))\n }));\n }\n return;\n }\n switch (source.droppableId) {\n case 'backlog':\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n newCardJustAdded: newAdded ? true : false,\n columns: _objectSpread(_objectSpread({}, this.state.columns), {}, _defineProperty({}, destination.droppableId, _objectSpread(_objectSpread({}, this.state.columns[destination.droppableId]), {}, {\n items: copy(this.state.items, this.state.columns[source.droppableId], this.state.columns[destination.droppableId], draggableId, destination)\n })))\n }));\n break;\n case destination.droppableId:\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n newCardJustAdded: false,\n columns: _objectSpread(_objectSpread({}, this.state.columns), {}, _defineProperty({}, destination.droppableId, _objectSpread(_objectSpread({}, this.state.columns[destination.droppableId]), {}, {\n items: reorder(this.state.columns[destination.droppableId].items, source.index, destination.index)\n })))\n }));\n break;\n default:\n break;\n }\n }\n }, {\n key: \"handleClickToggleMobileSideMenu\",\n value: function handleClickToggleMobileSideMenu() {\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n mobileSideMenuShouldOpen: !this.state.mobileSideMenuShouldOpen\n }));\n }\n }, {\n key: \"handleClickCloseRFQFeedback\",\n value: function handleClickCloseRFQFeedback() {\n this.setState({\n shouldShowRFQFeedback: false\n });\n }\n }, {\n key: \"checkAlerts\",\n value: function checkAlerts(prevItems, newItems) {\n var _this13 = this;\n console.log('--- START CHECKING CRATE WARNING ---');\n var _this$state2 = this.state,\n currentMode = _this$state2.currentMode,\n crateModeSlots = _this$state2.crateModeSlots,\n crateRules = _this$state2.crateRules;\n var itemsCloned = Array.from(newItems);\n var itemsData = {};\n var rules = {};\n\n // check number of slot in crate\n var nbrOccupied = nbrOccupiedSlotsInCrate(newItems);\n if (nbrOccupied > crateModeSlots[currentMode]) {\n rules[crateRules.maxSlot.type] = _objectSpread({}, crateRules.maxSlot);\n } else if (crateModeSlots[currentMode] === 21 && nbrOccupied <= 10) {\n rules[crateRules.compactSlot.type] = _objectSpread({}, crateRules.compactSlot);\n }\n\n // check the number of EEM connectors available for all Kasli\n var idxK = itemsCloned.reduce(function (prev, next, i) {\n if (next.type === 'kasli' || next.type === 'vhdcicarrier') {\n prev.push(i);\n }\n return prev;\n }, []);\n for (var _i2 = 0; _i2 <= idxK.length - 1; _i2++) {\n var slots = void 0;\n var nbUsedSlot = 0;\n var nbrCurrentClock = 0;\n var idx = idxK[_i2];\n if (_i2 !== idxK.length - 1) {\n slots = itemsCloned.slice(idx + 1, idxK[_i2 + 1]);\n } else {\n slots = itemsCloned.slice(idx + 1);\n }\n if (_i2 == 0) {\n var slots_need_resource = itemsCloned.slice(0, idx);\n var idx_need = slots_need_resource.findIndex(function (e) {\n return e.rules && e.rules.resources;\n });\n if (idx_need != -1) {\n if (idx_need in itemsData) {\n if ('warnings' in itemsData[idx_need]) {\n itemsData[idx_need].warnings.resources = _objectSpread({}, itemsCloned[idx_need].rules.resources);\n } else {\n itemsData[idx_need].warnings = {};\n itemsData[idx_need].warnings.resources = _objectSpread({}, itemsCloned[idx_need].rules.resources);\n }\n } else {\n itemsData[idx_need] = _objectSpread({}, itemsCloned[idx_need]);\n itemsData[idx_need].warnings = {};\n itemsData[idx_need].warnings.resources = _objectSpread({}, itemsCloned[idx_need].rules.resources);\n }\n }\n }\n nbUsedSlot = slots.filter(function (item) {\n return item.type !== 'idc-bnc';\n }).reduce(function (prev, next) {\n return prev + next.slotOccupied;\n }, 0);\n nbrCurrentClock = slots.reduce(function (prev, next) {\n return next.type === 'clocker' ? prev + next.clockOccupied : prev;\n }, 0);\n if (idx in itemsData) {\n itemsData[idx].nbrCurrentSlot = nbUsedSlot;\n itemsData[idx].nbrCurrentClock = nbrCurrentClock;\n if (!('warnings' in itemsData[idx])) {\n itemsData[idx].warnings = {};\n }\n } else {\n itemsData[idx] = _objectSpread({}, itemsCloned[idx]);\n itemsData[idx].nbrCurrentSlot = nbUsedSlot;\n itemsData[idx].nbrCurrentClock = nbrCurrentClock;\n itemsData[idx].warnings = {};\n }\n if (nbUsedSlot > itemsCloned[idx].nbrSlotMax) {\n if (itemsCloned[idx].rules.maxSlot.message) {\n rules[itemsCloned[idx].rules.maxSlot.type] = _objectSpread({}, itemsCloned[idx].rules.maxSlot);\n }\n itemsData[idx].warnings.maxSlotWarning = _objectSpread({}, itemsCloned[idx].rules.maxSlotWarning);\n }\n if (nbrCurrentClock > itemsCloned[idx].nbrClockMax) {\n rules[itemsCloned[idx].rules.maxClock.type] = _objectSpread({}, itemsCloned[idx].rules.maxClock);\n itemsData[idx].warnings.maxClockWarning = _objectSpread({}, itemsCloned[idx].rules.maxClockWarning);\n }\n if (itemsCloned.length > idx + 1) {\n var ddkali = itemsCloned[idx + 1];\n if (ddkali.type === 'kasli' || ddkali.type === 'vhdcicarrier') {\n rules[ddkali.rules.follow.type] = _objectSpread({}, ddkali.rules.follow);\n }\n }\n }\n if (idxK.length === 0) {\n var _slots_need_resource = itemsCloned.slice(0);\n var _idx_need = _slots_need_resource.findIndex(function (e) {\n return e.rules && e.rules.resources;\n });\n if (_idx_need != -1) {\n if (_idx_need in itemsData) {\n if ('warnings' in itemsData[_idx_need]) {\n itemsData[_idx_need].warnings.resources = _objectSpread({}, itemsCloned[_idx_need].rules.resources);\n } else {\n itemsData[_idx_need].warnings = {};\n itemsData[_idx_need].warnings.resources = _objectSpread({}, itemsCloned[_idx_need].rules.resources);\n }\n } else {\n itemsData[_idx_need] = _objectSpread({}, itemsCloned[_idx_need]);\n itemsData[_idx_need].warnings = {};\n itemsData[_idx_need].warnings.resources = _objectSpread({}, itemsCloned[_idx_need].rules.resources);\n }\n }\n }\n\n // check number of clock connector available\n var idxC = itemsCloned.reduce(function (prev, next, i) {\n if (next.type === 'kasli' || next.type === 'clocker') {\n prev.push(i);\n }\n return prev;\n }, []);\n for (var _i3 = 0; _i3 <= idxC.length - 1; _i3++) {\n var _slots = void 0;\n var _nbrCurrentClock = 0;\n var _idx = idxC[_i3];\n if (_i3 !== idxC.length - 1) {\n _slots = itemsCloned.slice(_idx + 1, idxC[_i3 + 1]);\n } else {\n _slots = itemsCloned.slice(_idx + 1);\n }\n _nbrCurrentClock = _slots.reduce(function (prev, next) {\n return prev + next.clockOccupied;\n }, 0);\n if (_idx in itemsData) {\n if (itemsData[_idx].nbrCurrentClock) {\n itemsData[_idx].nbrCurrentClock += _nbrCurrentClock;\n } else {\n itemsData[_idx].nbrCurrentClock = _nbrCurrentClock;\n }\n } else {\n itemsData[_idx] = _objectSpread({}, itemsCloned[_idx]);\n itemsData[_idx].nbrCurrentClock = _nbrCurrentClock;\n itemsData[_idx].warnings = {};\n }\n if (_nbrCurrentClock > itemsCloned[_idx].nbrClockMax) {\n rules[itemsCloned[_idx].rules.maxClock.type] = _objectSpread({}, itemsCloned[_idx].rules.maxClock);\n itemsData[_idx].warnings.maxClockWarning = _objectSpread({}, itemsCloned[_idx].rules.maxClockWarning);\n }\n }\n\n // check for number of recommanded EEM connectors\n ['novo', 'urukul', 'koster'].map(function (_type) {\n if (itemsCloned.find(function (elem) {\n return elem.type === _type;\n })) {\n rules[_this13.state.items[_type].rules.connectors.type] = _objectSpread({}, _this13.state.items[_type].rules.connectors);\n }\n return _type;\n });\n if (itemsCloned.find(function (elem) {\n return elem.type === 'urukul';\n })) {\n if (this.state.items['urukul'].rules.info) {\n rules[this.state.items['urukul'].rules.info.type] = _objectSpread({}, this.state.items['urukul'].rules.info);\n }\n }\n\n // check if IDC-BNC is correctly positionned (after Zotino or HD68)\n var idxIDCBNC = itemsCloned.reduce(function (prev, next, i) {\n if (next.type === 'idc-bnc') {\n prev.push(i);\n }\n return prev;\n }, []);\n for (var i = idxIDCBNC.length - 1; i >= 0; i--) {\n var ce = idxIDCBNC[i];\n var shouldWarning = false;\n if (ce == 0) {\n shouldWarning = true;\n } else if (ce >= 1) {\n var pe = idxIDCBNC[i] - 1;\n if (itemsCloned[pe].type !== 'zotino' && itemsCloned[pe].type !== 'hd68' && itemsCloned[pe].type !== 'idc-bnc') {\n shouldWarning = true;\n }\n }\n if (shouldWarning) {\n itemsData[ce] = _objectSpread({}, itemsCloned[ce]);\n itemsData[ce].warnings = {};\n itemsData[ce].warnings.wrong = _objectSpread({}, itemsCloned[ce].rules.wrong);\n }\n }\n\n // check number of IDC-BNC adapters for a Zotino and HD68-IDC\n var idxZH = itemsCloned.reduce(function (prev, next, i) {\n if (next.type === 'zotino' || next.type === 'hd68') {\n prev.push(i);\n }\n return prev;\n }, []);\n var _loop = function _loop() {\n var slots;\n var nbUsedSlot = 0;\n var idx = idxZH[_i4];\n if (_i4 !== idxZH.length - 1) {\n slots = itemsCloned.slice(idx + 1, idxZH[_i4 + 1]);\n } else {\n slots = itemsCloned.slice(idx + 1);\n }\n var stopCount = false;\n nbUsedSlot = slots.reduce(function (prev, next, ci, ca) {\n if (ci === 0 && next.type === 'idc-bnc') {\n return prev + 1;\n } else if (ca[0].type === 'idc-bnc' && ci > 0 && ca[ci - 1].type === 'idc-bnc') {\n if (next.type !== 'idc-bnc') {\n stopCount = true;\n }\n return prev + (next.type === 'idc-bnc' && !stopCount ? 1 : 0);\n }\n return prev;\n }, 0);\n if (idx in itemsData) {\n itemsData[idx].nbrCurrentSlot = nbUsedSlot;\n if (!('warnings' in itemsData[idx])) {\n itemsData[idx].warnings = {};\n }\n } else {\n itemsData[idx] = _objectSpread({}, itemsCloned[idx]);\n itemsData[idx].nbrCurrentSlot = nbUsedSlot;\n itemsData[idx].warnings = {};\n }\n if (nbUsedSlot > 0) {\n if (itemsCloned[idx].rules.maxSlot.message) {\n rules[itemsCloned[idx].rules.maxSlot.type] = _objectSpread({}, itemsCloned[idx].rules.maxSlot);\n }\n }\n if (nbUsedSlot > itemsCloned[idx].nbrSlotMax) {\n itemsData[idx].warnings.maxSlotWarning = _objectSpread({}, itemsCloned[idx].rules.maxSlotWarning);\n }\n\n // check if HD68-IDC has at least 1 IDC-BNC adapter\n if (itemsCloned[idx].type === 'hd68') {\n var _shouldWarning = false;\n if (idx < itemsCloned.length - 1) {\n if (itemsCloned[idx + 1].type !== 'idc-bnc') {\n _shouldWarning = true;\n }\n } else if (idx === itemsCloned.length - 1) {\n _shouldWarning = true;\n }\n if (_shouldWarning) {\n if (idx in itemsData) {\n itemsData[idx].warnings.minAdapter = _objectSpread({}, itemsCloned[idx].rules.minAdapter);\n } else {\n itemsData[idx] = _objectSpread({}, itemsCloned[idx]);\n itemsData[idx].warnings = {};\n itemsData[idx].warnings.minAdapter = _objectSpread({}, itemsCloned[idx].rules.minAdapter);\n }\n }\n }\n };\n for (var _i4 = 0; _i4 <= idxZH.length - 1; _i4++) {\n _loop();\n }\n\n // update state with rules\n this.setState(_objectSpread(_objectSpread({}, this.state), {}, {\n columns: _objectSpread(_objectSpread({}, this.state.columns), {}, {\n cart: _objectSpread(_objectSpread({}, this.state.columns.cart), {}, {\n itemsData: _objectSpread({}, itemsData)\n })\n }),\n rules: _objectSpread({}, rules)\n }));\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$state3 = this.state,\n currency = _this$state3.currency,\n currentItemHovered = _this$state3.currentItemHovered,\n currentMode = _this$state3.currentMode,\n crateModeSlots = _this$state3.crateModeSlots,\n crateModeItems = _this$state3.crateModeItems,\n items = _this$state3.items,\n columns = _this$state3.columns,\n rules = _this$state3.rules,\n mobileSideMenuShouldOpen = _this$state3.mobileSideMenuShouldOpen,\n newCardJustAdded = _this$state3.newCardJustAdded,\n isProcessing = _this$state3.isProcessing,\n shouldShowRFQFeedback = _this$state3.shouldShowRFQFeedback,\n RFQBodyType = _this$state3.RFQBodyType,\n RFQBodyOrder = _this$state3.RFQBodyOrder,\n isProcessingComplete = _this$state3.isProcessingComplete;\n var isMobile = window.deviceIsMobile();\n return /*#__PURE__*/_react[\"default\"].createElement(_reactBeautifulDnd.DragDropContext, {\n onDragEnd: this.handleOnDragEnd\n }, /*#__PURE__*/_react[\"default\"].createElement(Layout, {\n showRFQFeedback: shouldShowRFQFeedback,\n RFQBodyType: RFQBodyType,\n RFQBodyOrder: RFQBodyOrder,\n className: \"shop\",\n mobileSideMenuShouldOpen: mobileSideMenuShouldOpen,\n isMobile: isMobile,\n newCardJustAdded: newCardJustAdded,\n onClickToggleMobileSideMenu: this.handleClickToggleMobileSideMenu,\n onClickCloseRFQFeedback: this.handleClickCloseRFQFeedback,\n onClickLoadCustomConf: this.handleLoadCustomConf,\n items: items,\n aside: /*#__PURE__*/_react[\"default\"].createElement(Backlog, {\n currency: currency,\n items: items,\n data: columns['backlog'],\n onClickAddItem: this.handleClickAddItem,\n onClickToggleMobileSideMenu: this.handleClickToggleMobileSideMenu,\n isMobile: isMobile\n }),\n main: /*#__PURE__*/_react[\"default\"].createElement(OrderPanel, {\n onClickToggleMobileSideMenu: this.handleClickToggleMobileSideMenu,\n onClickOpenImport: this.handleClickOpenImport,\n isMobile: isMobile,\n title: \"Order hardware\",\n description: \" Drag and drop the cards you want into the crate below to see how the combination would look like. If you have any issues with this ordering system, or if you need other configurations, email us directly anytime at sales@m-****.hk. The price is estimated and must be confirmed by a quote.\",\n crateMode: /*#__PURE__*/_react[\"default\"].createElement(CrateMode, {\n items: crateModeItems,\n mode: currentMode,\n onClickMode: this.handleCrateModeChange\n }),\n crate: /*#__PURE__*/_react[\"default\"].createElement(Crate, {\n cart: /*#__PURE__*/_react[\"default\"].createElement(Cart, {\n nbrSlots: crateModeSlots[currentMode],\n data: columns['cart'],\n isMobile: isMobile,\n itemHovered: currentItemHovered,\n onToggleProgress: this.handleToggleItemProgress,\n onToggleWarning: this.handleToggleItemWarning,\n onToggleOverlayRemove: this.handleToggleOverlayRemove,\n onClickRemoveItem: this.handleDeleteItem\n }),\n rules: Object.values(rules).filter(function (rule) {\n return rule;\n })\n }),\n summaryPrice: /*#__PURE__*/_react[\"default\"].createElement(OrderSumary, {\n currency: currency,\n currentMode: currentMode,\n modes: crateModeItems,\n summary: columns['cart'].items,\n itemsData: columns.cart.itemsData,\n onMouseEnterItem: this.handleMouseEnterItem,\n onMouseLeaveItem: this.handleMouseLeaveItem,\n onDeleteItem: this.handleDeleteItem,\n onDeleteAllItems: this.handleDeleteAllItems,\n onClickSelectItem: this.handleClickSelectItem\n }),\n form: /*#__PURE__*/_react[\"default\"].createElement(OrderForm, {\n isProcessingComplete: isProcessingComplete,\n processingComplete: this.handleProcessingComplete,\n isProcessing: isProcessing,\n onClickSubmit: this.handleClickSubmit,\n onClickShow: this.handleClickShowOrder\n })\n })\n }));\n }\n }], [{\n key: \"propTypes\",\n get: function get() {\n return {\n data: _propTypes[\"default\"].object.isRequired\n };\n }\n }]);\n return Shop;\n}(_react[\"default\"].PureComponent);\n_reactDom[\"default\"].render( /*#__PURE__*/_react[\"default\"].createElement(Shop, {\n data: data\n}), document.querySelector('#root-shop'));\n"],"names":["reactIs","REACT_STATICS","childContextTypes","contextType","contextTypes","defaultProps","displayName","getDefaultProps","getDerivedStateFromError","getDerivedStateFromProps","mixins","propTypes","type","KNOWN_STATICS","name","length","prototype","caller","callee","arguments","arity","MEMO_STATICS","compare","TYPE_STATICS","getStatics","component","isMemo","ForwardRef","render","Memo","defineProperty","Object","getOwnPropertyNames","getOwnPropertySymbols","getOwnPropertyDescriptor","getPrototypeOf","objectPrototype","module","exports","hoistNonReactStatics","targetComponent","sourceComponent","blacklist","inheritedComponent","keys","concat","targetStatics","sourceStatics","i","key","descriptor","e","b","Symbol","for","c","d","f","g","h","k","l","m","n","p","q","r","t","v","w","x","y","z","a","u","$$typeof","A","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","Fragment","Lazy","Portal","Profiler","StrictMode","Suspense","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isPortal","isProfiler","isStrictMode","isSuspense","isValidElementType","typeOf","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","props","propName","componentName","location","propFullName","secret","err","Error","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","_setPrototypeOf","o","setPrototypeOf","bind","__proto__","_inheritsLoose","subClass","superClass","create","constructor","_extends","assign","target","source","hasOwnProperty","call","apply","this","_typeof","obj","iterator","_defineProperty","value","arg","input","hint","prim","toPrimitive","undefined","res","TypeError","String","enumerable","configurable","writable","ownKeys","enumerableOnly","symbols","filter","sym","push","_objectSpread2","forEach","getOwnPropertyDescriptors","defineProperties","formatProdErrorMessage","code","$$observable","observable","randomString","Math","random","toString","substring","split","join","ActionTypes","INIT","REPLACE","PROBE_UNKNOWN_ACTION","createStore","reducer","preloadedState","enhancer","_ref2","currentReducer","currentState","currentListeners","nextListeners","isDispatching","ensureCanMutateNextListeners","slice","getState","subscribe","listener","isSubscribed","index","indexOf","splice","dispatch","action","proto","isPlainObject","listeners","replaceReducer","nextReducer","_ref","outerSubscribe","observer","observeState","next","unsubscribe","bindActionCreator","actionCreator","bindActionCreators","actionCreators","boundActionCreators","compose","_len","funcs","Array","_key","reduce","batch","callback","getBatch","nullListeners","notify","get","store","parentSub","handleChangeWrapper","subscription","onStateChange","trySubscribe","addNestedSub","first","last","clear","prev","createListenerCollection","notifyNestedSubs","Boolean","tryUnsubscribe","getListeners","window","document","createElement","useLayoutEffect","useEffect","context","children","contextValue","useMemo","previousState","Context","Provider","_objectWithoutPropertiesLoose","excluded","sourceKeys","_excluded","_excluded2","EMPTY_ARRAY","NO_SUBSCRIPTION_ARRAY","storeStateUpdatesReducer","state","updateCount","payload","useIsomorphicLayoutEffectWithArgs","effectFunc","effectArgs","dependencies","captureWrapperProps","lastWrapperProps","lastChildProps","renderIsScheduled","wrapperProps","actualChildProps","childPropsFromStoreUpdate","current","subscribeUpdates","shouldHandleStateChanges","childPropsSelector","forceComponentUpdateDispatch","didUnsubscribe","lastThrownError","checkForUpdates","newChildProps","error","latestStoreState","initStateUpdates","connectAdvanced","selectorFactory","_ref2$getDisplayName","getDisplayName","_ref2$methodName","methodName","_ref2$renderCountProp","renderCountProp","_ref2$shouldHandleSta","_ref2$storeKey","storeKey","_ref2$forwardRef","withRef","forwardRef","_ref2$context","connectOptions","WrappedComponent","wrappedComponentName","selectorFactoryOptions","pure","usePureOnlyMemo","ConnectFunction","_useMemo","reactReduxForwardedRef","propsContext","ContextToUse","Consumer","useContext","didStoreComeFromProps","createChildSelector","_useMemo2","overriddenContextValue","_useReducer","useReducer","previousStateUpdateResult","useRef","renderedWrappedComponent","ref","Connect","forwarded","is","shallowEqual","objA","objB","keysA","keysB","wrapMapToPropsConstant","getConstant","options","constant","constantSelector","dependsOnOwnProps","getDependsOnOwnProps","mapToProps","wrapMapToPropsFunc","proxy","stateOrDispatch","ownProps","mapDispatchToProps","_loop","mapStateToProps","defaultMergeProps","stateProps","dispatchProps","mergeProps","mergedProps","areMergedPropsEqual","hasRunOnce","nextMergedProps","wrapMergePropsFunc","impureFinalPropsSelectorFactory","pureFinalPropsSelectorFactory","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","hasRunAtLeastOnce","nextState","nextOwnProps","nextStateProps","statePropsChanged","propsChanged","stateChanged","handleSubsequentCalls","finalPropsSelectorFactory","initMapStateToProps","initMapDispatchToProps","initMergeProps","match","factories","result","strictEqual","createConnect","_temp","_ref$connectHOC","connectHOC","_ref$mapStateToPropsF","mapStateToPropsFactories","_ref$mapDispatchToPro","mapDispatchToPropsFactories","_ref$mergePropsFactor","mergePropsFactories","_ref$selectorFactory","_ref3","_ref3$pure","_ref3$areStatesEqual","_ref3$areOwnPropsEqua","_ref3$areStatePropsEq","_ref3$areMergedPropsE","extraOptions","newBatch","useMemoOne","getResult","inputs","initial","useState","isFirstRun","committed","cache","newInputs","lastInputs","areInputsEqual","useCallback","getRect","top","right","bottom","left","width","height","center","expand","expandBy","shrink","shrinkBy","noSpacing","createBox","borderBox","_ref2$margin","margin","_ref2$border","border","_ref2$padding","padding","marginBox","paddingBox","contentBox","parse","raw","Number","isNaN","condition","message","invariant","offset","original","change","shiftBy","shifted","withScroll","scroll","pageXOffset","pageYOffset","calculateBox","styles","marginTop","marginRight","marginBottom","marginLeft","paddingTop","paddingRight","paddingBottom","paddingLeft","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","getBox","el","getBoundingClientRect","getComputedStyle","safeIsNaN","second","resultFn","isEqual","lastThis","lastResult","lastArgs","calledOnce","newArgs","_i","fn","frameId","wrapperFn","args","requestAnimationFrame","cancel","cancelAnimationFrame","log","noop","bindEvents","bindings","sharedOptions","unbindings","map","binding","shared","fromBinding","addEventListener","eventName","removeEventListener","unbind","isProduction$1","RbdInvariant","ErrorBoundary","_React$Component","_this","callbacks","onWindowError","event","getCallbacks","isDragging","tryAbort","preventDefault","setCallbacks","_proto","componentDidMount","componentDidCatch","setState","componentWillUnmount","position","withLocation","destination","isInHomeList","droppableId","startPosition","endPosition","withCombine","id","combine","draggableId","returnedToStart","preset","dragHandleUsageInstructions","onDragStart","start","onDragUpdate","update","onDragEnd","reason","origin","add","point1","point2","subtract","negate","point","patch","line","otherValue","distance","sqrt","pow","closest","points","min","offsetByPosition","spacing","getCorners","clip","frame","shouldClipSubject","subject","max","executeClip","pageMarginBox","getSubject","page","withPlaceholder","axis","scrolled","diff","displacement","increased","_extends2","increasedBy","end","increase","active","scrollDroppable","droppable","newScroll","scrollable","scrollDiff","scrollDisplacement","values","findIndex","list","predicate","find","toArray","toDroppableMap","droppables","previous","toDraggableMap","draggables","toDroppableList","toDraggableList","getDraggablesInsideDroppable","draggable","sort","tryGetDestination","impact","at","tryGetCombine","removeDraggableFromList","remove","item","isHomeOf","noDisplacedBy","emptyGroups","invisible","visible","all","noImpact","displaced","displacedBy","isWithin","lowerBound","upperBound","isPartiallyVisibleThroughFrame","isWithinVertical","isWithinHorizontal","isPartiallyVisibleVertically","isPartiallyVisibleHorizontally","isBiggerVertically","isBiggerHorizontally","isTotallyVisibleThroughFrame","vertical","direction","crossAxisLine","size","crossAxisStart","crossAxisEnd","crossAxisSize","horizontal","isVisible","toBeDisplaced","viewport","withDroppableDisplacement","isVisibleThroughFrameFn","displacedTarget","getDroppableDisplaced","isVisibleInDroppable","isVisibleInViewport","isPartiallyVisible","isTotallyVisible","getShouldAnimate","forceShouldAnimate","shouldAnimate","getDisplacementGroups","afterDragging","groups","getTarget","goAtEnd","insideDestination","inHomeList","newIndex","indexOfLastItem","getIndexOfLastItem","calculateReorderImpact","withoutDragging","sliceFrom","didStartAfterCritical","afterCritical","effected","distanceFromStartToBorderBoxCenter","box","getCrossAxisBorderBoxCenter","isMoving","goAfter","moveRelativeTo","goBefore","distanceFromEndToBorderBoxCenter","getPageBorderBoxCenterFromImpact","withoutDisplacement","draggablePage","moveInto","goIntoStart","closestAfter","withDisplacement","whenReordering","combineWith","displaceBy","isDisplaced","getCombinedItemDisplacement","whenCombining","getResultWithoutDroppableDisplacement","scrollViewport","getDraggables","ids","getClientFromPageBorderBoxCenter","pageBorderBoxCenter","withoutPageScrollChange","client","isTotallyVisibleInNewLocation","newPageBorderBoxCenter","_ref$onlyOnMainAxis","onlyOnMainAxis","changeNeeded","isTotallyVisibleOnAxis","moveToNextPlace","isMovingForward","previousImpact","previousPageBorderBoxCenter","previousClientSelection","isEnabled","isCombineEnabled","getImpact","closestId","withoutDraggable","indexOfClosest","proposedIndex","moveToNextCombine","wasAt","_newIndex","currentIndex","firstIndex","lastIndex","fromReorder","combineId","combineWithIndex","fromCombine","moveToNextIndex","clientSelection","scrollJumpRequest","cautious","maxScrollChange","scrolledViewport","scrolledDroppable","withViewportScroll","withDroppableScroll","tryGetVisible","speculativelyIncrease","getKnownActive","rect","getCurrentPageBorderBoxCenter","getCurrentPageBorderBox","getDisplacedBy","withMaxScroll","addPlaceholder","placeholderSize","requiredGrowth","mode","availableSpace","needsToGrowBy","sum","dimension","getRequiredGrowthForPlaceholder","added","oldFrameMaxScroll","maxScroll","newFrame","whatIsDraggedOver","moveInDirection","isActuallyOver","getDroppableOver","dimensions","isMainAxisMovementAllowed","home","critical","isOver","isMovingOnMainAxis","borderBoxCenter","_state$dimensions","selection","isBetweenSourceClipped","candidates","activeOfTarget","isBetweenDestinationClipped","contains","isWithinDroppable","getBestCrossAxisDroppable","sorted","distanceToA","distanceToB","getClosestDraggable","proposed","proposedPageBorderBoxCenter","relativeTo","isGoingBeforeTarget","moveToNewDroppable","moveCrossAxis","isMovementAllowed","phase","isPositionInFrame","offsetRectByPosition","getIsDisplaced","getDragImpact","pageOffset","pageBorderBox","destinationId","childCenter","isContained","isStartContained","isEndContained","startCenter","candidate","getFurthestAway","getDroppableOver$1","pageBorderBoxWithDroppableScroll","area","targetRect","targetStart","targetEnd","child","childRect","threshold","didStartAfterCritical$1","getCombineImpact","atIndex","getReorderImpact","patchDroppableMap","updated","forcedClientSelection","forcedDimensions","forcedViewport","forcedImpact","newImpact","withUpdatedPlaceholders","cleaned","now","lastDroppable","oldMaxScroll","removePlaceholder","clearUnusedPlaceholder","patched","recomputePlaceholders","recompute","getDraggables$1","getClientBorderBoxCenter","refreshSnap","movementMode","needsVisibilityCheck","getLiftEffect","insideHome","rawIndex","inVirtualList","isSnapping","postDroppableChange","isEnabledChanging","patchDimensionMap","removeScrollJumpRequest","idle","completed","shouldFlush","_action$payload","isWindowScrollAllowed","every","isFixedOnPage","_getLiftEffect","onLiftImpact","published","withScrollChange","modified","existing","updatedAdditions","additions","updatedDroppables","windowScrollChange","getFrame","droppableScrollChange","moved","offset$1","initialWindowScroll","placeholder","offsetDraggable","adjustAdditionsForScrollChanges","removals","wasOverId","wasOver","draggingState","isWaiting","publishWhileDraggingInVirtual","_clientSelection","_action$payload2","_action$payload3","_id","_target","_action$payload4","_id2","_target2","_updated","_newScroll","_viewport","_result2","_action$payload5","dropDuration","newHomeClientOffset","lift","publishWhileDragging","collectionStarting","updateDroppableScroll","updateDroppableIsEnabled","updateDroppableIsCombineEnabled","move","moveUp","moveDown","moveRight","moveLeft","flush","completeDrop","drop","curves","outOfTheWayTiming","timings","transitions","fluid","snap","duration","timing","outOfTheWay","moveTo","transforms","isCombining","translate","minDropTime","drop$1","_getDropImpact","lastImpact","didDropInsideDroppable","getDropImpact","newClientCenter","getNewHomeClientOffset","distance$1","maxDropTime","toFixed","getDropDuration","dropPending","scrollListener","onWindowScroll","scheduled","passive","capture","getWindowScrollBinding","isActive","stop","getScrollListener","shouldEnd","withTimings","getDragStart","execute","responder","data","announce","getDefaultMessage","willExpire","wasCalled","isExpired","timeoutId","setTimeout","clearTimeout","getExpiringAnnounce","responders","getResponders","publisher","entries","asyncMarshal","timerId","entry","shallow","dragging","beforeCapture","onBeforeCapture","beforeStart","onBeforeDragStart","lastCritical","lastLocation","lastCombine","hasCriticalChanged","isDraggableEqual","isDroppableEqual","isCriticalEqual","hasLocationChanged","hasGroupingChanged","isCombineEqual","abort","getPublisher","dropAnimationFinish","dropAnimationFlushOnScroll","once","pendingDrop","postActionState","composeEnhancers","marshal","dimensionMarshal","focusMarshal","styleMarshal","autoScroller","middlewares","_dispatch","middlewareAPI","chain","middleware","applyMiddleware","dropping","resting","stopPublishing","dimensionMarshalStopper","request","scrollOptions","shouldPublishImmediately","_marshal$startPublish","startPublishing","lift$1","shouldStop","autoScroll","isWatching","tryRecordFocus","tryRestoreFocusRecorded","tryShiftRecord","getMaxScroll","scrollHeight","scrollWidth","getDocumentElement","doc","documentElement","getMaxWindowScroll","clientWidth","clientHeight","shouldPublishUpdate","registry","getById","getRemainder","base","createDimensionMarshal","collection","staging","collect","_staging","getDimension","getScrollWhileDragging","publish","createPublisher","subscriber","exists","windowScroll","getAllByType","getDimensionAndWatchScroll","getInitialPublish","dragStopped","canStartDrag","scrollWindow","scrollBy","getScrollableDroppables","config","percentage","getPercentage","startOfRange","endOfRange","range","accelerateAt","stopAt","getValue","distanceToEdge","thresholds","dragStartTime","shouldUseTimeDampening","startScrollingFrom","maxScrollValueAt","percentageFromMaxScrollValueAt","ceil","getValueFromDistance","proposedScroll","runTime","Date","betweenAccelerateAtAndStopAtPercentage","dampenValueByTime","getScrollOnAxis","container","distanceToEdges","getDistanceThresholds","clean$2","getScroll","required","limited","isTooBigVertically","isTooBigHorizontally","adjustForSizeLimits","smallestSigned","getOverlap","targetScroll","overlap","canPartiallyScroll","rawMax","smallestChange","canScrollWindow","canScrollDroppable","scroll$1","_change","getWindowScrollChange","_dimension","maybe","getScrollableDroppableOver","getBestScrollableDroppable","getDroppableScrollChange","createJumpScroller","droppableRemainder","getDroppableOverlap","whatTheDroppableCanScroll","scrollDroppableAsMuchAsItCan","windowRemainder","getWindowOverlap","whatTheWindowCanScroll","scrollWindowAsMuchAsItCan","moveByOffset","createAutoScroller","fluidScroller","scheduleWindowScroll","scheduleDroppableScroll","tryScroll","_dragging","wasScrollNeeded","fakeScrollCallback","createFluidScroller","jumpScroll","prefix$1","dragHandle","contextId","scrollContainer","getStyles","rules","property","rule","selector","getStyles$1","grabCursor","transition","getSelector","attribute","dragHandle$1","always","dropAnimating","userCancel","getHead","head","querySelector","createStyleEl","nonce","setAttribute","getWindowFromEl","ownerDocument","defaultView","isHtmlElement","HTMLElement","createRegistry","subscribers","cb","findDraggableById","findDroppableById","register","uniqueId","unregister","findById","clean","StoreContext","getBodyElement","body","visuallyHidden","overflow","getId","count","defaults","separator","useUniqueId","prefix","AppContext","usePrevious","_preventedKeys","_scrollJumpKeys","space","arrowLeft","arrowUp","arrowRight","arrowDown","preventedKeys","preventStandardKeyEvents","keyCode","supportedEventName","primaryButton","sloppyClickThreshold","idle$1","useMouseSensor","api","phaseRef","unbindEventsRef","startCaptureBinding","defaultPrevented","button","ctrlKey","metaKey","shiftKey","altKey","findClosestDraggableId","actions","tryGetLock","sourceEvent","clientX","clientY","startPendingDrag","preventForcePressBinding","findOptionsForDraggable","shouldRespectForcePress","canGetLock","listenForCapture","shouldBlockNextClick","bindCapturingEvents","getPhase","setPhase","abs","fluidLift","getCaptureBindings","noop$1","scrollJumpKeys","useKeyboardSensor","preDrag","isCapturing","snapLift","getDraggingBindings","idle$2","timeForLongPress","forcePressThreshold","useTouchSensor","touch","touches","longPressTimerId","unbindTarget","hasMoved","_event$touches$","force","shouldRespect","getHandleBindings","unbindWindow","getWindowBindings","startDragging","interactiveTagNames","textarea","select","option","optgroup","video","audio","isAnInteractiveElement","parent","tagName","toLowerCase","getAttribute","parentElement","isEventInInteractiveElement","getBorderBoxCenterPosition","supportedMatchesName","closestPonyfill","closest$1","_isActive","expected","isLockActive","shouldWarn","canStart","lockAPI","isClaimed","defaultSensors","useSensorMarshal","_ref4","customSensors","enableDefaultSensors","useSensors","lock","release","claim","abandon","newLock","tryAbandon","tryAbandonLock","forceStop","forceSensorStop","draggable$1","querySelectorAll","findDraggable","canDragInteractiveElements","getShouldRespectForcePress","tryDispatchWhenDragging","getAction","finish","cleanup","liftActionArgs","move$1","tryStart","handle","findClosestDragHandleFromEvent","tryGetClosestDraggableIdFromEvent","tryReleaseLock","isLockClaimed","createResponders","getStore","lazyRef","App","sensors","lazyStoreRef","lastPropsRef","style","appendChild","removeChild","textContent","useAnnouncer","dragHandleUsageInstructionsId","text","display","useHiddenTextElement","alwaysRef","dynamicRef","setDynamicStyle","setAlwaysStyle","dynamic","useStyleMarshal","lazyDispatch","marshalCallbacks","useRegistry","entriesRef","recordRef","restoreFocusFrameRef","isMountedRef","focus","tryGiveFocus","tryGiveFocusTo","possible","findDragHandle","activeElement","redirectTo","record","focused","useFocusMarshal","tryResetStore","getCanLift","getIsMovementAllowed","appContext","canLift","count$1","resetServerContext","DragDropContext","isEqual$1","isScroll","isAuto","isEither","overflowX","overflowY","getClosestScrollable","isElementScrollable","getScroll$1","scrollLeft","scrollTop","getIsFixed","immediate","delayed","getListenerOptions","useRequiredContext","getClosestScrollableFromDrag","env","closestScrollable","noop$2","empty","Placeholder$1","animateOpenTimerRef","tryClearAnimateOpenTimer","animate","onTransitionEnd","onClose","_useState","isAnimatingOpenOnMount","setIsAnimatingOpenOnMount","onSizeChangeEnd","propertyName","getSize","boxSizing","flexShrink","flexGrow","pointerEvents","getStyle","innerRef","DroppableContext","AnimateInOut","_React$PureComponent","on","provided","zIndexOptions","getDraggingTransition","shouldAnimateDragMovement","getDraggingOpacity","isDropAnimating","preventHtml5Dnd","isStrictEqual","whatIsDraggedOverFromResult","getSecondarySnapshot","combineTargetFor","isClone","dropAnimation","draggingOver","atRest","mapped","shouldAnimateDisplacement","snapshot","ConnectedDraggable","connect","memoizedOffset","getMemoizedSnapshot","getMemoizedProps","draggingSelector","_draggingOver","_combineWith","getCombineWithFromResult","curve","opacity","scale","secondarySelector","getFallback","getProps","ownId","draggingId","visualDisplacement","isAfterCriticalInVirtualList","_offset","getSecondarySelector","dropAnimationFinished","setRef","getRef","_useRequiredContext","_useRequiredContext2","dropAnimationFinishedAction","getDraggableRef","computedStyles","getDimension$1","publishedRef","isFirstPublishRef","useDraggablePublisher","dragHandleProps","tabIndex","role","onMoveEnd","getShouldDraggingAnimate","transform","zIndex","getDraggingStyle","secondary","getStyle$1","draggableProps","rubric","PrivateDraggable","isUsingCloneFor","PublicDraggable","isDragDisabled","disableInteractiveElementBlocking","isMatchingType","getDraggable","isDropDisabled","ignoreContainerClipping","renderClone","getContainerForClone","ConnectedDroppable","idleWithAnimation","shouldAnimatePlaceholder","isDraggingOver","draggingOverWith","draggingFromThisWith","isUsingPlaceholder","useClone","idleWithoutAnimation","getDraggableRubric","getMapProps","isDraggingOverForConsumer","isDraggingOverForImpact","_snapshot","_completed","wasCombining","isHome","updateViewportMaxScroll","droppableRef","placeholderRef","getDroppableRef","setDroppableRef","setPlaceholderRef","onPlaceholderTransitionEnd","whileDraggingRef","previousRef","publishedDescriptorRef","memoizedUpdateScroll","getClosestScroll","updateScroll","scheduleScrollUpdate","onClosestScroll","getEnv","targetRef","getClient","frameClient","scrollSize","getDroppableDimension","removeAttribute","useDroppablePublisher","droppableProps","droppableContext","draggableProvided","draggableSnapshot","getClone","aa","ca","encodeURIComponent","da","Set","ea","fa","ha","ia","ja","ka","la","ma","acceptsBooleans","attributeName","attributeNamespace","mustUseProperty","sanitizeURL","removeEmptyString","ra","sa","toUpperCase","ta","pa","qa","test","oa","setAttributeNS","replace","xlinkHref","ua","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","va","wa","ya","za","Aa","Ba","Ca","Da","Ea","Fa","Ga","Ha","Ia","Ja","Ka","La","Ma","stack","trim","Na","Oa","prepareStackTrace","set","Reflect","construct","includes","Pa","tag","Qa","_context","_payload","_init","Ra","Sa","Ta","nodeName","Va","_valueTracker","setValue","stopTracking","Ua","Wa","checked","Xa","Ya","defaultChecked","defaultValue","_wrapperState","initialChecked","Za","initialValue","controlled","ab","bb","db","eb","isArray","fb","selected","defaultSelected","disabled","gb","dangerouslySetInnerHTML","hb","ib","jb","kb","lb","mb","nb","namespaceURI","innerHTML","valueOf","firstChild","MSApp","execUnsafeLocalFunction","ob","lastChild","nodeType","nodeValue","pb","animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexPositive","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","order","orphans","tabSize","widows","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","qb","rb","sb","setProperty","charAt","tb","menuitem","br","col","embed","hr","img","keygen","link","meta","param","track","wbr","ub","vb","wb","xb","srcElement","correspondingUseElement","parentNode","yb","zb","Ab","Bb","Cb","stateNode","Db","Eb","Fb","Gb","Hb","Ib","Jb","Kb","Lb","Mb","Nb","onError","Ob","Pb","Qb","Rb","Sb","Tb","Vb","alternate","return","flags","Wb","memoizedState","dehydrated","Xb","Zb","sibling","Yb","$b","ac","unstable_scheduleCallback","bc","unstable_cancelCallback","cc","unstable_shouldYield","dc","unstable_requestPaint","B","unstable_now","ec","unstable_getCurrentPriorityLevel","fc","unstable_ImmediatePriority","gc","unstable_UserBlockingPriority","hc","unstable_NormalPriority","ic","unstable_LowPriority","jc","unstable_IdlePriority","kc","lc","oc","clz32","pc","qc","LN2","rc","sc","tc","uc","pendingLanes","suspendedLanes","pingedLanes","entangledLanes","entanglements","vc","xc","yc","zc","Ac","eventTimes","Cc","C","Dc","Ec","Fc","Gc","Hc","Ic","Jc","Kc","Lc","Mc","Nc","Oc","Map","Pc","Qc","Rc","Sc","delete","pointerId","Tc","nativeEvent","blockedOn","domEventName","eventSystemFlags","targetContainers","Vc","Wc","priority","isDehydrated","containerInfo","Xc","Yc","dispatchEvent","shift","Zc","$c","ad","bd","cd","ReactCurrentBatchConfig","dd","ed","fd","gd","hd","Uc","stopPropagation","jd","kd","ld","md","nd","od","charCode","pd","qd","rd","_reactName","_targetInst","currentTarget","isDefaultPrevented","returnValue","isPropagationStopped","cancelBubble","persist","isPersistent","wd","xd","yd","sd","eventPhase","bubbles","cancelable","timeStamp","isTrusted","td","ud","view","detail","vd","Ad","screenX","screenY","pageX","pageY","getModifierState","zd","buttons","relatedTarget","fromElement","toElement","movementX","movementY","Bd","Dd","dataTransfer","Fd","Hd","animationName","elapsedTime","pseudoElement","Id","clipboardData","Jd","Ld","Md","Esc","Spacebar","Left","Up","Right","Down","Del","Win","Menu","Apps","Scroll","MozPrintableKey","Nd","Od","Alt","Control","Meta","Shift","Pd","Qd","fromCharCode","repeat","locale","which","Rd","Td","pressure","tangentialPressure","tiltX","tiltY","twist","pointerType","isPrimary","Vd","targetTouches","changedTouches","Xd","Yd","deltaX","wheelDeltaX","deltaY","wheelDeltaY","wheelDelta","deltaZ","deltaMode","Zd","$d","ae","be","documentMode","ce","de","ee","fe","ge","he","ie","le","color","date","datetime","email","month","password","search","tel","time","url","week","me","ne","oe","pe","qe","re","se","te","ue","ve","we","xe","ye","ze","oninput","Ae","detachEvent","Be","Ce","attachEvent","De","Ee","Fe","He","Ie","Je","Ke","nextSibling","Le","compareDocumentPosition","Me","HTMLIFrameElement","contentWindow","href","Ne","contentEditable","Oe","focusedElem","selectionRange","selectionStart","selectionEnd","getSelection","extend","rangeCount","anchorNode","anchorOffset","focusNode","focusOffset","createRange","setStart","removeAllRanges","addRange","setEnd","Pe","Qe","Re","Se","Te","Ue","Ve","We","animationend","animationiteration","animationstart","transitionend","Xe","Ye","Ze","animation","$e","af","bf","cf","df","ef","ff","gf","hf","lf","mf","nf","Ub","instance","D","of","has","pf","qf","rf","sf","J","F","tf","uf","parentWindow","vf","wf","na","xa","$a","ba","je","char","ke","unshift","xf","yf","zf","Af","Bf","Cf","Df","Ef","__html","Ff","Gf","Hf","Promise","Jf","queueMicrotask","resolve","then","catch","If","Kf","Lf","Mf","previousSibling","Nf","Of","Pf","Qf","Rf","Sf","Tf","Uf","E","G","Vf","H","Wf","Xf","Yf","__reactInternalMemoizedUnmaskedChildContext","__reactInternalMemoizedMaskedChildContext","Zf","$f","ag","bg","getChildContext","cg","__reactInternalMemoizedMergedChildContext","dg","eg","fg","gg","hg","jg","kg","lg","mg","ng","og","pg","qg","rg","sg","tg","ug","vg","wg","xg","yg","I","zg","Ag","Bg","deletions","Cg","pendingProps","treeContext","retryLane","Dg","Eg","Fg","Gg","memoizedProps","Hg","Ig","Jg","Kg","Lg","Mg","Ng","Og","Pg","Qg","Rg","_currentValue","Sg","childLanes","Tg","firstContext","lanes","Ug","Vg","memoizedValue","Wg","Xg","Yg","interleaved","Zg","$g","ah","updateQueue","baseState","firstBaseUpdate","lastBaseUpdate","pending","effects","bh","ch","eventTime","lane","dh","K","eh","fh","gh","hh","ih","jh","Component","refs","kh","nh","isMounted","_reactInternals","enqueueSetState","L","lh","mh","enqueueReplaceState","enqueueForceUpdate","oh","shouldComponentUpdate","isPureReactComponent","ph","updater","qh","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","rh","getSnapshotBeforeUpdate","UNSAFE_componentWillMount","componentWillMount","sh","_owner","_stringRef","th","uh","vh","wh","xh","yh","implementation","zh","Ah","done","Bh","Ch","Dh","Eh","Fh","Gh","Hh","Ih","Jh","Kh","Lh","M","Mh","revealOrder","Nh","Oh","_workInProgressVersionPrimary","Ph","ReactCurrentDispatcher","Qh","Rh","N","O","P","Sh","Th","Uh","Vh","Q","Wh","Xh","Yh","Zh","$h","ai","bi","ci","baseQueue","queue","di","ei","fi","lastRenderedReducer","hasEagerState","eagerState","lastRenderedState","gi","hi","ii","ji","ki","getSnapshot","li","mi","R","ni","lastEffect","stores","oi","pi","qi","ri","destroy","deps","si","ti","ui","vi","wi","xi","yi","zi","Ai","Bi","Ci","Di","Ei","Fi","Gi","Hi","Ii","Ji","readContext","useImperativeHandle","useInsertionEffect","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","identifierPrefix","Ki","digest","Li","Mi","console","Ni","WeakMap","Oi","Pi","Qi","Ri","Si","componentStack","Ti","pingCache","Ui","Vi","Wi","Xi","ReactCurrentOwner","Yi","Zi","$i","aj","bj","cj","dj","ej","baseLanes","cachePool","fj","gj","hj","ij","jj","UNSAFE_componentWillUpdate","componentWillUpdate","componentDidUpdate","kj","lj","pendingContext","mj","Aj","Bj","Cj","Dj","nj","oj","pj","fallback","qj","rj","tj","dataset","dgst","uj","vj","_reactRetry","sj","subtreeFlags","wj","xj","isBackwards","rendering","renderingStartTime","tail","tailMode","yj","Ej","S","Fj","Gj","wasMultiple","multiple","suppressHydrationWarning","onClick","onclick","createElementNS","autoFocus","createTextNode","T","Hj","Ij","Jj","Kj","U","Lj","WeakSet","V","Mj","W","Nj","Oj","Qj","Rj","Sj","Tj","Uj","Vj","Wj","insertBefore","_reactRootContainer","Xj","X","Yj","Zj","ak","onCommitFiberUnmount","bk","ck","dk","ek","fk","isHidden","gk","hk","ik","jk","kk","lk","__reactInternalSnapshotBeforeUpdate","src","Wk","mk","nk","ok","pk","Y","Z","qk","rk","sk","tk","uk","Infinity","vk","wk","xk","yk","zk","Ak","Bk","Ck","Dk","Ek","callbackNode","expirationTimes","expiredLanes","wc","callbackPriority","ig","Fk","Gk","Hk","Ik","Jk","Kk","Lk","Mk","Nk","Ok","Pk","finishedWork","finishedLanes","Qk","timeoutHandle","Rk","Sk","Tk","Uk","Vk","mutableReadLanes","Bc","Pj","onCommitFiberRoot","mc","onRecoverableError","Xk","onPostCommitFiberRoot","Yk","Zk","al","isReactComponent","pendingChildren","bl","mutableSourceEagerHydrationData","cl","pendingSuspenseBoundaries","fl","gl","hl","il","jl","zj","$k","ll","reportError","ml","_internalRoot","nl","ol","pl","ql","sl","rl","unmount","unstable_scheduleHydration","JSON","stringify","form","tl","usingClientEntryPoint","Events","ul","findFiberByHostInstance","bundleType","version","rendererPackageName","vl","rendererConfig","overrideHookState","overrideHookStateDeletePath","overrideHookStateRenamePath","overrideProps","overridePropsDeletePath","overridePropsRenamePath","setErrorHandler","setSuspenseHandler","scheduleUpdate","currentDispatcherRef","findHostInstanceByFiber","findHostInstancesForRefresh","scheduleRefresh","scheduleRoot","setRefreshHandler","getCurrentFiber","reconcilerVersion","__REACT_DEVTOOLS_GLOBAL_HOOK__","wl","isDisabled","supportsFiber","inject","createPortal","dl","createRoot","unstable_strictMode","findDOMNode","flushSync","hydrate","hydrateRoot","hydratedSources","_getVersion","_source","unmountComponentAtNode","unstable_batchedUpdates","unstable_renderSubtreeIntoContainer","checkDCE","forceUpdate","__self","__source","escape","_status","_result","default","Children","only","PureComponent","cloneElement","createContext","_currentValue2","_threadCount","_defaultValue","_globalName","createFactory","createRef","isValidElement","lazy","memo","startTransition","unstable_act","pop","sortIndex","performance","setImmediate","startTime","expirationTime","priorityLevel","navigator","scheduling","isInputPending","MessageChannel","port2","port1","onmessage","postMessage","unstable_Profiling","unstable_continueExecution","unstable_forceFrameRate","floor","unstable_getFirstCallbackNode","unstable_next","unstable_pauseExecution","unstable_runWithPriority","delay","unstable_wrapCallback","_nil","_parse","_stringify","_v","_v2","_v3","_v4","_validate","_version","_interopRequireDefault","__esModule","getOutputLength","inputLength8","safeAdd","lsw","md5cmn","s","num","cnt","md5ff","md5gg","md5hh","md5ii","bytes","msg","unescape","Uint8Array","charCodeAt","output","length32","hexTab","hex","parseInt","md5ToHexEncodedArray","len","olda","oldb","oldc","oldd","wordsToMd5","length8","Uint32Array","bytesToWords","_default","randomUUID","crypto","uuid","arr","getRandomValues","rnds8","ROTL","j","unsafeStringify","byteToHex","_rng","_nodeId","_clockseq","_lastMSecs","_lastNSecs","buf","clockseq","seedBytes","rng","msecs","nsecs","dt","tmh","_md","URL","DNS","hashfunc","generateUUID","namespace","_namespace","str","stringToBytes","_native","rnds","_sha","_regex","thisArg","kindOf","thing","kindOfTest","typeOfTest","isUndefined","isArrayBuffer","isString","isFunction","isNumber","isObject","val","toStringTag","isDate","isFile","isBlob","isFileList","isURLSearchParams","allOwnKeys","findKey","_global","globalThis","self","isContextDefined","isTypedArray","TypedArray","isHTMLForm","prop","isRegExp","reduceDescriptors","descriptors","reducedDescriptors","ALPHA","DIGIT","ALPHABET","ALPHA_DIGIT","isAsyncFn","utils","isBuffer","isFormData","kind","FormData","append","isArrayBufferView","ArrayBuffer","isView","buffer","isBoolean","isStream","pipe","merge","caseless","assignValue","targetKey","stripBOM","content","inherits","superConstructor","toFlatObject","sourceObj","destObj","propFilter","merged","endsWith","searchString","forEachEntry","pair","matchAll","regExp","matches","exec","hasOwnProp","freezeMethods","toObjectSet","arrayOrString","delimiter","define","toCamelCase","p1","p2","toFiniteNumber","isFinite","global","generateString","alphabet","isSpecCompliantForm","toJSONObject","visit","reducedValue","isThenable","AxiosError","response","captureStackTrace","toJSON","description","fileName","lineNumber","columnNumber","status","prototype$1","isVisitable","removeBrackets","renderKey","path","dots","token","from","customProps","axiosError","cause","predicates","toFormData","formData","metaTokens","indexes","visitor","defaultVisitor","useBlob","Blob","convertValue","toISOString","Buffer","some","isFlatArray","exposedHelpers","build","encode$1","charMap","AxiosURLSearchParams","params","_pairs","encode","buildURL","_encode","serializeFn","serialize","serializedParams","hashmarkIndex","encoder","InterceptorManager$1","handlers","use","fulfilled","rejected","synchronous","runWhen","eject","transitionalDefaults","silentJSONParsing","forcedJSONParsing","clarifyTimeoutError","platform","isBrowser","classes","URLSearchParams","isStandardBrowserEnv","product","isStandardBrowserWebWorkerEnv","WorkerGlobalScope","importScripts","protocols","formDataToJSON","buildPath","isNumericKey","isLast","arrayToObject","parsePropPath","DEFAULT_CONTENT_TYPE","transitional","adapter","transformRequest","headers","contentType","getContentType","hasJSONContentType","isObjectPayload","setContentType","helpers","isNode","toURLEncodedForm","formSerializer","_FormData","rawValue","parser","stringifySafely","transformResponse","JSONRequested","responseType","strictJSONParsing","ERR_BAD_RESPONSE","timeout","xsrfCookieName","xsrfHeaderName","maxContentLength","maxBodyLength","validateStatus","common","method","defaults$1","ignoreDuplicateOf","$internals","normalizeHeader","header","normalizeValue","matchHeaderValue","isHeaderNameFilter","AxiosHeaders","valueOrRewrite","rewrite","setHeader","_value","_header","_rewrite","lHeader","setHeaders","rawHeaders","parsed","parseHeaders","tokens","tokensRE","parseTokens","matcher","deleted","deleteHeader","normalize","format","normalized","formatHeader","targets","asStrings","static","computed","accessors","defineAccessor","accessorName","arg1","arg2","arg3","buildAccessors","accessor","AxiosHeaders$1","transformData","fns","isCancel","__CANCEL__","CanceledError","ERR_CANCELED","cookies","write","expires","domain","secure","cookie","toGMTString","read","RegExp","decodeURIComponent","buildFullPath","baseURL","requestedURL","relativeURL","combineURLs","isURLSameOrigin","msie","userAgent","urlParsingNode","originURL","resolveURL","protocol","host","hash","hostname","port","pathname","requestURL","progressEventReducer","isDownloadStream","bytesNotified","_speedometer","samplesCount","timestamps","firstSampleTS","chunkLength","startedAt","bytesCount","passed","round","speedometer","loaded","total","lengthComputable","progressBytes","rate","progress","estimated","knownAdapters","http","xhr","XMLHttpRequest","reject","requestData","requestHeaders","onCanceled","cancelToken","signal","auth","username","btoa","fullPath","onloadend","responseHeaders","getAllResponseHeaders","ERR_BAD_REQUEST","settle","responseText","statusText","open","paramsSerializer","onreadystatechange","readyState","responseURL","onabort","ECONNABORTED","onerror","ERR_NETWORK","ontimeout","timeoutErrorMessage","ETIMEDOUT","xsrfValue","withCredentials","setRequestHeader","onDownloadProgress","onUploadProgress","upload","aborted","parseProtocol","send","throwIfCancellationRequested","throwIfRequested","dispatchRequest","adapters","nameOrAdapter","headersToObject","mergeConfig","config1","config2","getMergedValue","mergeDeepProperties","valueFromConfig2","defaultToConfig2","mergeDirectKeys","mergeMap","timeoutMessage","decompress","beforeRedirect","transport","httpAgent","httpsAgent","socketPath","responseEncoding","configValue","validators$1","deprecatedWarnings","validator","formatMessage","opt","desc","opts","ERR_DEPRECATED","warn","assertOptions","schema","allowUnknown","ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","validators","Axios","instanceConfig","interceptors","configOrUrl","contextHeaders","boolean","function","requestInterceptorChain","synchronousRequestInterceptors","interceptor","responseInterceptorChain","promise","newConfig","onFulfilled","onRejected","getUri","generateHTTPMethod","isForm","Axios$1","CancelToken","executor","resolvePromise","_listeners","onfulfilled","_resolve","CancelToken$1","HttpStatusCode","Continue","SwitchingProtocols","Processing","EarlyHints","Created","Accepted","NonAuthoritativeInformation","NoContent","ResetContent","PartialContent","MultiStatus","AlreadyReported","ImUsed","MultipleChoices","MovedPermanently","Found","SeeOther","NotModified","UseProxy","Unused","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","LengthRequired","PreconditionFailed","PayloadTooLarge","UriTooLong","UnsupportedMediaType","RangeNotSatisfiable","ExpectationFailed","ImATeapot","MisdirectedRequest","UnprocessableEntity","Locked","FailedDependency","TooEarly","UpgradeRequired","PreconditionRequired","TooManyRequests","RequestHeaderFieldsTooLarge","UnavailableForLegalReasons","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","HttpVersionNotSupported","VariantAlsoNegotiates","InsufficientStorage","LoopDetected","NotExtended","NetworkAuthenticationRequired","HttpStatusCode$1","axios","createInstance","defaultConfig","VERSION","Cancel","promises","spread","isAxiosError","formToJSON","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","getter","definition","Function","_react","require","_axios","_reactDom","_propTypes","_reactBeautifulDnd","_uuid","_classCallCheck","Constructor","_defineProperties","_toPropertyKey","_createClass","protoProps","staticProps","_inherits","_createSuper","Derived","hasNativeReflectConstruct","sham","Proxy","_isNativeReflectConstruct","Super","_getPrototypeOf","NewTarget","_assertThisInitialized","_possibleConstructorReturn","ReferenceError","_arrayLikeToArray","arr2","_objectSpread","_toPrimitive","shop_data","productStyle","removeAnim","hovered","custom","backgroundColor","transitionDuration","cartStyle","nbrConnectorsStyle","nbrCurrentSlot","nbrSlotMax","nbrClocksStyle","nbrCurrentClock","nbrClockMax","copy","model","draggableSource","droppableDestination","destClone","items","v4","reorder","startIndex","endIndex","removed","_arrayWithHoles","_s","_e","_x","_r","_arr","_n","_d","_iterableToArrayLimit","minLen","_unsupportedIterableToArray","_nonIterableRest","nbrOccupiedSlotsInCrate","hp","formatMoney","amount","decimalCount","decimal","thousands","negativeSign","substr","Layout","_super","customconf","handleCustomConfig","handleClickLoad","checkValidation","items_keys","list_pn","name_number","conf","conf_obj","customconf_ready","pn","unknow_pn","item_pn","onClickLoadCustomConf","_this$props","aside","main","mobileSideMenuShouldOpen","isMobile","newCardJustAdded","onClickToggleMobileSideMenu","onClickCloseRFQFeedback","showRFQFeedback","RFQBodyType","RFQBodyOrder","className","tabindex","alt","onChange","rows","ProductItem","_React$PureComponent2","_super2","_this2","handleOnClickAddItem","tap","onClickAddItem","_this$props2","name_codename","price","currency","image","specs","datasheet_file","datasheet_name","render_specs","spec","render_datasheet_link","rel","Draggable","ProductCartItem","_React$PureComponent3","_super3","_this3","handleOnMouseEnterItem","handleOnMouseLeaveItem","handleOnMouseEnterWarningItem","handleOnMouseLeaveWarningItem","handleOnMouseEnterRemoveItem","handleOnMouseLeaveRemoveItem","handleOnClickRemoveItem","onToggleProgress","isWarning","onToggleWarning","onToggleOverlayRemove","onClickRemoveItem","warning","render_progress","_this4","_this$props3","shouldTooltipWarningClassInverted","warnings","warningsKeys","showProgress","onMouseEnter","onMouseLeave","icon","showWarning","showOverlayRemove","FakePlaceholder","_React$PureComponent4","_super4","_this$props4","nbrSlots","fakePlaceholder","Cart","_React$PureComponent5","_super5","_this$props5","itemHovered","nbrOccupied","products","itemData","itemsData","Droppable","CrateMode","_React$PureComponent6","_super6","_this5","handleOnClickMode","onClickMode","_this6","_this$props6","Crate","_React$PureComponent7","_super7","_this$props7","cart","OrderPanel","_React$PureComponent8","_super8","_this$props8","title","crateMode","crate","summaryPrice","onClickOpenImport","OrderForm","_React$PureComponent9","_super9","_this7","note","handleEmail","handleNote","handleSubmit","resetEmptyError","validationFields","_this$validateEmail","validateEmail","isEmailEmpty","isEmpty","isEmailError","isError","_this$validateEmail2","onClickSubmit","onClickShow","_this$state","_this$props9","isProcessing","isProcessingComplete","onSubmit","noValidate","onFocus","onBlur","OrderSumary","_React$PureComponent10","_super10","_this8","handleOnDeleteItem","handleOnDeleteAllItems","handleOnClickSelectItem","onDeleteItem","onDeleteAllItems","onMouseEnterItem","onMouseLeaveItem","onClickSelectItem","_this9","_this$props10","modes","currentMode","summary","elem","colSpan","alert","Backlog","_React$PureComponent11","_super11","_this$props11","categories","groupItem","itemIds","itemId","group","g_index","Shop","_React$PureComponent12","_super12","_this10","handleCrateModeChange","handleOnDragEnd","handleDeleteItem","handleDeleteAllItems","handleMouseEnterItem","handleMouseLeaveItem","handleClickAddItem","checkAlerts","handleToggleItemProgress","handleToggleItemWarning","handleClickSelectItem","handleClickSubmit","handleToggleOverlayRemove","handleClickToggleMobileSideMenu","handleClickCloseRFQFeedback","handleClickShowOrder","handleClickOpenImport","handleLoadCustomConf","timer","sourceIds","backlog","groupId","flat","prevProps","prevState","_this11","cloned","currentItemHovered","show","itemsCloned","clonedCart","shouldShowRFQFeedback","new_items","_this12","post","API_RFQ","configuration","newAdded","prevItems","newItems","_this13","_this$state2","crateModeSlots","crateRules","maxSlot","compactSlot","idxK","_i2","nbUsedSlot","slots","idx","idx_need","resources","slotOccupied","clockOccupied","maxSlotWarning","maxClock","maxClockWarning","ddkali","follow","_idx_need","idxC","_i3","_nbrCurrentClock","_idx","_type","connectors","info","idxIDCBNC","shouldWarning","wrong","idxZH","_i4","stopCount","_shouldWarning","minAdapter","_this$state3","crateModeItems","deviceIsMobile","processingComplete","handleProcessingComplete"],"sourceRoot":""}